nucliadb-protos 6.3.5.post4044__py3-none-any.whl → 6.9.3.post5290__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 (42) 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 +2 -0
  9. nucliadb_protos/kb_usage_pb2.py +14 -4
  10. nucliadb_protos/knowledgebox_pb2.py +117 -113
  11. nucliadb_protos/knowledgebox_pb2.pyi +49 -21
  12. nucliadb_protos/migrations_pb2.py +13 -3
  13. nucliadb_protos/resources_pb2.py +237 -219
  14. nucliadb_protos/resources_pb2.pyi +76 -10
  15. nucliadb_protos/standalone_pb2.py +13 -3
  16. nucliadb_protos/standalone_pb2_grpc.py +49 -8
  17. nucliadb_protos/train_pb2.py +18 -40
  18. nucliadb_protos/train_pb2.pyi +5 -1
  19. nucliadb_protos/train_pb2_grpc.py +133 -32
  20. nucliadb_protos/train_pb2_grpc.pyi +5 -1
  21. nucliadb_protos/utils_pb2.py +17 -7
  22. nucliadb_protos/writer_pb2.py +166 -174
  23. nucliadb_protos/writer_pb2.pyi +38 -57
  24. nucliadb_protos/writer_pb2_grpc.py +259 -68
  25. nucliadb_protos/writer_pb2_grpc.pyi +6 -27
  26. {nucliadb_protos-6.3.5.post4044.dist-info → nucliadb_protos-6.9.3.post5290.dist-info}/METADATA +9 -9
  27. nucliadb_protos-6.9.3.post5290.dist-info/RECORD +37 -0
  28. {nucliadb_protos-6.3.5.post4044.dist-info → nucliadb_protos-6.9.3.post5290.dist-info}/WHEEL +1 -2
  29. nucliadb_protos-6.9.3.post5290.dist-info/entry_points.txt +4 -0
  30. nucliadb_protos/__init__.py +0 -0
  31. nucliadb_protos/nodereader_pb2.py +0 -187
  32. nucliadb_protos/nodereader_pb2.pyi +0 -1715
  33. nucliadb_protos/nodereader_pb2_grpc.py +0 -438
  34. nucliadb_protos/nodereader_pb2_grpc.pyi +0 -288
  35. nucliadb_protos/noderesources_pb2.py +0 -145
  36. nucliadb_protos/noderesources_pb2.pyi +0 -993
  37. nucliadb_protos/nodewriter_pb2.py +0 -80
  38. nucliadb_protos/nodewriter_pb2.pyi +0 -348
  39. nucliadb_protos/nodewriter_pb2_grpc.py +0 -430
  40. nucliadb_protos/nodewriter_pb2_grpc.pyi +0 -256
  41. nucliadb_protos-6.3.5.post4044.dist-info/RECORD +0 -46
  42. nucliadb_protos-6.3.5.post4044.dist-info/top_level.txt +0 -1
@@ -180,6 +180,7 @@ class Basic(google.protobuf.message.Message):
180
180
  LAST_ACCOUNT_SEQ_FIELD_NUMBER: builtins.int
181
181
  QUEUE_FIELD_NUMBER: builtins.int
182
182
  HIDDEN_FIELD_NUMBER: builtins.int
183
+ RESET_TITLE_FIELD_NUMBER: builtins.int
183
184
  slug: builtins.str
184
185
  icon: builtins.str
185
186
  title: builtins.str
@@ -195,6 +196,7 @@ class Basic(google.protobuf.message.Message):
195
196
  """last processing sequid (non nats) of this resource in the account queue"""
196
197
  queue: global___Basic.QueueType.ValueType
197
198
  hidden: builtins.bool
199
+ reset_title: builtins.bool
198
200
  @property
199
201
  def created(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
200
202
  @property
@@ -232,9 +234,10 @@ class Basic(google.protobuf.message.Message):
232
234
  last_account_seq: builtins.int = ...,
233
235
  queue: global___Basic.QueueType.ValueType = ...,
234
236
  hidden: builtins.bool | None = ...,
237
+ reset_title: builtins.bool = ...,
235
238
  ) -> None: ...
236
239
  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: ...
240
+ 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
241
  def WhichOneof(self, oneof_group: typing.Literal["_hidden", b"_hidden"]) -> typing.Literal["hidden"] | None: ...
239
242
 
240
243
  global___Basic = Basic
@@ -482,7 +485,15 @@ class Conversation(google.protobuf.message.Message):
482
485
 
483
486
  MESSAGES_FIELD_NUMBER: builtins.int
484
487
  EXTRACT_STRATEGY_FIELD_NUMBER: builtins.int
488
+ SPLIT_STRATEGY_FIELD_NUMBER: builtins.int
489
+ REPLACE_FIELD_FIELD_NUMBER: builtins.int
485
490
  extract_strategy: builtins.str
491
+ split_strategy: builtins.str
492
+ replace_field: builtins.bool
493
+ """The same message is used for both replacing and appending messages to an existing conversation.
494
+ We need this boolean flag to disambiguate at the ingestion of writer messages to know if new pages
495
+ need to be created or if we need to replace existing ones. replace_field will be false on append operations.
496
+ """
486
497
  @property
487
498
  def messages(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Message]: ...
488
499
  def __init__(
@@ -490,8 +501,10 @@ class Conversation(google.protobuf.message.Message):
490
501
  *,
491
502
  messages: collections.abc.Iterable[global___Message] | None = ...,
492
503
  extract_strategy: builtins.str = ...,
504
+ split_strategy: builtins.str = ...,
505
+ replace_field: builtins.bool = ...,
493
506
  ) -> None: ...
494
- def ClearField(self, field_name: typing.Literal["extract_strategy", b"extract_strategy", "messages", b"messages"]) -> None: ...
507
+ 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
508
 
496
509
  global___Conversation = Conversation
497
510
 
@@ -503,6 +516,7 @@ class FieldConversation(google.protobuf.message.Message):
503
516
  SIZE_FIELD_NUMBER: builtins.int
504
517
  TOTAL_FIELD_NUMBER: builtins.int
505
518
  EXTRACT_STRATEGY_FIELD_NUMBER: builtins.int
519
+ SPLIT_STRATEGY_FIELD_NUMBER: builtins.int
506
520
  pages: builtins.int
507
521
  """Total number of pages"""
508
522
  size: builtins.int
@@ -510,6 +524,7 @@ class FieldConversation(google.protobuf.message.Message):
510
524
  total: builtins.int
511
525
  """Total number of messages"""
512
526
  extract_strategy: builtins.str
527
+ split_strategy: builtins.str
513
528
  def __init__(
514
529
  self,
515
530
  *,
@@ -517,11 +532,56 @@ class FieldConversation(google.protobuf.message.Message):
517
532
  size: builtins.int = ...,
518
533
  total: builtins.int = ...,
519
534
  extract_strategy: builtins.str = ...,
535
+ split_strategy: builtins.str = ...,
520
536
  ) -> None: ...
521
- def ClearField(self, field_name: typing.Literal["extract_strategy", b"extract_strategy", "pages", b"pages", "size", b"size", "total", b"total"]) -> None: ...
537
+ 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
538
 
523
539
  global___FieldConversation = FieldConversation
524
540
 
541
+ @typing.final
542
+ class SplitMetadata(google.protobuf.message.Message):
543
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
544
+
545
+ def __init__(
546
+ self,
547
+ ) -> None: ...
548
+
549
+ global___SplitMetadata = SplitMetadata
550
+
551
+ @typing.final
552
+ class SplitsMetadata(google.protobuf.message.Message):
553
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
554
+
555
+ @typing.final
556
+ class MetadataEntry(google.protobuf.message.Message):
557
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
558
+
559
+ KEY_FIELD_NUMBER: builtins.int
560
+ VALUE_FIELD_NUMBER: builtins.int
561
+ key: builtins.str
562
+ @property
563
+ def value(self) -> global___SplitMetadata: ...
564
+ def __init__(
565
+ self,
566
+ *,
567
+ key: builtins.str = ...,
568
+ value: global___SplitMetadata | None = ...,
569
+ ) -> None: ...
570
+ def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
571
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
572
+
573
+ METADATA_FIELD_NUMBER: builtins.int
574
+ @property
575
+ def metadata(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___SplitMetadata]: ...
576
+ def __init__(
577
+ self,
578
+ *,
579
+ metadata: collections.abc.Mapping[builtins.str, global___SplitMetadata] | None = ...,
580
+ ) -> None: ...
581
+ def ClearField(self, field_name: typing.Literal["metadata", b"metadata"]) -> None: ...
582
+
583
+ global___SplitsMetadata = SplitsMetadata
584
+
525
585
  @typing.final
526
586
  class NestedPosition(google.protobuf.message.Message):
527
587
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -1037,7 +1097,6 @@ class Paragraph(google.protobuf.message.Message):
1037
1097
  KIND_FIELD_NUMBER: builtins.int
1038
1098
  CLASSIFICATIONS_FIELD_NUMBER: builtins.int
1039
1099
  SENTENCES_FIELD_NUMBER: builtins.int
1040
- KEY_FIELD_NUMBER: builtins.int
1041
1100
  TEXT_FIELD_NUMBER: builtins.int
1042
1101
  PAGE_FIELD_NUMBER: builtins.int
1043
1102
  REPRESENTATION_FIELD_NUMBER: builtins.int
@@ -1045,7 +1104,6 @@ class Paragraph(google.protobuf.message.Message):
1045
1104
  start: builtins.int
1046
1105
  end: builtins.int
1047
1106
  kind: global___Paragraph.TypeParagraph.ValueType
1048
- key: builtins.str
1049
1107
  text: builtins.str
1050
1108
  """Optional, as a computed value"""
1051
1109
  @property
@@ -1072,14 +1130,13 @@ class Paragraph(google.protobuf.message.Message):
1072
1130
  kind: global___Paragraph.TypeParagraph.ValueType = ...,
1073
1131
  classifications: collections.abc.Iterable[global___Classification] | None = ...,
1074
1132
  sentences: collections.abc.Iterable[global___Sentence] | None = ...,
1075
- key: builtins.str = ...,
1076
1133
  text: builtins.str = ...,
1077
1134
  page: global___PageInformation | None = ...,
1078
1135
  representation: global___Representation | None = ...,
1079
1136
  relations: global___ParagraphRelations | None = ...,
1080
1137
  ) -> None: ...
1081
1138
  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: ...
1139
+ 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
1140
 
1084
1141
  global___Paragraph = Paragraph
1085
1142
 
@@ -1655,10 +1712,12 @@ class FieldText(google.protobuf.message.Message):
1655
1712
  MD5_FIELD_NUMBER: builtins.int
1656
1713
  GENERATED_BY_FIELD_NUMBER: builtins.int
1657
1714
  EXTRACT_STRATEGY_FIELD_NUMBER: builtins.int
1715
+ SPLIT_STRATEGY_FIELD_NUMBER: builtins.int
1658
1716
  body: builtins.str
1659
1717
  format: global___FieldText.Format.ValueType
1660
1718
  md5: builtins.str
1661
1719
  extract_strategy: builtins.str
1720
+ split_strategy: builtins.str
1662
1721
  @property
1663
1722
  def generated_by(self) -> global___FieldAuthor: ...
1664
1723
  def __init__(
@@ -1669,9 +1728,10 @@ class FieldText(google.protobuf.message.Message):
1669
1728
  md5: builtins.str = ...,
1670
1729
  generated_by: global___FieldAuthor | None = ...,
1671
1730
  extract_strategy: builtins.str = ...,
1731
+ split_strategy: builtins.str = ...,
1672
1732
  ) -> None: ...
1673
1733
  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: ...
1734
+ 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
1735
 
1676
1736
  global___FieldText = FieldText
1677
1737
 
@@ -1939,11 +1999,13 @@ class FieldLink(google.protobuf.message.Message):
1939
1999
  CSS_SELECTOR_FIELD_NUMBER: builtins.int
1940
2000
  XPATH_FIELD_NUMBER: builtins.int
1941
2001
  EXTRACT_STRATEGY_FIELD_NUMBER: builtins.int
2002
+ SPLIT_STRATEGY_FIELD_NUMBER: builtins.int
1942
2003
  uri: builtins.str
1943
2004
  language: builtins.str
1944
2005
  css_selector: builtins.str
1945
2006
  xpath: builtins.str
1946
2007
  extract_strategy: builtins.str
2008
+ split_strategy: builtins.str
1947
2009
  @property
1948
2010
  def added(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1949
2011
  @property
@@ -1964,9 +2026,10 @@ class FieldLink(google.protobuf.message.Message):
1964
2026
  css_selector: builtins.str = ...,
1965
2027
  xpath: builtins.str = ...,
1966
2028
  extract_strategy: builtins.str = ...,
2029
+ split_strategy: builtins.str = ...,
1967
2030
  ) -> None: ...
1968
2031
  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: ...
2032
+ 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
2033
 
1971
2034
  global___FieldLink = FieldLink
1972
2035
 
@@ -1997,10 +2060,12 @@ class FieldFile(google.protobuf.message.Message):
1997
2060
  URL_FIELD_NUMBER: builtins.int
1998
2061
  HEADERS_FIELD_NUMBER: builtins.int
1999
2062
  EXTRACT_STRATEGY_FIELD_NUMBER: builtins.int
2063
+ SPLIT_STRATEGY_FIELD_NUMBER: builtins.int
2000
2064
  language: builtins.str
2001
2065
  password: builtins.str
2002
2066
  url: builtins.str
2003
2067
  extract_strategy: builtins.str
2068
+ split_strategy: builtins.str
2004
2069
  @property
2005
2070
  def added(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
2006
2071
  @property
@@ -2017,9 +2082,10 @@ class FieldFile(google.protobuf.message.Message):
2017
2082
  url: builtins.str = ...,
2018
2083
  headers: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
2019
2084
  extract_strategy: builtins.str = ...,
2085
+ split_strategy: builtins.str = ...,
2020
2086
  ) -> None: ...
2021
2087
  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: ...
2088
+ 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
2089
 
2024
2090
  global___FieldFile = FieldFile
2025
2091
 
@@ -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: 5.29.0
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
+ 5,
15
+ 29,
16
+ 0,
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.71.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
+ + f' 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: 5.29.0
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
+ 5,
15
+ 29,
16
+ 0,
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,8 @@ 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,
124
129
  TEXT as TEXT,
125
130
  UserFieldMetadata as UserFieldMetadata,
126
131
  UserMetadata as UserMetadata,
@@ -159,7 +164,6 @@ from nucliadb_protos.writer_pb2 import (
159
164
  PROCESSOR as PROCESSOR,
160
165
  SetEntitiesRequest as SetEntitiesRequest,
161
166
  ShardObject as ShardObject,
162
- ShardReplica as ShardReplica,
163
167
  Shards as Shards,
164
168
  SynonymsRequest as SynonymsRequest,
165
169
  UNSET as UNSET,