Skip to content

Commit

Permalink
Version 9.5.0 (#138)
Browse files Browse the repository at this point in the history
* Version 9.5.0

* Version 9.5.0

---------

Co-authored-by: Yvette Zhang <[email protected]>
  • Loading branch information
YvetteZ2017 and YvetteClarifai authored Jun 1, 2023
1 parent 90aabe8 commit 139a07c
Show file tree
Hide file tree
Showing 9 changed files with 1,402 additions and 930 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
9.4.0
9.5.0
841 changes: 428 additions & 413 deletions clarifai_grpc/grpc/api/resources_pb2.py

Large diffs are not rendered by default.

390 changes: 369 additions & 21 deletions clarifai_grpc/grpc/api/resources_pb2.pyi

Large diffs are not rendered by default.

976 changes: 491 additions & 485 deletions clarifai_grpc/grpc/api/service_pb2.py

Large diffs are not rendered by default.

70 changes: 66 additions & 4 deletions clarifai_grpc/grpc/api/service_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -1733,6 +1733,26 @@ class GetInputRequest(google.protobuf.message.Message):

global___GetInputRequest = GetInputRequest

@typing_extensions.final
class GetVideoManifestRequest(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

USER_APP_ID_FIELD_NUMBER: builtins.int
INPUT_ID_FIELD_NUMBER: builtins.int
@property
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
input_id: builtins.str
def __init__(
self,
*,
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
input_id: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["input_id", b"input_id", "user_app_id", b"user_app_id"]) -> None: ...

global___GetVideoManifestRequest = GetVideoManifestRequest

@typing_extensions.final
class GetInputSamplesRequest(google.protobuf.message.Message):
"""GetInputSamplesRequest"""
Expand Down Expand Up @@ -1976,6 +1996,26 @@ class SingleInputResponse(google.protobuf.message.Message):

global___SingleInputResponse = SingleInputResponse

@typing_extensions.final
class GetVideoManifestResponse(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

STATUS_FIELD_NUMBER: builtins.int
MANIFEST_URL_FIELD_NUMBER: builtins.int
@property
def status(self) -> proto.clarifai.api.status.status_pb2.Status: ...
manifest_url: builtins.str
def __init__(
self,
*,
status: proto.clarifai.api.status.status_pb2.Status | None = ...,
manifest_url: builtins.str = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["status", b"status"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["manifest_url", b"manifest_url", "status", b"status"]) -> None: ...

global___GetVideoManifestResponse = GetVideoManifestResponse

@typing_extensions.final
class MultiInputResponse(google.protobuf.message.Message):
"""MultiInputResponse"""
Expand Down Expand Up @@ -2077,6 +2117,8 @@ class ListDatasetsRequest(google.protobuf.message.Message):
USER_APP_ID_FIELD_NUMBER: builtins.int
PAGE_FIELD_NUMBER: builtins.int
PER_PAGE_FIELD_NUMBER: builtins.int
STARRED_ONLY_FIELD_NUMBER: builtins.int
ADDITIONAL_FIELDS_FIELD_NUMBER: builtins.int
@property
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
page: builtins.int
Expand All @@ -2087,15 +2129,20 @@ class ListDatasetsRequest(google.protobuf.message.Message):
"""(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.
"""
starred_only: builtins.bool
@property
def additional_fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
def __init__(
self,
*,
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
page: builtins.int = ...,
per_page: builtins.int = ...,
starred_only: builtins.bool = ...,
additional_fields: collections.abc.Iterable[builtins.str] | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["page", b"page", "per_page", b"per_page", "user_app_id", b"user_app_id"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["additional_fields", b"additional_fields", "page", b"page", "per_page", b"per_page", "starred_only", b"starred_only", "user_app_id", b"user_app_id"]) -> None: ...

global___ListDatasetsRequest = ListDatasetsRequest

Expand All @@ -2107,18 +2154,22 @@ class GetDatasetRequest(google.protobuf.message.Message):

USER_APP_ID_FIELD_NUMBER: builtins.int
DATASET_ID_FIELD_NUMBER: builtins.int
ADDITIONAL_FIELDS_FIELD_NUMBER: builtins.int
@property
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
dataset_id: builtins.str
"""Identify dataset by id."""
@property
def additional_fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
def __init__(
self,
*,
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
dataset_id: builtins.str = ...,
additional_fields: collections.abc.Iterable[builtins.str] | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["dataset_id", b"dataset_id", "user_app_id", b"user_app_id"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["additional_fields", b"additional_fields", "dataset_id", b"dataset_id", "user_app_id", b"user_app_id"]) -> None: ...

global___GetDatasetRequest = GetDatasetRequest

Expand Down Expand Up @@ -7234,17 +7285,21 @@ class GetModuleRequest(google.protobuf.message.Message):

USER_APP_ID_FIELD_NUMBER: builtins.int
MODULE_ID_FIELD_NUMBER: builtins.int
ADDITIONAL_FIELDS_FIELD_NUMBER: builtins.int
@property
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
module_id: builtins.str
@property
def additional_fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
def __init__(
self,
*,
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
module_id: builtins.str = ...,
additional_fields: collections.abc.Iterable[builtins.str] | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["module_id", b"module_id", "user_app_id", b"user_app_id"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["additional_fields", b"additional_fields", "module_id", b"module_id", "user_app_id", b"user_app_id"]) -> None: ...

global___GetModuleRequest = GetModuleRequest

Expand All @@ -7257,6 +7312,8 @@ class ListModulesRequest(google.protobuf.message.Message):
USER_APP_ID_FIELD_NUMBER: builtins.int
PAGE_FIELD_NUMBER: builtins.int
PER_PAGE_FIELD_NUMBER: builtins.int
STARRED_ONLY_FIELD_NUMBER: builtins.int
ADDITIONAL_FIELDS_FIELD_NUMBER: builtins.int
@property
def user_app_id(self) -> proto.clarifai.api.resources_pb2.UserAppIDSet: ...
page: builtins.int
Expand All @@ -7267,15 +7324,20 @@ class ListModulesRequest(google.protobuf.message.Message):
"""(optional URL parameter) The number of results that will be contained in each page. Defaults
to 128.
"""
starred_only: builtins.bool
@property
def additional_fields(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
def __init__(
self,
*,
user_app_id: proto.clarifai.api.resources_pb2.UserAppIDSet | None = ...,
page: builtins.int = ...,
per_page: builtins.int = ...,
starred_only: builtins.bool = ...,
additional_fields: collections.abc.Iterable[builtins.str] | None = ...,
) -> None: ...
def HasField(self, field_name: typing_extensions.Literal["user_app_id", b"user_app_id"]) -> builtins.bool: ...
def ClearField(self, field_name: typing_extensions.Literal["page", b"page", "per_page", b"per_page", "user_app_id", b"user_app_id"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["additional_fields", b"additional_fields", "page", b"page", "per_page", b"per_page", "starred_only", b"starred_only", "user_app_id", b"user_app_id"]) -> None: ...

global___ListModulesRequest = ListModulesRequest

Expand Down
39 changes: 36 additions & 3 deletions clarifai_grpc/grpc/api/service_pb2_grpc.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,11 @@ def __init__(self, channel):
request_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.GetInputRequest.SerializeToString,
response_deserializer=wrap_response_deserializer(proto_dot_clarifai_dot_api_dot_service__pb2.SingleInputResponse),
)
self.GetInputVideoManifest = channel.unary_unary(
'/clarifai.api.V2/GetInputVideoManifest',
request_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.GetVideoManifestRequest.SerializeToString,
response_deserializer=wrap_response_deserializer(proto_dot_clarifai_dot_api_dot_service__pb2.GetVideoManifestResponse),
)
self.ListInputs = channel.unary_unary(
'/clarifai.api.V2/ListInputs',
request_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.ListInputsRequest.SerializeToString,
Expand Down Expand Up @@ -1282,6 +1287,13 @@ def GetInput(self, request, context):
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def GetInputVideoManifest(self, request, context):
"""Get a video input manifest.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
raise NotImplementedError('Method not implemented!')

def ListInputs(self, request, context):
"""List all the inputs.
"""
Expand All @@ -1290,9 +1302,8 @@ def ListInputs(self, request, context):
raise NotImplementedError('Method not implemented!')

def PostInputs(self, request, context):
"""Add an input (or set of inputs) to an app.
This call is synchronous if the PostInputsRequest contains exactly one image input. Otherwise,
it is asynchronous.
"""Add 1 or more input to an app.
The actual inputs processing is asynchronous.
"""
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
context.set_details('Method not implemented!')
Expand Down Expand Up @@ -2706,6 +2717,11 @@ def add_V2Servicer_to_server(servicer, server):
request_deserializer=proto_dot_clarifai_dot_api_dot_service__pb2.GetInputRequest.FromString,
response_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.SingleInputResponse.SerializeToString,
),
'GetInputVideoManifest': grpc.unary_unary_rpc_method_handler(
servicer.GetInputVideoManifest,
request_deserializer=proto_dot_clarifai_dot_api_dot_service__pb2.GetVideoManifestRequest.FromString,
response_serializer=proto_dot_clarifai_dot_api_dot_service__pb2.GetVideoManifestResponse.SerializeToString,
),
'ListInputs': grpc.unary_unary_rpc_method_handler(
servicer.ListInputs,
request_deserializer=proto_dot_clarifai_dot_api_dot_service__pb2.ListInputsRequest.FromString,
Expand Down Expand Up @@ -4104,6 +4120,23 @@ def GetInput(request,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def GetInputVideoManifest(request,
target,
options=(),
channel_credentials=None,
call_credentials=None,
insecure=False,
compression=None,
wait_for_ready=None,
timeout=None,
metadata=None):
return grpc.experimental.unary_unary(request, target, '/clarifai.api.V2/GetInputVideoManifest',
proto_dot_clarifai_dot_api_dot_service__pb2.GetVideoManifestRequest.SerializeToString,
proto_dot_clarifai_dot_api_dot_service__pb2.GetVideoManifestResponse.FromString,
options, channel_credentials,
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)

@staticmethod
def ListInputs(request,
target,
Expand Down
8 changes: 6 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 @@ -200,6 +200,7 @@ class _StatusCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enu
DATA_DUMP_FAILED: _StatusCode.ValueType # 25152
DATA_DUMP_IN_PROGRESS: _StatusCode.ValueType # 25153
DATA_DUMP_NO_DATA: _StatusCode.ValueType # 25154
"""DEPRECATED: Not used anymore. Now for an empty data dump, DATA_DUMP_SUCCESS is returned. To detect an empty data dump, check if the inptus count is 0."""
DATA_DUMP_UNEXPECTED_ERROR: _StatusCode.ValueType # 25155
DATA_DUMP_EXPORT_SUCCESS: _StatusCode.ValueType # 25170
DATA_DUMP_EXPORT_PENDING: _StatusCode.ValueType # 25171
Expand Down Expand Up @@ -273,6 +274,7 @@ class _StatusCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enu
INPUT_CONNECTION_FAILED: _StatusCode.ValueType # 39996
REQUEST_DISABLED_FOR_MAINTENANCE: _StatusCode.ValueType # 39997
INPUT_WRITES_DISABLED_FOR_MAINTENANCE: _StatusCode.ValueType # 39998
"""deprecate this one. Use REQUEST_DISABLED_FOR_MAINTENANCE"""
INPUT_INVALID_REQUEST: _StatusCode.ValueType # 39999
PREDICT_INVALID_REQUEST: _StatusCode.ValueType # 40001
"""API formatting issues 4000x"""
Expand Down Expand Up @@ -672,6 +674,7 @@ DATA_DUMP_PENDING: StatusCode.ValueType # 25151
DATA_DUMP_FAILED: StatusCode.ValueType # 25152
DATA_DUMP_IN_PROGRESS: StatusCode.ValueType # 25153
DATA_DUMP_NO_DATA: StatusCode.ValueType # 25154
"""DEPRECATED: Not used anymore. Now for an empty data dump, DATA_DUMP_SUCCESS is returned. To detect an empty data dump, check if the inptus count is 0."""
DATA_DUMP_UNEXPECTED_ERROR: StatusCode.ValueType # 25155
DATA_DUMP_EXPORT_SUCCESS: StatusCode.ValueType # 25170
DATA_DUMP_EXPORT_PENDING: StatusCode.ValueType # 25171
Expand Down Expand Up @@ -745,6 +748,7 @@ ALL_INPUT_VIDEOS_INVALID_BYTES: StatusCode.ValueType # 31300
INPUT_CONNECTION_FAILED: StatusCode.ValueType # 39996
REQUEST_DISABLED_FOR_MAINTENANCE: StatusCode.ValueType # 39997
INPUT_WRITES_DISABLED_FOR_MAINTENANCE: StatusCode.ValueType # 39998
"""deprecate this one. Use REQUEST_DISABLED_FOR_MAINTENANCE"""
INPUT_INVALID_REQUEST: StatusCode.ValueType # 39999
PREDICT_INVALID_REQUEST: StatusCode.ValueType # 40001
"""API formatting issues 4000x"""
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="9.4.0",
version="9.5.0",
author="Clarifai",
author_email="[email protected]",
description="Clarifai gRPC API Client",
Expand Down

0 comments on commit 139a07c

Please sign in to comment.