yandexcloud 0.325.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/assistants/v1/searchindex/common_pb2.py +18 -5
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.pyi +149 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.py +3 -4
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.pyi +2 -7
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.py +10 -8
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.pyi +63 -5
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.py +20 -20
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.pyi +9 -3
- 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/apploadbalancer/v1/backend_group_pb2.py +9 -7
- yandex/cloud/apploadbalancer/v1/backend_group_pb2.pyi +9 -1
- yandex/cloud/cic/v1/private_connection_pb2.py +5 -3
- yandex/cloud/cic/v1/private_connection_pb2.pyi +1 -0
- yandex/cloud/cloudapps/workload/v1/cloud_application_service_pb2.py +14 -9
- 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/iam/v1/user_account_pb2.py +12 -11
- yandex/cloud/iam/v1/user_account_pb2.pyi +7 -2
- 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/mdb/redis/v1/config/redis_pb2.py +8 -8
- yandex/cloud/mdb/redis/v1/config/redis_pb2.pyi +14 -2
- 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
- yandex/cloud/speechsense/v1/talk_pb2.py +14 -6
- yandex/cloud/speechsense/v1/talk_pb2.pyi +89 -2
- yandex/cloud/speechsense/v1/talk_service_pb2.py +2 -6
- {yandexcloud-0.325.0.dist-info → yandexcloud-0.327.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.325.0.dist-info → yandexcloud-0.327.0.dist-info}/RECORD +83 -49
- {yandexcloud-0.325.0.dist-info → yandexcloud-0.327.0.dist-info}/WHEEL +1 -1
- {yandexcloud-0.325.0.dist-info → yandexcloud-0.327.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.325.0.dist-info → yandexcloud-0.327.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.325.0.dist-info → yandexcloud-0.327.0.dist-info}/top_level.txt +0 -0
|
@@ -8,6 +8,7 @@ import collections.abc
|
|
|
8
8
|
import google.protobuf.descriptor
|
|
9
9
|
import google.protobuf.internal.containers
|
|
10
10
|
import google.protobuf.message
|
|
11
|
+
import google.protobuf.timestamp_pb2
|
|
11
12
|
import typing
|
|
12
13
|
|
|
13
14
|
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
@@ -21,6 +22,7 @@ class UserAccount(google.protobuf.message.Message):
|
|
|
21
22
|
ID_FIELD_NUMBER: builtins.int
|
|
22
23
|
YANDEX_PASSPORT_USER_ACCOUNT_FIELD_NUMBER: builtins.int
|
|
23
24
|
SAML_USER_ACCOUNT_FIELD_NUMBER: builtins.int
|
|
25
|
+
LAST_AUTHENTICATED_AT_FIELD_NUMBER: builtins.int
|
|
24
26
|
id: builtins.str
|
|
25
27
|
"""ID of the user account."""
|
|
26
28
|
@property
|
|
@@ -31,15 +33,18 @@ class UserAccount(google.protobuf.message.Message):
|
|
|
31
33
|
def saml_user_account(self) -> global___SamlUserAccount:
|
|
32
34
|
"""A SAML federated user."""
|
|
33
35
|
|
|
36
|
+
@property
|
|
37
|
+
def last_authenticated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
34
38
|
def __init__(
|
|
35
39
|
self,
|
|
36
40
|
*,
|
|
37
41
|
id: builtins.str = ...,
|
|
38
42
|
yandex_passport_user_account: global___YandexPassportUserAccount | None = ...,
|
|
39
43
|
saml_user_account: global___SamlUserAccount | None = ...,
|
|
44
|
+
last_authenticated_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
40
45
|
) -> None: ...
|
|
41
|
-
def HasField(self, field_name: typing.Literal["saml_user_account", b"saml_user_account", "user_account", b"user_account", "yandex_passport_user_account", b"yandex_passport_user_account"]) -> builtins.bool: ...
|
|
42
|
-
def ClearField(self, field_name: typing.Literal["id", b"id", "saml_user_account", b"saml_user_account", "user_account", b"user_account", "yandex_passport_user_account", b"yandex_passport_user_account"]) -> None: ...
|
|
46
|
+
def HasField(self, field_name: typing.Literal["last_authenticated_at", b"last_authenticated_at", "saml_user_account", b"saml_user_account", "user_account", b"user_account", "yandex_passport_user_account", b"yandex_passport_user_account"]) -> builtins.bool: ...
|
|
47
|
+
def ClearField(self, field_name: typing.Literal["id", b"id", "last_authenticated_at", b"last_authenticated_at", "saml_user_account", b"saml_user_account", "user_account", b"user_account", "yandex_passport_user_account", b"yandex_passport_user_account"]) -> None: ...
|
|
43
48
|
def WhichOneof(self, oneof_group: typing.Literal["user_account", b"user_account"]) -> typing.Literal["yandex_passport_user_account", "saml_user_account"] | None: ...
|
|
44
49
|
|
|
45
50
|
global___UserAccount = UserAccount
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/marketplace/metering/v1/product_usage_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 import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
16
|
+
from yandex.cloud.marketplace.metering.v1 import usage_record_pb2 as yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_usage__record__pb2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n@yandex/cloud/marketplace/metering/v1/product_usage_service.proto\x12$yandex.cloud.marketplace.metering.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x1dyandex/cloud/validation.proto\x1a\x37yandex/cloud/marketplace/metering/v1/usage_record.proto\"\xa3\x01\n\x11WriteUsageRequest\x12\x0f\n\x07\x64ry_run\x18\x01 \x01(\x08\x12)\n\x13product_instance_id\x18\x02 \x01(\tB\x0c\xe8\xc7\x31\x01\x8a\xc8\x31\x04<=50\x12R\n\rusage_records\x18\x03 \x03(\x0b\x32\x31.yandex.cloud.marketplace.metering.v1.UsageRecordB\x08\x82\xc8\x31\x04\x31-25\"\xae\x01\n\x12WriteUsageResponse\x12K\n\x08\x61\x63\x63\x65pted\x18\x01 \x03(\x0b\x32\x39.yandex.cloud.marketplace.metering.v1.AcceptedUsageRecord\x12K\n\x08rejected\x18\x02 \x03(\x0b\x32\x39.yandex.cloud.marketplace.metering.v1.RejectedUsageRecord2\xca\x01\n\x13ProductUsageService\x12\xb2\x01\n\x05Write\x12\x37.yandex.cloud.marketplace.metering.v1.WriteUsageRequest\x1a\x38.yandex.cloud.marketplace.metering.v1.WriteUsageResponse\"6\x82\xd3\xe4\x93\x02\x30\"+/marketplace/metering/v1/productUsage/write:\x01*B}\n(yandex.cloud.api.marketplace.metering.v1ZQgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/metering/v1;meteringb\x06proto3')
|
|
20
|
+
|
|
21
|
+
_globals = globals()
|
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.marketplace.metering.v1.product_usage_service_pb2', _globals)
|
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
25
|
+
DESCRIPTOR._options = None
|
|
26
|
+
DESCRIPTOR._serialized_options = b'\n(yandex.cloud.api.marketplace.metering.v1ZQgithub.com/yandex-cloud/go-genproto/yandex/cloud/marketplace/metering/v1;metering'
|
|
27
|
+
_WRITEUSAGEREQUEST.fields_by_name['product_instance_id']._options = None
|
|
28
|
+
_WRITEUSAGEREQUEST.fields_by_name['product_instance_id']._serialized_options = b'\350\3071\001\212\3101\004<=50'
|
|
29
|
+
_WRITEUSAGEREQUEST.fields_by_name['usage_records']._options = None
|
|
30
|
+
_WRITEUSAGEREQUEST.fields_by_name['usage_records']._serialized_options = b'\202\3101\0041-25'
|
|
31
|
+
_PRODUCTUSAGESERVICE.methods_by_name['Write']._options = None
|
|
32
|
+
_PRODUCTUSAGESERVICE.methods_by_name['Write']._serialized_options = b'\202\323\344\223\0020\"+/marketplace/metering/v1/productUsage/write:\001*'
|
|
33
|
+
_globals['_WRITEUSAGEREQUEST']._serialized_start=225
|
|
34
|
+
_globals['_WRITEUSAGEREQUEST']._serialized_end=388
|
|
35
|
+
_globals['_WRITEUSAGERESPONSE']._serialized_start=391
|
|
36
|
+
_globals['_WRITEUSAGERESPONSE']._serialized_end=565
|
|
37
|
+
_globals['_PRODUCTUSAGESERVICE']._serialized_start=568
|
|
38
|
+
_globals['_PRODUCTUSAGESERVICE']._serialized_end=770
|
|
39
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,64 @@
|
|
|
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.marketplace.metering.v1.usage_record_pb2
|
|
13
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class WriteUsageRequest(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
DRY_RUN_FIELD_NUMBER: builtins.int
|
|
21
|
+
PRODUCT_INSTANCE_ID_FIELD_NUMBER: builtins.int
|
|
22
|
+
USAGE_RECORDS_FIELD_NUMBER: builtins.int
|
|
23
|
+
dry_run: builtins.bool
|
|
24
|
+
"""Do not write usage, only validate"""
|
|
25
|
+
product_instance_id: builtins.str
|
|
26
|
+
"""Marketplace Product Instance's ID"""
|
|
27
|
+
@property
|
|
28
|
+
def usage_records(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.marketplace.metering.v1.usage_record_pb2.UsageRecord]:
|
|
29
|
+
"""List of product usage records (up to 25 per request)"""
|
|
30
|
+
|
|
31
|
+
def __init__(
|
|
32
|
+
self,
|
|
33
|
+
*,
|
|
34
|
+
dry_run: builtins.bool = ...,
|
|
35
|
+
product_instance_id: builtins.str = ...,
|
|
36
|
+
usage_records: collections.abc.Iterable[yandex.cloud.marketplace.metering.v1.usage_record_pb2.UsageRecord] | None = ...,
|
|
37
|
+
) -> None: ...
|
|
38
|
+
def ClearField(self, field_name: typing.Literal["dry_run", b"dry_run", "product_instance_id", b"product_instance_id", "usage_records", b"usage_records"]) -> None: ...
|
|
39
|
+
|
|
40
|
+
global___WriteUsageRequest = WriteUsageRequest
|
|
41
|
+
|
|
42
|
+
@typing.final
|
|
43
|
+
class WriteUsageResponse(google.protobuf.message.Message):
|
|
44
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
45
|
+
|
|
46
|
+
ACCEPTED_FIELD_NUMBER: builtins.int
|
|
47
|
+
REJECTED_FIELD_NUMBER: builtins.int
|
|
48
|
+
@property
|
|
49
|
+
def accepted(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.marketplace.metering.v1.usage_record_pb2.AcceptedUsageRecord]:
|
|
50
|
+
"""List of accepted product usage records"""
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def rejected(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.marketplace.metering.v1.usage_record_pb2.RejectedUsageRecord]:
|
|
54
|
+
"""List of rejected product usage records (with reason)"""
|
|
55
|
+
|
|
56
|
+
def __init__(
|
|
57
|
+
self,
|
|
58
|
+
*,
|
|
59
|
+
accepted: collections.abc.Iterable[yandex.cloud.marketplace.metering.v1.usage_record_pb2.AcceptedUsageRecord] | None = ...,
|
|
60
|
+
rejected: collections.abc.Iterable[yandex.cloud.marketplace.metering.v1.usage_record_pb2.RejectedUsageRecord] | None = ...,
|
|
61
|
+
) -> None: ...
|
|
62
|
+
def ClearField(self, field_name: typing.Literal["accepted", b"accepted", "rejected", b"rejected"]) -> None: ...
|
|
63
|
+
|
|
64
|
+
global___WriteUsageResponse = WriteUsageResponse
|
|
@@ -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.marketplace.metering.v1 import product_usage_service_pb2 as yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ProductUsageServiceStub(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.Write = channel.unary_unary(
|
|
18
|
+
'/yandex.cloud.marketplace.metering.v1.ProductUsageService/Write',
|
|
19
|
+
request_serializer=yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageRequest.SerializeToString,
|
|
20
|
+
response_deserializer=yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageResponse.FromString,
|
|
21
|
+
)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
class ProductUsageServiceServicer(object):
|
|
25
|
+
"""Missing associated documentation comment in .proto file."""
|
|
26
|
+
|
|
27
|
+
def Write(self, request, context):
|
|
28
|
+
"""Writes product's usage (authenticated by publisher's service account)
|
|
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_ProductUsageServiceServicer_to_server(servicer, server):
|
|
36
|
+
rpc_method_handlers = {
|
|
37
|
+
'Write': grpc.unary_unary_rpc_method_handler(
|
|
38
|
+
servicer.Write,
|
|
39
|
+
request_deserializer=yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageRequest.FromString,
|
|
40
|
+
response_serializer=yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageResponse.SerializeToString,
|
|
41
|
+
),
|
|
42
|
+
}
|
|
43
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
44
|
+
'yandex.cloud.marketplace.metering.v1.ProductUsageService', rpc_method_handlers)
|
|
45
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
# This class is part of an EXPERIMENTAL API.
|
|
49
|
+
class ProductUsageService(object):
|
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
|
51
|
+
|
|
52
|
+
@staticmethod
|
|
53
|
+
def Write(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.marketplace.metering.v1.ProductUsageService/Write',
|
|
64
|
+
yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageRequest.SerializeToString,
|
|
65
|
+
yandex_dot_cloud_dot_marketplace_dot_metering_dot_v1_dot_product__usage__service__pb2.WriteUsageResponse.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.marketplace.metering.v1.product_usage_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 ProductUsageServiceStub:
|
|
21
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
22
|
+
Write: grpc.UnaryUnaryMultiCallable[
|
|
23
|
+
yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageRequest,
|
|
24
|
+
yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageResponse,
|
|
25
|
+
]
|
|
26
|
+
"""Writes product's usage (authenticated by publisher's service account)"""
|
|
27
|
+
|
|
28
|
+
class ProductUsageServiceAsyncStub:
|
|
29
|
+
Write: grpc.aio.UnaryUnaryMultiCallable[
|
|
30
|
+
yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageRequest,
|
|
31
|
+
yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageResponse,
|
|
32
|
+
]
|
|
33
|
+
"""Writes product's usage (authenticated by publisher's service account)"""
|
|
34
|
+
|
|
35
|
+
class ProductUsageServiceServicer(metaclass=abc.ABCMeta):
|
|
36
|
+
@abc.abstractmethod
|
|
37
|
+
def Write(
|
|
38
|
+
self,
|
|
39
|
+
request: yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageRequest,
|
|
40
|
+
context: _ServicerContext,
|
|
41
|
+
) -> typing.Union[yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageResponse, collections.abc.Awaitable[yandex.cloud.marketplace.metering.v1.product_usage_service_pb2.WriteUsageResponse]]:
|
|
42
|
+
"""Writes product's usage (authenticated by publisher's service account)"""
|
|
43
|
+
|
|
44
|
+
def add_ProductUsageServiceServicer_to_server(servicer: ProductUsageServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
@@ -15,7 +15,7 @@ from google.protobuf import wrappers_pb2 as google_dot_protobuf_dot_wrappers__pb
|
|
|
15
15
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
16
16
|
|
|
17
17
|
|
|
18
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/mdb/redis/v1/config/redis.proto\x12 yandex.cloud.mdb.redis.v1.config\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n,yandex/cloud/mdb/redis/v1/config/redis.proto\x12 yandex.cloud.mdb.redis.v1.config\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1dyandex/cloud/validation.proto\"\xb6\x0e\n\x0bRedisConfig\x12W\n\x10maxmemory_policy\x18\x01 \x01(\x0e\x32=.yandex.cloud.mdb.redis.v1.config.RedisConfig.MaxmemoryPolicy\x12,\n\x07timeout\x18\x02 \x01(\x0b\x32\x1b.google.protobuf.Int64Value\x12\x38\n\x08password\x18\x03 \x01(\tB&\xf2\xc7\x31\"[a-zA-Z0-9@=+?*.,!&#$^<>_-]{8,128}\x12\x36\n\tdatabases\x18\x04 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x06\xfa\xc7\x31\x02>0\x12\x45\n\x17slowlog_log_slower_than\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12=\n\x0fslowlog_max_len\x18\x06 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12\x39\n\x16notify_keyspace_events\x18\x07 \x01(\tB\x19\xf2\xc7\x31\x15[KEg$lshzxeAtm]{0,13}\x12p\n!client_output_buffer_limit_pubsub\x18\x08 \x01(\x0b\x32\x45.yandex.cloud.mdb.redis.v1.config.RedisConfig.ClientOutputBufferLimit\x12p\n!client_output_buffer_limit_normal\x18\t \x01(\x0b\x32\x45.yandex.cloud.mdb.redis.v1.config.RedisConfig.ClientOutputBufferLimit\x12@\n\x11maxmemory_percent\x18\n \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x08\xfa\xc7\x31\x04\x31-75\x12<\n\x0elua_time_limit\x18\x0b \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12\x46\n\x19repl_backlog_size_percent\x18\x0c \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x06\xfa\xc7\x31\x02>0\x12\x41\n\x1d\x63luster_require_full_coverage\x18\r \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x41\n\x1d\x63luster_allow_reads_when_down\x18\x0e \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12G\n#cluster_allow_pubsubshard_when_down\x18\x0f \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12<\n\x0elfu_decay_time\x18\x10 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12<\n\x0elfu_log_factor\x18\x11 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12:\n\x16turn_before_switchover\x18\x12 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x33\n\x0f\x61llow_data_loss\x18\x13 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12.\n\nuse_luajit\x18\x14 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x12\x36\n\x12io_threads_allowed\x18\x15 \x01(\x0b\x32\x1a.google.protobuf.BoolValue\x1a\xd5\x01\n\x17\x43lientOutputBufferLimit\x12\x38\n\nhard_limit\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12\x38\n\nsoft_limit\x18\x03 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0\x12:\n\x0csoft_seconds\x18\x05 \x01(\x0b\x32\x1b.google.protobuf.Int64ValueB\x07\xfa\xc7\x31\x03>=0J\x04\x08\x04\x10\x05J\x04\x08\x02\x10\x03\"\xc4\x01\n\x0fMaxmemoryPolicy\x12 \n\x1cMAXMEMORY_POLICY_UNSPECIFIED\x10\x00\x12\x10\n\x0cVOLATILE_LRU\x10\x01\x12\x0f\n\x0b\x41LLKEYS_LRU\x10\x02\x12\x10\n\x0cVOLATILE_LFU\x10\x03\x12\x0f\n\x0b\x41LLKEYS_LFU\x10\x04\x12\x13\n\x0fVOLATILE_RANDOM\x10\x05\x12\x12\n\x0e\x41LLKEYS_RANDOM\x10\x06\x12\x10\n\x0cVOLATILE_TTL\x10\x07\x12\x0e\n\nNOEVICTION\x10\x08\"\xe4\x01\n\x0eRedisConfigSet\x12G\n\x10\x65\x66\x66\x65\x63tive_config\x18\x01 \x01(\x0b\x32-.yandex.cloud.mdb.redis.v1.config.RedisConfig\x12\x42\n\x0buser_config\x18\x02 \x01(\x0b\x32-.yandex.cloud.mdb.redis.v1.config.RedisConfig\x12\x45\n\x0e\x64\x65\x66\x61ult_config\x18\x03 \x01(\x0b\x32-.yandex.cloud.mdb.redis.v1.config.RedisConfigBr\n$yandex.cloud.api.mdb.redis.v1.configZJgithub.com/yandex-cloud/go-genproto/yandex/cloud/mdb/redis/v1/config;redisb\x06proto3')
|
|
19
19
|
|
|
20
20
|
_globals = globals()
|
|
21
21
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -50,11 +50,11 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
50
50
|
_REDISCONFIG.fields_by_name['lfu_log_factor']._options = None
|
|
51
51
|
_REDISCONFIG.fields_by_name['lfu_log_factor']._serialized_options = b'\372\3071\003>=0'
|
|
52
52
|
_globals['_REDISCONFIG']._serialized_start=146
|
|
53
|
-
_globals['_REDISCONFIG']._serialized_end=
|
|
54
|
-
_globals['_REDISCONFIG_CLIENTOUTPUTBUFFERLIMIT']._serialized_start=
|
|
55
|
-
_globals['_REDISCONFIG_CLIENTOUTPUTBUFFERLIMIT']._serialized_end=
|
|
56
|
-
_globals['_REDISCONFIG_MAXMEMORYPOLICY']._serialized_start=
|
|
57
|
-
_globals['_REDISCONFIG_MAXMEMORYPOLICY']._serialized_end=
|
|
58
|
-
_globals['_REDISCONFIGSET']._serialized_start=
|
|
59
|
-
_globals['_REDISCONFIGSET']._serialized_end=
|
|
53
|
+
_globals['_REDISCONFIG']._serialized_end=1992
|
|
54
|
+
_globals['_REDISCONFIG_CLIENTOUTPUTBUFFERLIMIT']._serialized_start=1580
|
|
55
|
+
_globals['_REDISCONFIG_CLIENTOUTPUTBUFFERLIMIT']._serialized_end=1793
|
|
56
|
+
_globals['_REDISCONFIG_MAXMEMORYPOLICY']._serialized_start=1796
|
|
57
|
+
_globals['_REDISCONFIG_MAXMEMORYPOLICY']._serialized_end=1992
|
|
58
|
+
_globals['_REDISCONFIGSET']._serialized_start=1995
|
|
59
|
+
_globals['_REDISCONFIGSET']._serialized_end=2223
|
|
60
60
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -125,6 +125,8 @@ class RedisConfig(google.protobuf.message.Message):
|
|
|
125
125
|
LFU_LOG_FACTOR_FIELD_NUMBER: builtins.int
|
|
126
126
|
TURN_BEFORE_SWITCHOVER_FIELD_NUMBER: builtins.int
|
|
127
127
|
ALLOW_DATA_LOSS_FIELD_NUMBER: builtins.int
|
|
128
|
+
USE_LUAJIT_FIELD_NUMBER: builtins.int
|
|
129
|
+
IO_THREADS_ALLOWED_FIELD_NUMBER: builtins.int
|
|
128
130
|
maxmemory_policy: global___RedisConfig.MaxmemoryPolicy.ValueType
|
|
129
131
|
"""Redis key eviction policy for a dataset that reaches maximum memory,
|
|
130
132
|
available to the host. Redis maxmemory setting depends on Managed
|
|
@@ -202,6 +204,14 @@ class RedisConfig(google.protobuf.message.Message):
|
|
|
202
204
|
def allow_data_loss(self) -> google.protobuf.wrappers_pb2.BoolValue:
|
|
203
205
|
"""Allows some data to be lost in favor of faster switchover/restart"""
|
|
204
206
|
|
|
207
|
+
@property
|
|
208
|
+
def use_luajit(self) -> google.protobuf.wrappers_pb2.BoolValue:
|
|
209
|
+
"""Use JIT for lua scripts and functions"""
|
|
210
|
+
|
|
211
|
+
@property
|
|
212
|
+
def io_threads_allowed(self) -> google.protobuf.wrappers_pb2.BoolValue:
|
|
213
|
+
"""Allow redis to use io-threads"""
|
|
214
|
+
|
|
205
215
|
def __init__(
|
|
206
216
|
self,
|
|
207
217
|
*,
|
|
@@ -224,9 +234,11 @@ class RedisConfig(google.protobuf.message.Message):
|
|
|
224
234
|
lfu_log_factor: google.protobuf.wrappers_pb2.Int64Value | None = ...,
|
|
225
235
|
turn_before_switchover: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
226
236
|
allow_data_loss: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
237
|
+
use_luajit: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
238
|
+
io_threads_allowed: google.protobuf.wrappers_pb2.BoolValue | None = ...,
|
|
227
239
|
) -> None: ...
|
|
228
|
-
def HasField(self, field_name: typing.Literal["allow_data_loss", b"allow_data_loss", "client_output_buffer_limit_normal", b"client_output_buffer_limit_normal", "client_output_buffer_limit_pubsub", b"client_output_buffer_limit_pubsub", "cluster_allow_pubsubshard_when_down", b"cluster_allow_pubsubshard_when_down", "cluster_allow_reads_when_down", b"cluster_allow_reads_when_down", "cluster_require_full_coverage", b"cluster_require_full_coverage", "databases", b"databases", "lfu_decay_time", b"lfu_decay_time", "lfu_log_factor", b"lfu_log_factor", "lua_time_limit", b"lua_time_limit", "maxmemory_percent", b"maxmemory_percent", "repl_backlog_size_percent", b"repl_backlog_size_percent", "slowlog_log_slower_than", b"slowlog_log_slower_than", "slowlog_max_len", b"slowlog_max_len", "timeout", b"timeout", "turn_before_switchover", b"turn_before_switchover"]) -> builtins.bool: ...
|
|
229
|
-
def ClearField(self, field_name: typing.Literal["allow_data_loss", b"allow_data_loss", "client_output_buffer_limit_normal", b"client_output_buffer_limit_normal", "client_output_buffer_limit_pubsub", b"client_output_buffer_limit_pubsub", "cluster_allow_pubsubshard_when_down", b"cluster_allow_pubsubshard_when_down", "cluster_allow_reads_when_down", b"cluster_allow_reads_when_down", "cluster_require_full_coverage", b"cluster_require_full_coverage", "databases", b"databases", "lfu_decay_time", b"lfu_decay_time", "lfu_log_factor", b"lfu_log_factor", "lua_time_limit", b"lua_time_limit", "maxmemory_percent", b"maxmemory_percent", "maxmemory_policy", b"maxmemory_policy", "notify_keyspace_events", b"notify_keyspace_events", "password", b"password", "repl_backlog_size_percent", b"repl_backlog_size_percent", "slowlog_log_slower_than", b"slowlog_log_slower_than", "slowlog_max_len", b"slowlog_max_len", "timeout", b"timeout", "turn_before_switchover", b"turn_before_switchover"]) -> None: ...
|
|
240
|
+
def HasField(self, field_name: typing.Literal["allow_data_loss", b"allow_data_loss", "client_output_buffer_limit_normal", b"client_output_buffer_limit_normal", "client_output_buffer_limit_pubsub", b"client_output_buffer_limit_pubsub", "cluster_allow_pubsubshard_when_down", b"cluster_allow_pubsubshard_when_down", "cluster_allow_reads_when_down", b"cluster_allow_reads_when_down", "cluster_require_full_coverage", b"cluster_require_full_coverage", "databases", b"databases", "io_threads_allowed", b"io_threads_allowed", "lfu_decay_time", b"lfu_decay_time", "lfu_log_factor", b"lfu_log_factor", "lua_time_limit", b"lua_time_limit", "maxmemory_percent", b"maxmemory_percent", "repl_backlog_size_percent", b"repl_backlog_size_percent", "slowlog_log_slower_than", b"slowlog_log_slower_than", "slowlog_max_len", b"slowlog_max_len", "timeout", b"timeout", "turn_before_switchover", b"turn_before_switchover", "use_luajit", b"use_luajit"]) -> builtins.bool: ...
|
|
241
|
+
def ClearField(self, field_name: typing.Literal["allow_data_loss", b"allow_data_loss", "client_output_buffer_limit_normal", b"client_output_buffer_limit_normal", "client_output_buffer_limit_pubsub", b"client_output_buffer_limit_pubsub", "cluster_allow_pubsubshard_when_down", b"cluster_allow_pubsubshard_when_down", "cluster_allow_reads_when_down", b"cluster_allow_reads_when_down", "cluster_require_full_coverage", b"cluster_require_full_coverage", "databases", b"databases", "io_threads_allowed", b"io_threads_allowed", "lfu_decay_time", b"lfu_decay_time", "lfu_log_factor", b"lfu_log_factor", "lua_time_limit", b"lua_time_limit", "maxmemory_percent", b"maxmemory_percent", "maxmemory_policy", b"maxmemory_policy", "notify_keyspace_events", b"notify_keyspace_events", "password", b"password", "repl_backlog_size_percent", b"repl_backlog_size_percent", "slowlog_log_slower_than", b"slowlog_log_slower_than", "slowlog_max_len", b"slowlog_max_len", "timeout", b"timeout", "turn_before_switchover", b"turn_before_switchover", "use_luajit", b"use_luajit"]) -> None: ...
|
|
230
242
|
|
|
231
243
|
global___RedisConfig = RedisConfig
|
|
232
244
|
|
|
@@ -14,7 +14,7 @@ _sym_db = _symbol_database.Default()
|
|
|
14
14
|
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
15
15
|
|
|
16
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\"\
|
|
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\"\xde\x04\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\"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\"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')
|
|
18
18
|
|
|
19
19
|
_globals = globals()
|
|
20
20
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -29,9 +29,11 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
29
29
|
_SEARCHQUERY.fields_by_name['page']._options = None
|
|
30
30
|
_SEARCHQUERY.fields_by_name['page']._serialized_options = b'\372\3071\003>=0'
|
|
31
31
|
_globals['_SEARCHQUERY']._serialized_start=107
|
|
32
|
-
_globals['_SEARCHQUERY']._serialized_end=
|
|
33
|
-
_globals['_SEARCHQUERY_SEARCHTYPE']._serialized_start=
|
|
34
|
-
_globals['_SEARCHQUERY_SEARCHTYPE']._serialized_end=
|
|
35
|
-
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_start=
|
|
36
|
-
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_end=
|
|
32
|
+
_globals['_SEARCHQUERY']._serialized_end=713
|
|
33
|
+
_globals['_SEARCHQUERY_SEARCHTYPE']._serialized_start=405
|
|
34
|
+
_globals['_SEARCHQUERY_SEARCHTYPE']._serialized_end=507
|
|
35
|
+
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_start=509
|
|
36
|
+
_globals['_SEARCHQUERY_FAMILYMODE']._serialized_end=622
|
|
37
|
+
_globals['_SEARCHQUERY_FIXTYPOMODE']._serialized_start=624
|
|
38
|
+
_globals['_SEARCHQUERY_FIXTYPOMODE']._serialized_end=713
|
|
37
39
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -75,10 +75,30 @@ class SearchQuery(google.protobuf.message.Message):
|
|
|
75
75
|
and those with profanity are excluded from search results.
|
|
76
76
|
"""
|
|
77
77
|
|
|
78
|
+
class _FixTypoMode:
|
|
79
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
|
80
|
+
V: typing_extensions.TypeAlias = ValueType
|
|
81
|
+
|
|
82
|
+
class _FixTypoModeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[SearchQuery._FixTypoMode.ValueType], builtins.type):
|
|
83
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
84
|
+
FIX_TYPO_MODE_UNSPECIFIED: SearchQuery._FixTypoMode.ValueType # 0
|
|
85
|
+
FIX_TYPO_MODE_ON: SearchQuery._FixTypoMode.ValueType # 1
|
|
86
|
+
"""Automatically correct typos (default value)."""
|
|
87
|
+
FIX_TYPO_MODE_OFF: SearchQuery._FixTypoMode.ValueType # 2
|
|
88
|
+
"""Autocorrection is off."""
|
|
89
|
+
|
|
90
|
+
class FixTypoMode(_FixTypoMode, metaclass=_FixTypoModeEnumTypeWrapper): ...
|
|
91
|
+
FIX_TYPO_MODE_UNSPECIFIED: SearchQuery.FixTypoMode.ValueType # 0
|
|
92
|
+
FIX_TYPO_MODE_ON: SearchQuery.FixTypoMode.ValueType # 1
|
|
93
|
+
"""Automatically correct typos (default value)."""
|
|
94
|
+
FIX_TYPO_MODE_OFF: SearchQuery.FixTypoMode.ValueType # 2
|
|
95
|
+
"""Autocorrection is off."""
|
|
96
|
+
|
|
78
97
|
SEARCH_TYPE_FIELD_NUMBER: builtins.int
|
|
79
98
|
QUERY_TEXT_FIELD_NUMBER: builtins.int
|
|
80
99
|
FAMILY_MODE_FIELD_NUMBER: builtins.int
|
|
81
100
|
PAGE_FIELD_NUMBER: builtins.int
|
|
101
|
+
FIX_TYPO_MODE_FIELD_NUMBER: builtins.int
|
|
82
102
|
search_type: global___SearchQuery.SearchType.ValueType
|
|
83
103
|
"""Search type that determines the domain name that will be used for the search queries."""
|
|
84
104
|
query_text: builtins.str
|
|
@@ -87,6 +107,8 @@ class SearchQuery(google.protobuf.message.Message):
|
|
|
87
107
|
"""Rule for filtering search results and determines whether any documents should be excluded."""
|
|
88
108
|
page: builtins.int
|
|
89
109
|
"""The number of a requested page with search results"""
|
|
110
|
+
fix_typo_mode: global___SearchQuery.FixTypoMode.ValueType
|
|
111
|
+
"""Typos autocorrections mode"""
|
|
90
112
|
def __init__(
|
|
91
113
|
self,
|
|
92
114
|
*,
|
|
@@ -94,7 +116,8 @@ class SearchQuery(google.protobuf.message.Message):
|
|
|
94
116
|
query_text: builtins.str = ...,
|
|
95
117
|
family_mode: global___SearchQuery.FamilyMode.ValueType = ...,
|
|
96
118
|
page: builtins.int = ...,
|
|
119
|
+
fix_typo_mode: global___SearchQuery.FixTypoMode.ValueType = ...,
|
|
97
120
|
) -> 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: ...
|
|
121
|
+
def ClearField(self, field_name: typing.Literal["family_mode", b"family_mode", "fix_typo_mode", b"fix_typo_mode", "page", b"page", "query_text", b"query_text", "search_type", b"search_type"]) -> None: ...
|
|
99
122
|
|
|
100
123
|
global___SearchQuery = SearchQuery
|
|
@@ -18,7 +18,7 @@ from yandex.cloud.searchapi.v2 import search_query_pb2 as yandex_dot_cloud_dot_s
|
|
|
18
18
|
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
19
19
|
|
|
20
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\"\
|
|
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\"\xb1\x05\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\x12K\n\x0fresponse_format\x18\x08 \x01(\x0e\x32\x32.yandex.cloud.searchapi.v2.WebSearchRequest.Format\x12\x1d\n\nuser_agent\x18\t \x01(\tB\t\x8a\xc8\x31\x05<=200\"\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\"A\n\x06\x46ormat\x12\x16\n\x12\x46ORMAT_UNSPECIFIED\x10\x00\x12\x0e\n\nFORMAT_XML\x10\x01\x12\x0f\n\x0b\x46ORMAT_HTML\x10\x02\"+\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*2y\n\x10WebSearchService\x12\x65\n\x06Search\x12+.yandex.cloud.searchapi.v2.WebSearchRequest\x1a,.yandex.cloud.searchapi.v2.WebSearchResponse\"\x00\x42\x65\n\x1ayandex.cloud.api.search.v2ZGgithub.com/yandex-cloud/go-genproto/yandex/cloud/searchapi/v2;searchapib\x06proto3')
|
|
22
22
|
|
|
23
23
|
_globals = globals()
|
|
24
24
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -36,6 +36,8 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
36
36
|
_WEBSEARCHREQUEST.fields_by_name['max_passages']._serialized_options = b'\372\3071\0031-5'
|
|
37
37
|
_WEBSEARCHREQUEST.fields_by_name['folder_id']._options = None
|
|
38
38
|
_WEBSEARCHREQUEST.fields_by_name['folder_id']._serialized_options = b'\212\3101\004<=50'
|
|
39
|
+
_WEBSEARCHREQUEST.fields_by_name['user_agent']._options = None
|
|
40
|
+
_WEBSEARCHREQUEST.fields_by_name['user_agent']._serialized_options = b'\212\3101\005<=200'
|
|
39
41
|
_WEBSEARCHRESPONSE.fields_by_name['raw_data']._options = None
|
|
40
42
|
_WEBSEARCHRESPONSE.fields_by_name['raw_data']._serialized_options = b'\350\3071\001'
|
|
41
43
|
_WEBSEARCHASYNCSERVICE.methods_by_name['Search']._options = None
|
|
@@ -51,11 +53,15 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
|
51
53
|
_globals['_GROUPSPEC_GROUPMODE']._serialized_start=724
|
|
52
54
|
_globals['_GROUPSPEC_GROUPMODE']._serialized_end=805
|
|
53
55
|
_globals['_WEBSEARCHREQUEST']._serialized_start=808
|
|
54
|
-
_globals['_WEBSEARCHREQUEST']._serialized_end=
|
|
55
|
-
_globals['_WEBSEARCHREQUEST_LOCALIZATION']._serialized_start=
|
|
56
|
-
_globals['_WEBSEARCHREQUEST_LOCALIZATION']._serialized_end=
|
|
57
|
-
_globals['
|
|
58
|
-
_globals['
|
|
59
|
-
_globals['
|
|
60
|
-
_globals['
|
|
56
|
+
_globals['_WEBSEARCHREQUEST']._serialized_end=1497
|
|
57
|
+
_globals['_WEBSEARCHREQUEST_LOCALIZATION']._serialized_start=1260
|
|
58
|
+
_globals['_WEBSEARCHREQUEST_LOCALIZATION']._serialized_end=1430
|
|
59
|
+
_globals['_WEBSEARCHREQUEST_FORMAT']._serialized_start=1432
|
|
60
|
+
_globals['_WEBSEARCHREQUEST_FORMAT']._serialized_end=1497
|
|
61
|
+
_globals['_WEBSEARCHRESPONSE']._serialized_start=1499
|
|
62
|
+
_globals['_WEBSEARCHRESPONSE']._serialized_end=1542
|
|
63
|
+
_globals['_WEBSEARCHASYNCSERVICE']._serialized_start=1545
|
|
64
|
+
_globals['_WEBSEARCHASYNCSERVICE']._serialized_end=1714
|
|
65
|
+
_globals['_WEBSEARCHSERVICE']._serialized_start=1716
|
|
66
|
+
_globals['_WEBSEARCHSERVICE']._serialized_end=1837
|
|
61
67
|
# @@protoc_insertion_point(module_scope)
|
|
@@ -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)
|