nucliadb-protos 6.9.4.post5357__py3-none-any.whl → 6.10.0.post5792__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.

@@ -163,6 +163,7 @@ from nucliadb_protos.resources_pb2 import (
163
163
  Sentence as Sentence,
164
164
  SplitMetadata as SplitMetadata,
165
165
  SplitsMetadata as SplitsMetadata,
166
+ SyncMetadata as SyncMetadata,
166
167
  TEXT as TEXT,
167
168
  UserFieldMetadata as UserFieldMetadata,
168
169
  UserMetadata as UserMetadata,
@@ -692,198 +693,6 @@ class WriterStatusRequest(google.protobuf.message.Message):
692
693
 
693
694
  global___WriterStatusRequest = WriterStatusRequest
694
695
 
695
- @typing.final
696
- class NewEntitiesGroupRequest(google.protobuf.message.Message):
697
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
698
-
699
- KB_FIELD_NUMBER: builtins.int
700
- GROUP_FIELD_NUMBER: builtins.int
701
- ENTITIES_FIELD_NUMBER: builtins.int
702
- group: builtins.str
703
- @property
704
- def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
705
- @property
706
- def entities(self) -> nucliadb_protos.knowledgebox_pb2.EntitiesGroup: ...
707
- def __init__(
708
- self,
709
- *,
710
- kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
711
- group: builtins.str = ...,
712
- entities: nucliadb_protos.knowledgebox_pb2.EntitiesGroup | None = ...,
713
- ) -> None: ...
714
- def HasField(self, field_name: typing.Literal["entities", b"entities", "kb", b"kb"]) -> builtins.bool: ...
715
- def ClearField(self, field_name: typing.Literal["entities", b"entities", "group", b"group", "kb", b"kb"]) -> None: ...
716
-
717
- global___NewEntitiesGroupRequest = NewEntitiesGroupRequest
718
-
719
- @typing.final
720
- class NewEntitiesGroupResponse(google.protobuf.message.Message):
721
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
722
-
723
- class _Status:
724
- ValueType = typing.NewType("ValueType", builtins.int)
725
- V: typing_extensions.TypeAlias = ValueType
726
-
727
- class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[NewEntitiesGroupResponse._Status.ValueType], builtins.type):
728
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
729
- OK: NewEntitiesGroupResponse._Status.ValueType # 0
730
- ERROR: NewEntitiesGroupResponse._Status.ValueType # 1
731
- KB_NOT_FOUND: NewEntitiesGroupResponse._Status.ValueType # 2
732
- ALREADY_EXISTS: NewEntitiesGroupResponse._Status.ValueType # 3
733
-
734
- class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
735
- OK: NewEntitiesGroupResponse.Status.ValueType # 0
736
- ERROR: NewEntitiesGroupResponse.Status.ValueType # 1
737
- KB_NOT_FOUND: NewEntitiesGroupResponse.Status.ValueType # 2
738
- ALREADY_EXISTS: NewEntitiesGroupResponse.Status.ValueType # 3
739
-
740
- STATUS_FIELD_NUMBER: builtins.int
741
- status: global___NewEntitiesGroupResponse.Status.ValueType
742
- def __init__(
743
- self,
744
- *,
745
- status: global___NewEntitiesGroupResponse.Status.ValueType = ...,
746
- ) -> None: ...
747
- def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ...
748
-
749
- global___NewEntitiesGroupResponse = NewEntitiesGroupResponse
750
-
751
- @typing.final
752
- class SetEntitiesRequest(google.protobuf.message.Message):
753
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
754
-
755
- KB_FIELD_NUMBER: builtins.int
756
- GROUP_FIELD_NUMBER: builtins.int
757
- ENTITIES_FIELD_NUMBER: builtins.int
758
- group: builtins.str
759
- @property
760
- def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
761
- @property
762
- def entities(self) -> nucliadb_protos.knowledgebox_pb2.EntitiesGroup: ...
763
- def __init__(
764
- self,
765
- *,
766
- kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
767
- group: builtins.str = ...,
768
- entities: nucliadb_protos.knowledgebox_pb2.EntitiesGroup | None = ...,
769
- ) -> None: ...
770
- def HasField(self, field_name: typing.Literal["entities", b"entities", "kb", b"kb"]) -> builtins.bool: ...
771
- def ClearField(self, field_name: typing.Literal["entities", b"entities", "group", b"group", "kb", b"kb"]) -> None: ...
772
-
773
- global___SetEntitiesRequest = SetEntitiesRequest
774
-
775
- @typing.final
776
- class UpdateEntitiesGroupRequest(google.protobuf.message.Message):
777
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
778
-
779
- @typing.final
780
- class AddEntry(google.protobuf.message.Message):
781
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
782
-
783
- KEY_FIELD_NUMBER: builtins.int
784
- VALUE_FIELD_NUMBER: builtins.int
785
- key: builtins.str
786
- @property
787
- def value(self) -> nucliadb_protos.knowledgebox_pb2.Entity: ...
788
- def __init__(
789
- self,
790
- *,
791
- key: builtins.str = ...,
792
- value: nucliadb_protos.knowledgebox_pb2.Entity | None = ...,
793
- ) -> None: ...
794
- def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
795
- def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
796
-
797
- @typing.final
798
- class UpdateEntry(google.protobuf.message.Message):
799
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
800
-
801
- KEY_FIELD_NUMBER: builtins.int
802
- VALUE_FIELD_NUMBER: builtins.int
803
- key: builtins.str
804
- @property
805
- def value(self) -> nucliadb_protos.knowledgebox_pb2.Entity: ...
806
- def __init__(
807
- self,
808
- *,
809
- key: builtins.str = ...,
810
- value: nucliadb_protos.knowledgebox_pb2.Entity | None = ...,
811
- ) -> None: ...
812
- def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
813
- def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
814
-
815
- KB_FIELD_NUMBER: builtins.int
816
- GROUP_FIELD_NUMBER: builtins.int
817
- ADD_FIELD_NUMBER: builtins.int
818
- UPDATE_FIELD_NUMBER: builtins.int
819
- DELETE_FIELD_NUMBER: builtins.int
820
- TITLE_FIELD_NUMBER: builtins.int
821
- COLOR_FIELD_NUMBER: builtins.int
822
- group: builtins.str
823
- title: builtins.str
824
- color: builtins.str
825
- @property
826
- def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
827
- @property
828
- def add(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity]:
829
- """entity_id: Entity"""
830
-
831
- @property
832
- def update(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity]:
833
- """entity_id: Entity"""
834
-
835
- @property
836
- def delete(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]:
837
- """entity_id"""
838
-
839
- def __init__(
840
- self,
841
- *,
842
- kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
843
- group: builtins.str = ...,
844
- add: collections.abc.Mapping[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity] | None = ...,
845
- update: collections.abc.Mapping[builtins.str, nucliadb_protos.knowledgebox_pb2.Entity] | None = ...,
846
- delete: collections.abc.Iterable[builtins.str] | None = ...,
847
- title: builtins.str = ...,
848
- color: builtins.str = ...,
849
- ) -> None: ...
850
- def HasField(self, field_name: typing.Literal["kb", b"kb"]) -> builtins.bool: ...
851
- 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: ...
852
-
853
- global___UpdateEntitiesGroupRequest = UpdateEntitiesGroupRequest
854
-
855
- @typing.final
856
- class UpdateEntitiesGroupResponse(google.protobuf.message.Message):
857
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
858
-
859
- class _Status:
860
- ValueType = typing.NewType("ValueType", builtins.int)
861
- V: typing_extensions.TypeAlias = ValueType
862
-
863
- class _StatusEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[UpdateEntitiesGroupResponse._Status.ValueType], builtins.type):
864
- DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
865
- OK: UpdateEntitiesGroupResponse._Status.ValueType # 0
866
- ERROR: UpdateEntitiesGroupResponse._Status.ValueType # 1
867
- KB_NOT_FOUND: UpdateEntitiesGroupResponse._Status.ValueType # 2
868
- ENTITIES_GROUP_NOT_FOUND: UpdateEntitiesGroupResponse._Status.ValueType # 3
869
-
870
- class Status(_Status, metaclass=_StatusEnumTypeWrapper): ...
871
- OK: UpdateEntitiesGroupResponse.Status.ValueType # 0
872
- ERROR: UpdateEntitiesGroupResponse.Status.ValueType # 1
873
- KB_NOT_FOUND: UpdateEntitiesGroupResponse.Status.ValueType # 2
874
- ENTITIES_GROUP_NOT_FOUND: UpdateEntitiesGroupResponse.Status.ValueType # 3
875
-
876
- STATUS_FIELD_NUMBER: builtins.int
877
- status: global___UpdateEntitiesGroupResponse.Status.ValueType
878
- def __init__(
879
- self,
880
- *,
881
- status: global___UpdateEntitiesGroupResponse.Status.ValueType = ...,
882
- ) -> None: ...
883
- def ClearField(self, field_name: typing.Literal["status", b"status"]) -> None: ...
884
-
885
- global___UpdateEntitiesGroupResponse = UpdateEntitiesGroupResponse
886
-
887
696
  @typing.final
888
697
  class ListEntitiesGroupsRequest(google.protobuf.message.Message):
889
698
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -1027,64 +836,6 @@ class GetEntitiesResponse(google.protobuf.message.Message):
1027
836
 
1028
837
  global___GetEntitiesResponse = GetEntitiesResponse
1029
838
 
1030
- @typing.final
1031
- class DelEntitiesRequest(google.protobuf.message.Message):
1032
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1033
-
1034
- KB_FIELD_NUMBER: builtins.int
1035
- GROUP_FIELD_NUMBER: builtins.int
1036
- group: builtins.str
1037
- @property
1038
- def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
1039
- def __init__(
1040
- self,
1041
- *,
1042
- kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
1043
- group: builtins.str = ...,
1044
- ) -> None: ...
1045
- def HasField(self, field_name: typing.Literal["kb", b"kb"]) -> builtins.bool: ...
1046
- def ClearField(self, field_name: typing.Literal["group", b"group", "kb", b"kb"]) -> None: ...
1047
-
1048
- global___DelEntitiesRequest = DelEntitiesRequest
1049
-
1050
- @typing.final
1051
- class MergeEntitiesRequest(google.protobuf.message.Message):
1052
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1053
-
1054
- @typing.final
1055
- class EntityID(google.protobuf.message.Message):
1056
- DESCRIPTOR: google.protobuf.descriptor.Descriptor
1057
-
1058
- GROUP_FIELD_NUMBER: builtins.int
1059
- ENTITY_FIELD_NUMBER: builtins.int
1060
- group: builtins.str
1061
- entity: builtins.str
1062
- def __init__(
1063
- self,
1064
- *,
1065
- group: builtins.str = ...,
1066
- entity: builtins.str = ...,
1067
- ) -> None: ...
1068
- def ClearField(self, field_name: typing.Literal["entity", b"entity", "group", b"group"]) -> None: ...
1069
-
1070
- KB_FIELD_NUMBER: builtins.int
1071
- FROM_FIELD_NUMBER: builtins.int
1072
- TO_FIELD_NUMBER: builtins.int
1073
- @property
1074
- def kb(self) -> nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID: ...
1075
- @property
1076
- def to(self) -> global___MergeEntitiesRequest.EntityID: ...
1077
- def __init__(
1078
- self,
1079
- *,
1080
- kb: nucliadb_protos.knowledgebox_pb2.KnowledgeBoxID | None = ...,
1081
- to: global___MergeEntitiesRequest.EntityID | None = ...,
1082
- ) -> None: ...
1083
- def HasField(self, field_name: typing.Literal["from", b"from", "kb", b"kb", "to", b"to"]) -> builtins.bool: ...
1084
- def ClearField(self, field_name: typing.Literal["from", b"from", "kb", b"kb", "to", b"to"]) -> None: ...
1085
-
1086
- global___MergeEntitiesRequest = MergeEntitiesRequest
1087
-
1088
839
  @typing.final
1089
840
  class GetLabelsResponse(google.protobuf.message.Message):
1090
841
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -1419,7 +1170,6 @@ class Shards(google.protobuf.message.Message):
1419
1170
  ACTUAL_FIELD_NUMBER: builtins.int
1420
1171
  SIMILARITY_FIELD_NUMBER: builtins.int
1421
1172
  MODEL_FIELD_NUMBER: builtins.int
1422
- RELEASE_CHANNEL_FIELD_NUMBER: builtins.int
1423
1173
  EXTRA_FIELD_NUMBER: builtins.int
1424
1174
  kbid: builtins.str
1425
1175
  actual: builtins.int
@@ -1428,7 +1178,6 @@ class Shards(google.protobuf.message.Message):
1428
1178
  """
1429
1179
  similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType
1430
1180
  """DEPRECATED in favor of `model` to include more data"""
1431
- release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType
1432
1181
  @property
1433
1182
  def shards(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ShardObject]: ...
1434
1183
  @property
@@ -1445,11 +1194,10 @@ class Shards(google.protobuf.message.Message):
1445
1194
  actual: builtins.int = ...,
1446
1195
  similarity: nucliadb_protos.utils_pb2.VectorSimilarity.ValueType = ...,
1447
1196
  model: nucliadb_protos.knowledgebox_pb2.SemanticModelMetadata | None = ...,
1448
- release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType = ...,
1449
1197
  extra: collections.abc.Mapping[builtins.str, builtins.str] | None = ...,
1450
1198
  ) -> None: ...
1451
1199
  def HasField(self, field_name: typing.Literal["model", b"model"]) -> builtins.bool: ...
1452
- 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: ...
1453
1201
 
1454
1202
  global___Shards = Shards
1455
1203
 
@@ -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.71.0'
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
- + f' but the generated code in nucliadb_protos/writer_pb2_grpc.py depends on'
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 NewEntitiesGroup(self, request, context):
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,
@@ -153,6 +153,7 @@ from nucliadb_protos.resources_pb2 import (
153
153
  Sentence as Sentence,
154
154
  SplitMetadata as SplitMetadata,
155
155
  SplitsMetadata as SplitsMetadata,
156
+ SyncMetadata as SyncMetadata,
156
157
  TEXT as TEXT,
157
158
  UserFieldMetadata as UserFieldMetadata,
158
159
  UserMetadata as UserMetadata,
@@ -188,16 +189,11 @@ class WriterStub:
188
189
  nucliadb_protos.writer_pb2.OpStatusWriter,
189
190
  ]
190
191
 
191
- NewEntitiesGroup: grpc.UnaryUnaryMultiCallable[
192
- nucliadb_protos.writer_pb2.NewEntitiesGroupRequest,
193
- nucliadb_protos.writer_pb2.NewEntitiesGroupResponse,
194
- ]
195
- """Entities"""
196
-
197
192
  GetEntities: grpc.UnaryUnaryMultiCallable[
198
193
  nucliadb_protos.writer_pb2.GetEntitiesRequest,
199
194
  nucliadb_protos.writer_pb2.GetEntitiesResponse,
200
195
  ]
196
+ """Entities"""
201
197
 
202
198
  GetEntitiesGroup: grpc.UnaryUnaryMultiCallable[
203
199
  nucliadb_protos.writer_pb2.GetEntitiesGroupRequest,
@@ -209,21 +205,6 @@ class WriterStub:
209
205
  nucliadb_protos.writer_pb2.ListEntitiesGroupsResponse,
210
206
  ]
211
207
 
212
- SetEntities: grpc.UnaryUnaryMultiCallable[
213
- nucliadb_protos.writer_pb2.SetEntitiesRequest,
214
- nucliadb_protos.writer_pb2.OpStatusWriter,
215
- ]
216
-
217
- UpdateEntitiesGroup: grpc.UnaryUnaryMultiCallable[
218
- nucliadb_protos.writer_pb2.UpdateEntitiesGroupRequest,
219
- nucliadb_protos.writer_pb2.UpdateEntitiesGroupResponse,
220
- ]
221
-
222
- DelEntities: grpc.UnaryUnaryMultiCallable[
223
- nucliadb_protos.writer_pb2.DelEntitiesRequest,
224
- nucliadb_protos.writer_pb2.OpStatusWriter,
225
- ]
226
-
227
208
  Status: grpc.UnaryUnaryMultiCallable[
228
209
  nucliadb_protos.writer_pb2.WriterStatusRequest,
229
210
  nucliadb_protos.writer_pb2.WriterStatusResponse,
@@ -275,16 +256,11 @@ class WriterAsyncStub:
275
256
  nucliadb_protos.writer_pb2.OpStatusWriter,
276
257
  ]
277
258
 
278
- NewEntitiesGroup: grpc.aio.UnaryUnaryMultiCallable[
279
- nucliadb_protos.writer_pb2.NewEntitiesGroupRequest,
280
- nucliadb_protos.writer_pb2.NewEntitiesGroupResponse,
281
- ]
282
- """Entities"""
283
-
284
259
  GetEntities: grpc.aio.UnaryUnaryMultiCallable[
285
260
  nucliadb_protos.writer_pb2.GetEntitiesRequest,
286
261
  nucliadb_protos.writer_pb2.GetEntitiesResponse,
287
262
  ]
263
+ """Entities"""
288
264
 
289
265
  GetEntitiesGroup: grpc.aio.UnaryUnaryMultiCallable[
290
266
  nucliadb_protos.writer_pb2.GetEntitiesGroupRequest,
@@ -296,21 +272,6 @@ class WriterAsyncStub:
296
272
  nucliadb_protos.writer_pb2.ListEntitiesGroupsResponse,
297
273
  ]
298
274
 
299
- SetEntities: grpc.aio.UnaryUnaryMultiCallable[
300
- nucliadb_protos.writer_pb2.SetEntitiesRequest,
301
- nucliadb_protos.writer_pb2.OpStatusWriter,
302
- ]
303
-
304
- UpdateEntitiesGroup: grpc.aio.UnaryUnaryMultiCallable[
305
- nucliadb_protos.writer_pb2.UpdateEntitiesGroupRequest,
306
- nucliadb_protos.writer_pb2.UpdateEntitiesGroupResponse,
307
- ]
308
-
309
- DelEntities: grpc.aio.UnaryUnaryMultiCallable[
310
- nucliadb_protos.writer_pb2.DelEntitiesRequest,
311
- nucliadb_protos.writer_pb2.OpStatusWriter,
312
- ]
313
-
314
275
  Status: grpc.aio.UnaryUnaryMultiCallable[
315
276
  nucliadb_protos.writer_pb2.WriterStatusRequest,
316
277
  nucliadb_protos.writer_pb2.WriterStatusResponse,
@@ -370,20 +331,13 @@ class WriterServicer(metaclass=abc.ABCMeta):
370
331
  context: _ServicerContext,
371
332
  ) -> typing.Union[nucliadb_protos.writer_pb2.OpStatusWriter, collections.abc.Awaitable[nucliadb_protos.writer_pb2.OpStatusWriter]]: ...
372
333
 
373
- @abc.abstractmethod
374
- def NewEntitiesGroup(
375
- self,
376
- request: nucliadb_protos.writer_pb2.NewEntitiesGroupRequest,
377
- context: _ServicerContext,
378
- ) -> typing.Union[nucliadb_protos.writer_pb2.NewEntitiesGroupResponse, collections.abc.Awaitable[nucliadb_protos.writer_pb2.NewEntitiesGroupResponse]]:
379
- """Entities"""
380
-
381
334
  @abc.abstractmethod
382
335
  def GetEntities(
383
336
  self,
384
337
  request: nucliadb_protos.writer_pb2.GetEntitiesRequest,
385
338
  context: _ServicerContext,
386
- ) -> typing.Union[nucliadb_protos.writer_pb2.GetEntitiesResponse, collections.abc.Awaitable[nucliadb_protos.writer_pb2.GetEntitiesResponse]]: ...
339
+ ) -> typing.Union[nucliadb_protos.writer_pb2.GetEntitiesResponse, collections.abc.Awaitable[nucliadb_protos.writer_pb2.GetEntitiesResponse]]:
340
+ """Entities"""
387
341
 
388
342
  @abc.abstractmethod
389
343
  def GetEntitiesGroup(
@@ -399,27 +353,6 @@ class WriterServicer(metaclass=abc.ABCMeta):
399
353
  context: _ServicerContext,
400
354
  ) -> typing.Union[nucliadb_protos.writer_pb2.ListEntitiesGroupsResponse, collections.abc.Awaitable[nucliadb_protos.writer_pb2.ListEntitiesGroupsResponse]]: ...
401
355
 
402
- @abc.abstractmethod
403
- def SetEntities(
404
- self,
405
- request: nucliadb_protos.writer_pb2.SetEntitiesRequest,
406
- context: _ServicerContext,
407
- ) -> typing.Union[nucliadb_protos.writer_pb2.OpStatusWriter, collections.abc.Awaitable[nucliadb_protos.writer_pb2.OpStatusWriter]]: ...
408
-
409
- @abc.abstractmethod
410
- def UpdateEntitiesGroup(
411
- self,
412
- request: nucliadb_protos.writer_pb2.UpdateEntitiesGroupRequest,
413
- context: _ServicerContext,
414
- ) -> typing.Union[nucliadb_protos.writer_pb2.UpdateEntitiesGroupResponse, collections.abc.Awaitable[nucliadb_protos.writer_pb2.UpdateEntitiesGroupResponse]]: ...
415
-
416
- @abc.abstractmethod
417
- def DelEntities(
418
- self,
419
- request: nucliadb_protos.writer_pb2.DelEntitiesRequest,
420
- context: _ServicerContext,
421
- ) -> typing.Union[nucliadb_protos.writer_pb2.OpStatusWriter, collections.abc.Awaitable[nucliadb_protos.writer_pb2.OpStatusWriter]]: ...
422
-
423
356
  @abc.abstractmethod
424
357
  def Status(
425
358
  self,