nucliadb-protos 6.8.1.post4969__py3-none-any.whl → 6.9.7.post5553__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.
- nucliadb_protos/audit_pb2.py +4 -4
- nucliadb_protos/backups_pb2.py +4 -4
- nucliadb_protos/backups_pb2_grpc.py +2 -2
- nucliadb_protos/dataset_pb2.py +4 -4
- nucliadb_protos/dataset_pb2.pyi +2 -0
- nucliadb_protos/kb_usage_pb2.py +10 -10
- nucliadb_protos/kb_usage_pb2.pyi +2 -0
- nucliadb_protos/knowledgebox_pb2.py +80 -82
- nucliadb_protos/knowledgebox_pb2.pyi +8 -8
- nucliadb_protos/migrations_pb2.py +4 -4
- nucliadb_protos/resources_pb2.py +172 -164
- nucliadb_protos/resources_pb2.pyi +53 -8
- nucliadb_protos/standalone_pb2.py +4 -4
- nucliadb_protos/standalone_pb2_grpc.py +2 -2
- nucliadb_protos/train_pb2.py +4 -4
- nucliadb_protos/train_pb2.pyi +2 -7
- nucliadb_protos/train_pb2_grpc.py +2 -2
- nucliadb_protos/train_pb2_grpc.pyi +2 -7
- nucliadb_protos/utils_pb2.py +5 -7
- nucliadb_protos/utils_pb2.pyi +0 -15
- nucliadb_protos/writer_pb2.py +79 -107
- nucliadb_protos/writer_pb2.pyi +15 -257
- nucliadb_protos/writer_pb2_grpc.py +3 -175
- nucliadb_protos/writer_pb2_grpc.pyi +6 -72
- {nucliadb_protos-6.8.1.post4969.dist-info → nucliadb_protos-6.9.7.post5553.dist-info}/METADATA +5 -6
- nucliadb_protos-6.9.7.post5553.dist-info/RECORD +37 -0
- {nucliadb_protos-6.8.1.post4969.dist-info → nucliadb_protos-6.9.7.post5553.dist-info}/WHEEL +1 -1
- nucliadb_protos-6.8.1.post4969.dist-info/RECORD +0 -37
- {nucliadb_protos-6.8.1.post4969.dist-info → nucliadb_protos-6.9.7.post5553.dist-info}/entry_points.txt +0 -0
nucliadb_protos/writer_pb2.pyi
CHANGED
|
@@ -161,6 +161,8 @@ from nucliadb_protos.resources_pb2 import (
|
|
|
161
161
|
Representation as Representation,
|
|
162
162
|
RowsPreview as RowsPreview,
|
|
163
163
|
Sentence as Sentence,
|
|
164
|
+
SplitMetadata as SplitMetadata,
|
|
165
|
+
SplitsMetadata as SplitsMetadata,
|
|
164
166
|
TEXT as TEXT,
|
|
165
167
|
UserFieldMetadata as UserFieldMetadata,
|
|
166
168
|
UserMetadata as UserMetadata,
|
|
@@ -359,17 +361,19 @@ class BrokerMessage(google.protobuf.message.Message):
|
|
|
359
361
|
class _MessageTypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[BrokerMessage._MessageType.ValueType], builtins.type):
|
|
360
362
|
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
361
363
|
AUTOCOMMIT: BrokerMessage._MessageType.ValueType # 0
|
|
364
|
+
DELETE: BrokerMessage._MessageType.ValueType # 4
|
|
362
365
|
MULTI: BrokerMessage._MessageType.ValueType # 1
|
|
366
|
+
"""Deprecated, multi-commit transactions have never worked. Not implemented."""
|
|
363
367
|
COMMIT: BrokerMessage._MessageType.ValueType # 2
|
|
364
368
|
ROLLBACK: BrokerMessage._MessageType.ValueType # 3
|
|
365
|
-
DELETE: BrokerMessage._MessageType.ValueType # 4
|
|
366
369
|
|
|
367
370
|
class MessageType(_MessageType, metaclass=_MessageTypeEnumTypeWrapper): ...
|
|
368
371
|
AUTOCOMMIT: BrokerMessage.MessageType.ValueType # 0
|
|
372
|
+
DELETE: BrokerMessage.MessageType.ValueType # 4
|
|
369
373
|
MULTI: BrokerMessage.MessageType.ValueType # 1
|
|
374
|
+
"""Deprecated, multi-commit transactions have never worked. Not implemented."""
|
|
370
375
|
COMMIT: BrokerMessage.MessageType.ValueType # 2
|
|
371
376
|
ROLLBACK: BrokerMessage.MessageType.ValueType # 3
|
|
372
|
-
DELETE: BrokerMessage.MessageType.ValueType # 4
|
|
373
377
|
|
|
374
378
|
class _MessageSource:
|
|
375
379
|
ValueType = typing.NewType("ValueType", builtins.int)
|
|
@@ -688,198 +692,6 @@ class WriterStatusRequest(google.protobuf.message.Message):
|
|
|
688
692
|
|
|
689
693
|
global___WriterStatusRequest = WriterStatusRequest
|
|
690
694
|
|
|
691
|
-
@typing.final
|
|
692
|
-
class NewEntitiesGroupRequest(google.protobuf.message.Message):
|
|
693
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
694
|
-
|
|
695
|
-
KB_FIELD_NUMBER: builtins.int
|
|
696
|
-
GROUP_FIELD_NUMBER: builtins.int
|
|
697
|
-
ENTITIES_FIELD_NUMBER: builtins.int
|
|
698
|
-
group: builtins.str
|
|
699
|
-
@property
|
|
700
|
-
def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
|
|
701
|
-
@property
|
|
702
|
-
def entities(self) -> nucliadb_protos.knowledgebox_pb2.EntitiesGroup: ...
|
|
703
|
-
def __init__(
|
|
704
|
-
self,
|
|
705
|
-
*,
|
|
706
|
-
kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
|
|
707
|
-
group: builtins.str = ...,
|
|
708
|
-
entities: nucliadb_protos.knowledgebox_pb2.EntitiesGroup | None = ...,
|
|
709
|
-
) -> None: ...
|
|
710
|
-
def HasField(self, field_name: typing.Literal["entities", b"entities", "kb", b"kb"]) -> builtins.bool: ...
|
|
711
|
-
def ClearField(self, field_name: typing.Literal["entities", b"entities", "group", b"group", "kb", b"kb"]) -> None: ...
|
|
712
|
-
|
|
713
|
-
global___NewEntitiesGroupRequest = NewEntitiesGroupRequest
|
|
714
|
-
|
|
715
|
-
@typing.final
|
|
716
|
-
class NewEntitiesGroupResponse(google.protobuf.message.Message):
|
|
717
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
718
|
-
|
|
719
|
-
class _Status:
|
|
720
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
721
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
722
|
-
|
|
723
|
-
class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[NewEntitiesGroupResponse._Status.ValueType], builtins.type):
|
|
724
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
725
|
-
OK: NewEntitiesGroupResponse._Status.ValueType # 0
|
|
726
|
-
ERROR: NewEntitiesGroupResponse._Status.ValueType # 1
|
|
727
|
-
KB_NOT_FOUND: NewEntitiesGroupResponse._Status.ValueType # 2
|
|
728
|
-
ALREADY_EXISTS: NewEntitiesGroupResponse._Status.ValueType # 3
|
|
729
|
-
|
|
730
|
-
class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
|
|
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
|
-
STATUS_FIELD_NUMBER: builtins.int
|
|
737
|
-
status: global___NewEntitiesGroupResponse.Status.ValueType
|
|
738
|
-
def __init__(
|
|
739
|
-
self,
|
|
740
|
-
*,
|
|
741
|
-
status: global___NewEntitiesGroupResponse.Status.ValueType = ...,
|
|
742
|
-
) -> None: ...
|
|
743
|
-
def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ...
|
|
744
|
-
|
|
745
|
-
global___NewEntitiesGroupResponse = NewEntitiesGroupResponse
|
|
746
|
-
|
|
747
|
-
@typing.final
|
|
748
|
-
class SetEntitiesRequest(google.protobuf.message.Message):
|
|
749
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
750
|
-
|
|
751
|
-
KB_FIELD_NUMBER: builtins.int
|
|
752
|
-
GROUP_FIELD_NUMBER: builtins.int
|
|
753
|
-
ENTITIES_FIELD_NUMBER: builtins.int
|
|
754
|
-
group: builtins.str
|
|
755
|
-
@property
|
|
756
|
-
def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
|
|
757
|
-
@property
|
|
758
|
-
def entities(self) -> nucliadb_protos.knowledgebox_pb2.EntitiesGroup: ...
|
|
759
|
-
def __init__(
|
|
760
|
-
self,
|
|
761
|
-
*,
|
|
762
|
-
kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
|
|
763
|
-
group: builtins.str = ...,
|
|
764
|
-
entities: nucliadb_protos.knowledgebox_pb2.EntitiesGroup | None = ...,
|
|
765
|
-
) -> None: ...
|
|
766
|
-
def HasField(self, field_name: typing.Literal["entities", b"entities", "kb", b"kb"]) -> builtins.bool: ...
|
|
767
|
-
def ClearField(self, field_name: typing.Literal["entities", b"entities", "group", b"group", "kb", b"kb"]) -> None: ...
|
|
768
|
-
|
|
769
|
-
global___SetEntitiesRequest = SetEntitiesRequest
|
|
770
|
-
|
|
771
|
-
@typing.final
|
|
772
|
-
class UpdateEntitiesGroupRequest(google.protobuf.message.Message):
|
|
773
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
774
|
-
|
|
775
|
-
@typing.final
|
|
776
|
-
class AddEntry(google.protobuf.message.Message):
|
|
777
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
778
|
-
|
|
779
|
-
KEY_FIELD_NUMBER: builtins.int
|
|
780
|
-
VALUE_FIELD_NUMBER: builtins.int
|
|
781
|
-
key: builtins.str
|
|
782
|
-
@property
|
|
783
|
-
def value(self) -> nucliadb_protos.knowledgebox_pb2.Entity: ...
|
|
784
|
-
def __init__(
|
|
785
|
-
self,
|
|
786
|
-
*,
|
|
787
|
-
key: builtins.str = ...,
|
|
788
|
-
value: nucliadb_protos.knowledgebox_pb2.Entity | None = ...,
|
|
789
|
-
) -> None: ...
|
|
790
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
|
791
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
792
|
-
|
|
793
|
-
@typing.final
|
|
794
|
-
class UpdateEntry(google.protobuf.message.Message):
|
|
795
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
796
|
-
|
|
797
|
-
KEY_FIELD_NUMBER: builtins.int
|
|
798
|
-
VALUE_FIELD_NUMBER: builtins.int
|
|
799
|
-
key: builtins.str
|
|
800
|
-
@property
|
|
801
|
-
def value(self) -> nucliadb_protos.knowledgebox_pb2.Entity: ...
|
|
802
|
-
def __init__(
|
|
803
|
-
self,
|
|
804
|
-
*,
|
|
805
|
-
key: builtins.str = ...,
|
|
806
|
-
value: nucliadb_protos.knowledgebox_pb2.Entity | None = ...,
|
|
807
|
-
) -> None: ...
|
|
808
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
|
809
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
|
810
|
-
|
|
811
|
-
KB_FIELD_NUMBER: builtins.int
|
|
812
|
-
GROUP_FIELD_NUMBER: builtins.int
|
|
813
|
-
ADD_FIELD_NUMBER: builtins.int
|
|
814
|
-
UPDATE_FIELD_NUMBER: builtins.int
|
|
815
|
-
DELETE_FIELD_NUMBER: builtins.int
|
|
816
|
-
TITLE_FIELD_NUMBER: builtins.int
|
|
817
|
-
COLOR_FIELD_NUMBER: builtins.int
|
|
818
|
-
group: builtins.str
|
|
819
|
-
title: builtins.str
|
|
820
|
-
color: builtins.str
|
|
821
|
-
@property
|
|
822
|
-
def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
|
|
823
|
-
@property
|
|
824
|
-
def add(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity]:
|
|
825
|
-
"""entity_id: Entity"""
|
|
826
|
-
|
|
827
|
-
@property
|
|
828
|
-
def update(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity]:
|
|
829
|
-
"""entity_id: Entity"""
|
|
830
|
-
|
|
831
|
-
@property
|
|
832
|
-
def delete(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
|
|
833
|
-
"""entity_id"""
|
|
834
|
-
|
|
835
|
-
def __init__(
|
|
836
|
-
self,
|
|
837
|
-
*,
|
|
838
|
-
kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
|
|
839
|
-
group: builtins.str = ...,
|
|
840
|
-
add: collections.abc.Mapping[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity] | None = ...,
|
|
841
|
-
update: collections.abc.Mapping[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity] | None = ...,
|
|
842
|
-
delete: collections.abc.Iterable[builtins.str] | None = ...,
|
|
843
|
-
title: builtins.str = ...,
|
|
844
|
-
color: builtins.str = ...,
|
|
845
|
-
) -> None: ...
|
|
846
|
-
def HasField(self, field_name: typing.Literal["kb", b"kb"]) -> builtins.bool: ...
|
|
847
|
-
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: ...
|
|
848
|
-
|
|
849
|
-
global___UpdateEntitiesGroupRequest = UpdateEntitiesGroupRequest
|
|
850
|
-
|
|
851
|
-
@typing.final
|
|
852
|
-
class UpdateEntitiesGroupResponse(google.protobuf.message.Message):
|
|
853
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
854
|
-
|
|
855
|
-
class _Status:
|
|
856
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
|
857
|
-
V: typing_extensions.TypeAlias = ValueType
|
|
858
|
-
|
|
859
|
-
class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[UpdateEntitiesGroupResponse._Status.ValueType], builtins.type):
|
|
860
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
|
861
|
-
OK: UpdateEntitiesGroupResponse._Status.ValueType # 0
|
|
862
|
-
ERROR: UpdateEntitiesGroupResponse._Status.ValueType # 1
|
|
863
|
-
KB_NOT_FOUND: UpdateEntitiesGroupResponse._Status.ValueType # 2
|
|
864
|
-
ENTITIES_GROUP_NOT_FOUND: UpdateEntitiesGroupResponse._Status.ValueType # 3
|
|
865
|
-
|
|
866
|
-
class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
|
|
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
|
-
STATUS_FIELD_NUMBER: builtins.int
|
|
873
|
-
status: global___UpdateEntitiesGroupResponse.Status.ValueType
|
|
874
|
-
def __init__(
|
|
875
|
-
self,
|
|
876
|
-
*,
|
|
877
|
-
status: global___UpdateEntitiesGroupResponse.Status.ValueType = ...,
|
|
878
|
-
) -> None: ...
|
|
879
|
-
def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ...
|
|
880
|
-
|
|
881
|
-
global___UpdateEntitiesGroupResponse = UpdateEntitiesGroupResponse
|
|
882
|
-
|
|
883
695
|
@typing.final
|
|
884
696
|
class ListEntitiesGroupsRequest(google.protobuf.message.Message):
|
|
885
697
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
@@ -1023,64 +835,6 @@ class GetEntitiesResponse(google.protobuf.message.Message):
|
|
|
1023
835
|
|
|
1024
836
|
global___GetEntitiesResponse = GetEntitiesResponse
|
|
1025
837
|
|
|
1026
|
-
@typing.final
|
|
1027
|
-
class DelEntitiesRequest(google.protobuf.message.Message):
|
|
1028
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1029
|
-
|
|
1030
|
-
KB_FIELD_NUMBER: builtins.int
|
|
1031
|
-
GROUP_FIELD_NUMBER: builtins.int
|
|
1032
|
-
group: builtins.str
|
|
1033
|
-
@property
|
|
1034
|
-
def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
|
|
1035
|
-
def __init__(
|
|
1036
|
-
self,
|
|
1037
|
-
*,
|
|
1038
|
-
kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
|
|
1039
|
-
group: builtins.str = ...,
|
|
1040
|
-
) -> None: ...
|
|
1041
|
-
def HasField(self, field_name: typing.Literal["kb", b"kb"]) -> builtins.bool: ...
|
|
1042
|
-
def ClearField(self, field_name: typing.Literal["group", b"group", "kb", b"kb"]) -> None: ...
|
|
1043
|
-
|
|
1044
|
-
global___DelEntitiesRequest = DelEntitiesRequest
|
|
1045
|
-
|
|
1046
|
-
@typing.final
|
|
1047
|
-
class MergeEntitiesRequest(google.protobuf.message.Message):
|
|
1048
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1049
|
-
|
|
1050
|
-
@typing.final
|
|
1051
|
-
class EntityID(google.protobuf.message.Message):
|
|
1052
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
1053
|
-
|
|
1054
|
-
GROUP_FIELD_NUMBER: builtins.int
|
|
1055
|
-
ENTITY_FIELD_NUMBER: builtins.int
|
|
1056
|
-
group: builtins.str
|
|
1057
|
-
entity: builtins.str
|
|
1058
|
-
def __init__(
|
|
1059
|
-
self,
|
|
1060
|
-
*,
|
|
1061
|
-
group: builtins.str = ...,
|
|
1062
|
-
entity: builtins.str = ...,
|
|
1063
|
-
) -> None: ...
|
|
1064
|
-
def ClearField(self, field_name: typing.Literal["entity", b"entity", "group", b"group"]) -> None: ...
|
|
1065
|
-
|
|
1066
|
-
KB_FIELD_NUMBER: builtins.int
|
|
1067
|
-
FROM_FIELD_NUMBER: builtins.int
|
|
1068
|
-
TO_FIELD_NUMBER: builtins.int
|
|
1069
|
-
@property
|
|
1070
|
-
def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
|
|
1071
|
-
@property
|
|
1072
|
-
def to(self) -> global___MergeEntitiesRequest.EntityID: ...
|
|
1073
|
-
def __init__(
|
|
1074
|
-
self,
|
|
1075
|
-
*,
|
|
1076
|
-
kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
|
|
1077
|
-
to: global___MergeEntitiesRequest.EntityID | None = ...,
|
|
1078
|
-
) -> None: ...
|
|
1079
|
-
def HasField(self, field_name: typing.Literal["from", b"from", "kb", b"kb", "to", b"to"]) -> builtins.bool: ...
|
|
1080
|
-
def ClearField(self, field_name: typing.Literal["from", b"from", "kb", b"kb", "to", b"to"]) -> None: ...
|
|
1081
|
-
|
|
1082
|
-
global___MergeEntitiesRequest = MergeEntitiesRequest
|
|
1083
|
-
|
|
1084
838
|
@typing.final
|
|
1085
839
|
class GetLabelsResponse(google.protobuf.message.Message):
|
|
1086
840
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
|
@@ -1415,7 +1169,6 @@ class Shards(google.protobuf.message.Message):
|
|
|
1415
1169
|
ACTUAL_FIELD_NUMBER: builtins.int
|
|
1416
1170
|
SIMILARITY_FIELD_NUMBER: builtins.int
|
|
1417
1171
|
MODEL_FIELD_NUMBER: builtins.int
|
|
1418
|
-
RELEASE_CHANNEL_FIELD_NUMBER: builtins.int
|
|
1419
1172
|
EXTRA_FIELD_NUMBER: builtins.int
|
|
1420
1173
|
kbid: builtins.str
|
|
1421
1174
|
actual: builtins.int
|
|
@@ -1424,7 +1177,6 @@ class Shards(google.protobuf.message.Message):
|
|
|
1424
1177
|
"""
|
|
1425
1178
|
similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType
|
|
1426
1179
|
"""DEPRECATED in favor of `model` to include more data"""
|
|
1427
|
-
release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType
|
|
1428
1180
|
@property
|
|
1429
1181
|
def shards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ShardObject]: ...
|
|
1430
1182
|
@property
|
|
@@ -1441,11 +1193,10 @@ class Shards(google.protobuf.message.Message):
|
|
|
1441
1193
|
actual: builtins.int = ...,
|
|
1442
1194
|
similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType = ...,
|
|
1443
1195
|
model: nucliadb_protos.knowledgebox_pb2.SemanticModelMetadata | None = ...,
|
|
1444
|
-
release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType = ...,
|
|
1445
1196
|
extra: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
|
|
1446
1197
|
) -> None: ...
|
|
1447
1198
|
def HasField(self, field_name: typing.Literal["model", b"model"]) -> builtins.bool: ...
|
|
1448
|
-
def ClearField(self, field_name: typing.Literal["actual", b"actual", "extra", b"extra", "kbid", b"kbid", "model", b"model", "
|
|
1199
|
+
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: ...
|
|
1449
1200
|
|
|
1450
1201
|
global___Shards = Shards
|
|
1451
1202
|
|
|
@@ -1530,12 +1281,18 @@ class NewKnowledgeBoxV2Request(google.protobuf.message.Message):
|
|
|
1530
1281
|
EXTERNAL_INDEX_PROVIDER_FIELD_NUMBER: builtins.int
|
|
1531
1282
|
HIDDEN_RESOURCES_ENABLED_FIELD_NUMBER: builtins.int
|
|
1532
1283
|
HIDDEN_RESOURCES_HIDE_ON_CREATION_FIELD_NUMBER: builtins.int
|
|
1284
|
+
PREWARM_ENABLED_FIELD_NUMBER: builtins.int
|
|
1533
1285
|
kbid: builtins.str
|
|
1534
1286
|
slug: builtins.str
|
|
1535
1287
|
title: builtins.str
|
|
1536
1288
|
description: builtins.str
|
|
1537
1289
|
hidden_resources_enabled: builtins.bool
|
|
1538
1290
|
hidden_resources_hide_on_creation: builtins.bool
|
|
1291
|
+
prewarm_enabled: builtins.bool
|
|
1292
|
+
"""whether to enable prewarm of data for faster search or not. Activating
|
|
1293
|
+
this flag allow faster searches (with less cold start) but it is
|
|
1294
|
+
expensive on the infrastructure
|
|
1295
|
+
"""
|
|
1539
1296
|
@property
|
|
1540
1297
|
def vectorsets(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___NewKnowledgeBoxV2Request.VectorSet]: ...
|
|
1541
1298
|
@property
|
|
@@ -1551,9 +1308,10 @@ class NewKnowledgeBoxV2Request(google.protobuf.message.Message):
|
|
|
1551
1308
|
external_index_provider: nucliadb_protos.knowledgebox_pb2.CreateExternalIndexProviderMetadata | None = ...,
|
|
1552
1309
|
hidden_resources_enabled: builtins.bool = ...,
|
|
1553
1310
|
hidden_resources_hide_on_creation: builtins.bool = ...,
|
|
1311
|
+
prewarm_enabled: builtins.bool = ...,
|
|
1554
1312
|
) -> None: ...
|
|
1555
1313
|
def HasField(self, field_name: typing.Literal["external_index_provider", b"external_index_provider"]) -> builtins.bool: ...
|
|
1556
|
-
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: ...
|
|
1314
|
+
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: ...
|
|
1557
1315
|
|
|
1558
1316
|
global___NewKnowledgeBoxV2Request = NewKnowledgeBoxV2Request
|
|
1559
1317
|
|
|
@@ -7,7 +7,7 @@ from nucliadb_protos import backups_pb2 as nucliadb__protos_dot_backups__pb2
|
|
|
7
7
|
from nucliadb_protos import knowledgebox_pb2 as nucliadb__protos_dot_knowledgebox__pb2
|
|
8
8
|
from nucliadb_protos import writer_pb2 as nucliadb__protos_dot_writer__pb2
|
|
9
9
|
|
|
10
|
-
GRPC_GENERATED_VERSION = '1.
|
|
10
|
+
GRPC_GENERATED_VERSION = '1.76.0'
|
|
11
11
|
GRPC_VERSION = grpc.__version__
|
|
12
12
|
_version_not_supported = False
|
|
13
13
|
|
|
@@ -20,7 +20,7 @@ except ImportError:
|
|
|
20
20
|
if _version_not_supported:
|
|
21
21
|
raise RuntimeError(
|
|
22
22
|
f'The grpc package installed is at version {GRPC_VERSION},'
|
|
23
|
-
+
|
|
23
|
+
+ ' but the generated code in nucliadb_protos/writer_pb2_grpc.py depends on'
|
|
24
24
|
+ f' grpcio>={GRPC_GENERATED_VERSION}.'
|
|
25
25
|
+ f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
|
|
26
26
|
+ f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
|
|
@@ -56,11 +56,6 @@ class WriterStub(object):
|
|
|
56
56
|
request_serializer=nucliadb__protos_dot_writer__pb2.BrokerMessage.SerializeToString,
|
|
57
57
|
response_deserializer=nucliadb__protos_dot_writer__pb2.OpStatusWriter.FromString,
|
|
58
58
|
_registered_method=True)
|
|
59
|
-
self.NewEntitiesGroup = channel.unary_unary(
|
|
60
|
-
'/fdbwriter.Writer/NewEntitiesGroup',
|
|
61
|
-
request_serializer=nucliadb__protos_dot_writer__pb2.NewEntitiesGroupRequest.SerializeToString,
|
|
62
|
-
response_deserializer=nucliadb__protos_dot_writer__pb2.NewEntitiesGroupResponse.FromString,
|
|
63
|
-
_registered_method=True)
|
|
64
59
|
self.GetEntities = channel.unary_unary(
|
|
65
60
|
'/fdbwriter.Writer/GetEntities',
|
|
66
61
|
request_serializer=nucliadb__protos_dot_writer__pb2.GetEntitiesRequest.SerializeToString,
|
|
@@ -76,21 +71,6 @@ class WriterStub(object):
|
|
|
76
71
|
request_serializer=nucliadb__protos_dot_writer__pb2.ListEntitiesGroupsRequest.SerializeToString,
|
|
77
72
|
response_deserializer=nucliadb__protos_dot_writer__pb2.ListEntitiesGroupsResponse.FromString,
|
|
78
73
|
_registered_method=True)
|
|
79
|
-
self.SetEntities = channel.unary_unary(
|
|
80
|
-
'/fdbwriter.Writer/SetEntities',
|
|
81
|
-
request_serializer=nucliadb__protos_dot_writer__pb2.SetEntitiesRequest.SerializeToString,
|
|
82
|
-
response_deserializer=nucliadb__protos_dot_writer__pb2.OpStatusWriter.FromString,
|
|
83
|
-
_registered_method=True)
|
|
84
|
-
self.UpdateEntitiesGroup = channel.unary_unary(
|
|
85
|
-
'/fdbwriter.Writer/UpdateEntitiesGroup',
|
|
86
|
-
request_serializer=nucliadb__protos_dot_writer__pb2.UpdateEntitiesGroupRequest.SerializeToString,
|
|
87
|
-
response_deserializer=nucliadb__protos_dot_writer__pb2.UpdateEntitiesGroupResponse.FromString,
|
|
88
|
-
_registered_method=True)
|
|
89
|
-
self.DelEntities = channel.unary_unary(
|
|
90
|
-
'/fdbwriter.Writer/DelEntities',
|
|
91
|
-
request_serializer=nucliadb__protos_dot_writer__pb2.DelEntitiesRequest.SerializeToString,
|
|
92
|
-
response_deserializer=nucliadb__protos_dot_writer__pb2.OpStatusWriter.FromString,
|
|
93
|
-
_registered_method=True)
|
|
94
74
|
self.Status = channel.unary_unary(
|
|
95
75
|
'/fdbwriter.Writer/Status',
|
|
96
76
|
request_serializer=nucliadb__protos_dot_writer__pb2.WriterStatusRequest.SerializeToString,
|
|
@@ -150,19 +130,13 @@ class WriterServicer(object):
|
|
|
150
130
|
context.set_details('Method not implemented!')
|
|
151
131
|
raise NotImplementedError('Method not implemented!')
|
|
152
132
|
|
|
153
|
-
def
|
|
133
|
+
def GetEntities(self, request, context):
|
|
154
134
|
"""Entities
|
|
155
135
|
"""
|
|
156
136
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
157
137
|
context.set_details('Method not implemented!')
|
|
158
138
|
raise NotImplementedError('Method not implemented!')
|
|
159
139
|
|
|
160
|
-
def GetEntities(self, request, context):
|
|
161
|
-
"""Missing associated documentation comment in .proto file."""
|
|
162
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
163
|
-
context.set_details('Method not implemented!')
|
|
164
|
-
raise NotImplementedError('Method not implemented!')
|
|
165
|
-
|
|
166
140
|
def GetEntitiesGroup(self, request, context):
|
|
167
141
|
"""Missing associated documentation comment in .proto file."""
|
|
168
142
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
@@ -175,24 +149,6 @@ class WriterServicer(object):
|
|
|
175
149
|
context.set_details('Method not implemented!')
|
|
176
150
|
raise NotImplementedError('Method not implemented!')
|
|
177
151
|
|
|
178
|
-
def SetEntities(self, request, context):
|
|
179
|
-
"""Missing associated documentation comment in .proto file."""
|
|
180
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
181
|
-
context.set_details('Method not implemented!')
|
|
182
|
-
raise NotImplementedError('Method not implemented!')
|
|
183
|
-
|
|
184
|
-
def UpdateEntitiesGroup(self, request, context):
|
|
185
|
-
"""Missing associated documentation comment in .proto file."""
|
|
186
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
187
|
-
context.set_details('Method not implemented!')
|
|
188
|
-
raise NotImplementedError('Method not implemented!')
|
|
189
|
-
|
|
190
|
-
def DelEntities(self, request, context):
|
|
191
|
-
"""Missing associated documentation comment in .proto file."""
|
|
192
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
193
|
-
context.set_details('Method not implemented!')
|
|
194
|
-
raise NotImplementedError('Method not implemented!')
|
|
195
|
-
|
|
196
152
|
def Status(self, request, context):
|
|
197
153
|
"""Missing associated documentation comment in .proto file."""
|
|
198
154
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
|
@@ -252,11 +208,6 @@ def add_WriterServicer_to_server(servicer, server):
|
|
|
252
208
|
request_deserializer=nucliadb__protos_dot_writer__pb2.BrokerMessage.FromString,
|
|
253
209
|
response_serializer=nucliadb__protos_dot_writer__pb2.OpStatusWriter.SerializeToString,
|
|
254
210
|
),
|
|
255
|
-
'NewEntitiesGroup': grpc.unary_unary_rpc_method_handler(
|
|
256
|
-
servicer.NewEntitiesGroup,
|
|
257
|
-
request_deserializer=nucliadb__protos_dot_writer__pb2.NewEntitiesGroupRequest.FromString,
|
|
258
|
-
response_serializer=nucliadb__protos_dot_writer__pb2.NewEntitiesGroupResponse.SerializeToString,
|
|
259
|
-
),
|
|
260
211
|
'GetEntities': grpc.unary_unary_rpc_method_handler(
|
|
261
212
|
servicer.GetEntities,
|
|
262
213
|
request_deserializer=nucliadb__protos_dot_writer__pb2.GetEntitiesRequest.FromString,
|
|
@@ -272,21 +223,6 @@ def add_WriterServicer_to_server(servicer, server):
|
|
|
272
223
|
request_deserializer=nucliadb__protos_dot_writer__pb2.ListEntitiesGroupsRequest.FromString,
|
|
273
224
|
response_serializer=nucliadb__protos_dot_writer__pb2.ListEntitiesGroupsResponse.SerializeToString,
|
|
274
225
|
),
|
|
275
|
-
'SetEntities': grpc.unary_unary_rpc_method_handler(
|
|
276
|
-
servicer.SetEntities,
|
|
277
|
-
request_deserializer=nucliadb__protos_dot_writer__pb2.SetEntitiesRequest.FromString,
|
|
278
|
-
response_serializer=nucliadb__protos_dot_writer__pb2.OpStatusWriter.SerializeToString,
|
|
279
|
-
),
|
|
280
|
-
'UpdateEntitiesGroup': grpc.unary_unary_rpc_method_handler(
|
|
281
|
-
servicer.UpdateEntitiesGroup,
|
|
282
|
-
request_deserializer=nucliadb__protos_dot_writer__pb2.UpdateEntitiesGroupRequest.FromString,
|
|
283
|
-
response_serializer=nucliadb__protos_dot_writer__pb2.UpdateEntitiesGroupResponse.SerializeToString,
|
|
284
|
-
),
|
|
285
|
-
'DelEntities': grpc.unary_unary_rpc_method_handler(
|
|
286
|
-
servicer.DelEntities,
|
|
287
|
-
request_deserializer=nucliadb__protos_dot_writer__pb2.DelEntitiesRequest.FromString,
|
|
288
|
-
response_serializer=nucliadb__protos_dot_writer__pb2.OpStatusWriter.SerializeToString,
|
|
289
|
-
),
|
|
290
226
|
'Status': grpc.unary_unary_rpc_method_handler(
|
|
291
227
|
servicer.Status,
|
|
292
228
|
request_deserializer=nucliadb__protos_dot_writer__pb2.WriterStatusRequest.FromString,
|
|
@@ -436,33 +372,6 @@ class Writer(object):
|
|
|
436
372
|
metadata,
|
|
437
373
|
_registered_method=True)
|
|
438
374
|
|
|
439
|
-
@staticmethod
|
|
440
|
-
def NewEntitiesGroup(request,
|
|
441
|
-
target,
|
|
442
|
-
options=(),
|
|
443
|
-
channel_credentials=None,
|
|
444
|
-
call_credentials=None,
|
|
445
|
-
insecure=False,
|
|
446
|
-
compression=None,
|
|
447
|
-
wait_for_ready=None,
|
|
448
|
-
timeout=None,
|
|
449
|
-
metadata=None):
|
|
450
|
-
return grpc.experimental.unary_unary(
|
|
451
|
-
request,
|
|
452
|
-
target,
|
|
453
|
-
'/fdbwriter.Writer/NewEntitiesGroup',
|
|
454
|
-
nucliadb__protos_dot_writer__pb2.NewEntitiesGroupRequest.SerializeToString,
|
|
455
|
-
nucliadb__protos_dot_writer__pb2.NewEntitiesGroupResponse.FromString,
|
|
456
|
-
options,
|
|
457
|
-
channel_credentials,
|
|
458
|
-
insecure,
|
|
459
|
-
call_credentials,
|
|
460
|
-
compression,
|
|
461
|
-
wait_for_ready,
|
|
462
|
-
timeout,
|
|
463
|
-
metadata,
|
|
464
|
-
_registered_method=True)
|
|
465
|
-
|
|
466
375
|
@staticmethod
|
|
467
376
|
def GetEntities(request,
|
|
468
377
|
target,
|
|
@@ -544,87 +453,6 @@ class Writer(object):
|
|
|
544
453
|
metadata,
|
|
545
454
|
_registered_method=True)
|
|
546
455
|
|
|
547
|
-
@staticmethod
|
|
548
|
-
def SetEntities(request,
|
|
549
|
-
target,
|
|
550
|
-
options=(),
|
|
551
|
-
channel_credentials=None,
|
|
552
|
-
call_credentials=None,
|
|
553
|
-
insecure=False,
|
|
554
|
-
compression=None,
|
|
555
|
-
wait_for_ready=None,
|
|
556
|
-
timeout=None,
|
|
557
|
-
metadata=None):
|
|
558
|
-
return grpc.experimental.unary_unary(
|
|
559
|
-
request,
|
|
560
|
-
target,
|
|
561
|
-
'/fdbwriter.Writer/SetEntities',
|
|
562
|
-
nucliadb__protos_dot_writer__pb2.SetEntitiesRequest.SerializeToString,
|
|
563
|
-
nucliadb__protos_dot_writer__pb2.OpStatusWriter.FromString,
|
|
564
|
-
options,
|
|
565
|
-
channel_credentials,
|
|
566
|
-
insecure,
|
|
567
|
-
call_credentials,
|
|
568
|
-
compression,
|
|
569
|
-
wait_for_ready,
|
|
570
|
-
timeout,
|
|
571
|
-
metadata,
|
|
572
|
-
_registered_method=True)
|
|
573
|
-
|
|
574
|
-
@staticmethod
|
|
575
|
-
def UpdateEntitiesGroup(request,
|
|
576
|
-
target,
|
|
577
|
-
options=(),
|
|
578
|
-
channel_credentials=None,
|
|
579
|
-
call_credentials=None,
|
|
580
|
-
insecure=False,
|
|
581
|
-
compression=None,
|
|
582
|
-
wait_for_ready=None,
|
|
583
|
-
timeout=None,
|
|
584
|
-
metadata=None):
|
|
585
|
-
return grpc.experimental.unary_unary(
|
|
586
|
-
request,
|
|
587
|
-
target,
|
|
588
|
-
'/fdbwriter.Writer/UpdateEntitiesGroup',
|
|
589
|
-
nucliadb__protos_dot_writer__pb2.UpdateEntitiesGroupRequest.SerializeToString,
|
|
590
|
-
nucliadb__protos_dot_writer__pb2.UpdateEntitiesGroupResponse.FromString,
|
|
591
|
-
options,
|
|
592
|
-
channel_credentials,
|
|
593
|
-
insecure,
|
|
594
|
-
call_credentials,
|
|
595
|
-
compression,
|
|
596
|
-
wait_for_ready,
|
|
597
|
-
timeout,
|
|
598
|
-
metadata,
|
|
599
|
-
_registered_method=True)
|
|
600
|
-
|
|
601
|
-
@staticmethod
|
|
602
|
-
def DelEntities(request,
|
|
603
|
-
target,
|
|
604
|
-
options=(),
|
|
605
|
-
channel_credentials=None,
|
|
606
|
-
call_credentials=None,
|
|
607
|
-
insecure=False,
|
|
608
|
-
compression=None,
|
|
609
|
-
wait_for_ready=None,
|
|
610
|
-
timeout=None,
|
|
611
|
-
metadata=None):
|
|
612
|
-
return grpc.experimental.unary_unary(
|
|
613
|
-
request,
|
|
614
|
-
target,
|
|
615
|
-
'/fdbwriter.Writer/DelEntities',
|
|
616
|
-
nucliadb__protos_dot_writer__pb2.DelEntitiesRequest.SerializeToString,
|
|
617
|
-
nucliadb__protos_dot_writer__pb2.OpStatusWriter.FromString,
|
|
618
|
-
options,
|
|
619
|
-
channel_credentials,
|
|
620
|
-
insecure,
|
|
621
|
-
call_credentials,
|
|
622
|
-
compression,
|
|
623
|
-
wait_for_ready,
|
|
624
|
-
timeout,
|
|
625
|
-
metadata,
|
|
626
|
-
_registered_method=True)
|
|
627
|
-
|
|
628
456
|
@staticmethod
|
|
629
457
|
def Status(request,
|
|
630
458
|
target,
|