nidx-protos 6.2.1.post2972__py2.py3-none-any.whl → 6.2.1.post2977__py2.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.
- nidx_protos/nidx_pb2.py +3 -1
- nidx_protos/nidx_pb2_grpc.py +61 -0
- {nidx_protos-6.2.1.post2972.dist-info → nidx_protos-6.2.1.post2977.dist-info}/METADATA +1 -1
- nidx_protos-6.2.1.post2977.dist-info/RECORD +9 -0
- nidx_protos-6.2.1.post2972.dist-info/RECORD +0 -9
- {nidx_protos-6.2.1.post2972.dist-info → nidx_protos-6.2.1.post2977.dist-info}/WHEEL +0 -0
- {nidx_protos-6.2.1.post2972.dist-info → nidx_protos-6.2.1.post2977.dist-info}/entry_points.txt +0 -0
nidx_protos/nidx_pb2.py
CHANGED
@@ -36,7 +36,7 @@ except AttributeError:
|
|
36
36
|
nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_nodewriter__pb2.nucliadb_protos.utils_pb2
|
37
37
|
|
38
38
|
|
39
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nnidx.proto\x12\x04nidx\x1a nucliadb_protos/nodereader.proto\x1a nucliadb_protos/nodewriter.proto2\xba\x04\n\x07NidxApi\x12?\n\x08GetShard\x12\x1b.nodereader.GetShardRequest\x1a\x14.noderesources.Shard\"\x00\x12\x46\n\x08NewShard\x12\x1b.nodewriter.NewShardRequest\x1a\x1b.noderesources.ShardCreated\"\x00\x12?\n\x0b\x44\x65leteShard\x12\x16.noderesources.ShardId\x1a\x16.noderesources.ShardId\"\x00\x12\x42\n\nListShards\x12\x19.noderesources.EmptyQuery\x1a\x17.noderesources.ShardIds\"\x00\x12G\n\x0c\x41\x64\x64VectorSet\x12\x1f.nodewriter.NewVectorSetRequest\x1a\x14.nodewriter.OpStatus\"\x00\x12\x45\n\x0fRemoveVectorSet\x12\x1a.noderesources.VectorSetID\x1a\x14.nodewriter.OpStatus\"\x00\x12H\n\x0eListVectorSets\x12\x16.noderesources.ShardId\x1a\x1c.noderesources.VectorSetList\"\x00\x12G\n\x0bGetMetadata\x12\x19.noderesources.EmptyQuery\x1a\x1b.noderesources.NodeMetadata\"\x00\x32\xa5\x02\n\x0cNidxSearcher\x12\x41\n\x06Search\x12\x19.nodereader.SearchRequest\x1a\x1a.nodereader.SearchResponse\"\x00\x12\x44\n\x07Suggest\x12\x1a.nodereader.SuggestRequest\x1a\x1b.nodereader.SuggestResponse\"\x00\x12\x46\n\nParagraphs\x12\x19.nodereader.StreamRequest\x1a\x19.nodereader.ParagraphItem\"\x00\x30\x01\x12\x44\n\tDocuments\x12\x19.nodereader.StreamRequest\x1a\x18.nodereader.DocumentItem\"\x00\x30\x01\x62\x06proto3')
|
39
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\nnidx.proto\x12\x04nidx\x1a nucliadb_protos/nodereader.proto\x1a nucliadb_protos/nodewriter.proto2\xba\x04\n\x07NidxApi\x12?\n\x08GetShard\x12\x1b.nodereader.GetShardRequest\x1a\x14.noderesources.Shard\"\x00\x12\x46\n\x08NewShard\x12\x1b.nodewriter.NewShardRequest\x1a\x1b.noderesources.ShardCreated\"\x00\x12?\n\x0b\x44\x65leteShard\x12\x16.noderesources.ShardId\x1a\x16.noderesources.ShardId\"\x00\x12\x42\n\nListShards\x12\x19.noderesources.EmptyQuery\x1a\x17.noderesources.ShardIds\"\x00\x12G\n\x0c\x41\x64\x64VectorSet\x12\x1f.nodewriter.NewVectorSetRequest\x1a\x14.nodewriter.OpStatus\"\x00\x12\x45\n\x0fRemoveVectorSet\x12\x1a.noderesources.VectorSetID\x1a\x14.nodewriter.OpStatus\"\x00\x12H\n\x0eListVectorSets\x12\x16.noderesources.ShardId\x1a\x1c.noderesources.VectorSetList\"\x00\x12G\n\x0bGetMetadata\x12\x19.noderesources.EmptyQuery\x1a\x1b.noderesources.NodeMetadata\"\x00\x32\xa5\x02\n\x0cNidxSearcher\x12\x41\n\x06Search\x12\x19.nodereader.SearchRequest\x1a\x1a.nodereader.SearchResponse\"\x00\x12\x44\n\x07Suggest\x12\x1a.nodereader.SuggestRequest\x1a\x1b.nodereader.SuggestResponse\"\x00\x12\x46\n\nParagraphs\x12\x19.nodereader.StreamRequest\x1a\x19.nodereader.ParagraphItem\"\x00\x30\x01\x12\x44\n\tDocuments\x12\x19.nodereader.StreamRequest\x1a\x18.nodereader.DocumentItem\"\x00\x30\x01\x32H\n\x0bNidxIndexer\x12\x39\n\x05Index\x12\x18.nodewriter.IndexMessage\x1a\x14.nodewriter.OpStatus\"\x00\x62\x06proto3')
|
40
40
|
|
41
41
|
_globals = globals()
|
42
42
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -47,4 +47,6 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
47
47
|
_globals['_NIDXAPI']._serialized_end=659
|
48
48
|
_globals['_NIDXSEARCHER']._serialized_start=662
|
49
49
|
_globals['_NIDXSEARCHER']._serialized_end=955
|
50
|
+
_globals['_NIDXINDEXER']._serialized_start=957
|
51
|
+
_globals['_NIDXINDEXER']._serialized_end=1029
|
50
52
|
# @@protoc_insertion_point(module_scope)
|
nidx_protos/nidx_pb2_grpc.py
CHANGED
@@ -458,3 +458,64 @@ class NidxSearcher(object):
|
|
458
458
|
nucliadb__protos_dot_nodereader__pb2.DocumentItem.FromString,
|
459
459
|
options, channel_credentials,
|
460
460
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
461
|
+
|
462
|
+
|
463
|
+
class NidxIndexerStub(object):
|
464
|
+
"""Missing associated documentation comment in .proto file."""
|
465
|
+
|
466
|
+
def __init__(self, channel):
|
467
|
+
"""Constructor.
|
468
|
+
|
469
|
+
Args:
|
470
|
+
channel: A grpc.Channel.
|
471
|
+
"""
|
472
|
+
self.Index = channel.unary_unary(
|
473
|
+
'/nidx.NidxIndexer/Index',
|
474
|
+
request_serializer=nucliadb__protos_dot_nodewriter__pb2.IndexMessage.SerializeToString,
|
475
|
+
response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
476
|
+
)
|
477
|
+
|
478
|
+
|
479
|
+
class NidxIndexerServicer(object):
|
480
|
+
"""Missing associated documentation comment in .proto file."""
|
481
|
+
|
482
|
+
def Index(self, request, context):
|
483
|
+
"""Missing associated documentation comment in .proto file."""
|
484
|
+
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
485
|
+
context.set_details('Method not implemented!')
|
486
|
+
raise NotImplementedError('Method not implemented!')
|
487
|
+
|
488
|
+
|
489
|
+
def add_NidxIndexerServicer_to_server(servicer, server):
|
490
|
+
rpc_method_handlers = {
|
491
|
+
'Index': grpc.unary_unary_rpc_method_handler(
|
492
|
+
servicer.Index,
|
493
|
+
request_deserializer=nucliadb__protos_dot_nodewriter__pb2.IndexMessage.FromString,
|
494
|
+
response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
|
495
|
+
),
|
496
|
+
}
|
497
|
+
generic_handler = grpc.method_handlers_generic_handler(
|
498
|
+
'nidx.NidxIndexer', rpc_method_handlers)
|
499
|
+
server.add_generic_rpc_handlers((generic_handler,))
|
500
|
+
|
501
|
+
|
502
|
+
# This class is part of an EXPERIMENTAL API.
|
503
|
+
class NidxIndexer(object):
|
504
|
+
"""Missing associated documentation comment in .proto file."""
|
505
|
+
|
506
|
+
@staticmethod
|
507
|
+
def Index(request,
|
508
|
+
target,
|
509
|
+
options=(),
|
510
|
+
channel_credentials=None,
|
511
|
+
call_credentials=None,
|
512
|
+
insecure=False,
|
513
|
+
compression=None,
|
514
|
+
wait_for_ready=None,
|
515
|
+
timeout=None,
|
516
|
+
metadata=None):
|
517
|
+
return grpc.experimental.unary_unary(request, target, '/nidx.NidxIndexer/Index',
|
518
|
+
nucliadb__protos_dot_nodewriter__pb2.IndexMessage.SerializeToString,
|
519
|
+
nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
520
|
+
options, channel_credentials,
|
521
|
+
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
@@ -0,0 +1,9 @@
|
|
1
|
+
.gitignore,sha256=zbyuFRBda3geYggTx5x-hodA1OnMU85vX8u8Ejh630s,2
|
2
|
+
nidx_protos-6.2.1.post2977.dist-info/METADATA,sha256=_7LtMk-ahhfNM4LrP-PGYjV_wEIdNR4t-uIGYkbMiMc,65
|
3
|
+
nidx_protos-6.2.1.post2977.dist-info/WHEEL,sha256=rsbISUvAUcl4HUjm1gKb_L9aoizBeGE4RqNs1UJntCA,94
|
4
|
+
nidx_protos-6.2.1.post2977.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
5
|
+
nidx_protos/nidx_pb2.py,sha256=UrBsBG0cKPsvfJMzmbxFSmjSnLKIKRxj_ZRPnih5xu4,3931
|
6
|
+
nidx_protos/nidx_pb2.pyi,sha256=XteNW6x4XQha6HbtrE5bJ93e20dlKc7OfkbPXp0dQTE,449
|
7
|
+
nidx_protos/nidx_pb2_grpc.py,sha256=6yJ5jvvFGNgq5S0-rKnWWHdKgaN7kqOXYKzLIjIi_Sg,23628
|
8
|
+
nidx_protos/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
|
+
nidx_protos-6.2.1.post2977.dist-info/RECORD,,
|
@@ -1,9 +0,0 @@
|
|
1
|
-
.gitignore,sha256=zbyuFRBda3geYggTx5x-hodA1OnMU85vX8u8Ejh630s,2
|
2
|
-
nidx_protos-6.2.1.post2972.dist-info/METADATA,sha256=j9Gm4J6z28iwEfvmbpUm7zGxo-rSQqHgb1f_Xhk-JKk,65
|
3
|
-
nidx_protos-6.2.1.post2972.dist-info/WHEEL,sha256=rsbISUvAUcl4HUjm1gKb_L9aoizBeGE4RqNs1UJntCA,94
|
4
|
-
nidx_protos-6.2.1.post2972.dist-info/entry_points.txt,sha256=6OYgBcLyFCUgeqLgnvMyOJxPCWzgy7se4rLPKtNonMs,34
|
5
|
-
nidx_protos/nidx_pb2.py,sha256=RLhhAwWdMok4vZ4BXhWvO_ZnjJOflf16JP4Gh-MlwvU,3727
|
6
|
-
nidx_protos/nidx_pb2.pyi,sha256=XteNW6x4XQha6HbtrE5bJ93e20dlKc7OfkbPXp0dQTE,449
|
7
|
-
nidx_protos/nidx_pb2_grpc.py,sha256=oKjpEHFB1QK_UuqltSPRj2ielMOaqd9B1gHjfFm-JaQ,21321
|
8
|
-
nidx_protos/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
9
|
-
nidx_protos-6.2.1.post2972.dist-info/RECORD,,
|
File without changes
|
{nidx_protos-6.2.1.post2972.dist-info → nidx_protos-6.2.1.post2977.dist-info}/entry_points.txt
RENAMED
File without changes
|