yandexcloud 0.341.0__py3-none-any.whl → 0.343.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.
- yandex/cloud/ai/batch_inference/v1/batch_inference_task_pb2.py +14 -7
- yandex/cloud/ai/batch_inference/v1/batch_inference_task_pb2.pyi +75 -2
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.py +70 -68
- yandex/cloud/ai/tuning/v1/tuning_service_pb2.pyi +10 -2
- yandex/cloud/certificatemanager/v1/certificate_content_service_pb2.py +28 -9
- yandex/cloud/certificatemanager/v1/certificate_content_service_pb2.pyi +70 -0
- yandex/cloud/certificatemanager/v1/certificate_content_service_pb2_grpc.py +43 -0
- yandex/cloud/certificatemanager/v1/certificate_content_service_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudregistry/v1/registry_pb2.py +5 -5
- yandex/cloud/cloudregistry/v1/registry_pb2.pyi +4 -0
- yandex/cloud/marketplace/pim/v1/saas/product_instance_service_pb2.py +13 -10
- yandex/cloud/mdb/kafka/v1/cluster_pb2.py +18 -14
- yandex/cloud/mdb/kafka/v1/cluster_pb2.pyi +2 -0
- yandex/cloud/mdb/kafka/v1/topic_pb2.py +12 -8
- yandex/cloud/mdb/kafka/v1/topic_pb2.pyi +2 -0
- yandex/cloud/mdb/kafka/v1/user_pb2.py +3 -3
- yandex/cloud/mdb/kafka/v1/user_pb2.pyi +9 -0
- yandex/cloud/searchapi/v2/img_search_service_pb2.py +63 -0
- yandex/cloud/searchapi/v2/img_search_service_pb2.pyi +240 -0
- yandex/cloud/searchapi/v2/img_search_service_pb2_grpc.py +100 -0
- yandex/cloud/searchapi/v2/img_search_service_pb2_grpc.pyi +47 -0
- yandex/cloud/searchapi/v2/search_query_pb2.py +7 -7
- yandex/cloud/searchapi/v2/search_query_pb2.pyi +4 -0
- yandex/cloud/serverless/eventrouter/v1/bus_pb2.py +8 -10
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +10 -8
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +17 -3
- yandex/cloud/trino/__init__.py +0 -0
- yandex/cloud/trino/v1/__init__.py +0 -0
- yandex/cloud/trino/v1/cluster_pb2.py +119 -0
- yandex/cloud/trino/v1/cluster_pb2.pyi +576 -0
- yandex/cloud/trino/v1/cluster_pb2_grpc.py +24 -0
- yandex/cloud/trino/v1/cluster_pb2_grpc.pyi +17 -0
- yandex/cloud/trino/v1/cluster_service_pb2.py +162 -0
- yandex/cloud/trino/v1/cluster_service_pb2.pyi +597 -0
- yandex/cloud/trino/v1/cluster_service_pb2_grpc.py +411 -0
- yandex/cloud/trino/v1/cluster_service_pb2_grpc.pyi +192 -0
- yandex/cloud/trino/v1/maintenance_pb2.py +53 -0
- yandex/cloud/trino/v1/maintenance_pb2.pyi +123 -0
- yandex/cloud/trino/v1/maintenance_pb2_grpc.py +24 -0
- yandex/cloud/trino/v1/maintenance_pb2_grpc.pyi +17 -0
- yandexcloud/__init__.py +1 -1
- yandexcloud/_sdk.py +1 -0
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.343.0.dist-info}/METADATA +2 -1
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.343.0.dist-info}/RECORD +48 -30
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.343.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.343.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.343.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.341.0.dist-info → yandexcloud-0.343.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,240 @@
|
|
|
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.internal.enum_type_wrapper
|
|
9
|
+
import google.protobuf.message
|
|
10
|
+
import sys
|
|
11
|
+
import typing
|
|
12
|
+
import yandex.cloud.searchapi.v2.search_query_pb2
|
|
13
|
+
|
|
14
|
+
if sys.version_info >= (3, 10):
|
|
15
|
+
import typing as typing_extensions
|
|
16
|
+
else:
|
|
17
|
+
import typing_extensions
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
20
|
+
|
|
21
|
+
@typing.final
|
|
22
|
+
class ImageSpec(google.protobuf.message.Message):
|
|
23
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
24
|
+
|
|
25
|
+
class _ImageFormat:
|
|
26
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
27
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
28
|
+
|
|
29
|
+
class _ImageFormatEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ImageSpec._ImageFormat.ValueType], builtins.type):
|
|
30
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
31
|
+
IMAGE_FORMAT_UNSPECIFIED: ImageSpec._ImageFormat.ValueType # 0
|
|
32
|
+
IMAGE_FORMAT_JPEG: ImageSpec._ImageFormat.ValueType # 1
|
|
33
|
+
"""JPG format."""
|
|
34
|
+
IMAGE_FORMAT_GIF: ImageSpec._ImageFormat.ValueType # 2
|
|
35
|
+
"""GIF format."""
|
|
36
|
+
IMAGE_FORMAT_PNG: ImageSpec._ImageFormat.ValueType # 3
|
|
37
|
+
"""PNG format."""
|
|
38
|
+
|
|
39
|
+
class ImageFormat(_ImageFormat, metaclass=_ImageFormatEnumTypeWrapper): ...
|
|
40
|
+
IMAGE_FORMAT_UNSPECIFIED: ImageSpec.ImageFormat.ValueType # 0
|
|
41
|
+
IMAGE_FORMAT_JPEG: ImageSpec.ImageFormat.ValueType # 1
|
|
42
|
+
"""JPG format."""
|
|
43
|
+
IMAGE_FORMAT_GIF: ImageSpec.ImageFormat.ValueType # 2
|
|
44
|
+
"""GIF format."""
|
|
45
|
+
IMAGE_FORMAT_PNG: ImageSpec.ImageFormat.ValueType # 3
|
|
46
|
+
"""PNG format."""
|
|
47
|
+
|
|
48
|
+
class _ImageOrientation:
|
|
49
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
50
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
51
|
+
|
|
52
|
+
class _ImageOrientationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ImageSpec._ImageOrientation.ValueType], builtins.type):
|
|
53
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
54
|
+
IMAGE_ORIENTATION_UNSPECIFIED: ImageSpec._ImageOrientation.ValueType # 0
|
|
55
|
+
IMAGE_ORIENTATION_VERTICAL: ImageSpec._ImageOrientation.ValueType # 1
|
|
56
|
+
"""Horizontal orientation."""
|
|
57
|
+
IMAGE_ORIENTATION_HORIZONTAL: ImageSpec._ImageOrientation.ValueType # 2
|
|
58
|
+
"""Vertical orientation."""
|
|
59
|
+
IMAGE_ORIENTATION_SQUARE: ImageSpec._ImageOrientation.ValueType # 3
|
|
60
|
+
"""Square aspect ratio."""
|
|
61
|
+
|
|
62
|
+
class ImageOrientation(_ImageOrientation, metaclass=_ImageOrientationEnumTypeWrapper): ...
|
|
63
|
+
IMAGE_ORIENTATION_UNSPECIFIED: ImageSpec.ImageOrientation.ValueType # 0
|
|
64
|
+
IMAGE_ORIENTATION_VERTICAL: ImageSpec.ImageOrientation.ValueType # 1
|
|
65
|
+
"""Horizontal orientation."""
|
|
66
|
+
IMAGE_ORIENTATION_HORIZONTAL: ImageSpec.ImageOrientation.ValueType # 2
|
|
67
|
+
"""Vertical orientation."""
|
|
68
|
+
IMAGE_ORIENTATION_SQUARE: ImageSpec.ImageOrientation.ValueType # 3
|
|
69
|
+
"""Square aspect ratio."""
|
|
70
|
+
|
|
71
|
+
class _ImageSize:
|
|
72
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
73
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
74
|
+
|
|
75
|
+
class _ImageSizeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ImageSpec._ImageSize.ValueType], builtins.type):
|
|
76
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
77
|
+
IMAGE_SIZE_UNSPECIFIED: ImageSpec._ImageSize.ValueType # 0
|
|
78
|
+
IMAGE_SIZE_ENORMOUS: ImageSpec._ImageSize.ValueType # 1
|
|
79
|
+
"""Very large images (larger than 1,600 × 1,200 pixels)."""
|
|
80
|
+
IMAGE_SIZE_LARGE: ImageSpec._ImageSize.ValueType # 2
|
|
81
|
+
"""Large images (from 800 × 600 to 1,600 × 1,200 pixels)."""
|
|
82
|
+
IMAGE_SIZE_MEDIUM: ImageSpec._ImageSize.ValueType # 3
|
|
83
|
+
"""Medium images (from 150 × 150 to 800 × 600 pixels)."""
|
|
84
|
+
IMAGE_SIZE_SMALL: ImageSpec._ImageSize.ValueType # 4
|
|
85
|
+
"""Small images (from 32 × 32 to 150 × 150 pixels)."""
|
|
86
|
+
IMAGE_SIZE_TINY: ImageSpec._ImageSize.ValueType # 5
|
|
87
|
+
"""Icons (up to 32 × 32 pixels)."""
|
|
88
|
+
IMAGE_SIZE_WALLPAPER: ImageSpec._ImageSize.ValueType # 6
|
|
89
|
+
"""Desktop wallpapers."""
|
|
90
|
+
|
|
91
|
+
class ImageSize(_ImageSize, metaclass=_ImageSizeEnumTypeWrapper): ...
|
|
92
|
+
IMAGE_SIZE_UNSPECIFIED: ImageSpec.ImageSize.ValueType # 0
|
|
93
|
+
IMAGE_SIZE_ENORMOUS: ImageSpec.ImageSize.ValueType # 1
|
|
94
|
+
"""Very large images (larger than 1,600 × 1,200 pixels)."""
|
|
95
|
+
IMAGE_SIZE_LARGE: ImageSpec.ImageSize.ValueType # 2
|
|
96
|
+
"""Large images (from 800 × 600 to 1,600 × 1,200 pixels)."""
|
|
97
|
+
IMAGE_SIZE_MEDIUM: ImageSpec.ImageSize.ValueType # 3
|
|
98
|
+
"""Medium images (from 150 × 150 to 800 × 600 pixels)."""
|
|
99
|
+
IMAGE_SIZE_SMALL: ImageSpec.ImageSize.ValueType # 4
|
|
100
|
+
"""Small images (from 32 × 32 to 150 × 150 pixels)."""
|
|
101
|
+
IMAGE_SIZE_TINY: ImageSpec.ImageSize.ValueType # 5
|
|
102
|
+
"""Icons (up to 32 × 32 pixels)."""
|
|
103
|
+
IMAGE_SIZE_WALLPAPER: ImageSpec.ImageSize.ValueType # 6
|
|
104
|
+
"""Desktop wallpapers."""
|
|
105
|
+
|
|
106
|
+
class _ImageColor:
|
|
107
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
108
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
109
|
+
|
|
110
|
+
class _ImageColorEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[ImageSpec._ImageColor.ValueType], builtins.type):
|
|
111
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
112
|
+
IMAGE_COLOR_UNSPECIFIED: ImageSpec._ImageColor.ValueType # 0
|
|
113
|
+
IMAGE_COLOR_COLOR: ImageSpec._ImageColor.ValueType # 1
|
|
114
|
+
"""Color images."""
|
|
115
|
+
IMAGE_COLOR_GRAYSCALE: ImageSpec._ImageColor.ValueType # 2
|
|
116
|
+
"""Black and white images."""
|
|
117
|
+
IMAGE_COLOR_RED: ImageSpec._ImageColor.ValueType # 3
|
|
118
|
+
"""Red is the main color of the image."""
|
|
119
|
+
IMAGE_COLOR_ORANGE: ImageSpec._ImageColor.ValueType # 4
|
|
120
|
+
"""Orange is the main color of the image."""
|
|
121
|
+
IMAGE_COLOR_YELLOW: ImageSpec._ImageColor.ValueType # 5
|
|
122
|
+
"""Yellow is the main color of the image."""
|
|
123
|
+
IMAGE_COLOR_GREEN: ImageSpec._ImageColor.ValueType # 6
|
|
124
|
+
"""Green is the main color of the image."""
|
|
125
|
+
IMAGE_COLOR_CYAN: ImageSpec._ImageColor.ValueType # 7
|
|
126
|
+
"""Cyan is the main color of the image."""
|
|
127
|
+
IMAGE_COLOR_BLUE: ImageSpec._ImageColor.ValueType # 8
|
|
128
|
+
"""Blue is the main color of the image."""
|
|
129
|
+
IMAGE_COLOR_VIOLET: ImageSpec._ImageColor.ValueType # 9
|
|
130
|
+
"""Violet is the main color of the image."""
|
|
131
|
+
IMAGE_COLOR_WHITE: ImageSpec._ImageColor.ValueType # 10
|
|
132
|
+
"""White is the main color of the image."""
|
|
133
|
+
IMAGE_COLOR_BLACK: ImageSpec._ImageColor.ValueType # 11
|
|
134
|
+
"""Black is the main color of the image."""
|
|
135
|
+
|
|
136
|
+
class ImageColor(_ImageColor, metaclass=_ImageColorEnumTypeWrapper): ...
|
|
137
|
+
IMAGE_COLOR_UNSPECIFIED: ImageSpec.ImageColor.ValueType # 0
|
|
138
|
+
IMAGE_COLOR_COLOR: ImageSpec.ImageColor.ValueType # 1
|
|
139
|
+
"""Color images."""
|
|
140
|
+
IMAGE_COLOR_GRAYSCALE: ImageSpec.ImageColor.ValueType # 2
|
|
141
|
+
"""Black and white images."""
|
|
142
|
+
IMAGE_COLOR_RED: ImageSpec.ImageColor.ValueType # 3
|
|
143
|
+
"""Red is the main color of the image."""
|
|
144
|
+
IMAGE_COLOR_ORANGE: ImageSpec.ImageColor.ValueType # 4
|
|
145
|
+
"""Orange is the main color of the image."""
|
|
146
|
+
IMAGE_COLOR_YELLOW: ImageSpec.ImageColor.ValueType # 5
|
|
147
|
+
"""Yellow is the main color of the image."""
|
|
148
|
+
IMAGE_COLOR_GREEN: ImageSpec.ImageColor.ValueType # 6
|
|
149
|
+
"""Green is the main color of the image."""
|
|
150
|
+
IMAGE_COLOR_CYAN: ImageSpec.ImageColor.ValueType # 7
|
|
151
|
+
"""Cyan is the main color of the image."""
|
|
152
|
+
IMAGE_COLOR_BLUE: ImageSpec.ImageColor.ValueType # 8
|
|
153
|
+
"""Blue is the main color of the image."""
|
|
154
|
+
IMAGE_COLOR_VIOLET: ImageSpec.ImageColor.ValueType # 9
|
|
155
|
+
"""Violet is the main color of the image."""
|
|
156
|
+
IMAGE_COLOR_WHITE: ImageSpec.ImageColor.ValueType # 10
|
|
157
|
+
"""White is the main color of the image."""
|
|
158
|
+
IMAGE_COLOR_BLACK: ImageSpec.ImageColor.ValueType # 11
|
|
159
|
+
"""Black is the main color of the image."""
|
|
160
|
+
|
|
161
|
+
FORMAT_FIELD_NUMBER: builtins.int
|
|
162
|
+
SIZE_FIELD_NUMBER: builtins.int
|
|
163
|
+
ORIENTATION_FIELD_NUMBER: builtins.int
|
|
164
|
+
COLOR_FIELD_NUMBER: builtins.int
|
|
165
|
+
format: global___ImageSpec.ImageFormat.ValueType
|
|
166
|
+
"""Searching for images in a particular format."""
|
|
167
|
+
size: global___ImageSpec.ImageSize.ValueType
|
|
168
|
+
"""Searching for images of a particular size."""
|
|
169
|
+
orientation: global___ImageSpec.ImageOrientation.ValueType
|
|
170
|
+
"""Searching for images with a particular orientation."""
|
|
171
|
+
color: global___ImageSpec.ImageColor.ValueType
|
|
172
|
+
"""Searching for images containing a particular color."""
|
|
173
|
+
def __init__(
|
|
174
|
+
self,
|
|
175
|
+
*,
|
|
176
|
+
format: global___ImageSpec.ImageFormat.ValueType = ...,
|
|
177
|
+
size: global___ImageSpec.ImageSize.ValueType = ...,
|
|
178
|
+
orientation: global___ImageSpec.ImageOrientation.ValueType = ...,
|
|
179
|
+
color: global___ImageSpec.ImageColor.ValueType = ...,
|
|
180
|
+
) -> None: ...
|
|
181
|
+
def ClearField(self, field_name: typing.Literal["color", b"color", "format", b"format", "orientation", b"orientation", "size", b"size"]) -> None: ...
|
|
182
|
+
|
|
183
|
+
global___ImageSpec = ImageSpec
|
|
184
|
+
|
|
185
|
+
@typing.final
|
|
186
|
+
class ImageSearchRequest(google.protobuf.message.Message):
|
|
187
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
188
|
+
|
|
189
|
+
QUERY_FIELD_NUMBER: builtins.int
|
|
190
|
+
IMAGE_SPEC_FIELD_NUMBER: builtins.int
|
|
191
|
+
SITE_FIELD_NUMBER: builtins.int
|
|
192
|
+
DOCS_ON_PAGE_FIELD_NUMBER: builtins.int
|
|
193
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
194
|
+
USER_AGENT_FIELD_NUMBER: builtins.int
|
|
195
|
+
site: builtins.str
|
|
196
|
+
"""Searching for images on a particular website only."""
|
|
197
|
+
docs_on_page: builtins.int
|
|
198
|
+
"""Number of results per search result page."""
|
|
199
|
+
folder_id: builtins.str
|
|
200
|
+
"""ID of the folder."""
|
|
201
|
+
user_agent: builtins.str
|
|
202
|
+
"""User-Agent request header value."""
|
|
203
|
+
@property
|
|
204
|
+
def query(self) -> yandex.cloud.searchapi.v2.search_query_pb2.SearchQuery:
|
|
205
|
+
"""Search query."""
|
|
206
|
+
|
|
207
|
+
@property
|
|
208
|
+
def image_spec(self) -> global___ImageSpec:
|
|
209
|
+
"""Searching for images with a particular size, orientation, format or color."""
|
|
210
|
+
|
|
211
|
+
def __init__(
|
|
212
|
+
self,
|
|
213
|
+
*,
|
|
214
|
+
query: yandex.cloud.searchapi.v2.search_query_pb2.SearchQuery | None = ...,
|
|
215
|
+
image_spec: global___ImageSpec | None = ...,
|
|
216
|
+
site: builtins.str = ...,
|
|
217
|
+
docs_on_page: builtins.int = ...,
|
|
218
|
+
folder_id: builtins.str = ...,
|
|
219
|
+
user_agent: builtins.str = ...,
|
|
220
|
+
) -> None: ...
|
|
221
|
+
def HasField(self, field_name: typing.Literal["image_spec", b"image_spec", "query", b"query"]) -> builtins.bool: ...
|
|
222
|
+
def ClearField(self, field_name: typing.Literal["docs_on_page", b"docs_on_page", "folder_id", b"folder_id", "image_spec", b"image_spec", "query", b"query", "site", b"site", "user_agent", b"user_agent"]) -> None: ...
|
|
223
|
+
|
|
224
|
+
global___ImageSearchRequest = ImageSearchRequest
|
|
225
|
+
|
|
226
|
+
@typing.final
|
|
227
|
+
class ImageSearchResponse(google.protobuf.message.Message):
|
|
228
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
229
|
+
|
|
230
|
+
RAW_DATA_FIELD_NUMBER: builtins.int
|
|
231
|
+
raw_data: builtins.bytes
|
|
232
|
+
"""Search results in XML format."""
|
|
233
|
+
def __init__(
|
|
234
|
+
self,
|
|
235
|
+
*,
|
|
236
|
+
raw_data: builtins.bytes = ...,
|
|
237
|
+
) -> None: ...
|
|
238
|
+
def ClearField(self, field_name: typing.Literal["raw_data", b"raw_data"]) -> None: ...
|
|
239
|
+
|
|
240
|
+
global___ImageSearchResponse = ImageSearchResponse
|
|
@@ -0,0 +1,100 @@
|
|
|
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.searchapi.v2 import img_search_service_pb2 as yandex_dot_cloud_dot_searchapi_dot_v2_dot_img__search__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/searchapi/v2/img_search_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 ImageSearchServiceStub(object):
|
|
29
|
+
"""A set of methods for searching of images using the Yandex Images.
|
|
30
|
+
"""
|
|
31
|
+
|
|
32
|
+
def __init__(self, channel):
|
|
33
|
+
"""Constructor.
|
|
34
|
+
|
|
35
|
+
Args:
|
|
36
|
+
channel: A grpc.Channel.
|
|
37
|
+
"""
|
|
38
|
+
self.Search = channel.unary_unary(
|
|
39
|
+
'/yandex.cloud.searchapi.v2.ImageSearchService/Search',
|
|
40
|
+
request_serializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_img__search__service__pb2.ImageSearchRequest.SerializeToString,
|
|
41
|
+
response_deserializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_img__search__service__pb2.ImageSearchResponse.FromString,
|
|
42
|
+
_registered_method=True)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class ImageSearchServiceServicer(object):
|
|
46
|
+
"""A set of methods for searching of images using the Yandex Images.
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
def Search(self, request, context):
|
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
|
51
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
52
|
+
context.set_details('Method not implemented!')
|
|
53
|
+
raise NotImplementedError('Method not implemented!')
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
def add_ImageSearchServiceServicer_to_server(servicer, server):
|
|
57
|
+
rpc_method_handlers = {
|
|
58
|
+
'Search': grpc.unary_unary_rpc_method_handler(
|
|
59
|
+
servicer.Search,
|
|
60
|
+
request_deserializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_img__search__service__pb2.ImageSearchRequest.FromString,
|
|
61
|
+
response_serializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_img__search__service__pb2.ImageSearchResponse.SerializeToString,
|
|
62
|
+
),
|
|
63
|
+
}
|
|
64
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
65
|
+
'yandex.cloud.searchapi.v2.ImageSearchService', rpc_method_handlers)
|
|
66
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
67
|
+
server.add_registered_method_handlers('yandex.cloud.searchapi.v2.ImageSearchService', rpc_method_handlers)
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
# This class is part of an EXPERIMENTAL API.
|
|
71
|
+
class ImageSearchService(object):
|
|
72
|
+
"""A set of methods for searching of images using the Yandex Images.
|
|
73
|
+
"""
|
|
74
|
+
|
|
75
|
+
@staticmethod
|
|
76
|
+
def Search(request,
|
|
77
|
+
target,
|
|
78
|
+
options=(),
|
|
79
|
+
channel_credentials=None,
|
|
80
|
+
call_credentials=None,
|
|
81
|
+
insecure=False,
|
|
82
|
+
compression=None,
|
|
83
|
+
wait_for_ready=None,
|
|
84
|
+
timeout=None,
|
|
85
|
+
metadata=None):
|
|
86
|
+
return grpc.experimental.unary_unary(
|
|
87
|
+
request,
|
|
88
|
+
target,
|
|
89
|
+
'/yandex.cloud.searchapi.v2.ImageSearchService/Search',
|
|
90
|
+
yandex_dot_cloud_dot_searchapi_dot_v2_dot_img__search__service__pb2.ImageSearchRequest.SerializeToString,
|
|
91
|
+
yandex_dot_cloud_dot_searchapi_dot_v2_dot_img__search__service__pb2.ImageSearchResponse.FromString,
|
|
92
|
+
options,
|
|
93
|
+
channel_credentials,
|
|
94
|
+
insecure,
|
|
95
|
+
call_credentials,
|
|
96
|
+
compression,
|
|
97
|
+
wait_for_ready,
|
|
98
|
+
timeout,
|
|
99
|
+
metadata,
|
|
100
|
+
_registered_method=True)
|
|
@@ -0,0 +1,47 @@
|
|
|
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.searchapi.v2.img_search_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 ImageSearchServiceStub:
|
|
21
|
+
"""A set of methods for searching of images using the Yandex Images."""
|
|
22
|
+
|
|
23
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
24
|
+
Search: grpc.UnaryUnaryMultiCallable[
|
|
25
|
+
yandex.cloud.searchapi.v2.img_search_service_pb2.ImageSearchRequest,
|
|
26
|
+
yandex.cloud.searchapi.v2.img_search_service_pb2.ImageSearchResponse,
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
class ImageSearchServiceAsyncStub:
|
|
30
|
+
"""A set of methods for searching of images using the Yandex Images."""
|
|
31
|
+
|
|
32
|
+
Search: grpc.aio.UnaryUnaryMultiCallable[
|
|
33
|
+
yandex.cloud.searchapi.v2.img_search_service_pb2.ImageSearchRequest,
|
|
34
|
+
yandex.cloud.searchapi.v2.img_search_service_pb2.ImageSearchResponse,
|
|
35
|
+
]
|
|
36
|
+
|
|
37
|
+
class ImageSearchServiceServicer(metaclass=abc.ABCMeta):
|
|
38
|
+
"""A set of methods for searching of images using the Yandex Images."""
|
|
39
|
+
|
|
40
|
+
@abc.abstractmethod
|
|
41
|
+
def Search(
|
|
42
|
+
self,
|
|
43
|
+
request: yandex.cloud.searchapi.v2.img_search_service_pb2.ImageSearchRequest,
|
|
44
|
+
context: _ServicerContext,
|
|
45
|
+
) -> typing.Union[yandex.cloud.searchapi.v2.img_search_service_pb2.ImageSearchResponse, collections.abc.Awaitable[yandex.cloud.searchapi.v2.img_search_service_pb2.ImageSearchResponse]]: ...
|
|
46
|
+
|
|
47
|
+
def add_ImageSearchServiceServicer_to_server(servicer: ImageSearchServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -25,7 +25,7 @@ _sym_db = _symbol_database.Default()
|
|
|
25
25
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/searchapi/v2/search_query.proto\x12\x19yandex.cloud.searchapi.v2\x1a\x1dyandex/cloud/validation.proto\"\
|
|
28
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/searchapi/v2/search_query.proto\x12\x19yandex.cloud.searchapi.v2\x1a\x1dyandex/cloud/validation.proto\"\x9b\x05\n\x0bSearchQuery\x12L\n\x0bsearch_type\x18\x01 \x01(\x0e\x32\x31.yandex.cloud.searchapi.v2.SearchQuery.SearchTypeB\x04\xe8\xc7\x31\x01\x12!\n\nquery_text\x18\x02 \x01(\tB\r\xe8\xc7\x31\x01\x8a\xc8\x31\x05<=400\x12\x46\n\x0b\x66\x61mily_mode\x18\x03 \x01(\x0e\x32\x31.yandex.cloud.searchapi.v2.SearchQuery.FamilyMode\x12\x15\n\x04page\x18\x04 \x01(\x03\x42\x07\xfa\xc7\x31\x03>=0\x12I\n\rfix_typo_mode\x18\x05 \x01(\x0e\x32\x32.yandex.cloud.searchapi.v2.SearchQuery.FixTypoMode\"\xa2\x01\n\nSearchType\x12\x1b\n\x17SEARCH_TYPE_UNSPECIFIED\x10\x00\x12\x12\n\x0eSEARCH_TYPE_RU\x10\x01\x12\x12\n\x0eSEARCH_TYPE_TR\x10\x02\x12\x13\n\x0fSEARCH_TYPE_COM\x10\x03\x12\x12\n\x0eSEARCH_TYPE_KK\x10\x04\x12\x12\n\x0eSEARCH_TYPE_BE\x10\x05\x12\x12\n\x0eSEARCH_TYPE_UZ\x10\x06\"q\n\nFamilyMode\x12\x1b\n\x17\x46\x41MILY_MODE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x46\x41MILY_MODE_NONE\x10\x01\x12\x18\n\x14\x46\x41MILY_MODE_MODERATE\x10\x02\x12\x16\n\x12\x46\x41MILY_MODE_STRICT\x10\x03\"Y\n\x0b\x46ixTypoMode\x12\x1d\n\x19\x46IX_TYPO_MODE_UNSPECIFIED\x10\x00\x12\x14\n\x10\x46IX_TYPO_MODE_ON\x10\x01\x12\x15\n\x11\x46IX_TYPO_MODE_OFF\x10\x02\x42\x65\n\x1ayandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapib\x06proto3')
|
|
29
29
|
|
|
30
30
|
_globals = globals()
|
|
31
31
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -40,11 +40,11 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
40
40
|
_globals['_SEARCHQUERY'].fields_by_name['page']._loaded_options = None
|
|
41
41
|
_globals['_SEARCHQUERY'].fields_by_name['page']._serialized_options = b'\372\3071\003>=0'
|
|
42
42
|
_globals['_SEARCHQUERY']._serialized_start=107
|
|
43
|
-
_globals['_SEARCHQUERY']._serialized_end=
|
|
43
|
+
_globals['_SEARCHQUERY']._serialized_end=774
|
|
44
44
|
_globals['_SEARCHQUERY_SEARCHTYPE']._serialized_start=406
|
|
45
|
-
_globals['_SEARCHQUERY_SEARCHTYPE']._serialized_end=
|
|
46
|
-
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_start=
|
|
47
|
-
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_end=
|
|
48
|
-
_globals['_SEARCHQUERY_FIXTYPOMODE']._serialized_start=
|
|
49
|
-
_globals['_SEARCHQUERY_FIXTYPOMODE']._serialized_end=
|
|
45
|
+
_globals['_SEARCHQUERY_SEARCHTYPE']._serialized_end=568
|
|
46
|
+
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_start=570
|
|
47
|
+
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_end=683
|
|
48
|
+
_globals['_SEARCHQUERY_FIXTYPOMODE']._serialized_start=685
|
|
49
|
+
_globals['_SEARCHQUERY_FIXTYPOMODE']._serialized_end=774
|
|
50
50
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -38,6 +38,8 @@ class SearchQuery(google.protobuf.message.Message):
|
|
|
38
38
|
"""Kazakh search type, yandex.kz search domain name will be used."""
|
|
39
39
|
SEARCH_TYPE_BE: SearchQuery._SearchType.ValueType # 5
|
|
40
40
|
"""Belarusian search type, yandex.by search domain name will be used."""
|
|
41
|
+
SEARCH_TYPE_UZ: SearchQuery._SearchType.ValueType # 6
|
|
42
|
+
"""Uzbek search type, yandex.uz search domain name will be used."""
|
|
41
43
|
|
|
42
44
|
class SearchType(_SearchType, metaclass=_SearchTypeEnumTypeWrapper): ...
|
|
43
45
|
SEARCH_TYPE_UNSPECIFIED: SearchQuery.SearchType.ValueType # 0
|
|
@@ -51,6 +53,8 @@ class SearchQuery(google.protobuf.message.Message):
|
|
|
51
53
|
"""Kazakh search type, yandex.kz search domain name will be used."""
|
|
52
54
|
SEARCH_TYPE_BE: SearchQuery.SearchType.ValueType # 5
|
|
53
55
|
"""Belarusian search type, yandex.by search domain name will be used."""
|
|
56
|
+
SEARCH_TYPE_UZ: SearchQuery.SearchType.ValueType # 6
|
|
57
|
+
"""Uzbek search type, yandex.uz search domain name will be used."""
|
|
54
58
|
|
|
55
59
|
class _FamilyMode:
|
|
56
60
|
ValueType = typing.NewType("ValueType", builtins.int)
|
|
@@ -27,7 +27,7 @@ from yandex.cloud.logging.v1 import log_entry_pb2 as yandex_dot_cloud_dot_loggin
|
|
|
27
27
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0yandex/cloud/serverless/eventrouter/v1/bus.proto\x12&yandex.cloud.serverless.eventrouter.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\'yandex/cloud/logging/v1/log_entry.proto\x1a\x1dyandex/cloud/validation.proto\"\
|
|
30
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n0yandex/cloud/serverless/eventrouter/v1/bus.proto\x12&yandex.cloud.serverless.eventrouter.v1\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\'yandex/cloud/logging/v1/log_entry.proto\x1a\x1dyandex/cloud/validation.proto\"\xb4\x01\n\nLogOptions\x12 \n\x0clog_group_id\x18\x01 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12\x1d\n\tfolder_id\x18\x02 \x01(\tB\x08\x8a\xc8\x31\x04<=50H\x00\x12:\n\tmin_level\x18\x03 \x01(\x0e\x32\'.yandex.cloud.logging.v1.LogLevel.Level\x12\x1a\n\x12service_account_id\x18\x04 \x01(\tB\r\n\x0b\x64\x65stination\"\x8e\x04\n\x03\x42us\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x10\n\x08\x63loud_id\x18\x03 \x01(\t\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0c\n\x04name\x18\x05 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12G\n\x06labels\x18\x07 \x03(\x0b\x32\x37.yandex.cloud.serverless.eventrouter.v1.Bus.LabelsEntry\x12\x1b\n\x13\x64\x65letion_protection\x18\x08 \x01(\x08\x12\x42\n\x06status\x18\t \x01(\x0e\x32\x32.yandex.cloud.serverless.eventrouter.v1.Bus.Status\x12\x17\n\x0flogging_enabled\x18\n \x01(\x08\x12G\n\x0blog_options\x18\x0b \x01(\x0b\x32\x32.yandex.cloud.serverless.eventrouter.v1.LogOptions\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"H\n\x06Status\x12\x16\n\x12STATUS_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08\x44\x45LETING\x10\x03\x42\x8a\x01\n*yandex.cloud.api.serverless.eventrouter.v1B\x04PERBZVgithub.com/yandex-cloud/go-genproto/yandex/cloud/serverless/eventrouter/v1;eventrouterb\x06proto3')
|
|
31
31
|
|
|
32
32
|
_globals = globals()
|
|
33
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -39,16 +39,14 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
39
39
|
_globals['_LOGOPTIONS'].fields_by_name['log_group_id']._serialized_options = b'\212\3101\004<=50'
|
|
40
40
|
_globals['_LOGOPTIONS'].fields_by_name['folder_id']._loaded_options = None
|
|
41
41
|
_globals['_LOGOPTIONS'].fields_by_name['folder_id']._serialized_options = b'\212\3101\004<=50'
|
|
42
|
-
_globals['_LOGOPTIONS'].fields_by_name['service_account_id']._loaded_options = None
|
|
43
|
-
_globals['_LOGOPTIONS'].fields_by_name['service_account_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
44
42
|
_globals['_BUS_LABELSENTRY']._loaded_options = None
|
|
45
43
|
_globals['_BUS_LABELSENTRY']._serialized_options = b'8\001'
|
|
46
44
|
_globals['_LOGOPTIONS']._serialized_start=198
|
|
47
|
-
_globals['_LOGOPTIONS']._serialized_end=
|
|
48
|
-
_globals['_BUS']._serialized_start=
|
|
49
|
-
_globals['_BUS']._serialized_end=
|
|
50
|
-
_globals['_BUS_LABELSENTRY']._serialized_start=
|
|
51
|
-
_globals['_BUS_LABELSENTRY']._serialized_end=
|
|
52
|
-
_globals['_BUS_STATUS']._serialized_start=
|
|
53
|
-
_globals['_BUS_STATUS']._serialized_end=
|
|
45
|
+
_globals['_LOGOPTIONS']._serialized_end=378
|
|
46
|
+
_globals['_BUS']._serialized_start=381
|
|
47
|
+
_globals['_BUS']._serialized_end=907
|
|
48
|
+
_globals['_BUS_LABELSENTRY']._serialized_start=788
|
|
49
|
+
_globals['_BUS_LABELSENTRY']._serialized_end=833
|
|
50
|
+
_globals['_BUS_STATUS']._serialized_start=835
|
|
51
|
+
_globals['_BUS_STATUS']._serialized_end=907
|
|
54
52
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -27,7 +27,7 @@ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__
|
|
|
27
27
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
28
28
|
|
|
29
29
|
|
|
30
|
-
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\"\
|
|
30
|
+
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\"\xce\x02\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\x12Z\n\x14\x65vent_service_source\x18\x04 \x01(\x0b\x32:.yandex.cloud.serverless.eventrouter.v1.EventServiceSourceH\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\"\x14\n\x12\x45ventServiceSource\"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')
|
|
31
31
|
|
|
32
32
|
_globals = globals()
|
|
33
33
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -68,11 +68,13 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
68
68
|
_globals['_CONNECTOR_STATUS']._serialized_start=650
|
|
69
69
|
_globals['_CONNECTOR_STATUS']._serialized_end=806
|
|
70
70
|
_globals['_SOURCE']._serialized_start=809
|
|
71
|
-
_globals['_SOURCE']._serialized_end=
|
|
72
|
-
_globals['_DATASTREAM']._serialized_start=
|
|
73
|
-
_globals['_DATASTREAM']._serialized_end=
|
|
74
|
-
_globals['_MESSAGEQUEUE']._serialized_start=
|
|
75
|
-
_globals['_MESSAGEQUEUE']._serialized_end=
|
|
76
|
-
_globals['
|
|
77
|
-
_globals['
|
|
71
|
+
_globals['_SOURCE']._serialized_end=1143
|
|
72
|
+
_globals['_DATASTREAM']._serialized_start=1145
|
|
73
|
+
_globals['_DATASTREAM']._serialized_end=1266
|
|
74
|
+
_globals['_MESSAGEQUEUE']._serialized_start=1269
|
|
75
|
+
_globals['_MESSAGEQUEUE']._serialized_end=1509
|
|
76
|
+
_globals['_EVENTSERVICESOURCE']._serialized_start=1511
|
|
77
|
+
_globals['_EVENTSERVICESOURCE']._serialized_end=1531
|
|
78
|
+
_globals['_TIMER']._serialized_start=1533
|
|
79
|
+
_globals['_TIMER']._serialized_end=1634
|
|
78
80
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -146,22 +146,26 @@ class Source(google.protobuf.message.Message):
|
|
|
146
146
|
DATA_STREAM_FIELD_NUMBER: builtins.int
|
|
147
147
|
MESSAGE_QUEUE_FIELD_NUMBER: builtins.int
|
|
148
148
|
TIMER_FIELD_NUMBER: builtins.int
|
|
149
|
+
EVENT_SERVICE_SOURCE_FIELD_NUMBER: builtins.int
|
|
149
150
|
@property
|
|
150
151
|
def data_stream(self) -> global___DataStream: ...
|
|
151
152
|
@property
|
|
152
153
|
def message_queue(self) -> global___MessageQueue: ...
|
|
153
154
|
@property
|
|
154
155
|
def timer(self) -> global___Timer: ...
|
|
156
|
+
@property
|
|
157
|
+
def event_service_source(self) -> global___EventServiceSource: ...
|
|
155
158
|
def __init__(
|
|
156
159
|
self,
|
|
157
160
|
*,
|
|
158
161
|
data_stream: global___DataStream | None = ...,
|
|
159
162
|
message_queue: global___MessageQueue | None = ...,
|
|
160
163
|
timer: global___Timer | None = ...,
|
|
164
|
+
event_service_source: global___EventServiceSource | None = ...,
|
|
161
165
|
) -> 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: ...
|
|
166
|
+
def HasField(self, field_name: typing.Literal["data_stream", b"data_stream", "event_service_source", b"event_service_source", "message_queue", b"message_queue", "source", b"source", "timer", b"timer"]) -> builtins.bool: ...
|
|
167
|
+
def ClearField(self, field_name: typing.Literal["data_stream", b"data_stream", "event_service_source", b"event_service_source", "message_queue", b"message_queue", "source", b"source", "timer", b"timer"]) -> None: ...
|
|
168
|
+
def WhichOneof(self, oneof_group: typing.Literal["source", b"source"]) -> typing.Literal["data_stream", "message_queue", "timer", "event_service_source"] | None: ...
|
|
165
169
|
|
|
166
170
|
global___Source = Source
|
|
167
171
|
|
|
@@ -234,6 +238,16 @@ class MessageQueue(google.protobuf.message.Message):
|
|
|
234
238
|
|
|
235
239
|
global___MessageQueue = MessageQueue
|
|
236
240
|
|
|
241
|
+
@typing.final
|
|
242
|
+
class EventServiceSource(google.protobuf.message.Message):
|
|
243
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
244
|
+
|
|
245
|
+
def __init__(
|
|
246
|
+
self,
|
|
247
|
+
) -> None: ...
|
|
248
|
+
|
|
249
|
+
global___EventServiceSource = EventServiceSource
|
|
250
|
+
|
|
237
251
|
@typing.final
|
|
238
252
|
class Timer(google.protobuf.message.Message):
|
|
239
253
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
File without changes
|
|
File without changes
|