Skip to content

Commit

Permalink
GRPC clients version 10.9.11
Browse files Browse the repository at this point in the history
  • Loading branch information
clarifai-prod committed Oct 23, 2024
1 parent ea82321 commit cfb06c8
Show file tree
Hide file tree
Showing 7 changed files with 241 additions and 222 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.9.10
10.9.11
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.10"
CLIENT_VERSION = "10.9.11"
OS_VER = os.sys.platform
PYTHON_VERSION = ".".join(
map(
Expand Down
416 changes: 209 additions & 207 deletions clarifai_grpc/grpc/api/resources_pb2.py

Large diffs are not rendered by default.

29 changes: 21 additions & 8 deletions clarifai_grpc/grpc/api/resources_pb2.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -7282,12 +7282,7 @@ class TaskReviewManualStrategyInfo(google.protobuf.message.Message):
sample_percentage: builtins.float
"""This field represents the percentage of inputs that will be reviewed by reviewers. It is a value between 0 and 1."""
approval_threshold: builtins.int
"""The number of reviewers that need to agree in order to approve an input.
Currently, the only allowed values are:
0 - when not set, it defaults to 1
1 - only a single reviewer needs to approve each labeled input
-1 - an input will be approved when all reviewers approve it
"""
"""Deprecated: Use consensus_strategy_info.approval_threshold_reviewers."""
def __init__(
self,
*,
Expand All @@ -7305,14 +7300,32 @@ class TaskReviewConsensusStrategyInfo(google.protobuf.message.Message):
DESCRIPTOR: google.protobuf.descriptor.Descriptor

APPROVAL_THRESHOLD_FIELD_NUMBER: builtins.int
APPROVAL_THRESHOLD_LABELERS_FIELD_NUMBER: builtins.int
APPROVAL_THRESHOLD_REVIEWERS_FIELD_NUMBER: builtins.int
approval_threshold: builtins.int
"""The number of labelers that need to agree in order to automatically approve an annotation."""
"""Deprecated: Use approval_threshold_labelers."""
approval_threshold_labelers: builtins.int
"""The number of labelers that need to agree in order to automatically approve an annotation.
When 0, labelers consensus is disabled.
When 1, the labels are automatically approved once a single labeler labels the input.
When greater than 1, the labels are automatically approved when the specified number of labelers agree.
If the number of labelers that agree is less than the specified number, then the input will reviewed by reviewers.
"""
approval_threshold_reviewers: builtins.int
"""The number of reviewers that need to agree in order to approve an input.
Currently, the only allowed values are:
0 - when not set, it defaults to 1
1 - only a single reviewer needs to approve each labeled input
-1 - an input will be approved when all reviewers approve it
"""
def __init__(
self,
*,
approval_threshold: builtins.int = ...,
approval_threshold_labelers: builtins.int = ...,
approval_threshold_reviewers: builtins.int = ...,
) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["approval_threshold", b"approval_threshold"]) -> None: ...
def ClearField(self, field_name: typing_extensions.Literal["approval_threshold", b"approval_threshold", "approval_threshold_labelers", b"approval_threshold_labelers", "approval_threshold_reviewers", b"approval_threshold_reviewers"]) -> None: ...

global___TaskReviewConsensusStrategyInfo = TaskReviewConsensusStrategyInfo

Expand Down
8 changes: 4 additions & 4 deletions clarifai_grpc/grpc/api/service_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 @@ -191,7 +191,9 @@ class _StatusCodeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._Enu
ANNOTATION_INVALID_ARGUMENT: _StatusCode.ValueType # 24155
ANNOTATION_PERMISSION_DENIED: _StatusCode.ValueType # 24156
ANNOTATION_AWAITING_REVIEW: _StatusCode.ValueType # 24157
"""Annotation is awaiting review from task REVIEWERS."""
ANNOTATION_AWAITING_CONSENSUS_REVIEW: _StatusCode.ValueType # 24159
"""Annotation is awaiting consensus review from task LABELERS."""
ANNOTATION_REVIEW_DENIED: _StatusCode.ValueType # 24158
ANNOTATION_MODIFY_SUCCESS: _StatusCode.ValueType # 24250
ANNOTATION_MODIFY_PENDING: _StatusCode.ValueType # 24251
Expand Down Expand Up @@ -729,7 +731,9 @@ ANNOTATION_UNKNOWN_STATUS: StatusCode.ValueType # 24154
ANNOTATION_INVALID_ARGUMENT: StatusCode.ValueType # 24155
ANNOTATION_PERMISSION_DENIED: StatusCode.ValueType # 24156
ANNOTATION_AWAITING_REVIEW: StatusCode.ValueType # 24157
"""Annotation is awaiting review from task REVIEWERS."""
ANNOTATION_AWAITING_CONSENSUS_REVIEW: StatusCode.ValueType # 24159
"""Annotation is awaiting consensus review from task LABELERS."""
ANNOTATION_REVIEW_DENIED: StatusCode.ValueType # 24158
ANNOTATION_MODIFY_SUCCESS: StatusCode.ValueType # 24250
ANNOTATION_MODIFY_PENDING: StatusCode.ValueType # 24251
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.10",
version="10.9.11",
author="Clarifai",
author_email="[email protected]",
description="Clarifai gRPC API Client",
Expand Down

0 comments on commit cfb06c8

Please sign in to comment.