yandexcloud 0.326.0__py3-none-any.whl → 0.327.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/dataset/v1/dataset_pb2.py +10 -8
- yandex/cloud/ai/dataset/v1/dataset_pb2.pyi +9 -1
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.py +45 -39
- yandex/cloud/ai/dataset/v1/dataset_service_pb2.pyi +57 -2
- yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.py +34 -0
- yandex/cloud/ai/dataset/v1/dataset_service_pb2_grpc.pyi +20 -0
- yandex/cloud/ai/tuning/__init__.py +0 -0
- yandex/cloud/ai/tuning/v1/__init__.py +0 -0
- yandex/cloud/ai/tuning/v1/tuning_optimizers_pb2.py +26 -0
- yandex/cloud/ai/tuning/v1/tuning_optimizers_pb2.pyi +35 -0
- yandex/cloud/ai/tuning/v1/tuning_optimizers_pb2_grpc.py +4 -0
- yandex/cloud/ai/tuning/v1/tuning_optimizers_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/tuning/v1/tuning_schedulers_pb2.py +30 -0
- yandex/cloud/ai/tuning/v1/tuning_schedulers_pb2.pyi +51 -0
- yandex/cloud/ai/tuning/v1/tuning_schedulers_pb2_grpc.py +4 -0
- yandex/cloud/ai/tuning/v1/tuning_schedulers_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.py +101 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +577 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.py +232 -0
- yandex/cloud/ai/tuning/v1/tuning_service_pb2_grpc.pyi +127 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.py +29 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2.pyi +86 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2_grpc.py +4 -0
- yandex/cloud/ai/tuning/v1/tuning_task_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/tuning/v1/tuning_types_pb2.py +28 -0
- yandex/cloud/ai/tuning/v1/tuning_types_pb2.pyi +50 -0
- yandex/cloud/ai/tuning/v1/tuning_types_pb2_grpc.py +4 -0
- yandex/cloud/ai/tuning/v1/tuning_types_pb2_grpc.pyi +17 -0
- yandex/cloud/cic/v1/private_connection_pb2.py +5 -3
- yandex/cloud/cic/v1/private_connection_pb2.pyi +1 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2.py +41 -41
- yandex/cloud/dataproc/v1/cluster_pb2.py +20 -18
- yandex/cloud/dataproc/v1/cluster_pb2.pyi +20 -1
- yandex/cloud/dataproc/v1/cluster_service_pb2.py +40 -40
- yandex/cloud/dataproc/v1/cluster_service_pb2.pyi +5 -1
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +34 -32
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +21 -1
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.py +54 -54
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.pyi +7 -1
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2.py +39 -0
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2.pyi +64 -0
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2_grpc.py +67 -0
- yandex/cloud/marketplace/metering/v1/product_usage_service_pb2_grpc.pyi +44 -0
- yandex/cloud/searchapi/v2/search_query_pb2.py +8 -6
- yandex/cloud/searchapi/v2/search_query_pb2.pyi +24 -1
- yandex/cloud/searchapi/v2/search_service_pb2.py +14 -8
- yandex/cloud/searchapi/v2/search_service_pb2.pyi +33 -6
- yandex/cloud/searchapi/v2/search_service_pb2_grpc.py +64 -0
- yandex/cloud/searchapi/v2/search_service_pb2_grpc.pyi +29 -0
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +12 -6
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +31 -3
- yandex/cloud/speechsense/v1/classifier_pb2.py +26 -0
- yandex/cloud/speechsense/v1/classifier_pb2.pyi +35 -0
- yandex/cloud/speechsense/v1/classifier_pb2_grpc.py +4 -0
- yandex/cloud/speechsense/v1/classifier_pb2_grpc.pyi +17 -0
- yandex/cloud/speechsense/v1/classifiers_service_pb2.py +34 -0
- yandex/cloud/speechsense/v1/classifiers_service_pb2.pyi +48 -0
- yandex/cloud/speechsense/v1/classifiers_service_pb2_grpc.py +67 -0
- yandex/cloud/speechsense/v1/classifiers_service_pb2_grpc.pyi +44 -0
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/RECORD +65 -31
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.326.0.dist-info → yandexcloud-0.327.0.dist-info}/top_level.txt +0 -0
|
@@ -30,16 +30,16 @@ class SortSpec(google.protobuf.message.Message):
|
|
|
30
30
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
31
31
|
SORT_ORDER_UNSPECIFIED: SortSpec._SortOrder.ValueType # 0
|
|
32
32
|
SORT_ORDER_ASC: SortSpec._SortOrder.ValueType # 1
|
|
33
|
-
"""Direct order from most recent to oldest (default).."""
|
|
34
|
-
SORT_ORDER_DESC: SortSpec._SortOrder.ValueType # 2
|
|
35
33
|
"""Reverse order from oldest to most recent."""
|
|
34
|
+
SORT_ORDER_DESC: SortSpec._SortOrder.ValueType # 2
|
|
35
|
+
"""Direct order from most recent to oldest (default)."""
|
|
36
36
|
|
|
37
37
|
class SortOrder(_SortOrder, metaclass=_SortOrderEnumTypeWrapper): ...
|
|
38
38
|
SORT_ORDER_UNSPECIFIED: SortSpec.SortOrder.ValueType # 0
|
|
39
39
|
SORT_ORDER_ASC: SortSpec.SortOrder.ValueType # 1
|
|
40
|
-
"""Direct order from most recent to oldest (default).."""
|
|
41
|
-
SORT_ORDER_DESC: SortSpec.SortOrder.ValueType # 2
|
|
42
40
|
"""Reverse order from oldest to most recent."""
|
|
41
|
+
SORT_ORDER_DESC: SortSpec.SortOrder.ValueType # 2
|
|
42
|
+
"""Direct order from most recent to oldest (default)."""
|
|
43
43
|
|
|
44
44
|
class _SortMode:
|
|
45
45
|
ValueType = typing.NewType("ValueType", builtins.int)
|
|
@@ -158,6 +158,25 @@ class WebSearchRequest(google.protobuf.message.Message):
|
|
|
158
158
|
LOCALIZATION_EN: WebSearchRequest.Localization.ValueType # 6
|
|
159
159
|
"""English"""
|
|
160
160
|
|
|
161
|
+
class _Format:
|
|
162
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
163
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
164
|
+
|
|
165
|
+
class _FormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[WebSearchRequest._Format.ValueType], builtins.type):
|
|
166
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
167
|
+
FORMAT_UNSPECIFIED: WebSearchRequest._Format.ValueType # 0
|
|
168
|
+
FORMAT_XML: WebSearchRequest._Format.ValueType # 1
|
|
169
|
+
"""XML format (default value)"""
|
|
170
|
+
FORMAT_HTML: WebSearchRequest._Format.ValueType # 2
|
|
171
|
+
"""HTML format"""
|
|
172
|
+
|
|
173
|
+
class Format(_Format, metaclass=_FormatEnumTypeWrapper): ...
|
|
174
|
+
FORMAT_UNSPECIFIED: WebSearchRequest.Format.ValueType # 0
|
|
175
|
+
FORMAT_XML: WebSearchRequest.Format.ValueType # 1
|
|
176
|
+
"""XML format (default value)"""
|
|
177
|
+
FORMAT_HTML: WebSearchRequest.Format.ValueType # 2
|
|
178
|
+
"""HTML format"""
|
|
179
|
+
|
|
161
180
|
QUERY_FIELD_NUMBER: builtins.int
|
|
162
181
|
SORT_SPEC_FIELD_NUMBER: builtins.int
|
|
163
182
|
GROUP_SPEC_FIELD_NUMBER: builtins.int
|
|
@@ -165,6 +184,8 @@ class WebSearchRequest(google.protobuf.message.Message):
|
|
|
165
184
|
REGION_FIELD_NUMBER: builtins.int
|
|
166
185
|
L10N_FIELD_NUMBER: builtins.int
|
|
167
186
|
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
187
|
+
RESPONSE_FORMAT_FIELD_NUMBER: builtins.int
|
|
188
|
+
USER_AGENT_FIELD_NUMBER: builtins.int
|
|
168
189
|
max_passages: builtins.int
|
|
169
190
|
"""The maximum number of passages that can be used when generating a document snippet."""
|
|
170
191
|
region: builtins.str
|
|
@@ -173,6 +194,10 @@ class WebSearchRequest(google.protobuf.message.Message):
|
|
|
173
194
|
"""The notification language for a search response."""
|
|
174
195
|
folder_id: builtins.str
|
|
175
196
|
"""ID of the folder."""
|
|
197
|
+
response_format: global___WebSearchRequest.Format.ValueType
|
|
198
|
+
"""Search results format."""
|
|
199
|
+
user_agent: builtins.str
|
|
200
|
+
"""User-Agent request header value."""
|
|
176
201
|
@property
|
|
177
202
|
def query(self) -> yandex.cloud.searchapi.v2.search_query_pb2.SearchQuery:
|
|
178
203
|
"""Search query."""
|
|
@@ -195,9 +220,11 @@ class WebSearchRequest(google.protobuf.message.Message):
|
|
|
195
220
|
region: builtins.str = ...,
|
|
196
221
|
l10n: global___WebSearchRequest.Localization.ValueType = ...,
|
|
197
222
|
folder_id: builtins.str = ...,
|
|
223
|
+
response_format: global___WebSearchRequest.Format.ValueType = ...,
|
|
224
|
+
user_agent: builtins.str = ...,
|
|
198
225
|
) -> None: ...
|
|
199
226
|
def HasField(self, field_name: typing.Literal["group_spec", b"group_spec", "query", b"query", "sort_spec", b"sort_spec"]) -> builtins.bool: ...
|
|
200
|
-
def ClearField(self, field_name: typing.Literal["folder_id", b"folder_id", "group_spec", b"group_spec", "l10n", b"l10n", "max_passages", b"max_passages", "query", b"query", "region", b"region", "sort_spec", b"sort_spec"]) -> None: ...
|
|
227
|
+
def ClearField(self, field_name: typing.Literal["folder_id", b"folder_id", "group_spec", b"group_spec", "l10n", b"l10n", "max_passages", b"max_passages", "query", b"query", "region", b"region", "response_format", b"response_format", "sort_spec", b"sort_spec", "user_agent", b"user_agent"]) -> None: ...
|
|
201
228
|
|
|
202
229
|
global___WebSearchRequest = WebSearchRequest
|
|
203
230
|
|
|
@@ -207,7 +234,7 @@ class WebSearchResponse(google.protobuf.message.Message):
|
|
|
207
234
|
|
|
208
235
|
RAW_DATA_FIELD_NUMBER: builtins.int
|
|
209
236
|
raw_data: builtins.bytes
|
|
210
|
-
"""Search results,
|
|
237
|
+
"""Search results, either in XML or HTML format depending on the request settings."""
|
|
211
238
|
def __init__(
|
|
212
239
|
self,
|
|
213
240
|
*,
|
|
@@ -68,3 +68,67 @@ class WebSearchAsyncService(object):
|
|
|
68
68
|
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
69
69
|
options, channel_credentials,
|
|
70
70
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
class WebSearchServiceStub(object):
|
|
74
|
+
"""A set of methods for searching the Yandex search database.
|
|
75
|
+
"""
|
|
76
|
+
|
|
77
|
+
def __init__(self, channel):
|
|
78
|
+
"""Constructor.
|
|
79
|
+
|
|
80
|
+
Args:
|
|
81
|
+
channel: A grpc.Channel.
|
|
82
|
+
"""
|
|
83
|
+
self.Search = channel.unary_unary(
|
|
84
|
+
'/yandex.cloud.searchapi.v2.WebSearchService/Search',
|
|
85
|
+
request_serializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__service__pb2.WebSearchRequest.SerializeToString,
|
|
86
|
+
response_deserializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__service__pb2.WebSearchResponse.FromString,
|
|
87
|
+
)
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
class WebSearchServiceServicer(object):
|
|
91
|
+
"""A set of methods for searching the Yandex search database.
|
|
92
|
+
"""
|
|
93
|
+
|
|
94
|
+
def Search(self, request, context):
|
|
95
|
+
"""Missing associated documentation comment in .proto file."""
|
|
96
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
97
|
+
context.set_details('Method not implemented!')
|
|
98
|
+
raise NotImplementedError('Method not implemented!')
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
def add_WebSearchServiceServicer_to_server(servicer, server):
|
|
102
|
+
rpc_method_handlers = {
|
|
103
|
+
'Search': grpc.unary_unary_rpc_method_handler(
|
|
104
|
+
servicer.Search,
|
|
105
|
+
request_deserializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__service__pb2.WebSearchRequest.FromString,
|
|
106
|
+
response_serializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__service__pb2.WebSearchResponse.SerializeToString,
|
|
107
|
+
),
|
|
108
|
+
}
|
|
109
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
110
|
+
'yandex.cloud.searchapi.v2.WebSearchService', rpc_method_handlers)
|
|
111
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
112
|
+
|
|
113
|
+
|
|
114
|
+
# This class is part of an EXPERIMENTAL API.
|
|
115
|
+
class WebSearchService(object):
|
|
116
|
+
"""A set of methods for searching the Yandex search database.
|
|
117
|
+
"""
|
|
118
|
+
|
|
119
|
+
@staticmethod
|
|
120
|
+
def Search(request,
|
|
121
|
+
target,
|
|
122
|
+
options=(),
|
|
123
|
+
channel_credentials=None,
|
|
124
|
+
call_credentials=None,
|
|
125
|
+
insecure=False,
|
|
126
|
+
compression=None,
|
|
127
|
+
wait_for_ready=None,
|
|
128
|
+
timeout=None,
|
|
129
|
+
metadata=None):
|
|
130
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.searchapi.v2.WebSearchService/Search',
|
|
131
|
+
yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__service__pb2.WebSearchRequest.SerializeToString,
|
|
132
|
+
yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__service__pb2.WebSearchResponse.FromString,
|
|
133
|
+
options, channel_credentials,
|
|
134
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -46,3 +46,32 @@ class WebSearchAsyncServiceServicer(metaclass=abc.ABCMeta):
|
|
|
46
46
|
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: ...
|
|
47
47
|
|
|
48
48
|
def add_WebSearchAsyncServiceServicer_to_server(servicer: WebSearchAsyncServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
49
|
+
|
|
50
|
+
class WebSearchServiceStub:
|
|
51
|
+
"""A set of methods for searching the Yandex search database."""
|
|
52
|
+
|
|
53
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
54
|
+
Search: grpc.UnaryUnaryMultiCallable[
|
|
55
|
+
yandex.cloud.searchapi.v2.search_service_pb2.WebSearchRequest,
|
|
56
|
+
yandex.cloud.searchapi.v2.search_service_pb2.WebSearchResponse,
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
class WebSearchServiceAsyncStub:
|
|
60
|
+
"""A set of methods for searching the Yandex search database."""
|
|
61
|
+
|
|
62
|
+
Search: grpc.aio.UnaryUnaryMultiCallable[
|
|
63
|
+
yandex.cloud.searchapi.v2.search_service_pb2.WebSearchRequest,
|
|
64
|
+
yandex.cloud.searchapi.v2.search_service_pb2.WebSearchResponse,
|
|
65
|
+
]
|
|
66
|
+
|
|
67
|
+
class WebSearchServiceServicer(metaclass=abc.ABCMeta):
|
|
68
|
+
"""A set of methods for searching the Yandex search database."""
|
|
69
|
+
|
|
70
|
+
@abc.abstractmethod
|
|
71
|
+
def Search(
|
|
72
|
+
self,
|
|
73
|
+
request: yandex.cloud.searchapi.v2.search_service_pb2.WebSearchRequest,
|
|
74
|
+
context: _ServicerContext,
|
|
75
|
+
) -> typing.Union[yandex.cloud.searchapi.v2.search_service_pb2.WebSearchResponse, collections.abc.Awaitable[yandex.cloud.searchapi.v2.search_service_pb2.WebSearchResponse]]: ...
|
|
76
|
+
|
|
77
|
+
def add_WebSearchServiceServicer_to_server(servicer: WebSearchServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -16,7 +16,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__
|
|
|
16
16
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
17
17
|
|
|
18
18
|
|
|
19
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6yandex/cloud/serverless/eventrouter/v1/connector.proto\x12&yandex.cloud.serverless.eventrouter.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xe3\x04\n\tConnector\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06\x62us_id\x18\x02 \x01(\t\x12\x11\n\tfolder_id\x18\x03 \x01(\t\x12\x10\n\x08\x63loud_id\x18\x04 \x01(\t\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12M\n\x06labels\x18\x08 \x03(\x0b\x32=.yandex.cloud.serverless.eventrouter.v1.Connector.LabelsEntry\x12>\n\x06source\x18\t \x01(\x0b\x32..yandex.cloud.serverless.eventrouter.v1.Source\x12\x1b\n\x13\x64\x65letion_protection\x18\n \x01(\x08\x12H\n\x06status\x18\x0b \x01(\x0e\x32\x38.yandex.cloud.serverless.eventrouter.v1.Connector.Status\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9c\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0b\n\x07STOPPED\x10\x02\x12\x16\n\x12RESOURCE_NOT_FOUND\x10\x03\x12\x15\n\x11PERMISSION_DENIED\x10\x04\x12\x15\n\x11SUBJECT_NOT_FOUND\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x07\x12\x0c\n\x08\x43REATING\x10\x08\"\
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n6yandex/cloud/serverless/eventrouter/v1/connector.proto\x12&yandex.cloud.serverless.eventrouter.v1\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1dyandex/cloud/validation.proto\"\xe3\x04\n\tConnector\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06\x62us_id\x18\x02 \x01(\t\x12\x11\n\tfolder_id\x18\x03 \x01(\t\x12\x10\n\x08\x63loud_id\x18\x04 \x01(\t\x12.\n\ncreated_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x06 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x07 \x01(\t\x12M\n\x06labels\x18\x08 \x03(\x0b\x32=.yandex.cloud.serverless.eventrouter.v1.Connector.LabelsEntry\x12>\n\x06source\x18\t \x01(\x0b\x32..yandex.cloud.serverless.eventrouter.v1.Source\x12\x1b\n\x13\x64\x65letion_protection\x18\n \x01(\x08\x12H\n\x06status\x18\x0b \x01(\x0e\x32\x38.yandex.cloud.serverless.eventrouter.v1.Connector.Status\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x9c\x01\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\x0b\n\x07STOPPED\x10\x02\x12\x16\n\x12RESOURCE_NOT_FOUND\x10\x03\x12\x15\n\x11PERMISSION_DENIED\x10\x04\x12\x15\n\x11SUBJECT_NOT_FOUND\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x07\x12\x0c\n\x08\x43REATING\x10\x08\"\xf2\x01\n\x06Source\x12I\n\x0b\x64\x61ta_stream\x18\x01 \x01(\x0b\x32\x32.yandex.cloud.serverless.eventrouter.v1.DataStreamH\x00\x12M\n\rmessage_queue\x18\x02 \x01(\x0b\x32\x34.yandex.cloud.serverless.eventrouter.v1.MessageQueueH\x00\x12>\n\x05timer\x18\x03 \x01(\x0b\x32-.yandex.cloud.serverless.eventrouter.v1.TimerH\x00\x42\x0e\n\x06source\x12\x04\xc0\xc1\x31\x01\"y\n\nDataStream\x12\x16\n\x08\x64\x61tabase\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x19\n\x0bstream_name\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x16\n\x08\x63onsumer\x18\x03 \x01(\tB\x04\xe8\xc7\x31\x01\x12 \n\x12service_account_id\x18\x04 \x01(\tB\x04\xe8\xc7\x31\x01\"\xf0\x01\n\x0cMessageQueue\x12\x17\n\tqueue_arn\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12(\n\x12service_account_id\x18\x02 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12@\n\x12visibility_timeout\x18\x03 \x01(\x0b\x32\x19.google.protobuf.DurationB\t\xfa\xc7\x31\x05<=12h\x12\x1c\n\nbatch_size\x18\x04 \x01(\x03\x42\x08\xfa\xc7\x31\x04<=10\x12=\n\x0fpolling_timeout\x18\x05 \x01(\x0b\x32\x19.google.protobuf.DurationB\t\xfa\xc7\x31\x05<=20s\"e\n\x05Timer\x12&\n\x0f\x63ron_expression\x18\x01 \x01(\tB\r\xe8\xc7\x31\x01\x8a\xc8\x31\x05<=100\x12\x11\n\ttime_zone\x18\x02 \x01(\t\x12\x1b\n\x07payload\x18\x04 \x01(\tB\n\x8a\xc8\x31\x06<=4096J\x04\x08\x03\x10\x04\x42\x8a\x01\n*yandex.cloud.api.serverless.eventrouter.v1B\x04PERCZVgithub.com/yandex-cloud/go-genproto/yandex/cloud/serverless/eventrouter/v1;eventrouterb\x06proto3')
|
|
20
20
|
|
|
21
21
|
_globals = globals()
|
|
22
22
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -46,6 +46,10 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
46
46
|
_MESSAGEQUEUE.fields_by_name['batch_size']._serialized_options = b'\372\3071\004<=10'
|
|
47
47
|
_MESSAGEQUEUE.fields_by_name['polling_timeout']._options = None
|
|
48
48
|
_MESSAGEQUEUE.fields_by_name['polling_timeout']._serialized_options = b'\372\3071\005<=20s'
|
|
49
|
+
_TIMER.fields_by_name['cron_expression']._options = None
|
|
50
|
+
_TIMER.fields_by_name['cron_expression']._serialized_options = b'\350\3071\001\212\3101\005<=100'
|
|
51
|
+
_TIMER.fields_by_name['payload']._options = None
|
|
52
|
+
_TIMER.fields_by_name['payload']._serialized_options = b'\212\3101\006<=4096'
|
|
49
53
|
_globals['_CONNECTOR']._serialized_start=195
|
|
50
54
|
_globals['_CONNECTOR']._serialized_end=806
|
|
51
55
|
_globals['_CONNECTOR_LABELSENTRY']._serialized_start=602
|
|
@@ -53,9 +57,11 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
53
57
|
_globals['_CONNECTOR_STATUS']._serialized_start=650
|
|
54
58
|
_globals['_CONNECTOR_STATUS']._serialized_end=806
|
|
55
59
|
_globals['_SOURCE']._serialized_start=809
|
|
56
|
-
_globals['_SOURCE']._serialized_end=
|
|
57
|
-
_globals['_DATASTREAM']._serialized_start=
|
|
58
|
-
_globals['_DATASTREAM']._serialized_end=
|
|
59
|
-
_globals['_MESSAGEQUEUE']._serialized_start=
|
|
60
|
-
_globals['_MESSAGEQUEUE']._serialized_end=
|
|
60
|
+
_globals['_SOURCE']._serialized_end=1051
|
|
61
|
+
_globals['_DATASTREAM']._serialized_start=1053
|
|
62
|
+
_globals['_DATASTREAM']._serialized_end=1174
|
|
63
|
+
_globals['_MESSAGEQUEUE']._serialized_start=1177
|
|
64
|
+
_globals['_MESSAGEQUEUE']._serialized_end=1417
|
|
65
|
+
_globals['_TIMER']._serialized_start=1419
|
|
66
|
+
_globals['_TIMER']._serialized_end=1520
|
|
61
67
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -145,19 +145,23 @@ class Source(google.protobuf.message.Message):
|
|
|
145
145
|
|
|
146
146
|
DATA_STREAM_FIELD_NUMBER: builtins.int
|
|
147
147
|
MESSAGE_QUEUE_FIELD_NUMBER: builtins.int
|
|
148
|
+
TIMER_FIELD_NUMBER: builtins.int
|
|
148
149
|
@property
|
|
149
150
|
def data_stream(self) -> global___DataStream: ...
|
|
150
151
|
@property
|
|
151
152
|
def message_queue(self) -> global___MessageQueue: ...
|
|
153
|
+
@property
|
|
154
|
+
def timer(self) -> global___Timer: ...
|
|
152
155
|
def __init__(
|
|
153
156
|
self,
|
|
154
157
|
*,
|
|
155
158
|
data_stream: global___DataStream | None = ...,
|
|
156
159
|
message_queue: global___MessageQueue | None = ...,
|
|
160
|
+
timer: global___Timer | None = ...,
|
|
157
161
|
) -> None: ...
|
|
158
|
-
def HasField(self, field_name: typing.Literal["data_stream", b"data_stream", "message_queue", b"message_queue", "source", b"source"]) -> builtins.bool: ...
|
|
159
|
-
def ClearField(self, field_name: typing.Literal["data_stream", b"data_stream", "message_queue", b"message_queue", "source", b"source"]) -> None: ...
|
|
160
|
-
def WhichOneof(self, oneof_group: typing.Literal["source", b"source"]) -> typing.Literal["data_stream", "message_queue"] | None: ...
|
|
162
|
+
def HasField(self, field_name: typing.Literal["data_stream", b"data_stream", "message_queue", b"message_queue", "source", b"source", "timer", b"timer"]) -> builtins.bool: ...
|
|
163
|
+
def ClearField(self, field_name: typing.Literal["data_stream", b"data_stream", "message_queue", b"message_queue", "source", b"source", "timer", b"timer"]) -> None: ...
|
|
164
|
+
def WhichOneof(self, oneof_group: typing.Literal["source", b"source"]) -> typing.Literal["data_stream", "message_queue", "timer"] | None: ...
|
|
161
165
|
|
|
162
166
|
global___Source = Source
|
|
163
167
|
|
|
@@ -229,3 +233,27 @@ class MessageQueue(google.protobuf.message.Message):
|
|
|
229
233
|
def ClearField(self, field_name: typing.Literal["batch_size", b"batch_size", "polling_timeout", b"polling_timeout", "queue_arn", b"queue_arn", "service_account_id", b"service_account_id", "visibility_timeout", b"visibility_timeout"]) -> None: ...
|
|
230
234
|
|
|
231
235
|
global___MessageQueue = MessageQueue
|
|
236
|
+
|
|
237
|
+
@typing.final
|
|
238
|
+
class Timer(google.protobuf.message.Message):
|
|
239
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
240
|
+
|
|
241
|
+
CRON_EXPRESSION_FIELD_NUMBER: builtins.int
|
|
242
|
+
TIME_ZONE_FIELD_NUMBER: builtins.int
|
|
243
|
+
PAYLOAD_FIELD_NUMBER: builtins.int
|
|
244
|
+
cron_expression: builtins.str
|
|
245
|
+
"""cron expression, with second precision"""
|
|
246
|
+
time_zone: builtins.str
|
|
247
|
+
"""time zone, e.g. Europe/Moscow"""
|
|
248
|
+
payload: builtins.str
|
|
249
|
+
"""payload to send to target"""
|
|
250
|
+
def __init__(
|
|
251
|
+
self,
|
|
252
|
+
*,
|
|
253
|
+
cron_expression: builtins.str = ...,
|
|
254
|
+
time_zone: builtins.str = ...,
|
|
255
|
+
payload: builtins.str = ...,
|
|
256
|
+
) -> None: ...
|
|
257
|
+
def ClearField(self, field_name: typing.Literal["cron_expression", b"cron_expression", "payload", b"payload", "time_zone", b"time_zone"]) -> None: ...
|
|
258
|
+
|
|
259
|
+
global___Timer = Timer
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/speechsense/v1/classifier.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/speechsense/v1/classifier.proto\x12\x1byandex.cloud.speechsense.v1\";\n\nClassifier\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\tB\x7f\n\x1fyandex.cloud.api.speechsense.v1B\x0f\x43lassifierProtoZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1;speechsenseb\x06proto3')
|
|
17
|
+
|
|
18
|
+
_globals = globals()
|
|
19
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
20
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.speechsense.v1.classifier_pb2', _globals)
|
|
21
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
22
|
+
DESCRIPTOR._options = None
|
|
23
|
+
DESCRIPTOR._serialized_options = b'\n\037yandex.cloud.api.speechsense.v1B\017ClassifierProtoZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1;speechsense'
|
|
24
|
+
_globals['_CLASSIFIER']._serialized_start=77
|
|
25
|
+
_globals['_CLASSIFIER']._serialized_end=136
|
|
26
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
"""
|
|
5
|
+
|
|
6
|
+
import builtins
|
|
7
|
+
import google.protobuf.descriptor
|
|
8
|
+
import google.protobuf.message
|
|
9
|
+
import typing
|
|
10
|
+
|
|
11
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
12
|
+
|
|
13
|
+
@typing.final
|
|
14
|
+
class Classifier(google.protobuf.message.Message):
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
16
|
+
|
|
17
|
+
ID_FIELD_NUMBER: builtins.int
|
|
18
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
19
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
20
|
+
id: builtins.str
|
|
21
|
+
"""Classifier id"""
|
|
22
|
+
name: builtins.str
|
|
23
|
+
"""Classifier name"""
|
|
24
|
+
description: builtins.str
|
|
25
|
+
"""Classifier description"""
|
|
26
|
+
def __init__(
|
|
27
|
+
self,
|
|
28
|
+
*,
|
|
29
|
+
id: builtins.str = ...,
|
|
30
|
+
name: builtins.str = ...,
|
|
31
|
+
description: builtins.str = ...,
|
|
32
|
+
) -> None: ...
|
|
33
|
+
def ClearField(self, field_name: typing.Literal["description", b"description", "id", b"id", "name", b"name"]) -> None: ...
|
|
34
|
+
|
|
35
|
+
global___Classifier = Classifier
|
|
@@ -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,34 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/speechsense/v1/classifiers_service.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
15
|
+
from yandex.cloud.speechsense.v1 import classifier_pb2 as yandex_dot_cloud_dot_speechsense_dot_v1_dot_classifier__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n5yandex/cloud/speechsense/v1/classifiers_service.proto\x12\x1byandex.cloud.speechsense.v1\x1a\x1cgoogle/api/annotations.proto\x1a,yandex/cloud/speechsense/v1/classifier.proto\",\n\x16ListClassifiersRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"W\n\x17ListClassifiersResponse\x12<\n\x0b\x63lassifiers\x18\x01 \x03(\x0b\x32\'.yandex.cloud.speechsense.v1.Classifier2\xb5\x01\n\x12\x43lassifiersService\x12\x9e\x01\n\x04List\x12\x33.yandex.cloud.speechsense.v1.ListClassifiersRequest\x1a\x34.yandex.cloud.speechsense.v1.ListClassifiersResponse\"+\x82\xd3\xe4\x93\x02%\" /speechsense/v1/classifiers/list:\x01*B\x87\x01\n\x1fyandex.cloud.api.speechsense.v1B\x17\x43lassifiersServiceProtoZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1;speechsenseb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.speechsense.v1.classifiers_service_pb2', _globals)
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\n\037yandex.cloud.api.speechsense.v1B\027ClassifiersServiceProtoZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1;speechsense'
|
|
26
|
+
_CLASSIFIERSSERVICE.methods_by_name['List']._options = None
|
|
27
|
+
_CLASSIFIERSSERVICE.methods_by_name['List']._serialized_options = b'\202\323\344\223\002%\" /speechsense/v1/classifiers/list:\001*'
|
|
28
|
+
_globals['_LISTCLASSIFIERSREQUEST']._serialized_start=162
|
|
29
|
+
_globals['_LISTCLASSIFIERSREQUEST']._serialized_end=206
|
|
30
|
+
_globals['_LISTCLASSIFIERSRESPONSE']._serialized_start=208
|
|
31
|
+
_globals['_LISTCLASSIFIERSRESPONSE']._serialized_end=295
|
|
32
|
+
_globals['_CLASSIFIERSSERVICE']._serialized_start=298
|
|
33
|
+
_globals['_CLASSIFIERSSERVICE']._serialized_end=479
|
|
34
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,48 @@
|
|
|
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.message
|
|
11
|
+
import typing
|
|
12
|
+
import yandex.cloud.speechsense.v1.classifier_pb2
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class ListClassifiersRequest(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
PROJECT_ID_FIELD_NUMBER: builtins.int
|
|
21
|
+
project_id: builtins.str
|
|
22
|
+
"""Project id"""
|
|
23
|
+
def __init__(
|
|
24
|
+
self,
|
|
25
|
+
*,
|
|
26
|
+
project_id: builtins.str = ...,
|
|
27
|
+
) -> None: ...
|
|
28
|
+
def ClearField(self, field_name: typing.Literal["project_id", b"project_id"]) -> None: ...
|
|
29
|
+
|
|
30
|
+
global___ListClassifiersRequest = ListClassifiersRequest
|
|
31
|
+
|
|
32
|
+
@typing.final
|
|
33
|
+
class ListClassifiersResponse(google.protobuf.message.Message):
|
|
34
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
35
|
+
|
|
36
|
+
CLASSIFIERS_FIELD_NUMBER: builtins.int
|
|
37
|
+
@property
|
|
38
|
+
def classifiers(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.speechsense.v1.classifier_pb2.Classifier]:
|
|
39
|
+
"""Classifiers belonging to the given project"""
|
|
40
|
+
|
|
41
|
+
def __init__(
|
|
42
|
+
self,
|
|
43
|
+
*,
|
|
44
|
+
classifiers: collections.abc.Iterable[yandex.cloud.speechsense.v1.classifier_pb2.Classifier] | None = ...,
|
|
45
|
+
) -> None: ...
|
|
46
|
+
def ClearField(self, field_name: typing.Literal["classifiers", b"classifiers"]) -> None: ...
|
|
47
|
+
|
|
48
|
+
global___ListClassifiersResponse = ListClassifiersResponse
|
|
@@ -0,0 +1,67 @@
|
|
|
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
|
+
|
|
5
|
+
from yandex.cloud.speechsense.v1 import classifiers_service_pb2 as yandex_dot_cloud_dot_speechsense_dot_v1_dot_classifiers__service__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ClassifiersServiceStub(object):
|
|
9
|
+
"""Missing associated documentation comment in .proto file."""
|
|
10
|
+
|
|
11
|
+
def __init__(self, channel):
|
|
12
|
+
"""Constructor.
|
|
13
|
+
|
|
14
|
+
Args:
|
|
15
|
+
channel: A grpc.Channel.
|
|
16
|
+
"""
|
|
17
|
+
self.List = channel.unary_unary(
|
|
18
|
+
'/yandex.cloud.speechsense.v1.ClassifiersService/List',
|
|
19
|
+
request_serializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_classifiers__service__pb2.ListClassifiersRequest.SerializeToString,
|
|
20
|
+
response_deserializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_classifiers__service__pb2.ListClassifiersResponse.FromString,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ClassifiersServiceServicer(object):
|
|
25
|
+
"""Missing associated documentation comment in .proto file."""
|
|
26
|
+
|
|
27
|
+
def List(self, request, context):
|
|
28
|
+
"""Rpc for listing classifiers in a project
|
|
29
|
+
"""
|
|
30
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
31
|
+
context.set_details('Method not implemented!')
|
|
32
|
+
raise NotImplementedError('Method not implemented!')
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
def add_ClassifiersServiceServicer_to_server(servicer, server):
|
|
36
|
+
rpc_method_handlers = {
|
|
37
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
38
|
+
servicer.List,
|
|
39
|
+
request_deserializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_classifiers__service__pb2.ListClassifiersRequest.FromString,
|
|
40
|
+
response_serializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_classifiers__service__pb2.ListClassifiersResponse.SerializeToString,
|
|
41
|
+
),
|
|
42
|
+
}
|
|
43
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
44
|
+
'yandex.cloud.speechsense.v1.ClassifiersService', rpc_method_handlers)
|
|
45
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# This class is part of an EXPERIMENTAL API.
|
|
49
|
+
class ClassifiersService(object):
|
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
|
51
|
+
|
|
52
|
+
@staticmethod
|
|
53
|
+
def List(request,
|
|
54
|
+
target,
|
|
55
|
+
options=(),
|
|
56
|
+
channel_credentials=None,
|
|
57
|
+
call_credentials=None,
|
|
58
|
+
insecure=False,
|
|
59
|
+
compression=None,
|
|
60
|
+
wait_for_ready=None,
|
|
61
|
+
timeout=None,
|
|
62
|
+
metadata=None):
|
|
63
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.speechsense.v1.ClassifiersService/List',
|
|
64
|
+
yandex_dot_cloud_dot_speechsense_dot_v1_dot_classifiers__service__pb2.ListClassifiersRequest.SerializeToString,
|
|
65
|
+
yandex_dot_cloud_dot_speechsense_dot_v1_dot_classifiers__service__pb2.ListClassifiersResponse.FromString,
|
|
66
|
+
options, channel_credentials,
|
|
67
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,44 @@
|
|
|
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.speechsense.v1.classifiers_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 ClassifiersServiceStub:
|
|
21
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
22
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
23
|
+
yandex.cloud.speechsense.v1.classifiers_service_pb2.ListClassifiersRequest,
|
|
24
|
+
yandex.cloud.speechsense.v1.classifiers_service_pb2.ListClassifiersResponse,
|
|
25
|
+
]
|
|
26
|
+
"""Rpc for listing classifiers in a project"""
|
|
27
|
+
|
|
28
|
+
class ClassifiersServiceAsyncStub:
|
|
29
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
30
|
+
yandex.cloud.speechsense.v1.classifiers_service_pb2.ListClassifiersRequest,
|
|
31
|
+
yandex.cloud.speechsense.v1.classifiers_service_pb2.ListClassifiersResponse,
|
|
32
|
+
]
|
|
33
|
+
"""Rpc for listing classifiers in a project"""
|
|
34
|
+
|
|
35
|
+
class ClassifiersServiceServicer(metaclass=abc.ABCMeta):
|
|
36
|
+
@abc.abstractmethod
|
|
37
|
+
def List(
|
|
38
|
+
self,
|
|
39
|
+
request: yandex.cloud.speechsense.v1.classifiers_service_pb2.ListClassifiersRequest,
|
|
40
|
+
context: _ServicerContext,
|
|
41
|
+
) -> typing.Union[yandex.cloud.speechsense.v1.classifiers_service_pb2.ListClassifiersResponse, collections.abc.Awaitable[yandex.cloud.speechsense.v1.classifiers_service_pb2.ListClassifiersResponse]]:
|
|
42
|
+
"""Rpc for listing classifiers in a project"""
|
|
43
|
+
|
|
44
|
+
def add_ClassifiersServiceServicer_to_server(servicer: ClassifiersServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|