nucliadb-protos 6.3.6.post4063__py3-none-any.whl → 6.10.0.post5705__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.
- .gitignore +1 -0
- build.py +56 -0
- nucliadb_protos/audit_pb2.py +43 -46
- nucliadb_protos/audit_pb2.pyi +64 -13
- nucliadb_protos/backups_pb2.py +13 -3
- nucliadb_protos/backups_pb2_grpc.py +20 -0
- nucliadb_protos/dataset_pb2.py +13 -3
- nucliadb_protos/dataset_pb2.pyi +3 -0
- nucliadb_protos/kb_usage_pb2.py +20 -10
- nucliadb_protos/kb_usage_pb2.pyi +2 -0
- nucliadb_protos/knowledgebox_pb2.py +116 -114
- nucliadb_protos/knowledgebox_pb2.pyi +49 -28
- nucliadb_protos/migrations_pb2.py +13 -3
- nucliadb_protos/resources_pb2.py +239 -219
- nucliadb_protos/resources_pb2.pyi +100 -15
- nucliadb_protos/standalone_pb2.py +13 -3
- nucliadb_protos/standalone_pb2_grpc.py +49 -8
- nucliadb_protos/train_pb2.py +18 -40
- nucliadb_protos/train_pb2.pyi +6 -8
- nucliadb_protos/train_pb2_grpc.py +133 -32
- nucliadb_protos/train_pb2_grpc.pyi +6 -8
- nucliadb_protos/utils_pb2.py +18 -10
- nucliadb_protos/utils_pb2.pyi +0 -15
- nucliadb_protos/writer_pb2.py +140 -176
- nucliadb_protos/writer_pb2.pyi +40 -311
- nucliadb_protos/writer_pb2_grpc.py +204 -185
- nucliadb_protos/writer_pb2_grpc.pyi +11 -99
- {nucliadb_protos-6.3.6.post4063.dist-info → nucliadb_protos-6.10.0.post5705.dist-info}/METADATA +10 -10
- nucliadb_protos-6.10.0.post5705.dist-info/RECORD +37 -0
- {nucliadb_protos-6.3.6.post4063.dist-info → nucliadb_protos-6.10.0.post5705.dist-info}/WHEEL +1 -2
- nucliadb_protos-6.10.0.post5705.dist-info/entry_points.txt +4 -0
- nucliadb_protos/__init__.py +0 -0
- nucliadb_protos/nodereader_pb2.py +0 -187
- nucliadb_protos/nodereader_pb2.pyi +0 -1715
- nucliadb_protos/nodereader_pb2_grpc.py +0 -438
- nucliadb_protos/nodereader_pb2_grpc.pyi +0 -288
- nucliadb_protos/noderesources_pb2.py +0 -145
- nucliadb_protos/noderesources_pb2.pyi +0 -993
- nucliadb_protos/nodewriter_pb2.py +0 -80
- nucliadb_protos/nodewriter_pb2.pyi +0 -348
- nucliadb_protos/nodewriter_pb2_grpc.py +0 -430
- nucliadb_protos/nodewriter_pb2_grpc.pyi +0 -256
- nucliadb_protos-6.3.6.post4063.dist-info/RECORD +0 -46
- nucliadb_protos-6.3.6.post4063.dist-info/top_level.txt +0 -1
|
@@ -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 train_pb2 as nucliadb__protos_dot_train__pb2
|
|
6
7
|
from nucliadb_protos import writer_pb2 as nucliadb__protos_dot_writer__pb2
|
|
7
8
|
|
|
9
|
+
GRPC_GENERATED_VERSION = '1.76.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
|
+
+ ' but the generated code in nucliadb_protos/train_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 TrainStub(object):
|
|
10
30
|
"""Missing associated documentation comment in .proto file."""
|
|
@@ -19,42 +39,42 @@ class TrainStub(object):
|
|
|
19
39
|
'/train.Train/GetInfo',
|
|
20
40
|
request_serializer=nucliadb__protos_dot_train__pb2.GetInfoRequest.SerializeToString,
|
|
21
41
|
response_deserializer=nucliadb__protos_dot_train__pb2.TrainInfo.FromString,
|
|
22
|
-
)
|
|
42
|
+
_registered_method=True)
|
|
23
43
|
self.GetSentences = channel.unary_stream(
|
|
24
44
|
'/train.Train/GetSentences',
|
|
25
45
|
request_serializer=nucliadb__protos_dot_train__pb2.GetSentencesRequest.SerializeToString,
|
|
26
46
|
response_deserializer=nucliadb__protos_dot_train__pb2.TrainSentence.FromString,
|
|
27
|
-
)
|
|
47
|
+
_registered_method=True)
|
|
28
48
|
self.GetParagraphs = channel.unary_stream(
|
|
29
49
|
'/train.Train/GetParagraphs',
|
|
30
50
|
request_serializer=nucliadb__protos_dot_train__pb2.GetParagraphsRequest.SerializeToString,
|
|
31
51
|
response_deserializer=nucliadb__protos_dot_train__pb2.TrainParagraph.FromString,
|
|
32
|
-
)
|
|
52
|
+
_registered_method=True)
|
|
33
53
|
self.GetFields = channel.unary_stream(
|
|
34
54
|
'/train.Train/GetFields',
|
|
35
55
|
request_serializer=nucliadb__protos_dot_train__pb2.GetFieldsRequest.SerializeToString,
|
|
36
56
|
response_deserializer=nucliadb__protos_dot_train__pb2.TrainField.FromString,
|
|
37
|
-
)
|
|
57
|
+
_registered_method=True)
|
|
38
58
|
self.GetResources = channel.unary_stream(
|
|
39
59
|
'/train.Train/GetResources',
|
|
40
60
|
request_serializer=nucliadb__protos_dot_train__pb2.GetResourcesRequest.SerializeToString,
|
|
41
61
|
response_deserializer=nucliadb__protos_dot_train__pb2.TrainResource.FromString,
|
|
42
|
-
)
|
|
62
|
+
_registered_method=True)
|
|
43
63
|
self.GetOntology = channel.unary_unary(
|
|
44
64
|
'/train.Train/GetOntology',
|
|
45
65
|
request_serializer=nucliadb__protos_dot_writer__pb2.GetLabelsRequest.SerializeToString,
|
|
46
66
|
response_deserializer=nucliadb__protos_dot_writer__pb2.GetLabelsResponse.FromString,
|
|
47
|
-
)
|
|
67
|
+
_registered_method=True)
|
|
48
68
|
self.GetEntities = channel.unary_unary(
|
|
49
69
|
'/train.Train/GetEntities',
|
|
50
70
|
request_serializer=nucliadb__protos_dot_writer__pb2.GetEntitiesRequest.SerializeToString,
|
|
51
71
|
response_deserializer=nucliadb__protos_dot_writer__pb2.GetEntitiesResponse.FromString,
|
|
52
|
-
)
|
|
72
|
+
_registered_method=True)
|
|
53
73
|
self.GetOntologyCount = channel.unary_unary(
|
|
54
74
|
'/train.Train/GetOntologyCount',
|
|
55
75
|
request_serializer=nucliadb__protos_dot_train__pb2.GetLabelsetsCountRequest.SerializeToString,
|
|
56
76
|
response_deserializer=nucliadb__protos_dot_train__pb2.LabelsetsCount.FromString,
|
|
57
|
-
)
|
|
77
|
+
_registered_method=True)
|
|
58
78
|
|
|
59
79
|
|
|
60
80
|
class TrainServicer(object):
|
|
@@ -155,6 +175,7 @@ def add_TrainServicer_to_server(servicer, server):
|
|
|
155
175
|
generic_handler = grpc.method_handlers_generic_handler(
|
|
156
176
|
'train.Train', rpc_method_handlers)
|
|
157
177
|
server.add_generic_rpc_handlers((generic_handler,))
|
|
178
|
+
server.add_registered_method_handlers('train.Train', rpc_method_handlers)
|
|
158
179
|
|
|
159
180
|
|
|
160
181
|
# This class is part of an EXPERIMENTAL API.
|
|
@@ -172,11 +193,21 @@ class Train(object):
|
|
|
172
193
|
wait_for_ready=None,
|
|
173
194
|
timeout=None,
|
|
174
195
|
metadata=None):
|
|
175
|
-
return grpc.experimental.unary_unary(
|
|
196
|
+
return grpc.experimental.unary_unary(
|
|
197
|
+
request,
|
|
198
|
+
target,
|
|
199
|
+
'/train.Train/GetInfo',
|
|
176
200
|
nucliadb__protos_dot_train__pb2.GetInfoRequest.SerializeToString,
|
|
177
201
|
nucliadb__protos_dot_train__pb2.TrainInfo.FromString,
|
|
178
|
-
options,
|
|
179
|
-
|
|
202
|
+
options,
|
|
203
|
+
channel_credentials,
|
|
204
|
+
insecure,
|
|
205
|
+
call_credentials,
|
|
206
|
+
compression,
|
|
207
|
+
wait_for_ready,
|
|
208
|
+
timeout,
|
|
209
|
+
metadata,
|
|
210
|
+
_registered_method=True)
|
|
180
211
|
|
|
181
212
|
@staticmethod
|
|
182
213
|
def GetSentences(request,
|
|
@@ -189,11 +220,21 @@ class Train(object):
|
|
|
189
220
|
wait_for_ready=None,
|
|
190
221
|
timeout=None,
|
|
191
222
|
metadata=None):
|
|
192
|
-
return grpc.experimental.unary_stream(
|
|
223
|
+
return grpc.experimental.unary_stream(
|
|
224
|
+
request,
|
|
225
|
+
target,
|
|
226
|
+
'/train.Train/GetSentences',
|
|
193
227
|
nucliadb__protos_dot_train__pb2.GetSentencesRequest.SerializeToString,
|
|
194
228
|
nucliadb__protos_dot_train__pb2.TrainSentence.FromString,
|
|
195
|
-
options,
|
|
196
|
-
|
|
229
|
+
options,
|
|
230
|
+
channel_credentials,
|
|
231
|
+
insecure,
|
|
232
|
+
call_credentials,
|
|
233
|
+
compression,
|
|
234
|
+
wait_for_ready,
|
|
235
|
+
timeout,
|
|
236
|
+
metadata,
|
|
237
|
+
_registered_method=True)
|
|
197
238
|
|
|
198
239
|
@staticmethod
|
|
199
240
|
def GetParagraphs(request,
|
|
@@ -206,11 +247,21 @@ class Train(object):
|
|
|
206
247
|
wait_for_ready=None,
|
|
207
248
|
timeout=None,
|
|
208
249
|
metadata=None):
|
|
209
|
-
return grpc.experimental.unary_stream(
|
|
250
|
+
return grpc.experimental.unary_stream(
|
|
251
|
+
request,
|
|
252
|
+
target,
|
|
253
|
+
'/train.Train/GetParagraphs',
|
|
210
254
|
nucliadb__protos_dot_train__pb2.GetParagraphsRequest.SerializeToString,
|
|
211
255
|
nucliadb__protos_dot_train__pb2.TrainParagraph.FromString,
|
|
212
|
-
options,
|
|
213
|
-
|
|
256
|
+
options,
|
|
257
|
+
channel_credentials,
|
|
258
|
+
insecure,
|
|
259
|
+
call_credentials,
|
|
260
|
+
compression,
|
|
261
|
+
wait_for_ready,
|
|
262
|
+
timeout,
|
|
263
|
+
metadata,
|
|
264
|
+
_registered_method=True)
|
|
214
265
|
|
|
215
266
|
@staticmethod
|
|
216
267
|
def GetFields(request,
|
|
@@ -223,11 +274,21 @@ class Train(object):
|
|
|
223
274
|
wait_for_ready=None,
|
|
224
275
|
timeout=None,
|
|
225
276
|
metadata=None):
|
|
226
|
-
return grpc.experimental.unary_stream(
|
|
277
|
+
return grpc.experimental.unary_stream(
|
|
278
|
+
request,
|
|
279
|
+
target,
|
|
280
|
+
'/train.Train/GetFields',
|
|
227
281
|
nucliadb__protos_dot_train__pb2.GetFieldsRequest.SerializeToString,
|
|
228
282
|
nucliadb__protos_dot_train__pb2.TrainField.FromString,
|
|
229
|
-
options,
|
|
230
|
-
|
|
283
|
+
options,
|
|
284
|
+
channel_credentials,
|
|
285
|
+
insecure,
|
|
286
|
+
call_credentials,
|
|
287
|
+
compression,
|
|
288
|
+
wait_for_ready,
|
|
289
|
+
timeout,
|
|
290
|
+
metadata,
|
|
291
|
+
_registered_method=True)
|
|
231
292
|
|
|
232
293
|
@staticmethod
|
|
233
294
|
def GetResources(request,
|
|
@@ -240,11 +301,21 @@ class Train(object):
|
|
|
240
301
|
wait_for_ready=None,
|
|
241
302
|
timeout=None,
|
|
242
303
|
metadata=None):
|
|
243
|
-
return grpc.experimental.unary_stream(
|
|
304
|
+
return grpc.experimental.unary_stream(
|
|
305
|
+
request,
|
|
306
|
+
target,
|
|
307
|
+
'/train.Train/GetResources',
|
|
244
308
|
nucliadb__protos_dot_train__pb2.GetResourcesRequest.SerializeToString,
|
|
245
309
|
nucliadb__protos_dot_train__pb2.TrainResource.FromString,
|
|
246
|
-
options,
|
|
247
|
-
|
|
310
|
+
options,
|
|
311
|
+
channel_credentials,
|
|
312
|
+
insecure,
|
|
313
|
+
call_credentials,
|
|
314
|
+
compression,
|
|
315
|
+
wait_for_ready,
|
|
316
|
+
timeout,
|
|
317
|
+
metadata,
|
|
318
|
+
_registered_method=True)
|
|
248
319
|
|
|
249
320
|
@staticmethod
|
|
250
321
|
def GetOntology(request,
|
|
@@ -257,11 +328,21 @@ class Train(object):
|
|
|
257
328
|
wait_for_ready=None,
|
|
258
329
|
timeout=None,
|
|
259
330
|
metadata=None):
|
|
260
|
-
return grpc.experimental.unary_unary(
|
|
331
|
+
return grpc.experimental.unary_unary(
|
|
332
|
+
request,
|
|
333
|
+
target,
|
|
334
|
+
'/train.Train/GetOntology',
|
|
261
335
|
nucliadb__protos_dot_writer__pb2.GetLabelsRequest.SerializeToString,
|
|
262
336
|
nucliadb__protos_dot_writer__pb2.GetLabelsResponse.FromString,
|
|
263
|
-
options,
|
|
264
|
-
|
|
337
|
+
options,
|
|
338
|
+
channel_credentials,
|
|
339
|
+
insecure,
|
|
340
|
+
call_credentials,
|
|
341
|
+
compression,
|
|
342
|
+
wait_for_ready,
|
|
343
|
+
timeout,
|
|
344
|
+
metadata,
|
|
345
|
+
_registered_method=True)
|
|
265
346
|
|
|
266
347
|
@staticmethod
|
|
267
348
|
def GetEntities(request,
|
|
@@ -274,11 +355,21 @@ class Train(object):
|
|
|
274
355
|
wait_for_ready=None,
|
|
275
356
|
timeout=None,
|
|
276
357
|
metadata=None):
|
|
277
|
-
return grpc.experimental.unary_unary(
|
|
358
|
+
return grpc.experimental.unary_unary(
|
|
359
|
+
request,
|
|
360
|
+
target,
|
|
361
|
+
'/train.Train/GetEntities',
|
|
278
362
|
nucliadb__protos_dot_writer__pb2.GetEntitiesRequest.SerializeToString,
|
|
279
363
|
nucliadb__protos_dot_writer__pb2.GetEntitiesResponse.FromString,
|
|
280
|
-
options,
|
|
281
|
-
|
|
364
|
+
options,
|
|
365
|
+
channel_credentials,
|
|
366
|
+
insecure,
|
|
367
|
+
call_credentials,
|
|
368
|
+
compression,
|
|
369
|
+
wait_for_ready,
|
|
370
|
+
timeout,
|
|
371
|
+
metadata,
|
|
372
|
+
_registered_method=True)
|
|
282
373
|
|
|
283
374
|
@staticmethod
|
|
284
375
|
def GetOntologyCount(request,
|
|
@@ -291,8 +382,18 @@ class Train(object):
|
|
|
291
382
|
wait_for_ready=None,
|
|
292
383
|
timeout=None,
|
|
293
384
|
metadata=None):
|
|
294
|
-
return grpc.experimental.unary_unary(
|
|
385
|
+
return grpc.experimental.unary_unary(
|
|
386
|
+
request,
|
|
387
|
+
target,
|
|
388
|
+
'/train.Train/GetOntologyCount',
|
|
295
389
|
nucliadb__protos_dot_train__pb2.GetLabelsetsCountRequest.SerializeToString,
|
|
296
390
|
nucliadb__protos_dot_train__pb2.LabelsetsCount.FromString,
|
|
297
|
-
options,
|
|
298
|
-
|
|
391
|
+
options,
|
|
392
|
+
channel_credentials,
|
|
393
|
+
insecure,
|
|
394
|
+
call_credentials,
|
|
395
|
+
compression,
|
|
396
|
+
wait_for_ready,
|
|
397
|
+
timeout,
|
|
398
|
+
metadata,
|
|
399
|
+
_registered_method=True)
|
|
@@ -18,6 +18,7 @@ from nucliadb_protos.knowledgebox_pb2 import (
|
|
|
18
18
|
CONFLICT as CONFLICT,
|
|
19
19
|
CreateExternalIndexProviderMetadata as CreateExternalIndexProviderMetadata,
|
|
20
20
|
CreatePineconeConfig as CreatePineconeConfig,
|
|
21
|
+
DENSE_F32 as DENSE_F32,
|
|
21
22
|
DeleteKnowledgeBoxResponse as DeleteKnowledgeBoxResponse,
|
|
22
23
|
DeletedEntitiesGroups as DeletedEntitiesGroups,
|
|
23
24
|
ERROR as ERROR,
|
|
@@ -51,10 +52,12 @@ from nucliadb_protos.knowledgebox_pb2 import (
|
|
|
51
52
|
TermSynonyms as TermSynonyms,
|
|
52
53
|
UNSET as UNSET,
|
|
53
54
|
UpdateKnowledgeBoxResponse as UpdateKnowledgeBoxResponse,
|
|
55
|
+
VectorIndexConfig as VectorIndexConfig,
|
|
54
56
|
VectorSet as VectorSet,
|
|
55
57
|
VectorSetConfig as VectorSetConfig,
|
|
56
58
|
VectorSetPurge as VectorSetPurge,
|
|
57
59
|
VectorSets as VectorSets,
|
|
60
|
+
VectorType as VectorType,
|
|
58
61
|
)
|
|
59
62
|
from nucliadb_protos.resources_pb2 import (
|
|
60
63
|
AllFieldIDs as AllFieldIDs,
|
|
@@ -119,6 +122,9 @@ from nucliadb_protos.resources_pb2 import (
|
|
|
119
122
|
Representation as Representation,
|
|
120
123
|
RowsPreview as RowsPreview,
|
|
121
124
|
Sentence as Sentence,
|
|
125
|
+
SplitMetadata as SplitMetadata,
|
|
126
|
+
SplitsMetadata as SplitsMetadata,
|
|
127
|
+
SyncMetadata as SyncMetadata,
|
|
122
128
|
TEXT as TEXT,
|
|
123
129
|
UserFieldMetadata as UserFieldMetadata,
|
|
124
130
|
UserMetadata as UserMetadata,
|
|
@@ -128,7 +134,6 @@ from nucliadb_protos.writer_pb2 import (
|
|
|
128
134
|
Audit as Audit,
|
|
129
135
|
BrokerMessage as BrokerMessage,
|
|
130
136
|
BrokerMessageBlobReference as BrokerMessageBlobReference,
|
|
131
|
-
DelEntitiesRequest as DelEntitiesRequest,
|
|
132
137
|
Error as Error,
|
|
133
138
|
FieldError as FieldError,
|
|
134
139
|
FieldIDStatus as FieldIDStatus,
|
|
@@ -146,23 +151,16 @@ from nucliadb_protos.writer_pb2 import (
|
|
|
146
151
|
IndexStatus as IndexStatus,
|
|
147
152
|
ListEntitiesGroupsRequest as ListEntitiesGroupsRequest,
|
|
148
153
|
ListEntitiesGroupsResponse as ListEntitiesGroupsResponse,
|
|
149
|
-
MergeEntitiesRequest as MergeEntitiesRequest,
|
|
150
|
-
NewEntitiesGroupRequest as NewEntitiesGroupRequest,
|
|
151
|
-
NewEntitiesGroupResponse as NewEntitiesGroupResponse,
|
|
152
154
|
NewKnowledgeBoxV2Request as NewKnowledgeBoxV2Request,
|
|
153
155
|
NewKnowledgeBoxV2Response as NewKnowledgeBoxV2Response,
|
|
154
156
|
Notification as Notification,
|
|
155
157
|
NotificationSource as NotificationSource,
|
|
156
158
|
OpStatusWriter as OpStatusWriter,
|
|
157
159
|
PROCESSOR as PROCESSOR,
|
|
158
|
-
SetEntitiesRequest as SetEntitiesRequest,
|
|
159
160
|
ShardObject as ShardObject,
|
|
160
|
-
ShardReplica as ShardReplica,
|
|
161
161
|
Shards as Shards,
|
|
162
162
|
SynonymsRequest as SynonymsRequest,
|
|
163
163
|
UNSET as UNSET,
|
|
164
|
-
UpdateEntitiesGroupRequest as UpdateEntitiesGroupRequest,
|
|
165
|
-
UpdateEntitiesGroupResponse as UpdateEntitiesGroupResponse,
|
|
166
164
|
WRITER as WRITER,
|
|
167
165
|
WriterStatusRequest as WriterStatusRequest,
|
|
168
166
|
WriterStatusResponse as WriterStatusResponse,
|
nucliadb_protos/utils_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/utils.proto
|
|
4
|
-
# Protobuf Python Version:
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
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
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
|
+
'',
|
|
18
|
+
'nucliadb_protos/utils.proto'
|
|
19
|
+
)
|
|
10
20
|
# @@protoc_insertion_point(imports)
|
|
11
21
|
|
|
12
22
|
_sym_db = _symbol_database.Default()
|
|
@@ -14,25 +24,23 @@ _sym_db = _symbol_database.Default()
|
|
|
14
24
|
|
|
15
25
|
|
|
16
26
|
|
|
17
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bnucliadb_protos/utils.proto\x12\x05utils\"\x98\x02\n\x08Relation\x12#\n\x06source\x18\x06 \x01(\x0b\x32\x13.utils.RelationNode\x12\x1f\n\x02to\x18\x07 \x01(\x0b\x32\x13.utils.RelationNode\x12.\n\x08relation\x18\x05 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\x16\n\x0erelation_label\x18\x08 \x01(\t\x12)\n\x08metadata\x18\t \x01(\x0b\x32\x17.utils.RelationMetadata\"S\n\x0cRelationType\x12\t\n\x05\x43HILD\x10\x00\x12\t\n\x05\x41\x42OUT\x10\x01\x12\n\n\x06\x45NTITY\x10\x02\x12\t\n\x05\x43OLAB\x10\x03\x12\x0b\n\x07SYNONYM\x10\x04\x12\t\n\x05OTHER\x10\x05\"\x9c\x02\n\x10RelationMetadata\x12\x19\n\x0cparagraph_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0csource_start\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x17\n\nsource_end\x18\x03 \x01(\x05H\x02\x88\x01\x01\x12\x15\n\x08to_start\x18\x04 \x01(\x05H\x03\x88\x01\x01\x12\x13\n\x06to_end\x18\x05 \x01(\x05H\x04\x88\x01\x01\x12&\n\x19\x64\x61ta_augmentation_task_id\x18\x06 \x01(\tH\x05\x88\x01\x01\x42\x0f\n\r_paragraph_idB\x0f\n\r_source_startB\r\n\x0b_source_endB\x0b\n\t_to_startB\t\n\x07_to_endB\x1c\n\x1a_data_augmentation_task_id\"\x96\x01\n\x0cRelationNode\x12\r\n\x05value\x18\x04 \x01(\t\x12+\n\x05ntype\x18\x05 \x01(\x0e\x32\x1c.utils.RelationNode.NodeType\x12\x0f\n\x07subtype\x18\x06 \x01(\t\"9\n\x08NodeType\x12\n\n\x06\x45NTITY\x10\x00\x12\t\n\x05LABEL\x10\x01\x12\x0c\n\x08RESOURCE\x10\x02\x12\x08\n\x04USER\x10\x03\"\xa0\x01\n\rExtractedText\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x37\n\nsplit_text\x18\x02 \x03(\x0b\x32#.utils.ExtractedText.SplitTextEntry\x12\x16\n\x0e\x64\x65leted_splits\x18\x03 \x03(\t\x1a\x30\n\x0eSplitTextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"d\n\x06Vector\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\x12\x17\n\x0fstart_paragraph\x18\x03 \x01(\x05\x12\x15\n\rend_paragraph\x18\x04 \x01(\x05\x12\x0e\n\x06vector\x18\x05 \x03(\x02\")\n\x07Vectors\x12\x1e\n\x07vectors\x18\x01 \x03(\x0b\x32\r.utils.Vector\"\xca\x01\n\x0cVectorObject\x12\x1f\n\x07vectors\x18\x01 \x01(\x0b\x32\x0e.utils.Vectors\x12<\n\rsplit_vectors\x18\x02 \x03(\x0b\x32%.utils.VectorObject.SplitVectorsEntry\x12\x16\n\x0e\x64\x65leted_splits\x18\x03 \x03(\t\x1a\x43\n\x11SplitVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1d\n\x05value\x18\x02 \x01(\x0b\x32\x0e.utils.Vectors:\x02\x38\x01\"H\n\nUserVector\x12\x0e\n\x06vector\x18\x01 \x03(\x02\x12\x0e\n\x06labels\x18\x02 \x03(\t\x12\r\n\x05start\x18\x03 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x04 \x01(\x05\"\x82\x01\n\x0bUserVectors\x12\x30\n\x07vectors\x18\x01 \x03(\x0b\x32\x1f.utils.UserVectors.VectorsEntry\x1a\x41\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12 \n\x05value\x18\x02 \x01(\x0b\x32\x11.utils.UserVector:\x02\x38\x01\"\x87\x01\n\rUserVectorSet\x12\x32\n\x07vectors\x18\x01 \x03(\x0b\x32!.utils.UserVectorSet.VectorsEntry\x1a\x42\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.utils.UserVectors:\x02\x38\x01\"\"\n\x0fUserVectorsList\x12\x0f\n\x07vectors\x18\x01 \x03(\t\"!\n\x08Security\x12\x15\n\raccess_groups\x18\x01 \x03(\t*\'\n\x10VectorSimilarity\x12\n\n\x06\x43OSINE\x10\x00\x12\x07\n\x03\x44OT\x10\x01
|
|
27
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bnucliadb_protos/utils.proto\x12\x05utils\"\x98\x02\n\x08Relation\x12#\n\x06source\x18\x06 \x01(\x0b\x32\x13.utils.RelationNode\x12\x1f\n\x02to\x18\x07 \x01(\x0b\x32\x13.utils.RelationNode\x12.\n\x08relation\x18\x05 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\x16\n\x0erelation_label\x18\x08 \x01(\t\x12)\n\x08metadata\x18\t \x01(\x0b\x32\x17.utils.RelationMetadata\"S\n\x0cRelationType\x12\t\n\x05\x43HILD\x10\x00\x12\t\n\x05\x41\x42OUT\x10\x01\x12\n\n\x06\x45NTITY\x10\x02\x12\t\n\x05\x43OLAB\x10\x03\x12\x0b\n\x07SYNONYM\x10\x04\x12\t\n\x05OTHER\x10\x05\"\x9c\x02\n\x10RelationMetadata\x12\x19\n\x0cparagraph_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0csource_start\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x17\n\nsource_end\x18\x03 \x01(\x05H\x02\x88\x01\x01\x12\x15\n\x08to_start\x18\x04 \x01(\x05H\x03\x88\x01\x01\x12\x13\n\x06to_end\x18\x05 \x01(\x05H\x04\x88\x01\x01\x12&\n\x19\x64\x61ta_augmentation_task_id\x18\x06 \x01(\tH\x05\x88\x01\x01\x42\x0f\n\r_paragraph_idB\x0f\n\r_source_startB\r\n\x0b_source_endB\x0b\n\t_to_startB\t\n\x07_to_endB\x1c\n\x1a_data_augmentation_task_id\"\x96\x01\n\x0cRelationNode\x12\r\n\x05value\x18\x04 \x01(\t\x12+\n\x05ntype\x18\x05 \x01(\x0e\x32\x1c.utils.RelationNode.NodeType\x12\x0f\n\x07subtype\x18\x06 \x01(\t\"9\n\x08NodeType\x12\n\n\x06\x45NTITY\x10\x00\x12\t\n\x05LABEL\x10\x01\x12\x0c\n\x08RESOURCE\x10\x02\x12\x08\n\x04USER\x10\x03\"\xa0\x01\n\rExtractedText\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x37\n\nsplit_text\x18\x02 \x03(\x0b\x32#.utils.ExtractedText.SplitTextEntry\x12\x16\n\x0e\x64\x65leted_splits\x18\x03 \x03(\t\x1a\x30\n\x0eSplitTextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"d\n\x06Vector\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\x12\x17\n\x0fstart_paragraph\x18\x03 \x01(\x05\x12\x15\n\rend_paragraph\x18\x04 \x01(\x05\x12\x0e\n\x06vector\x18\x05 \x03(\x02\")\n\x07Vectors\x12\x1e\n\x07vectors\x18\x01 \x03(\x0b\x32\r.utils.Vector\"\xca\x01\n\x0cVectorObject\x12\x1f\n\x07vectors\x18\x01 \x01(\x0b\x32\x0e.utils.Vectors\x12<\n\rsplit_vectors\x18\x02 \x03(\x0b\x32%.utils.VectorObject.SplitVectorsEntry\x12\x16\n\x0e\x64\x65leted_splits\x18\x03 \x03(\t\x1a\x43\n\x11SplitVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1d\n\x05value\x18\x02 \x01(\x0b\x32\x0e.utils.Vectors:\x02\x38\x01\"H\n\nUserVector\x12\x0e\n\x06vector\x18\x01 \x03(\x02\x12\x0e\n\x06labels\x18\x02 \x03(\t\x12\r\n\x05start\x18\x03 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x04 \x01(\x05\"\x82\x01\n\x0bUserVectors\x12\x30\n\x07vectors\x18\x01 \x03(\x0b\x32\x1f.utils.UserVectors.VectorsEntry\x1a\x41\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12 \n\x05value\x18\x02 \x01(\x0b\x32\x11.utils.UserVector:\x02\x38\x01\"\x87\x01\n\rUserVectorSet\x12\x32\n\x07vectors\x18\x01 \x03(\x0b\x32!.utils.UserVectorSet.VectorsEntry\x1a\x42\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.utils.UserVectors:\x02\x38\x01\"\"\n\x0fUserVectorsList\x12\x0f\n\x07vectors\x18\x01 \x03(\t\"!\n\x08Security\x12\x15\n\raccess_groups\x18\x01 \x03(\t*\'\n\x10VectorSimilarity\x12\n\n\x06\x43OSINE\x10\x00\x12\x07\n\x03\x44OT\x10\x01\x62\x06proto3')
|
|
18
28
|
|
|
19
29
|
_globals = globals()
|
|
20
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
21
31
|
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.utils_pb2', _globals)
|
|
22
|
-
if _descriptor._USE_C_DESCRIPTORS
|
|
23
|
-
DESCRIPTOR.
|
|
24
|
-
_globals['_EXTRACTEDTEXT_SPLITTEXTENTRY'].
|
|
32
|
+
if not _descriptor._USE_C_DESCRIPTORS:
|
|
33
|
+
DESCRIPTOR._loaded_options = None
|
|
34
|
+
_globals['_EXTRACTEDTEXT_SPLITTEXTENTRY']._loaded_options = None
|
|
25
35
|
_globals['_EXTRACTEDTEXT_SPLITTEXTENTRY']._serialized_options = b'8\001'
|
|
26
|
-
_globals['_VECTOROBJECT_SPLITVECTORSENTRY'].
|
|
36
|
+
_globals['_VECTOROBJECT_SPLITVECTORSENTRY']._loaded_options = None
|
|
27
37
|
_globals['_VECTOROBJECT_SPLITVECTORSENTRY']._serialized_options = b'8\001'
|
|
28
|
-
_globals['_USERVECTORS_VECTORSENTRY'].
|
|
38
|
+
_globals['_USERVECTORS_VECTORSENTRY']._loaded_options = None
|
|
29
39
|
_globals['_USERVECTORS_VECTORSENTRY']._serialized_options = b'8\001'
|
|
30
|
-
_globals['_USERVECTORSET_VECTORSENTRY'].
|
|
40
|
+
_globals['_USERVECTORSET_VECTORSENTRY']._loaded_options = None
|
|
31
41
|
_globals['_USERVECTORSET_VECTORSENTRY']._serialized_options = b'8\001'
|
|
32
42
|
_globals['_VECTORSIMILARITY']._serialized_start=1690
|
|
33
43
|
_globals['_VECTORSIMILARITY']._serialized_end=1729
|
|
34
|
-
_globals['_RELEASECHANNEL']._serialized_start=1731
|
|
35
|
-
_globals['_RELEASECHANNEL']._serialized_end=1777
|
|
36
44
|
_globals['_RELATION']._serialized_start=39
|
|
37
45
|
_globals['_RELATION']._serialized_end=319
|
|
38
46
|
_globals['_RELATION_RELATIONTYPE']._serialized_start=236
|
nucliadb_protos/utils_pb2.pyi
CHANGED
|
@@ -34,21 +34,6 @@ COSINE: VectorSimilarity.ValueType # 0
|
|
|
34
34
|
DOT: VectorSimilarity.ValueType # 1
|
|
35
35
|
global___VectorSimilarity = VectorSimilarity
|
|
36
36
|
|
|
37
|
-
class _ReleaseChannel:
|
|
38
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
39
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
40
|
-
|
|
41
|
-
class _ReleaseChannelEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[_ReleaseChannel.ValueType], builtins.type):
|
|
42
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
43
|
-
STABLE: _ReleaseChannel.ValueType # 0
|
|
44
|
-
EXPERIMENTAL: _ReleaseChannel.ValueType # 1
|
|
45
|
-
|
|
46
|
-
class ReleaseChannel(_ReleaseChannel, metaclass=_ReleaseChannelEnumTypeWrapper): ...
|
|
47
|
-
|
|
48
|
-
STABLE: ReleaseChannel.ValueType # 0
|
|
49
|
-
EXPERIMENTAL: ReleaseChannel.ValueType # 1
|
|
50
|
-
global___ReleaseChannel = ReleaseChannel
|
|
51
|
-
|
|
52
37
|
@typing.final
|
|
53
38
|
class Relation(google.protobuf.message.Message):
|
|
54
39
|
"""Relations are connexions between nodes in the relation index.
|