nidx-protos 6.2.1.post2949__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.
.gitignore ADDED
@@ -0,0 +1 @@
1
+ *
@@ -0,0 +1,50 @@
1
+ # -*- coding: utf-8 -*-
2
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
3
+ # source: nidx.proto
4
+ # Protobuf Python Version: 4.25.1
5
+ """Generated protocol buffer code."""
6
+ from google.protobuf import descriptor as _descriptor
7
+ from google.protobuf import descriptor_pool as _descriptor_pool
8
+ from google.protobuf import symbol_database as _symbol_database
9
+ from google.protobuf.internal import builder as _builder
10
+ # @@protoc_insertion_point(imports)
11
+
12
+ _sym_db = _symbol_database.Default()
13
+
14
+
15
+ from nucliadb_protos import nodereader_pb2 as nucliadb__protos_dot_nodereader__pb2
16
+ try:
17
+ nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb__protos_dot_noderesources__pb2
18
+ except AttributeError:
19
+ nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb_protos.noderesources_pb2
20
+ try:
21
+ nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb__protos_dot_utils__pb2
22
+ except AttributeError:
23
+ nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb_protos.utils_pb2
24
+ try:
25
+ nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb__protos_dot_utils__pb2
26
+ except AttributeError:
27
+ nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_nodereader__pb2.nucliadb_protos.utils_pb2
28
+ from nucliadb_protos import nodewriter_pb2 as nucliadb__protos_dot_nodewriter__pb2
29
+ try:
30
+ nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_nodewriter__pb2.nucliadb__protos_dot_noderesources__pb2
31
+ except AttributeError:
32
+ nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_nodewriter__pb2.nucliadb_protos.noderesources_pb2
33
+ try:
34
+ nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_nodewriter__pb2.nucliadb__protos_dot_utils__pb2
35
+ except AttributeError:
36
+ nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_nodewriter__pb2.nucliadb_protos.utils_pb2
37
+
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')
40
+
41
+ _globals = globals()
42
+ _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
43
+ _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nidx_pb2', _globals)
44
+ if _descriptor._USE_C_DESCRIPTORS == False:
45
+ DESCRIPTOR._options = None
46
+ _globals['_NIDXAPI']._serialized_start=89
47
+ _globals['_NIDXAPI']._serialized_end=659
48
+ _globals['_NIDXSEARCHER']._serialized_start=662
49
+ _globals['_NIDXSEARCHER']._serialized_end=955
50
+ # @@protoc_insertion_point(module_scope)
@@ -0,0 +1,9 @@
1
+ from nucliadb_protos import nodereader_pb2 as _nodereader_pb2
2
+ from nucliadb_protos import noderesources_pb2 as _noderesources_pb2
3
+ from nucliadb_protos import utils_pb2 as _utils_pb2
4
+ from nucliadb_protos import nodewriter_pb2 as _nodewriter_pb2
5
+ from nucliadb_protos import noderesources_pb2 as _noderesources_pb2_1
6
+ from google.protobuf import descriptor as _descriptor
7
+ from typing import ClassVar as _ClassVar
8
+
9
+ DESCRIPTOR: _descriptor.FileDescriptor
@@ -0,0 +1,460 @@
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
+ from nucliadb_protos import nodewriter_pb2 as nucliadb__protos_dot_nodewriter__pb2
8
+
9
+
10
+ class NidxApiStub(object):
11
+ """Missing associated documentation comment in .proto file."""
12
+
13
+ def __init__(self, channel):
14
+ """Constructor.
15
+
16
+ Args:
17
+ channel: A grpc.Channel.
18
+ """
19
+ self.GetShard = channel.unary_unary(
20
+ '/nidx.NidxApi/GetShard',
21
+ request_serializer=nucliadb__protos_dot_nodereader__pb2.GetShardRequest.SerializeToString,
22
+ response_deserializer=nucliadb__protos_dot_noderesources__pb2.Shard.FromString,
23
+ )
24
+ self.NewShard = channel.unary_unary(
25
+ '/nidx.NidxApi/NewShard',
26
+ request_serializer=nucliadb__protos_dot_nodewriter__pb2.NewShardRequest.SerializeToString,
27
+ response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardCreated.FromString,
28
+ )
29
+ self.DeleteShard = channel.unary_unary(
30
+ '/nidx.NidxApi/DeleteShard',
31
+ request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
32
+ response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
33
+ )
34
+ self.ListShards = channel.unary_unary(
35
+ '/nidx.NidxApi/ListShards',
36
+ request_serializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
37
+ response_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardIds.FromString,
38
+ )
39
+ self.AddVectorSet = channel.unary_unary(
40
+ '/nidx.NidxApi/AddVectorSet',
41
+ request_serializer=nucliadb__protos_dot_nodewriter__pb2.NewVectorSetRequest.SerializeToString,
42
+ response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
43
+ )
44
+ self.RemoveVectorSet = channel.unary_unary(
45
+ '/nidx.NidxApi/RemoveVectorSet',
46
+ request_serializer=nucliadb__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
47
+ response_deserializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
48
+ )
49
+ self.ListVectorSets = channel.unary_unary(
50
+ '/nidx.NidxApi/ListVectorSets',
51
+ request_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
52
+ response_deserializer=nucliadb__protos_dot_noderesources__pb2.VectorSetList.FromString,
53
+ )
54
+ self.GetMetadata = channel.unary_unary(
55
+ '/nidx.NidxApi/GetMetadata',
56
+ request_serializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
57
+ response_deserializer=nucliadb__protos_dot_noderesources__pb2.NodeMetadata.FromString,
58
+ )
59
+
60
+
61
+ class NidxApiServicer(object):
62
+ """Missing associated documentation comment in .proto file."""
63
+
64
+ def GetShard(self, request, context):
65
+ """Missing associated documentation comment in .proto file."""
66
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
67
+ context.set_details('Method not implemented!')
68
+ raise NotImplementedError('Method not implemented!')
69
+
70
+ def NewShard(self, request, context):
71
+ """Missing associated documentation comment in .proto file."""
72
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
73
+ context.set_details('Method not implemented!')
74
+ raise NotImplementedError('Method not implemented!')
75
+
76
+ def DeleteShard(self, request, context):
77
+ """Missing associated documentation comment in .proto file."""
78
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
79
+ context.set_details('Method not implemented!')
80
+ raise NotImplementedError('Method not implemented!')
81
+
82
+ def ListShards(self, request, context):
83
+ """Missing associated documentation comment in .proto file."""
84
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
85
+ context.set_details('Method not implemented!')
86
+ raise NotImplementedError('Method not implemented!')
87
+
88
+ def AddVectorSet(self, request, context):
89
+ """Missing associated documentation comment in .proto file."""
90
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
91
+ context.set_details('Method not implemented!')
92
+ raise NotImplementedError('Method not implemented!')
93
+
94
+ def RemoveVectorSet(self, request, context):
95
+ """Missing associated documentation comment in .proto file."""
96
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
97
+ context.set_details('Method not implemented!')
98
+ raise NotImplementedError('Method not implemented!')
99
+
100
+ def ListVectorSets(self, request, context):
101
+ """Missing associated documentation comment in .proto file."""
102
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
103
+ context.set_details('Method not implemented!')
104
+ raise NotImplementedError('Method not implemented!')
105
+
106
+ def GetMetadata(self, request, context):
107
+ """Missing associated documentation comment in .proto file."""
108
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
109
+ context.set_details('Method not implemented!')
110
+ raise NotImplementedError('Method not implemented!')
111
+
112
+
113
+ def add_NidxApiServicer_to_server(servicer, server):
114
+ rpc_method_handlers = {
115
+ 'GetShard': grpc.unary_unary_rpc_method_handler(
116
+ servicer.GetShard,
117
+ request_deserializer=nucliadb__protos_dot_nodereader__pb2.GetShardRequest.FromString,
118
+ response_serializer=nucliadb__protos_dot_noderesources__pb2.Shard.SerializeToString,
119
+ ),
120
+ 'NewShard': grpc.unary_unary_rpc_method_handler(
121
+ servicer.NewShard,
122
+ request_deserializer=nucliadb__protos_dot_nodewriter__pb2.NewShardRequest.FromString,
123
+ response_serializer=nucliadb__protos_dot_noderesources__pb2.ShardCreated.SerializeToString,
124
+ ),
125
+ 'DeleteShard': grpc.unary_unary_rpc_method_handler(
126
+ servicer.DeleteShard,
127
+ request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
128
+ response_serializer=nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
129
+ ),
130
+ 'ListShards': grpc.unary_unary_rpc_method_handler(
131
+ servicer.ListShards,
132
+ request_deserializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.FromString,
133
+ response_serializer=nucliadb__protos_dot_noderesources__pb2.ShardIds.SerializeToString,
134
+ ),
135
+ 'AddVectorSet': grpc.unary_unary_rpc_method_handler(
136
+ servicer.AddVectorSet,
137
+ request_deserializer=nucliadb__protos_dot_nodewriter__pb2.NewVectorSetRequest.FromString,
138
+ response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
139
+ ),
140
+ 'RemoveVectorSet': grpc.unary_unary_rpc_method_handler(
141
+ servicer.RemoveVectorSet,
142
+ request_deserializer=nucliadb__protos_dot_noderesources__pb2.VectorSetID.FromString,
143
+ response_serializer=nucliadb__protos_dot_nodewriter__pb2.OpStatus.SerializeToString,
144
+ ),
145
+ 'ListVectorSets': grpc.unary_unary_rpc_method_handler(
146
+ servicer.ListVectorSets,
147
+ request_deserializer=nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
148
+ response_serializer=nucliadb__protos_dot_noderesources__pb2.VectorSetList.SerializeToString,
149
+ ),
150
+ 'GetMetadata': grpc.unary_unary_rpc_method_handler(
151
+ servicer.GetMetadata,
152
+ request_deserializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.FromString,
153
+ response_serializer=nucliadb__protos_dot_noderesources__pb2.NodeMetadata.SerializeToString,
154
+ ),
155
+ }
156
+ generic_handler = grpc.method_handlers_generic_handler(
157
+ 'nidx.NidxApi', rpc_method_handlers)
158
+ server.add_generic_rpc_handlers((generic_handler,))
159
+
160
+
161
+ # This class is part of an EXPERIMENTAL API.
162
+ class NidxApi(object):
163
+ """Missing associated documentation comment in .proto file."""
164
+
165
+ @staticmethod
166
+ def GetShard(request,
167
+ target,
168
+ options=(),
169
+ channel_credentials=None,
170
+ call_credentials=None,
171
+ insecure=False,
172
+ compression=None,
173
+ wait_for_ready=None,
174
+ timeout=None,
175
+ metadata=None):
176
+ return grpc.experimental.unary_unary(request, target, '/nidx.NidxApi/GetShard',
177
+ nucliadb__protos_dot_nodereader__pb2.GetShardRequest.SerializeToString,
178
+ nucliadb__protos_dot_noderesources__pb2.Shard.FromString,
179
+ options, channel_credentials,
180
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
181
+
182
+ @staticmethod
183
+ def NewShard(request,
184
+ target,
185
+ options=(),
186
+ channel_credentials=None,
187
+ call_credentials=None,
188
+ insecure=False,
189
+ compression=None,
190
+ wait_for_ready=None,
191
+ timeout=None,
192
+ metadata=None):
193
+ return grpc.experimental.unary_unary(request, target, '/nidx.NidxApi/NewShard',
194
+ nucliadb__protos_dot_nodewriter__pb2.NewShardRequest.SerializeToString,
195
+ nucliadb__protos_dot_noderesources__pb2.ShardCreated.FromString,
196
+ options, channel_credentials,
197
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
198
+
199
+ @staticmethod
200
+ def DeleteShard(request,
201
+ target,
202
+ options=(),
203
+ channel_credentials=None,
204
+ call_credentials=None,
205
+ insecure=False,
206
+ compression=None,
207
+ wait_for_ready=None,
208
+ timeout=None,
209
+ metadata=None):
210
+ return grpc.experimental.unary_unary(request, target, '/nidx.NidxApi/DeleteShard',
211
+ nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
212
+ nucliadb__protos_dot_noderesources__pb2.ShardId.FromString,
213
+ options, channel_credentials,
214
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
215
+
216
+ @staticmethod
217
+ def ListShards(request,
218
+ target,
219
+ options=(),
220
+ channel_credentials=None,
221
+ call_credentials=None,
222
+ insecure=False,
223
+ compression=None,
224
+ wait_for_ready=None,
225
+ timeout=None,
226
+ metadata=None):
227
+ return grpc.experimental.unary_unary(request, target, '/nidx.NidxApi/ListShards',
228
+ nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
229
+ nucliadb__protos_dot_noderesources__pb2.ShardIds.FromString,
230
+ options, channel_credentials,
231
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
232
+
233
+ @staticmethod
234
+ def AddVectorSet(request,
235
+ target,
236
+ options=(),
237
+ channel_credentials=None,
238
+ call_credentials=None,
239
+ insecure=False,
240
+ compression=None,
241
+ wait_for_ready=None,
242
+ timeout=None,
243
+ metadata=None):
244
+ return grpc.experimental.unary_unary(request, target, '/nidx.NidxApi/AddVectorSet',
245
+ nucliadb__protos_dot_nodewriter__pb2.NewVectorSetRequest.SerializeToString,
246
+ nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
247
+ options, channel_credentials,
248
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
249
+
250
+ @staticmethod
251
+ def RemoveVectorSet(request,
252
+ target,
253
+ options=(),
254
+ channel_credentials=None,
255
+ call_credentials=None,
256
+ insecure=False,
257
+ compression=None,
258
+ wait_for_ready=None,
259
+ timeout=None,
260
+ metadata=None):
261
+ return grpc.experimental.unary_unary(request, target, '/nidx.NidxApi/RemoveVectorSet',
262
+ nucliadb__protos_dot_noderesources__pb2.VectorSetID.SerializeToString,
263
+ nucliadb__protos_dot_nodewriter__pb2.OpStatus.FromString,
264
+ options, channel_credentials,
265
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
266
+
267
+ @staticmethod
268
+ def ListVectorSets(request,
269
+ target,
270
+ options=(),
271
+ channel_credentials=None,
272
+ call_credentials=None,
273
+ insecure=False,
274
+ compression=None,
275
+ wait_for_ready=None,
276
+ timeout=None,
277
+ metadata=None):
278
+ return grpc.experimental.unary_unary(request, target, '/nidx.NidxApi/ListVectorSets',
279
+ nucliadb__protos_dot_noderesources__pb2.ShardId.SerializeToString,
280
+ nucliadb__protos_dot_noderesources__pb2.VectorSetList.FromString,
281
+ options, channel_credentials,
282
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
283
+
284
+ @staticmethod
285
+ def GetMetadata(request,
286
+ target,
287
+ options=(),
288
+ channel_credentials=None,
289
+ call_credentials=None,
290
+ insecure=False,
291
+ compression=None,
292
+ wait_for_ready=None,
293
+ timeout=None,
294
+ metadata=None):
295
+ return grpc.experimental.unary_unary(request, target, '/nidx.NidxApi/GetMetadata',
296
+ nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
297
+ nucliadb__protos_dot_noderesources__pb2.NodeMetadata.FromString,
298
+ options, channel_credentials,
299
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
300
+
301
+
302
+ class NidxSearcherStub(object):
303
+ """Missing associated documentation comment in .proto file."""
304
+
305
+ def __init__(self, channel):
306
+ """Constructor.
307
+
308
+ Args:
309
+ channel: A grpc.Channel.
310
+ """
311
+ self.Search = channel.unary_unary(
312
+ '/nidx.NidxSearcher/Search',
313
+ request_serializer=nucliadb__protos_dot_nodereader__pb2.SearchRequest.SerializeToString,
314
+ response_deserializer=nucliadb__protos_dot_nodereader__pb2.SearchResponse.FromString,
315
+ )
316
+ self.Suggest = channel.unary_unary(
317
+ '/nidx.NidxSearcher/Suggest',
318
+ request_serializer=nucliadb__protos_dot_nodereader__pb2.SuggestRequest.SerializeToString,
319
+ response_deserializer=nucliadb__protos_dot_nodereader__pb2.SuggestResponse.FromString,
320
+ )
321
+ self.Paragraphs = channel.unary_stream(
322
+ '/nidx.NidxSearcher/Paragraphs',
323
+ request_serializer=nucliadb__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
324
+ response_deserializer=nucliadb__protos_dot_nodereader__pb2.ParagraphItem.FromString,
325
+ )
326
+ self.Documents = channel.unary_stream(
327
+ '/nidx.NidxSearcher/Documents',
328
+ request_serializer=nucliadb__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
329
+ response_deserializer=nucliadb__protos_dot_nodereader__pb2.DocumentItem.FromString,
330
+ )
331
+
332
+
333
+ class NidxSearcherServicer(object):
334
+ """Missing associated documentation comment in .proto file."""
335
+
336
+ def Search(self, request, context):
337
+ """Missing associated documentation comment in .proto file."""
338
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
339
+ context.set_details('Method not implemented!')
340
+ raise NotImplementedError('Method not implemented!')
341
+
342
+ def Suggest(self, request, context):
343
+ """Missing associated documentation comment in .proto file."""
344
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
345
+ context.set_details('Method not implemented!')
346
+ raise NotImplementedError('Method not implemented!')
347
+
348
+ def Paragraphs(self, request, context):
349
+ """Streams
350
+ """
351
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
352
+ context.set_details('Method not implemented!')
353
+ raise NotImplementedError('Method not implemented!')
354
+
355
+ def Documents(self, request, context):
356
+ """Missing associated documentation comment in .proto file."""
357
+ context.set_code(grpc.StatusCode.UNIMPLEMENTED)
358
+ context.set_details('Method not implemented!')
359
+ raise NotImplementedError('Method not implemented!')
360
+
361
+
362
+ def add_NidxSearcherServicer_to_server(servicer, server):
363
+ rpc_method_handlers = {
364
+ 'Search': grpc.unary_unary_rpc_method_handler(
365
+ servicer.Search,
366
+ request_deserializer=nucliadb__protos_dot_nodereader__pb2.SearchRequest.FromString,
367
+ response_serializer=nucliadb__protos_dot_nodereader__pb2.SearchResponse.SerializeToString,
368
+ ),
369
+ 'Suggest': grpc.unary_unary_rpc_method_handler(
370
+ servicer.Suggest,
371
+ request_deserializer=nucliadb__protos_dot_nodereader__pb2.SuggestRequest.FromString,
372
+ response_serializer=nucliadb__protos_dot_nodereader__pb2.SuggestResponse.SerializeToString,
373
+ ),
374
+ 'Paragraphs': grpc.unary_stream_rpc_method_handler(
375
+ servicer.Paragraphs,
376
+ request_deserializer=nucliadb__protos_dot_nodereader__pb2.StreamRequest.FromString,
377
+ response_serializer=nucliadb__protos_dot_nodereader__pb2.ParagraphItem.SerializeToString,
378
+ ),
379
+ 'Documents': grpc.unary_stream_rpc_method_handler(
380
+ servicer.Documents,
381
+ request_deserializer=nucliadb__protos_dot_nodereader__pb2.StreamRequest.FromString,
382
+ response_serializer=nucliadb__protos_dot_nodereader__pb2.DocumentItem.SerializeToString,
383
+ ),
384
+ }
385
+ generic_handler = grpc.method_handlers_generic_handler(
386
+ 'nidx.NidxSearcher', rpc_method_handlers)
387
+ server.add_generic_rpc_handlers((generic_handler,))
388
+
389
+
390
+ # This class is part of an EXPERIMENTAL API.
391
+ class NidxSearcher(object):
392
+ """Missing associated documentation comment in .proto file."""
393
+
394
+ @staticmethod
395
+ def Search(request,
396
+ target,
397
+ options=(),
398
+ channel_credentials=None,
399
+ call_credentials=None,
400
+ insecure=False,
401
+ compression=None,
402
+ wait_for_ready=None,
403
+ timeout=None,
404
+ metadata=None):
405
+ return grpc.experimental.unary_unary(request, target, '/nidx.NidxSearcher/Search',
406
+ nucliadb__protos_dot_nodereader__pb2.SearchRequest.SerializeToString,
407
+ nucliadb__protos_dot_nodereader__pb2.SearchResponse.FromString,
408
+ options, channel_credentials,
409
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
410
+
411
+ @staticmethod
412
+ def Suggest(request,
413
+ target,
414
+ options=(),
415
+ channel_credentials=None,
416
+ call_credentials=None,
417
+ insecure=False,
418
+ compression=None,
419
+ wait_for_ready=None,
420
+ timeout=None,
421
+ metadata=None):
422
+ return grpc.experimental.unary_unary(request, target, '/nidx.NidxSearcher/Suggest',
423
+ nucliadb__protos_dot_nodereader__pb2.SuggestRequest.SerializeToString,
424
+ nucliadb__protos_dot_nodereader__pb2.SuggestResponse.FromString,
425
+ options, channel_credentials,
426
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
427
+
428
+ @staticmethod
429
+ def Paragraphs(request,
430
+ target,
431
+ options=(),
432
+ channel_credentials=None,
433
+ call_credentials=None,
434
+ insecure=False,
435
+ compression=None,
436
+ wait_for_ready=None,
437
+ timeout=None,
438
+ metadata=None):
439
+ return grpc.experimental.unary_stream(request, target, '/nidx.NidxSearcher/Paragraphs',
440
+ nucliadb__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
441
+ nucliadb__protos_dot_nodereader__pb2.ParagraphItem.FromString,
442
+ options, channel_credentials,
443
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
444
+
445
+ @staticmethod
446
+ def Documents(request,
447
+ target,
448
+ options=(),
449
+ channel_credentials=None,
450
+ call_credentials=None,
451
+ insecure=False,
452
+ compression=None,
453
+ wait_for_ready=None,
454
+ timeout=None,
455
+ metadata=None):
456
+ return grpc.experimental.unary_stream(request, target, '/nidx.NidxSearcher/Documents',
457
+ nucliadb__protos_dot_nodereader__pb2.StreamRequest.SerializeToString,
458
+ nucliadb__protos_dot_nodereader__pb2.DocumentItem.FromString,
459
+ options, channel_credentials,
460
+ insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
nidx_protos/py.typed ADDED
File without changes
@@ -0,0 +1,4 @@
1
+ Metadata-Version: 2.1
2
+ Name: nidx_protos
3
+ Version: 6.2.1.post2949
4
+
@@ -0,0 +1,9 @@
1
+ .gitignore,sha256=zbyuFRBda3geYggTx5x-hodA1OnMU85vX8u8Ejh630s,2
2
+ nidx_protos-6.2.1.post2949.dist-info/METADATA,sha256=i2Caa9clgmc0MaxssKVF-8wiutp_f399nIY84nvMppY,65
3
+ nidx_protos-6.2.1.post2949.dist-info/WHEEL,sha256=rsbISUvAUcl4HUjm1gKb_L9aoizBeGE4RqNs1UJntCA,94
4
+ nidx_protos-6.2.1.post2949.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.post2949.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: pdm-backend (2.4.3)
3
+ Root-Is-Purelib: true
4
+ Tag: py2.py3-none-any
@@ -0,0 +1,4 @@
1
+ [console_scripts]
2
+
3
+ [gui_scripts]
4
+