nucliadb-protos 6.3.5.post4044__py3-none-any.whl → 6.9.3.post5290__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 (42) 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 +2 -0
  9. nucliadb_protos/kb_usage_pb2.py +14 -4
  10. nucliadb_protos/knowledgebox_pb2.py +117 -113
  11. nucliadb_protos/knowledgebox_pb2.pyi +49 -21
  12. nucliadb_protos/migrations_pb2.py +13 -3
  13. nucliadb_protos/resources_pb2.py +237 -219
  14. nucliadb_protos/resources_pb2.pyi +76 -10
  15. nucliadb_protos/standalone_pb2.py +13 -3
  16. nucliadb_protos/standalone_pb2_grpc.py +49 -8
  17. nucliadb_protos/train_pb2.py +18 -40
  18. nucliadb_protos/train_pb2.pyi +5 -1
  19. nucliadb_protos/train_pb2_grpc.py +133 -32
  20. nucliadb_protos/train_pb2_grpc.pyi +5 -1
  21. nucliadb_protos/utils_pb2.py +17 -7
  22. nucliadb_protos/writer_pb2.py +166 -174
  23. nucliadb_protos/writer_pb2.pyi +38 -57
  24. nucliadb_protos/writer_pb2_grpc.py +259 -68
  25. nucliadb_protos/writer_pb2_grpc.pyi +6 -27
  26. {nucliadb_protos-6.3.5.post4044.dist-info → nucliadb_protos-6.9.3.post5290.dist-info}/METADATA +9 -9
  27. nucliadb_protos-6.9.3.post5290.dist-info/RECORD +37 -0
  28. {nucliadb_protos-6.3.5.post4044.dist-info → nucliadb_protos-6.9.3.post5290.dist-info}/WHEEL +1 -2
  29. nucliadb_protos-6.9.3.post5290.dist-info/entry_points.txt +4 -0
  30. nucliadb_protos/__init__.py +0 -0
  31. nucliadb_protos/nodereader_pb2.py +0 -187
  32. nucliadb_protos/nodereader_pb2.pyi +0 -1715
  33. nucliadb_protos/nodereader_pb2_grpc.py +0 -438
  34. nucliadb_protos/nodereader_pb2_grpc.pyi +0 -288
  35. nucliadb_protos/noderesources_pb2.py +0 -145
  36. nucliadb_protos/noderesources_pb2.pyi +0 -993
  37. nucliadb_protos/nodewriter_pb2.py +0 -80
  38. nucliadb_protos/nodewriter_pb2.pyi +0 -348
  39. nucliadb_protos/nodewriter_pb2_grpc.py +0 -430
  40. nucliadb_protos/nodewriter_pb2_grpc.pyi +0 -256
  41. nucliadb_protos-6.3.5.post4044.dist-info/RECORD +0 -46
  42. nucliadb_protos-6.3.5.post4044.dist-info/top_level.txt +0 -1
@@ -1,438 +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 nodereader_pb2 as nucliadb__protos_dot_nodereader__pb2
6
- from nucliadb_protos import noderesources_pb2 as nucliadb__protos_dot_noderesources__pb2
7
-
8
-
9
- class NodeReaderStub(object):
10
- """Implemented at nucliadb_object_storage
11
-
12
- """
13
-
14
- def __init__(self, channel):
15
- """Constructor.
16
-
17
- Args:
18
- channel: A grpc.Channel.
19
- """
20
- self.GetShard = channel.unary_unary(
21
- '/nodereader.NodeReader/GetShard',
22
- request_serializer=nucliadb__protos_dot_nodereader__pb2.GetShardRequest.SerializeToString,
23
- response_deserializer=nucliadb__protos_dot_noderesources__pb2.Shard.FromString,
24
- )
25
- self.DocumentIds = channel.unary_unary(
26
- '/nodereader.NodeReader/DocumentIds',
27
- request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
28
- response_deserializer=nucliadb__protos_dot_nodereader__pb2.IdCollection.FromString,
29
- )
30
- self.ParagraphIds = channel.unary_unary(
31
- '/nodereader.NodeReader/ParagraphIds',
32
- request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
33
- response_deserializer=nucliadb__protos_dot_nodereader__pb2.IdCollection.FromString,
34
- )
35
- self.VectorIds = channel.unary_unary(
36
- '/nodereader.NodeReader/VectorIds',
37
- request_serializer=nucliadb__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
38
- response_deserializer=nucliadb__protos_dot_nodereader__pb2.IdCollection.FromString,
39
- )
40
- self.RelationIds = channel.unary_unary(
41
- '/nodereader.NodeReader/RelationIds',
42
- request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
43
- response_deserializer=nucliadb__protos_dot_nodereader__pb2.IdCollection.FromString,
44
- )
45
- self.RelationEdges = channel.unary_unary(
46
- '/nodereader.NodeReader/RelationEdges',
47
- request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
48
- response_deserializer=nucliadb__protos_dot_nodereader__pb2.EdgeList.FromString,
49
- )
50
- self.Search = channel.unary_unary(
51
- '/nodereader.NodeReader/Search',
52
- request_serializer=nucliadb__protos_dot_nodereader__pb2.SearchRequest.SerializeToString,
53
- response_deserializer=nucliadb__protos_dot_nodereader__pb2.SearchResponse.FromString,
54
- )
55
- self.Suggest = channel.unary_unary(
56
- '/nodereader.NodeReader/Suggest',
57
- request_serializer=nucliadb__protos_dot_nodereader__pb2.SuggestRequest.SerializeToString,
58
- response_deserializer=nucliadb__protos_dot_nodereader__pb2.SuggestResponse.FromString,
59
- )
60
- self.Paragraphs = channel.unary_stream(
61
- '/nodereader.NodeReader/Paragraphs',
62
- request_serializer=nucliadb__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
63
- response_deserializer=nucliadb__protos_dot_nodereader__pb2.ParagraphItem.FromString,
64
- )
65
- self.Documents = channel.unary_stream(
66
- '/nodereader.NodeReader/Documents',
67
- request_serializer=nucliadb__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
68
- response_deserializer=nucliadb__protos_dot_nodereader__pb2.DocumentItem.FromString,
69
- )
70
- self.GetShardFiles = channel.unary_unary(
71
- '/nodereader.NodeReader/GetShardFiles',
72
- request_serializer=nucliadb__protos_dot_nodereader__pb2.GetShardFilesRequest.SerializeToString,
73
- response_deserializer=nucliadb__protos_dot_nodereader__pb2.ShardFileList.FromString,
74
- )
75
- self.DownloadShardFile = channel.unary_stream(
76
- '/nodereader.NodeReader/DownloadShardFile',
77
- request_serializer=nucliadb__protos_dot_nodereader__pb2.DownloadShardFileRequest.SerializeToString,
78
- response_deserializer=nucliadb__protos_dot_nodereader__pb2.ShardFileChunk.FromString,
79
- )
80
-
81
-
82
- class NodeReaderServicer(object):
83
- """Implemented at nucliadb_object_storage
84
-
85
- """
86
-
87
- def GetShard(self, request, context):
88
- """Missing associated documentation comment in .proto file."""
89
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
90
- context.set_details('Method not implemented!')
91
- raise NotImplementedError('Method not implemented!')
92
-
93
- def DocumentIds(self, request, context):
94
- """Missing associated documentation comment in .proto file."""
95
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
96
- context.set_details('Method not implemented!')
97
- raise NotImplementedError('Method not implemented!')
98
-
99
- def ParagraphIds(self, request, context):
100
- """Missing associated documentation comment in .proto file."""
101
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
102
- context.set_details('Method not implemented!')
103
- raise NotImplementedError('Method not implemented!')
104
-
105
- def VectorIds(self, request, context):
106
- """Missing associated documentation comment in .proto file."""
107
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
108
- context.set_details('Method not implemented!')
109
- raise NotImplementedError('Method not implemented!')
110
-
111
- def RelationIds(self, request, context):
112
- """Missing associated documentation comment in .proto file."""
113
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
114
- context.set_details('Method not implemented!')
115
- raise NotImplementedError('Method not implemented!')
116
-
117
- def RelationEdges(self, request, context):
118
- """Missing associated documentation comment in .proto file."""
119
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
120
- context.set_details('Method not implemented!')
121
- raise NotImplementedError('Method not implemented!')
122
-
123
- def Search(self, request, context):
124
- """Missing associated documentation comment in .proto file."""
125
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
126
- context.set_details('Method not implemented!')
127
- raise NotImplementedError('Method not implemented!')
128
-
129
- def Suggest(self, request, context):
130
- """Missing associated documentation comment in .proto file."""
131
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
132
- context.set_details('Method not implemented!')
133
- raise NotImplementedError('Method not implemented!')
134
-
135
- def Paragraphs(self, request, context):
136
- """Streams
137
- """
138
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
139
- context.set_details('Method not implemented!')
140
- raise NotImplementedError('Method not implemented!')
141
-
142
- def Documents(self, request, context):
143
- """Missing associated documentation comment in .proto file."""
144
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
145
- context.set_details('Method not implemented!')
146
- raise NotImplementedError('Method not implemented!')
147
-
148
- def GetShardFiles(self, request, context):
149
- """Shard Download
150
- """
151
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
152
- context.set_details('Method not implemented!')
153
- raise NotImplementedError('Method not implemented!')
154
-
155
- def DownloadShardFile(self, request, context):
156
- """Missing associated documentation comment in .proto file."""
157
- context.set_code(grpc.StatusCode.UNIMPLEMENTED)
158
- context.set_details('Method not implemented!')
159
- raise NotImplementedError('Method not implemented!')
160
-
161
-
162
- def add_NodeReaderServicer_to_server(servicer, server):
163
- rpc_method_handlers = {
164
- 'GetShard': grpc.unary_unary_rpc_method_handler(
165
- servicer.GetShard,
166
- request_deserializer=nucliadb__protos_dot_nodereader__pb2.GetShardRequest.FromString,
167
- response_serializer=nucliadb__protos_dot_noderesources__pb2.Shard.SerializeToString,
168
- ),
169
- 'DocumentIds': grpc.unary_unary_rpc_method_handler(
170
- servicer.DocumentIds,
171
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
172
- response_serializer=nucliadb__protos_dot_nodereader__pb2.IdCollection.SerializeToString,
173
- ),
174
- 'ParagraphIds': grpc.unary_unary_rpc_method_handler(
175
- servicer.ParagraphIds,
176
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
177
- response_serializer=nucliadb__protos_dot_nodereader__pb2.IdCollection.SerializeToString,
178
- ),
179
- 'VectorIds': grpc.unary_unary_rpc_method_handler(
180
- servicer.VectorIds,
181
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.VectorSetID.FromString,
182
- response_serializer=nucliadb__protos_dot_nodereader__pb2.IdCollection.SerializeToString,
183
- ),
184
- 'RelationIds': grpc.unary_unary_rpc_method_handler(
185
- servicer.RelationIds,
186
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
187
- response_serializer=nucliadb__protos_dot_nodereader__pb2.IdCollection.SerializeToString,
188
- ),
189
- 'RelationEdges': grpc.unary_unary_rpc_method_handler(
190
- servicer.RelationEdges,
191
- request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
192
- response_serializer=nucliadb__protos_dot_nodereader__pb2.EdgeList.SerializeToString,
193
- ),
194
- 'Search': grpc.unary_unary_rpc_method_handler(
195
- servicer.Search,
196
- request_deserializer=nucliadb__protos_dot_nodereader__pb2.SearchRequest.FromString,
197
- response_serializer=nucliadb__protos_dot_nodereader__pb2.SearchResponse.SerializeToString,
198
- ),
199
- 'Suggest': grpc.unary_unary_rpc_method_handler(
200
- servicer.Suggest,
201
- request_deserializer=nucliadb__protos_dot_nodereader__pb2.SuggestRequest.FromString,
202
- response_serializer=nucliadb__protos_dot_nodereader__pb2.SuggestResponse.SerializeToString,
203
- ),
204
- 'Paragraphs': grpc.unary_stream_rpc_method_handler(
205
- servicer.Paragraphs,
206
- request_deserializer=nucliadb__protos_dot_nodereader__pb2.StreamRequest.FromString,
207
- response_serializer=nucliadb__protos_dot_nodereader__pb2.ParagraphItem.SerializeToString,
208
- ),
209
- 'Documents': grpc.unary_stream_rpc_method_handler(
210
- servicer.Documents,
211
- request_deserializer=nucliadb__protos_dot_nodereader__pb2.StreamRequest.FromString,
212
- response_serializer=nucliadb__protos_dot_nodereader__pb2.DocumentItem.SerializeToString,
213
- ),
214
- 'GetShardFiles': grpc.unary_unary_rpc_method_handler(
215
- servicer.GetShardFiles,
216
- request_deserializer=nucliadb__protos_dot_nodereader__pb2.GetShardFilesRequest.FromString,
217
- response_serializer=nucliadb__protos_dot_nodereader__pb2.ShardFileList.SerializeToString,
218
- ),
219
- 'DownloadShardFile': grpc.unary_stream_rpc_method_handler(
220
- servicer.DownloadShardFile,
221
- request_deserializer=nucliadb__protos_dot_nodereader__pb2.DownloadShardFileRequest.FromString,
222
- response_serializer=nucliadb__protos_dot_nodereader__pb2.ShardFileChunk.SerializeToString,
223
- ),
224
- }
225
- generic_handler = grpc.method_handlers_generic_handler(
226
- 'nodereader.NodeReader', rpc_method_handlers)
227
- server.add_generic_rpc_handlers((generic_handler,))
228
-
229
-
230
- # This class is part of an EXPERIMENTAL API.
231
- class NodeReader(object):
232
- """Implemented at nucliadb_object_storage
233
-
234
- """
235
-
236
- @staticmethod
237
- def GetShard(request,
238
- target,
239
- options=(),
240
- channel_credentials=None,
241
- call_credentials=None,
242
- insecure=False,
243
- compression=None,
244
- wait_for_ready=None,
245
- timeout=None,
246
- metadata=None):
247
- return grpc.experimental.unary_unary(request, target, '/nodereader.NodeReader/GetShard',
248
- nucliadb__protos_dot_nodereader__pb2.GetShardRequest.SerializeToString,
249
- nucliadb__protos_dot_noderesources__pb2.Shard.FromString,
250
- options, channel_credentials,
251
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
252
-
253
- @staticmethod
254
- def DocumentIds(request,
255
- target,
256
- options=(),
257
- channel_credentials=None,
258
- call_credentials=None,
259
- insecure=False,
260
- compression=None,
261
- wait_for_ready=None,
262
- timeout=None,
263
- metadata=None):
264
- return grpc.experimental.unary_unary(request, target, '/nodereader.NodeReader/DocumentIds',
265
- nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
266
- nucliadb__protos_dot_nodereader__pb2.IdCollection.FromString,
267
- options, channel_credentials,
268
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
269
-
270
- @staticmethod
271
- def ParagraphIds(request,
272
- target,
273
- options=(),
274
- channel_credentials=None,
275
- call_credentials=None,
276
- insecure=False,
277
- compression=None,
278
- wait_for_ready=None,
279
- timeout=None,
280
- metadata=None):
281
- return grpc.experimental.unary_unary(request, target, '/nodereader.NodeReader/ParagraphIds',
282
- nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
283
- nucliadb__protos_dot_nodereader__pb2.IdCollection.FromString,
284
- options, channel_credentials,
285
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
286
-
287
- @staticmethod
288
- def VectorIds(request,
289
- target,
290
- options=(),
291
- channel_credentials=None,
292
- call_credentials=None,
293
- insecure=False,
294
- compression=None,
295
- wait_for_ready=None,
296
- timeout=None,
297
- metadata=None):
298
- return grpc.experimental.unary_unary(request, target, '/nodereader.NodeReader/VectorIds',
299
- nucliadb__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
300
- nucliadb__protos_dot_nodereader__pb2.IdCollection.FromString,
301
- options, channel_credentials,
302
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
303
-
304
- @staticmethod
305
- def RelationIds(request,
306
- target,
307
- options=(),
308
- channel_credentials=None,
309
- call_credentials=None,
310
- insecure=False,
311
- compression=None,
312
- wait_for_ready=None,
313
- timeout=None,
314
- metadata=None):
315
- return grpc.experimental.unary_unary(request, target, '/nodereader.NodeReader/RelationIds',
316
- nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
317
- nucliadb__protos_dot_nodereader__pb2.IdCollection.FromString,
318
- options, channel_credentials,
319
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
320
-
321
- @staticmethod
322
- def RelationEdges(request,
323
- target,
324
- options=(),
325
- channel_credentials=None,
326
- call_credentials=None,
327
- insecure=False,
328
- compression=None,
329
- wait_for_ready=None,
330
- timeout=None,
331
- metadata=None):
332
- return grpc.experimental.unary_unary(request, target, '/nodereader.NodeReader/RelationEdges',
333
- nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
334
- nucliadb__protos_dot_nodereader__pb2.EdgeList.FromString,
335
- options, channel_credentials,
336
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
337
-
338
- @staticmethod
339
- def Search(request,
340
- target,
341
- options=(),
342
- channel_credentials=None,
343
- call_credentials=None,
344
- insecure=False,
345
- compression=None,
346
- wait_for_ready=None,
347
- timeout=None,
348
- metadata=None):
349
- return grpc.experimental.unary_unary(request, target, '/nodereader.NodeReader/Search',
350
- nucliadb__protos_dot_nodereader__pb2.SearchRequest.SerializeToString,
351
- nucliadb__protos_dot_nodereader__pb2.SearchResponse.FromString,
352
- options, channel_credentials,
353
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
354
-
355
- @staticmethod
356
- def Suggest(request,
357
- target,
358
- options=(),
359
- channel_credentials=None,
360
- call_credentials=None,
361
- insecure=False,
362
- compression=None,
363
- wait_for_ready=None,
364
- timeout=None,
365
- metadata=None):
366
- return grpc.experimental.unary_unary(request, target, '/nodereader.NodeReader/Suggest',
367
- nucliadb__protos_dot_nodereader__pb2.SuggestRequest.SerializeToString,
368
- nucliadb__protos_dot_nodereader__pb2.SuggestResponse.FromString,
369
- options, channel_credentials,
370
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
371
-
372
- @staticmethod
373
- def Paragraphs(request,
374
- target,
375
- options=(),
376
- channel_credentials=None,
377
- call_credentials=None,
378
- insecure=False,
379
- compression=None,
380
- wait_for_ready=None,
381
- timeout=None,
382
- metadata=None):
383
- return grpc.experimental.unary_stream(request, target, '/nodereader.NodeReader/Paragraphs',
384
- nucliadb__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
385
- nucliadb__protos_dot_nodereader__pb2.ParagraphItem.FromString,
386
- options, channel_credentials,
387
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
388
-
389
- @staticmethod
390
- def Documents(request,
391
- target,
392
- options=(),
393
- channel_credentials=None,
394
- call_credentials=None,
395
- insecure=False,
396
- compression=None,
397
- wait_for_ready=None,
398
- timeout=None,
399
- metadata=None):
400
- return grpc.experimental.unary_stream(request, target, '/nodereader.NodeReader/Documents',
401
- nucliadb__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
402
- nucliadb__protos_dot_nodereader__pb2.DocumentItem.FromString,
403
- options, channel_credentials,
404
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
405
-
406
- @staticmethod
407
- def GetShardFiles(request,
408
- target,
409
- options=(),
410
- channel_credentials=None,
411
- call_credentials=None,
412
- insecure=False,
413
- compression=None,
414
- wait_for_ready=None,
415
- timeout=None,
416
- metadata=None):
417
- return grpc.experimental.unary_unary(request, target, '/nodereader.NodeReader/GetShardFiles',
418
- nucliadb__protos_dot_nodereader__pb2.GetShardFilesRequest.SerializeToString,
419
- nucliadb__protos_dot_nodereader__pb2.ShardFileList.FromString,
420
- options, channel_credentials,
421
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
422
-
423
- @staticmethod
424
- def DownloadShardFile(request,
425
- target,
426
- options=(),
427
- channel_credentials=None,
428
- call_credentials=None,
429
- insecure=False,
430
- compression=None,
431
- wait_for_ready=None,
432
- timeout=None,
433
- metadata=None):
434
- return grpc.experimental.unary_stream(request, target, '/nodereader.NodeReader/DownloadShardFile',
435
- nucliadb__protos_dot_nodereader__pb2.DownloadShardFileRequest.SerializeToString,
436
- nucliadb__protos_dot_nodereader__pb2.ShardFileChunk.FromString,
437
- options, channel_credentials,
438
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)