nucliadb-protos 6.3.7.post4077__py3-none-any.whl → 6.3.7.post4079__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.
- nucliadb_protos/audit_pb2.py +19 -9
- nucliadb_protos/backups_pb2.py +13 -3
- nucliadb_protos/backups_pb2_grpc.py +20 -0
- nucliadb_protos/dataset_pb2.py +13 -3
- nucliadb_protos/kb_usage_pb2.py +14 -4
- nucliadb_protos/knowledgebox_pb2.py +26 -16
- nucliadb_protos/migrations_pb2.py +13 -3
- nucliadb_protos/nodereader_pb2.py +18 -8
- nucliadb_protos/nodereader_pb2_grpc.py +189 -48
- nucliadb_protos/noderesources_pb2.py +30 -20
- nucliadb_protos/nodewriter_pb2.py +23 -13
- nucliadb_protos/nodewriter_pb2_grpc.py +189 -48
- nucliadb_protos/resources_pb2.py +39 -29
- nucliadb_protos/standalone_pb2.py +13 -3
- nucliadb_protos/standalone_pb2_grpc.py +49 -8
- nucliadb_protos/train_pb2.py +18 -8
- nucliadb_protos/train_pb2_grpc.py +133 -32
- nucliadb_protos/utils_pb2.py +17 -7
- nucliadb_protos/writer_pb2.py +29 -19
- nucliadb_protos/writer_pb2_grpc.py +259 -68
- {nucliadb_protos-6.3.7.post4077.dist-info → nucliadb_protos-6.3.7.post4079.dist-info}/METADATA +1 -1
- nucliadb_protos-6.3.7.post4079.dist-info/RECORD +46 -0
- nucliadb_protos-6.3.7.post4077.dist-info/RECORD +0 -46
- {nucliadb_protos-6.3.7.post4077.dist-info → nucliadb_protos-6.3.7.post4079.dist-info}/WHEEL +0 -0
- {nucliadb_protos-6.3.7.post4077.dist-info → nucliadb_protos-6.3.7.post4079.dist-info}/top_level.txt +0 -0
@@ -1,10 +1,30 @@
|
|
1
1
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
3
3
|
import grpc
|
4
|
+
import warnings
|
4
5
|
|
5
6
|
from nucliadb_protos import noderesources_pb2 as nucliadb__protos_dot_noderesources__pb2
|
6
7
|
from nucliadb_protos import nodewriter_pb2 as nucliadb__protos_dot_nodewriter__pb2
|
7
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
|
+
|
8
28
|
|
9
29
|
class NodeWriterStub(object):
|
10
30
|
"""Missing associated documentation comment in .proto file."""
|
@@ -19,62 +39,62 @@ class NodeWriterStub(object):
|
|
19
39
|
'/nodewriter.NodeWriter/NewShard',
|
20
40
|
request_serializer=nucliadb__protos_dot_nodewriter__pb2.NewShardRequest.SerializeToString,
|
21
41
|
response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardCreated.FromString,
|
22
|
-
)
|
42
|
+
_registered_method=True)
|
23
43
|
self.DeleteShard = channel.unary_unary(
|
24
44
|
'/nodewriter.NodeWriter/DeleteShard',
|
25
45
|
request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
26
46
|
response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
|
27
|
-
)
|
47
|
+
_registered_method=True)
|
28
48
|
self.ListShards = channel.unary_unary(
|
29
49
|
'/nodewriter.NodeWriter/ListShards',
|
30
50
|
request_serializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
31
51
|
response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardIds.FromString,
|
32
|
-
)
|
52
|
+
_registered_method=True)
|
33
53
|
self.GC = channel.unary_unary(
|
34
54
|
'/nodewriter.NodeWriter/GC',
|
35
55
|
request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
36
56
|
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.GarbageCollectorResponse.FromString,
|
37
|
-
)
|
57
|
+
_registered_method=True)
|
38
58
|
self.Merge = channel.unary_unary(
|
39
59
|
'/nodewriter.NodeWriter/Merge',
|
40
60
|
request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
41
61
|
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.MergeResponse.FromString,
|
42
|
-
)
|
62
|
+
_registered_method=True)
|
43
63
|
self.SetResource = channel.unary_unary(
|
44
64
|
'/nodewriter.NodeWriter/SetResource',
|
45
65
|
request_serializer=nucliadb__protos_dot_noderesources__pb2.Resource.SerializeToString,
|
46
66
|
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
47
|
-
)
|
67
|
+
_registered_method=True)
|
48
68
|
self.SetResourceFromStorage = channel.unary_unary(
|
49
69
|
'/nodewriter.NodeWriter/SetResourceFromStorage',
|
50
70
|
request_serializer=nucliadb__protos_dot_nodewriter__pb2.IndexMessage.SerializeToString,
|
51
71
|
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
52
|
-
)
|
72
|
+
_registered_method=True)
|
53
73
|
self.RemoveResource = channel.unary_unary(
|
54
74
|
'/nodewriter.NodeWriter/RemoveResource',
|
55
75
|
request_serializer=nucliadb__protos_dot_noderesources__pb2.ResourceID.SerializeToString,
|
56
76
|
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
57
|
-
)
|
77
|
+
_registered_method=True)
|
58
78
|
self.AddVectorSet = channel.unary_unary(
|
59
79
|
'/nodewriter.NodeWriter/AddVectorSet',
|
60
80
|
request_serializer=nucliadb__protos_dot_nodewriter__pb2.NewVectorSetRequest.SerializeToString,
|
61
81
|
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
62
|
-
)
|
82
|
+
_registered_method=True)
|
63
83
|
self.RemoveVectorSet = channel.unary_unary(
|
64
84
|
'/nodewriter.NodeWriter/RemoveVectorSet',
|
65
85
|
request_serializer=nucliadb__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
|
66
86
|
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
67
|
-
)
|
87
|
+
_registered_method=True)
|
68
88
|
self.ListVectorSets = channel.unary_unary(
|
69
89
|
'/nodewriter.NodeWriter/ListVectorSets',
|
70
90
|
request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
71
91
|
response_deserializer=nucliadb__protos_dot_noderesources__pb2.VectorSetList.FromString,
|
72
|
-
)
|
92
|
+
_registered_method=True)
|
73
93
|
self.GetMetadata = channel.unary_unary(
|
74
94
|
'/nodewriter.NodeWriter/GetMetadata',
|
75
95
|
request_serializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
76
96
|
response_deserializer=nucliadb__protos_dot_noderesources__pb2.NodeMetadata.FromString,
|
77
|
-
)
|
97
|
+
_registered_method=True)
|
78
98
|
|
79
99
|
|
80
100
|
class NodeWriterServicer(object):
|
@@ -219,6 +239,7 @@ def add_NodeWriterServicer_to_server(servicer, server):
|
|
219
239
|
generic_handler = grpc.method_handlers_generic_handler(
|
220
240
|
'nodewriter.NodeWriter', rpc_method_handlers)
|
221
241
|
server.add_generic_rpc_handlers((generic_handler,))
|
242
|
+
server.add_registered_method_handlers('nodewriter.NodeWriter', rpc_method_handlers)
|
222
243
|
|
223
244
|
|
224
245
|
# This class is part of an EXPERIMENTAL API.
|
@@ -236,11 +257,21 @@ class NodeWriter(object):
|
|
236
257
|
wait_for_ready=None,
|
237
258
|
timeout=None,
|
238
259
|
metadata=None):
|
239
|
-
return grpc.experimental.unary_unary(
|
260
|
+
return grpc.experimental.unary_unary(
|
261
|
+
request,
|
262
|
+
target,
|
263
|
+
'/nodewriter.NodeWriter/NewShard',
|
240
264
|
nucliadb__protos_dot_nodewriter__pb2.NewShardRequest.SerializeToString,
|
241
265
|
nucliadb__protos_dot_noderesources__pb2.ShardCreated.FromString,
|
242
|
-
options,
|
243
|
-
|
266
|
+
options,
|
267
|
+
channel_credentials,
|
268
|
+
insecure,
|
269
|
+
call_credentials,
|
270
|
+
compression,
|
271
|
+
wait_for_ready,
|
272
|
+
timeout,
|
273
|
+
metadata,
|
274
|
+
_registered_method=True)
|
244
275
|
|
245
276
|
@staticmethod
|
246
277
|
def DeleteShard(request,
|
@@ -253,11 +284,21 @@ class NodeWriter(object):
|
|
253
284
|
wait_for_ready=None,
|
254
285
|
timeout=None,
|
255
286
|
metadata=None):
|
256
|
-
return grpc.experimental.unary_unary(
|
287
|
+
return grpc.experimental.unary_unary(
|
288
|
+
request,
|
289
|
+
target,
|
290
|
+
'/nodewriter.NodeWriter/DeleteShard',
|
257
291
|
nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
258
292
|
nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
|
259
|
-
options,
|
260
|
-
|
293
|
+
options,
|
294
|
+
channel_credentials,
|
295
|
+
insecure,
|
296
|
+
call_credentials,
|
297
|
+
compression,
|
298
|
+
wait_for_ready,
|
299
|
+
timeout,
|
300
|
+
metadata,
|
301
|
+
_registered_method=True)
|
261
302
|
|
262
303
|
@staticmethod
|
263
304
|
def ListShards(request,
|
@@ -270,11 +311,21 @@ class NodeWriter(object):
|
|
270
311
|
wait_for_ready=None,
|
271
312
|
timeout=None,
|
272
313
|
metadata=None):
|
273
|
-
return grpc.experimental.unary_unary(
|
314
|
+
return grpc.experimental.unary_unary(
|
315
|
+
request,
|
316
|
+
target,
|
317
|
+
'/nodewriter.NodeWriter/ListShards',
|
274
318
|
nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
275
319
|
nucliadb__protos_dot_noderesources__pb2.ShardIds.FromString,
|
276
|
-
options,
|
277
|
-
|
320
|
+
options,
|
321
|
+
channel_credentials,
|
322
|
+
insecure,
|
323
|
+
call_credentials,
|
324
|
+
compression,
|
325
|
+
wait_for_ready,
|
326
|
+
timeout,
|
327
|
+
metadata,
|
328
|
+
_registered_method=True)
|
278
329
|
|
279
330
|
@staticmethod
|
280
331
|
def GC(request,
|
@@ -287,11 +338,21 @@ class NodeWriter(object):
|
|
287
338
|
wait_for_ready=None,
|
288
339
|
timeout=None,
|
289
340
|
metadata=None):
|
290
|
-
return grpc.experimental.unary_unary(
|
341
|
+
return grpc.experimental.unary_unary(
|
342
|
+
request,
|
343
|
+
target,
|
344
|
+
'/nodewriter.NodeWriter/GC',
|
291
345
|
nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
292
346
|
nucliadb__protos_dot_nodewriter__pb2.GarbageCollectorResponse.FromString,
|
293
|
-
options,
|
294
|
-
|
347
|
+
options,
|
348
|
+
channel_credentials,
|
349
|
+
insecure,
|
350
|
+
call_credentials,
|
351
|
+
compression,
|
352
|
+
wait_for_ready,
|
353
|
+
timeout,
|
354
|
+
metadata,
|
355
|
+
_registered_method=True)
|
295
356
|
|
296
357
|
@staticmethod
|
297
358
|
def Merge(request,
|
@@ -304,11 +365,21 @@ class NodeWriter(object):
|
|
304
365
|
wait_for_ready=None,
|
305
366
|
timeout=None,
|
306
367
|
metadata=None):
|
307
|
-
return grpc.experimental.unary_unary(
|
368
|
+
return grpc.experimental.unary_unary(
|
369
|
+
request,
|
370
|
+
target,
|
371
|
+
'/nodewriter.NodeWriter/Merge',
|
308
372
|
nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
309
373
|
nucliadb__protos_dot_nodewriter__pb2.MergeResponse.FromString,
|
310
|
-
options,
|
311
|
-
|
374
|
+
options,
|
375
|
+
channel_credentials,
|
376
|
+
insecure,
|
377
|
+
call_credentials,
|
378
|
+
compression,
|
379
|
+
wait_for_ready,
|
380
|
+
timeout,
|
381
|
+
metadata,
|
382
|
+
_registered_method=True)
|
312
383
|
|
313
384
|
@staticmethod
|
314
385
|
def SetResource(request,
|
@@ -321,11 +392,21 @@ class NodeWriter(object):
|
|
321
392
|
wait_for_ready=None,
|
322
393
|
timeout=None,
|
323
394
|
metadata=None):
|
324
|
-
return grpc.experimental.unary_unary(
|
395
|
+
return grpc.experimental.unary_unary(
|
396
|
+
request,
|
397
|
+
target,
|
398
|
+
'/nodewriter.NodeWriter/SetResource',
|
325
399
|
nucliadb__protos_dot_noderesources__pb2.Resource.SerializeToString,
|
326
400
|
nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
327
|
-
options,
|
328
|
-
|
401
|
+
options,
|
402
|
+
channel_credentials,
|
403
|
+
insecure,
|
404
|
+
call_credentials,
|
405
|
+
compression,
|
406
|
+
wait_for_ready,
|
407
|
+
timeout,
|
408
|
+
metadata,
|
409
|
+
_registered_method=True)
|
329
410
|
|
330
411
|
@staticmethod
|
331
412
|
def SetResourceFromStorage(request,
|
@@ -338,11 +419,21 @@ class NodeWriter(object):
|
|
338
419
|
wait_for_ready=None,
|
339
420
|
timeout=None,
|
340
421
|
metadata=None):
|
341
|
-
return grpc.experimental.unary_unary(
|
422
|
+
return grpc.experimental.unary_unary(
|
423
|
+
request,
|
424
|
+
target,
|
425
|
+
'/nodewriter.NodeWriter/SetResourceFromStorage',
|
342
426
|
nucliadb__protos_dot_nodewriter__pb2.IndexMessage.SerializeToString,
|
343
427
|
nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
344
|
-
options,
|
345
|
-
|
428
|
+
options,
|
429
|
+
channel_credentials,
|
430
|
+
insecure,
|
431
|
+
call_credentials,
|
432
|
+
compression,
|
433
|
+
wait_for_ready,
|
434
|
+
timeout,
|
435
|
+
metadata,
|
436
|
+
_registered_method=True)
|
346
437
|
|
347
438
|
@staticmethod
|
348
439
|
def RemoveResource(request,
|
@@ -355,11 +446,21 @@ class NodeWriter(object):
|
|
355
446
|
wait_for_ready=None,
|
356
447
|
timeout=None,
|
357
448
|
metadata=None):
|
358
|
-
return grpc.experimental.unary_unary(
|
449
|
+
return grpc.experimental.unary_unary(
|
450
|
+
request,
|
451
|
+
target,
|
452
|
+
'/nodewriter.NodeWriter/RemoveResource',
|
359
453
|
nucliadb__protos_dot_noderesources__pb2.ResourceID.SerializeToString,
|
360
454
|
nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
361
|
-
options,
|
362
|
-
|
455
|
+
options,
|
456
|
+
channel_credentials,
|
457
|
+
insecure,
|
458
|
+
call_credentials,
|
459
|
+
compression,
|
460
|
+
wait_for_ready,
|
461
|
+
timeout,
|
462
|
+
metadata,
|
463
|
+
_registered_method=True)
|
363
464
|
|
364
465
|
@staticmethod
|
365
466
|
def AddVectorSet(request,
|
@@ -372,11 +473,21 @@ class NodeWriter(object):
|
|
372
473
|
wait_for_ready=None,
|
373
474
|
timeout=None,
|
374
475
|
metadata=None):
|
375
|
-
return grpc.experimental.unary_unary(
|
476
|
+
return grpc.experimental.unary_unary(
|
477
|
+
request,
|
478
|
+
target,
|
479
|
+
'/nodewriter.NodeWriter/AddVectorSet',
|
376
480
|
nucliadb__protos_dot_nodewriter__pb2.NewVectorSetRequest.SerializeToString,
|
377
481
|
nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
378
|
-
options,
|
379
|
-
|
482
|
+
options,
|
483
|
+
channel_credentials,
|
484
|
+
insecure,
|
485
|
+
call_credentials,
|
486
|
+
compression,
|
487
|
+
wait_for_ready,
|
488
|
+
timeout,
|
489
|
+
metadata,
|
490
|
+
_registered_method=True)
|
380
491
|
|
381
492
|
@staticmethod
|
382
493
|
def RemoveVectorSet(request,
|
@@ -389,11 +500,21 @@ class NodeWriter(object):
|
|
389
500
|
wait_for_ready=None,
|
390
501
|
timeout=None,
|
391
502
|
metadata=None):
|
392
|
-
return grpc.experimental.unary_unary(
|
503
|
+
return grpc.experimental.unary_unary(
|
504
|
+
request,
|
505
|
+
target,
|
506
|
+
'/nodewriter.NodeWriter/RemoveVectorSet',
|
393
507
|
nucliadb__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
|
394
508
|
nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
395
|
-
options,
|
396
|
-
|
509
|
+
options,
|
510
|
+
channel_credentials,
|
511
|
+
insecure,
|
512
|
+
call_credentials,
|
513
|
+
compression,
|
514
|
+
wait_for_ready,
|
515
|
+
timeout,
|
516
|
+
metadata,
|
517
|
+
_registered_method=True)
|
397
518
|
|
398
519
|
@staticmethod
|
399
520
|
def ListVectorSets(request,
|
@@ -406,11 +527,21 @@ class NodeWriter(object):
|
|
406
527
|
wait_for_ready=None,
|
407
528
|
timeout=None,
|
408
529
|
metadata=None):
|
409
|
-
return grpc.experimental.unary_unary(
|
530
|
+
return grpc.experimental.unary_unary(
|
531
|
+
request,
|
532
|
+
target,
|
533
|
+
'/nodewriter.NodeWriter/ListVectorSets',
|
410
534
|
nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
411
535
|
nucliadb__protos_dot_noderesources__pb2.VectorSetList.FromString,
|
412
|
-
options,
|
413
|
-
|
536
|
+
options,
|
537
|
+
channel_credentials,
|
538
|
+
insecure,
|
539
|
+
call_credentials,
|
540
|
+
compression,
|
541
|
+
wait_for_ready,
|
542
|
+
timeout,
|
543
|
+
metadata,
|
544
|
+
_registered_method=True)
|
414
545
|
|
415
546
|
@staticmethod
|
416
547
|
def GetMetadata(request,
|
@@ -423,8 +554,18 @@ class NodeWriter(object):
|
|
423
554
|
wait_for_ready=None,
|
424
555
|
timeout=None,
|
425
556
|
metadata=None):
|
426
|
-
return grpc.experimental.unary_unary(
|
557
|
+
return grpc.experimental.unary_unary(
|
558
|
+
request,
|
559
|
+
target,
|
560
|
+
'/nodewriter.NodeWriter/GetMetadata',
|
427
561
|
nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
428
562
|
nucliadb__protos_dot_noderesources__pb2.NodeMetadata.FromString,
|
429
|
-
options,
|
430
|
-
|
563
|
+
options,
|
564
|
+
channel_credentials,
|
565
|
+
insecure,
|
566
|
+
call_credentials,
|
567
|
+
compression,
|
568
|
+
wait_for_ready,
|
569
|
+
timeout,
|
570
|
+
metadata,
|
571
|
+
_registered_method=True)
|
nucliadb_protos/resources_pb2.py
CHANGED
@@ -1,12 +1,22 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
3
4
|
# source: nucliadb_protos/resources.proto
|
4
|
-
# Protobuf Python Version:
|
5
|
+
# Protobuf Python Version: 5.29.0
|
5
6
|
"""Generated protocol buffer code."""
|
6
7
|
from google.protobuf import descriptor as _descriptor
|
7
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
8
10
|
from google.protobuf import symbol_database as _symbol_database
|
9
11
|
from google.protobuf.internal import builder as _builder
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
14
|
+
5,
|
15
|
+
29,
|
16
|
+
0,
|
17
|
+
'',
|
18
|
+
'nucliadb_protos/resources.proto'
|
19
|
+
)
|
10
20
|
# @@protoc_insertion_point(imports)
|
11
21
|
|
12
22
|
_sym_db = _symbol_database.Default()
|
@@ -23,59 +33,59 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fnucliadb_proto
|
|
23
33
|
_globals = globals()
|
24
34
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
25
35
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.resources_pb2', _globals)
|
26
|
-
if _descriptor._USE_C_DESCRIPTORS
|
27
|
-
DESCRIPTOR.
|
28
|
-
_globals['_BASIC'].fields_by_name['layout'].
|
36
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
37
|
+
DESCRIPTOR._loaded_options = None
|
38
|
+
_globals['_BASIC'].fields_by_name['layout']._loaded_options = None
|
29
39
|
_globals['_BASIC'].fields_by_name['layout']._serialized_options = b'\030\001'
|
30
|
-
_globals['_ORIGIN_METADATAENTRY'].
|
40
|
+
_globals['_ORIGIN_METADATAENTRY']._loaded_options = None
|
31
41
|
_globals['_ORIGIN_METADATAENTRY']._serialized_options = b'8\001'
|
32
|
-
_globals['_FILEEXTRACTEDDATA_METADATAENTRY'].
|
42
|
+
_globals['_FILEEXTRACTEDDATA_METADATAENTRY']._loaded_options = None
|
33
43
|
_globals['_FILEEXTRACTEDDATA_METADATAENTRY']._serialized_options = b'8\001'
|
34
|
-
_globals['_FILEEXTRACTEDDATA_NESTEDENTRY'].
|
44
|
+
_globals['_FILEEXTRACTEDDATA_NESTEDENTRY']._loaded_options = None
|
35
45
|
_globals['_FILEEXTRACTEDDATA_NESTEDENTRY']._serialized_options = b'8\001'
|
36
|
-
_globals['_FILEEXTRACTEDDATA_FILEGENERATEDENTRY'].
|
46
|
+
_globals['_FILEEXTRACTEDDATA_FILEGENERATEDENTRY']._loaded_options = None
|
37
47
|
_globals['_FILEEXTRACTEDDATA_FILEGENERATEDENTRY']._serialized_options = b'8\001'
|
38
|
-
_globals['_FILEEXTRACTEDDATA_FILEROWSPREVIEWSENTRY'].
|
48
|
+
_globals['_FILEEXTRACTEDDATA_FILEROWSPREVIEWSENTRY']._loaded_options = None
|
39
49
|
_globals['_FILEEXTRACTEDDATA_FILEROWSPREVIEWSENTRY']._serialized_options = b'8\001'
|
40
|
-
_globals['_FILEEXTRACTEDDATA_NESTEDPOSITIONENTRY'].
|
50
|
+
_globals['_FILEEXTRACTEDDATA_NESTEDPOSITIONENTRY']._loaded_options = None
|
41
51
|
_globals['_FILEEXTRACTEDDATA_NESTEDPOSITIONENTRY']._serialized_options = b'8\001'
|
42
|
-
_globals['_FILEEXTRACTEDDATA_NESTEDLISTPOSITIONENTRY'].
|
52
|
+
_globals['_FILEEXTRACTEDDATA_NESTEDLISTPOSITIONENTRY']._loaded_options = None
|
43
53
|
_globals['_FILEEXTRACTEDDATA_NESTEDLISTPOSITIONENTRY']._serialized_options = b'8\001'
|
44
|
-
_globals['_FILEEXTRACTEDDATA'].fields_by_name['nested_position'].
|
54
|
+
_globals['_FILEEXTRACTEDDATA'].fields_by_name['nested_position']._loaded_options = None
|
45
55
|
_globals['_FILEEXTRACTEDDATA'].fields_by_name['nested_position']._serialized_options = b'\030\001'
|
46
|
-
_globals['_LINKEXTRACTEDDATA_METADATAENTRY'].
|
56
|
+
_globals['_LINKEXTRACTEDDATA_METADATAENTRY']._loaded_options = None
|
47
57
|
_globals['_LINKEXTRACTEDDATA_METADATAENTRY']._serialized_options = b'8\001'
|
48
|
-
_globals['_LINKEXTRACTEDDATA_FILEGENERATEDENTRY'].
|
58
|
+
_globals['_LINKEXTRACTEDDATA_FILEGENERATEDENTRY']._loaded_options = None
|
49
59
|
_globals['_LINKEXTRACTEDDATA_FILEGENERATEDENTRY']._serialized_options = b'8\001'
|
50
|
-
_globals['_USERVECTORSWRAPPER_VECTORSTODELETEENTRY'].
|
60
|
+
_globals['_USERVECTORSWRAPPER_VECTORSTODELETEENTRY']._loaded_options = None
|
51
61
|
_globals['_USERVECTORSWRAPPER_VECTORSTODELETEENTRY']._serialized_options = b'8\001'
|
52
|
-
_globals['_FIELDMETADATA_NERENTRY'].
|
62
|
+
_globals['_FIELDMETADATA_NERENTRY']._loaded_options = None
|
53
63
|
_globals['_FIELDMETADATA_NERENTRY']._serialized_options = b'8\001'
|
54
|
-
_globals['_FIELDMETADATA_ENTITIESENTRY'].
|
64
|
+
_globals['_FIELDMETADATA_ENTITIESENTRY']._loaded_options = None
|
55
65
|
_globals['_FIELDMETADATA_ENTITIESENTRY']._serialized_options = b'8\001'
|
56
|
-
_globals['_FIELDMETADATA_POSITIONSENTRY'].
|
66
|
+
_globals['_FIELDMETADATA_POSITIONSENTRY']._loaded_options = None
|
57
67
|
_globals['_FIELDMETADATA_POSITIONSENTRY']._serialized_options = b'8\001'
|
58
|
-
_globals['_ANSWERS'].fields_by_name['language'].
|
68
|
+
_globals['_ANSWERS'].fields_by_name['language']._loaded_options = None
|
59
69
|
_globals['_ANSWERS'].fields_by_name['language']._serialized_options = b'\030\001'
|
60
|
-
_globals['_FIELDQUESTIONANSWERS_SPLITQUESTIONANSWERSENTRY'].
|
70
|
+
_globals['_FIELDQUESTIONANSWERS_SPLITQUESTIONANSWERSENTRY']._loaded_options = None
|
61
71
|
_globals['_FIELDQUESTIONANSWERS_SPLITQUESTIONANSWERSENTRY']._serialized_options = b'8\001'
|
62
|
-
_globals['_FIELDCOMPUTEDMETADATA_SPLITMETADATAENTRY'].
|
72
|
+
_globals['_FIELDCOMPUTEDMETADATA_SPLITMETADATAENTRY']._loaded_options = None
|
63
73
|
_globals['_FIELDCOMPUTEDMETADATA_SPLITMETADATAENTRY']._serialized_options = b'8\001'
|
64
|
-
_globals['_METADATA_METADATAENTRY'].
|
74
|
+
_globals['_METADATA_METADATAENTRY']._loaded_options = None
|
65
75
|
_globals['_METADATA_METADATAENTRY']._serialized_options = b'8\001'
|
66
|
-
_globals['_FIELDLINK_HEADERSENTRY'].
|
76
|
+
_globals['_FIELDLINK_HEADERSENTRY']._loaded_options = None
|
67
77
|
_globals['_FIELDLINK_HEADERSENTRY']._serialized_options = b'8\001'
|
68
|
-
_globals['_FIELDLINK_COOKIESENTRY'].
|
78
|
+
_globals['_FIELDLINK_COOKIESENTRY']._loaded_options = None
|
69
79
|
_globals['_FIELDLINK_COOKIESENTRY']._serialized_options = b'8\001'
|
70
|
-
_globals['_FIELDLINK_LOCALSTORAGEENTRY'].
|
80
|
+
_globals['_FIELDLINK_LOCALSTORAGEENTRY']._loaded_options = None
|
71
81
|
_globals['_FIELDLINK_LOCALSTORAGEENTRY']._serialized_options = b'8\001'
|
72
|
-
_globals['_FIELDFILE_HEADERSENTRY'].
|
82
|
+
_globals['_FIELDFILE_HEADERSENTRY']._loaded_options = None
|
73
83
|
_globals['_FIELDFILE_HEADERSENTRY']._serialized_options = b'8\001'
|
74
|
-
_globals['_FIELDLARGEMETADATA_TOKENSENTRY'].
|
84
|
+
_globals['_FIELDLARGEMETADATA_TOKENSENTRY']._loaded_options = None
|
75
85
|
_globals['_FIELDLARGEMETADATA_TOKENSENTRY']._serialized_options = b'8\001'
|
76
|
-
_globals['_LARGECOMPUTEDMETADATA_SPLITMETADATAENTRY'].
|
86
|
+
_globals['_LARGECOMPUTEDMETADATA_SPLITMETADATAENTRY']._loaded_options = None
|
77
87
|
_globals['_LARGECOMPUTEDMETADATA_SPLITMETADATAENTRY']._serialized_options = b'8\001'
|
78
|
-
_globals['_ROWSPREVIEW_SHEETSENTRY'].
|
88
|
+
_globals['_ROWSPREVIEW_SHEETSENTRY']._loaded_options = None
|
79
89
|
_globals['_ROWSPREVIEW_SHEETSENTRY']._serialized_options = b'8\001'
|
80
90
|
_globals['_FIELDTYPE']._serialized_start=11760
|
81
91
|
_globals['_FIELDTYPE']._serialized_end=11850
|
@@ -1,12 +1,22 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# NO CHECKED-IN PROTOBUF GENCODE
|
3
4
|
# source: nucliadb_protos/standalone.proto
|
4
|
-
# Protobuf Python Version:
|
5
|
+
# Protobuf Python Version: 5.29.0
|
5
6
|
"""Generated protocol buffer code."""
|
6
7
|
from google.protobuf import descriptor as _descriptor
|
7
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
9
|
+
from google.protobuf import runtime_version as _runtime_version
|
8
10
|
from google.protobuf import symbol_database as _symbol_database
|
9
11
|
from google.protobuf.internal import builder as _builder
|
12
|
+
_runtime_version.ValidateProtobufRuntimeVersion(
|
13
|
+
_runtime_version.Domain.PUBLIC,
|
14
|
+
5,
|
15
|
+
29,
|
16
|
+
0,
|
17
|
+
'',
|
18
|
+
'nucliadb_protos/standalone.proto'
|
19
|
+
)
|
10
20
|
# @@protoc_insertion_point(imports)
|
11
21
|
|
12
22
|
_sym_db = _symbol_database.Default()
|
@@ -19,8 +29,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n nucliadb_protos/s
|
|
19
29
|
_globals = globals()
|
20
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
21
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.standalone_pb2', _globals)
|
22
|
-
if _descriptor._USE_C_DESCRIPTORS
|
23
|
-
DESCRIPTOR.
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
33
|
+
DESCRIPTOR._loaded_options = None
|
24
34
|
_globals['_NODEACTIONREQUEST']._serialized_start=48
|
25
35
|
_globals['_NODEACTIONREQUEST']._serialized_end=117
|
26
36
|
_globals['_NODEACTIONRESPONSE']._serialized_start=119
|
@@ -1,9 +1,29 @@
|
|
1
1
|
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
2
2
|
"""Client and server classes corresponding to protobuf-defined services."""
|
3
3
|
import grpc
|
4
|
+
import warnings
|
4
5
|
|
5
6
|
from nucliadb_protos import standalone_pb2 as nucliadb__protos_dot_standalone__pb2
|
6
7
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.71.0'
|
9
|
+
GRPC_VERSION = grpc.__version__
|
10
|
+
_version_not_supported = False
|
11
|
+
|
12
|
+
try:
|
13
|
+
from grpc._utilities import first_version_is_lower
|
14
|
+
_version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
|
15
|
+
except ImportError:
|
16
|
+
_version_not_supported = True
|
17
|
+
|
18
|
+
if _version_not_supported:
|
19
|
+
raise RuntimeError(
|
20
|
+
f'The grpc package installed is at version {GRPC_VERSION},'
|
21
|
+
+ f' but the generated code in nucliadb_protos/standalone_pb2_grpc.py depends on'
|
22
|
+
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
23
|
+
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
24
|
+
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
25
|
+
)
|
26
|
+
|
7
27
|
|
8
28
|
class StandaloneClusterServiceStub(object):
|
9
29
|
"""Missing associated documentation comment in .proto file."""
|
@@ -18,12 +38,12 @@ class StandaloneClusterServiceStub(object):
|
|
18
38
|
'/standalone.StandaloneClusterService/NodeAction',
|
19
39
|
request_serializer=nucliadb__protos_dot_standalone__pb2.NodeActionRequest.SerializeToString,
|
20
40
|
response_deserializer=nucliadb__protos_dot_standalone__pb2.NodeActionResponse.FromString,
|
21
|
-
)
|
41
|
+
_registered_method=True)
|
22
42
|
self.NodeInfo = channel.unary_unary(
|
23
43
|
'/standalone.StandaloneClusterService/NodeInfo',
|
24
44
|
request_serializer=nucliadb__protos_dot_standalone__pb2.NodeInfoRequest.SerializeToString,
|
25
45
|
response_deserializer=nucliadb__protos_dot_standalone__pb2.NodeInfoResponse.FromString,
|
26
|
-
)
|
46
|
+
_registered_method=True)
|
27
47
|
|
28
48
|
|
29
49
|
class StandaloneClusterServiceServicer(object):
|
@@ -58,6 +78,7 @@ def add_StandaloneClusterServiceServicer_to_server(servicer, server):
|
|
58
78
|
generic_handler = grpc.method_handlers_generic_handler(
|
59
79
|
'standalone.StandaloneClusterService', rpc_method_handlers)
|
60
80
|
server.add_generic_rpc_handlers((generic_handler,))
|
81
|
+
server.add_registered_method_handlers('standalone.StandaloneClusterService', rpc_method_handlers)
|
61
82
|
|
62
83
|
|
63
84
|
# This class is part of an EXPERIMENTAL API.
|
@@ -75,11 +96,21 @@ class StandaloneClusterService(object):
|
|
75
96
|
wait_for_ready=None,
|
76
97
|
timeout=None,
|
77
98
|
metadata=None):
|
78
|
-
return grpc.experimental.unary_unary(
|
99
|
+
return grpc.experimental.unary_unary(
|
100
|
+
request,
|
101
|
+
target,
|
102
|
+
'/standalone.StandaloneClusterService/NodeAction',
|
79
103
|
nucliadb__protos_dot_standalone__pb2.NodeActionRequest.SerializeToString,
|
80
104
|
nucliadb__protos_dot_standalone__pb2.NodeActionResponse.FromString,
|
81
|
-
options,
|
82
|
-
|
105
|
+
options,
|
106
|
+
channel_credentials,
|
107
|
+
insecure,
|
108
|
+
call_credentials,
|
109
|
+
compression,
|
110
|
+
wait_for_ready,
|
111
|
+
timeout,
|
112
|
+
metadata,
|
113
|
+
_registered_method=True)
|
83
114
|
|
84
115
|
@staticmethod
|
85
116
|
def NodeInfo(request,
|
@@ -92,8 +123,18 @@ class StandaloneClusterService(object):
|
|
92
123
|
wait_for_ready=None,
|
93
124
|
timeout=None,
|
94
125
|
metadata=None):
|
95
|
-
return grpc.experimental.unary_unary(
|
126
|
+
return grpc.experimental.unary_unary(
|
127
|
+
request,
|
128
|
+
target,
|
129
|
+
'/standalone.StandaloneClusterService/NodeInfo',
|
96
130
|
nucliadb__protos_dot_standalone__pb2.NodeInfoRequest.SerializeToString,
|
97
131
|
nucliadb__protos_dot_standalone__pb2.NodeInfoResponse.FromString,
|
98
|
-
options,
|
99
|
-
|
132
|
+
options,
|
133
|
+
channel_credentials,
|
134
|
+
insecure,
|
135
|
+
call_credentials,
|
136
|
+
compression,
|
137
|
+
wait_for_ready,
|
138
|
+
timeout,
|
139
|
+
metadata,
|
140
|
+
_registered_method=True)
|