yandexcloud 0.339.0__py3-none-any.whl → 0.341.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yandexcloud might be problematic. Click here for more details.
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.py +9 -3
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.pyi +46 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.py +8 -6
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.pyi +26 -3
- yandex/cloud/ai/batch_inference/__init__.py +0 -0
- yandex/cloud/ai/batch_inference/v1/__init__.py +0 -0
- yandex/cloud/ai/batch_inference/v1/batch_inference_service_pb2.py +67 -0
- yandex/cloud/ai/batch_inference/v1/batch_inference_service_pb2.pyi +195 -0
- yandex/cloud/ai/batch_inference/v1/batch_inference_service_pb2_grpc.py +230 -0
- yandex/cloud/ai/batch_inference/v1/batch_inference_service_pb2_grpc.pyi +104 -0
- yandex/cloud/ai/batch_inference/v1/batch_inference_task_pb2.py +45 -0
- yandex/cloud/ai/batch_inference/v1/batch_inference_task_pb2.pyi +119 -0
- yandex/cloud/ai/batch_inference/v1/batch_inference_task_pb2_grpc.py +24 -0
- yandex/cloud/ai/batch_inference/v1/batch_inference_task_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/batch_inference/v1/inference_options_pb2.py +52 -0
- yandex/cloud/ai/batch_inference/v1/inference_options_pb2.pyi +126 -0
- yandex/cloud/ai/batch_inference/v1/inference_options_pb2_grpc.py +24 -0
- yandex/cloud/ai/batch_inference/v1/inference_options_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2.py +8 -8
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2.pyi +15 -7
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2_grpc.py +2 -2
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2_grpc.pyi +6 -6
- yandex/cloud/ai/stt/v3/stt_pb2.py +5 -3
- yandex/cloud/ai/stt/v3/stt_pb2.pyi +16 -0
- yandex/cloud/ai/translate/v2/translation_service_pb2.pyi +1 -1
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.py +8 -4
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.pyi +16 -4
- yandex/cloud/ai/vision/v1/vision_service_pb2.pyi +1 -1
- yandex/cloud/billing/v1/budget_pb2.pyi +4 -4
- yandex/cloud/cdn/v1/shielding_pb2.py +37 -0
- yandex/cloud/cdn/v1/shielding_pb2.pyi +41 -0
- yandex/cloud/cdn/v1/shielding_pb2_grpc.py +24 -0
- yandex/cloud/cdn/v1/shielding_pb2_grpc.pyi +17 -0
- yandex/cloud/cdn/v1/shielding_service_pb2.py +89 -0
- yandex/cloud/cdn/v1/shielding_service_pb2.pyi +201 -0
- yandex/cloud/cdn/v1/shielding_service_pb2_grpc.py +281 -0
- yandex/cloud/cdn/v1/shielding_service_pb2_grpc.pyi +141 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2.py +6 -8
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.py +40 -24
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.pyi +72 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.py +90 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.pyi +52 -0
- yandex/cloud/compute/v1/instancegroup/instance_group_pb2.pyi +1 -1
- yandex/cloud/compute/v1/instancegroup/instance_group_service_pb2.py +4 -4
- yandex/cloud/dataproc/v1/cluster_pb2.py +10 -10
- yandex/cloud/dataproc/v1/cluster_pb2.pyi +5 -1
- yandex/cloud/k8s/v1/cluster_service_pb2.py +80 -73
- yandex/cloud/k8s/v1/cluster_service_pb2_grpc.py +133 -0
- yandex/cloud/k8s/v1/cluster_service_pb2_grpc.pyi +61 -0
- yandex/cloud/kms/v1/symmetric_key_service_pb2.py +50 -48
- yandex/cloud/logging/v1/log_entry_pb2.py +12 -12
- yandex/cloud/mdb/clickhouse/v1/cluster_extension_pb2.py +46 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_extension_pb2.pyi +53 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_extension_pb2_grpc.py +24 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_extension_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_extension_service_pb2.py +106 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_extension_service_pb2.pyi +248 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_extension_service_pb2_grpc.py +315 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_extension_service_pb2_grpc.pyi +131 -0
- yandex/cloud/mdb/clickhouse/v1/extension_pb2.py +44 -0
- yandex/cloud/mdb/clickhouse/v1/extension_pb2.pyi +59 -0
- yandex/cloud/mdb/clickhouse/v1/extension_pb2_grpc.py +24 -0
- yandex/cloud/mdb/clickhouse/v1/extension_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/clickhouse/v1/extension_service_pb2.py +60 -0
- yandex/cloud/mdb/clickhouse/v1/extension_service_pb2.pyi +72 -0
- yandex/cloud/mdb/clickhouse/v1/extension_service_pb2_grpc.py +141 -0
- yandex/cloud/mdb/clickhouse/v1/extension_service_pb2_grpc.pyi +59 -0
- yandex/cloud/mdb/greenplum/v1/cluster_service_pb2.py +59 -43
- yandex/cloud/mdb/greenplum/v1/cluster_service_pb2.pyi +67 -0
- yandex/cloud/mdb/greenplum/v1/cluster_service_pb2_grpc.py +44 -0
- yandex/cloud/mdb/greenplum/v1/cluster_service_pb2_grpc.pyi +20 -0
- yandex/cloud/mdb/greenplum/v1/user_pb2.py +44 -0
- yandex/cloud/mdb/greenplum/v1/user_pb2.pyi +35 -0
- yandex/cloud/mdb/greenplum/v1/user_pb2_grpc.py +24 -0
- yandex/cloud/mdb/greenplum/v1/user_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/greenplum/v1/user_service_pb2.py +101 -0
- yandex/cloud/mdb/greenplum/v1/user_service_pb2.pyi +187 -0
- yandex/cloud/mdb/greenplum/v1/user_service_pb2_grpc.py +231 -0
- yandex/cloud/mdb/greenplum/v1/user_service_pb2_grpc.pyi +105 -0
- yandex/cloud/mdb/mysql/v1/user_pb2.py +4 -4
- yandex/cloud/mdb/mysql/v1/user_pb2.pyi +4 -0
- yandex/cloud/mdb/opensearch/v1/extension/__init__.py +0 -0
- yandex/cloud/mdb/opensearch/v1/extension/extension_type_pb2.py +37 -0
- yandex/cloud/mdb/opensearch/v1/extension/extension_type_pb2.pyi +34 -0
- yandex/cloud/mdb/opensearch/v1/extension/extension_type_pb2_grpc.py +24 -0
- yandex/cloud/mdb/opensearch/v1/extension/extension_type_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/opensearch/v1/extension_pb2.py +47 -0
- yandex/cloud/mdb/opensearch/v1/extension_pb2.pyi +77 -0
- yandex/cloud/mdb/opensearch/v1/extension_pb2_grpc.py +24 -0
- yandex/cloud/mdb/opensearch/v1/extension_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/opensearch/v1/extension_service_pb2.py +104 -0
- yandex/cloud/mdb/opensearch/v1/extension_service_pb2.pyi +215 -0
- yandex/cloud/mdb/opensearch/v1/extension_service_pb2_grpc.py +276 -0
- yandex/cloud/mdb/opensearch/v1/extension_service_pb2_grpc.pyi +126 -0
- yandex/cloud/mdb/spqr/v1/cluster_service_pb2.py +120 -120
- yandex/cloud/mdb/spqr/v1/cluster_service_pb2.pyi +8 -2
- yandex/cloud/monitoring/v3/timeline_pb2.py +2 -2
- yandex/cloud/monitoring/v3/timeline_pb2.pyi +4 -2
- yandex/cloud/organizationmanager/v1/user_account_pb2.pyi +1 -1
- yandex/cloud/video/v1/channel_service_pb2.pyi +5 -2
- yandex/cloud/video/v1/episode_service_pb2.pyi +5 -2
- yandex/cloud/video/v1/playlist_service_pb2.pyi +5 -2
- yandex/cloud/video/v1/stream_line_service_pb2.pyi +5 -2
- yandex/cloud/video/v1/stream_service_pb2.pyi +5 -2
- yandex/cloud/video/v1/video_service_pb2.pyi +5 -2
- yandexcloud/__init__.py +1 -1
- yandexcloud/_sdk.py +1 -0
- yandexcloud/_wrappers/__init__.py +15 -0
- yandexcloud/_wrappers/spark/__init__.py +603 -0
- {yandexcloud-0.339.0.dist-info → yandexcloud-0.341.0.dist-info}/METADATA +2 -1
- {yandexcloud-0.339.0.dist-info → yandexcloud-0.341.0.dist-info}/RECORD +115 -55
- {yandexcloud-0.339.0.dist-info → yandexcloud-0.341.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.339.0.dist-info → yandexcloud-0.341.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.339.0.dist-info → yandexcloud-0.341.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.339.0.dist-info → yandexcloud-0.341.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
from yandex.cloud.ai.batch_inference.v1 import batch_inference_service_pb2 as yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2
|
|
7
|
+
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.70.0'
|
|
9
|
+
GRPC_VERSION = grpc.__version__
|
|
10
|
+
_version_not_supported = False
|
|
11
|
+
|
|
12
|
+
try:
|
|
13
|
+
from grpc._utilities import first_version_is_lower
|
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
15
|
+
except ImportError:
|
|
16
|
+
_version_not_supported = True
|
|
17
|
+
|
|
18
|
+
if _version_not_supported:
|
|
19
|
+
raise RuntimeError(
|
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
+
+ f' but the generated code in yandex/cloud/ai/batch_inference/v1/batch_inference_service_pb2_grpc.py depends on'
|
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class BatchInferenceServiceStub(object):
|
|
29
|
+
"""Missing associated documentation comment in .proto file."""
|
|
30
|
+
|
|
31
|
+
def __init__(self, channel):
|
|
32
|
+
"""Constructor.
|
|
33
|
+
|
|
34
|
+
Args:
|
|
35
|
+
channel: A grpc.Channel.
|
|
36
|
+
"""
|
|
37
|
+
self.Describe = channel.unary_unary(
|
|
38
|
+
'/yandex.cloud.ai.batch_inference.v1.BatchInferenceService/Describe',
|
|
39
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DescribeBatchInferenceRequest.SerializeToString,
|
|
40
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DescribeBatchInferenceResponse.FromString,
|
|
41
|
+
_registered_method=True)
|
|
42
|
+
self.List = channel.unary_unary(
|
|
43
|
+
'/yandex.cloud.ai.batch_inference.v1.BatchInferenceService/List',
|
|
44
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.ListBatchInferencesRequest.SerializeToString,
|
|
45
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.ListBatchInferencesResponse.FromString,
|
|
46
|
+
_registered_method=True)
|
|
47
|
+
self.Cancel = channel.unary_unary(
|
|
48
|
+
'/yandex.cloud.ai.batch_inference.v1.BatchInferenceService/Cancel',
|
|
49
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.CancelBatchInferenceRequest.SerializeToString,
|
|
50
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.CancelBatchInferenceResponse.FromString,
|
|
51
|
+
_registered_method=True)
|
|
52
|
+
self.Delete = channel.unary_unary(
|
|
53
|
+
'/yandex.cloud.ai.batch_inference.v1.BatchInferenceService/Delete',
|
|
54
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DeleteBatchInferenceRequest.SerializeToString,
|
|
55
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DeleteBatchInferenceResponse.FromString,
|
|
56
|
+
_registered_method=True)
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
class BatchInferenceServiceServicer(object):
|
|
60
|
+
"""Missing associated documentation comment in .proto file."""
|
|
61
|
+
|
|
62
|
+
def Describe(self, request, context):
|
|
63
|
+
"""Describes a concrete task
|
|
64
|
+
"""
|
|
65
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
66
|
+
context.set_details('Method not implemented!')
|
|
67
|
+
raise NotImplementedError('Method not implemented!')
|
|
68
|
+
|
|
69
|
+
def List(self, request, context):
|
|
70
|
+
"""Lists tasks in folder
|
|
71
|
+
"""
|
|
72
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
73
|
+
context.set_details('Method not implemented!')
|
|
74
|
+
raise NotImplementedError('Method not implemented!')
|
|
75
|
+
|
|
76
|
+
def Cancel(self, request, context):
|
|
77
|
+
"""Cancels a concrete task
|
|
78
|
+
"""
|
|
79
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
80
|
+
context.set_details('Method not implemented!')
|
|
81
|
+
raise NotImplementedError('Method not implemented!')
|
|
82
|
+
|
|
83
|
+
def Delete(self, request, context):
|
|
84
|
+
"""Deletes a concrete task
|
|
85
|
+
"""
|
|
86
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
87
|
+
context.set_details('Method not implemented!')
|
|
88
|
+
raise NotImplementedError('Method not implemented!')
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
def add_BatchInferenceServiceServicer_to_server(servicer, server):
|
|
92
|
+
rpc_method_handlers = {
|
|
93
|
+
'Describe': grpc.unary_unary_rpc_method_handler(
|
|
94
|
+
servicer.Describe,
|
|
95
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DescribeBatchInferenceRequest.FromString,
|
|
96
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DescribeBatchInferenceResponse.SerializeToString,
|
|
97
|
+
),
|
|
98
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
99
|
+
servicer.List,
|
|
100
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.ListBatchInferencesRequest.FromString,
|
|
101
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.ListBatchInferencesResponse.SerializeToString,
|
|
102
|
+
),
|
|
103
|
+
'Cancel': grpc.unary_unary_rpc_method_handler(
|
|
104
|
+
servicer.Cancel,
|
|
105
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.CancelBatchInferenceRequest.FromString,
|
|
106
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.CancelBatchInferenceResponse.SerializeToString,
|
|
107
|
+
),
|
|
108
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
109
|
+
servicer.Delete,
|
|
110
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DeleteBatchInferenceRequest.FromString,
|
|
111
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DeleteBatchInferenceResponse.SerializeToString,
|
|
112
|
+
),
|
|
113
|
+
}
|
|
114
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
115
|
+
'yandex.cloud.ai.batch_inference.v1.BatchInferenceService', rpc_method_handlers)
|
|
116
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
117
|
+
server.add_registered_method_handlers('yandex.cloud.ai.batch_inference.v1.BatchInferenceService', rpc_method_handlers)
|
|
118
|
+
|
|
119
|
+
|
|
120
|
+
# This class is part of an EXPERIMENTAL API.
|
|
121
|
+
class BatchInferenceService(object):
|
|
122
|
+
"""Missing associated documentation comment in .proto file."""
|
|
123
|
+
|
|
124
|
+
@staticmethod
|
|
125
|
+
def Describe(request,
|
|
126
|
+
target,
|
|
127
|
+
options=(),
|
|
128
|
+
channel_credentials=None,
|
|
129
|
+
call_credentials=None,
|
|
130
|
+
insecure=False,
|
|
131
|
+
compression=None,
|
|
132
|
+
wait_for_ready=None,
|
|
133
|
+
timeout=None,
|
|
134
|
+
metadata=None):
|
|
135
|
+
return grpc.experimental.unary_unary(
|
|
136
|
+
request,
|
|
137
|
+
target,
|
|
138
|
+
'/yandex.cloud.ai.batch_inference.v1.BatchInferenceService/Describe',
|
|
139
|
+
yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DescribeBatchInferenceRequest.SerializeToString,
|
|
140
|
+
yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DescribeBatchInferenceResponse.FromString,
|
|
141
|
+
options,
|
|
142
|
+
channel_credentials,
|
|
143
|
+
insecure,
|
|
144
|
+
call_credentials,
|
|
145
|
+
compression,
|
|
146
|
+
wait_for_ready,
|
|
147
|
+
timeout,
|
|
148
|
+
metadata,
|
|
149
|
+
_registered_method=True)
|
|
150
|
+
|
|
151
|
+
@staticmethod
|
|
152
|
+
def List(request,
|
|
153
|
+
target,
|
|
154
|
+
options=(),
|
|
155
|
+
channel_credentials=None,
|
|
156
|
+
call_credentials=None,
|
|
157
|
+
insecure=False,
|
|
158
|
+
compression=None,
|
|
159
|
+
wait_for_ready=None,
|
|
160
|
+
timeout=None,
|
|
161
|
+
metadata=None):
|
|
162
|
+
return grpc.experimental.unary_unary(
|
|
163
|
+
request,
|
|
164
|
+
target,
|
|
165
|
+
'/yandex.cloud.ai.batch_inference.v1.BatchInferenceService/List',
|
|
166
|
+
yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.ListBatchInferencesRequest.SerializeToString,
|
|
167
|
+
yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.ListBatchInferencesResponse.FromString,
|
|
168
|
+
options,
|
|
169
|
+
channel_credentials,
|
|
170
|
+
insecure,
|
|
171
|
+
call_credentials,
|
|
172
|
+
compression,
|
|
173
|
+
wait_for_ready,
|
|
174
|
+
timeout,
|
|
175
|
+
metadata,
|
|
176
|
+
_registered_method=True)
|
|
177
|
+
|
|
178
|
+
@staticmethod
|
|
179
|
+
def Cancel(request,
|
|
180
|
+
target,
|
|
181
|
+
options=(),
|
|
182
|
+
channel_credentials=None,
|
|
183
|
+
call_credentials=None,
|
|
184
|
+
insecure=False,
|
|
185
|
+
compression=None,
|
|
186
|
+
wait_for_ready=None,
|
|
187
|
+
timeout=None,
|
|
188
|
+
metadata=None):
|
|
189
|
+
return grpc.experimental.unary_unary(
|
|
190
|
+
request,
|
|
191
|
+
target,
|
|
192
|
+
'/yandex.cloud.ai.batch_inference.v1.BatchInferenceService/Cancel',
|
|
193
|
+
yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.CancelBatchInferenceRequest.SerializeToString,
|
|
194
|
+
yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.CancelBatchInferenceResponse.FromString,
|
|
195
|
+
options,
|
|
196
|
+
channel_credentials,
|
|
197
|
+
insecure,
|
|
198
|
+
call_credentials,
|
|
199
|
+
compression,
|
|
200
|
+
wait_for_ready,
|
|
201
|
+
timeout,
|
|
202
|
+
metadata,
|
|
203
|
+
_registered_method=True)
|
|
204
|
+
|
|
205
|
+
@staticmethod
|
|
206
|
+
def Delete(request,
|
|
207
|
+
target,
|
|
208
|
+
options=(),
|
|
209
|
+
channel_credentials=None,
|
|
210
|
+
call_credentials=None,
|
|
211
|
+
insecure=False,
|
|
212
|
+
compression=None,
|
|
213
|
+
wait_for_ready=None,
|
|
214
|
+
timeout=None,
|
|
215
|
+
metadata=None):
|
|
216
|
+
return grpc.experimental.unary_unary(
|
|
217
|
+
request,
|
|
218
|
+
target,
|
|
219
|
+
'/yandex.cloud.ai.batch_inference.v1.BatchInferenceService/Delete',
|
|
220
|
+
yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DeleteBatchInferenceRequest.SerializeToString,
|
|
221
|
+
yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_batch__inference__service__pb2.DeleteBatchInferenceResponse.FromString,
|
|
222
|
+
options,
|
|
223
|
+
channel_credentials,
|
|
224
|
+
insecure,
|
|
225
|
+
call_credentials,
|
|
226
|
+
compression,
|
|
227
|
+
wait_for_ready,
|
|
228
|
+
timeout,
|
|
229
|
+
metadata,
|
|
230
|
+
_registered_method=True)
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
import yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2
|
|
12
|
+
|
|
13
|
+
_T = typing.TypeVar("_T")
|
|
14
|
+
|
|
15
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
16
|
+
|
|
17
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
18
|
+
...
|
|
19
|
+
|
|
20
|
+
class BatchInferenceServiceStub:
|
|
21
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
22
|
+
Describe: grpc.UnaryUnaryMultiCallable[
|
|
23
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DescribeBatchInferenceRequest,
|
|
24
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DescribeBatchInferenceResponse,
|
|
25
|
+
]
|
|
26
|
+
"""Describes a concrete task"""
|
|
27
|
+
|
|
28
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
29
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.ListBatchInferencesRequest,
|
|
30
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.ListBatchInferencesResponse,
|
|
31
|
+
]
|
|
32
|
+
"""Lists tasks in folder"""
|
|
33
|
+
|
|
34
|
+
Cancel: grpc.UnaryUnaryMultiCallable[
|
|
35
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.CancelBatchInferenceRequest,
|
|
36
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.CancelBatchInferenceResponse,
|
|
37
|
+
]
|
|
38
|
+
"""Cancels a concrete task"""
|
|
39
|
+
|
|
40
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
41
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DeleteBatchInferenceRequest,
|
|
42
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DeleteBatchInferenceResponse,
|
|
43
|
+
]
|
|
44
|
+
"""Deletes a concrete task"""
|
|
45
|
+
|
|
46
|
+
class BatchInferenceServiceAsyncStub:
|
|
47
|
+
Describe: grpc.aio.UnaryUnaryMultiCallable[
|
|
48
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DescribeBatchInferenceRequest,
|
|
49
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DescribeBatchInferenceResponse,
|
|
50
|
+
]
|
|
51
|
+
"""Describes a concrete task"""
|
|
52
|
+
|
|
53
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
54
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.ListBatchInferencesRequest,
|
|
55
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.ListBatchInferencesResponse,
|
|
56
|
+
]
|
|
57
|
+
"""Lists tasks in folder"""
|
|
58
|
+
|
|
59
|
+
Cancel: grpc.aio.UnaryUnaryMultiCallable[
|
|
60
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.CancelBatchInferenceRequest,
|
|
61
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.CancelBatchInferenceResponse,
|
|
62
|
+
]
|
|
63
|
+
"""Cancels a concrete task"""
|
|
64
|
+
|
|
65
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
66
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DeleteBatchInferenceRequest,
|
|
67
|
+
yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DeleteBatchInferenceResponse,
|
|
68
|
+
]
|
|
69
|
+
"""Deletes a concrete task"""
|
|
70
|
+
|
|
71
|
+
class BatchInferenceServiceServicer(metaclass=abc.ABCMeta):
|
|
72
|
+
@abc.abstractmethod
|
|
73
|
+
def Describe(
|
|
74
|
+
self,
|
|
75
|
+
request: yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DescribeBatchInferenceRequest,
|
|
76
|
+
context: _ServicerContext,
|
|
77
|
+
) -> typing.Union[yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DescribeBatchInferenceResponse, collections.abc.Awaitable[yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DescribeBatchInferenceResponse]]:
|
|
78
|
+
"""Describes a concrete task"""
|
|
79
|
+
|
|
80
|
+
@abc.abstractmethod
|
|
81
|
+
def List(
|
|
82
|
+
self,
|
|
83
|
+
request: yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.ListBatchInferencesRequest,
|
|
84
|
+
context: _ServicerContext,
|
|
85
|
+
) -> typing.Union[yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.ListBatchInferencesResponse, collections.abc.Awaitable[yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.ListBatchInferencesResponse]]:
|
|
86
|
+
"""Lists tasks in folder"""
|
|
87
|
+
|
|
88
|
+
@abc.abstractmethod
|
|
89
|
+
def Cancel(
|
|
90
|
+
self,
|
|
91
|
+
request: yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.CancelBatchInferenceRequest,
|
|
92
|
+
context: _ServicerContext,
|
|
93
|
+
) -> typing.Union[yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.CancelBatchInferenceResponse, collections.abc.Awaitable[yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.CancelBatchInferenceResponse]]:
|
|
94
|
+
"""Cancels a concrete task"""
|
|
95
|
+
|
|
96
|
+
@abc.abstractmethod
|
|
97
|
+
def Delete(
|
|
98
|
+
self,
|
|
99
|
+
request: yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DeleteBatchInferenceRequest,
|
|
100
|
+
context: _ServicerContext,
|
|
101
|
+
) -> typing.Union[yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DeleteBatchInferenceResponse, collections.abc.Awaitable[yandex.cloud.ai.batch_inference.v1.batch_inference_service_pb2.DeleteBatchInferenceResponse]]:
|
|
102
|
+
"""Deletes a concrete task"""
|
|
103
|
+
|
|
104
|
+
def add_BatchInferenceServiceServicer_to_server(servicer: BatchInferenceServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/ai/batch_inference/v1/batch_inference_task.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/ai/batch_inference/v1/batch_inference_task.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
26
|
+
from yandex.cloud.ai.batch_inference.v1 import inference_options_pb2 as yandex_dot_cloud_dot_ai_dot_batch__inference_dot_v1_dot_inference__options__pb2
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n=yandex/cloud/ai/batch_inference/v1/batch_inference_task.proto\x12\"yandex.cloud.ai.batch_inference.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a:yandex/cloud/ai/batch_inference/v1/inference_options.proto\"\xe9\x05\n\x12\x42\x61tchInferenceTask\x12\x0f\n\x07task_id\x18\x01 \x01(\t\x12\x14\n\x0coperation_id\x18\x02 \x01(\t\x12\x11\n\tfolder_id\x18\x03 \x01(\t\x12\x11\n\tmodel_uri\x18\x04 \x01(\t\x12\x19\n\x11source_dataset_id\x18\x05 \x01(\t\x12X\n\x12\x63ompletion_request\x18\x06 \x01(\x0b\x32:.yandex.cloud.ai.batch_inference.v1.BatchCompletionRequestH\x00\x12M\n\x06status\x18\x07 \x01(\x0e\x32=.yandex.cloud.ai.batch_inference.v1.BatchInferenceTask.Status\x12\x19\n\x11result_dataset_id\x18\x08 \x01(\t\x12R\n\x06labels\x18\t \x03(\x0b\x32\x42.yandex.cloud.ai.batch_inference.v1.BatchInferenceTask.LabelsEntry\x12\x12\n\ncreated_by\x18\n \x01(\t\x12.\n\ncreated_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nstarted_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0b\x66inished_at\x18\r \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"t\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0b\n\x07PENDING\x10\x02\x12\x0f\n\x0bIN_PROGRESS\x10\x03\x12\r\n\tCOMPLETED\x10\x04\x12\n\n\x06\x46\x41ILED\x10\x05\x12\x0c\n\x08\x43\x41NCELED\x10\x06\x42\t\n\x07requestBu\n&yandex.cloud.api.ai.batch_inference.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/batch_inference/v1;fomob\x06proto3')
|
|
30
|
+
|
|
31
|
+
_globals = globals()
|
|
32
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
33
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.batch_inference.v1.batch_inference_task_pb2', _globals)
|
|
34
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
35
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
36
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n&yandex.cloud.api.ai.batch_inference.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/batch_inference/v1;fomo'
|
|
37
|
+
_globals['_BATCHINFERENCETASK_LABELSENTRY']._loaded_options = None
|
|
38
|
+
_globals['_BATCHINFERENCETASK_LABELSENTRY']._serialized_options = b'8\001'
|
|
39
|
+
_globals['_BATCHINFERENCETASK']._serialized_start=195
|
|
40
|
+
_globals['_BATCHINFERENCETASK']._serialized_end=940
|
|
41
|
+
_globals['_BATCHINFERENCETASK_LABELSENTRY']._serialized_start=766
|
|
42
|
+
_globals['_BATCHINFERENCETASK_LABELSENTRY']._serialized_end=811
|
|
43
|
+
_globals['_BATCHINFERENCETASK_STATUS']._serialized_start=813
|
|
44
|
+
_globals['_BATCHINFERENCETASK_STATUS']._serialized_end=929
|
|
45
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import collections.abc
|
|
8
|
+
import google.protobuf.descriptor
|
|
9
|
+
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import google.protobuf.timestamp_pb2
|
|
13
|
+
import sys
|
|
14
|
+
import typing
|
|
15
|
+
import yandex.cloud.ai.batch_inference.v1.inference_options_pb2
|
|
16
|
+
|
|
17
|
+
if sys.version_info >= (3, 10):
|
|
18
|
+
import typing as typing_extensions
|
|
19
|
+
else:
|
|
20
|
+
import typing_extensions
|
|
21
|
+
|
|
22
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
23
|
+
|
|
24
|
+
@typing.final
|
|
25
|
+
class BatchInferenceTask(google.protobuf.message.Message):
|
|
26
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
27
|
+
|
|
28
|
+
class _Status:
|
|
29
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
30
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
31
|
+
|
|
32
|
+
class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[BatchInferenceTask._Status.ValueType], builtins.type):
|
|
33
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
34
|
+
STATUS_UNSPECIFIED: BatchInferenceTask._Status.ValueType # 0
|
|
35
|
+
CREATED: BatchInferenceTask._Status.ValueType # 1
|
|
36
|
+
PENDING: BatchInferenceTask._Status.ValueType # 2
|
|
37
|
+
IN_PROGRESS: BatchInferenceTask._Status.ValueType # 3
|
|
38
|
+
COMPLETED: BatchInferenceTask._Status.ValueType # 4
|
|
39
|
+
FAILED: BatchInferenceTask._Status.ValueType # 5
|
|
40
|
+
CANCELED: BatchInferenceTask._Status.ValueType # 6
|
|
41
|
+
|
|
42
|
+
class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
|
|
43
|
+
STATUS_UNSPECIFIED: BatchInferenceTask.Status.ValueType # 0
|
|
44
|
+
CREATED: BatchInferenceTask.Status.ValueType # 1
|
|
45
|
+
PENDING: BatchInferenceTask.Status.ValueType # 2
|
|
46
|
+
IN_PROGRESS: BatchInferenceTask.Status.ValueType # 3
|
|
47
|
+
COMPLETED: BatchInferenceTask.Status.ValueType # 4
|
|
48
|
+
FAILED: BatchInferenceTask.Status.ValueType # 5
|
|
49
|
+
CANCELED: BatchInferenceTask.Status.ValueType # 6
|
|
50
|
+
|
|
51
|
+
@typing.final
|
|
52
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
54
|
+
|
|
55
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
56
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
57
|
+
key: builtins.str
|
|
58
|
+
value: builtins.str
|
|
59
|
+
def __init__(
|
|
60
|
+
self,
|
|
61
|
+
*,
|
|
62
|
+
key: builtins.str = ...,
|
|
63
|
+
value: builtins.str = ...,
|
|
64
|
+
) -> None: ...
|
|
65
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
66
|
+
|
|
67
|
+
TASK_ID_FIELD_NUMBER: builtins.int
|
|
68
|
+
OPERATION_ID_FIELD_NUMBER: builtins.int
|
|
69
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
70
|
+
MODEL_URI_FIELD_NUMBER: builtins.int
|
|
71
|
+
SOURCE_DATASET_ID_FIELD_NUMBER: builtins.int
|
|
72
|
+
COMPLETION_REQUEST_FIELD_NUMBER: builtins.int
|
|
73
|
+
STATUS_FIELD_NUMBER: builtins.int
|
|
74
|
+
RESULT_DATASET_ID_FIELD_NUMBER: builtins.int
|
|
75
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
76
|
+
CREATED_BY_FIELD_NUMBER: builtins.int
|
|
77
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
78
|
+
STARTED_AT_FIELD_NUMBER: builtins.int
|
|
79
|
+
FINISHED_AT_FIELD_NUMBER: builtins.int
|
|
80
|
+
task_id: builtins.str
|
|
81
|
+
operation_id: builtins.str
|
|
82
|
+
folder_id: builtins.str
|
|
83
|
+
model_uri: builtins.str
|
|
84
|
+
source_dataset_id: builtins.str
|
|
85
|
+
status: global___BatchInferenceTask.Status.ValueType
|
|
86
|
+
result_dataset_id: builtins.str
|
|
87
|
+
created_by: builtins.str
|
|
88
|
+
@property
|
|
89
|
+
def completion_request(self) -> yandex.cloud.ai.batch_inference.v1.inference_options_pb2.BatchCompletionRequest: ...
|
|
90
|
+
@property
|
|
91
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
92
|
+
@property
|
|
93
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
94
|
+
@property
|
|
95
|
+
def started_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
96
|
+
@property
|
|
97
|
+
def finished_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
98
|
+
def __init__(
|
|
99
|
+
self,
|
|
100
|
+
*,
|
|
101
|
+
task_id: builtins.str = ...,
|
|
102
|
+
operation_id: builtins.str = ...,
|
|
103
|
+
folder_id: builtins.str = ...,
|
|
104
|
+
model_uri: builtins.str = ...,
|
|
105
|
+
source_dataset_id: builtins.str = ...,
|
|
106
|
+
completion_request: yandex.cloud.ai.batch_inference.v1.inference_options_pb2.BatchCompletionRequest | None = ...,
|
|
107
|
+
status: global___BatchInferenceTask.Status.ValueType = ...,
|
|
108
|
+
result_dataset_id: builtins.str = ...,
|
|
109
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
110
|
+
created_by: builtins.str = ...,
|
|
111
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
112
|
+
started_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
113
|
+
finished_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
114
|
+
) -> None: ...
|
|
115
|
+
def HasField(self, field_name: typing.Literal["completion_request", b"completion_request", "created_at", b"created_at", "finished_at", b"finished_at", "request", b"request", "started_at", b"started_at"]) -> builtins.bool: ...
|
|
116
|
+
def ClearField(self, field_name: typing.Literal["completion_request", b"completion_request", "created_at", b"created_at", "created_by", b"created_by", "finished_at", b"finished_at", "folder_id", b"folder_id", "labels", b"labels", "model_uri", b"model_uri", "operation_id", b"operation_id", "request", b"request", "result_dataset_id", b"result_dataset_id", "source_dataset_id", b"source_dataset_id", "started_at", b"started_at", "status", b"status", "task_id", b"task_id"]) -> None: ...
|
|
117
|
+
def WhichOneof(self, oneof_group: typing.Literal["request", b"request"]) -> typing.Literal["completion_request"] | None: ...
|
|
118
|
+
|
|
119
|
+
global___BatchInferenceTask = BatchInferenceTask
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
|
2
|
+
"""Client and server classes corresponding to protobuf-defined services."""
|
|
3
|
+
import grpc
|
|
4
|
+
import warnings
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
GRPC_GENERATED_VERSION = '1.70.0'
|
|
8
|
+
GRPC_VERSION = grpc.__version__
|
|
9
|
+
_version_not_supported = False
|
|
10
|
+
|
|
11
|
+
try:
|
|
12
|
+
from grpc._utilities import first_version_is_lower
|
|
13
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
|
14
|
+
except ImportError:
|
|
15
|
+
_version_not_supported = True
|
|
16
|
+
|
|
17
|
+
if _version_not_supported:
|
|
18
|
+
raise RuntimeError(
|
|
19
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
20
|
+
+ f' but the generated code in yandex/cloud/ai/batch_inference/v1/batch_inference_task_pb2_grpc.py depends on'
|
|
21
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
22
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
23
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
24
|
+
)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import abc
|
|
7
|
+
import collections.abc
|
|
8
|
+
import grpc
|
|
9
|
+
import grpc.aio
|
|
10
|
+
import typing
|
|
11
|
+
|
|
12
|
+
_T = typing.TypeVar("_T")
|
|
13
|
+
|
|
14
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
15
|
+
|
|
16
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
17
|
+
...
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
|
+
# source: yandex/cloud/ai/batch_inference/v1/inference_options.proto
|
|
5
|
+
# Protobuf Python Version: 5.29.0
|
|
6
|
+
"""Generated protocol buffer code."""
|
|
7
|
+
from google.protobuf import descriptor as _descriptor
|
|
8
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
|
10
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
11
|
+
from google.protobuf.internal import builder as _builder
|
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
|
14
|
+
5,
|
|
15
|
+
29,
|
|
16
|
+
0,
|
|
17
|
+
'',
|
|
18
|
+
'yandex/cloud/ai/batch_inference/v1/inference_options.proto'
|
|
19
|
+
)
|
|
20
|
+
# @@protoc_insertion_point(imports)
|
|
21
|
+
|
|
22
|
+
_sym_db = _symbol_database.Default()
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb2
|
|
26
|
+
from google.protobuf import struct_pb2 as google_dot_protobuf_dot_struct__pb2
|
|
27
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n:yandex/cloud/ai/batch_inference/v1/inference_options.proto\x12\"yandex.cloud.ai.batch_inference.v1\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1cgoogle/protobuf/struct.proto\x1a\x1dyandex/cloud/validation.proto\"\xb5\x02\n\x16\x42\x61tchCompletionRequest\x12\x17\n\tmodel_uri\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x1f\n\x11source_dataset_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12Q\n\x12\x63ompletion_options\x18\x03 \x01(\x0b\x32\x35.yandex.cloud.ai.batch_inference.v1.CompletionOptions\x12\x1c\n\x14\x64\x61ta_logging_enabled\x18\x04 \x01(\x08\x12\x15\n\x0bjson_object\x18\x05 \x01(\x08H\x00\x12\x45\n\x0bjson_schema\x18\x06 \x01(\x0b\x32..yandex.cloud.ai.batch_inference.v1.JsonSchemaH\x00\x42\x12\n\x10StructuredOutput\"\xc8\x01\n\x11\x43ompletionOptions\x12\x31\n\x0btemperature\x18\x01 \x01(\x0b\x32\x1c.google.protobuf.DoubleValue\x12/\n\nmax_tokens\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12O\n\x11reasoning_options\x18\x03 \x01(\x0b\x32\x34.yandex.cloud.ai.batch_inference.v1.ReasoningOptions\"\xb7\x01\n\x10ReasoningOptions\x12P\n\x04mode\x18\x01 \x01(\x0e\x32\x42.yandex.cloud.ai.batch_inference.v1.ReasoningOptions.ReasoningMode\"Q\n\rReasoningMode\x12\x1e\n\x1aREASONING_MODE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44ISABLED\x10\x01\x12\x12\n\x0e\x45NABLED_HIDDEN\x10\x02\"5\n\nJsonSchema\x12\'\n\x06schema\x18\x01 \x01(\x0b\x32\x17.google.protobuf.StructBu\n&yandex.cloud.api.ai.batch_inference.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/batch_inference/v1;fomob\x06proto3')
|
|
31
|
+
|
|
32
|
+
_globals = globals()
|
|
33
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
34
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.batch_inference.v1.inference_options_pb2', _globals)
|
|
35
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
36
|
+
_globals['DESCRIPTOR']._loaded_options = None
|
|
37
|
+
_globals['DESCRIPTOR']._serialized_options = b'\n&yandex.cloud.api.ai.batch_inference.v1ZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/batch_inference/v1;fomo'
|
|
38
|
+
_globals['_BATCHCOMPLETIONREQUEST'].fields_by_name['model_uri']._loaded_options = None
|
|
39
|
+
_globals['_BATCHCOMPLETIONREQUEST'].fields_by_name['model_uri']._serialized_options = b'\350\3071\001'
|
|
40
|
+
_globals['_BATCHCOMPLETIONREQUEST'].fields_by_name['source_dataset_id']._loaded_options = None
|
|
41
|
+
_globals['_BATCHCOMPLETIONREQUEST'].fields_by_name['source_dataset_id']._serialized_options = b'\350\3071\001'
|
|
42
|
+
_globals['_BATCHCOMPLETIONREQUEST']._serialized_start=192
|
|
43
|
+
_globals['_BATCHCOMPLETIONREQUEST']._serialized_end=501
|
|
44
|
+
_globals['_COMPLETIONOPTIONS']._serialized_start=504
|
|
45
|
+
_globals['_COMPLETIONOPTIONS']._serialized_end=704
|
|
46
|
+
_globals['_REASONINGOPTIONS']._serialized_start=707
|
|
47
|
+
_globals['_REASONINGOPTIONS']._serialized_end=890
|
|
48
|
+
_globals['_REASONINGOPTIONS_REASONINGMODE']._serialized_start=809
|
|
49
|
+
_globals['_REASONINGOPTIONS_REASONINGMODE']._serialized_end=890
|
|
50
|
+
_globals['_JSONSCHEMA']._serialized_start=892
|
|
51
|
+
_globals['_JSONSCHEMA']._serialized_end=945
|
|
52
|
+
# @@protoc_insertion_point(module_scope)
|