nucliadb-protos 6.3.7.post4116__py3-none-any.whl → 6.3.7.post4119__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.
- build.py +0 -3
- nucliadb_protos/audit_pb2.py +25 -38
- nucliadb_protos/knowledgebox_pb2.py +91 -97
- nucliadb_protos/knowledgebox_pb2.pyi +41 -20
- nucliadb_protos/train_pb2.py +0 -32
- nucliadb_protos/train_pb2.pyi +3 -1
- nucliadb_protos/train_pb2_grpc.pyi +3 -1
- nucliadb_protos/writer_pb2.py +135 -155
- nucliadb_protos/writer_pb2.pyi +4 -53
- nucliadb_protos/writer_pb2_grpc.pyi +3 -27
- {nucliadb_protos-6.3.7.post4116.dist-info → nucliadb_protos-6.3.7.post4119.dist-info}/METADATA +1 -1
- {nucliadb_protos-6.3.7.post4116.dist-info → nucliadb_protos-6.3.7.post4119.dist-info}/RECORD +14 -24
- nucliadb_protos/nodereader_pb2.py +0 -179
- nucliadb_protos/nodereader_pb2.pyi +0 -1523
- nucliadb_protos/nodereader_pb2_grpc.py +0 -579
- nucliadb_protos/nodereader_pb2_grpc.pyi +0 -288
- nucliadb_protos/noderesources_pb2.py +0 -155
- nucliadb_protos/noderesources_pb2.pyi +0 -993
- nucliadb_protos/nodewriter_pb2.py +0 -90
- nucliadb_protos/nodewriter_pb2.pyi +0 -348
- nucliadb_protos/nodewriter_pb2_grpc.py +0 -571
- nucliadb_protos/nodewriter_pb2_grpc.pyi +0 -256
- {nucliadb_protos-6.3.7.post4116.dist-info → nucliadb_protos-6.3.7.post4119.dist-info}/WHEEL +0 -0
- {nucliadb_protos-6.3.7.post4116.dist-info → nucliadb_protos-6.3.7.post4119.dist-info}/entry_points.txt +0 -0
@@ -1,571 +0,0 @@
|
|
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 nucliadb_protos import noderesources_pb2 as nucliadb__protos_dot_noderesources__pb2
|
7
|
-
from nucliadb_protos import nodewriter_pb2 as nucliadb__protos_dot_nodewriter__pb2
|
8
|
-
|
9
|
-
GRPC_GENERATED_VERSION = '1.71.0'
|
10
|
-
GRPC_VERSION = grpc.__version__
|
11
|
-
_version_not_supported = False
|
12
|
-
|
13
|
-
try:
|
14
|
-
from grpc._utilities import first_version_is_lower
|
15
|
-
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
16
|
-
except ImportError:
|
17
|
-
_version_not_supported = True
|
18
|
-
|
19
|
-
if _version_not_supported:
|
20
|
-
raise RuntimeError(
|
21
|
-
f'The grpc package installed is at version {GRPC_VERSION},'
|
22
|
-
+ f' but the generated code in nucliadb_protos/nodewriter_pb2_grpc.py depends on'
|
23
|
-
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
24
|
-
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
25
|
-
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
26
|
-
)
|
27
|
-
|
28
|
-
|
29
|
-
class NodeWriterStub(object):
|
30
|
-
"""Missing associated documentation comment in .proto file."""
|
31
|
-
|
32
|
-
def __init__(self, channel):
|
33
|
-
"""Constructor.
|
34
|
-
|
35
|
-
Args:
|
36
|
-
channel: A grpc.Channel.
|
37
|
-
"""
|
38
|
-
self.NewShard = channel.unary_unary(
|
39
|
-
'/nodewriter.NodeWriter/NewShard',
|
40
|
-
request_serializer=nucliadb__protos_dot_nodewriter__pb2.NewShardRequest.SerializeToString,
|
41
|
-
response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardCreated.FromString,
|
42
|
-
_registered_method=True)
|
43
|
-
self.DeleteShard = channel.unary_unary(
|
44
|
-
'/nodewriter.NodeWriter/DeleteShard',
|
45
|
-
request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
46
|
-
response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
|
47
|
-
_registered_method=True)
|
48
|
-
self.ListShards = channel.unary_unary(
|
49
|
-
'/nodewriter.NodeWriter/ListShards',
|
50
|
-
request_serializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
51
|
-
response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardIds.FromString,
|
52
|
-
_registered_method=True)
|
53
|
-
self.GC = channel.unary_unary(
|
54
|
-
'/nodewriter.NodeWriter/GC',
|
55
|
-
request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
56
|
-
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.GarbageCollectorResponse.FromString,
|
57
|
-
_registered_method=True)
|
58
|
-
self.Merge = channel.unary_unary(
|
59
|
-
'/nodewriter.NodeWriter/Merge',
|
60
|
-
request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
61
|
-
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.MergeResponse.FromString,
|
62
|
-
_registered_method=True)
|
63
|
-
self.SetResource = channel.unary_unary(
|
64
|
-
'/nodewriter.NodeWriter/SetResource',
|
65
|
-
request_serializer=nucliadb__protos_dot_noderesources__pb2.Resource.SerializeToString,
|
66
|
-
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
67
|
-
_registered_method=True)
|
68
|
-
self.SetResourceFromStorage = channel.unary_unary(
|
69
|
-
'/nodewriter.NodeWriter/SetResourceFromStorage',
|
70
|
-
request_serializer=nucliadb__protos_dot_nodewriter__pb2.IndexMessage.SerializeToString,
|
71
|
-
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
72
|
-
_registered_method=True)
|
73
|
-
self.RemoveResource = channel.unary_unary(
|
74
|
-
'/nodewriter.NodeWriter/RemoveResource',
|
75
|
-
request_serializer=nucliadb__protos_dot_noderesources__pb2.ResourceID.SerializeToString,
|
76
|
-
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
77
|
-
_registered_method=True)
|
78
|
-
self.AddVectorSet = channel.unary_unary(
|
79
|
-
'/nodewriter.NodeWriter/AddVectorSet',
|
80
|
-
request_serializer=nucliadb__protos_dot_nodewriter__pb2.NewVectorSetRequest.SerializeToString,
|
81
|
-
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
82
|
-
_registered_method=True)
|
83
|
-
self.RemoveVectorSet = channel.unary_unary(
|
84
|
-
'/nodewriter.NodeWriter/RemoveVectorSet',
|
85
|
-
request_serializer=nucliadb__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
|
86
|
-
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
87
|
-
_registered_method=True)
|
88
|
-
self.ListVectorSets = channel.unary_unary(
|
89
|
-
'/nodewriter.NodeWriter/ListVectorSets',
|
90
|
-
request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
91
|
-
response_deserializer=nucliadb__protos_dot_noderesources__pb2.VectorSetList.FromString,
|
92
|
-
_registered_method=True)
|
93
|
-
self.GetMetadata = channel.unary_unary(
|
94
|
-
'/nodewriter.NodeWriter/GetMetadata',
|
95
|
-
request_serializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
96
|
-
response_deserializer=nucliadb__protos_dot_noderesources__pb2.NodeMetadata.FromString,
|
97
|
-
_registered_method=True)
|
98
|
-
|
99
|
-
|
100
|
-
class NodeWriterServicer(object):
|
101
|
-
"""Missing associated documentation comment in .proto file."""
|
102
|
-
|
103
|
-
def NewShard(self, request, context):
|
104
|
-
"""Missing associated documentation comment in .proto file."""
|
105
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
106
|
-
context.set_details('Method not implemented!')
|
107
|
-
raise NotImplementedError('Method not implemented!')
|
108
|
-
|
109
|
-
def DeleteShard(self, request, context):
|
110
|
-
"""Missing associated documentation comment in .proto file."""
|
111
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
112
|
-
context.set_details('Method not implemented!')
|
113
|
-
raise NotImplementedError('Method not implemented!')
|
114
|
-
|
115
|
-
def ListShards(self, request, context):
|
116
|
-
"""Missing associated documentation comment in .proto file."""
|
117
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
118
|
-
context.set_details('Method not implemented!')
|
119
|
-
raise NotImplementedError('Method not implemented!')
|
120
|
-
|
121
|
-
def GC(self, request, context):
|
122
|
-
"""Missing associated documentation comment in .proto file."""
|
123
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
124
|
-
context.set_details('Method not implemented!')
|
125
|
-
raise NotImplementedError('Method not implemented!')
|
126
|
-
|
127
|
-
def Merge(self, request, context):
|
128
|
-
"""Missing associated documentation comment in .proto file."""
|
129
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
130
|
-
context.set_details('Method not implemented!')
|
131
|
-
raise NotImplementedError('Method not implemented!')
|
132
|
-
|
133
|
-
def SetResource(self, request, context):
|
134
|
-
"""Missing associated documentation comment in .proto file."""
|
135
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
136
|
-
context.set_details('Method not implemented!')
|
137
|
-
raise NotImplementedError('Method not implemented!')
|
138
|
-
|
139
|
-
def SetResourceFromStorage(self, request, context):
|
140
|
-
"""Missing associated documentation comment in .proto file."""
|
141
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
142
|
-
context.set_details('Method not implemented!')
|
143
|
-
raise NotImplementedError('Method not implemented!')
|
144
|
-
|
145
|
-
def RemoveResource(self, request, context):
|
146
|
-
"""Missing associated documentation comment in .proto file."""
|
147
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
148
|
-
context.set_details('Method not implemented!')
|
149
|
-
raise NotImplementedError('Method not implemented!')
|
150
|
-
|
151
|
-
def AddVectorSet(self, request, context):
|
152
|
-
"""Missing associated documentation comment in .proto file."""
|
153
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
154
|
-
context.set_details('Method not implemented!')
|
155
|
-
raise NotImplementedError('Method not implemented!')
|
156
|
-
|
157
|
-
def RemoveVectorSet(self, request, context):
|
158
|
-
"""Missing associated documentation comment in .proto file."""
|
159
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
160
|
-
context.set_details('Method not implemented!')
|
161
|
-
raise NotImplementedError('Method not implemented!')
|
162
|
-
|
163
|
-
def ListVectorSets(self, request, context):
|
164
|
-
"""Missing associated documentation comment in .proto file."""
|
165
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
166
|
-
context.set_details('Method not implemented!')
|
167
|
-
raise NotImplementedError('Method not implemented!')
|
168
|
-
|
169
|
-
def GetMetadata(self, request, context):
|
170
|
-
"""Missing associated documentation comment in .proto file."""
|
171
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
172
|
-
context.set_details('Method not implemented!')
|
173
|
-
raise NotImplementedError('Method not implemented!')
|
174
|
-
|
175
|
-
|
176
|
-
def add_NodeWriterServicer_to_server(servicer, server):
|
177
|
-
rpc_method_handlers = {
|
178
|
-
'NewShard': grpc.unary_unary_rpc_method_handler(
|
179
|
-
servicer.NewShard,
|
180
|
-
request_deserializer=nucliadb__protos_dot_nodewriter__pb2.NewShardRequest.FromString,
|
181
|
-
response_serializer=nucliadb__protos_dot_noderesources__pb2.ShardCreated.SerializeToString,
|
182
|
-
),
|
183
|
-
'DeleteShard': grpc.unary_unary_rpc_method_handler(
|
184
|
-
servicer.DeleteShard,
|
185
|
-
request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
|
186
|
-
response_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
187
|
-
),
|
188
|
-
'ListShards': grpc.unary_unary_rpc_method_handler(
|
189
|
-
servicer.ListShards,
|
190
|
-
request_deserializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.FromString,
|
191
|
-
response_serializer=nucliadb__protos_dot_noderesources__pb2.ShardIds.SerializeToString,
|
192
|
-
),
|
193
|
-
'GC': grpc.unary_unary_rpc_method_handler(
|
194
|
-
servicer.GC,
|
195
|
-
request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
|
196
|
-
response_serializer=nucliadb__protos_dot_nodewriter__pb2.GarbageCollectorResponse.SerializeToString,
|
197
|
-
),
|
198
|
-
'Merge': grpc.unary_unary_rpc_method_handler(
|
199
|
-
servicer.Merge,
|
200
|
-
request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
|
201
|
-
response_serializer=nucliadb__protos_dot_nodewriter__pb2.MergeResponse.SerializeToString,
|
202
|
-
),
|
203
|
-
'SetResource': grpc.unary_unary_rpc_method_handler(
|
204
|
-
servicer.SetResource,
|
205
|
-
request_deserializer=nucliadb__protos_dot_noderesources__pb2.Resource.FromString,
|
206
|
-
response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
|
207
|
-
),
|
208
|
-
'SetResourceFromStorage': grpc.unary_unary_rpc_method_handler(
|
209
|
-
servicer.SetResourceFromStorage,
|
210
|
-
request_deserializer=nucliadb__protos_dot_nodewriter__pb2.IndexMessage.FromString,
|
211
|
-
response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
|
212
|
-
),
|
213
|
-
'RemoveResource': grpc.unary_unary_rpc_method_handler(
|
214
|
-
servicer.RemoveResource,
|
215
|
-
request_deserializer=nucliadb__protos_dot_noderesources__pb2.ResourceID.FromString,
|
216
|
-
response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
|
217
|
-
),
|
218
|
-
'AddVectorSet': grpc.unary_unary_rpc_method_handler(
|
219
|
-
servicer.AddVectorSet,
|
220
|
-
request_deserializer=nucliadb__protos_dot_nodewriter__pb2.NewVectorSetRequest.FromString,
|
221
|
-
response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
|
222
|
-
),
|
223
|
-
'RemoveVectorSet': grpc.unary_unary_rpc_method_handler(
|
224
|
-
servicer.RemoveVectorSet,
|
225
|
-
request_deserializer=nucliadb__protos_dot_noderesources__pb2.VectorSetID.FromString,
|
226
|
-
response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
|
227
|
-
),
|
228
|
-
'ListVectorSets': grpc.unary_unary_rpc_method_handler(
|
229
|
-
servicer.ListVectorSets,
|
230
|
-
request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
|
231
|
-
response_serializer=nucliadb__protos_dot_noderesources__pb2.VectorSetList.SerializeToString,
|
232
|
-
),
|
233
|
-
'GetMetadata': grpc.unary_unary_rpc_method_handler(
|
234
|
-
servicer.GetMetadata,
|
235
|
-
request_deserializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.FromString,
|
236
|
-
response_serializer=nucliadb__protos_dot_noderesources__pb2.NodeMetadata.SerializeToString,
|
237
|
-
),
|
238
|
-
}
|
239
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
240
|
-
'nodewriter.NodeWriter', rpc_method_handlers)
|
241
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
242
|
-
server.add_registered_method_handlers('nodewriter.NodeWriter', rpc_method_handlers)
|
243
|
-
|
244
|
-
|
245
|
-
# This class is part of an EXPERIMENTAL API.
|
246
|
-
class NodeWriter(object):
|
247
|
-
"""Missing associated documentation comment in .proto file."""
|
248
|
-
|
249
|
-
@staticmethod
|
250
|
-
def NewShard(request,
|
251
|
-
target,
|
252
|
-
options=(),
|
253
|
-
channel_credentials=None,
|
254
|
-
call_credentials=None,
|
255
|
-
insecure=False,
|
256
|
-
compression=None,
|
257
|
-
wait_for_ready=None,
|
258
|
-
timeout=None,
|
259
|
-
metadata=None):
|
260
|
-
return grpc.experimental.unary_unary(
|
261
|
-
request,
|
262
|
-
target,
|
263
|
-
'/nodewriter.NodeWriter/NewShard',
|
264
|
-
nucliadb__protos_dot_nodewriter__pb2.NewShardRequest.SerializeToString,
|
265
|
-
nucliadb__protos_dot_noderesources__pb2.ShardCreated.FromString,
|
266
|
-
options,
|
267
|
-
channel_credentials,
|
268
|
-
insecure,
|
269
|
-
call_credentials,
|
270
|
-
compression,
|
271
|
-
wait_for_ready,
|
272
|
-
timeout,
|
273
|
-
metadata,
|
274
|
-
_registered_method=True)
|
275
|
-
|
276
|
-
@staticmethod
|
277
|
-
def DeleteShard(request,
|
278
|
-
target,
|
279
|
-
options=(),
|
280
|
-
channel_credentials=None,
|
281
|
-
call_credentials=None,
|
282
|
-
insecure=False,
|
283
|
-
compression=None,
|
284
|
-
wait_for_ready=None,
|
285
|
-
timeout=None,
|
286
|
-
metadata=None):
|
287
|
-
return grpc.experimental.unary_unary(
|
288
|
-
request,
|
289
|
-
target,
|
290
|
-
'/nodewriter.NodeWriter/DeleteShard',
|
291
|
-
nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
292
|
-
nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
|
293
|
-
options,
|
294
|
-
channel_credentials,
|
295
|
-
insecure,
|
296
|
-
call_credentials,
|
297
|
-
compression,
|
298
|
-
wait_for_ready,
|
299
|
-
timeout,
|
300
|
-
metadata,
|
301
|
-
_registered_method=True)
|
302
|
-
|
303
|
-
@staticmethod
|
304
|
-
def ListShards(request,
|
305
|
-
target,
|
306
|
-
options=(),
|
307
|
-
channel_credentials=None,
|
308
|
-
call_credentials=None,
|
309
|
-
insecure=False,
|
310
|
-
compression=None,
|
311
|
-
wait_for_ready=None,
|
312
|
-
timeout=None,
|
313
|
-
metadata=None):
|
314
|
-
return grpc.experimental.unary_unary(
|
315
|
-
request,
|
316
|
-
target,
|
317
|
-
'/nodewriter.NodeWriter/ListShards',
|
318
|
-
nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
319
|
-
nucliadb__protos_dot_noderesources__pb2.ShardIds.FromString,
|
320
|
-
options,
|
321
|
-
channel_credentials,
|
322
|
-
insecure,
|
323
|
-
call_credentials,
|
324
|
-
compression,
|
325
|
-
wait_for_ready,
|
326
|
-
timeout,
|
327
|
-
metadata,
|
328
|
-
_registered_method=True)
|
329
|
-
|
330
|
-
@staticmethod
|
331
|
-
def GC(request,
|
332
|
-
target,
|
333
|
-
options=(),
|
334
|
-
channel_credentials=None,
|
335
|
-
call_credentials=None,
|
336
|
-
insecure=False,
|
337
|
-
compression=None,
|
338
|
-
wait_for_ready=None,
|
339
|
-
timeout=None,
|
340
|
-
metadata=None):
|
341
|
-
return grpc.experimental.unary_unary(
|
342
|
-
request,
|
343
|
-
target,
|
344
|
-
'/nodewriter.NodeWriter/GC',
|
345
|
-
nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
346
|
-
nucliadb__protos_dot_nodewriter__pb2.GarbageCollectorResponse.FromString,
|
347
|
-
options,
|
348
|
-
channel_credentials,
|
349
|
-
insecure,
|
350
|
-
call_credentials,
|
351
|
-
compression,
|
352
|
-
wait_for_ready,
|
353
|
-
timeout,
|
354
|
-
metadata,
|
355
|
-
_registered_method=True)
|
356
|
-
|
357
|
-
@staticmethod
|
358
|
-
def Merge(request,
|
359
|
-
target,
|
360
|
-
options=(),
|
361
|
-
channel_credentials=None,
|
362
|
-
call_credentials=None,
|
363
|
-
insecure=False,
|
364
|
-
compression=None,
|
365
|
-
wait_for_ready=None,
|
366
|
-
timeout=None,
|
367
|
-
metadata=None):
|
368
|
-
return grpc.experimental.unary_unary(
|
369
|
-
request,
|
370
|
-
target,
|
371
|
-
'/nodewriter.NodeWriter/Merge',
|
372
|
-
nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
373
|
-
nucliadb__protos_dot_nodewriter__pb2.MergeResponse.FromString,
|
374
|
-
options,
|
375
|
-
channel_credentials,
|
376
|
-
insecure,
|
377
|
-
call_credentials,
|
378
|
-
compression,
|
379
|
-
wait_for_ready,
|
380
|
-
timeout,
|
381
|
-
metadata,
|
382
|
-
_registered_method=True)
|
383
|
-
|
384
|
-
@staticmethod
|
385
|
-
def SetResource(request,
|
386
|
-
target,
|
387
|
-
options=(),
|
388
|
-
channel_credentials=None,
|
389
|
-
call_credentials=None,
|
390
|
-
insecure=False,
|
391
|
-
compression=None,
|
392
|
-
wait_for_ready=None,
|
393
|
-
timeout=None,
|
394
|
-
metadata=None):
|
395
|
-
return grpc.experimental.unary_unary(
|
396
|
-
request,
|
397
|
-
target,
|
398
|
-
'/nodewriter.NodeWriter/SetResource',
|
399
|
-
nucliadb__protos_dot_noderesources__pb2.Resource.SerializeToString,
|
400
|
-
nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
401
|
-
options,
|
402
|
-
channel_credentials,
|
403
|
-
insecure,
|
404
|
-
call_credentials,
|
405
|
-
compression,
|
406
|
-
wait_for_ready,
|
407
|
-
timeout,
|
408
|
-
metadata,
|
409
|
-
_registered_method=True)
|
410
|
-
|
411
|
-
@staticmethod
|
412
|
-
def SetResourceFromStorage(request,
|
413
|
-
target,
|
414
|
-
options=(),
|
415
|
-
channel_credentials=None,
|
416
|
-
call_credentials=None,
|
417
|
-
insecure=False,
|
418
|
-
compression=None,
|
419
|
-
wait_for_ready=None,
|
420
|
-
timeout=None,
|
421
|
-
metadata=None):
|
422
|
-
return grpc.experimental.unary_unary(
|
423
|
-
request,
|
424
|
-
target,
|
425
|
-
'/nodewriter.NodeWriter/SetResourceFromStorage',
|
426
|
-
nucliadb__protos_dot_nodewriter__pb2.IndexMessage.SerializeToString,
|
427
|
-
nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
428
|
-
options,
|
429
|
-
channel_credentials,
|
430
|
-
insecure,
|
431
|
-
call_credentials,
|
432
|
-
compression,
|
433
|
-
wait_for_ready,
|
434
|
-
timeout,
|
435
|
-
metadata,
|
436
|
-
_registered_method=True)
|
437
|
-
|
438
|
-
@staticmethod
|
439
|
-
def RemoveResource(request,
|
440
|
-
target,
|
441
|
-
options=(),
|
442
|
-
channel_credentials=None,
|
443
|
-
call_credentials=None,
|
444
|
-
insecure=False,
|
445
|
-
compression=None,
|
446
|
-
wait_for_ready=None,
|
447
|
-
timeout=None,
|
448
|
-
metadata=None):
|
449
|
-
return grpc.experimental.unary_unary(
|
450
|
-
request,
|
451
|
-
target,
|
452
|
-
'/nodewriter.NodeWriter/RemoveResource',
|
453
|
-
nucliadb__protos_dot_noderesources__pb2.ResourceID.SerializeToString,
|
454
|
-
nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
455
|
-
options,
|
456
|
-
channel_credentials,
|
457
|
-
insecure,
|
458
|
-
call_credentials,
|
459
|
-
compression,
|
460
|
-
wait_for_ready,
|
461
|
-
timeout,
|
462
|
-
metadata,
|
463
|
-
_registered_method=True)
|
464
|
-
|
465
|
-
@staticmethod
|
466
|
-
def AddVectorSet(request,
|
467
|
-
target,
|
468
|
-
options=(),
|
469
|
-
channel_credentials=None,
|
470
|
-
call_credentials=None,
|
471
|
-
insecure=False,
|
472
|
-
compression=None,
|
473
|
-
wait_for_ready=None,
|
474
|
-
timeout=None,
|
475
|
-
metadata=None):
|
476
|
-
return grpc.experimental.unary_unary(
|
477
|
-
request,
|
478
|
-
target,
|
479
|
-
'/nodewriter.NodeWriter/AddVectorSet',
|
480
|
-
nucliadb__protos_dot_nodewriter__pb2.NewVectorSetRequest.SerializeToString,
|
481
|
-
nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
482
|
-
options,
|
483
|
-
channel_credentials,
|
484
|
-
insecure,
|
485
|
-
call_credentials,
|
486
|
-
compression,
|
487
|
-
wait_for_ready,
|
488
|
-
timeout,
|
489
|
-
metadata,
|
490
|
-
_registered_method=True)
|
491
|
-
|
492
|
-
@staticmethod
|
493
|
-
def RemoveVectorSet(request,
|
494
|
-
target,
|
495
|
-
options=(),
|
496
|
-
channel_credentials=None,
|
497
|
-
call_credentials=None,
|
498
|
-
insecure=False,
|
499
|
-
compression=None,
|
500
|
-
wait_for_ready=None,
|
501
|
-
timeout=None,
|
502
|
-
metadata=None):
|
503
|
-
return grpc.experimental.unary_unary(
|
504
|
-
request,
|
505
|
-
target,
|
506
|
-
'/nodewriter.NodeWriter/RemoveVectorSet',
|
507
|
-
nucliadb__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
|
508
|
-
nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
509
|
-
options,
|
510
|
-
channel_credentials,
|
511
|
-
insecure,
|
512
|
-
call_credentials,
|
513
|
-
compression,
|
514
|
-
wait_for_ready,
|
515
|
-
timeout,
|
516
|
-
metadata,
|
517
|
-
_registered_method=True)
|
518
|
-
|
519
|
-
@staticmethod
|
520
|
-
def ListVectorSets(request,
|
521
|
-
target,
|
522
|
-
options=(),
|
523
|
-
channel_credentials=None,
|
524
|
-
call_credentials=None,
|
525
|
-
insecure=False,
|
526
|
-
compression=None,
|
527
|
-
wait_for_ready=None,
|
528
|
-
timeout=None,
|
529
|
-
metadata=None):
|
530
|
-
return grpc.experimental.unary_unary(
|
531
|
-
request,
|
532
|
-
target,
|
533
|
-
'/nodewriter.NodeWriter/ListVectorSets',
|
534
|
-
nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
535
|
-
nucliadb__protos_dot_noderesources__pb2.VectorSetList.FromString,
|
536
|
-
options,
|
537
|
-
channel_credentials,
|
538
|
-
insecure,
|
539
|
-
call_credentials,
|
540
|
-
compression,
|
541
|
-
wait_for_ready,
|
542
|
-
timeout,
|
543
|
-
metadata,
|
544
|
-
_registered_method=True)
|
545
|
-
|
546
|
-
@staticmethod
|
547
|
-
def GetMetadata(request,
|
548
|
-
target,
|
549
|
-
options=(),
|
550
|
-
channel_credentials=None,
|
551
|
-
call_credentials=None,
|
552
|
-
insecure=False,
|
553
|
-
compression=None,
|
554
|
-
wait_for_ready=None,
|
555
|
-
timeout=None,
|
556
|
-
metadata=None):
|
557
|
-
return grpc.experimental.unary_unary(
|
558
|
-
request,
|
559
|
-
target,
|
560
|
-
'/nodewriter.NodeWriter/GetMetadata',
|
561
|
-
nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
562
|
-
nucliadb__protos_dot_noderesources__pb2.NodeMetadata.FromString,
|
563
|
-
options,
|
564
|
-
channel_credentials,
|
565
|
-
insecure,
|
566
|
-
call_credentials,
|
567
|
-
compression,
|
568
|
-
wait_for_ready,
|
569
|
-
timeout,
|
570
|
-
metadata,
|
571
|
-
_registered_method=True)
|