yandexcloud 0.360.0__py3-none-any.whl → 0.361.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.

Files changed (38) hide show
  1. yandex/cloud/airflow/v1/cluster_pb2.py +32 -28
  2. yandex/cloud/airflow/v1/cluster_pb2.pyi +31 -2
  3. yandex/cloud/airflow/v1/cluster_service_pb2.py +26 -26
  4. yandex/cloud/airflow/v1/cluster_service_pb2.pyi +8 -2
  5. yandex/cloud/audittrails/v1/trail_pb2.py +47 -43
  6. yandex/cloud/audittrails/v1/trail_pb2.pyi +23 -3
  7. yandex/cloud/cloudregistry/v1/registry_pb2.pyi +1 -1
  8. yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.py +29 -21
  9. yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.pyi +60 -0
  10. yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.py +45 -0
  11. yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.pyi +26 -0
  12. yandex/cloud/connectionmanager/v1/mongodb_pb2.py +14 -14
  13. yandex/cloud/connectionmanager/v1/mongodb_pb2.pyi +4 -1
  14. yandex/cloud/mdb/clickhouse/v1/cluster_pb2.py +15 -15
  15. yandex/cloud/mdb/clickhouse/v1/cluster_pb2.pyi +16 -0
  16. yandex/cloud/searchapi/v2/img_search_service_pb2.py +8 -6
  17. yandex/cloud/searchapi/v2/img_search_service_pb2.pyi +0 -1
  18. yandex/cloud/speechsense/v1/analysis/assistants_pb2.py +41 -0
  19. yandex/cloud/speechsense/v1/analysis/assistants_pb2.pyi +83 -0
  20. yandex/cloud/speechsense/v1/analysis/assistants_pb2_grpc.py +24 -0
  21. yandex/cloud/speechsense/v1/analysis/assistants_pb2_grpc.pyi +17 -0
  22. yandex/cloud/speechsense/v1/assistant_pb2.py +48 -0
  23. yandex/cloud/speechsense/v1/assistant_pb2.pyi +178 -0
  24. yandex/cloud/speechsense/v1/assistant_pb2_grpc.py +24 -0
  25. yandex/cloud/speechsense/v1/assistant_pb2_grpc.pyi +17 -0
  26. yandex/cloud/speechsense/v1/assistants_service_pb2.py +51 -0
  27. yandex/cloud/speechsense/v1/assistants_service_pb2.pyi +76 -0
  28. yandex/cloud/speechsense/v1/assistants_service_pb2_grpc.py +142 -0
  29. yandex/cloud/speechsense/v1/assistants_service_pb2_grpc.pyi +64 -0
  30. yandex/cloud/speechsense/v1/talk_pb2.py +16 -15
  31. yandex/cloud/speechsense/v1/talk_pb2.pyi +9 -2
  32. yandexcloud/__init__.py +1 -1
  33. {yandexcloud-0.360.0.dist-info → yandexcloud-0.361.0.dist-info}/METADATA +1 -1
  34. {yandexcloud-0.360.0.dist-info → yandexcloud-0.361.0.dist-info}/RECORD +38 -26
  35. {yandexcloud-0.360.0.dist-info → yandexcloud-0.361.0.dist-info}/AUTHORS +0 -0
  36. {yandexcloud-0.360.0.dist-info → yandexcloud-0.361.0.dist-info}/LICENSE +0 -0
  37. {yandexcloud-0.360.0.dist-info → yandexcloud-0.361.0.dist-info}/WHEEL +0 -0
  38. {yandexcloud-0.360.0.dist-info → yandexcloud-0.361.0.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,83 @@
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
+
13
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
14
+
15
+ @typing.final
16
+ class Assistants(google.protobuf.message.Message):
17
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
18
+
19
+ ASSISTANT_RESULTS_FIELD_NUMBER: builtins.int
20
+ @property
21
+ def assistant_results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AssistantResult]:
22
+ """List of assistants results"""
23
+
24
+ def __init__(
25
+ self,
26
+ *,
27
+ assistant_results: collections.abc.Iterable[global___AssistantResult] | None = ...,
28
+ ) -> None: ...
29
+ def ClearField(self, field_name: typing.Literal["assistant_results", b"assistant_results"]) -> None: ...
30
+
31
+ global___Assistants = Assistants
32
+
33
+ @typing.final
34
+ class AssistantResult(google.protobuf.message.Message):
35
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
36
+
37
+ ASSISTANT_ID_FIELD_NUMBER: builtins.int
38
+ RESULTS_FIELD_NUMBER: builtins.int
39
+ assistant_id: builtins.str
40
+ """Assistant id"""
41
+ @property
42
+ def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AssistantFieldResult]:
43
+ """Per-field assistant results"""
44
+
45
+ def __init__(
46
+ self,
47
+ *,
48
+ assistant_id: builtins.str = ...,
49
+ results: collections.abc.Iterable[global___AssistantFieldResult] | None = ...,
50
+ ) -> None: ...
51
+ def ClearField(self, field_name: typing.Literal["assistant_id", b"assistant_id", "results", b"results"]) -> None: ...
52
+
53
+ global___AssistantResult = AssistantResult
54
+
55
+ @typing.final
56
+ class AssistantFieldResult(google.protobuf.message.Message):
57
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
58
+
59
+ FIELD_ID_FIELD_NUMBER: builtins.int
60
+ STRING_RESULT_FIELD_NUMBER: builtins.int
61
+ INT_RESULT_FIELD_NUMBER: builtins.int
62
+ FLOAT_RESULT_FIELD_NUMBER: builtins.int
63
+ field_id: builtins.str
64
+ """Assistant result field id"""
65
+ string_result: builtins.str
66
+ """Result as a string"""
67
+ int_result: builtins.int
68
+ """Result as an integer"""
69
+ float_result: builtins.float
70
+ """Result as a floating-point number"""
71
+ def __init__(
72
+ self,
73
+ *,
74
+ field_id: builtins.str = ...,
75
+ string_result: builtins.str = ...,
76
+ int_result: builtins.int = ...,
77
+ float_result: builtins.float = ...,
78
+ ) -> None: ...
79
+ def HasField(self, field_name: typing.Literal["field_type", b"field_type", "float_result", b"float_result", "int_result", b"int_result", "string_result", b"string_result"]) -> builtins.bool: ...
80
+ def ClearField(self, field_name: typing.Literal["field_id", b"field_id", "field_type", b"field_type", "float_result", b"float_result", "int_result", b"int_result", "string_result", b"string_result"]) -> None: ...
81
+ def WhichOneof(self, oneof_group: typing.Literal["field_type", b"field_type"]) -> typing.Literal["string_result", "int_result", "float_result"] | None: ...
82
+
83
+ global___AssistantFieldResult = AssistantFieldResult
@@ -0,0 +1,24 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.70.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + f' but the generated code in yandex/cloud/speechsense/v1/analysis/assistants_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -0,0 +1,17 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import abc
7
+ import collections.abc
8
+ import grpc
9
+ import grpc.aio
10
+ import typing
11
+
12
+ _T = typing.TypeVar("_T")
13
+
14
+ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
15
+
16
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
17
+ ...
@@ -0,0 +1,48 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: yandex/cloud/speechsense/v1/assistant.proto
5
+ # Protobuf Python Version: 5.29.0
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'yandex/cloud/speechsense/v1/assistant.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
26
+
27
+
28
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n+yandex/cloud/speechsense/v1/assistant.proto\x12\x1byandex.cloud.speechsense.v1\x1a\x1fgoogle/protobuf/timestamp.proto\"\xbb\x03\n\tAssistant\x12\n\n\x02id\x18\x01 \x01(\t\x12\x12\n\nproject_id\x18\x02 \x01(\t\x12\x10\n\x08model_id\x18\x03 \x01(\t\x12\x0c\n\x04name\x18\x04 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x05 \x01(\t\x12\x0e\n\x06prompt\x18\x06 \x01(\t\x12;\n\x06\x66ields\x18\x07 \x03(\x0b\x32+.yandex.cloud.speechsense.v1.AssistantField\x12\x0f\n\x07\x65nabled\x18\x08 \x01(\x08\x12\x42\n\x06labels\x18\t \x03(\x0b\x32\x32.yandex.cloud.speechsense.v1.Assistant.LabelsEntry\x12.\n\ncreated_at\x18\n \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\ncreated_by\x18\x0b \x01(\t\x12/\n\x0bmodified_at\x18\x0c \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x0bmodified_by\x18\r \x01(\t\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"~\n\x0e\x41ssistantField\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t\x12=\n\x04type\x18\x04 \x01(\x0e\x32/.yandex.cloud.speechsense.v1.AssistantFieldType\"6\n\x05Model\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x03 \x01(\t*\x9e\x01\n\x12\x41ssistantFieldType\x12$\n ASSISTANT_FIELD_TYPE_UNSPECIFIED\x10\x00\x12\x1f\n\x1b\x41SSISTANT_FIELD_TYPE_STRING\x10\x01\x12\x1f\n\x1b\x41SSISTANT_FIELD_TYPE_NUMBER\x10\x02\x12 \n\x1c\x41SSISTANT_FIELD_TYPE_DECIMAL\x10\x03\x42~\n\x1fyandex.cloud.api.speechsense.v1B\x0e\x41ssistantProtoZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1;speechsenseb\x06proto3')
29
+
30
+ _globals = globals()
31
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
32
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.speechsense.v1.assistant_pb2', _globals)
33
+ if not _descriptor._USE_C_DESCRIPTORS:
34
+ _globals['DESCRIPTOR']._loaded_options = None
35
+ _globals['DESCRIPTOR']._serialized_options = b'\n\037yandex.cloud.api.speechsense.v1B\016AssistantProtoZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1;speechsense'
36
+ _globals['_ASSISTANT_LABELSENTRY']._loaded_options = None
37
+ _globals['_ASSISTANT_LABELSENTRY']._serialized_options = b'8\001'
38
+ _globals['_ASSISTANTFIELDTYPE']._serialized_start=740
39
+ _globals['_ASSISTANTFIELDTYPE']._serialized_end=898
40
+ _globals['_ASSISTANT']._serialized_start=110
41
+ _globals['_ASSISTANT']._serialized_end=553
42
+ _globals['_ASSISTANT_LABELSENTRY']._serialized_start=508
43
+ _globals['_ASSISTANT_LABELSENTRY']._serialized_end=553
44
+ _globals['_ASSISTANTFIELD']._serialized_start=555
45
+ _globals['_ASSISTANTFIELD']._serialized_end=681
46
+ _globals['_MODEL']._serialized_start=683
47
+ _globals['_MODEL']._serialized_end=737
48
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,178 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import collections.abc
8
+ import google.protobuf.descriptor
9
+ import google.protobuf.internal.containers
10
+ import google.protobuf.internal.enum_type_wrapper
11
+ import google.protobuf.message
12
+ import google.protobuf.timestamp_pb2
13
+ import sys
14
+ import typing
15
+
16
+ if sys.version_info >= (3, 10):
17
+ import typing as typing_extensions
18
+ else:
19
+ import typing_extensions
20
+
21
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
22
+
23
+ class _AssistantFieldType:
24
+ ValueType = typing.NewType("ValueType", builtins.int)
25
+ V: typing_extensions.TypeAlias = ValueType
26
+
27
+ class _AssistantFieldTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_AssistantFieldType.ValueType], builtins.type):
28
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
29
+ ASSISTANT_FIELD_TYPE_UNSPECIFIED: _AssistantFieldType.ValueType # 0
30
+ ASSISTANT_FIELD_TYPE_STRING: _AssistantFieldType.ValueType # 1
31
+ ASSISTANT_FIELD_TYPE_NUMBER: _AssistantFieldType.ValueType # 2
32
+ ASSISTANT_FIELD_TYPE_DECIMAL: _AssistantFieldType.ValueType # 3
33
+ """Floating-point number"""
34
+
35
+ class AssistantFieldType(_AssistantFieldType, metaclass=_AssistantFieldTypeEnumTypeWrapper): ...
36
+
37
+ ASSISTANT_FIELD_TYPE_UNSPECIFIED: AssistantFieldType.ValueType # 0
38
+ ASSISTANT_FIELD_TYPE_STRING: AssistantFieldType.ValueType # 1
39
+ ASSISTANT_FIELD_TYPE_NUMBER: AssistantFieldType.ValueType # 2
40
+ ASSISTANT_FIELD_TYPE_DECIMAL: AssistantFieldType.ValueType # 3
41
+ """Floating-point number"""
42
+ global___AssistantFieldType = AssistantFieldType
43
+
44
+ @typing.final
45
+ class Assistant(google.protobuf.message.Message):
46
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
47
+
48
+ @typing.final
49
+ class LabelsEntry(google.protobuf.message.Message):
50
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
51
+
52
+ KEY_FIELD_NUMBER: builtins.int
53
+ VALUE_FIELD_NUMBER: builtins.int
54
+ key: builtins.str
55
+ value: builtins.str
56
+ def __init__(
57
+ self,
58
+ *,
59
+ key: builtins.str = ...,
60
+ value: builtins.str = ...,
61
+ ) -> None: ...
62
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
63
+
64
+ ID_FIELD_NUMBER: builtins.int
65
+ PROJECT_ID_FIELD_NUMBER: builtins.int
66
+ MODEL_ID_FIELD_NUMBER: builtins.int
67
+ NAME_FIELD_NUMBER: builtins.int
68
+ DESCRIPTION_FIELD_NUMBER: builtins.int
69
+ PROMPT_FIELD_NUMBER: builtins.int
70
+ FIELDS_FIELD_NUMBER: builtins.int
71
+ ENABLED_FIELD_NUMBER: builtins.int
72
+ LABELS_FIELD_NUMBER: builtins.int
73
+ CREATED_AT_FIELD_NUMBER: builtins.int
74
+ CREATED_BY_FIELD_NUMBER: builtins.int
75
+ MODIFIED_AT_FIELD_NUMBER: builtins.int
76
+ MODIFIED_BY_FIELD_NUMBER: builtins.int
77
+ id: builtins.str
78
+ """Assistant id"""
79
+ project_id: builtins.str
80
+ """Project id"""
81
+ model_id: builtins.str
82
+ """Model id"""
83
+ name: builtins.str
84
+ """Assistant name"""
85
+ description: builtins.str
86
+ """Assistant description"""
87
+ prompt: builtins.str
88
+ """Prompt"""
89
+ enabled: builtins.bool
90
+ created_by: builtins.str
91
+ """Subject id"""
92
+ modified_by: builtins.str
93
+ """Subject id"""
94
+ @property
95
+ def fields(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___AssistantField]:
96
+ """Fields that will be set after assistant processing"""
97
+
98
+ @property
99
+ def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]:
100
+ """Billing labels"""
101
+
102
+ @property
103
+ def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
104
+ @property
105
+ def modified_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
106
+ def __init__(
107
+ self,
108
+ *,
109
+ id: builtins.str = ...,
110
+ project_id: builtins.str = ...,
111
+ model_id: builtins.str = ...,
112
+ name: builtins.str = ...,
113
+ description: builtins.str = ...,
114
+ prompt: builtins.str = ...,
115
+ fields: collections.abc.Iterable[global___AssistantField] | None = ...,
116
+ enabled: builtins.bool = ...,
117
+ labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
118
+ created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
119
+ created_by: builtins.str = ...,
120
+ modified_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
121
+ modified_by: builtins.str = ...,
122
+ ) -> None: ...
123
+ def HasField(self, field_name: typing.Literal["created_at", b"created_at", "modified_at", b"modified_at"]) -> builtins.bool: ...
124
+ def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "description", b"description", "enabled", b"enabled", "fields", b"fields", "id", b"id", "labels", b"labels", "model_id", b"model_id", "modified_at", b"modified_at", "modified_by", b"modified_by", "name", b"name", "project_id", b"project_id", "prompt", b"prompt"]) -> None: ...
125
+
126
+ global___Assistant = Assistant
127
+
128
+ @typing.final
129
+ class AssistantField(google.protobuf.message.Message):
130
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
131
+
132
+ ID_FIELD_NUMBER: builtins.int
133
+ NAME_FIELD_NUMBER: builtins.int
134
+ DESCRIPTION_FIELD_NUMBER: builtins.int
135
+ TYPE_FIELD_NUMBER: builtins.int
136
+ id: builtins.str
137
+ """Field id"""
138
+ name: builtins.str
139
+ """Field name"""
140
+ description: builtins.str
141
+ """Field description"""
142
+ type: global___AssistantFieldType.ValueType
143
+ """Field type"""
144
+ def __init__(
145
+ self,
146
+ *,
147
+ id: builtins.str = ...,
148
+ name: builtins.str = ...,
149
+ description: builtins.str = ...,
150
+ type: global___AssistantFieldType.ValueType = ...,
151
+ ) -> None: ...
152
+ def ClearField(self, field_name: typing.Literal["description", b"description", "id", b"id", "name", b"name", "type", b"type"]) -> None: ...
153
+
154
+ global___AssistantField = AssistantField
155
+
156
+ @typing.final
157
+ class Model(google.protobuf.message.Message):
158
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
159
+
160
+ ID_FIELD_NUMBER: builtins.int
161
+ NAME_FIELD_NUMBER: builtins.int
162
+ DESCRIPTION_FIELD_NUMBER: builtins.int
163
+ id: builtins.str
164
+ """Model id"""
165
+ name: builtins.str
166
+ """Model name"""
167
+ description: builtins.str
168
+ """Model description"""
169
+ def __init__(
170
+ self,
171
+ *,
172
+ id: builtins.str = ...,
173
+ name: builtins.str = ...,
174
+ description: builtins.str = ...,
175
+ ) -> None: ...
176
+ def ClearField(self, field_name: typing.Literal["description", b"description", "id", b"id", "name", b"name"]) -> None: ...
177
+
178
+ global___Model = Model
@@ -0,0 +1,24 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+
7
+ GRPC_GENERATED_VERSION = '1.70.0'
8
+ GRPC_VERSION = grpc.__version__
9
+ _version_not_supported = False
10
+
11
+ try:
12
+ from grpc._utilities import first_version_is_lower
13
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
14
+ except ImportError:
15
+ _version_not_supported = True
16
+
17
+ if _version_not_supported:
18
+ raise RuntimeError(
19
+ f'The grpc package installed is at version {GRPC_VERSION},'
20
+ + f' but the generated code in yandex/cloud/speechsense/v1/assistant_pb2_grpc.py depends on'
21
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
22
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
23
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
24
+ )
@@ -0,0 +1,17 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import abc
7
+ import collections.abc
8
+ import grpc
9
+ import grpc.aio
10
+ import typing
11
+
12
+ _T = typing.TypeVar("_T")
13
+
14
+ class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
15
+
16
+ class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
17
+ ...
@@ -0,0 +1,51 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # NO CHECKED-IN PROTOBUF GENCODE
4
+ # source: yandex/cloud/speechsense/v1/assistants_service.proto
5
+ # Protobuf Python Version: 5.29.0
6
+ """Generated protocol buffer code."""
7
+ from google.protobuf import descriptor as _descriptor
8
+ from google.protobuf import descriptor_pool as _descriptor_pool
9
+ from google.protobuf import runtime_version as _runtime_version
10
+ from google.protobuf import symbol_database as _symbol_database
11
+ from google.protobuf.internal import builder as _builder
12
+ _runtime_version.ValidateProtobufRuntimeVersion(
13
+ _runtime_version.Domain.PUBLIC,
14
+ 5,
15
+ 29,
16
+ 0,
17
+ '',
18
+ 'yandex/cloud/speechsense/v1/assistants_service.proto'
19
+ )
20
+ # @@protoc_insertion_point(imports)
21
+
22
+ _sym_db = _symbol_database.Default()
23
+
24
+
25
+ from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
26
+ from yandex.cloud.speechsense.v1 import assistant_pb2 as yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistant__pb2
27
+
28
+
29
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n4yandex/cloud/speechsense/v1/assistants_service.proto\x12\x1byandex.cloud.speechsense.v1\x1a\x1cgoogle/api/annotations.proto\x1a+yandex/cloud/speechsense/v1/assistant.proto\"+\n\x15ListAssistantsRequest\x12\x12\n\nproject_id\x18\x01 \x01(\t\"T\n\x16ListAssistantsResponse\x12:\n\nassistants\x18\x01 \x03(\x0b\x32&.yandex.cloud.speechsense.v1.Assistant\"\x13\n\x11ListModelsRequest\"H\n\x12ListModelsResponse\x12\x32\n\x06models\x18\x01 \x03(\x0b\x32\".yandex.cloud.speechsense.v1.Model2\xd3\x02\n\x11\x41ssistantsService\x12\x9b\x01\n\x04List\x12\x32.yandex.cloud.speechsense.v1.ListAssistantsRequest\x1a\x33.yandex.cloud.speechsense.v1.ListAssistantsResponse\"*\x82\xd3\xe4\x93\x02$\"\x1f/speechsense/v1/assistants/list:\x01*\x12\x9f\x01\n\nListModels\x12..yandex.cloud.speechsense.v1.ListModelsRequest\x1a/.yandex.cloud.speechsense.v1.ListModelsResponse\"0\x82\xd3\xe4\x93\x02*\"%/speechsense/v1/assistants/listModels:\x01*B\x86\x01\n\x1fyandex.cloud.api.speechsense.v1B\x16\x41ssistantsServiceProtoZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1;speechsenseb\x06proto3')
30
+
31
+ _globals = globals()
32
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
33
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.speechsense.v1.assistants_service_pb2', _globals)
34
+ if not _descriptor._USE_C_DESCRIPTORS:
35
+ _globals['DESCRIPTOR']._loaded_options = None
36
+ _globals['DESCRIPTOR']._serialized_options = b'\n\037yandex.cloud.api.speechsense.v1B\026AssistantsServiceProtoZKgithub.com/yandex-cloud/go-genproto/yandex/cloud/speechsense/v1;speechsense'
37
+ _globals['_ASSISTANTSSERVICE'].methods_by_name['List']._loaded_options = None
38
+ _globals['_ASSISTANTSSERVICE'].methods_by_name['List']._serialized_options = b'\202\323\344\223\002$\"\037/speechsense/v1/assistants/list:\001*'
39
+ _globals['_ASSISTANTSSERVICE'].methods_by_name['ListModels']._loaded_options = None
40
+ _globals['_ASSISTANTSSERVICE'].methods_by_name['ListModels']._serialized_options = b'\202\323\344\223\002*\"%/speechsense/v1/assistants/listModels:\001*'
41
+ _globals['_LISTASSISTANTSREQUEST']._serialized_start=160
42
+ _globals['_LISTASSISTANTSREQUEST']._serialized_end=203
43
+ _globals['_LISTASSISTANTSRESPONSE']._serialized_start=205
44
+ _globals['_LISTASSISTANTSRESPONSE']._serialized_end=289
45
+ _globals['_LISTMODELSREQUEST']._serialized_start=291
46
+ _globals['_LISTMODELSREQUEST']._serialized_end=310
47
+ _globals['_LISTMODELSRESPONSE']._serialized_start=312
48
+ _globals['_LISTMODELSRESPONSE']._serialized_end=384
49
+ _globals['_ASSISTANTSSERVICE']._serialized_start=387
50
+ _globals['_ASSISTANTSSERVICE']._serialized_end=726
51
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,76 @@
1
+ """
2
+ @generated by mypy-protobuf. Do not edit manually!
3
+ isort:skip_file
4
+ """
5
+
6
+ import builtins
7
+ import collections.abc
8
+ import google.protobuf.descriptor
9
+ import google.protobuf.internal.containers
10
+ import google.protobuf.message
11
+ import typing
12
+ import yandex.cloud.speechsense.v1.assistant_pb2
13
+
14
+ DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
15
+
16
+ @typing.final
17
+ class ListAssistantsRequest(google.protobuf.message.Message):
18
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
19
+
20
+ PROJECT_ID_FIELD_NUMBER: builtins.int
21
+ project_id: builtins.str
22
+ """Project id"""
23
+ def __init__(
24
+ self,
25
+ *,
26
+ project_id: builtins.str = ...,
27
+ ) -> None: ...
28
+ def ClearField(self, field_name: typing.Literal["project_id", b"project_id"]) -> None: ...
29
+
30
+ global___ListAssistantsRequest = ListAssistantsRequest
31
+
32
+ @typing.final
33
+ class ListAssistantsResponse(google.protobuf.message.Message):
34
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
35
+
36
+ ASSISTANTS_FIELD_NUMBER: builtins.int
37
+ @property
38
+ def assistants(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.speechsense.v1.assistant_pb2.Assistant]:
39
+ """Assistants belonging to the given project"""
40
+
41
+ def __init__(
42
+ self,
43
+ *,
44
+ assistants: collections.abc.Iterable[yandex.cloud.speechsense.v1.assistant_pb2.Assistant] | None = ...,
45
+ ) -> None: ...
46
+ def ClearField(self, field_name: typing.Literal["assistants", b"assistants"]) -> None: ...
47
+
48
+ global___ListAssistantsResponse = ListAssistantsResponse
49
+
50
+ @typing.final
51
+ class ListModelsRequest(google.protobuf.message.Message):
52
+ """No parameters"""
53
+
54
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
55
+
56
+ def __init__(
57
+ self,
58
+ ) -> None: ...
59
+
60
+ global___ListModelsRequest = ListModelsRequest
61
+
62
+ @typing.final
63
+ class ListModelsResponse(google.protobuf.message.Message):
64
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
65
+
66
+ MODELS_FIELD_NUMBER: builtins.int
67
+ @property
68
+ def models(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.speechsense.v1.assistant_pb2.Model]: ...
69
+ def __init__(
70
+ self,
71
+ *,
72
+ models: collections.abc.Iterable[yandex.cloud.speechsense.v1.assistant_pb2.Model] | None = ...,
73
+ ) -> None: ...
74
+ def ClearField(self, field_name: typing.Literal["models", b"models"]) -> None: ...
75
+
76
+ global___ListModelsResponse = ListModelsResponse
@@ -0,0 +1,142 @@
1
+ # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
+ """Client and server classes corresponding to protobuf-defined services."""
3
+ import grpc
4
+ import warnings
5
+
6
+ from yandex.cloud.speechsense.v1 import assistants_service_pb2 as yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2
7
+
8
+ GRPC_GENERATED_VERSION = '1.70.0'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + f' but the generated code in yandex/cloud/speechsense/v1/assistants_service_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
27
+
28
+ class AssistantsServiceStub(object):
29
+ """Missing associated documentation comment in .proto file."""
30
+
31
+ def __init__(self, channel):
32
+ """Constructor.
33
+
34
+ Args:
35
+ channel: A grpc.Channel.
36
+ """
37
+ self.List = channel.unary_unary(
38
+ '/yandex.cloud.speechsense.v1.AssistantsService/List',
39
+ request_serializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListAssistantsRequest.SerializeToString,
40
+ response_deserializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListAssistantsResponse.FromString,
41
+ _registered_method=True)
42
+ self.ListModels = channel.unary_unary(
43
+ '/yandex.cloud.speechsense.v1.AssistantsService/ListModels',
44
+ request_serializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListModelsRequest.SerializeToString,
45
+ response_deserializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListModelsResponse.FromString,
46
+ _registered_method=True)
47
+
48
+
49
+ class AssistantsServiceServicer(object):
50
+ """Missing associated documentation comment in .proto file."""
51
+
52
+ def List(self, request, context):
53
+ """Rpc for listing assistants in a project
54
+ """
55
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
56
+ context.set_details('Method not implemented!')
57
+ raise NotImplementedError('Method not implemented!')
58
+
59
+ def ListModels(self, request, context):
60
+ """Rpc for listing available assistant models
61
+ """
62
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
63
+ context.set_details('Method not implemented!')
64
+ raise NotImplementedError('Method not implemented!')
65
+
66
+
67
+ def add_AssistantsServiceServicer_to_server(servicer, server):
68
+ rpc_method_handlers = {
69
+ 'List': grpc.unary_unary_rpc_method_handler(
70
+ servicer.List,
71
+ request_deserializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListAssistantsRequest.FromString,
72
+ response_serializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListAssistantsResponse.SerializeToString,
73
+ ),
74
+ 'ListModels': grpc.unary_unary_rpc_method_handler(
75
+ servicer.ListModels,
76
+ request_deserializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListModelsRequest.FromString,
77
+ response_serializer=yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListModelsResponse.SerializeToString,
78
+ ),
79
+ }
80
+ generic_handler = grpc.method_handlers_generic_handler(
81
+ 'yandex.cloud.speechsense.v1.AssistantsService', rpc_method_handlers)
82
+ server.add_generic_rpc_handlers((generic_handler,))
83
+ server.add_registered_method_handlers('yandex.cloud.speechsense.v1.AssistantsService', rpc_method_handlers)
84
+
85
+
86
+ # This class is part of an EXPERIMENTAL API.
87
+ class AssistantsService(object):
88
+ """Missing associated documentation comment in .proto file."""
89
+
90
+ @staticmethod
91
+ def List(request,
92
+ target,
93
+ options=(),
94
+ channel_credentials=None,
95
+ call_credentials=None,
96
+ insecure=False,
97
+ compression=None,
98
+ wait_for_ready=None,
99
+ timeout=None,
100
+ metadata=None):
101
+ return grpc.experimental.unary_unary(
102
+ request,
103
+ target,
104
+ '/yandex.cloud.speechsense.v1.AssistantsService/List',
105
+ yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListAssistantsRequest.SerializeToString,
106
+ yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListAssistantsResponse.FromString,
107
+ options,
108
+ channel_credentials,
109
+ insecure,
110
+ call_credentials,
111
+ compression,
112
+ wait_for_ready,
113
+ timeout,
114
+ metadata,
115
+ _registered_method=True)
116
+
117
+ @staticmethod
118
+ def ListModels(request,
119
+ target,
120
+ options=(),
121
+ channel_credentials=None,
122
+ call_credentials=None,
123
+ insecure=False,
124
+ compression=None,
125
+ wait_for_ready=None,
126
+ timeout=None,
127
+ metadata=None):
128
+ return grpc.experimental.unary_unary(
129
+ request,
130
+ target,
131
+ '/yandex.cloud.speechsense.v1.AssistantsService/ListModels',
132
+ yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListModelsRequest.SerializeToString,
133
+ yandex_dot_cloud_dot_speechsense_dot_v1_dot_assistants__service__pb2.ListModelsResponse.FromString,
134
+ options,
135
+ channel_credentials,
136
+ insecure,
137
+ call_credentials,
138
+ compression,
139
+ wait_for_ready,
140
+ timeout,
141
+ metadata,
142
+ _registered_method=True)