Skip to content

Commit

Permalink
GRPC clients version 11.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Jan 8, 2025
1 parent fe33a14 commit f6d6e4a
Show file tree
Hide file tree
Showing 9 changed files with 1,209 additions and 840 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.11.3
11.0.0
2 changes: 1 addition & 1 deletion clarifai_grpc/channel/http_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from clarifai_grpc.channel.errors import ApiError

CLIENT_VERSION = "10.11.3"
CLIENT_VERSION = "11.0.0"
OS_VER = os.sys.platform
PYTHON_VERSION = ".".join(
map(
Expand Down
890 changes: 456 additions & 434 deletions clarifai_grpc/grpc/api/resources_pb2.py

Large diffs are not rendered by default.

325 changes: 316 additions & 9 deletions clarifai_grpc/grpc/api/resources_pb2.pyi

Large diffs are not rendered by default.

766 changes: 383 additions & 383 deletions clarifai_grpc/grpc/api/service_pb2.py

Large diffs are not rendered by default.

16 changes: 13 additions & 3 deletions clarifai_grpc/grpc/api/service_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -3261,11 +3261,11 @@ class ListLogEntriesRequest(google.protobuf.message.Message):
RUNNER_ID_FIELD_NUMBER: builtins.int
page: builtins.int
"""(optional URL parameter) The page number. Pagination is used to split the results into chunks.
Defaults to 1.
Defaults to last page.
"""
per_page: builtins.int
"""(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.
to 32.
"""
log_type: builtins.str
"""The type of log entry. Examples: model, agent, build, training."""
Expand Down Expand Up @@ -5503,19 +5503,27 @@ class MultiLogEntryResponse(google.protobuf.message.Message):

STATUS_FIELD_NUMBER: builtins.int
LOG_ENTRIES_FIELD_NUMBER: builtins.int
PAGE_FIELD_NUMBER: builtins.int
PER_PAGE_FIELD_NUMBER: builtins.int
@property
def status(self) -> proto.clarifai.api.status.status_pb2.Status: ...
@property
def log_entries(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[proto.clarifai.api.resources_pb2.LogEntry]:
"""Log entries."""
page: builtins.int
"""The page the log entries are from. If the request's page was omitted or greater than the total pages, then this is set to the last page."""
per_page: builtins.int
"""The number of results contained in each page."""
def __init__(
self,
*,
status: proto.clarifai.api.status.status_pb2.Status | None = ...,
log_entries: collections.abc.Iterable[proto.clarifai.api.resources_pb2.LogEntry] | None = ...,
page: builtins.int = ...,
per_page: builtins.int = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["status", b"status"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["log_entries", b"log_entries", "status", b"status"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["log_entries", b"log_entries", "page", b"page", "per_page", b"per_page", "status", b"status"]) -> None: ...

global___MultiLogEntryResponse = MultiLogEntryResponse

Expand Down Expand Up @@ -7313,6 +7321,7 @@ class GetTaskRequest(google.protobuf.message.Message):
- metrics.work.inputs_count_estimated
- metrics.work.inputs_percent_estimated
- metrics.review.inputs_count_estimated
- metrics.review.inputs_count_estimated_per_reviewer
- metrics.review.inputs_percent_estimated
"""
def __init__(
Expand Down Expand Up @@ -7378,6 +7387,7 @@ class ListTasksRequest(google.protobuf.message.Message):
- metrics.work.inputs_count_estimated
- metrics.work.inputs_percent_estimated
- metrics.review.inputs_count_estimated
- metrics.review.inputs_count_estimated_per_reviewer
- metrics.review.inputs_percent_estimated
"""
@property
Expand Down
14 changes: 12 additions & 2 deletions clarifai_grpc/grpc/api/status/status_code_pb2.py

Large diffs are not rendered by default.

32 changes: 26 additions & 6 deletions clarifai_grpc/grpc/api/status/status_code_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ class _StatusCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enu
"""Used when training is completed"""
MODEL_NOT_DEPLOYED: _StatusCode.ValueType # 21353
"""Used when model spire deployment is manually taken down or due to inactivity"""
MODEL_BUSY_PLEASE_RETRY: _StatusCode.ValueType # 21354
MODEL_LOADING: _StatusCode.ValueType # 21355
"""Used when the model pod is running, but not yet ready to serve requests."""
MODEL_REFERENCE_INVALID_ARGUMENT: _StatusCode.ValueType # 21400
"""Used when a model reference field is not set properly"""
MODEL_EXAMPLE_INPUT_INVALID_ARGUMENT: _StatusCode.ValueType # 21420
Expand Down Expand Up @@ -268,12 +271,19 @@ class _StatusCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enu
"""InstanceType related codes 260xx"""
INSTANCE_TYPE_INVALID_ARGUMENT: _StatusCode.ValueType # 26001
INSTANCE_TYPE_INVALID_REQUEST: _StatusCode.ValueType # 26002
INPUT_DOWNLOAD_SUCCESS: _StatusCode.ValueType # 30000
INPUT_SUCCESS: _StatusCode.ValueType # 30000
"""Input:Image related 30xxx"""
INPUT_DOWNLOAD_PENDING: _StatusCode.ValueType # 30001
INPUT_PENDING: _StatusCode.ValueType # 30001
"""when things are async, this is the default status."""
INPUT_DOWNLOAD_FAILED: _StatusCode.ValueType # 30002
INPUT_FAILED: _StatusCode.ValueType # 30002
"""any type of error downloading and processing"""
INPUT_IN_PROGRESS: _StatusCode.ValueType # 30003
INPUT_DOWNLOAD_SUCCESS: _StatusCode.ValueType # 30000
"""use INPUT_SUCCESS, INPUT_PENDING, INPUT_FAILED, INPUT_IN_PROGRESS instead
DOWNLOAD is no longer correct, but keep old statuses for backward compatibility
"""
INPUT_DOWNLOAD_PENDING: _StatusCode.ValueType # 30001
INPUT_DOWNLOAD_FAILED: _StatusCode.ValueType # 30002
INPUT_DOWNLOAD_IN_PROGRESS: _StatusCode.ValueType # 30003
INPUT_STATUS_UPDATE_FAILED: _StatusCode.ValueType # 30004
INPUT_DELETE_FAILED: _StatusCode.ValueType # 30005
Expand Down Expand Up @@ -692,6 +702,9 @@ MODEL_QUEUED_FOR_DEPLOYMENT: StatusCode.ValueType # 21352
"""Used when training is completed"""
MODEL_NOT_DEPLOYED: StatusCode.ValueType # 21353
"""Used when model spire deployment is manually taken down or due to inactivity"""
MODEL_BUSY_PLEASE_RETRY: StatusCode.ValueType # 21354
MODEL_LOADING: StatusCode.ValueType # 21355
"""Used when the model pod is running, but not yet ready to serve requests."""
MODEL_REFERENCE_INVALID_ARGUMENT: StatusCode.ValueType # 21400
"""Used when a model reference field is not set properly"""
MODEL_EXAMPLE_INPUT_INVALID_ARGUMENT: StatusCode.ValueType # 21420
Expand Down Expand Up @@ -811,12 +824,19 @@ INSTANCE_TYPE_DOES_NOT_EXIST: StatusCode.ValueType # 26000
"""InstanceType related codes 260xx"""
INSTANCE_TYPE_INVALID_ARGUMENT: StatusCode.ValueType # 26001
INSTANCE_TYPE_INVALID_REQUEST: StatusCode.ValueType # 26002
INPUT_DOWNLOAD_SUCCESS: StatusCode.ValueType # 30000
INPUT_SUCCESS: StatusCode.ValueType # 30000
"""Input:Image related 30xxx"""
INPUT_DOWNLOAD_PENDING: StatusCode.ValueType # 30001
INPUT_PENDING: StatusCode.ValueType # 30001
"""when things are async, this is the default status."""
INPUT_DOWNLOAD_FAILED: StatusCode.ValueType # 30002
INPUT_FAILED: StatusCode.ValueType # 30002
"""any type of error downloading and processing"""
INPUT_IN_PROGRESS: StatusCode.ValueType # 30003
INPUT_DOWNLOAD_SUCCESS: StatusCode.ValueType # 30000
"""use INPUT_SUCCESS, INPUT_PENDING, INPUT_FAILED, INPUT_IN_PROGRESS instead
DOWNLOAD is no longer correct, but keep old statuses for backward compatibility
"""
INPUT_DOWNLOAD_PENDING: StatusCode.ValueType # 30001
INPUT_DOWNLOAD_FAILED: StatusCode.ValueType # 30002
INPUT_DOWNLOAD_IN_PROGRESS: StatusCode.ValueType # 30003
INPUT_STATUS_UPDATE_FAILED: StatusCode.ValueType # 30004
INPUT_DELETE_FAILED: StatusCode.ValueType # 30005
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

setuptools.setup(
name="clarifai-grpc",
version="10.11.3",
version="11.0.0",
author="Clarifai",
author_email="[email protected]",
description="Clarifai gRPC API Client",
Expand Down

0 comments on commit f6d6e4a

Please sign in to comment.