yandexcloud 0.317.0__py3-none-any.whl → 0.319.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/assistants/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2.py +33 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2.pyi +101 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/assistant_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2.py +88 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2.pyi +293 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.py +232 -0
- yandex/cloud/ai/assistants/v1/assistant_service_pb2_grpc.pyi +127 -0
- yandex/cloud/ai/assistants/v1/common_pb2.py +33 -0
- yandex/cloud/ai/assistants/v1/common_pb2.pyi +91 -0
- yandex/cloud/ai/assistants/v1/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/runs/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2.py +40 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2.pyi +154 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/runs/run_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.py +77 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2.pyi +237 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/runs/run_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/assistants/v1/searchindex/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.py +28 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2.pyi +47 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.py +28 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2.pyi +43 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.py +45 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2.pyi +72 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.py +100 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_file_service_pb2_grpc.pyi +59 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.py +37 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2.pyi +132 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.py +77 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2.pyi +205 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.py +200 -0
- yandex/cloud/ai/assistants/v1/searchindex/search_index_service_pb2_grpc.pyi +111 -0
- yandex/cloud/ai/assistants/v1/threads/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2.py +45 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2.pyi +176 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/threads/message_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2.py +55 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2.pyi +91 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.py +133 -0
- yandex/cloud/ai/assistants/v1/threads/message_service_pb2_grpc.pyi +76 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2.py +32 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2.pyi +85 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/threads/thread_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.py +76 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2.pyi +200 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/threads/thread_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/assistants/v1/users/__init__.py +0 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2.py +32 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2.pyi +85 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2_grpc.py +4 -0
- yandex/cloud/ai/assistants/v1/users/user_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2.py +75 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2.pyi +195 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.py +199 -0
- yandex/cloud/ai/assistants/v1/users/user_service_pb2_grpc.pyi +110 -0
- yandex/cloud/ai/common/__init__.py +0 -0
- yandex/cloud/ai/common/common_pb2.py +30 -0
- yandex/cloud/ai/common/common_pb2.pyi +69 -0
- yandex/cloud/ai/common/common_pb2_grpc.py +4 -0
- yandex/cloud/ai/common/common_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/files/__init__.py +0 -0
- yandex/cloud/ai/files/v1/__init__.py +0 -0
- yandex/cloud/ai/files/v1/file_pb2.py +32 -0
- yandex/cloud/ai/files/v1/file_pb2.pyi +85 -0
- yandex/cloud/ai/files/v1/file_pb2_grpc.py +4 -0
- yandex/cloud/ai/files/v1/file_pb2_grpc.pyi +17 -0
- yandex/cloud/ai/files/v1/file_service_pb2.py +85 -0
- yandex/cloud/ai/files/v1/file_service_pb2.pyi +228 -0
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.py +232 -0
- yandex/cloud/ai/files/v1/file_service_pb2_grpc.pyi +127 -0
- yandex/cloud/backup/v1/provider_service_pb2.py +12 -10
- yandex/cloud/backup/v1/provider_service_pb2.pyi +5 -1
- yandex/cloud/billing/v1/customer_pb2.pyi +32 -8
- yandex/cloud/billing/v1/customer_service_pb2.pyi +10 -2
- yandex/cloud/cloudrouter/__init__.py +0 -0
- yandex/cloud/cloudrouter/v1/__init__.py +0 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.py +42 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2.pyi +215 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2_grpc.py +4 -0
- yandex/cloud/cloudrouter/v1/routing_instance_pb2_grpc.pyi +17 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.py +57 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2.pyi +137 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.py +179 -0
- yandex/cloud/cloudrouter/v1/routing_instance_service_pb2_grpc.pyi +138 -0
- yandex/cloud/iam/v1/refresh_token_pb2.py +29 -0
- yandex/cloud/iam/v1/refresh_token_pb2.pyi +98 -0
- yandex/cloud/iam/v1/refresh_token_pb2_grpc.py +4 -0
- yandex/cloud/iam/v1/refresh_token_pb2_grpc.pyi +17 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2.py +67 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2.pyi +186 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2_grpc.py +105 -0
- yandex/cloud/iam/v1/refresh_token_service_pb2_grpc.pyi +71 -0
- yandex/cloud/iam/v1/service_control_pb2.py +5 -5
- yandex/cloud/iam/v1/service_control_pb2.pyi +4 -0
- yandex/cloud/lockbox/v1/secret_pb2.py +23 -11
- yandex/cloud/lockbox/v1/secret_pb2.pyi +73 -4
- yandex/cloud/lockbox/v1/secret_service_pb2.py +46 -46
- yandex/cloud/lockbox/v1/secret_service_pb2.pyi +14 -3
- yandex/cloud/mdb/clickhouse/v1/cluster_pb2.py +27 -25
- yandex/cloud/mdb/clickhouse/v1/cluster_pb2.pyi +16 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.py +81 -57
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2.pyi +144 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2_grpc.py +68 -0
- yandex/cloud/mdb/clickhouse/v1/cluster_service_pb2_grpc.pyi +40 -0
- yandex/cloud/oauth/claims_pb2.py +8 -7
- yandex/cloud/oauth/claims_pb2.pyi +9 -2
- yandex/cloud/serverless/eventrouter/v1/connector_service_pb2.pyi +1 -1
- yandex/cloud/serverless/eventrouter/v1/rule_pb2.pyi +3 -1
- yandex/cloud/serverless/eventrouter/v1/rule_service_pb2.pyi +2 -0
- yandex/cloud/storage/v1/s3api_pb2.py +35 -0
- yandex/cloud/storage/v1/s3api_pb2.pyi +181 -0
- yandex/cloud/storage/v1/s3api_pb2_grpc.py +4 -0
- yandex/cloud/storage/v1/s3api_pb2_grpc.pyi +17 -0
- yandexcloud/_sdk.py +2 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/METADATA +1 -1
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/RECORD +135 -28
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/AUTHORS +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/LICENSE +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/WHEEL +0 -0
- {yandexcloud-0.317.0.dist-info → yandexcloud-0.319.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,200 @@
|
|
|
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.field_mask_pb2
|
|
10
|
+
import google.protobuf.internal.containers
|
|
11
|
+
import google.protobuf.message
|
|
12
|
+
import typing
|
|
13
|
+
import yandex.cloud.ai.assistants.v1.threads.message_pb2
|
|
14
|
+
import yandex.cloud.ai.assistants.v1.threads.thread_pb2
|
|
15
|
+
import yandex.cloud.ai.common.common_pb2
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
18
|
+
|
|
19
|
+
@typing.final
|
|
20
|
+
class CreateThreadRequest(google.protobuf.message.Message):
|
|
21
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
22
|
+
|
|
23
|
+
@typing.final
|
|
24
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
25
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
26
|
+
|
|
27
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
28
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
29
|
+
key: builtins.str
|
|
30
|
+
value: builtins.str
|
|
31
|
+
def __init__(
|
|
32
|
+
self,
|
|
33
|
+
*,
|
|
34
|
+
key: builtins.str = ...,
|
|
35
|
+
value: builtins.str = ...,
|
|
36
|
+
) -> None: ...
|
|
37
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
38
|
+
|
|
39
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
40
|
+
MESSAGES_FIELD_NUMBER: builtins.int
|
|
41
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
42
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
43
|
+
DEFAULT_MESSAGE_AUTHOR_ID_FIELD_NUMBER: builtins.int
|
|
44
|
+
EXPIRATION_CONFIG_FIELD_NUMBER: builtins.int
|
|
45
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
46
|
+
folder_id: builtins.str
|
|
47
|
+
name: builtins.str
|
|
48
|
+
description: builtins.str
|
|
49
|
+
default_message_author_id: builtins.str
|
|
50
|
+
@property
|
|
51
|
+
def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.threads.message_pb2.MessageData]: ...
|
|
52
|
+
@property
|
|
53
|
+
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig: ...
|
|
54
|
+
@property
|
|
55
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
56
|
+
def __init__(
|
|
57
|
+
self,
|
|
58
|
+
*,
|
|
59
|
+
folder_id: builtins.str = ...,
|
|
60
|
+
messages: collections.abc.Iterable[yandex.cloud.ai.assistants.v1.threads.message_pb2.MessageData] | None = ...,
|
|
61
|
+
name: builtins.str = ...,
|
|
62
|
+
description: builtins.str = ...,
|
|
63
|
+
default_message_author_id: builtins.str = ...,
|
|
64
|
+
expiration_config: yandex.cloud.ai.common.common_pb2.ExpirationConfig | None = ...,
|
|
65
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
66
|
+
) -> None: ...
|
|
67
|
+
def HasField(self, field_name: typing.Literal["expiration_config", b"expiration_config"]) -> builtins.bool: ...
|
|
68
|
+
def ClearField(self, field_name: typing.Literal["default_message_author_id", b"default_message_author_id", "description", b"description", "expiration_config", b"expiration_config", "folder_id", b"folder_id", "labels", b"labels", "messages", b"messages", "name", b"name"]) -> None: ...
|
|
69
|
+
|
|
70
|
+
global___CreateThreadRequest = CreateThreadRequest
|
|
71
|
+
|
|
72
|
+
@typing.final
|
|
73
|
+
class GetThreadRequest(google.protobuf.message.Message):
|
|
74
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
75
|
+
|
|
76
|
+
THREAD_ID_FIELD_NUMBER: builtins.int
|
|
77
|
+
thread_id: builtins.str
|
|
78
|
+
def __init__(
|
|
79
|
+
self,
|
|
80
|
+
*,
|
|
81
|
+
thread_id: builtins.str = ...,
|
|
82
|
+
) -> None: ...
|
|
83
|
+
def ClearField(self, field_name: typing.Literal["thread_id", b"thread_id"]) -> None: ...
|
|
84
|
+
|
|
85
|
+
global___GetThreadRequest = GetThreadRequest
|
|
86
|
+
|
|
87
|
+
@typing.final
|
|
88
|
+
class UpdateThreadRequest(google.protobuf.message.Message):
|
|
89
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
90
|
+
|
|
91
|
+
@typing.final
|
|
92
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
93
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
94
|
+
|
|
95
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
96
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
97
|
+
key: builtins.str
|
|
98
|
+
value: builtins.str
|
|
99
|
+
def __init__(
|
|
100
|
+
self,
|
|
101
|
+
*,
|
|
102
|
+
key: builtins.str = ...,
|
|
103
|
+
value: builtins.str = ...,
|
|
104
|
+
) -> None: ...
|
|
105
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
106
|
+
|
|
107
|
+
THREAD_ID_FIELD_NUMBER: builtins.int
|
|
108
|
+
UPDATE_MASK_FIELD_NUMBER: builtins.int
|
|
109
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
110
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
111
|
+
EXPIRATION_CONFIG_FIELD_NUMBER: builtins.int
|
|
112
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
113
|
+
thread_id: builtins.str
|
|
114
|
+
name: builtins.str
|
|
115
|
+
description: builtins.str
|
|
116
|
+
@property
|
|
117
|
+
def update_mask(self) -> google.protobuf.field_mask_pb2.FieldMask: ...
|
|
118
|
+
@property
|
|
119
|
+
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig: ...
|
|
120
|
+
@property
|
|
121
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
122
|
+
def __init__(
|
|
123
|
+
self,
|
|
124
|
+
*,
|
|
125
|
+
thread_id: builtins.str = ...,
|
|
126
|
+
update_mask: google.protobuf.field_mask_pb2.FieldMask | None = ...,
|
|
127
|
+
name: builtins.str = ...,
|
|
128
|
+
description: builtins.str = ...,
|
|
129
|
+
expiration_config: yandex.cloud.ai.common.common_pb2.ExpirationConfig | None = ...,
|
|
130
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
131
|
+
) -> None: ...
|
|
132
|
+
def HasField(self, field_name: typing.Literal["expiration_config", b"expiration_config", "update_mask", b"update_mask"]) -> builtins.bool: ...
|
|
133
|
+
def ClearField(self, field_name: typing.Literal["description", b"description", "expiration_config", b"expiration_config", "labels", b"labels", "name", b"name", "thread_id", b"thread_id", "update_mask", b"update_mask"]) -> None: ...
|
|
134
|
+
|
|
135
|
+
global___UpdateThreadRequest = UpdateThreadRequest
|
|
136
|
+
|
|
137
|
+
@typing.final
|
|
138
|
+
class DeleteThreadRequest(google.protobuf.message.Message):
|
|
139
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
140
|
+
|
|
141
|
+
THREAD_ID_FIELD_NUMBER: builtins.int
|
|
142
|
+
thread_id: builtins.str
|
|
143
|
+
def __init__(
|
|
144
|
+
self,
|
|
145
|
+
*,
|
|
146
|
+
thread_id: builtins.str = ...,
|
|
147
|
+
) -> None: ...
|
|
148
|
+
def ClearField(self, field_name: typing.Literal["thread_id", b"thread_id"]) -> None: ...
|
|
149
|
+
|
|
150
|
+
global___DeleteThreadRequest = DeleteThreadRequest
|
|
151
|
+
|
|
152
|
+
@typing.final
|
|
153
|
+
class DeleteThreadResponse(google.protobuf.message.Message):
|
|
154
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
155
|
+
|
|
156
|
+
def __init__(
|
|
157
|
+
self,
|
|
158
|
+
) -> None: ...
|
|
159
|
+
|
|
160
|
+
global___DeleteThreadResponse = DeleteThreadResponse
|
|
161
|
+
|
|
162
|
+
@typing.final
|
|
163
|
+
class ListThreadsRequest(google.protobuf.message.Message):
|
|
164
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
165
|
+
|
|
166
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
167
|
+
PAGE_SIZE_FIELD_NUMBER: builtins.int
|
|
168
|
+
PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
169
|
+
folder_id: builtins.str
|
|
170
|
+
page_size: builtins.int
|
|
171
|
+
page_token: builtins.str
|
|
172
|
+
def __init__(
|
|
173
|
+
self,
|
|
174
|
+
*,
|
|
175
|
+
folder_id: builtins.str = ...,
|
|
176
|
+
page_size: builtins.int = ...,
|
|
177
|
+
page_token: builtins.str = ...,
|
|
178
|
+
) -> None: ...
|
|
179
|
+
def ClearField(self, field_name: typing.Literal["folder_id", b"folder_id", "page_size", b"page_size", "page_token", b"page_token"]) -> None: ...
|
|
180
|
+
|
|
181
|
+
global___ListThreadsRequest = ListThreadsRequest
|
|
182
|
+
|
|
183
|
+
@typing.final
|
|
184
|
+
class ListThreadsResponse(google.protobuf.message.Message):
|
|
185
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
186
|
+
|
|
187
|
+
THREADS_FIELD_NUMBER: builtins.int
|
|
188
|
+
NEXT_PAGE_TOKEN_FIELD_NUMBER: builtins.int
|
|
189
|
+
next_page_token: builtins.str
|
|
190
|
+
@property
|
|
191
|
+
def threads(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread]: ...
|
|
192
|
+
def __init__(
|
|
193
|
+
self,
|
|
194
|
+
*,
|
|
195
|
+
threads: collections.abc.Iterable[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread] | None = ...,
|
|
196
|
+
next_page_token: builtins.str = ...,
|
|
197
|
+
) -> None: ...
|
|
198
|
+
def ClearField(self, field_name: typing.Literal["next_page_token", b"next_page_token", "threads", b"threads"]) -> None: ...
|
|
199
|
+
|
|
200
|
+
global___ListThreadsResponse = ListThreadsResponse
|
|
@@ -0,0 +1,199 @@
|
|
|
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.ai.assistants.v1.threads import thread_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__pb2
|
|
6
|
+
from yandex.cloud.ai.assistants.v1.threads import thread_service_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class ThreadServiceStub(object):
|
|
10
|
+
"""Missing associated documentation comment in .proto file."""
|
|
11
|
+
|
|
12
|
+
def __init__(self, channel):
|
|
13
|
+
"""Constructor.
|
|
14
|
+
|
|
15
|
+
Args:
|
|
16
|
+
channel: A grpc.Channel.
|
|
17
|
+
"""
|
|
18
|
+
self.Create = channel.unary_unary(
|
|
19
|
+
'/yandex.cloud.ai.assistants.v1.threads.ThreadService/Create',
|
|
20
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.CreateThreadRequest.SerializeToString,
|
|
21
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__pb2.Thread.FromString,
|
|
22
|
+
)
|
|
23
|
+
self.Get = channel.unary_unary(
|
|
24
|
+
'/yandex.cloud.ai.assistants.v1.threads.ThreadService/Get',
|
|
25
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.GetThreadRequest.SerializeToString,
|
|
26
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__pb2.Thread.FromString,
|
|
27
|
+
)
|
|
28
|
+
self.Update = channel.unary_unary(
|
|
29
|
+
'/yandex.cloud.ai.assistants.v1.threads.ThreadService/Update',
|
|
30
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.UpdateThreadRequest.SerializeToString,
|
|
31
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__pb2.Thread.FromString,
|
|
32
|
+
)
|
|
33
|
+
self.Delete = channel.unary_unary(
|
|
34
|
+
'/yandex.cloud.ai.assistants.v1.threads.ThreadService/Delete',
|
|
35
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.DeleteThreadRequest.SerializeToString,
|
|
36
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.DeleteThreadResponse.FromString,
|
|
37
|
+
)
|
|
38
|
+
self.List = channel.unary_unary(
|
|
39
|
+
'/yandex.cloud.ai.assistants.v1.threads.ThreadService/List',
|
|
40
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.ListThreadsRequest.SerializeToString,
|
|
41
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.ListThreadsResponse.FromString,
|
|
42
|
+
)
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
class ThreadServiceServicer(object):
|
|
46
|
+
"""Missing associated documentation comment in .proto file."""
|
|
47
|
+
|
|
48
|
+
def Create(self, request, context):
|
|
49
|
+
"""Missing associated documentation comment in .proto file."""
|
|
50
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
51
|
+
context.set_details('Method not implemented!')
|
|
52
|
+
raise NotImplementedError('Method not implemented!')
|
|
53
|
+
|
|
54
|
+
def Get(self, request, context):
|
|
55
|
+
"""Missing associated documentation comment in .proto file."""
|
|
56
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
57
|
+
context.set_details('Method not implemented!')
|
|
58
|
+
raise NotImplementedError('Method not implemented!')
|
|
59
|
+
|
|
60
|
+
def Update(self, request, context):
|
|
61
|
+
"""Missing associated documentation comment in .proto file."""
|
|
62
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
63
|
+
context.set_details('Method not implemented!')
|
|
64
|
+
raise NotImplementedError('Method not implemented!')
|
|
65
|
+
|
|
66
|
+
def Delete(self, request, context):
|
|
67
|
+
"""Missing associated documentation comment in .proto file."""
|
|
68
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
69
|
+
context.set_details('Method not implemented!')
|
|
70
|
+
raise NotImplementedError('Method not implemented!')
|
|
71
|
+
|
|
72
|
+
def List(self, request, context):
|
|
73
|
+
"""Missing associated documentation comment in .proto file."""
|
|
74
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
75
|
+
context.set_details('Method not implemented!')
|
|
76
|
+
raise NotImplementedError('Method not implemented!')
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
def add_ThreadServiceServicer_to_server(servicer, server):
|
|
80
|
+
rpc_method_handlers = {
|
|
81
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
82
|
+
servicer.Create,
|
|
83
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.CreateThreadRequest.FromString,
|
|
84
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__pb2.Thread.SerializeToString,
|
|
85
|
+
),
|
|
86
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
87
|
+
servicer.Get,
|
|
88
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.GetThreadRequest.FromString,
|
|
89
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__pb2.Thread.SerializeToString,
|
|
90
|
+
),
|
|
91
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
92
|
+
servicer.Update,
|
|
93
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.UpdateThreadRequest.FromString,
|
|
94
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__pb2.Thread.SerializeToString,
|
|
95
|
+
),
|
|
96
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
97
|
+
servicer.Delete,
|
|
98
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.DeleteThreadRequest.FromString,
|
|
99
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.DeleteThreadResponse.SerializeToString,
|
|
100
|
+
),
|
|
101
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
102
|
+
servicer.List,
|
|
103
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.ListThreadsRequest.FromString,
|
|
104
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.ListThreadsResponse.SerializeToString,
|
|
105
|
+
),
|
|
106
|
+
}
|
|
107
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
108
|
+
'yandex.cloud.ai.assistants.v1.threads.ThreadService', rpc_method_handlers)
|
|
109
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
110
|
+
|
|
111
|
+
|
|
112
|
+
# This class is part of an EXPERIMENTAL API.
|
|
113
|
+
class ThreadService(object):
|
|
114
|
+
"""Missing associated documentation comment in .proto file."""
|
|
115
|
+
|
|
116
|
+
@staticmethod
|
|
117
|
+
def Create(request,
|
|
118
|
+
target,
|
|
119
|
+
options=(),
|
|
120
|
+
channel_credentials=None,
|
|
121
|
+
call_credentials=None,
|
|
122
|
+
insecure=False,
|
|
123
|
+
compression=None,
|
|
124
|
+
wait_for_ready=None,
|
|
125
|
+
timeout=None,
|
|
126
|
+
metadata=None):
|
|
127
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.threads.ThreadService/Create',
|
|
128
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.CreateThreadRequest.SerializeToString,
|
|
129
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__pb2.Thread.FromString,
|
|
130
|
+
options, channel_credentials,
|
|
131
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
132
|
+
|
|
133
|
+
@staticmethod
|
|
134
|
+
def Get(request,
|
|
135
|
+
target,
|
|
136
|
+
options=(),
|
|
137
|
+
channel_credentials=None,
|
|
138
|
+
call_credentials=None,
|
|
139
|
+
insecure=False,
|
|
140
|
+
compression=None,
|
|
141
|
+
wait_for_ready=None,
|
|
142
|
+
timeout=None,
|
|
143
|
+
metadata=None):
|
|
144
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.threads.ThreadService/Get',
|
|
145
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.GetThreadRequest.SerializeToString,
|
|
146
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__pb2.Thread.FromString,
|
|
147
|
+
options, channel_credentials,
|
|
148
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
149
|
+
|
|
150
|
+
@staticmethod
|
|
151
|
+
def Update(request,
|
|
152
|
+
target,
|
|
153
|
+
options=(),
|
|
154
|
+
channel_credentials=None,
|
|
155
|
+
call_credentials=None,
|
|
156
|
+
insecure=False,
|
|
157
|
+
compression=None,
|
|
158
|
+
wait_for_ready=None,
|
|
159
|
+
timeout=None,
|
|
160
|
+
metadata=None):
|
|
161
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.threads.ThreadService/Update',
|
|
162
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.UpdateThreadRequest.SerializeToString,
|
|
163
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__pb2.Thread.FromString,
|
|
164
|
+
options, channel_credentials,
|
|
165
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
166
|
+
|
|
167
|
+
@staticmethod
|
|
168
|
+
def Delete(request,
|
|
169
|
+
target,
|
|
170
|
+
options=(),
|
|
171
|
+
channel_credentials=None,
|
|
172
|
+
call_credentials=None,
|
|
173
|
+
insecure=False,
|
|
174
|
+
compression=None,
|
|
175
|
+
wait_for_ready=None,
|
|
176
|
+
timeout=None,
|
|
177
|
+
metadata=None):
|
|
178
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.threads.ThreadService/Delete',
|
|
179
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.DeleteThreadRequest.SerializeToString,
|
|
180
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.DeleteThreadResponse.FromString,
|
|
181
|
+
options, channel_credentials,
|
|
182
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
183
|
+
|
|
184
|
+
@staticmethod
|
|
185
|
+
def List(request,
|
|
186
|
+
target,
|
|
187
|
+
options=(),
|
|
188
|
+
channel_credentials=None,
|
|
189
|
+
call_credentials=None,
|
|
190
|
+
insecure=False,
|
|
191
|
+
compression=None,
|
|
192
|
+
wait_for_ready=None,
|
|
193
|
+
timeout=None,
|
|
194
|
+
metadata=None):
|
|
195
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.threads.ThreadService/List',
|
|
196
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.ListThreadsRequest.SerializeToString,
|
|
197
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_thread__service__pb2.ListThreadsResponse.FromString,
|
|
198
|
+
options, channel_credentials,
|
|
199
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,110 @@
|
|
|
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.ai.assistants.v1.threads.thread_pb2
|
|
12
|
+
import yandex.cloud.ai.assistants.v1.threads.thread_service_pb2
|
|
13
|
+
|
|
14
|
+
_T = typing.TypeVar("_T")
|
|
15
|
+
|
|
16
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
17
|
+
|
|
18
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
19
|
+
...
|
|
20
|
+
|
|
21
|
+
class ThreadServiceStub:
|
|
22
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
23
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
24
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.CreateThreadRequest,
|
|
25
|
+
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
26
|
+
]
|
|
27
|
+
|
|
28
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
29
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.GetThreadRequest,
|
|
30
|
+
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
31
|
+
]
|
|
32
|
+
|
|
33
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
34
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.UpdateThreadRequest,
|
|
35
|
+
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
36
|
+
]
|
|
37
|
+
|
|
38
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
39
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadRequest,
|
|
40
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadResponse,
|
|
41
|
+
]
|
|
42
|
+
|
|
43
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
44
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsRequest,
|
|
45
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsResponse,
|
|
46
|
+
]
|
|
47
|
+
|
|
48
|
+
class ThreadServiceAsyncStub:
|
|
49
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
50
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.CreateThreadRequest,
|
|
51
|
+
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
52
|
+
]
|
|
53
|
+
|
|
54
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
55
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.GetThreadRequest,
|
|
56
|
+
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
57
|
+
]
|
|
58
|
+
|
|
59
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
60
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.UpdateThreadRequest,
|
|
61
|
+
yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread,
|
|
62
|
+
]
|
|
63
|
+
|
|
64
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
65
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadRequest,
|
|
66
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadResponse,
|
|
67
|
+
]
|
|
68
|
+
|
|
69
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
70
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsRequest,
|
|
71
|
+
yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsResponse,
|
|
72
|
+
]
|
|
73
|
+
|
|
74
|
+
class ThreadServiceServicer(metaclass=abc.ABCMeta):
|
|
75
|
+
@abc.abstractmethod
|
|
76
|
+
def Create(
|
|
77
|
+
self,
|
|
78
|
+
request: yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.CreateThreadRequest,
|
|
79
|
+
context: _ServicerContext,
|
|
80
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread]]: ...
|
|
81
|
+
|
|
82
|
+
@abc.abstractmethod
|
|
83
|
+
def Get(
|
|
84
|
+
self,
|
|
85
|
+
request: yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.GetThreadRequest,
|
|
86
|
+
context: _ServicerContext,
|
|
87
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread]]: ...
|
|
88
|
+
|
|
89
|
+
@abc.abstractmethod
|
|
90
|
+
def Update(
|
|
91
|
+
self,
|
|
92
|
+
request: yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.UpdateThreadRequest,
|
|
93
|
+
context: _ServicerContext,
|
|
94
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_pb2.Thread]]: ...
|
|
95
|
+
|
|
96
|
+
@abc.abstractmethod
|
|
97
|
+
def Delete(
|
|
98
|
+
self,
|
|
99
|
+
request: yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadRequest,
|
|
100
|
+
context: _ServicerContext,
|
|
101
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.DeleteThreadResponse]]: ...
|
|
102
|
+
|
|
103
|
+
@abc.abstractmethod
|
|
104
|
+
def List(
|
|
105
|
+
self,
|
|
106
|
+
request: yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsRequest,
|
|
107
|
+
context: _ServicerContext,
|
|
108
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.threads.thread_service_pb2.ListThreadsResponse]]: ...
|
|
109
|
+
|
|
110
|
+
def add_ThreadServiceServicer_to_server(servicer: ThreadServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
File without changes
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/ai/assistants/v1/users/user.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.ai.common import common_pb2 as yandex_dot_cloud_dot_ai_dot_common_dot_common__pb2
|
|
15
|
+
from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n.yandex/cloud/ai/assistants/v1/users/user.proto\x12#yandex.cloud.ai.assistants.v1.users\x1a#yandex/cloud/ai/common/common.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xcb\x03\n\x04User\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tfolder_id\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x0e\n\x06source\x18\x05 \x01(\t\x12\x12\n\ncreated_by\x18\x06 \x01(\t\x12.\n\ncreated_at\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x12\n\nupdated_by\x18\x08 \x01(\t\x12.\n\nupdated_at\x18\t \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x43\n\x11\x65xpiration_config\x18\n \x01(\x0b\x32(.yandex.cloud.ai.common.ExpirationConfig\x12.\n\nexpires_at\x18\x0b \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x45\n\x06labels\x18\x0c \x03(\x0b\x32\x35.yandex.cloud.ai.assistants.v1.users.User.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42x\n\'yandex.cloud.api.ai.assistants.v1.usersZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/users;usersb\x06proto3')
|
|
19
|
+
|
|
20
|
+
_globals = globals()
|
|
21
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
22
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.assistants.v1.users.user_pb2', _globals)
|
|
23
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
24
|
+
DESCRIPTOR._options = None
|
|
25
|
+
DESCRIPTOR._serialized_options = b'\n\'yandex.cloud.api.ai.assistants.v1.usersZMgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/users;users'
|
|
26
|
+
_USER_LABELSENTRY._options = None
|
|
27
|
+
_USER_LABELSENTRY._serialized_options = b'8\001'
|
|
28
|
+
_globals['_USER']._serialized_start=158
|
|
29
|
+
_globals['_USER']._serialized_end=617
|
|
30
|
+
_globals['_USER_LABELSENTRY']._serialized_start=572
|
|
31
|
+
_globals['_USER_LABELSENTRY']._serialized_end=617
|
|
32
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,85 @@
|
|
|
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 google.protobuf.timestamp_pb2
|
|
12
|
+
import typing
|
|
13
|
+
import yandex.cloud.ai.common.common_pb2
|
|
14
|
+
|
|
15
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
16
|
+
|
|
17
|
+
@typing.final
|
|
18
|
+
class User(google.protobuf.message.Message):
|
|
19
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
20
|
+
|
|
21
|
+
@typing.final
|
|
22
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
23
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
24
|
+
|
|
25
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
26
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
27
|
+
key: builtins.str
|
|
28
|
+
value: builtins.str
|
|
29
|
+
def __init__(
|
|
30
|
+
self,
|
|
31
|
+
*,
|
|
32
|
+
key: builtins.str = ...,
|
|
33
|
+
value: builtins.str = ...,
|
|
34
|
+
) -> None: ...
|
|
35
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
36
|
+
|
|
37
|
+
ID_FIELD_NUMBER: builtins.int
|
|
38
|
+
FOLDER_ID_FIELD_NUMBER: builtins.int
|
|
39
|
+
NAME_FIELD_NUMBER: builtins.int
|
|
40
|
+
DESCRIPTION_FIELD_NUMBER: builtins.int
|
|
41
|
+
SOURCE_FIELD_NUMBER: builtins.int
|
|
42
|
+
CREATED_BY_FIELD_NUMBER: builtins.int
|
|
43
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
44
|
+
UPDATED_BY_FIELD_NUMBER: builtins.int
|
|
45
|
+
UPDATED_AT_FIELD_NUMBER: builtins.int
|
|
46
|
+
EXPIRATION_CONFIG_FIELD_NUMBER: builtins.int
|
|
47
|
+
EXPIRES_AT_FIELD_NUMBER: builtins.int
|
|
48
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
49
|
+
id: builtins.str
|
|
50
|
+
folder_id: builtins.str
|
|
51
|
+
name: builtins.str
|
|
52
|
+
description: builtins.str
|
|
53
|
+
source: builtins.str
|
|
54
|
+
created_by: builtins.str
|
|
55
|
+
updated_by: builtins.str
|
|
56
|
+
@property
|
|
57
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
58
|
+
@property
|
|
59
|
+
def updated_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
60
|
+
@property
|
|
61
|
+
def expiration_config(self) -> yandex.cloud.ai.common.common_pb2.ExpirationConfig: ...
|
|
62
|
+
@property
|
|
63
|
+
def expires_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
64
|
+
@property
|
|
65
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
66
|
+
def __init__(
|
|
67
|
+
self,
|
|
68
|
+
*,
|
|
69
|
+
id: builtins.str = ...,
|
|
70
|
+
folder_id: builtins.str = ...,
|
|
71
|
+
name: builtins.str = ...,
|
|
72
|
+
description: builtins.str = ...,
|
|
73
|
+
source: builtins.str = ...,
|
|
74
|
+
created_by: builtins.str = ...,
|
|
75
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
76
|
+
updated_by: builtins.str = ...,
|
|
77
|
+
updated_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
78
|
+
expiration_config: yandex.cloud.ai.common.common_pb2.ExpirationConfig | None = ...,
|
|
79
|
+
expires_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
80
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
81
|
+
) -> None: ...
|
|
82
|
+
def HasField(self, field_name: typing.Literal["created_at", b"created_at", "expiration_config", b"expiration_config", "expires_at", b"expires_at", "updated_at", b"updated_at"]) -> builtins.bool: ...
|
|
83
|
+
def ClearField(self, field_name: typing.Literal["created_at", b"created_at", "created_by", b"created_by", "description", b"description", "expiration_config", b"expiration_config", "expires_at", b"expires_at", "folder_id", b"folder_id", "id", b"id", "labels", b"labels", "name", b"name", "source", b"source", "updated_at", b"updated_at", "updated_by", b"updated_by"]) -> None: ...
|
|
84
|
+
|
|
85
|
+
global___User = User
|
|
@@ -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
|
+
...
|