yandexcloud 0.323.0__py3-none-any.whl → 0.325.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/foundation_models/v1/embedding/embedding_service_pb2.pyi +1 -1
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_pb2.pyi +4 -2
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_service_pb2.pyi +6 -3
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_service_pb2_grpc.py +3 -3
- yandex/cloud/ai/foundation_models/v1/image_generation/image_generation_service_pb2_grpc.pyi +3 -3
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_pb2.pyi +3 -3
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2.pyi +25 -10
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2_grpc.py +11 -5
- yandex/cloud/ai/foundation_models/v1/text_classification/text_classification_service_pb2_grpc.pyi +33 -9
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.py +27 -27
- yandex/cloud/ai/foundation_models/v1/text_common_pb2.pyi +18 -6
- yandex/cloud/ai/stt/v3/stt_pb2.py +5 -3
- yandex/cloud/ai/stt/v3/stt_pb2.pyi +15 -0
- yandex/cloud/ai/stt/v3/stt_service_pb2.py +10 -7
- yandex/cloud/ai/stt/v3/stt_service_pb2_grpc.py +34 -0
- yandex/cloud/ai/stt/v3/stt_service_pb2_grpc.pyi +18 -0
- yandex/cloud/apploadbalancer/v1/backend_group_pb2.py +26 -26
- yandex/cloud/apploadbalancer/v1/backend_group_pb2.pyi +7 -1
- yandex/cloud/backup/v1/backup_service_pb2.py +42 -41
- yandex/cloud/backup/v1/backup_service_pb2.pyi +6 -1
- yandex/cloud/backup/v1/policy_pb2.pyi +1 -1
- yandex/cloud/billing/v1/customer_service_pb2.pyi +5 -4
- yandex/cloud/cdn/v1/resource_service_pb2.py +14 -14
- yandex/cloud/cdn/v1/resource_service_pb2.pyi +5 -1
- yandex/cloud/cloudregistry/__init__.py +0 -0
- yandex/cloud/cloudregistry/v1/__init__.py +0 -0
- yandex/cloud/cloudregistry/v1/artifact_pb2.py +31 -0
- yandex/cloud/cloudregistry/v1/artifact_pb2.pyi +112 -0
- yandex/cloud/cloudregistry/v1/artifact_pb2_grpc.py +4 -0
- yandex/cloud/cloudregistry/v1/artifact_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudregistry/v1/artifact_service_pb2.py +45 -0
- yandex/cloud/cloudregistry/v1/artifact_service_pb2.pyi +59 -0
- yandex/cloud/cloudregistry/v1/artifact_service_pb2_grpc.py +108 -0
- yandex/cloud/cloudregistry/v1/artifact_service_pb2_grpc.pyi +81 -0
- yandex/cloud/cloudregistry/v1/ip_permission_pb2.py +37 -0
- yandex/cloud/cloudregistry/v1/ip_permission_pb2.pyi +95 -0
- yandex/cloud/cloudregistry/v1/ip_permission_pb2_grpc.py +4 -0
- yandex/cloud/cloudregistry/v1/ip_permission_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudregistry/v1/registry_pb2.py +41 -0
- yandex/cloud/cloudregistry/v1/registry_pb2.pyi +181 -0
- yandex/cloud/cloudregistry/v1/registry_pb2_grpc.py +4 -0
- yandex/cloud/cloudregistry/v1/registry_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2.py +157 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2.pyi +504 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2_grpc.py +451 -0
- yandex/cloud/cloudregistry/v1/registry_service_pb2_grpc.pyi +291 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.py +8 -10
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.pyi +2 -28
- yandex/cloud/compute/v1/instance_service_pb2_grpc.py +1 -1
- yandex/cloud/compute/v1/instance_service_pb2_grpc.pyi +3 -3
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.py +9 -5
- yandex/cloud/datasphere/v2/jobs/jobs_pb2.pyi +96 -0
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.py +55 -53
- yandex/cloud/datasphere/v2/jobs/project_job_service_pb2.pyi +14 -2
- yandex/cloud/iam/v1/user_account_pb2.pyi +2 -2
- yandex/cloud/iam/v1/user_account_service_pb2_grpc.py +3 -3
- yandex/cloud/iam/v1/user_account_service_pb2_grpc.pyi +3 -3
- yandex/cloud/lockbox/v1/secret_service_pb2.py +56 -55
- yandex/cloud/lockbox/v1/secret_service_pb2.pyi +13 -2
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.py +55 -45
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2.pyi +40 -0
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2_grpc.py +34 -0
- yandex/cloud/mdb/opensearch/v1/cluster_service_pb2_grpc.pyi +20 -0
- yandex/cloud/mdb/postgresql/v1/cluster_pb2.py +47 -43
- yandex/cloud/mdb/postgresql/v1/cluster_pb2.pyi +34 -6
- yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.py +109 -105
- yandex/cloud/mdb/postgresql/v1/cluster_service_pb2.pyi +35 -7
- yandex/cloud/mdb/postgresql/v1/config/host17_1c_pb2.py +68 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_1c_pb2.pyi +512 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_1c_pb2_grpc.py +4 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_1c_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_pb2.py +68 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_pb2.pyi +512 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_pb2_grpc.py +4 -0
- yandex/cloud/mdb/postgresql/v1/config/host17_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_1c_pb2.py +168 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_1c_pb2.pyi +1130 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_1c_pb2_grpc.py +4 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_1c_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_pb2.py +168 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_pb2.pyi +1122 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_pb2_grpc.py +4 -0
- yandex/cloud/mdb/postgresql/v1/config/postgresql17_pb2_grpc.pyi +17 -0
- yandex/cloud/mdb/redis/v1/backup_pb2.py +4 -2
- yandex/cloud/mdb/redis/v1/backup_pb2.pyi +31 -1
- yandex/cloud/organizationmanager/v1/user_account_pb2.pyi +2 -2
- yandex/cloud/searchapi/__init__.py +0 -0
- yandex/cloud/searchapi/v2/__init__.py +0 -0
- yandex/cloud/searchapi/v2/search_query_pb2.py +37 -0
- yandex/cloud/searchapi/v2/search_query_pb2.pyi +100 -0
- yandex/cloud/searchapi/v2/search_query_pb2_grpc.py +4 -0
- yandex/cloud/searchapi/v2/search_query_pb2_grpc.pyi +17 -0
- yandex/cloud/searchapi/v2/search_service_pb2.py +61 -0
- yandex/cloud/searchapi/v2/search_service_pb2.pyi +218 -0
- yandex/cloud/searchapi/v2/search_service_pb2_grpc.py +70 -0
- yandex/cloud/searchapi/v2/search_service_pb2_grpc.pyi +48 -0
- yandex/cloud/serverless/containers/v1/container_pb2.py +42 -34
- yandex/cloud/serverless/containers/v1/container_pb2.pyi +52 -2
- yandex/cloud/serverless/containers/v1/container_service_pb2.py +18 -18
- yandex/cloud/serverless/containers/v1/container_service_pb2.pyi +8 -2
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.py +9 -9
- yandex/cloud/serverless/eventrouter/v1/connector_pb2.pyi +8 -0
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.py +31 -31
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.pyi +4 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2.py +23 -15
- yandex/cloud/serverless/workflows/v1/execution_service_pb2.pyi +32 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.py +34 -0
- yandex/cloud/serverless/workflows/v1/execution_service_pb2_grpc.pyi +20 -0
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2.py +46 -40
- yandex/cloud/smartwebsecurity/v1/security_profile_pb2.pyi +47 -2
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2.py +18 -18
- yandex/cloud/smartwebsecurity/v1/security_profile_service_pb2.pyi +16 -3
- yandex/cloud/video/v1/channel_pb2.py +1 -1
- yandex/cloud/video/v1/channel_service_pb2.py +58 -25
- yandex/cloud/video/v1/channel_service_pb2.pyi +40 -0
- yandex/cloud/video/v1/channel_service_pb2_grpc.py +34 -0
- yandex/cloud/video/v1/channel_service_pb2_grpc.pyi +20 -0
- yandex/cloud/video/v1/episode_pb2.py +10 -8
- yandex/cloud/video/v1/episode_pb2.pyi +19 -3
- yandex/cloud/video/v1/episode_service_pb2.py +96 -43
- yandex/cloud/video/v1/episode_service_pb2.pyi +68 -6
- yandex/cloud/video/v1/episode_service_pb2_grpc.py +34 -0
- yandex/cloud/video/v1/episode_service_pb2_grpc.pyi +20 -0
- yandex/cloud/video/v1/manifest_pb2.py +3 -3
- yandex/cloud/video/v1/manifest_pb2.pyi +1 -5
- yandex/cloud/video/v1/playlist_pb2.py +29 -0
- yandex/cloud/video/v1/playlist_pb2.pyi +89 -0
- yandex/cloud/video/v1/playlist_pb2_grpc.py +4 -0
- yandex/cloud/video/v1/playlist_pb2_grpc.pyi +17 -0
- yandex/cloud/video/v1/playlist_service_pb2.py +102 -0
- yandex/cloud/video/v1/playlist_service_pb2.pyi +331 -0
- yandex/cloud/video/v1/playlist_service_pb2_grpc.py +276 -0
- yandex/cloud/video/v1/playlist_service_pb2_grpc.pyi +172 -0
- yandex/cloud/video/v1/stream_line_pb2.py +1 -1
- yandex/cloud/video/v1/stream_line_service_pb2.py +122 -55
- yandex/cloud/video/v1/stream_line_service_pb2.pyi +80 -0
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.py +68 -0
- yandex/cloud/video/v1/stream_line_service_pb2_grpc.pyi +40 -0
- yandex/cloud/video/v1/stream_pb2.py +1 -1
- yandex/cloud/video/v1/stream_service_pb2.py +98 -37
- yandex/cloud/video/v1/stream_service_pb2.pyi +80 -0
- yandex/cloud/video/v1/stream_service_pb2_grpc.py +68 -0
- yandex/cloud/video/v1/stream_service_pb2_grpc.pyi +40 -0
- yandex/cloud/video/v1/subtitle_pb2.py +29 -0
- yandex/cloud/video/v1/subtitle_pb2.pyi +90 -0
- yandex/cloud/video/v1/subtitle_pb2_grpc.py +4 -0
- yandex/cloud/video/v1/subtitle_pb2_grpc.pyi +17 -0
- yandex/cloud/video/v1/subtitle_service_pb2.py +83 -0
- yandex/cloud/video/v1/subtitle_service_pb2.pyi +212 -0
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.py +208 -0
- yandex/cloud/video/v1/subtitle_service_pb2_grpc.pyi +132 -0
- yandex/cloud/video/v1/thumbnail_service_pb2.py +50 -21
- yandex/cloud/video/v1/thumbnail_service_pb2.pyi +48 -0
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.py +69 -0
- yandex/cloud/video/v1/thumbnail_service_pb2_grpc.pyi +41 -0
- yandex/cloud/video/v1/video_pb2.py +18 -14
- yandex/cloud/video/v1/video_pb2.pyi +55 -3
- yandex/cloud/video/v1/video_service_pb2.py +118 -49
- yandex/cloud/video/v1/video_service_pb2.pyi +161 -6
- yandex/cloud/video/v1/video_service_pb2_grpc.py +102 -0
- yandex/cloud/video/v1/video_service_pb2_grpc.pyi +60 -0
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.325.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.325.0.dist-info}/RECORD +167 -103
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.325.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.325.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.325.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.323.0.dist-info → yandexcloud-0.325.0.dist-info}/top_level.txt +0 -0
|
@@ -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
|
+
...
|
|
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
|
|
|
14
14
|
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
15
|
|
|
16
16
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&yandex/cloud/mdb/redis/v1/backup.proto\x12\x19yandex.cloud.mdb.redis.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n&yandex/cloud/mdb/redis/v1/backup.proto\x12\x19yandex.cloud.mdb.redis.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xc0\x02\n\x06\x42\x61\x63kup\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12.\n\ncreated_at\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x19\n\x11source_cluster_id\x18\x04 \x01(\t\x12.\n\nstarted_at\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x1a\n\x12source_shard_names\x18\x06 \x03(\t\x12:\n\x04type\x18\x07 \x01(\x0e\x32,.yandex.cloud.mdb.redis.v1.Backup.BackupType\"D\n\nBackupType\x12\x1b\n\x17\x42\x41\x43KUP_TYPE_UNSPECIFIED\x10\x00\x12\r\n\tAUTOMATED\x10\x01\x12\n\n\x06MANUAL\x10\x02\x42\x64\n\x1dyandex.cloud.api.mdb.redis.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1;redisb\x06proto3')
|
|
18
18
|
|
|
19
19
|
_globals = globals()
|
|
20
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -23,5 +23,7 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
23
23
|
DESCRIPTOR._options = None
|
|
24
24
|
DESCRIPTOR._serialized_options = b'\n\035yandex.cloud.api.mdb.redis.v1ZCgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1;redis'
|
|
25
25
|
_globals['_BACKUP']._serialized_start=103
|
|
26
|
-
_globals['_BACKUP']._serialized_end=
|
|
26
|
+
_globals['_BACKUP']._serialized_end=423
|
|
27
|
+
_globals['_BACKUP_BACKUPTYPE']._serialized_start=355
|
|
28
|
+
_globals['_BACKUP_BACKUPTYPE']._serialized_end=423
|
|
27
29
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -7,10 +7,17 @@ import builtins
|
|
|
7
7
|
import collections.abc
|
|
8
8
|
import google.protobuf.descriptor
|
|
9
9
|
import google.protobuf.internal.containers
|
|
10
|
+
import google.protobuf.internal.enum_type_wrapper
|
|
10
11
|
import google.protobuf.message
|
|
11
12
|
import google.protobuf.timestamp_pb2
|
|
13
|
+
import sys
|
|
12
14
|
import typing
|
|
13
15
|
|
|
16
|
+
if sys.version_info >= (3, 10):
|
|
17
|
+
import typing as typing_extensions
|
|
18
|
+
else:
|
|
19
|
+
import typing_extensions
|
|
20
|
+
|
|
14
21
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
22
|
|
|
16
23
|
@typing.final
|
|
@@ -21,18 +28,40 @@ class Backup(google.protobuf.message.Message):
|
|
|
21
28
|
|
|
22
29
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
23
30
|
|
|
31
|
+
class _BackupType:
|
|
32
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
33
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
34
|
+
|
|
35
|
+
class _BackupTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Backup._BackupType.ValueType], builtins.type):
|
|
36
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
37
|
+
BACKUP_TYPE_UNSPECIFIED: Backup._BackupType.ValueType # 0
|
|
38
|
+
AUTOMATED: Backup._BackupType.ValueType # 1
|
|
39
|
+
"""Backup created by automated daily schedule"""
|
|
40
|
+
MANUAL: Backup._BackupType.ValueType # 2
|
|
41
|
+
"""Backup created by user request"""
|
|
42
|
+
|
|
43
|
+
class BackupType(_BackupType, metaclass=_BackupTypeEnumTypeWrapper): ...
|
|
44
|
+
BACKUP_TYPE_UNSPECIFIED: Backup.BackupType.ValueType # 0
|
|
45
|
+
AUTOMATED: Backup.BackupType.ValueType # 1
|
|
46
|
+
"""Backup created by automated daily schedule"""
|
|
47
|
+
MANUAL: Backup.BackupType.ValueType # 2
|
|
48
|
+
"""Backup created by user request"""
|
|
49
|
+
|
|
24
50
|
ID_FIELD_NUMBER: builtins.int
|
|
25
51
|
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
26
52
|
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
27
53
|
SOURCE_CLUSTER_ID_FIELD_NUMBER: builtins.int
|
|
28
54
|
STARTED_AT_FIELD_NUMBER: builtins.int
|
|
29
55
|
SOURCE_SHARD_NAMES_FIELD_NUMBER: builtins.int
|
|
56
|
+
TYPE_FIELD_NUMBER: builtins.int
|
|
30
57
|
id: builtins.str
|
|
31
58
|
"""ID of the backup."""
|
|
32
59
|
folder_id: builtins.str
|
|
33
60
|
"""ID of the folder that the backup belongs to."""
|
|
34
61
|
source_cluster_id: builtins.str
|
|
35
62
|
"""ID of the Redis cluster that the backup was created for."""
|
|
63
|
+
type: global___Backup.BackupType.ValueType
|
|
64
|
+
"""How this backup was created (manual/automatic/etc...)"""
|
|
36
65
|
@property
|
|
37
66
|
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp:
|
|
38
67
|
"""Creation timestamp in [RFC3339](https://www.ietf.org/rfc/rfc3339.txt) text format
|
|
@@ -58,8 +87,9 @@ class Backup(google.protobuf.message.Message):
|
|
|
58
87
|
source_cluster_id: builtins.str = ...,
|
|
59
88
|
started_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
60
89
|
source_shard_names: collections.abc.Iterable[builtins.str] | None = ...,
|
|
90
|
+
type: global___Backup.BackupType.ValueType = ...,
|
|
61
91
|
) -> None: ...
|
|
62
92
|
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "started_at", b"started_at"]) -> builtins.bool: ...
|
|
63
|
-
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "folder_id", b"folder_id", "id", b"id", "source_cluster_id", b"source_cluster_id", "source_shard_names", b"source_shard_names", "started_at", b"started_at"]) -> None: ...
|
|
93
|
+
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "folder_id", b"folder_id", "id", b"id", "source_cluster_id", b"source_cluster_id", "source_shard_names", b"source_shard_names", "started_at", b"started_at", "type", b"type"]) -> None: ...
|
|
64
94
|
|
|
65
95
|
global___Backup = Backup
|
|
@@ -14,7 +14,7 @@ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
|
14
14
|
|
|
15
15
|
@typing.final
|
|
16
16
|
class UserAccount(google.protobuf.message.Message):
|
|
17
|
-
"""Currently represents only [Yandex account](/docs/iam/concepts
|
|
17
|
+
"""Currently represents only [Yandex account](/docs/iam/concepts/users/accounts#passport)."""
|
|
18
18
|
|
|
19
19
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
20
20
|
|
|
@@ -47,7 +47,7 @@ global___UserAccount = UserAccount
|
|
|
47
47
|
@typing.final
|
|
48
48
|
class YandexPassportUserAccount(google.protobuf.message.Message):
|
|
49
49
|
"""A YandexPassportUserAccount resource.
|
|
50
|
-
For more information, see [Yandex account](/docs/iam/concepts
|
|
50
|
+
For more information, see [Yandex account](/docs/iam/concepts/users/accounts#passport).
|
|
51
51
|
"""
|
|
52
52
|
|
|
53
53
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/searchapi/v2/search_query.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 yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/searchapi/v2/search_query.proto\x12\x19yandex.cloud.searchapi.v2\x1a\x1dyandex/cloud/validation.proto\"\xb8\x03\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\"f\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\"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\x42\x65\n\x1ayandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapib\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.searchapi.v2.search_query_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n\032yandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapi'
|
|
25
|
+
_SEARCHQUERY.fields_by_name['search_type']._options = None
|
|
26
|
+
_SEARCHQUERY.fields_by_name['search_type']._serialized_options = b'\350\3071\001'
|
|
27
|
+
_SEARCHQUERY.fields_by_name['query_text']._options = None
|
|
28
|
+
_SEARCHQUERY.fields_by_name['query_text']._serialized_options = b'\350\3071\001\212\3101\005<=400'
|
|
29
|
+
_SEARCHQUERY.fields_by_name['page']._options = None
|
|
30
|
+
_SEARCHQUERY.fields_by_name['page']._serialized_options = b'\372\3071\003>=0'
|
|
31
|
+
_globals['_SEARCHQUERY']._serialized_start=107
|
|
32
|
+
_globals['_SEARCHQUERY']._serialized_end=547
|
|
33
|
+
_globals['_SEARCHQUERY_SEARCHTYPE']._serialized_start=330
|
|
34
|
+
_globals['_SEARCHQUERY_SEARCHTYPE']._serialized_end=432
|
|
35
|
+
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_start=434
|
|
36
|
+
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_end=547
|
|
37
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,100 @@
|
|
|
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
|
+
|
|
13
|
+
if sys.version_info >= (3, 10):
|
|
14
|
+
import typing as typing_extensions
|
|
15
|
+
else:
|
|
16
|
+
import typing_extensions
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
19
|
+
|
|
20
|
+
@typing.final
|
|
21
|
+
class SearchQuery(google.protobuf.message.Message):
|
|
22
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
23
|
+
|
|
24
|
+
class _SearchType:
|
|
25
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
26
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
27
|
+
|
|
28
|
+
class _SearchTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SearchQuery._SearchType.ValueType], builtins.type):
|
|
29
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
30
|
+
SEARCH_TYPE_UNSPECIFIED: SearchQuery._SearchType.ValueType # 0
|
|
31
|
+
SEARCH_TYPE_RU: SearchQuery._SearchType.ValueType # 1
|
|
32
|
+
"""Russian search type (default), yandex.ru search domain name will be used."""
|
|
33
|
+
SEARCH_TYPE_TR: SearchQuery._SearchType.ValueType # 2
|
|
34
|
+
"""Turkish search type, yandex.tr search domain name will be used."""
|
|
35
|
+
SEARCH_TYPE_COM: SearchQuery._SearchType.ValueType # 3
|
|
36
|
+
"""International search type, yandex.com search domain name will be used."""
|
|
37
|
+
|
|
38
|
+
class SearchType(_SearchType, metaclass=_SearchTypeEnumTypeWrapper): ...
|
|
39
|
+
SEARCH_TYPE_UNSPECIFIED: SearchQuery.SearchType.ValueType # 0
|
|
40
|
+
SEARCH_TYPE_RU: SearchQuery.SearchType.ValueType # 1
|
|
41
|
+
"""Russian search type (default), yandex.ru search domain name will be used."""
|
|
42
|
+
SEARCH_TYPE_TR: SearchQuery.SearchType.ValueType # 2
|
|
43
|
+
"""Turkish search type, yandex.tr search domain name will be used."""
|
|
44
|
+
SEARCH_TYPE_COM: SearchQuery.SearchType.ValueType # 3
|
|
45
|
+
"""International search type, yandex.com search domain name will be used."""
|
|
46
|
+
|
|
47
|
+
class _FamilyMode:
|
|
48
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
49
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
50
|
+
|
|
51
|
+
class _FamilyModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SearchQuery._FamilyMode.ValueType], builtins.type):
|
|
52
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
53
|
+
FAMILY_MODE_UNSPECIFIED: SearchQuery._FamilyMode.ValueType # 0
|
|
54
|
+
FAMILY_MODE_NONE: SearchQuery._FamilyMode.ValueType # 1
|
|
55
|
+
"""Filtering is disabled. Search results include any documents regardless of their contents."""
|
|
56
|
+
FAMILY_MODE_MODERATE: SearchQuery._FamilyMode.ValueType # 2
|
|
57
|
+
"""Moderate filter (default value). Documents of the Adult category are excluded from search results
|
|
58
|
+
unless a query is explicitly made for searching resources of this category.
|
|
59
|
+
"""
|
|
60
|
+
FAMILY_MODE_STRICT: SearchQuery._FamilyMode.ValueType # 3
|
|
61
|
+
"""Regardless of a search query, documents of the Adult category
|
|
62
|
+
and those with profanity are excluded from search results.
|
|
63
|
+
"""
|
|
64
|
+
|
|
65
|
+
class FamilyMode(_FamilyMode, metaclass=_FamilyModeEnumTypeWrapper): ...
|
|
66
|
+
FAMILY_MODE_UNSPECIFIED: SearchQuery.FamilyMode.ValueType # 0
|
|
67
|
+
FAMILY_MODE_NONE: SearchQuery.FamilyMode.ValueType # 1
|
|
68
|
+
"""Filtering is disabled. Search results include any documents regardless of their contents."""
|
|
69
|
+
FAMILY_MODE_MODERATE: SearchQuery.FamilyMode.ValueType # 2
|
|
70
|
+
"""Moderate filter (default value). Documents of the Adult category are excluded from search results
|
|
71
|
+
unless a query is explicitly made for searching resources of this category.
|
|
72
|
+
"""
|
|
73
|
+
FAMILY_MODE_STRICT: SearchQuery.FamilyMode.ValueType # 3
|
|
74
|
+
"""Regardless of a search query, documents of the Adult category
|
|
75
|
+
and those with profanity are excluded from search results.
|
|
76
|
+
"""
|
|
77
|
+
|
|
78
|
+
SEARCH_TYPE_FIELD_NUMBER: builtins.int
|
|
79
|
+
QUERY_TEXT_FIELD_NUMBER: builtins.int
|
|
80
|
+
FAMILY_MODE_FIELD_NUMBER: builtins.int
|
|
81
|
+
PAGE_FIELD_NUMBER: builtins.int
|
|
82
|
+
search_type: global___SearchQuery.SearchType.ValueType
|
|
83
|
+
"""Search type that determines the domain name that will be used for the search queries."""
|
|
84
|
+
query_text: builtins.str
|
|
85
|
+
"""Search query text"""
|
|
86
|
+
family_mode: global___SearchQuery.FamilyMode.ValueType
|
|
87
|
+
"""Rule for filtering search results and determines whether any documents should be excluded."""
|
|
88
|
+
page: builtins.int
|
|
89
|
+
"""The number of a requested page with search results"""
|
|
90
|
+
def __init__(
|
|
91
|
+
self,
|
|
92
|
+
*,
|
|
93
|
+
search_type: global___SearchQuery.SearchType.ValueType = ...,
|
|
94
|
+
query_text: builtins.str = ...,
|
|
95
|
+
family_mode: global___SearchQuery.FamilyMode.ValueType = ...,
|
|
96
|
+
page: builtins.int = ...,
|
|
97
|
+
) -> None: ...
|
|
98
|
+
def ClearField(self, field_name: typing.Literal["family_mode", b"family_mode", "page", b"page", "query_text", b"query_text", "search_type", b"search_type"]) -> None: ...
|
|
99
|
+
|
|
100
|
+
global___SearchQuery = SearchQuery
|
|
@@ -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,61 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/searchapi/v2/search_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 yandex.cloud.api import operation_pb2 as yandex_dot_cloud_dot_api_dot_operation__pb2
|
|
15
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
16
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
17
|
+
from yandex.cloud.searchapi.v2 import search_query_pb2 as yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__query__pb2
|
|
18
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.yandex/cloud/searchapi/v2/search_service.proto\x12\x19yandex.cloud.searchapi.v2\x1a yandex/cloud/api/operation.proto\x1a&yandex/cloud/operation/operation.proto\x1a\x1dyandex/cloud/validation.proto\x1a,yandex/cloud/searchapi/v2/search_query.proto\x1a\x1cgoogle/api/annotations.proto\"\xba\x02\n\x08SortSpec\x12?\n\tsort_mode\x18\x01 \x01(\x0e\x32,.yandex.cloud.searchapi.v2.SortSpec.SortMode\x12\x41\n\nsort_order\x18\x02 \x01(\x0e\x32-.yandex.cloud.searchapi.v2.SortSpec.SortOrder\"P\n\tSortOrder\x12\x1a\n\x16SORT_ORDER_UNSPECIFIED\x10\x00\x12\x12\n\x0eSORT_ORDER_ASC\x10\x01\x12\x13\n\x0fSORT_ORDER_DESC\x10\x02\"X\n\x08SortMode\x12\x19\n\x15SORT_MODE_UNSPECIFIED\x10\x00\x12\x1a\n\x16SORT_MODE_BY_RELEVANCE\x10\x01\x12\x15\n\x11SORT_MODE_BY_TIME\x10\x02\"\xe5\x01\n\tGroupSpec\x12\x42\n\ngroup_mode\x18\x01 \x01(\x0e\x32..yandex.cloud.searchapi.v2.GroupSpec.GroupMode\x12!\n\x0egroups_on_page\x18\x02 \x01(\x03\x42\t\xfa\xc7\x31\x05\x31-100\x12\x1e\n\rdocs_in_group\x18\x03 \x01(\x03\x42\x07\xfa\xc7\x31\x03\x31-3\"Q\n\tGroupMode\x12\x1a\n\x16GROUP_MODE_UNSPECIFIED\x10\x00\x12\x13\n\x0fGROUP_MODE_FLAT\x10\x01\x12\x13\n\x0fGROUP_MODE_DEEP\x10\x02\"\x82\x04\n\x10WebSearchRequest\x12;\n\x05query\x18\x01 \x01(\x0b\x32&.yandex.cloud.searchapi.v2.SearchQueryB\x04\xe8\xc7\x31\x01\x12\x36\n\tsort_spec\x18\x02 \x01(\x0b\x32#.yandex.cloud.searchapi.v2.SortSpec\x12\x38\n\ngroup_spec\x18\x03 \x01(\x0b\x32$.yandex.cloud.searchapi.v2.GroupSpec\x12\x1d\n\x0cmax_passages\x18\x04 \x01(\x03\x42\x07\xfa\xc7\x31\x03\x31-5\x12\x0e\n\x06region\x18\x05 \x01(\t\x12\x46\n\x04l10n\x18\x06 \x01(\x0e\x32\x38.yandex.cloud.searchapi.v2.WebSearchRequest.Localization\x12\x1b\n\tfolder_id\x18\x07 \x01(\tB\x08\x8a\xc8\x31\x04<=50\"\xaa\x01\n\x0cLocalization\x12\x1c\n\x18LOCALIZATION_UNSPECIFIED\x10\x00\x12\x13\n\x0fLOCALIZATION_RU\x10\x01\x12\x13\n\x0fLOCALIZATION_UK\x10\x02\x12\x13\n\x0fLOCALIZATION_BE\x10\x03\x12\x13\n\x0fLOCALIZATION_KK\x10\x04\x12\x13\n\x0fLOCALIZATION_TR\x10\x05\x12\x13\n\x0fLOCALIZATION_EN\x10\x06\"+\n\x11WebSearchResponse\x12\x16\n\x08raw_data\x18\x01 \x01(\x0c\x42\x04\xe8\xc7\x31\x01\x32\xa9\x01\n\x15WebSearchAsyncService\x12\x8f\x01\n\x06Search\x12+.yandex.cloud.searchapi.v2.WebSearchRequest\x1a!.yandex.cloud.operation.Operation\"5\xb2\xd2*\x13\x12\x11WebSearchResponse\x82\xd3\xe4\x93\x02\x18\"\x13/v2/web/searchAsync:\x01*Be\n\x1ayandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapib\x06proto3')
|
|
22
|
+
|
|
23
|
+
_globals = globals()
|
|
24
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
25
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.searchapi.v2.search_service_pb2', _globals)
|
|
26
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
27
|
+
DESCRIPTOR._options = None
|
|
28
|
+
DESCRIPTOR._serialized_options = b'\n\032yandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapi'
|
|
29
|
+
_GROUPSPEC.fields_by_name['groups_on_page']._options = None
|
|
30
|
+
_GROUPSPEC.fields_by_name['groups_on_page']._serialized_options = b'\372\3071\0051-100'
|
|
31
|
+
_GROUPSPEC.fields_by_name['docs_in_group']._options = None
|
|
32
|
+
_GROUPSPEC.fields_by_name['docs_in_group']._serialized_options = b'\372\3071\0031-3'
|
|
33
|
+
_WEBSEARCHREQUEST.fields_by_name['query']._options = None
|
|
34
|
+
_WEBSEARCHREQUEST.fields_by_name['query']._serialized_options = b'\350\3071\001'
|
|
35
|
+
_WEBSEARCHREQUEST.fields_by_name['max_passages']._options = None
|
|
36
|
+
_WEBSEARCHREQUEST.fields_by_name['max_passages']._serialized_options = b'\372\3071\0031-5'
|
|
37
|
+
_WEBSEARCHREQUEST.fields_by_name['folder_id']._options = None
|
|
38
|
+
_WEBSEARCHREQUEST.fields_by_name['folder_id']._serialized_options = b'\212\3101\004<=50'
|
|
39
|
+
_WEBSEARCHRESPONSE.fields_by_name['raw_data']._options = None
|
|
40
|
+
_WEBSEARCHRESPONSE.fields_by_name['raw_data']._serialized_options = b'\350\3071\001'
|
|
41
|
+
_WEBSEARCHASYNCSERVICE.methods_by_name['Search']._options = None
|
|
42
|
+
_WEBSEARCHASYNCSERVICE.methods_by_name['Search']._serialized_options = b'\262\322*\023\022\021WebSearchResponse\202\323\344\223\002\030\"\023/v2/web/searchAsync:\001*'
|
|
43
|
+
_globals['_SORTSPEC']._serialized_start=259
|
|
44
|
+
_globals['_SORTSPEC']._serialized_end=573
|
|
45
|
+
_globals['_SORTSPEC_SORTORDER']._serialized_start=403
|
|
46
|
+
_globals['_SORTSPEC_SORTORDER']._serialized_end=483
|
|
47
|
+
_globals['_SORTSPEC_SORTMODE']._serialized_start=485
|
|
48
|
+
_globals['_SORTSPEC_SORTMODE']._serialized_end=573
|
|
49
|
+
_globals['_GROUPSPEC']._serialized_start=576
|
|
50
|
+
_globals['_GROUPSPEC']._serialized_end=805
|
|
51
|
+
_globals['_GROUPSPEC_GROUPMODE']._serialized_start=724
|
|
52
|
+
_globals['_GROUPSPEC_GROUPMODE']._serialized_end=805
|
|
53
|
+
_globals['_WEBSEARCHREQUEST']._serialized_start=808
|
|
54
|
+
_globals['_WEBSEARCHREQUEST']._serialized_end=1322
|
|
55
|
+
_globals['_WEBSEARCHREQUEST_LOCALIZATION']._serialized_start=1152
|
|
56
|
+
_globals['_WEBSEARCHREQUEST_LOCALIZATION']._serialized_end=1322
|
|
57
|
+
_globals['_WEBSEARCHRESPONSE']._serialized_start=1324
|
|
58
|
+
_globals['_WEBSEARCHRESPONSE']._serialized_end=1367
|
|
59
|
+
_globals['_WEBSEARCHASYNCSERVICE']._serialized_start=1370
|
|
60
|
+
_globals['_WEBSEARCHASYNCSERVICE']._serialized_end=1539
|
|
61
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,218 @@
|
|
|
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 SortSpec(google.protobuf.message.Message):
|
|
23
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
24
|
+
|
|
25
|
+
class _SortOrder:
|
|
26
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
27
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
28
|
+
|
|
29
|
+
class _SortOrderEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SortSpec._SortOrder.ValueType], builtins.type):
|
|
30
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
31
|
+
SORT_ORDER_UNSPECIFIED: SortSpec._SortOrder.ValueType # 0
|
|
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
|
+
"""Reverse order from oldest to most recent."""
|
|
36
|
+
|
|
37
|
+
class SortOrder(_SortOrder, metaclass=_SortOrderEnumTypeWrapper): ...
|
|
38
|
+
SORT_ORDER_UNSPECIFIED: SortSpec.SortOrder.ValueType # 0
|
|
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
|
+
"""Reverse order from oldest to most recent."""
|
|
43
|
+
|
|
44
|
+
class _SortMode:
|
|
45
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
46
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
47
|
+
|
|
48
|
+
class _SortModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SortSpec._SortMode.ValueType], builtins.type):
|
|
49
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
50
|
+
SORT_MODE_UNSPECIFIED: SortSpec._SortMode.ValueType # 0
|
|
51
|
+
SORT_MODE_BY_RELEVANCE: SortSpec._SortMode.ValueType # 1
|
|
52
|
+
"""Sort documents by relevance (default value)."""
|
|
53
|
+
SORT_MODE_BY_TIME: SortSpec._SortMode.ValueType # 2
|
|
54
|
+
"""Sort documents by update time."""
|
|
55
|
+
|
|
56
|
+
class SortMode(_SortMode, metaclass=_SortModeEnumTypeWrapper): ...
|
|
57
|
+
SORT_MODE_UNSPECIFIED: SortSpec.SortMode.ValueType # 0
|
|
58
|
+
SORT_MODE_BY_RELEVANCE: SortSpec.SortMode.ValueType # 1
|
|
59
|
+
"""Sort documents by relevance (default value)."""
|
|
60
|
+
SORT_MODE_BY_TIME: SortSpec.SortMode.ValueType # 2
|
|
61
|
+
"""Sort documents by update time."""
|
|
62
|
+
|
|
63
|
+
SORT_MODE_FIELD_NUMBER: builtins.int
|
|
64
|
+
SORT_ORDER_FIELD_NUMBER: builtins.int
|
|
65
|
+
sort_mode: global___SortSpec.SortMode.ValueType
|
|
66
|
+
"""Documents sorting mode."""
|
|
67
|
+
sort_order: global___SortSpec.SortOrder.ValueType
|
|
68
|
+
"""Documents sorting order."""
|
|
69
|
+
def __init__(
|
|
70
|
+
self,
|
|
71
|
+
*,
|
|
72
|
+
sort_mode: global___SortSpec.SortMode.ValueType = ...,
|
|
73
|
+
sort_order: global___SortSpec.SortOrder.ValueType = ...,
|
|
74
|
+
) -> None: ...
|
|
75
|
+
def ClearField(self, field_name: typing.Literal["sort_mode", b"sort_mode", "sort_order", b"sort_order"]) -> None: ...
|
|
76
|
+
|
|
77
|
+
global___SortSpec = SortSpec
|
|
78
|
+
|
|
79
|
+
@typing.final
|
|
80
|
+
class GroupSpec(google.protobuf.message.Message):
|
|
81
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
82
|
+
|
|
83
|
+
class _GroupMode:
|
|
84
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
85
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
86
|
+
|
|
87
|
+
class _GroupModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[GroupSpec._GroupMode.ValueType], builtins.type):
|
|
88
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
89
|
+
GROUP_MODE_UNSPECIFIED: GroupSpec._GroupMode.ValueType # 0
|
|
90
|
+
GROUP_MODE_FLAT: GroupSpec._GroupMode.ValueType # 1
|
|
91
|
+
"""Flat grouping. Each group contains a single document."""
|
|
92
|
+
GROUP_MODE_DEEP: GroupSpec._GroupMode.ValueType # 2
|
|
93
|
+
"""Grouping by domain. Each group contains documents from one domain."""
|
|
94
|
+
|
|
95
|
+
class GroupMode(_GroupMode, metaclass=_GroupModeEnumTypeWrapper): ...
|
|
96
|
+
GROUP_MODE_UNSPECIFIED: GroupSpec.GroupMode.ValueType # 0
|
|
97
|
+
GROUP_MODE_FLAT: GroupSpec.GroupMode.ValueType # 1
|
|
98
|
+
"""Flat grouping. Each group contains a single document."""
|
|
99
|
+
GROUP_MODE_DEEP: GroupSpec.GroupMode.ValueType # 2
|
|
100
|
+
"""Grouping by domain. Each group contains documents from one domain."""
|
|
101
|
+
|
|
102
|
+
GROUP_MODE_FIELD_NUMBER: builtins.int
|
|
103
|
+
GROUPS_ON_PAGE_FIELD_NUMBER: builtins.int
|
|
104
|
+
DOCS_IN_GROUP_FIELD_NUMBER: builtins.int
|
|
105
|
+
group_mode: global___GroupSpec.GroupMode.ValueType
|
|
106
|
+
"""Grouping method."""
|
|
107
|
+
groups_on_page: builtins.int
|
|
108
|
+
"""Maximum number of groups that can be returned per page with search results."""
|
|
109
|
+
docs_in_group: builtins.int
|
|
110
|
+
"""Maximum number of documents that can be returned per group."""
|
|
111
|
+
def __init__(
|
|
112
|
+
self,
|
|
113
|
+
*,
|
|
114
|
+
group_mode: global___GroupSpec.GroupMode.ValueType = ...,
|
|
115
|
+
groups_on_page: builtins.int = ...,
|
|
116
|
+
docs_in_group: builtins.int = ...,
|
|
117
|
+
) -> None: ...
|
|
118
|
+
def ClearField(self, field_name: typing.Literal["docs_in_group", b"docs_in_group", "group_mode", b"group_mode", "groups_on_page", b"groups_on_page"]) -> None: ...
|
|
119
|
+
|
|
120
|
+
global___GroupSpec = GroupSpec
|
|
121
|
+
|
|
122
|
+
@typing.final
|
|
123
|
+
class WebSearchRequest(google.protobuf.message.Message):
|
|
124
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
125
|
+
|
|
126
|
+
class _Localization:
|
|
127
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
128
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
129
|
+
|
|
130
|
+
class _LocalizationEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[WebSearchRequest._Localization.ValueType], builtins.type):
|
|
131
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
132
|
+
LOCALIZATION_UNSPECIFIED: WebSearchRequest._Localization.ValueType # 0
|
|
133
|
+
LOCALIZATION_RU: WebSearchRequest._Localization.ValueType # 1
|
|
134
|
+
"""Russian (default value)"""
|
|
135
|
+
LOCALIZATION_UK: WebSearchRequest._Localization.ValueType # 2
|
|
136
|
+
"""Ukrainian"""
|
|
137
|
+
LOCALIZATION_BE: WebSearchRequest._Localization.ValueType # 3
|
|
138
|
+
"""Belarusian"""
|
|
139
|
+
LOCALIZATION_KK: WebSearchRequest._Localization.ValueType # 4
|
|
140
|
+
"""Kazakh"""
|
|
141
|
+
LOCALIZATION_TR: WebSearchRequest._Localization.ValueType # 5
|
|
142
|
+
"""Turkish"""
|
|
143
|
+
LOCALIZATION_EN: WebSearchRequest._Localization.ValueType # 6
|
|
144
|
+
"""English"""
|
|
145
|
+
|
|
146
|
+
class Localization(_Localization, metaclass=_LocalizationEnumTypeWrapper): ...
|
|
147
|
+
LOCALIZATION_UNSPECIFIED: WebSearchRequest.Localization.ValueType # 0
|
|
148
|
+
LOCALIZATION_RU: WebSearchRequest.Localization.ValueType # 1
|
|
149
|
+
"""Russian (default value)"""
|
|
150
|
+
LOCALIZATION_UK: WebSearchRequest.Localization.ValueType # 2
|
|
151
|
+
"""Ukrainian"""
|
|
152
|
+
LOCALIZATION_BE: WebSearchRequest.Localization.ValueType # 3
|
|
153
|
+
"""Belarusian"""
|
|
154
|
+
LOCALIZATION_KK: WebSearchRequest.Localization.ValueType # 4
|
|
155
|
+
"""Kazakh"""
|
|
156
|
+
LOCALIZATION_TR: WebSearchRequest.Localization.ValueType # 5
|
|
157
|
+
"""Turkish"""
|
|
158
|
+
LOCALIZATION_EN: WebSearchRequest.Localization.ValueType # 6
|
|
159
|
+
"""English"""
|
|
160
|
+
|
|
161
|
+
QUERY_FIELD_NUMBER: builtins.int
|
|
162
|
+
SORT_SPEC_FIELD_NUMBER: builtins.int
|
|
163
|
+
GROUP_SPEC_FIELD_NUMBER: builtins.int
|
|
164
|
+
MAX_PASSAGES_FIELD_NUMBER: builtins.int
|
|
165
|
+
REGION_FIELD_NUMBER: builtins.int
|
|
166
|
+
L10N_FIELD_NUMBER: builtins.int
|
|
167
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
168
|
+
max_passages: builtins.int
|
|
169
|
+
"""The maximum number of passages that can be used when generating a document snippet."""
|
|
170
|
+
region: builtins.str
|
|
171
|
+
"""ID of the search country or region that impacts the document ranking rules."""
|
|
172
|
+
l10n: global___WebSearchRequest.Localization.ValueType
|
|
173
|
+
"""The notification language for a search response."""
|
|
174
|
+
folder_id: builtins.str
|
|
175
|
+
"""ID of the folder."""
|
|
176
|
+
@property
|
|
177
|
+
def query(self) -> yandex.cloud.searchapi.v2.search_query_pb2.SearchQuery:
|
|
178
|
+
"""Search query."""
|
|
179
|
+
|
|
180
|
+
@property
|
|
181
|
+
def sort_spec(self) -> global___SortSpec:
|
|
182
|
+
"""The rules for sorting search results that define the sequence of the returned search results."""
|
|
183
|
+
|
|
184
|
+
@property
|
|
185
|
+
def group_spec(self) -> global___GroupSpec:
|
|
186
|
+
"""Grouping settings that are used to group documents from a single domain into a container."""
|
|
187
|
+
|
|
188
|
+
def __init__(
|
|
189
|
+
self,
|
|
190
|
+
*,
|
|
191
|
+
query: yandex.cloud.searchapi.v2.search_query_pb2.SearchQuery | None = ...,
|
|
192
|
+
sort_spec: global___SortSpec | None = ...,
|
|
193
|
+
group_spec: global___GroupSpec | None = ...,
|
|
194
|
+
max_passages: builtins.int = ...,
|
|
195
|
+
region: builtins.str = ...,
|
|
196
|
+
l10n: global___WebSearchRequest.Localization.ValueType = ...,
|
|
197
|
+
folder_id: builtins.str = ...,
|
|
198
|
+
) -> None: ...
|
|
199
|
+
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: ...
|
|
201
|
+
|
|
202
|
+
global___WebSearchRequest = WebSearchRequest
|
|
203
|
+
|
|
204
|
+
@typing.final
|
|
205
|
+
class WebSearchResponse(google.protobuf.message.Message):
|
|
206
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
207
|
+
|
|
208
|
+
RAW_DATA_FIELD_NUMBER: builtins.int
|
|
209
|
+
raw_data: builtins.bytes
|
|
210
|
+
"""Search results, usually in XML format."""
|
|
211
|
+
def __init__(
|
|
212
|
+
self,
|
|
213
|
+
*,
|
|
214
|
+
raw_data: builtins.bytes = ...,
|
|
215
|
+
) -> None: ...
|
|
216
|
+
def ClearField(self, field_name: typing.Literal["raw_data", b"raw_data"]) -> None: ...
|
|
217
|
+
|
|
218
|
+
global___WebSearchResponse = WebSearchResponse
|
|
@@ -0,0 +1,70 @@
|
|
|
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.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
6
|
+
from yandex.cloud.searchapi.v2 import search_service_pb2 as yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__service__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class WebSearchAsyncServiceStub(object):
|
|
10
|
+
"""A set of methods for async search the Yandex search database.
|
|
11
|
+
"""
|
|
12
|
+
|
|
13
|
+
def __init__(self, channel):
|
|
14
|
+
"""Constructor.
|
|
15
|
+
|
|
16
|
+
Args:
|
|
17
|
+
channel: A grpc.Channel.
|
|
18
|
+
"""
|
|
19
|
+
self.Search = channel.unary_unary(
|
|
20
|
+
'/yandex.cloud.searchapi.v2.WebSearchAsyncService/Search',
|
|
21
|
+
request_serializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__service__pb2.WebSearchRequest.SerializeToString,
|
|
22
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
23
|
+
)
|
|
24
|
+
|
|
25
|
+
|
|
26
|
+
class WebSearchAsyncServiceServicer(object):
|
|
27
|
+
"""A set of methods for async search the Yandex search database.
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
def Search(self, request, context):
|
|
31
|
+
"""Missing associated documentation comment in .proto file."""
|
|
32
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
33
|
+
context.set_details('Method not implemented!')
|
|
34
|
+
raise NotImplementedError('Method not implemented!')
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
def add_WebSearchAsyncServiceServicer_to_server(servicer, server):
|
|
38
|
+
rpc_method_handlers = {
|
|
39
|
+
'Search': grpc.unary_unary_rpc_method_handler(
|
|
40
|
+
servicer.Search,
|
|
41
|
+
request_deserializer=yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__service__pb2.WebSearchRequest.FromString,
|
|
42
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
43
|
+
),
|
|
44
|
+
}
|
|
45
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
46
|
+
'yandex.cloud.searchapi.v2.WebSearchAsyncService', rpc_method_handlers)
|
|
47
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
48
|
+
|
|
49
|
+
|
|
50
|
+
# This class is part of an EXPERIMENTAL API.
|
|
51
|
+
class WebSearchAsyncService(object):
|
|
52
|
+
"""A set of methods for async search the Yandex search database.
|
|
53
|
+
"""
|
|
54
|
+
|
|
55
|
+
@staticmethod
|
|
56
|
+
def Search(request,
|
|
57
|
+
target,
|
|
58
|
+
options=(),
|
|
59
|
+
channel_credentials=None,
|
|
60
|
+
call_credentials=None,
|
|
61
|
+
insecure=False,
|
|
62
|
+
compression=None,
|
|
63
|
+
wait_for_ready=None,
|
|
64
|
+
timeout=None,
|
|
65
|
+
metadata=None):
|
|
66
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.searchapi.v2.WebSearchAsyncService/Search',
|
|
67
|
+
yandex_dot_cloud_dot_searchapi_dot_v2_dot_search__service__pb2.WebSearchRequest.SerializeToString,
|
|
68
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
69
|
+
options, channel_credentials,
|
|
70
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|