nidx-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.
- nidx_protos/nidx_pb2.py +26 -26
- nidx_protos/nidx_pb2.pyi +59 -31
- nidx_protos/nidx_pb2_grpc.py +88 -88
- nidx_protos/nodereader_pb2.py +179 -0
- nidx_protos/nodereader_pb2.pyi +1523 -0
- nidx_protos/nodereader_pb2_grpc.py +579 -0
- nidx_protos/noderesources_pb2.py +155 -0
- nidx_protos/noderesources_pb2.pyi +993 -0
- nidx_protos/nodewriter_pb2.py +90 -0
- nidx_protos/nodewriter_pb2.pyi +348 -0
- nidx_protos/nodewriter_pb2_grpc.py +571 -0
- {nidx_protos-6.3.7.post4116.dist-info → nidx_protos-6.3.7.post4119.dist-info}/METADATA +1 -1
- nidx_protos-6.3.7.post4119.dist-info/RECORD +17 -0
- nidx_protos-6.3.7.post4116.dist-info/RECORD +0 -9
- {nidx_protos-6.3.7.post4116.dist-info → nidx_protos-6.3.7.post4119.dist-info}/WHEEL +0 -0
- {nidx_protos-6.3.7.post4116.dist-info → nidx_protos-6.3.7.post4119.dist-info}/entry_points.txt +0 -0
nidx_protos/nidx_pb2.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
4
|
-
# source: nidx.proto
|
4
|
+
# source: nidx_protos/nidx.proto
|
5
5
|
# Protobuf Python Version: 5.29.0
|
6
6
|
"""Generated protocol buffer code."""
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
@@ -15,52 +15,52 @@ _runtime_version.ValidateProtobufRuntimeVersion(
|
|
15
15
|
29,
|
16
16
|
0,
|
17
17
|
'',
|
18
|
-
'nidx.proto'
|
18
|
+
'nidx_protos/nidx.proto'
|
19
19
|
)
|
20
20
|
# @@protoc_insertion_point(imports)
|
21
21
|
|
22
22
|
_sym_db = _symbol_database.Default()
|
23
23
|
|
24
24
|
|
25
|
-
from
|
25
|
+
from nidx_protos import nodereader_pb2 as nidx__protos_dot_nodereader__pb2
|
26
26
|
try:
|
27
|
-
|
27
|
+
nidx__protos_dot_noderesources__pb2 = nidx__protos_dot_nodereader__pb2.nidx__protos_dot_noderesources__pb2
|
28
28
|
except AttributeError:
|
29
|
-
|
29
|
+
nidx__protos_dot_noderesources__pb2 = nidx__protos_dot_nodereader__pb2.nidx_protos.noderesources_pb2
|
30
30
|
try:
|
31
|
-
nucliadb__protos_dot_utils__pb2 =
|
31
|
+
nucliadb__protos_dot_utils__pb2 = nidx__protos_dot_nodereader__pb2.nucliadb__protos_dot_utils__pb2
|
32
32
|
except AttributeError:
|
33
|
-
nucliadb__protos_dot_utils__pb2 =
|
33
|
+
nucliadb__protos_dot_utils__pb2 = nidx__protos_dot_nodereader__pb2.nucliadb_protos.utils_pb2
|
34
34
|
try:
|
35
|
-
nucliadb__protos_dot_utils__pb2 =
|
35
|
+
nucliadb__protos_dot_utils__pb2 = nidx__protos_dot_nodereader__pb2.nucliadb__protos_dot_utils__pb2
|
36
36
|
except AttributeError:
|
37
|
-
nucliadb__protos_dot_utils__pb2 =
|
38
|
-
from
|
37
|
+
nucliadb__protos_dot_utils__pb2 = nidx__protos_dot_nodereader__pb2.nucliadb_protos.utils_pb2
|
38
|
+
from nidx_protos import nodewriter_pb2 as nidx__protos_dot_nodewriter__pb2
|
39
39
|
try:
|
40
|
-
|
40
|
+
nidx__protos_dot_noderesources__pb2 = nidx__protos_dot_nodewriter__pb2.nidx__protos_dot_noderesources__pb2
|
41
41
|
except AttributeError:
|
42
|
-
|
42
|
+
nidx__protos_dot_noderesources__pb2 = nidx__protos_dot_nodewriter__pb2.nidx_protos.noderesources_pb2
|
43
43
|
try:
|
44
|
-
nucliadb__protos_dot_utils__pb2 =
|
44
|
+
nucliadb__protos_dot_utils__pb2 = nidx__protos_dot_nodewriter__pb2.nucliadb__protos_dot_utils__pb2
|
45
45
|
except AttributeError:
|
46
|
-
nucliadb__protos_dot_utils__pb2 =
|
46
|
+
nucliadb__protos_dot_utils__pb2 = nidx__protos_dot_nodewriter__pb2.nucliadb_protos.utils_pb2
|
47
47
|
|
48
48
|
|
49
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\
|
49
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16nidx_protos/nidx.proto\x12\x04nidx\x1a\x1cnidx_protos/nodereader.proto\x1a\x1cnidx_protos/nodewriter.proto\"\x92\x01\n\x0cNotification\x12\x0c\n\x04uuid\x18\x03 \x01(\t\x12\x0c\n\x04kbid\x18\x04 \x01(\t\x12\r\n\x05seqid\x18\x05 \x01(\x03\x12)\n\x06\x61\x63tion\x18\x06 \x01(\x0e\x32\x19.nidx.Notification.Action\",\n\x06\x41\x63tion\x12\n\n\x06\x43OMMIT\x10\x00\x12\t\n\x05\x41\x42ORT\x10\x01\x12\x0b\n\x07INDEXED\x10\x02\x32\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\xf7\x02\n\x0cNidxSearcher\x12\x41\n\x06Search\x12\x19.nodereader.SearchRequest\x1a\x1a.nodereader.SearchResponse\"\x00\x12P\n\x0bGraphSearch\x12\x1e.nodereader.GraphSearchRequest\x1a\x1f.nodereader.GraphSearchResponse\"\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')
|
50
50
|
|
51
51
|
_globals = globals()
|
52
52
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
53
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidx_pb2', _globals)
|
53
|
+
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidx_protos.nidx_pb2', _globals)
|
54
54
|
if not _descriptor._USE_C_DESCRIPTORS:
|
55
55
|
DESCRIPTOR._loaded_options = None
|
56
|
-
_globals['_NOTIFICATION']._serialized_start=
|
57
|
-
_globals['_NOTIFICATION']._serialized_end=
|
58
|
-
_globals['_NOTIFICATION_ACTION']._serialized_start=
|
59
|
-
_globals['_NOTIFICATION_ACTION']._serialized_end=
|
60
|
-
_globals['_NIDXAPI']._serialized_start=
|
61
|
-
_globals['_NIDXAPI']._serialized_end=
|
62
|
-
_globals['_NIDXSEARCHER']._serialized_start=
|
63
|
-
_globals['_NIDXSEARCHER']._serialized_end=
|
64
|
-
_globals['_NIDXINDEXER']._serialized_start=
|
65
|
-
_globals['_NIDXINDEXER']._serialized_end=
|
56
|
+
_globals['_NOTIFICATION']._serialized_start=93
|
57
|
+
_globals['_NOTIFICATION']._serialized_end=239
|
58
|
+
_globals['_NOTIFICATION_ACTION']._serialized_start=195
|
59
|
+
_globals['_NOTIFICATION_ACTION']._serialized_end=239
|
60
|
+
_globals['_NIDXAPI']._serialized_start=242
|
61
|
+
_globals['_NIDXAPI']._serialized_end=812
|
62
|
+
_globals['_NIDXSEARCHER']._serialized_start=815
|
63
|
+
_globals['_NIDXSEARCHER']._serialized_end=1190
|
64
|
+
_globals['_NIDXINDEXER']._serialized_start=1192
|
65
|
+
_globals['_NIDXINDEXER']._serialized_end=1264
|
66
66
|
# @@protoc_insertion_point(module_scope)
|
nidx_protos/nidx_pb2.pyi
CHANGED
@@ -1,31 +1,59 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
1
|
+
"""
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
3
|
+
isort:skip_file
|
4
|
+
"""
|
5
|
+
|
6
|
+
import builtins
|
7
|
+
import google.protobuf.descriptor
|
8
|
+
import google.protobuf.internal.enum_type_wrapper
|
9
|
+
import google.protobuf.message
|
10
|
+
import sys
|
11
|
+
import typing
|
12
|
+
|
13
|
+
if sys.version_info >= (3, 10):
|
14
|
+
import typing as typing_extensions
|
15
|
+
else:
|
16
|
+
import typing_extensions
|
17
|
+
|
18
|
+
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
19
|
+
|
20
|
+
@typing.final
|
21
|
+
class Notification(google.protobuf.message.Message):
|
22
|
+
"""This is a subset from writer.proto, with the things we need for notifications"""
|
23
|
+
|
24
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
25
|
+
|
26
|
+
class _Action:
|
27
|
+
ValueType = typing.NewType("ValueType", builtins.int)
|
28
|
+
V: typing_extensions.TypeAlias = ValueType
|
29
|
+
|
30
|
+
class _ActionEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Notification._Action.ValueType], builtins.type):
|
31
|
+
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
32
|
+
COMMIT: Notification._Action.ValueType # 0
|
33
|
+
ABORT: Notification._Action.ValueType # 1
|
34
|
+
INDEXED: Notification._Action.ValueType # 2
|
35
|
+
|
36
|
+
class Action(_Action, metaclass=_ActionEnumTypeWrapper): ...
|
37
|
+
COMMIT: Notification.Action.ValueType # 0
|
38
|
+
ABORT: Notification.Action.ValueType # 1
|
39
|
+
INDEXED: Notification.Action.ValueType # 2
|
40
|
+
|
41
|
+
UUID_FIELD_NUMBER: builtins.int
|
42
|
+
KBID_FIELD_NUMBER: builtins.int
|
43
|
+
SEQID_FIELD_NUMBER: builtins.int
|
44
|
+
ACTION_FIELD_NUMBER: builtins.int
|
45
|
+
uuid: builtins.str
|
46
|
+
kbid: builtins.str
|
47
|
+
seqid: builtins.int
|
48
|
+
action: global___Notification.Action.ValueType
|
49
|
+
def __init__(
|
50
|
+
self,
|
51
|
+
*,
|
52
|
+
uuid: builtins.str = ...,
|
53
|
+
kbid: builtins.str = ...,
|
54
|
+
seqid: builtins.int = ...,
|
55
|
+
action: global___Notification.Action.ValueType = ...,
|
56
|
+
) -> None: ...
|
57
|
+
def ClearField(self, field_name: typing.Literal["action", b"action", "kbid", b"kbid", "seqid", b"seqid", "uuid", b"uuid"]) -> None: ...
|
58
|
+
|
59
|
+
global___Notification = Notification
|
nidx_protos/nidx_pb2_grpc.py
CHANGED
@@ -3,9 +3,9 @@
|
|
3
3
|
import grpc
|
4
4
|
import warnings
|
5
5
|
|
6
|
-
from
|
7
|
-
from
|
8
|
-
from
|
6
|
+
from nidx_protos import nodereader_pb2 as nidx__protos_dot_nodereader__pb2
|
7
|
+
from nidx_protos import noderesources_pb2 as nidx__protos_dot_noderesources__pb2
|
8
|
+
from nidx_protos import nodewriter_pb2 as nidx__protos_dot_nodewriter__pb2
|
9
9
|
|
10
10
|
GRPC_GENERATED_VERSION = '1.71.0'
|
11
11
|
GRPC_VERSION = grpc.__version__
|
@@ -20,7 +20,7 @@ except ImportError:
|
|
20
20
|
if _version_not_supported:
|
21
21
|
raise RuntimeError(
|
22
22
|
f'The grpc package installed is at version {GRPC_VERSION},'
|
23
|
-
+ f' but the generated code in nidx_pb2_grpc.py depends on'
|
23
|
+
+ f' but the generated code in nidx_protos/nidx_pb2_grpc.py depends on'
|
24
24
|
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
25
25
|
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
26
26
|
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
@@ -38,43 +38,43 @@ class NidxApiStub(object):
|
|
38
38
|
"""
|
39
39
|
self.GetShard = channel.unary_unary(
|
40
40
|
'/nidx.NidxApi/GetShard',
|
41
|
-
request_serializer=
|
42
|
-
response_deserializer=
|
41
|
+
request_serializer=nidx__protos_dot_nodereader__pb2.GetShardRequest.SerializeToString,
|
42
|
+
response_deserializer=nidx__protos_dot_noderesources__pb2.Shard.FromString,
|
43
43
|
_registered_method=True)
|
44
44
|
self.NewShard = channel.unary_unary(
|
45
45
|
'/nidx.NidxApi/NewShard',
|
46
|
-
request_serializer=
|
47
|
-
response_deserializer=
|
46
|
+
request_serializer=nidx__protos_dot_nodewriter__pb2.NewShardRequest.SerializeToString,
|
47
|
+
response_deserializer=nidx__protos_dot_noderesources__pb2.ShardCreated.FromString,
|
48
48
|
_registered_method=True)
|
49
49
|
self.DeleteShard = channel.unary_unary(
|
50
50
|
'/nidx.NidxApi/DeleteShard',
|
51
|
-
request_serializer=
|
52
|
-
response_deserializer=
|
51
|
+
request_serializer=nidx__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
52
|
+
response_deserializer=nidx__protos_dot_noderesources__pb2.ShardId.FromString,
|
53
53
|
_registered_method=True)
|
54
54
|
self.ListShards = channel.unary_unary(
|
55
55
|
'/nidx.NidxApi/ListShards',
|
56
|
-
request_serializer=
|
57
|
-
response_deserializer=
|
56
|
+
request_serializer=nidx__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
57
|
+
response_deserializer=nidx__protos_dot_noderesources__pb2.ShardIds.FromString,
|
58
58
|
_registered_method=True)
|
59
59
|
self.AddVectorSet = channel.unary_unary(
|
60
60
|
'/nidx.NidxApi/AddVectorSet',
|
61
|
-
request_serializer=
|
62
|
-
response_deserializer=
|
61
|
+
request_serializer=nidx__protos_dot_nodewriter__pb2.NewVectorSetRequest.SerializeToString,
|
62
|
+
response_deserializer=nidx__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
63
63
|
_registered_method=True)
|
64
64
|
self.RemoveVectorSet = channel.unary_unary(
|
65
65
|
'/nidx.NidxApi/RemoveVectorSet',
|
66
|
-
request_serializer=
|
67
|
-
response_deserializer=
|
66
|
+
request_serializer=nidx__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
|
67
|
+
response_deserializer=nidx__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
68
68
|
_registered_method=True)
|
69
69
|
self.ListVectorSets = channel.unary_unary(
|
70
70
|
'/nidx.NidxApi/ListVectorSets',
|
71
|
-
request_serializer=
|
72
|
-
response_deserializer=
|
71
|
+
request_serializer=nidx__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
72
|
+
response_deserializer=nidx__protos_dot_noderesources__pb2.VectorSetList.FromString,
|
73
73
|
_registered_method=True)
|
74
74
|
self.GetMetadata = channel.unary_unary(
|
75
75
|
'/nidx.NidxApi/GetMetadata',
|
76
|
-
request_serializer=
|
77
|
-
response_deserializer=
|
76
|
+
request_serializer=nidx__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
77
|
+
response_deserializer=nidx__protos_dot_noderesources__pb2.NodeMetadata.FromString,
|
78
78
|
_registered_method=True)
|
79
79
|
|
80
80
|
|
@@ -134,43 +134,43 @@ def add_NidxApiServicer_to_server(servicer, server):
|
|
134
134
|
rpc_method_handlers = {
|
135
135
|
'GetShard': grpc.unary_unary_rpc_method_handler(
|
136
136
|
servicer.GetShard,
|
137
|
-
request_deserializer=
|
138
|
-
response_serializer=
|
137
|
+
request_deserializer=nidx__protos_dot_nodereader__pb2.GetShardRequest.FromString,
|
138
|
+
response_serializer=nidx__protos_dot_noderesources__pb2.Shard.SerializeToString,
|
139
139
|
),
|
140
140
|
'NewShard': grpc.unary_unary_rpc_method_handler(
|
141
141
|
servicer.NewShard,
|
142
|
-
request_deserializer=
|
143
|
-
response_serializer=
|
142
|
+
request_deserializer=nidx__protos_dot_nodewriter__pb2.NewShardRequest.FromString,
|
143
|
+
response_serializer=nidx__protos_dot_noderesources__pb2.ShardCreated.SerializeToString,
|
144
144
|
),
|
145
145
|
'DeleteShard': grpc.unary_unary_rpc_method_handler(
|
146
146
|
servicer.DeleteShard,
|
147
|
-
request_deserializer=
|
148
|
-
response_serializer=
|
147
|
+
request_deserializer=nidx__protos_dot_noderesources__pb2.ShardId.FromString,
|
148
|
+
response_serializer=nidx__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
149
149
|
),
|
150
150
|
'ListShards': grpc.unary_unary_rpc_method_handler(
|
151
151
|
servicer.ListShards,
|
152
|
-
request_deserializer=
|
153
|
-
response_serializer=
|
152
|
+
request_deserializer=nidx__protos_dot_noderesources__pb2.EmptyQuery.FromString,
|
153
|
+
response_serializer=nidx__protos_dot_noderesources__pb2.ShardIds.SerializeToString,
|
154
154
|
),
|
155
155
|
'AddVectorSet': grpc.unary_unary_rpc_method_handler(
|
156
156
|
servicer.AddVectorSet,
|
157
|
-
request_deserializer=
|
158
|
-
response_serializer=
|
157
|
+
request_deserializer=nidx__protos_dot_nodewriter__pb2.NewVectorSetRequest.FromString,
|
158
|
+
response_serializer=nidx__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
|
159
159
|
),
|
160
160
|
'RemoveVectorSet': grpc.unary_unary_rpc_method_handler(
|
161
161
|
servicer.RemoveVectorSet,
|
162
|
-
request_deserializer=
|
163
|
-
response_serializer=
|
162
|
+
request_deserializer=nidx__protos_dot_noderesources__pb2.VectorSetID.FromString,
|
163
|
+
response_serializer=nidx__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
|
164
164
|
),
|
165
165
|
'ListVectorSets': grpc.unary_unary_rpc_method_handler(
|
166
166
|
servicer.ListVectorSets,
|
167
|
-
request_deserializer=
|
168
|
-
response_serializer=
|
167
|
+
request_deserializer=nidx__protos_dot_noderesources__pb2.ShardId.FromString,
|
168
|
+
response_serializer=nidx__protos_dot_noderesources__pb2.VectorSetList.SerializeToString,
|
169
169
|
),
|
170
170
|
'GetMetadata': grpc.unary_unary_rpc_method_handler(
|
171
171
|
servicer.GetMetadata,
|
172
|
-
request_deserializer=
|
173
|
-
response_serializer=
|
172
|
+
request_deserializer=nidx__protos_dot_noderesources__pb2.EmptyQuery.FromString,
|
173
|
+
response_serializer=nidx__protos_dot_noderesources__pb2.NodeMetadata.SerializeToString,
|
174
174
|
),
|
175
175
|
}
|
176
176
|
generic_handler = grpc.method_handlers_generic_handler(
|
@@ -198,8 +198,8 @@ class NidxApi(object):
|
|
198
198
|
request,
|
199
199
|
target,
|
200
200
|
'/nidx.NidxApi/GetShard',
|
201
|
-
|
202
|
-
|
201
|
+
nidx__protos_dot_nodereader__pb2.GetShardRequest.SerializeToString,
|
202
|
+
nidx__protos_dot_noderesources__pb2.Shard.FromString,
|
203
203
|
options,
|
204
204
|
channel_credentials,
|
205
205
|
insecure,
|
@@ -225,8 +225,8 @@ class NidxApi(object):
|
|
225
225
|
request,
|
226
226
|
target,
|
227
227
|
'/nidx.NidxApi/NewShard',
|
228
|
-
|
229
|
-
|
228
|
+
nidx__protos_dot_nodewriter__pb2.NewShardRequest.SerializeToString,
|
229
|
+
nidx__protos_dot_noderesources__pb2.ShardCreated.FromString,
|
230
230
|
options,
|
231
231
|
channel_credentials,
|
232
232
|
insecure,
|
@@ -252,8 +252,8 @@ class NidxApi(object):
|
|
252
252
|
request,
|
253
253
|
target,
|
254
254
|
'/nidx.NidxApi/DeleteShard',
|
255
|
-
|
256
|
-
|
255
|
+
nidx__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
256
|
+
nidx__protos_dot_noderesources__pb2.ShardId.FromString,
|
257
257
|
options,
|
258
258
|
channel_credentials,
|
259
259
|
insecure,
|
@@ -279,8 +279,8 @@ class NidxApi(object):
|
|
279
279
|
request,
|
280
280
|
target,
|
281
281
|
'/nidx.NidxApi/ListShards',
|
282
|
-
|
283
|
-
|
282
|
+
nidx__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
283
|
+
nidx__protos_dot_noderesources__pb2.ShardIds.FromString,
|
284
284
|
options,
|
285
285
|
channel_credentials,
|
286
286
|
insecure,
|
@@ -306,8 +306,8 @@ class NidxApi(object):
|
|
306
306
|
request,
|
307
307
|
target,
|
308
308
|
'/nidx.NidxApi/AddVectorSet',
|
309
|
-
|
310
|
-
|
309
|
+
nidx__protos_dot_nodewriter__pb2.NewVectorSetRequest.SerializeToString,
|
310
|
+
nidx__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
311
311
|
options,
|
312
312
|
channel_credentials,
|
313
313
|
insecure,
|
@@ -333,8 +333,8 @@ class NidxApi(object):
|
|
333
333
|
request,
|
334
334
|
target,
|
335
335
|
'/nidx.NidxApi/RemoveVectorSet',
|
336
|
-
|
337
|
-
|
336
|
+
nidx__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
|
337
|
+
nidx__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
338
338
|
options,
|
339
339
|
channel_credentials,
|
340
340
|
insecure,
|
@@ -360,8 +360,8 @@ class NidxApi(object):
|
|
360
360
|
request,
|
361
361
|
target,
|
362
362
|
'/nidx.NidxApi/ListVectorSets',
|
363
|
-
|
364
|
-
|
363
|
+
nidx__protos_dot_noderesources__pb2.ShardId.SerializeToString,
|
364
|
+
nidx__protos_dot_noderesources__pb2.VectorSetList.FromString,
|
365
365
|
options,
|
366
366
|
channel_credentials,
|
367
367
|
insecure,
|
@@ -387,8 +387,8 @@ class NidxApi(object):
|
|
387
387
|
request,
|
388
388
|
target,
|
389
389
|
'/nidx.NidxApi/GetMetadata',
|
390
|
-
|
391
|
-
|
390
|
+
nidx__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
391
|
+
nidx__protos_dot_noderesources__pb2.NodeMetadata.FromString,
|
392
392
|
options,
|
393
393
|
channel_credentials,
|
394
394
|
insecure,
|
@@ -411,28 +411,28 @@ class NidxSearcherStub(object):
|
|
411
411
|
"""
|
412
412
|
self.Search = channel.unary_unary(
|
413
413
|
'/nidx.NidxSearcher/Search',
|
414
|
-
request_serializer=
|
415
|
-
response_deserializer=
|
414
|
+
request_serializer=nidx__protos_dot_nodereader__pb2.SearchRequest.SerializeToString,
|
415
|
+
response_deserializer=nidx__protos_dot_nodereader__pb2.SearchResponse.FromString,
|
416
416
|
_registered_method=True)
|
417
417
|
self.GraphSearch = channel.unary_unary(
|
418
418
|
'/nidx.NidxSearcher/GraphSearch',
|
419
|
-
request_serializer=
|
420
|
-
response_deserializer=
|
419
|
+
request_serializer=nidx__protos_dot_nodereader__pb2.GraphSearchRequest.SerializeToString,
|
420
|
+
response_deserializer=nidx__protos_dot_nodereader__pb2.GraphSearchResponse.FromString,
|
421
421
|
_registered_method=True)
|
422
422
|
self.Suggest = channel.unary_unary(
|
423
423
|
'/nidx.NidxSearcher/Suggest',
|
424
|
-
request_serializer=
|
425
|
-
response_deserializer=
|
424
|
+
request_serializer=nidx__protos_dot_nodereader__pb2.SuggestRequest.SerializeToString,
|
425
|
+
response_deserializer=nidx__protos_dot_nodereader__pb2.SuggestResponse.FromString,
|
426
426
|
_registered_method=True)
|
427
427
|
self.Paragraphs = channel.unary_stream(
|
428
428
|
'/nidx.NidxSearcher/Paragraphs',
|
429
|
-
request_serializer=
|
430
|
-
response_deserializer=
|
429
|
+
request_serializer=nidx__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
|
430
|
+
response_deserializer=nidx__protos_dot_nodereader__pb2.ParagraphItem.FromString,
|
431
431
|
_registered_method=True)
|
432
432
|
self.Documents = channel.unary_stream(
|
433
433
|
'/nidx.NidxSearcher/Documents',
|
434
|
-
request_serializer=
|
435
|
-
response_deserializer=
|
434
|
+
request_serializer=nidx__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
|
435
|
+
response_deserializer=nidx__protos_dot_nodereader__pb2.DocumentItem.FromString,
|
436
436
|
_registered_method=True)
|
437
437
|
|
438
438
|
|
@@ -475,28 +475,28 @@ def add_NidxSearcherServicer_to_server(servicer, server):
|
|
475
475
|
rpc_method_handlers = {
|
476
476
|
'Search': grpc.unary_unary_rpc_method_handler(
|
477
477
|
servicer.Search,
|
478
|
-
request_deserializer=
|
479
|
-
response_serializer=
|
478
|
+
request_deserializer=nidx__protos_dot_nodereader__pb2.SearchRequest.FromString,
|
479
|
+
response_serializer=nidx__protos_dot_nodereader__pb2.SearchResponse.SerializeToString,
|
480
480
|
),
|
481
481
|
'GraphSearch': grpc.unary_unary_rpc_method_handler(
|
482
482
|
servicer.GraphSearch,
|
483
|
-
request_deserializer=
|
484
|
-
response_serializer=
|
483
|
+
request_deserializer=nidx__protos_dot_nodereader__pb2.GraphSearchRequest.FromString,
|
484
|
+
response_serializer=nidx__protos_dot_nodereader__pb2.GraphSearchResponse.SerializeToString,
|
485
485
|
),
|
486
486
|
'Suggest': grpc.unary_unary_rpc_method_handler(
|
487
487
|
servicer.Suggest,
|
488
|
-
request_deserializer=
|
489
|
-
response_serializer=
|
488
|
+
request_deserializer=nidx__protos_dot_nodereader__pb2.SuggestRequest.FromString,
|
489
|
+
response_serializer=nidx__protos_dot_nodereader__pb2.SuggestResponse.SerializeToString,
|
490
490
|
),
|
491
491
|
'Paragraphs': grpc.unary_stream_rpc_method_handler(
|
492
492
|
servicer.Paragraphs,
|
493
|
-
request_deserializer=
|
494
|
-
response_serializer=
|
493
|
+
request_deserializer=nidx__protos_dot_nodereader__pb2.StreamRequest.FromString,
|
494
|
+
response_serializer=nidx__protos_dot_nodereader__pb2.ParagraphItem.SerializeToString,
|
495
495
|
),
|
496
496
|
'Documents': grpc.unary_stream_rpc_method_handler(
|
497
497
|
servicer.Documents,
|
498
|
-
request_deserializer=
|
499
|
-
response_serializer=
|
498
|
+
request_deserializer=nidx__protos_dot_nodereader__pb2.StreamRequest.FromString,
|
499
|
+
response_serializer=nidx__protos_dot_nodereader__pb2.DocumentItem.SerializeToString,
|
500
500
|
),
|
501
501
|
}
|
502
502
|
generic_handler = grpc.method_handlers_generic_handler(
|
@@ -524,8 +524,8 @@ class NidxSearcher(object):
|
|
524
524
|
request,
|
525
525
|
target,
|
526
526
|
'/nidx.NidxSearcher/Search',
|
527
|
-
|
528
|
-
|
527
|
+
nidx__protos_dot_nodereader__pb2.SearchRequest.SerializeToString,
|
528
|
+
nidx__protos_dot_nodereader__pb2.SearchResponse.FromString,
|
529
529
|
options,
|
530
530
|
channel_credentials,
|
531
531
|
insecure,
|
@@ -551,8 +551,8 @@ class NidxSearcher(object):
|
|
551
551
|
request,
|
552
552
|
target,
|
553
553
|
'/nidx.NidxSearcher/GraphSearch',
|
554
|
-
|
555
|
-
|
554
|
+
nidx__protos_dot_nodereader__pb2.GraphSearchRequest.SerializeToString,
|
555
|
+
nidx__protos_dot_nodereader__pb2.GraphSearchResponse.FromString,
|
556
556
|
options,
|
557
557
|
channel_credentials,
|
558
558
|
insecure,
|
@@ -578,8 +578,8 @@ class NidxSearcher(object):
|
|
578
578
|
request,
|
579
579
|
target,
|
580
580
|
'/nidx.NidxSearcher/Suggest',
|
581
|
-
|
582
|
-
|
581
|
+
nidx__protos_dot_nodereader__pb2.SuggestRequest.SerializeToString,
|
582
|
+
nidx__protos_dot_nodereader__pb2.SuggestResponse.FromString,
|
583
583
|
options,
|
584
584
|
channel_credentials,
|
585
585
|
insecure,
|
@@ -605,8 +605,8 @@ class NidxSearcher(object):
|
|
605
605
|
request,
|
606
606
|
target,
|
607
607
|
'/nidx.NidxSearcher/Paragraphs',
|
608
|
-
|
609
|
-
|
608
|
+
nidx__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
|
609
|
+
nidx__protos_dot_nodereader__pb2.ParagraphItem.FromString,
|
610
610
|
options,
|
611
611
|
channel_credentials,
|
612
612
|
insecure,
|
@@ -632,8 +632,8 @@ class NidxSearcher(object):
|
|
632
632
|
request,
|
633
633
|
target,
|
634
634
|
'/nidx.NidxSearcher/Documents',
|
635
|
-
|
636
|
-
|
635
|
+
nidx__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
|
636
|
+
nidx__protos_dot_nodereader__pb2.DocumentItem.FromString,
|
637
637
|
options,
|
638
638
|
channel_credentials,
|
639
639
|
insecure,
|
@@ -656,8 +656,8 @@ class NidxIndexerStub(object):
|
|
656
656
|
"""
|
657
657
|
self.Index = channel.unary_unary(
|
658
658
|
'/nidx.NidxIndexer/Index',
|
659
|
-
request_serializer=
|
660
|
-
response_deserializer=
|
659
|
+
request_serializer=nidx__protos_dot_nodewriter__pb2.IndexMessage.SerializeToString,
|
660
|
+
response_deserializer=nidx__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
661
661
|
_registered_method=True)
|
662
662
|
|
663
663
|
|
@@ -675,8 +675,8 @@ def add_NidxIndexerServicer_to_server(servicer, server):
|
|
675
675
|
rpc_method_handlers = {
|
676
676
|
'Index': grpc.unary_unary_rpc_method_handler(
|
677
677
|
servicer.Index,
|
678
|
-
request_deserializer=
|
679
|
-
response_serializer=
|
678
|
+
request_deserializer=nidx__protos_dot_nodewriter__pb2.IndexMessage.FromString,
|
679
|
+
response_serializer=nidx__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
|
680
680
|
),
|
681
681
|
}
|
682
682
|
generic_handler = grpc.method_handlers_generic_handler(
|
@@ -704,8 +704,8 @@ class NidxIndexer(object):
|
|
704
704
|
request,
|
705
705
|
target,
|
706
706
|
'/nidx.NidxIndexer/Index',
|
707
|
-
|
708
|
-
|
707
|
+
nidx__protos_dot_nodewriter__pb2.IndexMessage.SerializeToString,
|
708
|
+
nidx__protos_dot_nodewriter__pb2.OpStatus.FromString,
|
709
709
|
options,
|
710
710
|
channel_credentials,
|
711
711
|
insecure,
|