nucliadb-protos 6.8.1.post4988__py3-none-any.whl → 6.10.0.post5780__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.
- build.py +1 -1
- nucliadb_protos/audit_pb2.py +4 -4
- nucliadb_protos/backups_pb2.py +4 -4
- nucliadb_protos/backups_pb2_grpc.py +2 -2
- nucliadb_protos/dataset_pb2.py +4 -4
- nucliadb_protos/dataset_pb2.pyi +3 -0
- nucliadb_protos/kb_usage_pb2.py +10 -10
- nucliadb_protos/kb_usage_pb2.pyi +2 -0
- nucliadb_protos/knowledgebox_pb2.py +80 -82
- nucliadb_protos/knowledgebox_pb2.pyi +8 -8
- nucliadb_protos/migrations_pb2.py +4 -4
- nucliadb_protos/resources_pb2.py +201 -191
- nucliadb_protos/resources_pb2.pyi +77 -10
- nucliadb_protos/standalone_pb2.py +4 -4
- nucliadb_protos/standalone_pb2_grpc.py +2 -2
- nucliadb_protos/train_pb2.py +4 -4
- nucliadb_protos/train_pb2.pyi +3 -7
- nucliadb_protos/train_pb2_grpc.py +2 -2
- nucliadb_protos/train_pb2_grpc.pyi +3 -7
- nucliadb_protos/utils_pb2.py +5 -7
- nucliadb_protos/utils_pb2.pyi +0 -15
- nucliadb_protos/writer_pb2.py +79 -107
- nucliadb_protos/writer_pb2.pyi +16 -257
- nucliadb_protos/writer_pb2_grpc.py +3 -175
- nucliadb_protos/writer_pb2_grpc.pyi +7 -72
- {nucliadb_protos-6.8.1.post4988.dist-info → nucliadb_protos-6.10.0.post5780.dist-info}/METADATA +5 -6
- nucliadb_protos-6.10.0.post5780.dist-info/RECORD +37 -0
- {nucliadb_protos-6.8.1.post4988.dist-info → nucliadb_protos-6.10.0.post5780.dist-info}/WHEEL +1 -1
- nucliadb_protos-6.8.1.post4988.dist-info/RECORD +0 -37
- {nucliadb_protos-6.8.1.post4988.dist-info → nucliadb_protos-6.10.0.post5780.dist-info}/entry_points.txt +0 -0
|
@@ -22,13 +22,10 @@ else:
|
|
|
22
22
|
from nucliadb_protos.utils_pb2 import (
|
|
23
23
|
COSINE as COSINE,
|
|
24
24
|
DOT as DOT,
|
|
25
|
-
EXPERIMENTAL as EXPERIMENTAL,
|
|
26
25
|
ExtractedText as ExtractedText,
|
|
27
26
|
Relation as Relation,
|
|
28
27
|
RelationMetadata as RelationMetadata,
|
|
29
28
|
RelationNode as RelationNode,
|
|
30
|
-
ReleaseChannel as ReleaseChannel,
|
|
31
|
-
STABLE as STABLE,
|
|
32
29
|
Security as Security,
|
|
33
30
|
UserVector as UserVector,
|
|
34
31
|
UserVectorSet as UserVectorSet,
|
|
@@ -242,6 +239,24 @@ class Basic(google.protobuf.message.Message):
|
|
|
242
239
|
|
|
243
240
|
global___Basic = Basic
|
|
244
241
|
|
|
242
|
+
@typing.final
|
|
243
|
+
class SyncMetadata(google.protobuf.message.Message):
|
|
244
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
245
|
+
|
|
246
|
+
FILE_ID_FIELD_NUMBER: builtins.int
|
|
247
|
+
AUTH_PROVIDER_FIELD_NUMBER: builtins.int
|
|
248
|
+
file_id: builtins.str
|
|
249
|
+
auth_provider: builtins.str
|
|
250
|
+
def __init__(
|
|
251
|
+
self,
|
|
252
|
+
*,
|
|
253
|
+
file_id: builtins.str = ...,
|
|
254
|
+
auth_provider: builtins.str = ...,
|
|
255
|
+
) -> None: ...
|
|
256
|
+
def ClearField(self, field_name: typing.Literal["auth_provider", b"auth_provider", "file_id", b"file_id"]) -> None: ...
|
|
257
|
+
|
|
258
|
+
global___SyncMetadata = SyncMetadata
|
|
259
|
+
|
|
245
260
|
@typing.final
|
|
246
261
|
class Origin(google.protobuf.message.Message):
|
|
247
262
|
"""Block behaviors"""
|
|
@@ -290,6 +305,7 @@ class Origin(google.protobuf.message.Message):
|
|
|
290
305
|
FILENAME_FIELD_NUMBER: builtins.int
|
|
291
306
|
RELATED_FIELD_NUMBER: builtins.int
|
|
292
307
|
PATH_FIELD_NUMBER: builtins.int
|
|
308
|
+
SYNC_METADATA_FIELD_NUMBER: builtins.int
|
|
293
309
|
source: global___Origin.Source.ValueType
|
|
294
310
|
source_id: builtins.str
|
|
295
311
|
url: builtins.str
|
|
@@ -307,6 +323,8 @@ class Origin(google.protobuf.message.Message):
|
|
|
307
323
|
def colaborators(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
|
308
324
|
@property
|
|
309
325
|
def related(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
|
326
|
+
@property
|
|
327
|
+
def sync_metadata(self) -> global___SyncMetadata: ...
|
|
310
328
|
def __init__(
|
|
311
329
|
self,
|
|
312
330
|
*,
|
|
@@ -321,9 +339,10 @@ class Origin(google.protobuf.message.Message):
|
|
|
321
339
|
filename: builtins.str = ...,
|
|
322
340
|
related: collections.abc.Iterable[builtins.str] | None = ...,
|
|
323
341
|
path: builtins.str = ...,
|
|
342
|
+
sync_metadata: global___SyncMetadata | None = ...,
|
|
324
343
|
) -> None: ...
|
|
325
|
-
def HasField(self, field_name: typing.Literal["created", b"created", "modified", b"modified"]) -> builtins.bool: ...
|
|
326
|
-
def ClearField(self, field_name: typing.Literal["colaborators", b"colaborators", "created", b"created", "filename", b"filename", "metadata", b"metadata", "modified", b"modified", "path", b"path", "related", b"related", "source", b"source", "source_id", b"source_id", "tags", b"tags", "url", b"url"]) -> None: ...
|
|
344
|
+
def HasField(self, field_name: typing.Literal["created", b"created", "modified", b"modified", "sync_metadata", b"sync_metadata"]) -> builtins.bool: ...
|
|
345
|
+
def ClearField(self, field_name: typing.Literal["colaborators", b"colaborators", "created", b"created", "filename", b"filename", "metadata", b"metadata", "modified", b"modified", "path", b"path", "related", b"related", "source", b"source", "source_id", b"source_id", "sync_metadata", b"sync_metadata", "tags", b"tags", "url", b"url"]) -> None: ...
|
|
327
346
|
|
|
328
347
|
global___Origin = Origin
|
|
329
348
|
|
|
@@ -486,8 +505,14 @@ class Conversation(google.protobuf.message.Message):
|
|
|
486
505
|
MESSAGES_FIELD_NUMBER: builtins.int
|
|
487
506
|
EXTRACT_STRATEGY_FIELD_NUMBER: builtins.int
|
|
488
507
|
SPLIT_STRATEGY_FIELD_NUMBER: builtins.int
|
|
508
|
+
REPLACE_FIELD_FIELD_NUMBER: builtins.int
|
|
489
509
|
extract_strategy: builtins.str
|
|
490
510
|
split_strategy: builtins.str
|
|
511
|
+
replace_field: builtins.bool
|
|
512
|
+
"""The same message is used for both replacing and appending messages to an existing conversation.
|
|
513
|
+
We need this boolean flag to disambiguate at the ingestion of writer messages to know if new pages
|
|
514
|
+
need to be created or if we need to replace existing ones. replace_field will be false on append operations.
|
|
515
|
+
"""
|
|
491
516
|
@property
|
|
492
517
|
def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Message]: ...
|
|
493
518
|
def __init__(
|
|
@@ -496,8 +521,9 @@ class Conversation(google.protobuf.message.Message):
|
|
|
496
521
|
messages: collections.abc.Iterable[global___Message] | None = ...,
|
|
497
522
|
extract_strategy: builtins.str = ...,
|
|
498
523
|
split_strategy: builtins.str = ...,
|
|
524
|
+
replace_field: builtins.bool = ...,
|
|
499
525
|
) -> None: ...
|
|
500
|
-
def ClearField(self, field_name: typing.Literal["extract_strategy", b"extract_strategy", "messages", b"messages", "split_strategy", b"split_strategy"]) -> None: ...
|
|
526
|
+
def ClearField(self, field_name: typing.Literal["extract_strategy", b"extract_strategy", "messages", b"messages", "replace_field", b"replace_field", "split_strategy", b"split_strategy"]) -> None: ...
|
|
501
527
|
|
|
502
528
|
global___Conversation = Conversation
|
|
503
529
|
|
|
@@ -531,6 +557,50 @@ class FieldConversation(google.protobuf.message.Message):
|
|
|
531
557
|
|
|
532
558
|
global___FieldConversation = FieldConversation
|
|
533
559
|
|
|
560
|
+
@typing.final
|
|
561
|
+
class SplitMetadata(google.protobuf.message.Message):
|
|
562
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
563
|
+
|
|
564
|
+
def __init__(
|
|
565
|
+
self,
|
|
566
|
+
) -> None: ...
|
|
567
|
+
|
|
568
|
+
global___SplitMetadata = SplitMetadata
|
|
569
|
+
|
|
570
|
+
@typing.final
|
|
571
|
+
class SplitsMetadata(google.protobuf.message.Message):
|
|
572
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
573
|
+
|
|
574
|
+
@typing.final
|
|
575
|
+
class MetadataEntry(google.protobuf.message.Message):
|
|
576
|
+
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
577
|
+
|
|
578
|
+
KEY_FIELD_NUMBER: builtins.int
|
|
579
|
+
VALUE_FIELD_NUMBER: builtins.int
|
|
580
|
+
key: builtins.str
|
|
581
|
+
@property
|
|
582
|
+
def value(self) -> global___SplitMetadata: ...
|
|
583
|
+
def __init__(
|
|
584
|
+
self,
|
|
585
|
+
*,
|
|
586
|
+
key: builtins.str = ...,
|
|
587
|
+
value: global___SplitMetadata | None = ...,
|
|
588
|
+
) -> None: ...
|
|
589
|
+
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
|
590
|
+
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
591
|
+
|
|
592
|
+
METADATA_FIELD_NUMBER: builtins.int
|
|
593
|
+
@property
|
|
594
|
+
def metadata(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___SplitMetadata]: ...
|
|
595
|
+
def __init__(
|
|
596
|
+
self,
|
|
597
|
+
*,
|
|
598
|
+
metadata: collections.abc.Mapping[builtins.str, global___SplitMetadata] | None = ...,
|
|
599
|
+
) -> None: ...
|
|
600
|
+
def ClearField(self, field_name: typing.Literal["metadata", b"metadata"]) -> None: ...
|
|
601
|
+
|
|
602
|
+
global___SplitsMetadata = SplitsMetadata
|
|
603
|
+
|
|
534
604
|
@typing.final
|
|
535
605
|
class NestedPosition(google.protobuf.message.Message):
|
|
536
606
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
@@ -1046,7 +1116,6 @@ class Paragraph(google.protobuf.message.Message):
|
|
|
1046
1116
|
KIND_FIELD_NUMBER: builtins.int
|
|
1047
1117
|
CLASSIFICATIONS_FIELD_NUMBER: builtins.int
|
|
1048
1118
|
SENTENCES_FIELD_NUMBER: builtins.int
|
|
1049
|
-
KEY_FIELD_NUMBER: builtins.int
|
|
1050
1119
|
TEXT_FIELD_NUMBER: builtins.int
|
|
1051
1120
|
PAGE_FIELD_NUMBER: builtins.int
|
|
1052
1121
|
REPRESENTATION_FIELD_NUMBER: builtins.int
|
|
@@ -1054,7 +1123,6 @@ class Paragraph(google.protobuf.message.Message):
|
|
|
1054
1123
|
start: builtins.int
|
|
1055
1124
|
end: builtins.int
|
|
1056
1125
|
kind: global___Paragraph.TypeParagraph.ValueType
|
|
1057
|
-
key: builtins.str
|
|
1058
1126
|
text: builtins.str
|
|
1059
1127
|
"""Optional, as a computed value"""
|
|
1060
1128
|
@property
|
|
@@ -1081,14 +1149,13 @@ class Paragraph(google.protobuf.message.Message):
|
|
|
1081
1149
|
kind: global___Paragraph.TypeParagraph.ValueType = ...,
|
|
1082
1150
|
classifications: collections.abc.Iterable[global___Classification] | None = ...,
|
|
1083
1151
|
sentences: collections.abc.Iterable[global___Sentence] | None = ...,
|
|
1084
|
-
key: builtins.str = ...,
|
|
1085
1152
|
text: builtins.str = ...,
|
|
1086
1153
|
page: global___PageInformation | None = ...,
|
|
1087
1154
|
representation: global___Representation | None = ...,
|
|
1088
1155
|
relations: global___ParagraphRelations | None = ...,
|
|
1089
1156
|
) -> None: ...
|
|
1090
1157
|
def HasField(self, field_name: typing.Literal["page", b"page", "relations", b"relations", "representation", b"representation"]) -> builtins.bool: ...
|
|
1091
|
-
def ClearField(self, field_name: typing.Literal["classifications", b"classifications", "end", b"end", "end_seconds", b"end_seconds", "
|
|
1158
|
+
def ClearField(self, field_name: typing.Literal["classifications", b"classifications", "end", b"end", "end_seconds", b"end_seconds", "kind", b"kind", "page", b"page", "relations", b"relations", "representation", b"representation", "sentences", b"sentences", "start", b"start", "start_seconds", b"start_seconds", "text", b"text"]) -> None: ...
|
|
1092
1159
|
|
|
1093
1160
|
global___Paragraph = Paragraph
|
|
1094
1161
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: nucliadb_protos/standalone.proto
|
|
5
|
-
# Protobuf Python Version:
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
|
|
|
11
11
|
from google.protobuf.internal import builder as _builder
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
17
|
'',
|
|
18
18
|
'nucliadb_protos/standalone.proto'
|
|
19
19
|
)
|
|
@@ -5,7 +5,7 @@ import warnings
|
|
|
5
5
|
|
|
6
6
|
from nucliadb_protos import standalone_pb2 as nucliadb__protos_dot_standalone__pb2
|
|
7
7
|
|
|
8
|
-
GRPC_GENERATED_VERSION = '1.
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
9
9
|
GRPC_VERSION = grpc.__version__
|
|
10
10
|
_version_not_supported = False
|
|
11
11
|
|
|
@@ -18,7 +18,7 @@ except ImportError:
|
|
|
18
18
|
if _version_not_supported:
|
|
19
19
|
raise RuntimeError(
|
|
20
20
|
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
21
|
-
+
|
|
21
|
+
+ ' but the generated code in nucliadb_protos/standalone_pb2_grpc.py depends on'
|
|
22
22
|
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
23
23
|
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
24
24
|
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
nucliadb_protos/train_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: nucliadb_protos/train.proto
|
|
5
|
-
# Protobuf Python Version:
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
|
|
|
11
11
|
from google.protobuf.internal import builder as _builder
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
17
|
'',
|
|
18
18
|
'nucliadb_protos/train.proto'
|
|
19
19
|
)
|
nucliadb_protos/train_pb2.pyi
CHANGED
|
@@ -124,6 +124,9 @@ from nucliadb_protos.resources_pb2 import (
|
|
|
124
124
|
Representation as Representation,
|
|
125
125
|
RowsPreview as RowsPreview,
|
|
126
126
|
Sentence as Sentence,
|
|
127
|
+
SplitMetadata as SplitMetadata,
|
|
128
|
+
SplitsMetadata as SplitsMetadata,
|
|
129
|
+
SyncMetadata as SyncMetadata,
|
|
127
130
|
TEXT as TEXT,
|
|
128
131
|
UserFieldMetadata as UserFieldMetadata,
|
|
129
132
|
UserMetadata as UserMetadata,
|
|
@@ -133,7 +136,6 @@ from nucliadb_protos.writer_pb2 import (
|
|
|
133
136
|
Audit as Audit,
|
|
134
137
|
BrokerMessage as BrokerMessage,
|
|
135
138
|
BrokerMessageBlobReference as BrokerMessageBlobReference,
|
|
136
|
-
DelEntitiesRequest as DelEntitiesRequest,
|
|
137
139
|
Error as Error,
|
|
138
140
|
FieldError as FieldError,
|
|
139
141
|
FieldIDStatus as FieldIDStatus,
|
|
@@ -151,22 +153,16 @@ from nucliadb_protos.writer_pb2 import (
|
|
|
151
153
|
IndexStatus as IndexStatus,
|
|
152
154
|
ListEntitiesGroupsRequest as ListEntitiesGroupsRequest,
|
|
153
155
|
ListEntitiesGroupsResponse as ListEntitiesGroupsResponse,
|
|
154
|
-
MergeEntitiesRequest as MergeEntitiesRequest,
|
|
155
|
-
NewEntitiesGroupRequest as NewEntitiesGroupRequest,
|
|
156
|
-
NewEntitiesGroupResponse as NewEntitiesGroupResponse,
|
|
157
156
|
NewKnowledgeBoxV2Request as NewKnowledgeBoxV2Request,
|
|
158
157
|
NewKnowledgeBoxV2Response as NewKnowledgeBoxV2Response,
|
|
159
158
|
Notification as Notification,
|
|
160
159
|
NotificationSource as NotificationSource,
|
|
161
160
|
OpStatusWriter as OpStatusWriter,
|
|
162
161
|
PROCESSOR as PROCESSOR,
|
|
163
|
-
SetEntitiesRequest as SetEntitiesRequest,
|
|
164
162
|
ShardObject as ShardObject,
|
|
165
163
|
Shards as Shards,
|
|
166
164
|
SynonymsRequest as SynonymsRequest,
|
|
167
165
|
UNSET as UNSET,
|
|
168
|
-
UpdateEntitiesGroupRequest as UpdateEntitiesGroupRequest,
|
|
169
|
-
UpdateEntitiesGroupResponse as UpdateEntitiesGroupResponse,
|
|
170
166
|
WRITER as WRITER,
|
|
171
167
|
WriterStatusRequest as WriterStatusRequest,
|
|
172
168
|
WriterStatusResponse as WriterStatusResponse,
|
|
@@ -6,7 +6,7 @@ import warnings
|
|
|
6
6
|
from nucliadb_protos import train_pb2 as nucliadb__protos_dot_train__pb2
|
|
7
7
|
from nucliadb_protos import writer_pb2 as nucliadb__protos_dot_writer__pb2
|
|
8
8
|
|
|
9
|
-
GRPC_GENERATED_VERSION = '1.
|
|
9
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
10
10
|
GRPC_VERSION = grpc.__version__
|
|
11
11
|
_version_not_supported = False
|
|
12
12
|
|
|
@@ -19,7 +19,7 @@ except ImportError:
|
|
|
19
19
|
if _version_not_supported:
|
|
20
20
|
raise RuntimeError(
|
|
21
21
|
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
22
|
-
+
|
|
22
|
+
+ ' but the generated code in nucliadb_protos/train_pb2_grpc.py depends on'
|
|
23
23
|
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
24
24
|
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
25
25
|
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
@@ -122,6 +122,9 @@ from nucliadb_protos.resources_pb2 import (
|
|
|
122
122
|
Representation as Representation,
|
|
123
123
|
RowsPreview as RowsPreview,
|
|
124
124
|
Sentence as Sentence,
|
|
125
|
+
SplitMetadata as SplitMetadata,
|
|
126
|
+
SplitsMetadata as SplitsMetadata,
|
|
127
|
+
SyncMetadata as SyncMetadata,
|
|
125
128
|
TEXT as TEXT,
|
|
126
129
|
UserFieldMetadata as UserFieldMetadata,
|
|
127
130
|
UserMetadata as UserMetadata,
|
|
@@ -131,7 +134,6 @@ from nucliadb_protos.writer_pb2 import (
|
|
|
131
134
|
Audit as Audit,
|
|
132
135
|
BrokerMessage as BrokerMessage,
|
|
133
136
|
BrokerMessageBlobReference as BrokerMessageBlobReference,
|
|
134
|
-
DelEntitiesRequest as DelEntitiesRequest,
|
|
135
137
|
Error as Error,
|
|
136
138
|
FieldError as FieldError,
|
|
137
139
|
FieldIDStatus as FieldIDStatus,
|
|
@@ -149,22 +151,16 @@ from nucliadb_protos.writer_pb2 import (
|
|
|
149
151
|
IndexStatus as IndexStatus,
|
|
150
152
|
ListEntitiesGroupsRequest as ListEntitiesGroupsRequest,
|
|
151
153
|
ListEntitiesGroupsResponse as ListEntitiesGroupsResponse,
|
|
152
|
-
MergeEntitiesRequest as MergeEntitiesRequest,
|
|
153
|
-
NewEntitiesGroupRequest as NewEntitiesGroupRequest,
|
|
154
|
-
NewEntitiesGroupResponse as NewEntitiesGroupResponse,
|
|
155
154
|
NewKnowledgeBoxV2Request as NewKnowledgeBoxV2Request,
|
|
156
155
|
NewKnowledgeBoxV2Response as NewKnowledgeBoxV2Response,
|
|
157
156
|
Notification as Notification,
|
|
158
157
|
NotificationSource as NotificationSource,
|
|
159
158
|
OpStatusWriter as OpStatusWriter,
|
|
160
159
|
PROCESSOR as PROCESSOR,
|
|
161
|
-
SetEntitiesRequest as SetEntitiesRequest,
|
|
162
160
|
ShardObject as ShardObject,
|
|
163
161
|
Shards as Shards,
|
|
164
162
|
SynonymsRequest as SynonymsRequest,
|
|
165
163
|
UNSET as UNSET,
|
|
166
|
-
UpdateEntitiesGroupRequest as UpdateEntitiesGroupRequest,
|
|
167
|
-
UpdateEntitiesGroupResponse as UpdateEntitiesGroupResponse,
|
|
168
164
|
WRITER as WRITER,
|
|
169
165
|
WriterStatusRequest as WriterStatusRequest,
|
|
170
166
|
WriterStatusResponse as WriterStatusResponse,
|
nucliadb_protos/utils_pb2.py
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
3
3
|
# NO CHECKED-IN PROTOBUF GENCODE
|
|
4
4
|
# source: nucliadb_protos/utils.proto
|
|
5
|
-
# Protobuf Python Version:
|
|
5
|
+
# Protobuf Python Version: 6.31.1
|
|
6
6
|
"""Generated protocol buffer code."""
|
|
7
7
|
from google.protobuf import descriptor as _descriptor
|
|
8
8
|
from google.protobuf import descriptor_pool as _descriptor_pool
|
|
@@ -11,9 +11,9 @@ from google.protobuf import symbol_database as _symbol_database
|
|
|
11
11
|
from google.protobuf.internal import builder as _builder
|
|
12
12
|
_runtime_version.ValidateProtobufRuntimeVersion(
|
|
13
13
|
_runtime_version.Domain.PUBLIC,
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
14
|
+
6,
|
|
15
|
+
31,
|
|
16
|
+
1,
|
|
17
17
|
'',
|
|
18
18
|
'nucliadb_protos/utils.proto'
|
|
19
19
|
)
|
|
@@ -24,7 +24,7 @@ _sym_db = _symbol_database.Default()
|
|
|
24
24
|
|
|
25
25
|
|
|
26
26
|
|
|
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
|
|
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')
|
|
28
28
|
|
|
29
29
|
_globals = globals()
|
|
30
30
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
|
@@ -41,8 +41,6 @@ if not _descriptor._USE_C_DESCRIPTORS:
|
|
|
41
41
|
_globals['_USERVECTORSET_VECTORSENTRY']._serialized_options = b'8\001'
|
|
42
42
|
_globals['_VECTORSIMILARITY']._serialized_start=1690
|
|
43
43
|
_globals['_VECTORSIMILARITY']._serialized_end=1729
|
|
44
|
-
_globals['_RELEASECHANNEL']._serialized_start=1731
|
|
45
|
-
_globals['_RELEASECHANNEL']._serialized_end=1777
|
|
46
44
|
_globals['_RELATION']._serialized_start=39
|
|
47
45
|
_globals['_RELATION']._serialized_end=319
|
|
48
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.
|