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
|
+
# 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.searchindex import search_index_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__pb2
|
|
6
|
+
from yandex.cloud.ai.assistants.v1.searchindex import search_index_service_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2
|
|
7
|
+
from yandex.cloud.operation import operation_pb2 as yandex_dot_cloud_dot_operation_dot_operation__pb2
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class SearchIndexServiceStub(object):
|
|
11
|
+
"""Missing associated documentation comment in .proto file."""
|
|
12
|
+
|
|
13
|
+
def __init__(self, channel):
|
|
14
|
+
"""Constructor.
|
|
15
|
+
|
|
16
|
+
Args:
|
|
17
|
+
channel: A grpc.Channel.
|
|
18
|
+
"""
|
|
19
|
+
self.Create = channel.unary_unary(
|
|
20
|
+
'/yandex.cloud.ai.assistants.v1.searchindex.SearchIndexService/Create',
|
|
21
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.CreateSearchIndexRequest.SerializeToString,
|
|
22
|
+
response_deserializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
23
|
+
)
|
|
24
|
+
self.Get = channel.unary_unary(
|
|
25
|
+
'/yandex.cloud.ai.assistants.v1.searchindex.SearchIndexService/Get',
|
|
26
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.GetSearchIndexRequest.SerializeToString,
|
|
27
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__pb2.SearchIndex.FromString,
|
|
28
|
+
)
|
|
29
|
+
self.Update = channel.unary_unary(
|
|
30
|
+
'/yandex.cloud.ai.assistants.v1.searchindex.SearchIndexService/Update',
|
|
31
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.UpdateSearchIndexRequest.SerializeToString,
|
|
32
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__pb2.SearchIndex.FromString,
|
|
33
|
+
)
|
|
34
|
+
self.Delete = channel.unary_unary(
|
|
35
|
+
'/yandex.cloud.ai.assistants.v1.searchindex.SearchIndexService/Delete',
|
|
36
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.DeleteSearchIndexRequest.SerializeToString,
|
|
37
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.DeleteSearchIndexResponse.FromString,
|
|
38
|
+
)
|
|
39
|
+
self.List = channel.unary_unary(
|
|
40
|
+
'/yandex.cloud.ai.assistants.v1.searchindex.SearchIndexService/List',
|
|
41
|
+
request_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.ListSearchIndicesRequest.SerializeToString,
|
|
42
|
+
response_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.ListSearchIndicesResponse.FromString,
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
class SearchIndexServiceServicer(object):
|
|
47
|
+
"""Missing associated documentation comment in .proto file."""
|
|
48
|
+
|
|
49
|
+
def Create(self, request, context):
|
|
50
|
+
"""Missing associated documentation comment in .proto file."""
|
|
51
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
52
|
+
context.set_details('Method not implemented!')
|
|
53
|
+
raise NotImplementedError('Method not implemented!')
|
|
54
|
+
|
|
55
|
+
def Get(self, request, context):
|
|
56
|
+
"""Missing associated documentation comment in .proto file."""
|
|
57
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
58
|
+
context.set_details('Method not implemented!')
|
|
59
|
+
raise NotImplementedError('Method not implemented!')
|
|
60
|
+
|
|
61
|
+
def Update(self, request, context):
|
|
62
|
+
"""Missing associated documentation comment in .proto file."""
|
|
63
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
64
|
+
context.set_details('Method not implemented!')
|
|
65
|
+
raise NotImplementedError('Method not implemented!')
|
|
66
|
+
|
|
67
|
+
def Delete(self, request, context):
|
|
68
|
+
"""Missing associated documentation comment in .proto file."""
|
|
69
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
70
|
+
context.set_details('Method not implemented!')
|
|
71
|
+
raise NotImplementedError('Method not implemented!')
|
|
72
|
+
|
|
73
|
+
def List(self, request, context):
|
|
74
|
+
"""Missing associated documentation comment in .proto file."""
|
|
75
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
76
|
+
context.set_details('Method not implemented!')
|
|
77
|
+
raise NotImplementedError('Method not implemented!')
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
def add_SearchIndexServiceServicer_to_server(servicer, server):
|
|
81
|
+
rpc_method_handlers = {
|
|
82
|
+
'Create': grpc.unary_unary_rpc_method_handler(
|
|
83
|
+
servicer.Create,
|
|
84
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.CreateSearchIndexRequest.FromString,
|
|
85
|
+
response_serializer=yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.SerializeToString,
|
|
86
|
+
),
|
|
87
|
+
'Get': grpc.unary_unary_rpc_method_handler(
|
|
88
|
+
servicer.Get,
|
|
89
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.GetSearchIndexRequest.FromString,
|
|
90
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__pb2.SearchIndex.SerializeToString,
|
|
91
|
+
),
|
|
92
|
+
'Update': grpc.unary_unary_rpc_method_handler(
|
|
93
|
+
servicer.Update,
|
|
94
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.UpdateSearchIndexRequest.FromString,
|
|
95
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__pb2.SearchIndex.SerializeToString,
|
|
96
|
+
),
|
|
97
|
+
'Delete': grpc.unary_unary_rpc_method_handler(
|
|
98
|
+
servicer.Delete,
|
|
99
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.DeleteSearchIndexRequest.FromString,
|
|
100
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.DeleteSearchIndexResponse.SerializeToString,
|
|
101
|
+
),
|
|
102
|
+
'List': grpc.unary_unary_rpc_method_handler(
|
|
103
|
+
servicer.List,
|
|
104
|
+
request_deserializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.ListSearchIndicesRequest.FromString,
|
|
105
|
+
response_serializer=yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.ListSearchIndicesResponse.SerializeToString,
|
|
106
|
+
),
|
|
107
|
+
}
|
|
108
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
|
109
|
+
'yandex.cloud.ai.assistants.v1.searchindex.SearchIndexService', rpc_method_handlers)
|
|
110
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
|
111
|
+
|
|
112
|
+
|
|
113
|
+
# This class is part of an EXPERIMENTAL API.
|
|
114
|
+
class SearchIndexService(object):
|
|
115
|
+
"""Missing associated documentation comment in .proto file."""
|
|
116
|
+
|
|
117
|
+
@staticmethod
|
|
118
|
+
def Create(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(request, target, '/yandex.cloud.ai.assistants.v1.searchindex.SearchIndexService/Create',
|
|
129
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.CreateSearchIndexRequest.SerializeToString,
|
|
130
|
+
yandex_dot_cloud_dot_operation_dot_operation__pb2.Operation.FromString,
|
|
131
|
+
options, channel_credentials,
|
|
132
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
133
|
+
|
|
134
|
+
@staticmethod
|
|
135
|
+
def Get(request,
|
|
136
|
+
target,
|
|
137
|
+
options=(),
|
|
138
|
+
channel_credentials=None,
|
|
139
|
+
call_credentials=None,
|
|
140
|
+
insecure=False,
|
|
141
|
+
compression=None,
|
|
142
|
+
wait_for_ready=None,
|
|
143
|
+
timeout=None,
|
|
144
|
+
metadata=None):
|
|
145
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.searchindex.SearchIndexService/Get',
|
|
146
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.GetSearchIndexRequest.SerializeToString,
|
|
147
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__pb2.SearchIndex.FromString,
|
|
148
|
+
options, channel_credentials,
|
|
149
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
150
|
+
|
|
151
|
+
@staticmethod
|
|
152
|
+
def Update(request,
|
|
153
|
+
target,
|
|
154
|
+
options=(),
|
|
155
|
+
channel_credentials=None,
|
|
156
|
+
call_credentials=None,
|
|
157
|
+
insecure=False,
|
|
158
|
+
compression=None,
|
|
159
|
+
wait_for_ready=None,
|
|
160
|
+
timeout=None,
|
|
161
|
+
metadata=None):
|
|
162
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.searchindex.SearchIndexService/Update',
|
|
163
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.UpdateSearchIndexRequest.SerializeToString,
|
|
164
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__pb2.SearchIndex.FromString,
|
|
165
|
+
options, channel_credentials,
|
|
166
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
167
|
+
|
|
168
|
+
@staticmethod
|
|
169
|
+
def Delete(request,
|
|
170
|
+
target,
|
|
171
|
+
options=(),
|
|
172
|
+
channel_credentials=None,
|
|
173
|
+
call_credentials=None,
|
|
174
|
+
insecure=False,
|
|
175
|
+
compression=None,
|
|
176
|
+
wait_for_ready=None,
|
|
177
|
+
timeout=None,
|
|
178
|
+
metadata=None):
|
|
179
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.searchindex.SearchIndexService/Delete',
|
|
180
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.DeleteSearchIndexRequest.SerializeToString,
|
|
181
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.DeleteSearchIndexResponse.FromString,
|
|
182
|
+
options, channel_credentials,
|
|
183
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
184
|
+
|
|
185
|
+
@staticmethod
|
|
186
|
+
def List(request,
|
|
187
|
+
target,
|
|
188
|
+
options=(),
|
|
189
|
+
channel_credentials=None,
|
|
190
|
+
call_credentials=None,
|
|
191
|
+
insecure=False,
|
|
192
|
+
compression=None,
|
|
193
|
+
wait_for_ready=None,
|
|
194
|
+
timeout=None,
|
|
195
|
+
metadata=None):
|
|
196
|
+
return grpc.experimental.unary_unary(request, target, '/yandex.cloud.ai.assistants.v1.searchindex.SearchIndexService/List',
|
|
197
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.ListSearchIndicesRequest.SerializeToString,
|
|
198
|
+
yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_searchindex_dot_search__index__service__pb2.ListSearchIndicesResponse.FromString,
|
|
199
|
+
options, channel_credentials,
|
|
200
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
|
@@ -0,0 +1,111 @@
|
|
|
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.searchindex.search_index_pb2
|
|
12
|
+
import yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2
|
|
13
|
+
import yandex.cloud.operation.operation_pb2
|
|
14
|
+
|
|
15
|
+
_T = typing.TypeVar("_T")
|
|
16
|
+
|
|
17
|
+
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
|
18
|
+
|
|
19
|
+
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
20
|
+
...
|
|
21
|
+
|
|
22
|
+
class SearchIndexServiceStub:
|
|
23
|
+
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
|
24
|
+
Create: grpc.UnaryUnaryMultiCallable[
|
|
25
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.CreateSearchIndexRequest,
|
|
26
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
27
|
+
]
|
|
28
|
+
|
|
29
|
+
Get: grpc.UnaryUnaryMultiCallable[
|
|
30
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.GetSearchIndexRequest,
|
|
31
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_pb2.SearchIndex,
|
|
32
|
+
]
|
|
33
|
+
|
|
34
|
+
Update: grpc.UnaryUnaryMultiCallable[
|
|
35
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.UpdateSearchIndexRequest,
|
|
36
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_pb2.SearchIndex,
|
|
37
|
+
]
|
|
38
|
+
|
|
39
|
+
Delete: grpc.UnaryUnaryMultiCallable[
|
|
40
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.DeleteSearchIndexRequest,
|
|
41
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.DeleteSearchIndexResponse,
|
|
42
|
+
]
|
|
43
|
+
|
|
44
|
+
List: grpc.UnaryUnaryMultiCallable[
|
|
45
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.ListSearchIndicesRequest,
|
|
46
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.ListSearchIndicesResponse,
|
|
47
|
+
]
|
|
48
|
+
|
|
49
|
+
class SearchIndexServiceAsyncStub:
|
|
50
|
+
Create: grpc.aio.UnaryUnaryMultiCallable[
|
|
51
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.CreateSearchIndexRequest,
|
|
52
|
+
yandex.cloud.operation.operation_pb2.Operation,
|
|
53
|
+
]
|
|
54
|
+
|
|
55
|
+
Get: grpc.aio.UnaryUnaryMultiCallable[
|
|
56
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.GetSearchIndexRequest,
|
|
57
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_pb2.SearchIndex,
|
|
58
|
+
]
|
|
59
|
+
|
|
60
|
+
Update: grpc.aio.UnaryUnaryMultiCallable[
|
|
61
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.UpdateSearchIndexRequest,
|
|
62
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_pb2.SearchIndex,
|
|
63
|
+
]
|
|
64
|
+
|
|
65
|
+
Delete: grpc.aio.UnaryUnaryMultiCallable[
|
|
66
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.DeleteSearchIndexRequest,
|
|
67
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.DeleteSearchIndexResponse,
|
|
68
|
+
]
|
|
69
|
+
|
|
70
|
+
List: grpc.aio.UnaryUnaryMultiCallable[
|
|
71
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.ListSearchIndicesRequest,
|
|
72
|
+
yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.ListSearchIndicesResponse,
|
|
73
|
+
]
|
|
74
|
+
|
|
75
|
+
class SearchIndexServiceServicer(metaclass=abc.ABCMeta):
|
|
76
|
+
@abc.abstractmethod
|
|
77
|
+
def Create(
|
|
78
|
+
self,
|
|
79
|
+
request: yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.CreateSearchIndexRequest,
|
|
80
|
+
context: _ServicerContext,
|
|
81
|
+
) -> typing.Union[yandex.cloud.operation.operation_pb2.Operation, collections.abc.Awaitable[yandex.cloud.operation.operation_pb2.Operation]]: ...
|
|
82
|
+
|
|
83
|
+
@abc.abstractmethod
|
|
84
|
+
def Get(
|
|
85
|
+
self,
|
|
86
|
+
request: yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.GetSearchIndexRequest,
|
|
87
|
+
context: _ServicerContext,
|
|
88
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.searchindex.search_index_pb2.SearchIndex, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.searchindex.search_index_pb2.SearchIndex]]: ...
|
|
89
|
+
|
|
90
|
+
@abc.abstractmethod
|
|
91
|
+
def Update(
|
|
92
|
+
self,
|
|
93
|
+
request: yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.UpdateSearchIndexRequest,
|
|
94
|
+
context: _ServicerContext,
|
|
95
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.searchindex.search_index_pb2.SearchIndex, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.searchindex.search_index_pb2.SearchIndex]]: ...
|
|
96
|
+
|
|
97
|
+
@abc.abstractmethod
|
|
98
|
+
def Delete(
|
|
99
|
+
self,
|
|
100
|
+
request: yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.DeleteSearchIndexRequest,
|
|
101
|
+
context: _ServicerContext,
|
|
102
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.DeleteSearchIndexResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.DeleteSearchIndexResponse]]: ...
|
|
103
|
+
|
|
104
|
+
@abc.abstractmethod
|
|
105
|
+
def List(
|
|
106
|
+
self,
|
|
107
|
+
request: yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.ListSearchIndicesRequest,
|
|
108
|
+
context: _ServicerContext,
|
|
109
|
+
) -> typing.Union[yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.ListSearchIndicesResponse, collections.abc.Awaitable[yandex.cloud.ai.assistants.v1.searchindex.search_index_service_pb2.ListSearchIndicesResponse]]: ...
|
|
110
|
+
|
|
111
|
+
def add_SearchIndexServiceServicer_to_server(servicer: SearchIndexServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
|
File without changes
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/ai/assistants/v1/threads/message.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.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n3yandex/cloud/ai/assistants/v1/threads/message.proto\x12%yandex.cloud.ai.assistants.v1.threads\x1a\x1fgoogle/protobuf/timestamp.proto\"\xee\x02\n\x07Message\x12\n\n\x02id\x18\x01 \x01(\t\x12\x11\n\tthread_id\x18\x02 \x01(\t\x12\x12\n\ncreated_by\x18\x03 \x01(\t\x12.\n\ncreated_at\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12=\n\x06\x61uthor\x18\x05 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.threads.Author\x12J\n\x06labels\x18\x06 \x03(\x0b\x32:.yandex.cloud.ai.assistants.v1.threads.Message.LabelsEntry\x12\x46\n\x07\x63ontent\x18\x07 \x01(\x0b\x32\x35.yandex.cloud.ai.assistants.v1.threads.MessageContent\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"U\n\x0eMessageContent\x12\x43\n\x07\x63ontent\x18\x01 \x03(\x0b\x32\x32.yandex.cloud.ai.assistants.v1.threads.ContentPart\"\x93\x02\n\x0bMessageData\x12=\n\x06\x61uthor\x18\x01 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.threads.Author\x12N\n\x06labels\x18\x02 \x03(\x0b\x32>.yandex.cloud.ai.assistants.v1.threads.MessageData.LabelsEntry\x12\x46\n\x07\x63ontent\x18\x03 \x01(\x0b\x32\x35.yandex.cloud.ai.assistants.v1.threads.MessageContent\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x17\n\x04Text\x12\x0f\n\x07\x63ontent\x18\x01 \x01(\t\"V\n\x0b\x43ontentPart\x12;\n\x04text\x18\x01 \x01(\x0b\x32+.yandex.cloud.ai.assistants.v1.threads.TextH\x00\x42\n\n\x08PartType\"\"\n\x06\x41uthor\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04role\x18\x02 \x01(\tB~\n)yandex.cloud.api.ai.assistants.v1.threadsZQgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/threads;threadsb\x06proto3')
|
|
18
|
+
|
|
19
|
+
_globals = globals()
|
|
20
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.assistants.v1.threads.message_pb2', _globals)
|
|
22
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
23
|
+
DESCRIPTOR._options = None
|
|
24
|
+
DESCRIPTOR._serialized_options = b'\n)yandex.cloud.api.ai.assistants.v1.threadsZQgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/threads;threads'
|
|
25
|
+
_MESSAGE_LABELSENTRY._options = None
|
|
26
|
+
_MESSAGE_LABELSENTRY._serialized_options = b'8\001'
|
|
27
|
+
_MESSAGEDATA_LABELSENTRY._options = None
|
|
28
|
+
_MESSAGEDATA_LABELSENTRY._serialized_options = b'8\001'
|
|
29
|
+
_globals['_MESSAGE']._serialized_start=128
|
|
30
|
+
_globals['_MESSAGE']._serialized_end=494
|
|
31
|
+
_globals['_MESSAGE_LABELSENTRY']._serialized_start=449
|
|
32
|
+
_globals['_MESSAGE_LABELSENTRY']._serialized_end=494
|
|
33
|
+
_globals['_MESSAGECONTENT']._serialized_start=496
|
|
34
|
+
_globals['_MESSAGECONTENT']._serialized_end=581
|
|
35
|
+
_globals['_MESSAGEDATA']._serialized_start=584
|
|
36
|
+
_globals['_MESSAGEDATA']._serialized_end=859
|
|
37
|
+
_globals['_MESSAGEDATA_LABELSENTRY']._serialized_start=449
|
|
38
|
+
_globals['_MESSAGEDATA_LABELSENTRY']._serialized_end=494
|
|
39
|
+
_globals['_TEXT']._serialized_start=861
|
|
40
|
+
_globals['_TEXT']._serialized_end=884
|
|
41
|
+
_globals['_CONTENTPART']._serialized_start=886
|
|
42
|
+
_globals['_CONTENTPART']._serialized_end=972
|
|
43
|
+
_globals['_AUTHOR']._serialized_start=974
|
|
44
|
+
_globals['_AUTHOR']._serialized_end=1008
|
|
45
|
+
# @@protoc_insertion_point(module_scope)
|
|
@@ -0,0 +1,176 @@
|
|
|
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
|
+
|
|
14
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
|
15
|
+
|
|
16
|
+
@typing.final
|
|
17
|
+
class Message(google.protobuf.message.Message):
|
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
19
|
+
|
|
20
|
+
@typing.final
|
|
21
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
22
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
23
|
+
|
|
24
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
25
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
26
|
+
key: builtins.str
|
|
27
|
+
value: builtins.str
|
|
28
|
+
def __init__(
|
|
29
|
+
self,
|
|
30
|
+
*,
|
|
31
|
+
key: builtins.str = ...,
|
|
32
|
+
value: builtins.str = ...,
|
|
33
|
+
) -> None: ...
|
|
34
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
35
|
+
|
|
36
|
+
ID_FIELD_NUMBER: builtins.int
|
|
37
|
+
THREAD_ID_FIELD_NUMBER: builtins.int
|
|
38
|
+
CREATED_BY_FIELD_NUMBER: builtins.int
|
|
39
|
+
CREATED_AT_FIELD_NUMBER: builtins.int
|
|
40
|
+
AUTHOR_FIELD_NUMBER: builtins.int
|
|
41
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
42
|
+
CONTENT_FIELD_NUMBER: builtins.int
|
|
43
|
+
id: builtins.str
|
|
44
|
+
thread_id: builtins.str
|
|
45
|
+
created_by: builtins.str
|
|
46
|
+
@property
|
|
47
|
+
def created_at(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
|
|
48
|
+
@property
|
|
49
|
+
def author(self) -> global___Author: ...
|
|
50
|
+
@property
|
|
51
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
52
|
+
@property
|
|
53
|
+
def content(self) -> global___MessageContent: ...
|
|
54
|
+
def __init__(
|
|
55
|
+
self,
|
|
56
|
+
*,
|
|
57
|
+
id: builtins.str = ...,
|
|
58
|
+
thread_id: builtins.str = ...,
|
|
59
|
+
created_by: builtins.str = ...,
|
|
60
|
+
created_at: google.protobuf.timestamp_pb2.Timestamp | None = ...,
|
|
61
|
+
author: global___Author | None = ...,
|
|
62
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
63
|
+
content: global___MessageContent | None = ...,
|
|
64
|
+
) -> None: ...
|
|
65
|
+
def HasField(self, field_name: typing.Literal["author", b"author", "content", b"content", "created_at", b"created_at"]) -> builtins.bool: ...
|
|
66
|
+
def ClearField(self, field_name: typing.Literal["author", b"author", "content", b"content", "created_at", b"created_at", "created_by", b"created_by", "id", b"id", "labels", b"labels", "thread_id", b"thread_id"]) -> None: ...
|
|
67
|
+
|
|
68
|
+
global___Message = Message
|
|
69
|
+
|
|
70
|
+
@typing.final
|
|
71
|
+
class MessageContent(google.protobuf.message.Message):
|
|
72
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
73
|
+
|
|
74
|
+
CONTENT_FIELD_NUMBER: builtins.int
|
|
75
|
+
@property
|
|
76
|
+
def content(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ContentPart]: ...
|
|
77
|
+
def __init__(
|
|
78
|
+
self,
|
|
79
|
+
*,
|
|
80
|
+
content: collections.abc.Iterable[global___ContentPart] | None = ...,
|
|
81
|
+
) -> None: ...
|
|
82
|
+
def ClearField(self, field_name: typing.Literal["content", b"content"]) -> None: ...
|
|
83
|
+
|
|
84
|
+
global___MessageContent = MessageContent
|
|
85
|
+
|
|
86
|
+
@typing.final
|
|
87
|
+
class MessageData(google.protobuf.message.Message):
|
|
88
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
89
|
+
|
|
90
|
+
@typing.final
|
|
91
|
+
class LabelsEntry(google.protobuf.message.Message):
|
|
92
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
93
|
+
|
|
94
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
95
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
96
|
+
key: builtins.str
|
|
97
|
+
value: builtins.str
|
|
98
|
+
def __init__(
|
|
99
|
+
self,
|
|
100
|
+
*,
|
|
101
|
+
key: builtins.str = ...,
|
|
102
|
+
value: builtins.str = ...,
|
|
103
|
+
) -> None: ...
|
|
104
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
105
|
+
|
|
106
|
+
AUTHOR_FIELD_NUMBER: builtins.int
|
|
107
|
+
LABELS_FIELD_NUMBER: builtins.int
|
|
108
|
+
CONTENT_FIELD_NUMBER: builtins.int
|
|
109
|
+
@property
|
|
110
|
+
def author(self) -> global___Author: ...
|
|
111
|
+
@property
|
|
112
|
+
def labels(self) -> google.protobuf.internal.containers.ScalarMap[builtins.str, builtins.str]: ...
|
|
113
|
+
@property
|
|
114
|
+
def content(self) -> global___MessageContent: ...
|
|
115
|
+
def __init__(
|
|
116
|
+
self,
|
|
117
|
+
*,
|
|
118
|
+
author: global___Author | None = ...,
|
|
119
|
+
labels: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
120
|
+
content: global___MessageContent | None = ...,
|
|
121
|
+
) -> None: ...
|
|
122
|
+
def HasField(self, field_name: typing.Literal["author", b"author", "content", b"content"]) -> builtins.bool: ...
|
|
123
|
+
def ClearField(self, field_name: typing.Literal["author", b"author", "content", b"content", "labels", b"labels"]) -> None: ...
|
|
124
|
+
|
|
125
|
+
global___MessageData = MessageData
|
|
126
|
+
|
|
127
|
+
@typing.final
|
|
128
|
+
class Text(google.protobuf.message.Message):
|
|
129
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
130
|
+
|
|
131
|
+
CONTENT_FIELD_NUMBER: builtins.int
|
|
132
|
+
content: builtins.str
|
|
133
|
+
def __init__(
|
|
134
|
+
self,
|
|
135
|
+
*,
|
|
136
|
+
content: builtins.str = ...,
|
|
137
|
+
) -> None: ...
|
|
138
|
+
def ClearField(self, field_name: typing.Literal["content", b"content"]) -> None: ...
|
|
139
|
+
|
|
140
|
+
global___Text = Text
|
|
141
|
+
|
|
142
|
+
@typing.final
|
|
143
|
+
class ContentPart(google.protobuf.message.Message):
|
|
144
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
145
|
+
|
|
146
|
+
TEXT_FIELD_NUMBER: builtins.int
|
|
147
|
+
@property
|
|
148
|
+
def text(self) -> global___Text: ...
|
|
149
|
+
def __init__(
|
|
150
|
+
self,
|
|
151
|
+
*,
|
|
152
|
+
text: global___Text | None = ...,
|
|
153
|
+
) -> None: ...
|
|
154
|
+
def HasField(self, field_name: typing.Literal["PartType", b"PartType", "text", b"text"]) -> builtins.bool: ...
|
|
155
|
+
def ClearField(self, field_name: typing.Literal["PartType", b"PartType", "text", b"text"]) -> None: ...
|
|
156
|
+
def WhichOneof(self, oneof_group: typing.Literal["PartType", b"PartType"]) -> typing.Literal["text"] | None: ...
|
|
157
|
+
|
|
158
|
+
global___ContentPart = ContentPart
|
|
159
|
+
|
|
160
|
+
@typing.final
|
|
161
|
+
class Author(google.protobuf.message.Message):
|
|
162
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
163
|
+
|
|
164
|
+
ID_FIELD_NUMBER: builtins.int
|
|
165
|
+
ROLE_FIELD_NUMBER: builtins.int
|
|
166
|
+
id: builtins.str
|
|
167
|
+
role: builtins.str
|
|
168
|
+
def __init__(
|
|
169
|
+
self,
|
|
170
|
+
*,
|
|
171
|
+
id: builtins.str = ...,
|
|
172
|
+
role: builtins.str = ...,
|
|
173
|
+
) -> None: ...
|
|
174
|
+
def ClearField(self, field_name: typing.Literal["id", b"id", "role", b"role"]) -> None: ...
|
|
175
|
+
|
|
176
|
+
global___Author = Author
|
|
@@ -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,55 @@
|
|
|
1
|
+
# -*- coding: utf-8 -*-
|
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
|
+
# source: yandex/cloud/ai/assistants/v1/threads/message_service.proto
|
|
4
|
+
"""Generated protocol buffer code."""
|
|
5
|
+
from google.protobuf import descriptor as _descriptor
|
|
6
|
+
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
7
|
+
from google.protobuf import symbol_database as _symbol_database
|
|
8
|
+
from google.protobuf.internal import builder as _builder
|
|
9
|
+
# @@protoc_insertion_point(imports)
|
|
10
|
+
|
|
11
|
+
_sym_db = _symbol_database.Default()
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
from yandex.cloud.ai.assistants.v1.threads import message_pb2 as yandex_dot_cloud_dot_ai_dot_assistants_dot_v1_dot_threads_dot_message__pb2
|
|
15
|
+
from yandex.cloud import validation_pb2 as yandex_dot_cloud_dot_validation__pb2
|
|
16
|
+
from google.api import annotations_pb2 as google_dot_api_dot_annotations__pb2
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n;yandex/cloud/ai/assistants/v1/threads/message_service.proto\x12%yandex.cloud.ai.assistants.v1.threads\x1a\x33yandex/cloud/ai/assistants/v1/threads/message.proto\x1a\x1dyandex/cloud/validation.proto\x1a\x1cgoogle/api/annotations.proto\"\xc4\x02\n\x14\x43reateMessageRequest\x12\x17\n\tthread_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12=\n\x06\x61uthor\x18\x02 \x01(\x0b\x32-.yandex.cloud.ai.assistants.v1.threads.Author\x12W\n\x06labels\x18\x03 \x03(\x0b\x32G.yandex.cloud.ai.assistants.v1.threads.CreateMessageRequest.LabelsEntry\x12L\n\x07\x63ontent\x18\x04 \x01(\x0b\x32\x35.yandex.cloud.ai.assistants.v1.threads.MessageContentB\x04\xe8\xc7\x31\x01\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"F\n\x11GetMessageRequest\x12\x17\n\tthread_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x12\x18\n\nmessage_id\x18\x02 \x01(\tB\x04\xe8\xc7\x31\x01\".\n\x13ListMessagesRequest\x12\x17\n\tthread_id\x18\x01 \x01(\tB\x04\xe8\xc7\x31\x01\x32\xe4\x03\n\x0eMessageService\x12\x99\x01\n\x06\x43reate\x12;.yandex.cloud.ai.assistants.v1.threads.CreateMessageRequest\x1a..yandex.cloud.ai.assistants.v1.threads.Message\"\"\x82\xd3\xe4\x93\x02\x1c\"\x17/assistants/v1/messages:\x01*\x12\x9d\x01\n\x03Get\x12\x38.yandex.cloud.ai.assistants.v1.threads.GetMessageRequest\x1a..yandex.cloud.ai.assistants.v1.threads.Message\",\x82\xd3\xe4\x93\x02&\x12$/assistants/v1/messages/{message_id}\x12\x95\x01\n\x04List\x12:.yandex.cloud.ai.assistants.v1.threads.ListMessagesRequest\x1a..yandex.cloud.ai.assistants.v1.threads.Message\"\x1f\x82\xd3\xe4\x93\x02\x19\x12\x17/assistants/v1/messages0\x01\x42~\n)yandex.cloud.api.ai.assistants.v1.threadsZQgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/threads;threadsb\x06proto3')
|
|
20
|
+
|
|
21
|
+
_globals = globals()
|
|
22
|
+
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
23
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'yandex.cloud.ai.assistants.v1.threads.message_service_pb2', _globals)
|
|
24
|
+
if _descriptor._USE_C_DESCRIPTORS == False:
|
|
25
|
+
DESCRIPTOR._options = None
|
|
26
|
+
DESCRIPTOR._serialized_options = b'\n)yandex.cloud.api.ai.assistants.v1.threadsZQgithub.com/yandex-cloud/go-genproto/yandex/cloud/ai/assistants/v1/threads;threads'
|
|
27
|
+
_CREATEMESSAGEREQUEST_LABELSENTRY._options = None
|
|
28
|
+
_CREATEMESSAGEREQUEST_LABELSENTRY._serialized_options = b'8\001'
|
|
29
|
+
_CREATEMESSAGEREQUEST.fields_by_name['thread_id']._options = None
|
|
30
|
+
_CREATEMESSAGEREQUEST.fields_by_name['thread_id']._serialized_options = b'\350\3071\001'
|
|
31
|
+
_CREATEMESSAGEREQUEST.fields_by_name['content']._options = None
|
|
32
|
+
_CREATEMESSAGEREQUEST.fields_by_name['content']._serialized_options = b'\350\3071\001'
|
|
33
|
+
_GETMESSAGEREQUEST.fields_by_name['thread_id']._options = None
|
|
34
|
+
_GETMESSAGEREQUEST.fields_by_name['thread_id']._serialized_options = b'\350\3071\001'
|
|
35
|
+
_GETMESSAGEREQUEST.fields_by_name['message_id']._options = None
|
|
36
|
+
_GETMESSAGEREQUEST.fields_by_name['message_id']._serialized_options = b'\350\3071\001'
|
|
37
|
+
_LISTMESSAGESREQUEST.fields_by_name['thread_id']._options = None
|
|
38
|
+
_LISTMESSAGESREQUEST.fields_by_name['thread_id']._serialized_options = b'\350\3071\001'
|
|
39
|
+
_MESSAGESERVICE.methods_by_name['Create']._options = None
|
|
40
|
+
_MESSAGESERVICE.methods_by_name['Create']._serialized_options = b'\202\323\344\223\002\034\"\027/assistants/v1/messages:\001*'
|
|
41
|
+
_MESSAGESERVICE.methods_by_name['Get']._options = None
|
|
42
|
+
_MESSAGESERVICE.methods_by_name['Get']._serialized_options = b'\202\323\344\223\002&\022$/assistants/v1/messages/{message_id}'
|
|
43
|
+
_MESSAGESERVICE.methods_by_name['List']._options = None
|
|
44
|
+
_MESSAGESERVICE.methods_by_name['List']._serialized_options = b'\202\323\344\223\002\031\022\027/assistants/v1/messages'
|
|
45
|
+
_globals['_CREATEMESSAGEREQUEST']._serialized_start=217
|
|
46
|
+
_globals['_CREATEMESSAGEREQUEST']._serialized_end=541
|
|
47
|
+
_globals['_CREATEMESSAGEREQUEST_LABELSENTRY']._serialized_start=496
|
|
48
|
+
_globals['_CREATEMESSAGEREQUEST_LABELSENTRY']._serialized_end=541
|
|
49
|
+
_globals['_GETMESSAGEREQUEST']._serialized_start=543
|
|
50
|
+
_globals['_GETMESSAGEREQUEST']._serialized_end=613
|
|
51
|
+
_globals['_LISTMESSAGESREQUEST']._serialized_start=615
|
|
52
|
+
_globals['_LISTMESSAGESREQUEST']._serialized_end=661
|
|
53
|
+
_globals['_MESSAGESERVICE']._serialized_start=664
|
|
54
|
+
_globals['_MESSAGESERVICE']._serialized_end=1148
|
|
55
|
+
# @@protoc_insertion_point(module_scope)
|