Skip to content

Commit

Permalink
GRPC clients version 10.9.5
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Oct 16, 2024
1 parent e523465 commit d03a9f3
Show file tree
Hide file tree
Showing 10 changed files with 550 additions and 468 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.9.4
10.9.5
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.9.4"
CLIENT_VERSION = "10.9.5"
OS_VER = os.sys.platform
PYTHON_VERSION = ".".join(
map(
Expand Down
920 changes: 462 additions & 458 deletions clarifai_grpc/grpc/api/resources_pb2.py

Large diffs are not rendered by default.

74 changes: 72 additions & 2 deletions clarifai_grpc/grpc/api/resources_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1741,6 +1741,8 @@ class Data(google.protobuf.message.Message):
TIME_SEGMENTS_FIELD_NUMBER: builtins.int
HITS_FIELD_NUMBER: builtins.int
HEATMAPS_FIELD_NUMBER: builtins.int
PARTS_FIELD_NUMBER: builtins.int
NDARRAY_FIELD_NUMBER: builtins.int
@property
def image(self) -> global___Image:
"""Input and output images."""
Expand Down Expand Up @@ -1791,6 +1793,16 @@ class Data(google.protobuf.message.Message):
@property
def heatmaps(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Image]:
"""Heatmap as 2d image"""
@property
def parts(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Part]:
"""For data messages that have multiple parts such as multi-modal
requests, we allow you to specify those as a list of Data objects.
"""
@property
def ndarray(self) -> global___NDArray:
"""A proto representation for numpy arrays, useful to pass information from python SDK to a
python based model implementation.
"""
def __init__(
self,
*,
Expand All @@ -1810,12 +1822,34 @@ class Data(google.protobuf.message.Message):
time_segments: collections.abc.Iterable[global___TimeSegment] | None = ...,
hits: collections.abc.Iterable[global___Hit] | None = ...,
heatmaps: collections.abc.Iterable[global___Image] | None = ...,
parts: collections.abc.Iterable[global___Part] | None = ...,
ndarray: global___NDArray | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["audio", b"audio", "geo", b"geo", "image", b"image", "metadata", b"metadata", "text", b"text", "video", b"video"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["audio", b"audio", "clusters", b"clusters", "colors", b"colors", "concepts", b"concepts", "embeddings", b"embeddings", "frames", b"frames", "geo", b"geo", "heatmaps", b"heatmaps", "hits", b"hits", "image", b"image", "metadata", b"metadata", "regions", b"regions", "text", b"text", "time_segments", b"time_segments", "tracks", b"tracks", "video", b"video"]) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["audio", b"audio", "geo", b"geo", "image", b"image", "metadata", b"metadata", "ndarray", b"ndarray", "text", b"text", "video", b"video"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["audio", b"audio", "clusters", b"clusters", "colors", b"colors", "concepts", b"concepts", "embeddings", b"embeddings", "frames", b"frames", "geo", b"geo", "heatmaps", b"heatmaps", "hits", b"hits", "image", b"image", "metadata", b"metadata", "ndarray", b"ndarray", "parts", b"parts", "regions", b"regions", "text", b"text", "time_segments", b"time_segments", "tracks", b"tracks", "video", b"video"]) -> None: ...

global___Data = Data

@typing_extensions.final
class Part(google.protobuf.message.Message):
"""A part of data used for multi-modal processing."""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

DATA_FIELD_NUMBER: builtins.int
@property
def data(self) -> global___Data:
"""The data for this part."""
def __init__(
self,
*,
data: global___Data | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["data", b"data"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["data", b"data"]) -> None: ...

global___Part = Part

@typing_extensions.final
class Region(google.protobuf.message.Message):
"""A region within the data."""
Expand Down Expand Up @@ -1998,6 +2032,42 @@ class Frame(google.protobuf.message.Message):

global___Frame = Frame

@typing_extensions.final
class NDArray(google.protobuf.message.Message):
"""A representation of a numpy array as a proto.
To convert a numpy array 'ndarray' to this proto do:
NDArray(buffer=ndarray.tobytes(), shape=ndarray.shape, dtype=str(ndarray.dtype))
To convert this proto 'ndarray_proto' to a numpy array:
array = np.frombuffer(ndarray_proto.buffer, dtype=ndarray_proto.dtype)
array = array.reshape(tuple(ndarray_proto.shape))
"""

DESCRIPTOR: google.protobuf.descriptor.Descriptor

BUFFER_FIELD_NUMBER: builtins.int
SHAPE_FIELD_NUMBER: builtins.int
DTYPE_FIELD_NUMBER: builtins.int
buffer: builtins.bytes
"""The bytes of data from the array from array.tobytes()"""
@property
def shape(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.int]:
"""Simply the shape of the numpy array. array.shape."""
dtype: builtins.str
"""Dtype for numpy. You can get it back from this string format using:
np.dtype('float32') for example.
"""
def __init__(
self,
*,
buffer: builtins.bytes = ...,
shape: collections.abc.Iterable[builtins.int] | None = ...,
dtype: builtins.str = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["buffer", b"buffer", "dtype", b"dtype", "shape", b"shape"]) -> None: ...

global___NDArray = NDArray

@typing_extensions.final
class Mask(google.protobuf.message.Message):
"""Segmentation mask."""
Expand Down
2 changes: 1 addition & 1 deletion clarifai_grpc/grpc/api/service_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class V2Stub(object):
"""

def __init__(self, channel):
from clarifai_grpc.channel.clarifai_channel import wrap_response_deserializer
from clarifai_grpc.channel.clarifai_channel import wrap_response_deserializer
"""Constructor.
Args:
Expand Down
4 changes: 2 additions & 2 deletions clarifai_grpc/grpc/api/status/status_code_pb2.py

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions clarifai_grpc/grpc/api/status/status_code_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ class _StatusCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enu
UPLOAD_CONFLICT: _StatusCode.ValueType # 68006
BILLING_INVALID_INFO: _StatusCode.ValueType # 69000
"""Billing related issues: 69xxx"""
LOG_ENTRIES_INVALID_REQUEST: _StatusCode.ValueType # 70000
"""Logs related issues: 70000;"""
INTERNAL_SERVER_ISSUE: _StatusCode.ValueType # 98004
"""Internal issues: 98xxx"""
INTERNAL_FETCHING_ISSUE: _StatusCode.ValueType # 98005
Expand Down Expand Up @@ -1065,6 +1067,8 @@ UPLOAD_CANCELED: StatusCode.ValueType # 68005
UPLOAD_CONFLICT: StatusCode.ValueType # 68006
BILLING_INVALID_INFO: StatusCode.ValueType # 69000
"""Billing related issues: 69xxx"""
LOG_ENTRIES_INVALID_REQUEST: StatusCode.ValueType # 70000
"""Logs related issues: 70000;"""
INTERNAL_SERVER_ISSUE: StatusCode.ValueType # 98004
"""Internal issues: 98xxx"""
INTERNAL_FETCHING_ISSUE: StatusCode.ValueType # 98005
Expand Down
6 changes: 4 additions & 2 deletions clarifai_grpc/grpc/auth/scope/scope_pb2.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions clarifai_grpc/grpc/auth/scope/scope_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,7 @@ class _SEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrap
Deployments_Delete: _S.ValueType # 146
InstanceTypes_Get: _S.ValueType # 148
AuditLogs_Get: _S.ValueType # 149
LogEntries_Get: _S.ValueType # 151

class S(_S, metaclass=_SEnumTypeWrapper):
"""Next index: 41
Expand Down Expand Up @@ -469,6 +470,7 @@ Deployments_Add: S.ValueType # 145
Deployments_Delete: S.ValueType # 146
InstanceTypes_Get: S.ValueType # 148
AuditLogs_Get: S.ValueType # 149
LogEntries_Get: S.ValueType # 151
global___S = S

@typing_extensions.final
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.9.4",
version="10.9.5",
author="Clarifai",
author_email="[email protected]",
description="Clarifai gRPC API Client",
Expand Down

0 comments on commit d03a9f3

Please sign in to comment.