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.

Files changed (44) hide show
  1. .gitignore +1 -0
  2. build.py +56 -0
  3. nucliadb_protos/audit_pb2.py +43 -46
  4. nucliadb_protos/audit_pb2.pyi +64 -13
  5. nucliadb_protos/backups_pb2.py +13 -3
  6. nucliadb_protos/backups_pb2_grpc.py +20 -0
  7. nucliadb_protos/dataset_pb2.py +13 -3
  8. nucliadb_protos/dataset_pb2.pyi +3 -0
  9. nucliadb_protos/kb_usage_pb2.py +20 -10
  10. nucliadb_protos/kb_usage_pb2.pyi +2 -0
  11. nucliadb_protos/knowledgebox_pb2.py +116 -114
  12. nucliadb_protos/knowledgebox_pb2.pyi +49 -28
  13. nucliadb_protos/migrations_pb2.py +13 -3
  14. nucliadb_protos/resources_pb2.py +239 -219
  15. nucliadb_protos/resources_pb2.pyi +100 -15
  16. nucliadb_protos/standalone_pb2.py +13 -3
  17. nucliadb_protos/standalone_pb2_grpc.py +49 -8
  18. nucliadb_protos/train_pb2.py +18 -40
  19. nucliadb_protos/train_pb2.pyi +6 -8
  20. nucliadb_protos/train_pb2_grpc.py +133 -32
  21. nucliadb_protos/train_pb2_grpc.pyi +6 -8
  22. nucliadb_protos/utils_pb2.py +18 -10
  23. nucliadb_protos/utils_pb2.pyi +0 -15
  24. nucliadb_protos/writer_pb2.py +140 -176
  25. nucliadb_protos/writer_pb2.pyi +40 -311
  26. nucliadb_protos/writer_pb2_grpc.py +204 -185
  27. nucliadb_protos/writer_pb2_grpc.pyi +11 -99
  28. {nucliadb_protos-6.3.6.post4063.dist-info → nucliadb_protos-6.10.0.post5705.dist-info}/METADATA +10 -10
  29. nucliadb_protos-6.10.0.post5705.dist-info/RECORD +37 -0
  30. {nucliadb_protos-6.3.6.post4063.dist-info → nucliadb_protos-6.10.0.post5705.dist-info}/WHEEL +1 -2
  31. nucliadb_protos-6.10.0.post5705.dist-info/entry_points.txt +4 -0
  32. nucliadb_protos/__init__.py +0 -0
  33. nucliadb_protos/nodereader_pb2.py +0 -187
  34. nucliadb_protos/nodereader_pb2.pyi +0 -1715
  35. nucliadb_protos/nodereader_pb2_grpc.py +0 -438
  36. nucliadb_protos/nodereader_pb2_grpc.pyi +0 -288
  37. nucliadb_protos/noderesources_pb2.py +0 -145
  38. nucliadb_protos/noderesources_pb2.pyi +0 -993
  39. nucliadb_protos/nodewriter_pb2.py +0 -80
  40. nucliadb_protos/nodewriter_pb2.pyi +0 -348
  41. nucliadb_protos/nodewriter_pb2_grpc.py +0 -430
  42. nucliadb_protos/nodewriter_pb2_grpc.pyi +0 -256
  43. nucliadb_protos-6.3.6.post4063.dist-info/RECORD +0 -46
  44. nucliadb_protos-6.3.6.post4063.dist-info/top_level.txt +0 -1
@@ -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
 
@@ -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/standalone.proto
4
- # Protobuf Python Version: 4.25.1
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/standalone.proto'
19
+ )
10
20
  # @@protoc_insertion_point(imports)
11
21
 
12
22
  _sym_db = _symbol_database.Default()
@@ -19,8 +29,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n nucliadb_protos/s
19
29
  _globals = globals()
20
30
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
21
31
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.standalone_pb2', _globals)
22
- if _descriptor._USE_C_DESCRIPTORS == False:
23
- DESCRIPTOR._options = None
32
+ if not _descriptor._USE_C_DESCRIPTORS:
33
+ DESCRIPTOR._loaded_options = None
24
34
  _globals['_NODEACTIONREQUEST']._serialized_start=48
25
35
  _globals['_NODEACTIONREQUEST']._serialized_end=117
26
36
  _globals['_NODEACTIONRESPONSE']._serialized_start=119
@@ -1,9 +1,29 @@
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 standalone_pb2 as nucliadb__protos_dot_standalone__pb2
6
7
 
8
+ GRPC_GENERATED_VERSION = '1.76.0'
9
+ GRPC_VERSION = grpc.__version__
10
+ _version_not_supported = False
11
+
12
+ try:
13
+ from grpc._utilities import first_version_is_lower
14
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
15
+ except ImportError:
16
+ _version_not_supported = True
17
+
18
+ if _version_not_supported:
19
+ raise RuntimeError(
20
+ f'The grpc package installed is at version {GRPC_VERSION},'
21
+ + ' but the generated code in nucliadb_protos/standalone_pb2_grpc.py depends on'
22
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
25
+ )
26
+
7
27
 
8
28
  class StandaloneClusterServiceStub(object):
9
29
  """Missing associated documentation comment in .proto file."""
@@ -18,12 +38,12 @@ class StandaloneClusterServiceStub(object):
18
38
  '/standalone.StandaloneClusterService/NodeAction',
19
39
  request_serializer=nucliadb__protos_dot_standalone__pb2.NodeActionRequest.SerializeToString,
20
40
  response_deserializer=nucliadb__protos_dot_standalone__pb2.NodeActionResponse.FromString,
21
- )
41
+ _registered_method=True)
22
42
  self.NodeInfo = channel.unary_unary(
23
43
  '/standalone.StandaloneClusterService/NodeInfo',
24
44
  request_serializer=nucliadb__protos_dot_standalone__pb2.NodeInfoRequest.SerializeToString,
25
45
  response_deserializer=nucliadb__protos_dot_standalone__pb2.NodeInfoResponse.FromString,
26
- )
46
+ _registered_method=True)
27
47
 
28
48
 
29
49
  class StandaloneClusterServiceServicer(object):
@@ -58,6 +78,7 @@ def add_StandaloneClusterServiceServicer_to_server(servicer, server):
58
78
  generic_handler = grpc.method_handlers_generic_handler(
59
79
  'standalone.StandaloneClusterService', rpc_method_handlers)
60
80
  server.add_generic_rpc_handlers((generic_handler,))
81
+ server.add_registered_method_handlers('standalone.StandaloneClusterService', rpc_method_handlers)
61
82
 
62
83
 
63
84
  # This class is part of an EXPERIMENTAL API.
@@ -75,11 +96,21 @@ class StandaloneClusterService(object):
75
96
  wait_for_ready=None,
76
97
  timeout=None,
77
98
  metadata=None):
78
- return grpc.experimental.unary_unary(request, target, '/standalone.StandaloneClusterService/NodeAction',
99
+ return grpc.experimental.unary_unary(
100
+ request,
101
+ target,
102
+ '/standalone.StandaloneClusterService/NodeAction',
79
103
  nucliadb__protos_dot_standalone__pb2.NodeActionRequest.SerializeToString,
80
104
  nucliadb__protos_dot_standalone__pb2.NodeActionResponse.FromString,
81
- options, channel_credentials,
82
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
105
+ options,
106
+ channel_credentials,
107
+ insecure,
108
+ call_credentials,
109
+ compression,
110
+ wait_for_ready,
111
+ timeout,
112
+ metadata,
113
+ _registered_method=True)
83
114
 
84
115
  @staticmethod
85
116
  def NodeInfo(request,
@@ -92,8 +123,18 @@ class StandaloneClusterService(object):
92
123
  wait_for_ready=None,
93
124
  timeout=None,
94
125
  metadata=None):
95
- return grpc.experimental.unary_unary(request, target, '/standalone.StandaloneClusterService/NodeInfo',
126
+ return grpc.experimental.unary_unary(
127
+ request,
128
+ target,
129
+ '/standalone.StandaloneClusterService/NodeInfo',
96
130
  nucliadb__protos_dot_standalone__pb2.NodeInfoRequest.SerializeToString,
97
131
  nucliadb__protos_dot_standalone__pb2.NodeInfoResponse.FromString,
98
- options, channel_credentials,
99
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
132
+ options,
133
+ channel_credentials,
134
+ insecure,
135
+ call_credentials,
136
+ compression,
137
+ wait_for_ready,
138
+ timeout,
139
+ metadata,
140
+ _registered_method=True)
@@ -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/train.proto
4
- # Protobuf Python Version: 4.25.1
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/train.proto'
19
+ )
10
20
  # @@protoc_insertion_point(imports)
11
21
 
12
22
  _sym_db = _symbol_database.Default()
@@ -14,18 +24,6 @@ _sym_db = _symbol_database.Default()
14
24
 
15
25
  from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
16
26
  from nucliadb_protos import knowledgebox_pb2 as nucliadb__protos_dot_knowledgebox__pb2
17
- try:
18
- nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_knowledgebox__pb2.nucliadb__protos_dot_utils__pb2
19
- except AttributeError:
20
- nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_knowledgebox__pb2.nucliadb_protos.utils_pb2
21
- try:
22
- nucliadb__protos_dot_nodewriter__pb2 = nucliadb__protos_dot_knowledgebox__pb2.nucliadb__protos_dot_nodewriter__pb2
23
- except AttributeError:
24
- nucliadb__protos_dot_nodewriter__pb2 = nucliadb__protos_dot_knowledgebox__pb2.nucliadb_protos.nodewriter_pb2
25
- try:
26
- nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_knowledgebox__pb2.nucliadb__protos_dot_noderesources__pb2
27
- except AttributeError:
28
- nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_knowledgebox__pb2.nucliadb_protos.noderesources_pb2
29
27
  try:
30
28
  nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_knowledgebox__pb2.nucliadb__protos_dot_utils__pb2
31
29
  except AttributeError:
@@ -36,14 +34,6 @@ try:
36
34
  except AttributeError:
37
35
  nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_resources__pb2.nucliadb_protos.utils_pb2
38
36
  from nucliadb_protos import writer_pb2 as nucliadb__protos_dot_writer__pb2
39
- try:
40
- nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb__protos_dot_noderesources__pb2
41
- except AttributeError:
42
- nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb_protos.noderesources_pb2
43
- try:
44
- nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb__protos_dot_utils__pb2
45
- except AttributeError:
46
- nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb_protos.utils_pb2
47
37
  try:
48
38
  nucliadb__protos_dot_resources__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb__protos_dot_resources__pb2
49
39
  except AttributeError:
@@ -60,18 +50,6 @@ try:
60
50
  nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb__protos_dot_utils__pb2
61
51
  except AttributeError:
62
52
  nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb_protos.utils_pb2
63
- try:
64
- nucliadb__protos_dot_nodewriter__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb__protos_dot_nodewriter__pb2
65
- except AttributeError:
66
- nucliadb__protos_dot_nodewriter__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb_protos.nodewriter_pb2
67
- try:
68
- nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb__protos_dot_noderesources__pb2
69
- except AttributeError:
70
- nucliadb__protos_dot_noderesources__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb_protos.noderesources_pb2
71
- try:
72
- nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb__protos_dot_utils__pb2
73
- except AttributeError:
74
- nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb_protos.utils_pb2
75
53
  try:
76
54
  nucliadb__protos_dot_audit__pb2 = nucliadb__protos_dot_writer__pb2.nucliadb__protos_dot_audit__pb2
77
55
  except AttributeError:
@@ -90,17 +68,17 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bnucliadb_proto
90
68
  _globals = globals()
91
69
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
92
70
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.train_pb2', _globals)
93
- if _descriptor._USE_C_DESCRIPTORS == False:
94
- DESCRIPTOR._options = None
95
- _globals['_TRAINMETADATA_ENTITIESENTRY']._options = None
71
+ if not _descriptor._USE_C_DESCRIPTORS:
72
+ DESCRIPTOR._loaded_options = None
73
+ _globals['_TRAINMETADATA_ENTITIESENTRY']._loaded_options = None
96
74
  _globals['_TRAINMETADATA_ENTITIESENTRY']._serialized_options = b'8\001'
97
- _globals['_TRAINMETADATA_ENTITYPOSITIONSENTRY']._options = None
75
+ _globals['_TRAINMETADATA_ENTITYPOSITIONSENTRY']._loaded_options = None
98
76
  _globals['_TRAINMETADATA_ENTITYPOSITIONSENTRY']._serialized_options = b'8\001'
99
- _globals['_LABELSETCOUNT_PARAGRAPHSENTRY']._options = None
77
+ _globals['_LABELSETCOUNT_PARAGRAPHSENTRY']._loaded_options = None
100
78
  _globals['_LABELSETCOUNT_PARAGRAPHSENTRY']._serialized_options = b'8\001'
101
- _globals['_LABELSETCOUNT_RESOURCESENTRY']._options = None
79
+ _globals['_LABELSETCOUNT_RESOURCESENTRY']._loaded_options = None
102
80
  _globals['_LABELSETCOUNT_RESOURCESENTRY']._serialized_options = b'8\001'
103
- _globals['_LABELSETSCOUNT_LABELSETSENTRY']._options = None
81
+ _globals['_LABELSETSCOUNT_LABELSETSENTRY']._loaded_options = None
104
82
  _globals['_LABELSETSCOUNT_LABELSETSENTRY']._serialized_options = b'8\001'
105
83
  _globals['_ENABLEDMETADATA']._serialized_start=170
106
84
  _globals['_ENABLEDMETADATA']._serialized_end=251
@@ -20,6 +20,7 @@ from nucliadb_protos.knowledgebox_pb2 import (
20
20
  CONFLICT as CONFLICT,
21
21
  CreateExternalIndexProviderMetadata as CreateExternalIndexProviderMetadata,
22
22
  CreatePineconeConfig as CreatePineconeConfig,
23
+ DENSE_F32 as DENSE_F32,
23
24
  DeleteKnowledgeBoxResponse as DeleteKnowledgeBoxResponse,
24
25
  DeletedEntitiesGroups as DeletedEntitiesGroups,
25
26
  ERROR as ERROR,
@@ -53,10 +54,12 @@ from nucliadb_protos.knowledgebox_pb2 import (
53
54
  TermSynonyms as TermSynonyms,
54
55
  UNSET as UNSET,
55
56
  UpdateKnowledgeBoxResponse as UpdateKnowledgeBoxResponse,
57
+ VectorIndexConfig as VectorIndexConfig,
56
58
  VectorSet as VectorSet,
57
59
  VectorSetConfig as VectorSetConfig,
58
60
  VectorSetPurge as VectorSetPurge,
59
61
  VectorSets as VectorSets,
62
+ VectorType as VectorType,
60
63
  )
61
64
  from nucliadb_protos.resources_pb2 import (
62
65
  AllFieldIDs as AllFieldIDs,
@@ -121,6 +124,9 @@ from nucliadb_protos.resources_pb2 import (
121
124
  Representation as Representation,
122
125
  RowsPreview as RowsPreview,
123
126
  Sentence as Sentence,
127
+ SplitMetadata as SplitMetadata,
128
+ SplitsMetadata as SplitsMetadata,
129
+ SyncMetadata as SyncMetadata,
124
130
  TEXT as TEXT,
125
131
  UserFieldMetadata as UserFieldMetadata,
126
132
  UserMetadata as UserMetadata,
@@ -130,7 +136,6 @@ from nucliadb_protos.writer_pb2 import (
130
136
  Audit as Audit,
131
137
  BrokerMessage as BrokerMessage,
132
138
  BrokerMessageBlobReference as BrokerMessageBlobReference,
133
- DelEntitiesRequest as DelEntitiesRequest,
134
139
  Error as Error,
135
140
  FieldError as FieldError,
136
141
  FieldIDStatus as FieldIDStatus,
@@ -148,23 +153,16 @@ from nucliadb_protos.writer_pb2 import (
148
153
  IndexStatus as IndexStatus,
149
154
  ListEntitiesGroupsRequest as ListEntitiesGroupsRequest,
150
155
  ListEntitiesGroupsResponse as ListEntitiesGroupsResponse,
151
- MergeEntitiesRequest as MergeEntitiesRequest,
152
- NewEntitiesGroupRequest as NewEntitiesGroupRequest,
153
- NewEntitiesGroupResponse as NewEntitiesGroupResponse,
154
156
  NewKnowledgeBoxV2Request as NewKnowledgeBoxV2Request,
155
157
  NewKnowledgeBoxV2Response as NewKnowledgeBoxV2Response,
156
158
  Notification as Notification,
157
159
  NotificationSource as NotificationSource,
158
160
  OpStatusWriter as OpStatusWriter,
159
161
  PROCESSOR as PROCESSOR,
160
- SetEntitiesRequest as SetEntitiesRequest,
161
162
  ShardObject as ShardObject,
162
- ShardReplica as ShardReplica,
163
163
  Shards as Shards,
164
164
  SynonymsRequest as SynonymsRequest,
165
165
  UNSET as UNSET,
166
- UpdateEntitiesGroupRequest as UpdateEntitiesGroupRequest,
167
- UpdateEntitiesGroupResponse as UpdateEntitiesGroupResponse,
168
166
  WRITER as WRITER,
169
167
  WriterStatusRequest as WriterStatusRequest,
170
168
  WriterStatusResponse as WriterStatusResponse,