nucliadb-protos 6.3.6.post4063__py3-none-any.whl → 6.10.0.post5705__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of nucliadb-protos might be problematic. Click here for more details.

Files changed (44) hide show
  1. .gitignore +1 -0
  2. build.py +56 -0
  3. nucliadb_protos/audit_pb2.py +43 -46
  4. nucliadb_protos/audit_pb2.pyi +64 -13
  5. nucliadb_protos/backups_pb2.py +13 -3
  6. nucliadb_protos/backups_pb2_grpc.py +20 -0
  7. nucliadb_protos/dataset_pb2.py +13 -3
  8. nucliadb_protos/dataset_pb2.pyi +3 -0
  9. nucliadb_protos/kb_usage_pb2.py +20 -10
  10. nucliadb_protos/kb_usage_pb2.pyi +2 -0
  11. nucliadb_protos/knowledgebox_pb2.py +116 -114
  12. nucliadb_protos/knowledgebox_pb2.pyi +49 -28
  13. nucliadb_protos/migrations_pb2.py +13 -3
  14. nucliadb_protos/resources_pb2.py +239 -219
  15. nucliadb_protos/resources_pb2.pyi +100 -15
  16. nucliadb_protos/standalone_pb2.py +13 -3
  17. nucliadb_protos/standalone_pb2_grpc.py +49 -8
  18. nucliadb_protos/train_pb2.py +18 -40
  19. nucliadb_protos/train_pb2.pyi +6 -8
  20. nucliadb_protos/train_pb2_grpc.py +133 -32
  21. nucliadb_protos/train_pb2_grpc.pyi +6 -8
  22. nucliadb_protos/utils_pb2.py +18 -10
  23. nucliadb_protos/utils_pb2.pyi +0 -15
  24. nucliadb_protos/writer_pb2.py +140 -176
  25. nucliadb_protos/writer_pb2.pyi +40 -311
  26. nucliadb_protos/writer_pb2_grpc.py +204 -185
  27. nucliadb_protos/writer_pb2_grpc.pyi +11 -99
  28. {nucliadb_protos-6.3.6.post4063.dist-info → nucliadb_protos-6.10.0.post5705.dist-info}/METADATA +10 -10
  29. nucliadb_protos-6.10.0.post5705.dist-info/RECORD +37 -0
  30. {nucliadb_protos-6.3.6.post4063.dist-info → nucliadb_protos-6.10.0.post5705.dist-info}/WHEEL +1 -2
  31. nucliadb_protos-6.10.0.post5705.dist-info/entry_points.txt +4 -0
  32. nucliadb_protos/__init__.py +0 -0
  33. nucliadb_protos/nodereader_pb2.py +0 -187
  34. nucliadb_protos/nodereader_pb2.pyi +0 -1715
  35. nucliadb_protos/nodereader_pb2_grpc.py +0 -438
  36. nucliadb_protos/nodereader_pb2_grpc.pyi +0 -288
  37. nucliadb_protos/noderesources_pb2.py +0 -145
  38. nucliadb_protos/noderesources_pb2.pyi +0 -993
  39. nucliadb_protos/nodewriter_pb2.py +0 -80
  40. nucliadb_protos/nodewriter_pb2.pyi +0 -348
  41. nucliadb_protos/nodewriter_pb2_grpc.py +0 -430
  42. nucliadb_protos/nodewriter_pb2_grpc.pyi +0 -256
  43. nucliadb_protos-6.3.6.post4063.dist-info/RECORD +0 -46
  44. nucliadb_protos-6.3.6.post4063.dist-info/top_level.txt +0 -1
@@ -1,430 +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
-
5
- from nucliadb_protos import noderesources_pb2 as nucliadb__protos_dot_noderesources__pb2
6
- from nucliadb_protos import nodewriter_pb2 as nucliadb__protos_dot_nodewriter__pb2
7
-
8
-
9
- class NodeWriterStub(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.NewShard = channel.unary_unary(
19
- '/nodewriter.NodeWriter/NewShard',
20
- request_serializer=nucliadb__protos_dot_nodewriter__pb2.NewShardRequest.SerializeToString,
21
- response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardCreated.FromString,
22
- )
23
- self.DeleteShard = channel.unary_unary(
24
- '/nodewriter.NodeWriter/DeleteShard',
25
- request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
26
- response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
27
- )
28
- self.ListShards = channel.unary_unary(
29
- '/nodewriter.NodeWriter/ListShards',
30
- request_serializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
31
- response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardIds.FromString,
32
- )
33
- self.GC = channel.unary_unary(
34
- '/nodewriter.NodeWriter/GC',
35
- request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
36
- response_deserializer=nucliadb__protos_dot_nodewriter__pb2.GarbageCollectorResponse.FromString,
37
- )
38
- self.Merge = channel.unary_unary(
39
- '/nodewriter.NodeWriter/Merge',
40
- request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
41
- response_deserializer=nucliadb__protos_dot_nodewriter__pb2.MergeResponse.FromString,
42
- )
43
- self.SetResource = channel.unary_unary(
44
- '/nodewriter.NodeWriter/SetResource',
45
- request_serializer=nucliadb__protos_dot_noderesources__pb2.Resource.SerializeToString,
46
- response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
47
- )
48
- self.SetResourceFromStorage = channel.unary_unary(
49
- '/nodewriter.NodeWriter/SetResourceFromStorage',
50
- request_serializer=nucliadb__protos_dot_nodewriter__pb2.IndexMessage.SerializeToString,
51
- response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
52
- )
53
- self.RemoveResource = channel.unary_unary(
54
- '/nodewriter.NodeWriter/RemoveResource',
55
- request_serializer=nucliadb__protos_dot_noderesources__pb2.ResourceID.SerializeToString,
56
- response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
57
- )
58
- self.AddVectorSet = channel.unary_unary(
59
- '/nodewriter.NodeWriter/AddVectorSet',
60
- request_serializer=nucliadb__protos_dot_nodewriter__pb2.NewVectorSetRequest.SerializeToString,
61
- response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
62
- )
63
- self.RemoveVectorSet = channel.unary_unary(
64
- '/nodewriter.NodeWriter/RemoveVectorSet',
65
- request_serializer=nucliadb__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
66
- response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
67
- )
68
- self.ListVectorSets = channel.unary_unary(
69
- '/nodewriter.NodeWriter/ListVectorSets',
70
- request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
71
- response_deserializer=nucliadb__protos_dot_noderesources__pb2.VectorSetList.FromString,
72
- )
73
- self.GetMetadata = channel.unary_unary(
74
- '/nodewriter.NodeWriter/GetMetadata',
75
- request_serializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
76
- response_deserializer=nucliadb__protos_dot_noderesources__pb2.NodeMetadata.FromString,
77
- )
78
-
79
-
80
- class NodeWriterServicer(object):
81
- """Missing associated documentation comment in .proto file."""
82
-
83
- def NewShard(self, request, context):
84
- """Missing associated documentation comment in .proto file."""
85
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
86
- context.set_details('Method not implemented!')
87
- raise NotImplementedError('Method not implemented!')
88
-
89
- def DeleteShard(self, request, context):
90
- """Missing associated documentation comment in .proto file."""
91
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
92
- context.set_details('Method not implemented!')
93
- raise NotImplementedError('Method not implemented!')
94
-
95
- def ListShards(self, request, context):
96
- """Missing associated documentation comment in .proto file."""
97
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
98
- context.set_details('Method not implemented!')
99
- raise NotImplementedError('Method not implemented!')
100
-
101
- def GC(self, request, context):
102
- """Missing associated documentation comment in .proto file."""
103
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
104
- context.set_details('Method not implemented!')
105
- raise NotImplementedError('Method not implemented!')
106
-
107
- def Merge(self, request, context):
108
- """Missing associated documentation comment in .proto file."""
109
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
110
- context.set_details('Method not implemented!')
111
- raise NotImplementedError('Method not implemented!')
112
-
113
- def SetResource(self, request, context):
114
- """Missing associated documentation comment in .proto file."""
115
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
116
- context.set_details('Method not implemented!')
117
- raise NotImplementedError('Method not implemented!')
118
-
119
- def SetResourceFromStorage(self, request, context):
120
- """Missing associated documentation comment in .proto file."""
121
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
122
- context.set_details('Method not implemented!')
123
- raise NotImplementedError('Method not implemented!')
124
-
125
- def RemoveResource(self, request, context):
126
- """Missing associated documentation comment in .proto file."""
127
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
128
- context.set_details('Method not implemented!')
129
- raise NotImplementedError('Method not implemented!')
130
-
131
- def AddVectorSet(self, request, context):
132
- """Missing associated documentation comment in .proto file."""
133
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
134
- context.set_details('Method not implemented!')
135
- raise NotImplementedError('Method not implemented!')
136
-
137
- def RemoveVectorSet(self, request, context):
138
- """Missing associated documentation comment in .proto file."""
139
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
140
- context.set_details('Method not implemented!')
141
- raise NotImplementedError('Method not implemented!')
142
-
143
- def ListVectorSets(self, request, context):
144
- """Missing associated documentation comment in .proto file."""
145
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
146
- context.set_details('Method not implemented!')
147
- raise NotImplementedError('Method not implemented!')
148
-
149
- def GetMetadata(self, request, context):
150
- """Missing associated documentation comment in .proto file."""
151
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
152
- context.set_details('Method not implemented!')
153
- raise NotImplementedError('Method not implemented!')
154
-
155
-
156
- def add_NodeWriterServicer_to_server(servicer, server):
157
- rpc_method_handlers = {
158
- 'NewShard': grpc.unary_unary_rpc_method_handler(
159
- servicer.NewShard,
160
- request_deserializer=nucliadb__protos_dot_nodewriter__pb2.NewShardRequest.FromString,
161
- response_serializer=nucliadb__protos_dot_noderesources__pb2.ShardCreated.SerializeToString,
162
- ),
163
- 'DeleteShard': grpc.unary_unary_rpc_method_handler(
164
- servicer.DeleteShard,
165
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
166
- response_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
167
- ),
168
- 'ListShards': grpc.unary_unary_rpc_method_handler(
169
- servicer.ListShards,
170
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.FromString,
171
- response_serializer=nucliadb__protos_dot_noderesources__pb2.ShardIds.SerializeToString,
172
- ),
173
- 'GC': grpc.unary_unary_rpc_method_handler(
174
- servicer.GC,
175
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
176
- response_serializer=nucliadb__protos_dot_nodewriter__pb2.GarbageCollectorResponse.SerializeToString,
177
- ),
178
- 'Merge': grpc.unary_unary_rpc_method_handler(
179
- servicer.Merge,
180
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
181
- response_serializer=nucliadb__protos_dot_nodewriter__pb2.MergeResponse.SerializeToString,
182
- ),
183
- 'SetResource': grpc.unary_unary_rpc_method_handler(
184
- servicer.SetResource,
185
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.Resource.FromString,
186
- response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
187
- ),
188
- 'SetResourceFromStorage': grpc.unary_unary_rpc_method_handler(
189
- servicer.SetResourceFromStorage,
190
- request_deserializer=nucliadb__protos_dot_nodewriter__pb2.IndexMessage.FromString,
191
- response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
192
- ),
193
- 'RemoveResource': grpc.unary_unary_rpc_method_handler(
194
- servicer.RemoveResource,
195
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.ResourceID.FromString,
196
- response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
197
- ),
198
- 'AddVectorSet': grpc.unary_unary_rpc_method_handler(
199
- servicer.AddVectorSet,
200
- request_deserializer=nucliadb__protos_dot_nodewriter__pb2.NewVectorSetRequest.FromString,
201
- response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
202
- ),
203
- 'RemoveVectorSet': grpc.unary_unary_rpc_method_handler(
204
- servicer.RemoveVectorSet,
205
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.VectorSetID.FromString,
206
- response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
207
- ),
208
- 'ListVectorSets': grpc.unary_unary_rpc_method_handler(
209
- servicer.ListVectorSets,
210
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
211
- response_serializer=nucliadb__protos_dot_noderesources__pb2.VectorSetList.SerializeToString,
212
- ),
213
- 'GetMetadata': grpc.unary_unary_rpc_method_handler(
214
- servicer.GetMetadata,
215
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.FromString,
216
- response_serializer=nucliadb__protos_dot_noderesources__pb2.NodeMetadata.SerializeToString,
217
- ),
218
- }
219
- generic_handler = grpc.method_handlers_generic_handler(
220
- 'nodewriter.NodeWriter', rpc_method_handlers)
221
- server.add_generic_rpc_handlers((generic_handler,))
222
-
223
-
224
- # This class is part of an EXPERIMENTAL API.
225
- class NodeWriter(object):
226
- """Missing associated documentation comment in .proto file."""
227
-
228
- @staticmethod
229
- def NewShard(request,
230
- target,
231
- options=(),
232
- channel_credentials=None,
233
- call_credentials=None,
234
- insecure=False,
235
- compression=None,
236
- wait_for_ready=None,
237
- timeout=None,
238
- metadata=None):
239
- return grpc.experimental.unary_unary(request, target, '/nodewriter.NodeWriter/NewShard',
240
- nucliadb__protos_dot_nodewriter__pb2.NewShardRequest.SerializeToString,
241
- nucliadb__protos_dot_noderesources__pb2.ShardCreated.FromString,
242
- options, channel_credentials,
243
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
244
-
245
- @staticmethod
246
- def DeleteShard(request,
247
- target,
248
- options=(),
249
- channel_credentials=None,
250
- call_credentials=None,
251
- insecure=False,
252
- compression=None,
253
- wait_for_ready=None,
254
- timeout=None,
255
- metadata=None):
256
- return grpc.experimental.unary_unary(request, target, '/nodewriter.NodeWriter/DeleteShard',
257
- nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
258
- nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
259
- options, channel_credentials,
260
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
261
-
262
- @staticmethod
263
- def ListShards(request,
264
- target,
265
- options=(),
266
- channel_credentials=None,
267
- call_credentials=None,
268
- insecure=False,
269
- compression=None,
270
- wait_for_ready=None,
271
- timeout=None,
272
- metadata=None):
273
- return grpc.experimental.unary_unary(request, target, '/nodewriter.NodeWriter/ListShards',
274
- nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
275
- nucliadb__protos_dot_noderesources__pb2.ShardIds.FromString,
276
- options, channel_credentials,
277
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
278
-
279
- @staticmethod
280
- def GC(request,
281
- target,
282
- options=(),
283
- channel_credentials=None,
284
- call_credentials=None,
285
- insecure=False,
286
- compression=None,
287
- wait_for_ready=None,
288
- timeout=None,
289
- metadata=None):
290
- return grpc.experimental.unary_unary(request, target, '/nodewriter.NodeWriter/GC',
291
- nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
292
- nucliadb__protos_dot_nodewriter__pb2.GarbageCollectorResponse.FromString,
293
- options, channel_credentials,
294
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
295
-
296
- @staticmethod
297
- def Merge(request,
298
- target,
299
- options=(),
300
- channel_credentials=None,
301
- call_credentials=None,
302
- insecure=False,
303
- compression=None,
304
- wait_for_ready=None,
305
- timeout=None,
306
- metadata=None):
307
- return grpc.experimental.unary_unary(request, target, '/nodewriter.NodeWriter/Merge',
308
- nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
309
- nucliadb__protos_dot_nodewriter__pb2.MergeResponse.FromString,
310
- options, channel_credentials,
311
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
312
-
313
- @staticmethod
314
- def SetResource(request,
315
- target,
316
- options=(),
317
- channel_credentials=None,
318
- call_credentials=None,
319
- insecure=False,
320
- compression=None,
321
- wait_for_ready=None,
322
- timeout=None,
323
- metadata=None):
324
- return grpc.experimental.unary_unary(request, target, '/nodewriter.NodeWriter/SetResource',
325
- nucliadb__protos_dot_noderesources__pb2.Resource.SerializeToString,
326
- nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
327
- options, channel_credentials,
328
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
329
-
330
- @staticmethod
331
- def SetResourceFromStorage(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(request, target, '/nodewriter.NodeWriter/SetResourceFromStorage',
342
- nucliadb__protos_dot_nodewriter__pb2.IndexMessage.SerializeToString,
343
- nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
344
- options, channel_credentials,
345
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
346
-
347
- @staticmethod
348
- def RemoveResource(request,
349
- target,
350
- options=(),
351
- channel_credentials=None,
352
- call_credentials=None,
353
- insecure=False,
354
- compression=None,
355
- wait_for_ready=None,
356
- timeout=None,
357
- metadata=None):
358
- return grpc.experimental.unary_unary(request, target, '/nodewriter.NodeWriter/RemoveResource',
359
- nucliadb__protos_dot_noderesources__pb2.ResourceID.SerializeToString,
360
- nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
361
- options, channel_credentials,
362
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
363
-
364
- @staticmethod
365
- def AddVectorSet(request,
366
- target,
367
- options=(),
368
- channel_credentials=None,
369
- call_credentials=None,
370
- insecure=False,
371
- compression=None,
372
- wait_for_ready=None,
373
- timeout=None,
374
- metadata=None):
375
- return grpc.experimental.unary_unary(request, target, '/nodewriter.NodeWriter/AddVectorSet',
376
- nucliadb__protos_dot_nodewriter__pb2.NewVectorSetRequest.SerializeToString,
377
- nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
378
- options, channel_credentials,
379
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
380
-
381
- @staticmethod
382
- def RemoveVectorSet(request,
383
- target,
384
- options=(),
385
- channel_credentials=None,
386
- call_credentials=None,
387
- insecure=False,
388
- compression=None,
389
- wait_for_ready=None,
390
- timeout=None,
391
- metadata=None):
392
- return grpc.experimental.unary_unary(request, target, '/nodewriter.NodeWriter/RemoveVectorSet',
393
- nucliadb__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
394
- nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
395
- options, channel_credentials,
396
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
397
-
398
- @staticmethod
399
- def ListVectorSets(request,
400
- target,
401
- options=(),
402
- channel_credentials=None,
403
- call_credentials=None,
404
- insecure=False,
405
- compression=None,
406
- wait_for_ready=None,
407
- timeout=None,
408
- metadata=None):
409
- return grpc.experimental.unary_unary(request, target, '/nodewriter.NodeWriter/ListVectorSets',
410
- nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
411
- nucliadb__protos_dot_noderesources__pb2.VectorSetList.FromString,
412
- options, channel_credentials,
413
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
414
-
415
- @staticmethod
416
- def GetMetadata(request,
417
- target,
418
- options=(),
419
- channel_credentials=None,
420
- call_credentials=None,
421
- insecure=False,
422
- compression=None,
423
- wait_for_ready=None,
424
- timeout=None,
425
- metadata=None):
426
- return grpc.experimental.unary_unary(request, target, '/nodewriter.NodeWriter/GetMetadata',
427
- nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
428
- nucliadb__protos_dot_noderesources__pb2.NodeMetadata.FromString,
429
- options, channel_credentials,
430
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
@@ -1,256 +0,0 @@
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 nucliadb_protos.noderesources_pb2
11
- import nucliadb_protos.nodewriter_pb2
12
- import typing
13
- from nucliadb_protos.noderesources_pb2 import (
14
- EmptyQuery as EmptyQuery,
15
- EmptyResponse as EmptyResponse,
16
- IndexMetadata as IndexMetadata,
17
- IndexParagraph as IndexParagraph,
18
- IndexParagraphs as IndexParagraphs,
19
- IndexRelation as IndexRelation,
20
- IndexRelations as IndexRelations,
21
- NodeMetadata as NodeMetadata,
22
- ParagraphMetadata as ParagraphMetadata,
23
- Position as Position,
24
- Representation as Representation,
25
- Resource as Resource,
26
- ResourceID as ResourceID,
27
- SentenceMetadata as SentenceMetadata,
28
- Shard as Shard,
29
- ShardCreated as ShardCreated,
30
- ShardId as ShardId,
31
- ShardIds as ShardIds,
32
- ShardMetadata as ShardMetadata,
33
- StringList as StringList,
34
- TextInformation as TextInformation,
35
- VectorSentence as VectorSentence,
36
- VectorSetID as VectorSetID,
37
- VectorSetList as VectorSetList,
38
- VectorsetSentences as VectorsetSentences,
39
- )
40
-
41
- _T = typing.TypeVar("_T")
42
-
43
- class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
44
-
45
- class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
46
- ...
47
-
48
- class NodeWriterStub:
49
- def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
50
- NewShard: grpc.UnaryUnaryMultiCallable[
51
- nucliadb_protos.nodewriter_pb2.NewShardRequest,
52
- nucliadb_protos.noderesources_pb2.ShardCreated,
53
- ]
54
-
55
- DeleteShard: grpc.UnaryUnaryMultiCallable[
56
- nucliadb_protos.noderesources_pb2.ShardId,
57
- nucliadb_protos.noderesources_pb2.ShardId,
58
- ]
59
-
60
- ListShards: grpc.UnaryUnaryMultiCallable[
61
- nucliadb_protos.noderesources_pb2.EmptyQuery,
62
- nucliadb_protos.noderesources_pb2.ShardIds,
63
- ]
64
-
65
- GC: grpc.UnaryUnaryMultiCallable[
66
- nucliadb_protos.noderesources_pb2.ShardId,
67
- nucliadb_protos.nodewriter_pb2.GarbageCollectorResponse,
68
- ]
69
-
70
- Merge: grpc.UnaryUnaryMultiCallable[
71
- nucliadb_protos.noderesources_pb2.ShardId,
72
- nucliadb_protos.nodewriter_pb2.MergeResponse,
73
- ]
74
-
75
- SetResource: grpc.UnaryUnaryMultiCallable[
76
- nucliadb_protos.noderesources_pb2.Resource,
77
- nucliadb_protos.nodewriter_pb2.OpStatus,
78
- ]
79
-
80
- SetResourceFromStorage: grpc.UnaryUnaryMultiCallable[
81
- nucliadb_protos.nodewriter_pb2.IndexMessage,
82
- nucliadb_protos.nodewriter_pb2.OpStatus,
83
- ]
84
-
85
- RemoveResource: grpc.UnaryUnaryMultiCallable[
86
- nucliadb_protos.noderesources_pb2.ResourceID,
87
- nucliadb_protos.nodewriter_pb2.OpStatus,
88
- ]
89
-
90
- AddVectorSet: grpc.UnaryUnaryMultiCallable[
91
- nucliadb_protos.nodewriter_pb2.NewVectorSetRequest,
92
- nucliadb_protos.nodewriter_pb2.OpStatus,
93
- ]
94
-
95
- RemoveVectorSet: grpc.UnaryUnaryMultiCallable[
96
- nucliadb_protos.noderesources_pb2.VectorSetID,
97
- nucliadb_protos.nodewriter_pb2.OpStatus,
98
- ]
99
-
100
- ListVectorSets: grpc.UnaryUnaryMultiCallable[
101
- nucliadb_protos.noderesources_pb2.ShardId,
102
- nucliadb_protos.noderesources_pb2.VectorSetList,
103
- ]
104
-
105
- GetMetadata: grpc.UnaryUnaryMultiCallable[
106
- nucliadb_protos.noderesources_pb2.EmptyQuery,
107
- nucliadb_protos.noderesources_pb2.NodeMetadata,
108
- ]
109
-
110
- class NodeWriterAsyncStub:
111
- NewShard: grpc.aio.UnaryUnaryMultiCallable[
112
- nucliadb_protos.nodewriter_pb2.NewShardRequest,
113
- nucliadb_protos.noderesources_pb2.ShardCreated,
114
- ]
115
-
116
- DeleteShard: grpc.aio.UnaryUnaryMultiCallable[
117
- nucliadb_protos.noderesources_pb2.ShardId,
118
- nucliadb_protos.noderesources_pb2.ShardId,
119
- ]
120
-
121
- ListShards: grpc.aio.UnaryUnaryMultiCallable[
122
- nucliadb_protos.noderesources_pb2.EmptyQuery,
123
- nucliadb_protos.noderesources_pb2.ShardIds,
124
- ]
125
-
126
- GC: grpc.aio.UnaryUnaryMultiCallable[
127
- nucliadb_protos.noderesources_pb2.ShardId,
128
- nucliadb_protos.nodewriter_pb2.GarbageCollectorResponse,
129
- ]
130
-
131
- Merge: grpc.aio.UnaryUnaryMultiCallable[
132
- nucliadb_protos.noderesources_pb2.ShardId,
133
- nucliadb_protos.nodewriter_pb2.MergeResponse,
134
- ]
135
-
136
- SetResource: grpc.aio.UnaryUnaryMultiCallable[
137
- nucliadb_protos.noderesources_pb2.Resource,
138
- nucliadb_protos.nodewriter_pb2.OpStatus,
139
- ]
140
-
141
- SetResourceFromStorage: grpc.aio.UnaryUnaryMultiCallable[
142
- nucliadb_protos.nodewriter_pb2.IndexMessage,
143
- nucliadb_protos.nodewriter_pb2.OpStatus,
144
- ]
145
-
146
- RemoveResource: grpc.aio.UnaryUnaryMultiCallable[
147
- nucliadb_protos.noderesources_pb2.ResourceID,
148
- nucliadb_protos.nodewriter_pb2.OpStatus,
149
- ]
150
-
151
- AddVectorSet: grpc.aio.UnaryUnaryMultiCallable[
152
- nucliadb_protos.nodewriter_pb2.NewVectorSetRequest,
153
- nucliadb_protos.nodewriter_pb2.OpStatus,
154
- ]
155
-
156
- RemoveVectorSet: grpc.aio.UnaryUnaryMultiCallable[
157
- nucliadb_protos.noderesources_pb2.VectorSetID,
158
- nucliadb_protos.nodewriter_pb2.OpStatus,
159
- ]
160
-
161
- ListVectorSets: grpc.aio.UnaryUnaryMultiCallable[
162
- nucliadb_protos.noderesources_pb2.ShardId,
163
- nucliadb_protos.noderesources_pb2.VectorSetList,
164
- ]
165
-
166
- GetMetadata: grpc.aio.UnaryUnaryMultiCallable[
167
- nucliadb_protos.noderesources_pb2.EmptyQuery,
168
- nucliadb_protos.noderesources_pb2.NodeMetadata,
169
- ]
170
-
171
- class NodeWriterServicer(metaclass=abc.ABCMeta):
172
- @abc.abstractmethod
173
- def NewShard(
174
- self,
175
- request: nucliadb_protos.nodewriter_pb2.NewShardRequest,
176
- context: _ServicerContext,
177
- ) -> typing.Union[nucliadb_protos.noderesources_pb2.ShardCreated, collections.abc.Awaitable[nucliadb_protos.noderesources_pb2.ShardCreated]]: ...
178
-
179
- @abc.abstractmethod
180
- def DeleteShard(
181
- self,
182
- request: nucliadb_protos.noderesources_pb2.ShardId,
183
- context: _ServicerContext,
184
- ) -> typing.Union[nucliadb_protos.noderesources_pb2.ShardId, collections.abc.Awaitable[nucliadb_protos.noderesources_pb2.ShardId]]: ...
185
-
186
- @abc.abstractmethod
187
- def ListShards(
188
- self,
189
- request: nucliadb_protos.noderesources_pb2.EmptyQuery,
190
- context: _ServicerContext,
191
- ) -> typing.Union[nucliadb_protos.noderesources_pb2.ShardIds, collections.abc.Awaitable[nucliadb_protos.noderesources_pb2.ShardIds]]: ...
192
-
193
- @abc.abstractmethod
194
- def GC(
195
- self,
196
- request: nucliadb_protos.noderesources_pb2.ShardId,
197
- context: _ServicerContext,
198
- ) -> typing.Union[nucliadb_protos.nodewriter_pb2.GarbageCollectorResponse, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.GarbageCollectorResponse]]: ...
199
-
200
- @abc.abstractmethod
201
- def Merge(
202
- self,
203
- request: nucliadb_protos.noderesources_pb2.ShardId,
204
- context: _ServicerContext,
205
- ) -> typing.Union[nucliadb_protos.nodewriter_pb2.MergeResponse, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.MergeResponse]]: ...
206
-
207
- @abc.abstractmethod
208
- def SetResource(
209
- self,
210
- request: nucliadb_protos.noderesources_pb2.Resource,
211
- context: _ServicerContext,
212
- ) -> typing.Union[nucliadb_protos.nodewriter_pb2.OpStatus, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.OpStatus]]: ...
213
-
214
- @abc.abstractmethod
215
- def SetResourceFromStorage(
216
- self,
217
- request: nucliadb_protos.nodewriter_pb2.IndexMessage,
218
- context: _ServicerContext,
219
- ) -> typing.Union[nucliadb_protos.nodewriter_pb2.OpStatus, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.OpStatus]]: ...
220
-
221
- @abc.abstractmethod
222
- def RemoveResource(
223
- self,
224
- request: nucliadb_protos.noderesources_pb2.ResourceID,
225
- context: _ServicerContext,
226
- ) -> typing.Union[nucliadb_protos.nodewriter_pb2.OpStatus, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.OpStatus]]: ...
227
-
228
- @abc.abstractmethod
229
- def AddVectorSet(
230
- self,
231
- request: nucliadb_protos.nodewriter_pb2.NewVectorSetRequest,
232
- context: _ServicerContext,
233
- ) -> typing.Union[nucliadb_protos.nodewriter_pb2.OpStatus, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.OpStatus]]: ...
234
-
235
- @abc.abstractmethod
236
- def RemoveVectorSet(
237
- self,
238
- request: nucliadb_protos.noderesources_pb2.VectorSetID,
239
- context: _ServicerContext,
240
- ) -> typing.Union[nucliadb_protos.nodewriter_pb2.OpStatus, collections.abc.Awaitable[nucliadb_protos.nodewriter_pb2.OpStatus]]: ...
241
-
242
- @abc.abstractmethod
243
- def ListVectorSets(
244
- self,
245
- request: nucliadb_protos.noderesources_pb2.ShardId,
246
- context: _ServicerContext,
247
- ) -> typing.Union[nucliadb_protos.noderesources_pb2.VectorSetList, collections.abc.Awaitable[nucliadb_protos.noderesources_pb2.VectorSetList]]: ...
248
-
249
- @abc.abstractmethod
250
- def GetMetadata(
251
- self,
252
- request: nucliadb_protos.noderesources_pb2.EmptyQuery,
253
- context: _ServicerContext,
254
- ) -> typing.Union[nucliadb_protos.noderesources_pb2.NodeMetadata, collections.abc.Awaitable[nucliadb_protos.noderesources_pb2.NodeMetadata]]: ...
255
-
256
- def add_NodeWriterServicer_to_server(servicer: NodeWriterServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...