nucliadb-protos 6.5.1.post4520__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.

@@ -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,
@@ -180,6 +177,7 @@ class Basic(google.protobuf.message.Message):
180
177
  LAST_ACCOUNT_SEQ_FIELD_NUMBER: builtins.int
181
178
  QUEUE_FIELD_NUMBER: builtins.int
182
179
  HIDDEN_FIELD_NUMBER: builtins.int
180
+ RESET_TITLE_FIELD_NUMBER: builtins.int
183
181
  slug: builtins.str
184
182
  icon: builtins.str
185
183
  title: builtins.str
@@ -195,6 +193,7 @@ class Basic(google.protobuf.message.Message):
195
193
  """last processing sequid (non nats) of this resource in the account queue"""
196
194
  queue: global___Basic.QueueType.ValueType
197
195
  hidden: builtins.bool
196
+ reset_title: builtins.bool
198
197
  @property
199
198
  def created(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
200
199
  @property
@@ -232,13 +231,32 @@ class Basic(google.protobuf.message.Message):
232
231
  last_account_seq: builtins.int = ...,
233
232
  queue: global___Basic.QueueType.ValueType = ...,
234
233
  hidden: builtins.bool | None = ...,
234
+ reset_title: builtins.bool = ...,
235
235
  ) -> None: ...
236
236
  def HasField(self, field_name: typing.Literal["_hidden", b"_hidden", "computedmetadata", b"computedmetadata", "created", b"created", "hidden", b"hidden", "metadata", b"metadata", "modified", b"modified", "usermetadata", b"usermetadata"]) -> builtins.bool: ...
237
- def ClearField(self, field_name: typing.Literal["_hidden", b"_hidden", "computedmetadata", b"computedmetadata", "created", b"created", "fieldmetadata", b"fieldmetadata", "hidden", b"hidden", "icon", b"icon", "labels", b"labels", "last_account_seq", b"last_account_seq", "last_seqid", b"last_seqid", "layout", b"layout", "metadata", b"metadata", "modified", b"modified", "queue", b"queue", "slug", b"slug", "summary", b"summary", "thumbnail", b"thumbnail", "title", b"title", "usermetadata", b"usermetadata", "uuid", b"uuid"]) -> None: ...
237
+ def ClearField(self, field_name: typing.Literal["_hidden", b"_hidden", "computedmetadata", b"computedmetadata", "created", b"created", "fieldmetadata", b"fieldmetadata", "hidden", b"hidden", "icon", b"icon", "labels", b"labels", "last_account_seq", b"last_account_seq", "last_seqid", b"last_seqid", "layout", b"layout", "metadata", b"metadata", "modified", b"modified", "queue", b"queue", "reset_title", b"reset_title", "slug", b"slug", "summary", b"summary", "thumbnail", b"thumbnail", "title", b"title", "usermetadata", b"usermetadata", "uuid", b"uuid"]) -> None: ...
238
238
  def WhichOneof(self, oneof_group: typing.Literal["_hidden", b"_hidden"]) -> typing.Literal["hidden"] | None: ...
239
239
 
240
240
  global___Basic = Basic
241
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
+
242
260
  @typing.final
243
261
  class Origin(google.protobuf.message.Message):
244
262
  """Block behaviors"""
@@ -287,6 +305,7 @@ class Origin(google.protobuf.message.Message):
287
305
  FILENAME_FIELD_NUMBER: builtins.int
288
306
  RELATED_FIELD_NUMBER: builtins.int
289
307
  PATH_FIELD_NUMBER: builtins.int
308
+ SYNC_METADATA_FIELD_NUMBER: builtins.int
290
309
  source: global___Origin.Source.ValueType
291
310
  source_id: builtins.str
292
311
  url: builtins.str
@@ -304,6 +323,8 @@ class Origin(google.protobuf.message.Message):
304
323
  def colaborators(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
305
324
  @property
306
325
  def related(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
326
+ @property
327
+ def sync_metadata(self) -> global___SyncMetadata: ...
307
328
  def __init__(
308
329
  self,
309
330
  *,
@@ -318,9 +339,10 @@ class Origin(google.protobuf.message.Message):
318
339
  filename: builtins.str = ...,
319
340
  related: collections.abc.Iterable[builtins.str] | None = ...,
320
341
  path: builtins.str = ...,
342
+ sync_metadata: global___SyncMetadata | None = ...,
321
343
  ) -> None: ...
322
- def HasField(self, field_name: typing.Literal["created", b"created", "modified", b"modified"]) -> builtins.bool: ...
323
- 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: ...
324
346
 
325
347
  global___Origin = Origin
326
348
 
@@ -482,7 +504,15 @@ class Conversation(google.protobuf.message.Message):
482
504
 
483
505
  MESSAGES_FIELD_NUMBER: builtins.int
484
506
  EXTRACT_STRATEGY_FIELD_NUMBER: builtins.int
507
+ SPLIT_STRATEGY_FIELD_NUMBER: builtins.int
508
+ REPLACE_FIELD_FIELD_NUMBER: builtins.int
485
509
  extract_strategy: builtins.str
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
+ """
486
516
  @property
487
517
  def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Message]: ...
488
518
  def __init__(
@@ -490,8 +520,10 @@ class Conversation(google.protobuf.message.Message):
490
520
  *,
491
521
  messages: collections.abc.Iterable[global___Message] | None = ...,
492
522
  extract_strategy: builtins.str = ...,
523
+ split_strategy: builtins.str = ...,
524
+ replace_field: builtins.bool = ...,
493
525
  ) -> None: ...
494
- def ClearField(self, field_name: typing.Literal["extract_strategy", b"extract_strategy", "messages", b"messages"]) -> 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: ...
495
527
 
496
528
  global___Conversation = Conversation
497
529
 
@@ -503,6 +535,7 @@ class FieldConversation(google.protobuf.message.Message):
503
535
  SIZE_FIELD_NUMBER: builtins.int
504
536
  TOTAL_FIELD_NUMBER: builtins.int
505
537
  EXTRACT_STRATEGY_FIELD_NUMBER: builtins.int
538
+ SPLIT_STRATEGY_FIELD_NUMBER: builtins.int
506
539
  pages: builtins.int
507
540
  """Total number of pages"""
508
541
  size: builtins.int
@@ -510,6 +543,7 @@ class FieldConversation(google.protobuf.message.Message):
510
543
  total: builtins.int
511
544
  """Total number of messages"""
512
545
  extract_strategy: builtins.str
546
+ split_strategy: builtins.str
513
547
  def __init__(
514
548
  self,
515
549
  *,
@@ -517,11 +551,56 @@ class FieldConversation(google.protobuf.message.Message):
517
551
  size: builtins.int = ...,
518
552
  total: builtins.int = ...,
519
553
  extract_strategy: builtins.str = ...,
554
+ split_strategy: builtins.str = ...,
520
555
  ) -> None: ...
521
- def ClearField(self, field_name: typing.Literal["extract_strategy", b"extract_strategy", "pages", b"pages", "size", b"size", "total", b"total"]) -> None: ...
556
+ def ClearField(self, field_name: typing.Literal["extract_strategy", b"extract_strategy", "pages", b"pages", "size", b"size", "split_strategy", b"split_strategy", "total", b"total"]) -> None: ...
522
557
 
523
558
  global___FieldConversation = FieldConversation
524
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
+
525
604
  @typing.final
526
605
  class NestedPosition(google.protobuf.message.Message):
527
606
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -1037,7 +1116,6 @@ class Paragraph(google.protobuf.message.Message):
1037
1116
  KIND_FIELD_NUMBER: builtins.int
1038
1117
  CLASSIFICATIONS_FIELD_NUMBER: builtins.int
1039
1118
  SENTENCES_FIELD_NUMBER: builtins.int
1040
- KEY_FIELD_NUMBER: builtins.int
1041
1119
  TEXT_FIELD_NUMBER: builtins.int
1042
1120
  PAGE_FIELD_NUMBER: builtins.int
1043
1121
  REPRESENTATION_FIELD_NUMBER: builtins.int
@@ -1045,7 +1123,6 @@ class Paragraph(google.protobuf.message.Message):
1045
1123
  start: builtins.int
1046
1124
  end: builtins.int
1047
1125
  kind: global___Paragraph.TypeParagraph.ValueType
1048
- key: builtins.str
1049
1126
  text: builtins.str
1050
1127
  """Optional, as a computed value"""
1051
1128
  @property
@@ -1072,14 +1149,13 @@ class Paragraph(google.protobuf.message.Message):
1072
1149
  kind: global___Paragraph.TypeParagraph.ValueType = ...,
1073
1150
  classifications: collections.abc.Iterable[global___Classification] | None = ...,
1074
1151
  sentences: collections.abc.Iterable[global___Sentence] | None = ...,
1075
- key: builtins.str = ...,
1076
1152
  text: builtins.str = ...,
1077
1153
  page: global___PageInformation | None = ...,
1078
1154
  representation: global___Representation | None = ...,
1079
1155
  relations: global___ParagraphRelations | None = ...,
1080
1156
  ) -> None: ...
1081
1157
  def HasField(self, field_name: typing.Literal["page", b"page", "relations", b"relations", "representation", b"representation"]) -> builtins.bool: ...
1082
- def ClearField(self, field_name: typing.Literal["classifications", b"classifications", "end", b"end", "end_seconds", b"end_seconds", "key", b"key", "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: ...
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: ...
1083
1159
 
1084
1160
  global___Paragraph = Paragraph
1085
1161
 
@@ -1655,10 +1731,12 @@ class FieldText(google.protobuf.message.Message):
1655
1731
  MD5_FIELD_NUMBER: builtins.int
1656
1732
  GENERATED_BY_FIELD_NUMBER: builtins.int
1657
1733
  EXTRACT_STRATEGY_FIELD_NUMBER: builtins.int
1734
+ SPLIT_STRATEGY_FIELD_NUMBER: builtins.int
1658
1735
  body: builtins.str
1659
1736
  format: global___FieldText.Format.ValueType
1660
1737
  md5: builtins.str
1661
1738
  extract_strategy: builtins.str
1739
+ split_strategy: builtins.str
1662
1740
  @property
1663
1741
  def generated_by(self) -> global___FieldAuthor: ...
1664
1742
  def __init__(
@@ -1669,9 +1747,10 @@ class FieldText(google.protobuf.message.Message):
1669
1747
  md5: builtins.str = ...,
1670
1748
  generated_by: global___FieldAuthor | None = ...,
1671
1749
  extract_strategy: builtins.str = ...,
1750
+ split_strategy: builtins.str = ...,
1672
1751
  ) -> None: ...
1673
1752
  def HasField(self, field_name: typing.Literal["generated_by", b"generated_by"]) -> builtins.bool: ...
1674
- def ClearField(self, field_name: typing.Literal["body", b"body", "extract_strategy", b"extract_strategy", "format", b"format", "generated_by", b"generated_by", "md5", b"md5"]) -> None: ...
1753
+ def ClearField(self, field_name: typing.Literal["body", b"body", "extract_strategy", b"extract_strategy", "format", b"format", "generated_by", b"generated_by", "md5", b"md5", "split_strategy", b"split_strategy"]) -> None: ...
1675
1754
 
1676
1755
  global___FieldText = FieldText
1677
1756
 
@@ -1939,11 +2018,13 @@ class FieldLink(google.protobuf.message.Message):
1939
2018
  CSS_SELECTOR_FIELD_NUMBER: builtins.int
1940
2019
  XPATH_FIELD_NUMBER: builtins.int
1941
2020
  EXTRACT_STRATEGY_FIELD_NUMBER: builtins.int
2021
+ SPLIT_STRATEGY_FIELD_NUMBER: builtins.int
1942
2022
  uri: builtins.str
1943
2023
  language: builtins.str
1944
2024
  css_selector: builtins.str
1945
2025
  xpath: builtins.str
1946
2026
  extract_strategy: builtins.str
2027
+ split_strategy: builtins.str
1947
2028
  @property
1948
2029
  def added(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1949
2030
  @property
@@ -1964,9 +2045,10 @@ class FieldLink(google.protobuf.message.Message):
1964
2045
  css_selector: builtins.str = ...,
1965
2046
  xpath: builtins.str = ...,
1966
2047
  extract_strategy: builtins.str = ...,
2048
+ split_strategy: builtins.str = ...,
1967
2049
  ) -> None: ...
1968
2050
  def HasField(self, field_name: typing.Literal["added", b"added"]) -> builtins.bool: ...
1969
- def ClearField(self, field_name: typing.Literal["added", b"added", "cookies", b"cookies", "css_selector", b"css_selector", "extract_strategy", b"extract_strategy", "headers", b"headers", "language", b"language", "localstorage", b"localstorage", "uri", b"uri", "xpath", b"xpath"]) -> None: ...
2051
+ def ClearField(self, field_name: typing.Literal["added", b"added", "cookies", b"cookies", "css_selector", b"css_selector", "extract_strategy", b"extract_strategy", "headers", b"headers", "language", b"language", "localstorage", b"localstorage", "split_strategy", b"split_strategy", "uri", b"uri", "xpath", b"xpath"]) -> None: ...
1970
2052
 
1971
2053
  global___FieldLink = FieldLink
1972
2054
 
@@ -1997,10 +2079,12 @@ class FieldFile(google.protobuf.message.Message):
1997
2079
  URL_FIELD_NUMBER: builtins.int
1998
2080
  HEADERS_FIELD_NUMBER: builtins.int
1999
2081
  EXTRACT_STRATEGY_FIELD_NUMBER: builtins.int
2082
+ SPLIT_STRATEGY_FIELD_NUMBER: builtins.int
2000
2083
  language: builtins.str
2001
2084
  password: builtins.str
2002
2085
  url: builtins.str
2003
2086
  extract_strategy: builtins.str
2087
+ split_strategy: builtins.str
2004
2088
  @property
2005
2089
  def added(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
2006
2090
  @property
@@ -2017,9 +2101,10 @@ class FieldFile(google.protobuf.message.Message):
2017
2101
  url: builtins.str = ...,
2018
2102
  headers: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
2019
2103
  extract_strategy: builtins.str = ...,
2104
+ split_strategy: builtins.str = ...,
2020
2105
  ) -> None: ...
2021
2106
  def HasField(self, field_name: typing.Literal["added", b"added", "file", b"file"]) -> builtins.bool: ...
2022
- def ClearField(self, field_name: typing.Literal["added", b"added", "extract_strategy", b"extract_strategy", "file", b"file", "headers", b"headers", "language", b"language", "password", b"password", "url", b"url"]) -> None: ...
2107
+ def ClearField(self, field_name: typing.Literal["added", b"added", "extract_strategy", b"extract_strategy", "file", b"file", "headers", b"headers", "language", b"language", "password", b"password", "split_strategy", b"split_strategy", "url", b"url"]) -> None: ...
2023
2108
 
2024
2109
  global___FieldFile = FieldFile
2025
2110
 
@@ -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.29.0
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
- 5,
15
- 29,
16
- 0,
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.71.0'
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
- + f' but the generated code in nucliadb_protos/standalone_pb2_grpc.py depends on'
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}.'
@@ -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.29.0
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
- 5,
15
- 29,
16
- 0,
14
+ 6,
15
+ 31,
16
+ 1,
17
17
  '',
18
18
  'nucliadb_protos/train.proto'
19
19
  )
@@ -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.71.0'
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
- + f' but the generated code in nucliadb_protos/train_pb2_grpc.py depends on'
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,
@@ -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.29.0
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
- 5,
15
- 29,
16
- 0,
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*.\n\x0eReleaseChannel\x12\n\n\x06STABLE\x10\x00\x12\x10\n\x0c\x45XPERIMENTAL\x10\x01\x62\x06proto3')
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
@@ -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.