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
@@ -12,7 +12,6 @@ import google.protobuf.message
12
12
  import google.protobuf.timestamp_pb2
13
13
  import nucliadb_protos.audit_pb2
14
14
  import nucliadb_protos.knowledgebox_pb2
15
- import nucliadb_protos.noderesources_pb2
16
15
  import nucliadb_protos.resources_pb2
17
16
  import nucliadb_protos.utils_pb2
18
17
  import sys
@@ -27,6 +26,7 @@ from nucliadb_protos.audit_pb2 import (
27
26
  AuditField as AuditField,
28
27
  AuditKBCounter as AuditKBCounter,
29
28
  AuditRequest as AuditRequest,
29
+ AuditSearchRequest as AuditSearchRequest,
30
30
  CHAT as CHAT,
31
31
  CHROME_EXTENSION as CHROME_EXTENSION,
32
32
  ChatAudit as ChatAudit,
@@ -57,6 +57,7 @@ from nucliadb_protos.knowledgebox_pb2 import (
57
57
  CONFLICT as CONFLICT,
58
58
  CreateExternalIndexProviderMetadata as CreateExternalIndexProviderMetadata,
59
59
  CreatePineconeConfig as CreatePineconeConfig,
60
+ DENSE_F32 as DENSE_F32,
60
61
  DeleteKnowledgeBoxResponse as DeleteKnowledgeBoxResponse,
61
62
  DeletedEntitiesGroups as DeletedEntitiesGroups,
62
63
  ERROR as ERROR,
@@ -90,37 +91,12 @@ from nucliadb_protos.knowledgebox_pb2 import (
90
91
  TermSynonyms as TermSynonyms,
91
92
  UNSET as UNSET,
92
93
  UpdateKnowledgeBoxResponse as UpdateKnowledgeBoxResponse,
94
+ VectorIndexConfig as VectorIndexConfig,
93
95
  VectorSet as VectorSet,
94
96
  VectorSetConfig as VectorSetConfig,
95
97
  VectorSetPurge as VectorSetPurge,
96
98
  VectorSets as VectorSets,
97
- )
98
- from nucliadb_protos.noderesources_pb2 import (
99
- EmptyQuery as EmptyQuery,
100
- EmptyResponse as EmptyResponse,
101
- IndexMetadata as IndexMetadata,
102
- IndexParagraph as IndexParagraph,
103
- IndexParagraphs as IndexParagraphs,
104
- IndexRelation as IndexRelation,
105
- IndexRelations as IndexRelations,
106
- NodeMetadata as NodeMetadata,
107
- ParagraphMetadata as ParagraphMetadata,
108
- Position as Position,
109
- Representation as Representation,
110
- Resource as Resource,
111
- ResourceID as ResourceID,
112
- SentenceMetadata as SentenceMetadata,
113
- Shard as Shard,
114
- ShardCreated as ShardCreated,
115
- ShardId as ShardId,
116
- ShardIds as ShardIds,
117
- ShardMetadata as ShardMetadata,
118
- StringList as StringList,
119
- TextInformation as TextInformation,
120
- VectorSentence as VectorSentence,
121
- VectorSetID as VectorSetID,
122
- VectorSetList as VectorSetList,
123
- VectorsetSentences as VectorsetSentences,
99
+ VectorType as VectorType,
124
100
  )
125
101
  from nucliadb_protos.resources_pb2 import (
126
102
  AllFieldIDs as AllFieldIDs,
@@ -185,6 +161,9 @@ from nucliadb_protos.resources_pb2 import (
185
161
  Representation as Representation,
186
162
  RowsPreview as RowsPreview,
187
163
  Sentence as Sentence,
164
+ SplitMetadata as SplitMetadata,
165
+ SplitsMetadata as SplitsMetadata,
166
+ SyncMetadata as SyncMetadata,
188
167
  TEXT as TEXT,
189
168
  UserFieldMetadata as UserFieldMetadata,
190
169
  UserMetadata as UserMetadata,
@@ -322,22 +301,39 @@ class Error(google.protobuf.message.Message):
322
301
  EXTRACT: Error._ErrorCode.ValueType # 1
323
302
  PROCESS: Error._ErrorCode.ValueType # 2
324
303
  DATAAUGMENTATION: Error._ErrorCode.ValueType # 3
304
+ INDEX: Error._ErrorCode.ValueType # 4
325
305
 
326
306
  class ErrorCode(_ErrorCode, metaclass=_ErrorCodeEnumTypeWrapper): ...
327
307
  GENERIC: Error.ErrorCode.ValueType # 0
328
308
  EXTRACT: Error.ErrorCode.ValueType # 1
329
309
  PROCESS: Error.ErrorCode.ValueType # 2
330
310
  DATAAUGMENTATION: Error.ErrorCode.ValueType # 3
311
+ INDEX: Error.ErrorCode.ValueType # 4
312
+
313
+ class _Severity:
314
+ ValueType = typing.NewType("ValueType", builtins.int)
315
+ V: typing_extensions.TypeAlias = ValueType
316
+
317
+ class _SeverityEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Error._Severity.ValueType], builtins.type):
318
+ DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
319
+ ERROR: Error._Severity.ValueType # 0
320
+ WARNING: Error._Severity.ValueType # 1
321
+
322
+ class Severity(_Severity, metaclass=_SeverityEnumTypeWrapper): ...
323
+ ERROR: Error.Severity.ValueType # 0
324
+ WARNING: Error.Severity.ValueType # 1
331
325
 
332
326
  FIELD_FIELD_NUMBER: builtins.int
333
327
  FIELD_TYPE_FIELD_NUMBER: builtins.int
334
328
  ERROR_FIELD_NUMBER: builtins.int
335
329
  CODE_FIELD_NUMBER: builtins.int
336
330
  GENERATED_BY_FIELD_NUMBER: builtins.int
331
+ SEVERITY_FIELD_NUMBER: builtins.int
337
332
  field: builtins.str
338
333
  field_type: nucliadb_protos.resources_pb2.FieldType.ValueType
339
334
  error: builtins.str
340
335
  code: global___Error.ErrorCode.ValueType
336
+ severity: global___Error.Severity.ValueType
341
337
  @property
342
338
  def generated_by(self) -> global___Generator: ...
343
339
  def __init__(
@@ -348,9 +344,10 @@ class Error(google.protobuf.message.Message):
348
344
  error: builtins.str = ...,
349
345
  code: global___Error.ErrorCode.ValueType = ...,
350
346
  generated_by: global___Generator | None = ...,
347
+ severity: global___Error.Severity.ValueType = ...,
351
348
  ) -> None: ...
352
349
  def HasField(self, field_name: typing.Literal["generated_by", b"generated_by"]) -> builtins.bool: ...
353
- def ClearField(self, field_name: typing.Literal["code", b"code", "error", b"error", "field", b"field", "field_type", b"field_type", "generated_by", b"generated_by"]) -> None: ...
350
+ def ClearField(self, field_name: typing.Literal["code", b"code", "error", b"error", "field", b"field", "field_type", b"field_type", "generated_by", b"generated_by", "severity", b"severity"]) -> None: ...
354
351
 
355
352
  global___Error = Error
356
353
 
@@ -365,17 +362,19 @@ class BrokerMessage(google.protobuf.message.Message):
365
362
  class _MessageTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[BrokerMessage._MessageType.ValueType], builtins.type):
366
363
  DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
367
364
  AUTOCOMMIT: BrokerMessage._MessageType.ValueType # 0
365
+ DELETE: BrokerMessage._MessageType.ValueType # 4
368
366
  MULTI: BrokerMessage._MessageType.ValueType # 1
367
+ """Deprecated, multi-commit transactions have never worked. Not implemented."""
369
368
  COMMIT: BrokerMessage._MessageType.ValueType # 2
370
369
  ROLLBACK: BrokerMessage._MessageType.ValueType # 3
371
- DELETE: BrokerMessage._MessageType.ValueType # 4
372
370
 
373
371
  class MessageType(_MessageType, metaclass=_MessageTypeEnumTypeWrapper): ...
374
372
  AUTOCOMMIT: BrokerMessage.MessageType.ValueType # 0
373
+ DELETE: BrokerMessage.MessageType.ValueType # 4
375
374
  MULTI: BrokerMessage.MessageType.ValueType # 1
375
+ """Deprecated, multi-commit transactions have never worked. Not implemented."""
376
376
  COMMIT: BrokerMessage.MessageType.ValueType # 2
377
377
  ROLLBACK: BrokerMessage.MessageType.ValueType # 3
378
- DELETE: BrokerMessage.MessageType.ValueType # 4
379
378
 
380
379
  class _MessageSource:
381
380
  ValueType = typing.NewType("ValueType", builtins.int)
@@ -694,198 +693,6 @@ class WriterStatusRequest(google.protobuf.message.Message):
694
693
 
695
694
  global___WriterStatusRequest = WriterStatusRequest
696
695
 
697
- @typing.final
698
- class NewEntitiesGroupRequest(google.protobuf.message.Message):
699
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
700
-
701
- KB_FIELD_NUMBER: builtins.int
702
- GROUP_FIELD_NUMBER: builtins.int
703
- ENTITIES_FIELD_NUMBER: builtins.int
704
- group: builtins.str
705
- @property
706
- def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
707
- @property
708
- def entities(self) -> nucliadb_protos.knowledgebox_pb2.EntitiesGroup: ...
709
- def __init__(
710
- self,
711
- *,
712
- kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
713
- group: builtins.str = ...,
714
- entities: nucliadb_protos.knowledgebox_pb2.EntitiesGroup | None = ...,
715
- ) -> None: ...
716
- def HasField(self, field_name: typing.Literal["entities", b"entities", "kb", b"kb"]) -> builtins.bool: ...
717
- def ClearField(self, field_name: typing.Literal["entities", b"entities", "group", b"group", "kb", b"kb"]) -> None: ...
718
-
719
- global___NewEntitiesGroupRequest = NewEntitiesGroupRequest
720
-
721
- @typing.final
722
- class NewEntitiesGroupResponse(google.protobuf.message.Message):
723
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
724
-
725
- class _Status:
726
- ValueType = typing.NewType("ValueType", builtins.int)
727
- V: typing_extensions.TypeAlias = ValueType
728
-
729
- class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[NewEntitiesGroupResponse._Status.ValueType], builtins.type):
730
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
731
- OK: NewEntitiesGroupResponse._Status.ValueType # 0
732
- ERROR: NewEntitiesGroupResponse._Status.ValueType # 1
733
- KB_NOT_FOUND: NewEntitiesGroupResponse._Status.ValueType # 2
734
- ALREADY_EXISTS: NewEntitiesGroupResponse._Status.ValueType # 3
735
-
736
- class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
737
- OK: NewEntitiesGroupResponse.Status.ValueType # 0
738
- ERROR: NewEntitiesGroupResponse.Status.ValueType # 1
739
- KB_NOT_FOUND: NewEntitiesGroupResponse.Status.ValueType # 2
740
- ALREADY_EXISTS: NewEntitiesGroupResponse.Status.ValueType # 3
741
-
742
- STATUS_FIELD_NUMBER: builtins.int
743
- status: global___NewEntitiesGroupResponse.Status.ValueType
744
- def __init__(
745
- self,
746
- *,
747
- status: global___NewEntitiesGroupResponse.Status.ValueType = ...,
748
- ) -> None: ...
749
- def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ...
750
-
751
- global___NewEntitiesGroupResponse = NewEntitiesGroupResponse
752
-
753
- @typing.final
754
- class SetEntitiesRequest(google.protobuf.message.Message):
755
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
756
-
757
- KB_FIELD_NUMBER: builtins.int
758
- GROUP_FIELD_NUMBER: builtins.int
759
- ENTITIES_FIELD_NUMBER: builtins.int
760
- group: builtins.str
761
- @property
762
- def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
763
- @property
764
- def entities(self) -> nucliadb_protos.knowledgebox_pb2.EntitiesGroup: ...
765
- def __init__(
766
- self,
767
- *,
768
- kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
769
- group: builtins.str = ...,
770
- entities: nucliadb_protos.knowledgebox_pb2.EntitiesGroup | None = ...,
771
- ) -> None: ...
772
- def HasField(self, field_name: typing.Literal["entities", b"entities", "kb", b"kb"]) -> builtins.bool: ...
773
- def ClearField(self, field_name: typing.Literal["entities", b"entities", "group", b"group", "kb", b"kb"]) -> None: ...
774
-
775
- global___SetEntitiesRequest = SetEntitiesRequest
776
-
777
- @typing.final
778
- class UpdateEntitiesGroupRequest(google.protobuf.message.Message):
779
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
780
-
781
- @typing.final
782
- class AddEntry(google.protobuf.message.Message):
783
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
784
-
785
- KEY_FIELD_NUMBER: builtins.int
786
- VALUE_FIELD_NUMBER: builtins.int
787
- key: builtins.str
788
- @property
789
- def value(self) -> nucliadb_protos.knowledgebox_pb2.Entity: ...
790
- def __init__(
791
- self,
792
- *,
793
- key: builtins.str = ...,
794
- value: nucliadb_protos.knowledgebox_pb2.Entity | None = ...,
795
- ) -> None: ...
796
- def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
797
- def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
798
-
799
- @typing.final
800
- class UpdateEntry(google.protobuf.message.Message):
801
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
802
-
803
- KEY_FIELD_NUMBER: builtins.int
804
- VALUE_FIELD_NUMBER: builtins.int
805
- key: builtins.str
806
- @property
807
- def value(self) -> nucliadb_protos.knowledgebox_pb2.Entity: ...
808
- def __init__(
809
- self,
810
- *,
811
- key: builtins.str = ...,
812
- value: nucliadb_protos.knowledgebox_pb2.Entity | None = ...,
813
- ) -> None: ...
814
- def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
815
- def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
816
-
817
- KB_FIELD_NUMBER: builtins.int
818
- GROUP_FIELD_NUMBER: builtins.int
819
- ADD_FIELD_NUMBER: builtins.int
820
- UPDATE_FIELD_NUMBER: builtins.int
821
- DELETE_FIELD_NUMBER: builtins.int
822
- TITLE_FIELD_NUMBER: builtins.int
823
- COLOR_FIELD_NUMBER: builtins.int
824
- group: builtins.str
825
- title: builtins.str
826
- color: builtins.str
827
- @property
828
- def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
829
- @property
830
- def add(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity]:
831
- """entity_id: Entity"""
832
-
833
- @property
834
- def update(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity]:
835
- """entity_id: Entity"""
836
-
837
- @property
838
- def delete(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
839
- """entity_id"""
840
-
841
- def __init__(
842
- self,
843
- *,
844
- kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
845
- group: builtins.str = ...,
846
- add: collections.abc.Mapping[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity] | None = ...,
847
- update: collections.abc.Mapping[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity] | None = ...,
848
- delete: collections.abc.Iterable[builtins.str] | None = ...,
849
- title: builtins.str = ...,
850
- color: builtins.str = ...,
851
- ) -> None: ...
852
- def HasField(self, field_name: typing.Literal["kb", b"kb"]) -> builtins.bool: ...
853
- def ClearField(self, field_name: typing.Literal["add", b"add", "color", b"color", "delete", b"delete", "group", b"group", "kb", b"kb", "title", b"title", "update", b"update"]) -> None: ...
854
-
855
- global___UpdateEntitiesGroupRequest = UpdateEntitiesGroupRequest
856
-
857
- @typing.final
858
- class UpdateEntitiesGroupResponse(google.protobuf.message.Message):
859
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
860
-
861
- class _Status:
862
- ValueType = typing.NewType("ValueType", builtins.int)
863
- V: typing_extensions.TypeAlias = ValueType
864
-
865
- class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[UpdateEntitiesGroupResponse._Status.ValueType], builtins.type):
866
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
867
- OK: UpdateEntitiesGroupResponse._Status.ValueType # 0
868
- ERROR: UpdateEntitiesGroupResponse._Status.ValueType # 1
869
- KB_NOT_FOUND: UpdateEntitiesGroupResponse._Status.ValueType # 2
870
- ENTITIES_GROUP_NOT_FOUND: UpdateEntitiesGroupResponse._Status.ValueType # 3
871
-
872
- class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
873
- OK: UpdateEntitiesGroupResponse.Status.ValueType # 0
874
- ERROR: UpdateEntitiesGroupResponse.Status.ValueType # 1
875
- KB_NOT_FOUND: UpdateEntitiesGroupResponse.Status.ValueType # 2
876
- ENTITIES_GROUP_NOT_FOUND: UpdateEntitiesGroupResponse.Status.ValueType # 3
877
-
878
- STATUS_FIELD_NUMBER: builtins.int
879
- status: global___UpdateEntitiesGroupResponse.Status.ValueType
880
- def __init__(
881
- self,
882
- *,
883
- status: global___UpdateEntitiesGroupResponse.Status.ValueType = ...,
884
- ) -> None: ...
885
- def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ...
886
-
887
- global___UpdateEntitiesGroupResponse = UpdateEntitiesGroupResponse
888
-
889
696
  @typing.final
890
697
  class ListEntitiesGroupsRequest(google.protobuf.message.Message):
891
698
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -1029,64 +836,6 @@ class GetEntitiesResponse(google.protobuf.message.Message):
1029
836
 
1030
837
  global___GetEntitiesResponse = GetEntitiesResponse
1031
838
 
1032
- @typing.final
1033
- class DelEntitiesRequest(google.protobuf.message.Message):
1034
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1035
-
1036
- KB_FIELD_NUMBER: builtins.int
1037
- GROUP_FIELD_NUMBER: builtins.int
1038
- group: builtins.str
1039
- @property
1040
- def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
1041
- def __init__(
1042
- self,
1043
- *,
1044
- kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
1045
- group: builtins.str = ...,
1046
- ) -> None: ...
1047
- def HasField(self, field_name: typing.Literal["kb", b"kb"]) -> builtins.bool: ...
1048
- def ClearField(self, field_name: typing.Literal["group", b"group", "kb", b"kb"]) -> None: ...
1049
-
1050
- global___DelEntitiesRequest = DelEntitiesRequest
1051
-
1052
- @typing.final
1053
- class MergeEntitiesRequest(google.protobuf.message.Message):
1054
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1055
-
1056
- @typing.final
1057
- class EntityID(google.protobuf.message.Message):
1058
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1059
-
1060
- GROUP_FIELD_NUMBER: builtins.int
1061
- ENTITY_FIELD_NUMBER: builtins.int
1062
- group: builtins.str
1063
- entity: builtins.str
1064
- def __init__(
1065
- self,
1066
- *,
1067
- group: builtins.str = ...,
1068
- entity: builtins.str = ...,
1069
- ) -> None: ...
1070
- def ClearField(self, field_name: typing.Literal["entity", b"entity", "group", b"group"]) -> None: ...
1071
-
1072
- KB_FIELD_NUMBER: builtins.int
1073
- FROM_FIELD_NUMBER: builtins.int
1074
- TO_FIELD_NUMBER: builtins.int
1075
- @property
1076
- def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
1077
- @property
1078
- def to(self) -> global___MergeEntitiesRequest.EntityID: ...
1079
- def __init__(
1080
- self,
1081
- *,
1082
- kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
1083
- to: global___MergeEntitiesRequest.EntityID | None = ...,
1084
- ) -> None: ...
1085
- def HasField(self, field_name: typing.Literal["from", b"from", "kb", b"kb", "to", b"to"]) -> builtins.bool: ...
1086
- def ClearField(self, field_name: typing.Literal["from", b"from", "kb", b"kb", "to", b"to"]) -> None: ...
1087
-
1088
- global___MergeEntitiesRequest = MergeEntitiesRequest
1089
-
1090
839
  @typing.final
1091
840
  class GetLabelsResponse(google.protobuf.message.Message):
1092
841
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -1370,32 +1119,11 @@ class Notification(google.protobuf.message.Message):
1370
1119
 
1371
1120
  global___Notification = Notification
1372
1121
 
1373
- @typing.final
1374
- class ShardReplica(google.protobuf.message.Message):
1375
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1376
-
1377
- SHARD_FIELD_NUMBER: builtins.int
1378
- NODE_FIELD_NUMBER: builtins.int
1379
- node: builtins.str
1380
- @property
1381
- def shard(self) -> nucliadb_protos.noderesources_pb2.ShardCreated: ...
1382
- def __init__(
1383
- self,
1384
- *,
1385
- shard: nucliadb_protos.noderesources_pb2.ShardCreated | None = ...,
1386
- node: builtins.str = ...,
1387
- ) -> None: ...
1388
- def HasField(self, field_name: typing.Literal["shard", b"shard"]) -> builtins.bool: ...
1389
- def ClearField(self, field_name: typing.Literal["node", b"node", "shard", b"shard"]) -> None: ...
1390
-
1391
- global___ShardReplica = ShardReplica
1392
-
1393
1122
  @typing.final
1394
1123
  class ShardObject(google.protobuf.message.Message):
1395
1124
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
1396
1125
 
1397
1126
  SHARD_FIELD_NUMBER: builtins.int
1398
- REPLICAS_FIELD_NUMBER: builtins.int
1399
1127
  TIMESTAMP_FIELD_NUMBER: builtins.int
1400
1128
  READ_ONLY_FIELD_NUMBER: builtins.int
1401
1129
  NIDX_SHARD_ID_FIELD_NUMBER: builtins.int
@@ -1403,20 +1131,17 @@ class ShardObject(google.protobuf.message.Message):
1403
1131
  read_only: builtins.bool
1404
1132
  nidx_shard_id: builtins.str
1405
1133
  @property
1406
- def replicas(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ShardReplica]: ...
1407
- @property
1408
1134
  def timestamp(self) -> google.protobuf.timestamp_pb2.Timestamp: ...
1409
1135
  def __init__(
1410
1136
  self,
1411
1137
  *,
1412
1138
  shard: builtins.str = ...,
1413
- replicas: collections.abc.Iterable[global___ShardReplica] | None = ...,
1414
1139
  timestamp: google.protobuf.timestamp_pb2.Timestamp | None = ...,
1415
1140
  read_only: builtins.bool = ...,
1416
1141
  nidx_shard_id: builtins.str = ...,
1417
1142
  ) -> None: ...
1418
1143
  def HasField(self, field_name: typing.Literal["timestamp", b"timestamp"]) -> builtins.bool: ...
1419
- def ClearField(self, field_name: typing.Literal["nidx_shard_id", b"nidx_shard_id", "read_only", b"read_only", "replicas", b"replicas", "shard", b"shard", "timestamp", b"timestamp"]) -> None: ...
1144
+ def ClearField(self, field_name: typing.Literal["nidx_shard_id", b"nidx_shard_id", "read_only", b"read_only", "shard", b"shard", "timestamp", b"timestamp"]) -> None: ...
1420
1145
 
1421
1146
  global___ShardObject = ShardObject
1422
1147
 
@@ -1445,7 +1170,6 @@ class Shards(google.protobuf.message.Message):
1445
1170
  ACTUAL_FIELD_NUMBER: builtins.int
1446
1171
  SIMILARITY_FIELD_NUMBER: builtins.int
1447
1172
  MODEL_FIELD_NUMBER: builtins.int
1448
- RELEASE_CHANNEL_FIELD_NUMBER: builtins.int
1449
1173
  EXTRA_FIELD_NUMBER: builtins.int
1450
1174
  kbid: builtins.str
1451
1175
  actual: builtins.int
@@ -1454,7 +1178,6 @@ class Shards(google.protobuf.message.Message):
1454
1178
  """
1455
1179
  similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType
1456
1180
  """DEPRECATED in favor of `model` to include more data"""
1457
- release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType
1458
1181
  @property
1459
1182
  def shards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ShardObject]: ...
1460
1183
  @property
@@ -1471,11 +1194,10 @@ class Shards(google.protobuf.message.Message):
1471
1194
  actual: builtins.int = ...,
1472
1195
  similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType = ...,
1473
1196
  model: nucliadb_protos.knowledgebox_pb2.SemanticModelMetadata | None = ...,
1474
- release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType = ...,
1475
1197
  extra: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1476
1198
  ) -> None: ...
1477
1199
  def HasField(self, field_name: typing.Literal["model", b"model"]) -> builtins.bool: ...
1478
- def ClearField(self, field_name: typing.Literal["actual", b"actual", "extra", b"extra", "kbid", b"kbid", "model", b"model", "release_channel", b"release_channel", "shards", b"shards", "similarity", b"similarity"]) -> None: ...
1200
+ def ClearField(self, field_name: typing.Literal["actual", b"actual", "extra", b"extra", "kbid", b"kbid", "model", b"model", "shards", b"shards", "similarity", b"similarity"]) -> None: ...
1479
1201
 
1480
1202
  global___Shards = Shards
1481
1203
 
@@ -1560,12 +1282,18 @@ class NewKnowledgeBoxV2Request(google.protobuf.message.Message):
1560
1282
  EXTERNAL_INDEX_PROVIDER_FIELD_NUMBER: builtins.int
1561
1283
  HIDDEN_RESOURCES_ENABLED_FIELD_NUMBER: builtins.int
1562
1284
  HIDDEN_RESOURCES_HIDE_ON_CREATION_FIELD_NUMBER: builtins.int
1285
+ PREWARM_ENABLED_FIELD_NUMBER: builtins.int
1563
1286
  kbid: builtins.str
1564
1287
  slug: builtins.str
1565
1288
  title: builtins.str
1566
1289
  description: builtins.str
1567
1290
  hidden_resources_enabled: builtins.bool
1568
1291
  hidden_resources_hide_on_creation: builtins.bool
1292
+ prewarm_enabled: builtins.bool
1293
+ """whether to enable prewarm of data for faster search or not. Activating
1294
+ this flag allow faster searches (with less cold start) but it is
1295
+ expensive on the infrastructure
1296
+ """
1569
1297
  @property
1570
1298
  def vectorsets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NewKnowledgeBoxV2Request.VectorSet]: ...
1571
1299
  @property
@@ -1581,9 +1309,10 @@ class NewKnowledgeBoxV2Request(google.protobuf.message.Message):
1581
1309
  external_index_provider: nucliadb_protos.knowledgebox_pb2.CreateExternalIndexProviderMetadata | None = ...,
1582
1310
  hidden_resources_enabled: builtins.bool = ...,
1583
1311
  hidden_resources_hide_on_creation: builtins.bool = ...,
1312
+ prewarm_enabled: builtins.bool = ...,
1584
1313
  ) -> None: ...
1585
1314
  def HasField(self, field_name: typing.Literal["external_index_provider", b"external_index_provider"]) -> builtins.bool: ...
1586
- def ClearField(self, field_name: typing.Literal["description", b"description", "external_index_provider", b"external_index_provider", "hidden_resources_enabled", b"hidden_resources_enabled", "hidden_resources_hide_on_creation", b"hidden_resources_hide_on_creation", "kbid", b"kbid", "slug", b"slug", "title", b"title", "vectorsets", b"vectorsets"]) -> None: ...
1315
+ def ClearField(self, field_name: typing.Literal["description", b"description", "external_index_provider", b"external_index_provider", "hidden_resources_enabled", b"hidden_resources_enabled", "hidden_resources_hide_on_creation", b"hidden_resources_hide_on_creation", "kbid", b"kbid", "prewarm_enabled", b"prewarm_enabled", "slug", b"slug", "title", b"title", "vectorsets", b"vectorsets"]) -> None: ...
1587
1316
 
1588
1317
  global___NewKnowledgeBoxV2Request = NewKnowledgeBoxV2Request
1589
1318