nucliadb-protos 6.3.5.post3997__py3-none-any.whl → 6.3.5.post4010__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.
- nucliadb_protos/train_pb2.pyi +0 -3
- nucliadb_protos/train_pb2_grpc.pyi +0 -3
- nucliadb_protos/writer_pb2.py +33 -49
- nucliadb_protos/writer_pb2.pyi +0 -93
- nucliadb_protos/writer_pb2_grpc.py +0 -33
- nucliadb_protos/writer_pb2_grpc.pyi +0 -17
- {nucliadb_protos-6.3.5.post3997.dist-info → nucliadb_protos-6.3.5.post4010.dist-info}/METADATA +1 -1
- {nucliadb_protos-6.3.5.post3997.dist-info → nucliadb_protos-6.3.5.post4010.dist-info}/RECORD +10 -14
- nucliadb_protos/replication_pb2.py +0 -54
- nucliadb_protos/replication_pb2.pyi +0 -230
- nucliadb_protos/replication_pb2_grpc.py +0 -134
- nucliadb_protos/replication_pb2_grpc.pyi +0 -106
- {nucliadb_protos-6.3.5.post3997.dist-info → nucliadb_protos-6.3.5.post4010.dist-info}/WHEEL +0 -0
- {nucliadb_protos-6.3.5.post3997.dist-info → nucliadb_protos-6.3.5.post4010.dist-info}/top_level.txt +0 -0
nucliadb_protos/train_pb2.pyi
CHANGED
@@ -148,9 +148,6 @@ from nucliadb_protos.writer_pb2 import (
|
|
148
148
|
IndexStatus as IndexStatus,
|
149
149
|
ListEntitiesGroupsRequest as ListEntitiesGroupsRequest,
|
150
150
|
ListEntitiesGroupsResponse as ListEntitiesGroupsResponse,
|
151
|
-
ListMembersRequest as ListMembersRequest,
|
152
|
-
ListMembersResponse as ListMembersResponse,
|
153
|
-
Member as Member,
|
154
151
|
MergeEntitiesRequest as MergeEntitiesRequest,
|
155
152
|
NewEntitiesGroupRequest as NewEntitiesGroupRequest,
|
156
153
|
NewEntitiesGroupResponse as NewEntitiesGroupResponse,
|
@@ -146,9 +146,6 @@ from nucliadb_protos.writer_pb2 import (
|
|
146
146
|
IndexStatus as IndexStatus,
|
147
147
|
ListEntitiesGroupsRequest as ListEntitiesGroupsRequest,
|
148
148
|
ListEntitiesGroupsResponse as ListEntitiesGroupsResponse,
|
149
|
-
ListMembersRequest as ListMembersRequest,
|
150
|
-
ListMembersResponse as ListMembersResponse,
|
151
|
-
Member as Member,
|
152
149
|
MergeEntitiesRequest as MergeEntitiesRequest,
|
153
150
|
NewEntitiesGroupRequest as NewEntitiesGroupRequest,
|
154
151
|
NewEntitiesGroupResponse as NewEntitiesGroupResponse,
|
nucliadb_protos/writer_pb2.py
CHANGED
@@ -49,7 +49,7 @@ from nucliadb_protos.knowledgebox_pb2 import *
|
|
49
49
|
from nucliadb_protos.audit_pb2 import *
|
50
50
|
from nucliadb_protos.backups_pb2 import *
|
51
51
|
|
52
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnucliadb_protos/writer.proto\x12\tfdbwriter\x1a\x1fgoogle/protobuf/timestamp.proto\x1a#nucliadb_protos/noderesources.proto\x1a\x1fnucliadb_protos/resources.proto\x1a\"nucliadb_protos/knowledgebox.proto\x1a\x1bnucliadb_protos/audit.proto\x1a\x1dnucliadb_protos/backups.proto\"\xd9\x02\n\x05\x41udit\x12\x0c\n\x04user\x18\x01 \x01(\t\x12(\n\x04when\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06origin\x18\x03 \x01(\t\x12\'\n\x06source\x18\x04 \x01(\x0e\x32\x17.fdbwriter.Audit.Source\x12\x0c\n\x04kbid\x18\x05 \x01(\t\x12\x0c\n\x04uuid\x18\x06 \x01(\t\x12>\n\x0emessage_source\x18\x07 \x01(\x0e\x32&.fdbwriter.BrokerMessage.MessageSource\x12*\n\x0e\x66ield_metadata\x18\x08 \x03(\x0b\x32\x12.resources.FieldID\x12\'\n\x0c\x61udit_fields\x18\t \x03(\x0b\x32\x11.audit.AuditField\".\n\x06Source\x12\x08\n\x04HTTP\x10\x00\x12\r\n\tDASHBOARD\x10\x01\x12\x0b\n\x07\x44\x45SKTOP\x10\x02\"\xb2\x01\n\tGenerator\x12\x33\n\tprocessor\x18\x01 \x01(\x0b\x32\x1e.fdbwriter.Generator.ProcessorH\x00\x12\x42\n\x11\x64\x61ta_augmentation\x18\x02 \x01(\x0b\x32%.fdbwriter.Generator.DataAugmentationH\x00\x1a\x0b\n\tProcessor\x1a\x12\n\x10\x44\x61taAugmentationB\x0b\n\tgenerator\"\xef\x01\n\x05\x45rror\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12(\n\nfield_type\x18\x02 \x01(\x0e\x32\x14.resources.FieldType\x12\r\n\x05\x65rror\x18\x03 \x01(\t\x12(\n\x04\x63ode\x18\x04 \x01(\x0e\x32\x1a.fdbwriter.Error.ErrorCode\x12*\n\x0cgenerated_by\x18\x05 \x01(\x0b\x32\x14.fdbwriter.Generator\"H\n\tErrorCode\x12\x0b\n\x07GENERIC\x10\x00\x12\x0b\n\x07\x45XTRACT\x10\x01\x12\x0b\n\x07PROCESS\x10\x02\x12\x14\n\x10\x44\x41TAAUGMENTATION\x10\x03\"\xd8\x0f\n\rBrokerMessage\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x03 \x01(\t\x12\x0c\n\x04slug\x18\x04 \x01(\t\x12\x1f\n\x05\x61udit\x18\x05 \x01(\x0b\x32\x10.fdbwriter.Audit\x12\x32\n\x04type\x18\x06 \x01(\x0e\x32$.fdbwriter.BrokerMessage.MessageType\x12\x0f\n\x07multiid\x18\x07 \x01(\t\x12\x1f\n\x05\x62\x61sic\x18\x08 \x01(\x0b\x32\x10.resources.Basic\x12!\n\x06origin\x18\t \x01(\x0b\x32\x11.resources.Origin\x12\x31\n\x0euser_relations\x18+ \x01(\x0b\x32\x14.resources.RelationsH\x00\x88\x01\x01\x12\x42\n\rconversations\x18\x0b \x03(\x0b\x32+.fdbwriter.BrokerMessage.ConversationsEntry\x12\x32\n\x05texts\x18\r \x03(\x0b\x32#.fdbwriter.BrokerMessage.TextsEntry\x12\x32\n\x05links\x18\x10 \x03(\x0b\x32#.fdbwriter.BrokerMessage.LinksEntry\x12\x32\n\x05\x66iles\x18\x11 \x03(\x0b\x32#.fdbwriter.BrokerMessage.FilesEntry\x12\x39\n\x13link_extracted_data\x18\x12 \x03(\x0b\x32\x1c.resources.LinkExtractedData\x12\x39\n\x13\x66ile_extracted_data\x18\x13 \x03(\x0b\x32\x1c.resources.FileExtractedData\x12\x37\n\x0e\x65xtracted_text\x18\x14 \x03(\x0b\x32\x1f.resources.ExtractedTextWrapper\x12?\n\x0e\x66ield_metadata\x18\x15 \x03(\x0b\x32\'.resources.FieldComputedMetadataWrapper\x12\x39\n\rfield_vectors\x18\x16 \x03(\x0b\x32\".resources.ExtractedVectorsWrapper\x12\x45\n\x14\x66ield_large_metadata\x18\x17 \x03(\x0b\x32\'.resources.LargeComputedMetadataWrapper\x12)\n\rdelete_fields\x18\x18 \x03(\x0b\x32\x12.resources.FieldID\x12\x12\n\norigin_seq\x18\x19 \x01(\x05\x12\x1c\n\x14slow_processing_time\x18\x1a \x01(\x02\x12\x1b\n\x13pre_processing_time\x18\x1c \x01(\x02\x12-\n\tdone_time\x18\x1d \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x07txseqid\x18\x1e \x01(\x03\x42\x02\x18\x01\x12 \n\x06\x65rrors\x18\x1f \x03(\x0b\x32\x10.fdbwriter.Error\x12\x15\n\rprocessing_id\x18 \x01(\t\x12\x36\n\x06source\x18! \x01(\x0e\x32&.fdbwriter.BrokerMessage.MessageSource\x12\x13\n\x0b\x61\x63\x63ount_seq\x18\" \x01(\x03\x12\x33\n\x0cuser_vectors\x18# \x03(\x0b\x32\x1d.resources.UserVectorsWrapper\x12\x0f\n\x07reindex\x18$ \x01(\x08\x12\x1f\n\x05\x65xtra\x18% \x01(\x0b\x32\x10.resources.Extra\x12?\n\x10question_answers\x18& \x03(\x0b\x32%.resources.FieldQuestionAnswerWrapper\x12!\n\x08security\x18\' \x01(\x0b\x32\x0f.utils.Security\x12*\n\x0cgenerated_by\x18( \x03(\x0b\x32\x14.fdbwriter.Generator\x12\x30\n\x0e\x66ield_statuses\x18) \x03(\x0b\x32\x18.fdbwriter.FieldIDStatus\x12\x33\n\x17\x64\x65lete_question_answers\x18* \x03(\x0b\x32\x12.resources.FieldID\x1aM\n\x12\x43onversationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.resources.Conversation:\x02\x38\x01\x1a\x42\n\nTextsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.resources.FieldText:\x02\x38\x01\x1a\x42\n\nLinksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.resources.FieldLink:\x02\x38\x01\x1a\x42\n\nFilesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.resources.FieldFile:\x02\x38\x01\"N\n\x0bMessageType\x12\x0e\n\nAUTOCOMMIT\x10\x00\x12\t\n\x05MULTI\x10\x01\x12\n\n\x06\x43OMMIT\x10\x02\x12\x0c\n\x08ROLLBACK\x10\x03\x12\n\n\x06\x44\x45LETE\x10\x04\"*\n\rMessageSource\x12\n\n\x06WRITER\x10\x00\x12\r\n\tPROCESSOR\x10\x01\x42\x11\n\x0f_user_relationsJ\x04\x08\x02\x10\x03J\x04\x08\n\x10\x0bJ\x04\x08\x0c\x10\rJ\x04\x08\x0e\x10\x0fJ\x04\x08\x0f\x10\x10J\x04\x08\x1b\x10\x1c\"M\n\x1a\x42rokerMessageBlobReference\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x13\n\x0bstorage_key\x18\x03 \x01(\t\"\x97\x01\n\x14WriterStatusResponse\x12\x16\n\x0eknowledgeboxes\x18\x01 \x03(\t\x12\x39\n\x05msgid\x18\x02 \x03(\x0b\x32*.fdbwriter.WriterStatusResponse.MsgidEntry\x1a,\n\nMsgidEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\x15\n\x13WriterStatusRequest\"\x81\x01\n\x17NewEntitiesGroupRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\r\n\x05group\x18\x02 \x01(\t\x12-\n\x08\x65ntities\x18\x03 \x01(\x0b\x32\x1b.knowledgebox.EntitiesGroup\"\x99\x01\n\x18NewEntitiesGroupResponse\x12:\n\x06status\x18\x01 \x01(\x0e\x32*.fdbwriter.NewEntitiesGroupResponse.Status\"A\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x10\n\x0cKB_NOT_FOUND\x10\x02\x12\x12\n\x0e\x41LREADY_EXISTS\x10\x03\"|\n\x12SetEntitiesRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\r\n\x05group\x18\x02 \x01(\t\x12-\n\x08\x65ntities\x18\x03 \x01(\x0b\x32\x1b.knowledgebox.EntitiesGroup\"\x8a\x03\n\x1aUpdateEntitiesGroupRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\r\n\x05group\x18\x02 \x01(\t\x12;\n\x03\x61\x64\x64\x18\x03 \x03(\x0b\x32..fdbwriter.UpdateEntitiesGroupRequest.AddEntry\x12\x41\n\x06update\x18\x04 \x03(\x0b\x32\x31.fdbwriter.UpdateEntitiesGroupRequest.UpdateEntry\x12\x0e\n\x06\x64\x65lete\x18\x05 \x03(\t\x12\r\n\x05title\x18\x06 \x01(\t\x12\r\n\x05\x63olor\x18\x07 \x01(\t\x1a@\n\x08\x41\x64\x64\x45ntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.knowledgebox.Entity:\x02\x38\x01\x1a\x43\n\x0bUpdateEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.knowledgebox.Entity:\x02\x38\x01\"\xa9\x01\n\x1bUpdateEntitiesGroupResponse\x12=\n\x06status\x18\x01 \x01(\x0e\x32-.fdbwriter.UpdateEntitiesGroupResponse.Status\"K\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x10\n\x0cKB_NOT_FOUND\x10\x02\x12\x1c\n\x18\x45NTITIES_GROUP_NOT_FOUND\x10\x03\"E\n\x19ListEntitiesGroupsRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\"\x9b\x02\n\x1aListEntitiesGroupsResponse\x12\x41\n\x06groups\x18\x01 \x03(\x0b\x32\x31.fdbwriter.ListEntitiesGroupsResponse.GroupsEntry\x12<\n\x06status\x18\x02 \x01(\x0e\x32,.fdbwriter.ListEntitiesGroupsResponse.Status\x1aQ\n\x0bGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x31\n\x05value\x18\x02 \x01(\x0b\x32\".knowledgebox.EntitiesGroupSummary:\x02\x38\x01\")\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0c\n\x08NOTFOUND\x10\x01\x12\t\n\x05\x45RROR\x10\x02\">\n\x12GetEntitiesRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\"\xa9\x02\n\x13GetEntitiesResponse\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12:\n\x06groups\x18\x02 \x03(\x0b\x32*.fdbwriter.GetEntitiesResponse.GroupsEntry\x12\x35\n\x06status\x18\x03 \x01(\x0e\x32%.fdbwriter.GetEntitiesResponse.Status\x1aJ\n\x0bGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.knowledgebox.EntitiesGroup:\x02\x38\x01\")\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0c\n\x08NOTFOUND\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"M\n\x12\x44\x65lEntitiesRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\r\n\x05group\x18\x02 \x01(\t\"\xd9\x01\n\x14MergeEntitiesRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\x36\n\x04\x66rom\x18\x02 \x01(\x0b\x32(.fdbwriter.MergeEntitiesRequest.EntityID\x12\x34\n\x02to\x18\x03 \x01(\x0b\x32(.fdbwriter.MergeEntitiesRequest.EntityID\x1a)\n\x08\x45ntityID\x12\r\n\x05group\x18\x01 \x01(\t\x12\x0e\n\x06\x65ntity\x18\x02 \x01(\t\"\xb8\x01\n\x11GetLabelsResponse\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12$\n\x06labels\x18\x02 \x01(\x0b\x32\x14.knowledgebox.Labels\x12\x33\n\x06status\x18\x03 \x01(\x0e\x32#.fdbwriter.GetLabelsResponse.Status\"\x1e\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0c\n\x08NOTFOUND\x10\x01\"<\n\x10GetLabelsRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\"R\n\x17GetEntitiesGroupRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\r\n\x05group\x18\x02 \x01(\t\"\xf9\x01\n\x18GetEntitiesGroupResponse\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12*\n\x05group\x18\x02 \x01(\x0b\x32\x1b.knowledgebox.EntitiesGroup\x12:\n\x06status\x18\x03 \x01(\x0e\x32*.fdbwriter.GetEntitiesGroupResponse.Status\"K\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x10\n\x0cKB_NOT_FOUND\x10\x01\x12\x1c\n\x18\x45NTITIES_GROUP_NOT_FOUND\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"@\n\x14GetVectorSetsRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\"\xd3\x01\n\x15GetVectorSetsResponse\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12,\n\nvectorsets\x18\x02 \x01(\x0b\x32\x18.knowledgebox.VectorSets\x12\x37\n\x06status\x18\x03 \x01(\x0e\x32\'.fdbwriter.GetVectorSetsResponse.Status\")\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0c\n\x08NOTFOUND\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"m\n\x0eOpStatusWriter\x12\x30\n\x06status\x18\x01 \x01(\x0e\x32 .fdbwriter.OpStatusWriter.Status\")\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0c\n\x08NOTFOUND\x10\x02\"\xd2\x03\n\x0cNotification\x12\x11\n\tpartition\x18\x01 \x01(\x05\x12\r\n\x05multi\x18\x02 \x01(\t\x12\x0c\n\x04uuid\x18\x03 \x01(\t\x12\x0c\n\x04kbid\x18\x04 \x01(\t\x12\r\n\x05seqid\x18\x05 \x01(\x03\x12.\n\x06\x61\x63tion\x18\x06 \x01(\x0e\x32\x1e.fdbwriter.Notification.Action\x12\x35\n\nwrite_type\x18\x07 \x01(\x0e\x32!.fdbwriter.Notification.WriteType\x12-\n\x07message\x18\x08 \x01(\x0b\x32\x18.fdbwriter.BrokerMessageB\x02\x18\x01\x12-\n\x06source\x18\t \x01(\x0e\x32\x1d.fdbwriter.NotificationSource\x12\x19\n\x11processing_errors\x18\n \x01(\x08\x12\'\n\rmessage_audit\x18\x0b \x01(\x0b\x32\x10.fdbwriter.Audit\",\n\x06\x41\x63tion\x12\n\n\x06\x43OMMIT\x10\x00\x12\t\n\x05\x41\x42ORT\x10\x01\x12\x0b\n\x07INDEXED\x10\x02\">\n\tWriteType\x12\t\n\x05UNSET\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0c\n\x08MODIFIED\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x03\"\xff\x01\n\x06Member\x12\n\n\x02id\x18\x01 \x01(\t\x12\x16\n\x0elisten_address\x18\x02 \x01(\t\x12\x13\n\x07is_self\x18\x03 \x01(\x08\x42\x02\x18\x01\x12(\n\x04type\x18\x04 \x01(\x0e\x32\x16.fdbwriter.Member.TypeB\x02\x18\x01\x12\x11\n\x05\x64ummy\x18\x05 \x01(\x08\x42\x02\x18\x01\x12\x16\n\nload_score\x18\x06 \x01(\x02\x42\x02\x18\x01\x12\x13\n\x0bshard_count\x18\x07 \x01(\r\x12\x12\n\nprimary_id\x18\x08 \x01(\t\">\n\x04Type\x12\x06\n\x02IO\x10\x00\x12\n\n\x06SEARCH\x10\x01\x12\n\n\x06INGEST\x10\x02\x12\t\n\x05TRAIN\x10\x03\x12\x0b\n\x07UNKNOWN\x10\x04\"\x14\n\x12ListMembersRequest\"9\n\x13ListMembersResponse\x12\"\n\x07members\x18\x01 \x03(\x0b\x32\x11.fdbwriter.Member\"H\n\x0cShardReplica\x12*\n\x05shard\x18\x01 \x01(\x0b\x32\x1b.noderesources.ShardCreated\x12\x0c\n\x04node\x18\x02 \x01(\t\"\xa4\x01\n\x0bShardObject\x12\r\n\x05shard\x18\x01 \x01(\t\x12)\n\x08replicas\x18\x03 \x03(\x0b\x32\x17.fdbwriter.ShardReplica\x12\x31\n\ttimestamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01\x12\x11\n\tread_only\x18\x05 \x01(\x08\x12\x15\n\rnidx_shard_id\x18\x06 \x01(\t\"\xc6\x02\n\x06Shards\x12&\n\x06shards\x18\x01 \x03(\x0b\x32\x16.fdbwriter.ShardObject\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12\x12\n\x06\x61\x63tual\x18\x03 \x01(\x05\x42\x02\x18\x01\x12/\n\nsimilarity\x18\x04 \x01(\x0e\x32\x17.utils.VectorSimilarityB\x02\x18\x01\x12\x36\n\x05model\x18\x05 \x01(\x0b\x32#.knowledgebox.SemanticModelMetadataB\x02\x18\x01\x12.\n\x0frelease_channel\x18\x06 \x01(\x0e\x32\x15.utils.ReleaseChannel\x12+\n\x05\x65xtra\x18\x07 \x03(\x0b\x32\x1c.fdbwriter.Shards.ExtraEntry\x1a,\n\nExtraEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"C\n\rIndexResource\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x0b\n\x03rid\x18\x02 \x01(\t\x12\x17\n\x0freindex_vectors\x18\x03 \x01(\x08\"\r\n\x0bIndexStatus\"\x1f\n\x0fSynonymsRequest\x12\x0c\n\x04kbid\x18\x01 \x01(\t\"\xc8\x03\n\x18NewKnowledgeBoxV2Request\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x0c\n\x04slug\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x41\n\nvectorsets\x18\x05 \x03(\x0b\x32-.fdbwriter.NewKnowledgeBoxV2Request.VectorSet\x12R\n\x17\x65xternal_index_provider\x18\x06 \x01(\x0b\x32\x31.knowledgebox.CreateExternalIndexProviderMetadata\x12 \n\x18hidden_resources_enabled\x18\x07 \x01(\x08\x12)\n!hidden_resources_hide_on_creation\x18\x08 \x01(\x08\x1a\x87\x01\n\tVectorSet\x12\x14\n\x0cvectorset_id\x18\x01 \x01(\t\x12+\n\nsimilarity\x18\x02 \x01(\x0e\x32\x17.utils.VectorSimilarity\x12\x18\n\x10vector_dimension\x18\x03 \x01(\r\x12\x1d\n\x15matryoshka_dimensions\x18\x04 \x03(\r\"l\n\x19NewKnowledgeBoxV2Response\x12\x38\n\x06status\x18\x01 \x01(\x0e\x32(.knowledgebox.KnowledgeBoxResponseStatus\x12\x15\n\rerror_message\x18\x02 \x01(\t\"a\n\nFieldError\x12&\n\x0csource_error\x18\x01 \x01(\x0b\x32\x10.fdbwriter.Error\x12+\n\x07\x63reated\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x94\x01\n\x0b\x46ieldStatus\x12-\n\x06status\x18\x01 \x01(\x0e\x32\x1d.fdbwriter.FieldStatus.Status\x12%\n\x06\x65rrors\x18\x02 \x03(\x0b\x32\x15.fdbwriter.FieldError\"/\n\x06Status\x12\x0b\n\x07PENDING\x10\x00\x12\r\n\tPROCESSED\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"^\n\rFieldIDStatus\x12\x1e\n\x02id\x18\x01 \x01(\x0b\x32\x12.resources.FieldID\x12-\n\x06status\x18\x02 \x01(\x0e\x32\x1d.fdbwriter.FieldStatus.Status*:\n\x12NotificationSource\x12\t\n\x05UNSET\x10\x00\x12\n\n\x06WRITER\x10\x01\x12\r\n\tPROCESSOR\x10\x02\x32\xf1\x0b\n\x06Writer\x12`\n\x11NewKnowledgeBoxV2\x12#.fdbwriter.NewKnowledgeBoxV2Request\x1a$.fdbwriter.NewKnowledgeBoxV2Response\"\x00\x12^\n\x12\x44\x65leteKnowledgeBox\x12\x1c.knowledgebox.KnowledgeBoxID\x1a(.knowledgebox.DeleteKnowledgeBoxResponse\"\x00\x12\x62\n\x12UpdateKnowledgeBox\x12 .knowledgebox.KnowledgeBoxUpdate\x1a(.knowledgebox.UpdateKnowledgeBoxResponse\"\x00\x12I\n\x0eProcessMessage\x12\x18.fdbwriter.BrokerMessage\x1a\x19.fdbwriter.OpStatusWriter\"\x00(\x01\x12]\n\x10NewEntitiesGroup\x12\".fdbwriter.NewEntitiesGroupRequest\x1a#.fdbwriter.NewEntitiesGroupResponse\"\x00\x12N\n\x0bGetEntities\x12\x1d.fdbwriter.GetEntitiesRequest\x1a\x1e.fdbwriter.GetEntitiesResponse\"\x00\x12]\n\x10GetEntitiesGroup\x12\".fdbwriter.GetEntitiesGroupRequest\x1a#.fdbwriter.GetEntitiesGroupResponse\"\x00\x12\x63\n\x12ListEntitiesGroups\x12$.fdbwriter.ListEntitiesGroupsRequest\x1a%.fdbwriter.ListEntitiesGroupsResponse\"\x00\x12I\n\x0bSetEntities\x12\x1d.fdbwriter.SetEntitiesRequest\x1a\x19.fdbwriter.OpStatusWriter\"\x00\x12\x66\n\x13UpdateEntitiesGroup\x12%.fdbwriter.UpdateEntitiesGroupRequest\x1a&.fdbwriter.UpdateEntitiesGroupResponse\"\x00\x12I\n\x0b\x44\x65lEntities\x12\x1d.fdbwriter.DelEntitiesRequest\x1a\x19.fdbwriter.OpStatusWriter\"\x00\x12K\n\x06Status\x12\x1e.fdbwriter.WriterStatusRequest\x1a\x1f.fdbwriter.WriterStatusResponse\"\x00\x12L\n\x0bListMembers\x12\x1d.fdbwriter.ListMembersRequest\x1a\x1e.fdbwriter.ListMembersResponse\x12;\n\x05Index\x12\x18.fdbwriter.IndexResource\x1a\x16.fdbwriter.IndexStatus\"\x00\x12=\n\x07ReIndex\x12\x18.fdbwriter.IndexResource\x1a\x16.fdbwriter.IndexStatus\"\x00\x12M\n\x0c\x43reateBackup\x12\x1c.backups.CreateBackupRequest\x1a\x1d.backups.CreateBackupResponse\"\x00\x12M\n\x0c\x44\x65leteBackup\x12\x1c.backups.DeleteBackupRequest\x1a\x1d.backups.DeleteBackupResponse\"\x00\x12P\n\rRestoreBackup\x12\x1d.backups.RestoreBackupRequest\x1a\x1e.backups.RestoreBackupResponse\"\x00P\x01P\x02P\x03P\x04P\x05\x62\x06proto3')
|
52
|
+
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1cnucliadb_protos/writer.proto\x12\tfdbwriter\x1a\x1fgoogle/protobuf/timestamp.proto\x1a#nucliadb_protos/noderesources.proto\x1a\x1fnucliadb_protos/resources.proto\x1a\"nucliadb_protos/knowledgebox.proto\x1a\x1bnucliadb_protos/audit.proto\x1a\x1dnucliadb_protos/backups.proto\"\xd9\x02\n\x05\x41udit\x12\x0c\n\x04user\x18\x01 \x01(\t\x12(\n\x04when\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06origin\x18\x03 \x01(\t\x12\'\n\x06source\x18\x04 \x01(\x0e\x32\x17.fdbwriter.Audit.Source\x12\x0c\n\x04kbid\x18\x05 \x01(\t\x12\x0c\n\x04uuid\x18\x06 \x01(\t\x12>\n\x0emessage_source\x18\x07 \x01(\x0e\x32&.fdbwriter.BrokerMessage.MessageSource\x12*\n\x0e\x66ield_metadata\x18\x08 \x03(\x0b\x32\x12.resources.FieldID\x12\'\n\x0c\x61udit_fields\x18\t \x03(\x0b\x32\x11.audit.AuditField\".\n\x06Source\x12\x08\n\x04HTTP\x10\x00\x12\r\n\tDASHBOARD\x10\x01\x12\x0b\n\x07\x44\x45SKTOP\x10\x02\"\xb2\x01\n\tGenerator\x12\x33\n\tprocessor\x18\x01 \x01(\x0b\x32\x1e.fdbwriter.Generator.ProcessorH\x00\x12\x42\n\x11\x64\x61ta_augmentation\x18\x02 \x01(\x0b\x32%.fdbwriter.Generator.DataAugmentationH\x00\x1a\x0b\n\tProcessor\x1a\x12\n\x10\x44\x61taAugmentationB\x0b\n\tgenerator\"\xef\x01\n\x05\x45rror\x12\r\n\x05\x66ield\x18\x01 \x01(\t\x12(\n\nfield_type\x18\x02 \x01(\x0e\x32\x14.resources.FieldType\x12\r\n\x05\x65rror\x18\x03 \x01(\t\x12(\n\x04\x63ode\x18\x04 \x01(\x0e\x32\x1a.fdbwriter.Error.ErrorCode\x12*\n\x0cgenerated_by\x18\x05 \x01(\x0b\x32\x14.fdbwriter.Generator\"H\n\tErrorCode\x12\x0b\n\x07GENERIC\x10\x00\x12\x0b\n\x07\x45XTRACT\x10\x01\x12\x0b\n\x07PROCESS\x10\x02\x12\x14\n\x10\x44\x41TAAUGMENTATION\x10\x03\"\xd8\x0f\n\rBrokerMessage\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x03 \x01(\t\x12\x0c\n\x04slug\x18\x04 \x01(\t\x12\x1f\n\x05\x61udit\x18\x05 \x01(\x0b\x32\x10.fdbwriter.Audit\x12\x32\n\x04type\x18\x06 \x01(\x0e\x32$.fdbwriter.BrokerMessage.MessageType\x12\x0f\n\x07multiid\x18\x07 \x01(\t\x12\x1f\n\x05\x62\x61sic\x18\x08 \x01(\x0b\x32\x10.resources.Basic\x12!\n\x06origin\x18\t \x01(\x0b\x32\x11.resources.Origin\x12\x31\n\x0euser_relations\x18+ \x01(\x0b\x32\x14.resources.RelationsH\x00\x88\x01\x01\x12\x42\n\rconversations\x18\x0b \x03(\x0b\x32+.fdbwriter.BrokerMessage.ConversationsEntry\x12\x32\n\x05texts\x18\r \x03(\x0b\x32#.fdbwriter.BrokerMessage.TextsEntry\x12\x32\n\x05links\x18\x10 \x03(\x0b\x32#.fdbwriter.BrokerMessage.LinksEntry\x12\x32\n\x05\x66iles\x18\x11 \x03(\x0b\x32#.fdbwriter.BrokerMessage.FilesEntry\x12\x39\n\x13link_extracted_data\x18\x12 \x03(\x0b\x32\x1c.resources.LinkExtractedData\x12\x39\n\x13\x66ile_extracted_data\x18\x13 \x03(\x0b\x32\x1c.resources.FileExtractedData\x12\x37\n\x0e\x65xtracted_text\x18\x14 \x03(\x0b\x32\x1f.resources.ExtractedTextWrapper\x12?\n\x0e\x66ield_metadata\x18\x15 \x03(\x0b\x32\'.resources.FieldComputedMetadataWrapper\x12\x39\n\rfield_vectors\x18\x16 \x03(\x0b\x32\".resources.ExtractedVectorsWrapper\x12\x45\n\x14\x66ield_large_metadata\x18\x17 \x03(\x0b\x32\'.resources.LargeComputedMetadataWrapper\x12)\n\rdelete_fields\x18\x18 \x03(\x0b\x32\x12.resources.FieldID\x12\x12\n\norigin_seq\x18\x19 \x01(\x05\x12\x1c\n\x14slow_processing_time\x18\x1a \x01(\x02\x12\x1b\n\x13pre_processing_time\x18\x1c \x01(\x02\x12-\n\tdone_time\x18\x1d \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x13\n\x07txseqid\x18\x1e \x01(\x03\x42\x02\x18\x01\x12 \n\x06\x65rrors\x18\x1f \x03(\x0b\x32\x10.fdbwriter.Error\x12\x15\n\rprocessing_id\x18 \x01(\t\x12\x36\n\x06source\x18! \x01(\x0e\x32&.fdbwriter.BrokerMessage.MessageSource\x12\x13\n\x0b\x61\x63\x63ount_seq\x18\" \x01(\x03\x12\x33\n\x0cuser_vectors\x18# \x03(\x0b\x32\x1d.resources.UserVectorsWrapper\x12\x0f\n\x07reindex\x18$ \x01(\x08\x12\x1f\n\x05\x65xtra\x18% \x01(\x0b\x32\x10.resources.Extra\x12?\n\x10question_answers\x18& \x03(\x0b\x32%.resources.FieldQuestionAnswerWrapper\x12!\n\x08security\x18\' \x01(\x0b\x32\x0f.utils.Security\x12*\n\x0cgenerated_by\x18( \x03(\x0b\x32\x14.fdbwriter.Generator\x12\x30\n\x0e\x66ield_statuses\x18) \x03(\x0b\x32\x18.fdbwriter.FieldIDStatus\x12\x33\n\x17\x64\x65lete_question_answers\x18* \x03(\x0b\x32\x12.resources.FieldID\x1aM\n\x12\x43onversationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.resources.Conversation:\x02\x38\x01\x1a\x42\n\nTextsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.resources.FieldText:\x02\x38\x01\x1a\x42\n\nLinksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.resources.FieldLink:\x02\x38\x01\x1a\x42\n\nFilesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.resources.FieldFile:\x02\x38\x01\"N\n\x0bMessageType\x12\x0e\n\nAUTOCOMMIT\x10\x00\x12\t\n\x05MULTI\x10\x01\x12\n\n\x06\x43OMMIT\x10\x02\x12\x0c\n\x08ROLLBACK\x10\x03\x12\n\n\x06\x44\x45LETE\x10\x04\"*\n\rMessageSource\x12\n\n\x06WRITER\x10\x00\x12\r\n\tPROCESSOR\x10\x01\x42\x11\n\x0f_user_relationsJ\x04\x08\x02\x10\x03J\x04\x08\n\x10\x0bJ\x04\x08\x0c\x10\rJ\x04\x08\x0e\x10\x0fJ\x04\x08\x0f\x10\x10J\x04\x08\x1b\x10\x1c\"M\n\x1a\x42rokerMessageBlobReference\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x13\n\x0bstorage_key\x18\x03 \x01(\t\"\x97\x01\n\x14WriterStatusResponse\x12\x16\n\x0eknowledgeboxes\x18\x01 \x03(\t\x12\x39\n\x05msgid\x18\x02 \x03(\x0b\x32*.fdbwriter.WriterStatusResponse.MsgidEntry\x1a,\n\nMsgidEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\x15\n\x13WriterStatusRequest\"\x81\x01\n\x17NewEntitiesGroupRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\r\n\x05group\x18\x02 \x01(\t\x12-\n\x08\x65ntities\x18\x03 \x01(\x0b\x32\x1b.knowledgebox.EntitiesGroup\"\x99\x01\n\x18NewEntitiesGroupResponse\x12:\n\x06status\x18\x01 \x01(\x0e\x32*.fdbwriter.NewEntitiesGroupResponse.Status\"A\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x10\n\x0cKB_NOT_FOUND\x10\x02\x12\x12\n\x0e\x41LREADY_EXISTS\x10\x03\"|\n\x12SetEntitiesRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\r\n\x05group\x18\x02 \x01(\t\x12-\n\x08\x65ntities\x18\x03 \x01(\x0b\x32\x1b.knowledgebox.EntitiesGroup\"\x8a\x03\n\x1aUpdateEntitiesGroupRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\r\n\x05group\x18\x02 \x01(\t\x12;\n\x03\x61\x64\x64\x18\x03 \x03(\x0b\x32..fdbwriter.UpdateEntitiesGroupRequest.AddEntry\x12\x41\n\x06update\x18\x04 \x03(\x0b\x32\x31.fdbwriter.UpdateEntitiesGroupRequest.UpdateEntry\x12\x0e\n\x06\x64\x65lete\x18\x05 \x03(\t\x12\r\n\x05title\x18\x06 \x01(\t\x12\r\n\x05\x63olor\x18\x07 \x01(\t\x1a@\n\x08\x41\x64\x64\x45ntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.knowledgebox.Entity:\x02\x38\x01\x1a\x43\n\x0bUpdateEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.knowledgebox.Entity:\x02\x38\x01\"\xa9\x01\n\x1bUpdateEntitiesGroupResponse\x12=\n\x06status\x18\x01 \x01(\x0e\x32-.fdbwriter.UpdateEntitiesGroupResponse.Status\"K\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x10\n\x0cKB_NOT_FOUND\x10\x02\x12\x1c\n\x18\x45NTITIES_GROUP_NOT_FOUND\x10\x03\"E\n\x19ListEntitiesGroupsRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\"\x9b\x02\n\x1aListEntitiesGroupsResponse\x12\x41\n\x06groups\x18\x01 \x03(\x0b\x32\x31.fdbwriter.ListEntitiesGroupsResponse.GroupsEntry\x12<\n\x06status\x18\x02 \x01(\x0e\x32,.fdbwriter.ListEntitiesGroupsResponse.Status\x1aQ\n\x0bGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x31\n\x05value\x18\x02 \x01(\x0b\x32\".knowledgebox.EntitiesGroupSummary:\x02\x38\x01\")\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0c\n\x08NOTFOUND\x10\x01\x12\t\n\x05\x45RROR\x10\x02\">\n\x12GetEntitiesRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\"\xa9\x02\n\x13GetEntitiesResponse\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12:\n\x06groups\x18\x02 \x03(\x0b\x32*.fdbwriter.GetEntitiesResponse.GroupsEntry\x12\x35\n\x06status\x18\x03 \x01(\x0e\x32%.fdbwriter.GetEntitiesResponse.Status\x1aJ\n\x0bGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.knowledgebox.EntitiesGroup:\x02\x38\x01\")\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0c\n\x08NOTFOUND\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"M\n\x12\x44\x65lEntitiesRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\r\n\x05group\x18\x02 \x01(\t\"\xd9\x01\n\x14MergeEntitiesRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\x36\n\x04\x66rom\x18\x02 \x01(\x0b\x32(.fdbwriter.MergeEntitiesRequest.EntityID\x12\x34\n\x02to\x18\x03 \x01(\x0b\x32(.fdbwriter.MergeEntitiesRequest.EntityID\x1a)\n\x08\x45ntityID\x12\r\n\x05group\x18\x01 \x01(\t\x12\x0e\n\x06\x65ntity\x18\x02 \x01(\t\"\xb8\x01\n\x11GetLabelsResponse\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12$\n\x06labels\x18\x02 \x01(\x0b\x32\x14.knowledgebox.Labels\x12\x33\n\x06status\x18\x03 \x01(\x0e\x32#.fdbwriter.GetLabelsResponse.Status\"\x1e\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0c\n\x08NOTFOUND\x10\x01\"<\n\x10GetLabelsRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\"R\n\x17GetEntitiesGroupRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\r\n\x05group\x18\x02 \x01(\t\"\xf9\x01\n\x18GetEntitiesGroupResponse\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12*\n\x05group\x18\x02 \x01(\x0b\x32\x1b.knowledgebox.EntitiesGroup\x12:\n\x06status\x18\x03 \x01(\x0e\x32*.fdbwriter.GetEntitiesGroupResponse.Status\"K\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x10\n\x0cKB_NOT_FOUND\x10\x01\x12\x1c\n\x18\x45NTITIES_GROUP_NOT_FOUND\x10\x02\x12\t\n\x05\x45RROR\x10\x03\"@\n\x14GetVectorSetsRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\"\xd3\x01\n\x15GetVectorSetsResponse\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12,\n\nvectorsets\x18\x02 \x01(\x0b\x32\x18.knowledgebox.VectorSets\x12\x37\n\x06status\x18\x03 \x01(\x0e\x32\'.fdbwriter.GetVectorSetsResponse.Status\")\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0c\n\x08NOTFOUND\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"m\n\x0eOpStatusWriter\x12\x30\n\x06status\x18\x01 \x01(\x0e\x32 .fdbwriter.OpStatusWriter.Status\")\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\t\n\x05\x45RROR\x10\x01\x12\x0c\n\x08NOTFOUND\x10\x02\"\xd2\x03\n\x0cNotification\x12\x11\n\tpartition\x18\x01 \x01(\x05\x12\r\n\x05multi\x18\x02 \x01(\t\x12\x0c\n\x04uuid\x18\x03 \x01(\t\x12\x0c\n\x04kbid\x18\x04 \x01(\t\x12\r\n\x05seqid\x18\x05 \x01(\x03\x12.\n\x06\x61\x63tion\x18\x06 \x01(\x0e\x32\x1e.fdbwriter.Notification.Action\x12\x35\n\nwrite_type\x18\x07 \x01(\x0e\x32!.fdbwriter.Notification.WriteType\x12-\n\x07message\x18\x08 \x01(\x0b\x32\x18.fdbwriter.BrokerMessageB\x02\x18\x01\x12-\n\x06source\x18\t \x01(\x0e\x32\x1d.fdbwriter.NotificationSource\x12\x19\n\x11processing_errors\x18\n \x01(\x08\x12\'\n\rmessage_audit\x18\x0b \x01(\x0b\x32\x10.fdbwriter.Audit\",\n\x06\x41\x63tion\x12\n\n\x06\x43OMMIT\x10\x00\x12\t\n\x05\x41\x42ORT\x10\x01\x12\x0b\n\x07INDEXED\x10\x02\">\n\tWriteType\x12\t\n\x05UNSET\x10\x00\x12\x0b\n\x07\x43REATED\x10\x01\x12\x0c\n\x08MODIFIED\x10\x02\x12\x0b\n\x07\x44\x45LETED\x10\x03\"H\n\x0cShardReplica\x12*\n\x05shard\x18\x01 \x01(\x0b\x32\x1b.noderesources.ShardCreated\x12\x0c\n\x04node\x18\x02 \x01(\t\"\xa4\x01\n\x0bShardObject\x12\r\n\x05shard\x18\x01 \x01(\t\x12)\n\x08replicas\x18\x03 \x03(\x0b\x32\x17.fdbwriter.ShardReplica\x12\x31\n\ttimestamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x02\x18\x01\x12\x11\n\tread_only\x18\x05 \x01(\x08\x12\x15\n\rnidx_shard_id\x18\x06 \x01(\t\"\xc6\x02\n\x06Shards\x12&\n\x06shards\x18\x01 \x03(\x0b\x32\x16.fdbwriter.ShardObject\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12\x12\n\x06\x61\x63tual\x18\x03 \x01(\x05\x42\x02\x18\x01\x12/\n\nsimilarity\x18\x04 \x01(\x0e\x32\x17.utils.VectorSimilarityB\x02\x18\x01\x12\x36\n\x05model\x18\x05 \x01(\x0b\x32#.knowledgebox.SemanticModelMetadataB\x02\x18\x01\x12.\n\x0frelease_channel\x18\x06 \x01(\x0e\x32\x15.utils.ReleaseChannel\x12+\n\x05\x65xtra\x18\x07 \x03(\x0b\x32\x1c.fdbwriter.Shards.ExtraEntry\x1a,\n\nExtraEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"C\n\rIndexResource\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x0b\n\x03rid\x18\x02 \x01(\t\x12\x17\n\x0freindex_vectors\x18\x03 \x01(\x08\"\r\n\x0bIndexStatus\"\x1f\n\x0fSynonymsRequest\x12\x0c\n\x04kbid\x18\x01 \x01(\t\"\xc8\x03\n\x18NewKnowledgeBoxV2Request\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x0c\n\x04slug\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x04 \x01(\t\x12\x41\n\nvectorsets\x18\x05 \x03(\x0b\x32-.fdbwriter.NewKnowledgeBoxV2Request.VectorSet\x12R\n\x17\x65xternal_index_provider\x18\x06 \x01(\x0b\x32\x31.knowledgebox.CreateExternalIndexProviderMetadata\x12 \n\x18hidden_resources_enabled\x18\x07 \x01(\x08\x12)\n!hidden_resources_hide_on_creation\x18\x08 \x01(\x08\x1a\x87\x01\n\tVectorSet\x12\x14\n\x0cvectorset_id\x18\x01 \x01(\t\x12+\n\nsimilarity\x18\x02 \x01(\x0e\x32\x17.utils.VectorSimilarity\x12\x18\n\x10vector_dimension\x18\x03 \x01(\r\x12\x1d\n\x15matryoshka_dimensions\x18\x04 \x03(\r\"l\n\x19NewKnowledgeBoxV2Response\x12\x38\n\x06status\x18\x01 \x01(\x0e\x32(.knowledgebox.KnowledgeBoxResponseStatus\x12\x15\n\rerror_message\x18\x02 \x01(\t\"a\n\nFieldError\x12&\n\x0csource_error\x18\x01 \x01(\x0b\x32\x10.fdbwriter.Error\x12+\n\x07\x63reated\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x94\x01\n\x0b\x46ieldStatus\x12-\n\x06status\x18\x01 \x01(\x0e\x32\x1d.fdbwriter.FieldStatus.Status\x12%\n\x06\x65rrors\x18\x02 \x03(\x0b\x32\x15.fdbwriter.FieldError\"/\n\x06Status\x12\x0b\n\x07PENDING\x10\x00\x12\r\n\tPROCESSED\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"^\n\rFieldIDStatus\x12\x1e\n\x02id\x18\x01 \x01(\x0b\x32\x12.resources.FieldID\x12-\n\x06status\x18\x02 \x01(\x0e\x32\x1d.fdbwriter.FieldStatus.Status*:\n\x12NotificationSource\x12\t\n\x05UNSET\x10\x00\x12\n\n\x06WRITER\x10\x01\x12\r\n\tPROCESSOR\x10\x02\x32\xa3\x0b\n\x06Writer\x12`\n\x11NewKnowledgeBoxV2\x12#.fdbwriter.NewKnowledgeBoxV2Request\x1a$.fdbwriter.NewKnowledgeBoxV2Response\"\x00\x12^\n\x12\x44\x65leteKnowledgeBox\x12\x1c.knowledgebox.KnowledgeBoxID\x1a(.knowledgebox.DeleteKnowledgeBoxResponse\"\x00\x12\x62\n\x12UpdateKnowledgeBox\x12 .knowledgebox.KnowledgeBoxUpdate\x1a(.knowledgebox.UpdateKnowledgeBoxResponse\"\x00\x12I\n\x0eProcessMessage\x12\x18.fdbwriter.BrokerMessage\x1a\x19.fdbwriter.OpStatusWriter\"\x00(\x01\x12]\n\x10NewEntitiesGroup\x12\".fdbwriter.NewEntitiesGroupRequest\x1a#.fdbwriter.NewEntitiesGroupResponse\"\x00\x12N\n\x0bGetEntities\x12\x1d.fdbwriter.GetEntitiesRequest\x1a\x1e.fdbwriter.GetEntitiesResponse\"\x00\x12]\n\x10GetEntitiesGroup\x12\".fdbwriter.GetEntitiesGroupRequest\x1a#.fdbwriter.GetEntitiesGroupResponse\"\x00\x12\x63\n\x12ListEntitiesGroups\x12$.fdbwriter.ListEntitiesGroupsRequest\x1a%.fdbwriter.ListEntitiesGroupsResponse\"\x00\x12I\n\x0bSetEntities\x12\x1d.fdbwriter.SetEntitiesRequest\x1a\x19.fdbwriter.OpStatusWriter\"\x00\x12\x66\n\x13UpdateEntitiesGroup\x12%.fdbwriter.UpdateEntitiesGroupRequest\x1a&.fdbwriter.UpdateEntitiesGroupResponse\"\x00\x12I\n\x0b\x44\x65lEntities\x12\x1d.fdbwriter.DelEntitiesRequest\x1a\x19.fdbwriter.OpStatusWriter\"\x00\x12K\n\x06Status\x12\x1e.fdbwriter.WriterStatusRequest\x1a\x1f.fdbwriter.WriterStatusResponse\"\x00\x12;\n\x05Index\x12\x18.fdbwriter.IndexResource\x1a\x16.fdbwriter.IndexStatus\"\x00\x12=\n\x07ReIndex\x12\x18.fdbwriter.IndexResource\x1a\x16.fdbwriter.IndexStatus\"\x00\x12M\n\x0c\x43reateBackup\x12\x1c.backups.CreateBackupRequest\x1a\x1d.backups.CreateBackupResponse\"\x00\x12M\n\x0c\x44\x65leteBackup\x12\x1c.backups.DeleteBackupRequest\x1a\x1d.backups.DeleteBackupResponse\"\x00\x12P\n\rRestoreBackup\x12\x1d.backups.RestoreBackupRequest\x1a\x1e.backups.RestoreBackupResponse\"\x00P\x01P\x02P\x03P\x04P\x05\x62\x06proto3')
|
53
53
|
|
54
54
|
_globals = globals()
|
55
55
|
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
@@ -78,14 +78,6 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
78
78
|
_globals['_GETENTITIESRESPONSE_GROUPSENTRY']._serialized_options = b'8\001'
|
79
79
|
_globals['_NOTIFICATION'].fields_by_name['message']._options = None
|
80
80
|
_globals['_NOTIFICATION'].fields_by_name['message']._serialized_options = b'\030\001'
|
81
|
-
_globals['_MEMBER'].fields_by_name['is_self']._options = None
|
82
|
-
_globals['_MEMBER'].fields_by_name['is_self']._serialized_options = b'\030\001'
|
83
|
-
_globals['_MEMBER'].fields_by_name['type']._options = None
|
84
|
-
_globals['_MEMBER'].fields_by_name['type']._serialized_options = b'\030\001'
|
85
|
-
_globals['_MEMBER'].fields_by_name['dummy']._options = None
|
86
|
-
_globals['_MEMBER'].fields_by_name['dummy']._serialized_options = b'\030\001'
|
87
|
-
_globals['_MEMBER'].fields_by_name['load_score']._options = None
|
88
|
-
_globals['_MEMBER'].fields_by_name['load_score']._serialized_options = b'\030\001'
|
89
81
|
_globals['_SHARDOBJECT'].fields_by_name['timestamp']._options = None
|
90
82
|
_globals['_SHARDOBJECT'].fields_by_name['timestamp']._serialized_options = b'\030\001'
|
91
83
|
_globals['_SHARDS_EXTRAENTRY']._options = None
|
@@ -96,8 +88,8 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
96
88
|
_globals['_SHARDS'].fields_by_name['similarity']._serialized_options = b'\030\001'
|
97
89
|
_globals['_SHARDS'].fields_by_name['model']._options = None
|
98
90
|
_globals['_SHARDS'].fields_by_name['model']._serialized_options = b'\030\001'
|
99
|
-
_globals['_NOTIFICATIONSOURCE']._serialized_start=
|
100
|
-
_globals['_NOTIFICATIONSOURCE']._serialized_end=
|
91
|
+
_globals['_NOTIFICATIONSOURCE']._serialized_start=8330
|
92
|
+
_globals['_NOTIFICATIONSOURCE']._serialized_end=8388
|
101
93
|
_globals['_AUDIT']._serialized_start=243
|
102
94
|
_globals['_AUDIT']._serialized_end=588
|
103
95
|
_globals['_AUDIT_SOURCE']._serialized_start=542
|
@@ -202,42 +194,34 @@ if _descriptor._USE_C_DESCRIPTORS == False:
|
|
202
194
|
_globals['_NOTIFICATION_ACTION']._serialized_end=6662
|
203
195
|
_globals['_NOTIFICATION_WRITETYPE']._serialized_start=6664
|
204
196
|
_globals['_NOTIFICATION_WRITETYPE']._serialized_end=6726
|
205
|
-
_globals['
|
206
|
-
_globals['
|
207
|
-
_globals['
|
208
|
-
_globals['
|
209
|
-
_globals['
|
210
|
-
_globals['
|
211
|
-
_globals['
|
212
|
-
_globals['
|
213
|
-
_globals['
|
214
|
-
_globals['
|
215
|
-
_globals['
|
216
|
-
_globals['
|
217
|
-
_globals['
|
218
|
-
_globals['
|
219
|
-
_globals['
|
220
|
-
_globals['
|
221
|
-
_globals['
|
222
|
-
_globals['
|
223
|
-
_globals['
|
224
|
-
_globals['
|
225
|
-
_globals['
|
226
|
-
_globals['
|
227
|
-
_globals['
|
228
|
-
_globals['
|
229
|
-
_globals['
|
230
|
-
_globals['
|
231
|
-
_globals['
|
232
|
-
_globals['
|
233
|
-
_globals['
|
234
|
-
_globals['
|
235
|
-
_globals['_FIELDSTATUS']._serialized_start=8423
|
236
|
-
_globals['_FIELDSTATUS']._serialized_end=8571
|
237
|
-
_globals['_FIELDSTATUS_STATUS']._serialized_start=8524
|
238
|
-
_globals['_FIELDSTATUS_STATUS']._serialized_end=8571
|
239
|
-
_globals['_FIELDIDSTATUS']._serialized_start=8573
|
240
|
-
_globals['_FIELDIDSTATUS']._serialized_end=8667
|
241
|
-
_globals['_WRITER']._serialized_start=8730
|
242
|
-
_globals['_WRITER']._serialized_end=10251
|
197
|
+
_globals['_SHARDREPLICA']._serialized_start=6728
|
198
|
+
_globals['_SHARDREPLICA']._serialized_end=6800
|
199
|
+
_globals['_SHARDOBJECT']._serialized_start=6803
|
200
|
+
_globals['_SHARDOBJECT']._serialized_end=6967
|
201
|
+
_globals['_SHARDS']._serialized_start=6970
|
202
|
+
_globals['_SHARDS']._serialized_end=7296
|
203
|
+
_globals['_SHARDS_EXTRAENTRY']._serialized_start=7252
|
204
|
+
_globals['_SHARDS_EXTRAENTRY']._serialized_end=7296
|
205
|
+
_globals['_INDEXRESOURCE']._serialized_start=7298
|
206
|
+
_globals['_INDEXRESOURCE']._serialized_end=7365
|
207
|
+
_globals['_INDEXSTATUS']._serialized_start=7367
|
208
|
+
_globals['_INDEXSTATUS']._serialized_end=7380
|
209
|
+
_globals['_SYNONYMSREQUEST']._serialized_start=7382
|
210
|
+
_globals['_SYNONYMSREQUEST']._serialized_end=7413
|
211
|
+
_globals['_NEWKNOWLEDGEBOXV2REQUEST']._serialized_start=7416
|
212
|
+
_globals['_NEWKNOWLEDGEBOXV2REQUEST']._serialized_end=7872
|
213
|
+
_globals['_NEWKNOWLEDGEBOXV2REQUEST_VECTORSET']._serialized_start=7737
|
214
|
+
_globals['_NEWKNOWLEDGEBOXV2REQUEST_VECTORSET']._serialized_end=7872
|
215
|
+
_globals['_NEWKNOWLEDGEBOXV2RESPONSE']._serialized_start=7874
|
216
|
+
_globals['_NEWKNOWLEDGEBOXV2RESPONSE']._serialized_end=7982
|
217
|
+
_globals['_FIELDERROR']._serialized_start=7984
|
218
|
+
_globals['_FIELDERROR']._serialized_end=8081
|
219
|
+
_globals['_FIELDSTATUS']._serialized_start=8084
|
220
|
+
_globals['_FIELDSTATUS']._serialized_end=8232
|
221
|
+
_globals['_FIELDSTATUS_STATUS']._serialized_start=8185
|
222
|
+
_globals['_FIELDSTATUS_STATUS']._serialized_end=8232
|
223
|
+
_globals['_FIELDIDSTATUS']._serialized_start=8234
|
224
|
+
_globals['_FIELDIDSTATUS']._serialized_end=8328
|
225
|
+
_globals['_WRITER']._serialized_start=8391
|
226
|
+
_globals['_WRITER']._serialized_end=9834
|
243
227
|
# @@protoc_insertion_point(module_scope)
|
nucliadb_protos/writer_pb2.pyi
CHANGED
@@ -1370,99 +1370,6 @@ class Notification(google.protobuf.message.Message):
|
|
1370
1370
|
|
1371
1371
|
global___Notification = Notification
|
1372
1372
|
|
1373
|
-
@typing.final
|
1374
|
-
class Member(google.protobuf.message.Message):
|
1375
|
-
"""The member information."""
|
1376
|
-
|
1377
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1378
|
-
|
1379
|
-
class _Type:
|
1380
|
-
ValueType = typing.NewType("ValueType", builtins.int)
|
1381
|
-
V: typing_extensions.TypeAlias = ValueType
|
1382
|
-
|
1383
|
-
class _TypeEnumTypeWrapper(google.protobuf.internal.enum_type_wrapper._EnumTypeWrapper[Member._Type.ValueType], builtins.type):
|
1384
|
-
DESCRIPTOR: google.protobuf.descriptor.EnumDescriptor
|
1385
|
-
IO: Member._Type.ValueType # 0
|
1386
|
-
SEARCH: Member._Type.ValueType # 1
|
1387
|
-
INGEST: Member._Type.ValueType # 2
|
1388
|
-
TRAIN: Member._Type.ValueType # 3
|
1389
|
-
UNKNOWN: Member._Type.ValueType # 4
|
1390
|
-
|
1391
|
-
class Type(_Type, metaclass=_TypeEnumTypeWrapper): ...
|
1392
|
-
IO: Member.Type.ValueType # 0
|
1393
|
-
SEARCH: Member.Type.ValueType # 1
|
1394
|
-
INGEST: Member.Type.ValueType # 2
|
1395
|
-
TRAIN: Member.Type.ValueType # 3
|
1396
|
-
UNKNOWN: Member.Type.ValueType # 4
|
1397
|
-
|
1398
|
-
ID_FIELD_NUMBER: builtins.int
|
1399
|
-
LISTEN_ADDRESS_FIELD_NUMBER: builtins.int
|
1400
|
-
IS_SELF_FIELD_NUMBER: builtins.int
|
1401
|
-
TYPE_FIELD_NUMBER: builtins.int
|
1402
|
-
DUMMY_FIELD_NUMBER: builtins.int
|
1403
|
-
LOAD_SCORE_FIELD_NUMBER: builtins.int
|
1404
|
-
SHARD_COUNT_FIELD_NUMBER: builtins.int
|
1405
|
-
PRIMARY_ID_FIELD_NUMBER: builtins.int
|
1406
|
-
id: builtins.str
|
1407
|
-
"""/ Member ID. A string of the UUID."""
|
1408
|
-
listen_address: builtins.str
|
1409
|
-
"""/ Cluster listen address. string of IP and port number.
|
1410
|
-
/ E.g. 127.0.0.1:5000
|
1411
|
-
"""
|
1412
|
-
is_self: builtins.bool
|
1413
|
-
"""/ If true, it means self."""
|
1414
|
-
type: global___Member.Type.ValueType
|
1415
|
-
"""/ Io, Ingest, Search, Train."""
|
1416
|
-
dummy: builtins.bool
|
1417
|
-
"""/ Dummy Member"""
|
1418
|
-
load_score: builtins.float
|
1419
|
-
"""/ The load score of the member."""
|
1420
|
-
shard_count: builtins.int
|
1421
|
-
"""/ The number of shards in the node."""
|
1422
|
-
primary_id: builtins.str
|
1423
|
-
"""/ The id of the primary node (if it is a secondary node)."""
|
1424
|
-
def __init__(
|
1425
|
-
self,
|
1426
|
-
*,
|
1427
|
-
id: builtins.str = ...,
|
1428
|
-
listen_address: builtins.str = ...,
|
1429
|
-
is_self: builtins.bool = ...,
|
1430
|
-
type: global___Member.Type.ValueType = ...,
|
1431
|
-
dummy: builtins.bool = ...,
|
1432
|
-
load_score: builtins.float = ...,
|
1433
|
-
shard_count: builtins.int = ...,
|
1434
|
-
primary_id: builtins.str = ...,
|
1435
|
-
) -> None: ...
|
1436
|
-
def ClearField(self, field_name: typing.Literal["dummy", b"dummy", "id", b"id", "is_self", b"is_self", "listen_address", b"listen_address", "load_score", b"load_score", "primary_id", b"primary_id", "shard_count", b"shard_count", "type", b"type"]) -> None: ...
|
1437
|
-
|
1438
|
-
global___Member = Member
|
1439
|
-
|
1440
|
-
@typing.final
|
1441
|
-
class ListMembersRequest(google.protobuf.message.Message):
|
1442
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1443
|
-
|
1444
|
-
def __init__(
|
1445
|
-
self,
|
1446
|
-
) -> None: ...
|
1447
|
-
|
1448
|
-
global___ListMembersRequest = ListMembersRequest
|
1449
|
-
|
1450
|
-
@typing.final
|
1451
|
-
class ListMembersResponse(google.protobuf.message.Message):
|
1452
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
1453
|
-
|
1454
|
-
MEMBERS_FIELD_NUMBER: builtins.int
|
1455
|
-
@property
|
1456
|
-
def members(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___Member]: ...
|
1457
|
-
def __init__(
|
1458
|
-
self,
|
1459
|
-
*,
|
1460
|
-
members: collections.abc.Iterable[global___Member] | None = ...,
|
1461
|
-
) -> None: ...
|
1462
|
-
def ClearField(self, field_name: typing.Literal["members", b"members"]) -> None: ...
|
1463
|
-
|
1464
|
-
global___ListMembersResponse = ListMembersResponse
|
1465
|
-
|
1466
1373
|
@typing.final
|
1467
1374
|
class ShardReplica(google.protobuf.message.Message):
|
1468
1375
|
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
@@ -76,11 +76,6 @@ class WriterStub(object):
|
|
76
76
|
request_serializer=nucliadb__protos_dot_writer__pb2.WriterStatusRequest.SerializeToString,
|
77
77
|
response_deserializer=nucliadb__protos_dot_writer__pb2.WriterStatusResponse.FromString,
|
78
78
|
)
|
79
|
-
self.ListMembers = channel.unary_unary(
|
80
|
-
'/fdbwriter.Writer/ListMembers',
|
81
|
-
request_serializer=nucliadb__protos_dot_writer__pb2.ListMembersRequest.SerializeToString,
|
82
|
-
response_deserializer=nucliadb__protos_dot_writer__pb2.ListMembersResponse.FromString,
|
83
|
-
)
|
84
79
|
self.Index = channel.unary_unary(
|
85
80
|
'/fdbwriter.Writer/Index',
|
86
81
|
request_serializer=nucliadb__protos_dot_writer__pb2.IndexResource.SerializeToString,
|
@@ -184,12 +179,6 @@ class WriterServicer(object):
|
|
184
179
|
context.set_details('Method not implemented!')
|
185
180
|
raise NotImplementedError('Method not implemented!')
|
186
181
|
|
187
|
-
def ListMembers(self, request, context):
|
188
|
-
"""Missing associated documentation comment in .proto file."""
|
189
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
190
|
-
context.set_details('Method not implemented!')
|
191
|
-
raise NotImplementedError('Method not implemented!')
|
192
|
-
|
193
182
|
def Index(self, request, context):
|
194
183
|
"""Missing associated documentation comment in .proto file."""
|
195
184
|
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
@@ -283,11 +272,6 @@ def add_WriterServicer_to_server(servicer, server):
|
|
283
272
|
request_deserializer=nucliadb__protos_dot_writer__pb2.WriterStatusRequest.FromString,
|
284
273
|
response_serializer=nucliadb__protos_dot_writer__pb2.WriterStatusResponse.SerializeToString,
|
285
274
|
),
|
286
|
-
'ListMembers': grpc.unary_unary_rpc_method_handler(
|
287
|
-
servicer.ListMembers,
|
288
|
-
request_deserializer=nucliadb__protos_dot_writer__pb2.ListMembersRequest.FromString,
|
289
|
-
response_serializer=nucliadb__protos_dot_writer__pb2.ListMembersResponse.SerializeToString,
|
290
|
-
),
|
291
275
|
'Index': grpc.unary_unary_rpc_method_handler(
|
292
276
|
servicer.Index,
|
293
277
|
request_deserializer=nucliadb__protos_dot_writer__pb2.IndexResource.FromString,
|
@@ -527,23 +511,6 @@ class Writer(object):
|
|
527
511
|
options, channel_credentials,
|
528
512
|
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
529
513
|
|
530
|
-
@staticmethod
|
531
|
-
def ListMembers(request,
|
532
|
-
target,
|
533
|
-
options=(),
|
534
|
-
channel_credentials=None,
|
535
|
-
call_credentials=None,
|
536
|
-
insecure=False,
|
537
|
-
compression=None,
|
538
|
-
wait_for_ready=None,
|
539
|
-
timeout=None,
|
540
|
-
metadata=None):
|
541
|
-
return grpc.experimental.unary_unary(request, target, '/fdbwriter.Writer/ListMembers',
|
542
|
-
nucliadb__protos_dot_writer__pb2.ListMembersRequest.SerializeToString,
|
543
|
-
nucliadb__protos_dot_writer__pb2.ListMembersResponse.FromString,
|
544
|
-
options, channel_credentials,
|
545
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
546
|
-
|
547
514
|
@staticmethod
|
548
515
|
def Index(request,
|
549
516
|
target,
|
@@ -250,11 +250,6 @@ class WriterStub:
|
|
250
250
|
nucliadb_protos.writer_pb2.WriterStatusResponse,
|
251
251
|
]
|
252
252
|
|
253
|
-
ListMembers: grpc.UnaryUnaryMultiCallable[
|
254
|
-
nucliadb_protos.writer_pb2.ListMembersRequest,
|
255
|
-
nucliadb_protos.writer_pb2.ListMembersResponse,
|
256
|
-
]
|
257
|
-
|
258
253
|
Index: grpc.UnaryUnaryMultiCallable[
|
259
254
|
nucliadb_protos.writer_pb2.IndexResource,
|
260
255
|
nucliadb_protos.writer_pb2.IndexStatus,
|
@@ -342,11 +337,6 @@ class WriterAsyncStub:
|
|
342
337
|
nucliadb_protos.writer_pb2.WriterStatusResponse,
|
343
338
|
]
|
344
339
|
|
345
|
-
ListMembers: grpc.aio.UnaryUnaryMultiCallable[
|
346
|
-
nucliadb_protos.writer_pb2.ListMembersRequest,
|
347
|
-
nucliadb_protos.writer_pb2.ListMembersResponse,
|
348
|
-
]
|
349
|
-
|
350
340
|
Index: grpc.aio.UnaryUnaryMultiCallable[
|
351
341
|
nucliadb_protos.writer_pb2.IndexResource,
|
352
342
|
nucliadb_protos.writer_pb2.IndexStatus,
|
@@ -458,13 +448,6 @@ class WriterServicer(metaclass=abc.ABCMeta):
|
|
458
448
|
context: _ServicerContext,
|
459
449
|
) -> typing.Union[nucliadb_protos.writer_pb2.WriterStatusResponse, collections.abc.Awaitable[nucliadb_protos.writer_pb2.WriterStatusResponse]]: ...
|
460
450
|
|
461
|
-
@abc.abstractmethod
|
462
|
-
def ListMembers(
|
463
|
-
self,
|
464
|
-
request: nucliadb_protos.writer_pb2.ListMembersRequest,
|
465
|
-
context: _ServicerContext,
|
466
|
-
) -> typing.Union[nucliadb_protos.writer_pb2.ListMembersResponse, collections.abc.Awaitable[nucliadb_protos.writer_pb2.ListMembersResponse]]: ...
|
467
|
-
|
468
451
|
@abc.abstractmethod
|
469
452
|
def Index(
|
470
453
|
self,
|
{nucliadb_protos-6.3.5.post3997.dist-info → nucliadb_protos-6.3.5.post4010.dist-info}/RECORD
RENAMED
@@ -24,10 +24,6 @@ nucliadb_protos/nodewriter_pb2.pyi,sha256=ZqQB9XRfc2fcO56ArqlnMWXFNnXWEMpciwCzqv
|
|
24
24
|
nucliadb_protos/nodewriter_pb2_grpc.py,sha256=m-Mq-lhWlMwnd37mRx1v0kV8j7V0vqGyGVM3RPI3IZs,20793
|
25
25
|
nucliadb_protos/nodewriter_pb2_grpc.pyi,sha256=25rim-HVhyns2hVKvvAa0XCUeckG4t_Glomevz_2X5k,9247
|
26
26
|
nucliadb_protos/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
27
|
-
nucliadb_protos/replication_pb2.py,sha256=CD4omXcplPzfJpEdhNRoufUEdPhVA-JTkLF_ra6bxhk,5175
|
28
|
-
nucliadb_protos/replication_pb2.pyi,sha256=xZxWLi_T2jynvJskx0UTQSR3poNuJbD7c89E0p5sH3A,9378
|
29
|
-
nucliadb_protos/replication_pb2_grpc.py,sha256=64JFEgvnGLleLNiwprqIwV7DRINjPAFJcojS4nwN4LU,6379
|
30
|
-
nucliadb_protos/replication_pb2_grpc.pyi,sha256=lvCVDVdzx84xD113JXcLQgmoeEZPcxTcoBe09El-vks,4073
|
31
27
|
nucliadb_protos/resources_pb2.py,sha256=_N7pabO4W6HwU_nHZ9j7ruLzX92XyBwBs6K9zg0wK-A,36652
|
32
28
|
nucliadb_protos/resources_pb2.pyi,sha256=WUvfTWbTcv4DsPEl7nRga0ic65tGxa-YHqoRpUUY5yw,97345
|
33
29
|
nucliadb_protos/standalone_pb2.py,sha256=1y0x3t9UZai6iPV5KWeUEr7EyDATVk5lF_ihhZwlNwM,2192
|
@@ -35,16 +31,16 @@ nucliadb_protos/standalone_pb2.pyi,sha256=t5qzk1ZPg-98lAqDIsp3aE_8fzMOtI0J2Emex1
|
|
35
31
|
nucliadb_protos/standalone_pb2_grpc.py,sha256=x5sVVBCe6r6r3NUSXm5xyQND98Rnz1Qfplry0crZ7ng,4407
|
36
32
|
nucliadb_protos/standalone_pb2_grpc.pyi,sha256=0gHvBKQW5abeoK64pVfBekpK1o_lMg89gPdd3ar8Rco,2145
|
37
33
|
nucliadb_protos/train_pb2.py,sha256=kYwg4T8_Wg_BNE3u5LK3BD-TJWJGv1xOC9HwrxW3H1k,14163
|
38
|
-
nucliadb_protos/train_pb2.pyi,sha256=
|
34
|
+
nucliadb_protos/train_pb2.pyi,sha256=Mg-nyymzFMkjibYnQL8iBZkDfS1EmmPNVKpIw3oAYbQ,28310
|
39
35
|
nucliadb_protos/train_pb2_grpc.py,sha256=ZQ5TXiGOJ3CMQnlQ0nYMJG-ckVclv6WSMaUbm-tnriE,13970
|
40
|
-
nucliadb_protos/train_pb2_grpc.pyi,sha256=
|
36
|
+
nucliadb_protos/train_pb2_grpc.pyi,sha256=O2fa7MJXT8sTsKqiz0MgiO-j6WwqPAawtVEMO-C4SOs,11980
|
41
37
|
nucliadb_protos/utils_pb2.py,sha256=M5qFp40Xqd-RM35BoPG_0OC45_7ewzOqmENXHvmaIU0,6798
|
42
38
|
nucliadb_protos/utils_pb2.pyi,sha256=_ebOQU711CHIpXRQ9nJ4Z1I410wVVSYmcrgU1Cw1B-o,18970
|
43
|
-
nucliadb_protos/writer_pb2.py,sha256=
|
44
|
-
nucliadb_protos/writer_pb2.pyi,sha256=
|
45
|
-
nucliadb_protos/writer_pb2_grpc.py,sha256=
|
46
|
-
nucliadb_protos/writer_pb2_grpc.pyi,sha256=
|
47
|
-
nucliadb_protos-6.3.5.
|
48
|
-
nucliadb_protos-6.3.5.
|
49
|
-
nucliadb_protos-6.3.5.
|
50
|
-
nucliadb_protos-6.3.5.
|
39
|
+
nucliadb_protos/writer_pb2.py,sha256=934UiC3bpkJyTHHBSbKTEXfsIMlO6MT8y02grrkecd0,29303
|
40
|
+
nucliadb_protos/writer_pb2.pyi,sha256=kz-pEfnlXORugLrm7VwyZazgyc02RjIWOPhurVPdwvw,72926
|
41
|
+
nucliadb_protos/writer_pb2_grpc.py,sha256=scrCTNVP8si33Pd5ra-HHXIM0dA6D4Q58OJW4vDOj_c,29538
|
42
|
+
nucliadb_protos/writer_pb2_grpc.pyi,sha256=P2NUVoSFe8l_PM_lX3aMb-a8ZWoudW2-fc_eX-IA4Fs,18322
|
43
|
+
nucliadb_protos-6.3.5.post4010.dist-info/METADATA,sha256=cGWLSA7ri3CZUFxvx4TtzgnN10KtgHIGnJ5YmbFCCP0,824
|
44
|
+
nucliadb_protos-6.3.5.post4010.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
45
|
+
nucliadb_protos-6.3.5.post4010.dist-info/top_level.txt,sha256=wRP-apvCCaxGnNKXTnYx6tpAPggTof4SZQyoI1b-sjU,16
|
46
|
+
nucliadb_protos-6.3.5.post4010.dist-info/RECORD,,
|
@@ -1,54 +0,0 @@
|
|
1
|
-
# -*- coding: utf-8 -*-
|
2
|
-
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
-
# source: nucliadb_protos/replication.proto
|
4
|
-
# Protobuf Python Version: 4.25.1
|
5
|
-
"""Generated protocol buffer code."""
|
6
|
-
from google.protobuf import descriptor as _descriptor
|
7
|
-
from google.protobuf import descriptor_pool as _descriptor_pool
|
8
|
-
from google.protobuf import symbol_database as _symbol_database
|
9
|
-
from google.protobuf.internal import builder as _builder
|
10
|
-
# @@protoc_insertion_point(imports)
|
11
|
-
|
12
|
-
_sym_db = _symbol_database.Default()
|
13
|
-
|
14
|
-
|
15
|
-
from nucliadb_protos import noderesources_pb2 as nucliadb__protos_dot_noderesources__pb2
|
16
|
-
try:
|
17
|
-
nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_noderesources__pb2.nucliadb__protos_dot_utils__pb2
|
18
|
-
except AttributeError:
|
19
|
-
nucliadb__protos_dot_utils__pb2 = nucliadb__protos_dot_noderesources__pb2.nucliadb_protos.utils_pb2
|
20
|
-
|
21
|
-
from nucliadb_protos.noderesources_pb2 import *
|
22
|
-
|
23
|
-
DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!nucliadb_protos/replication.proto\x12\x0breplication\x1a#nucliadb_protos/noderesources.proto\"\xeb\x01\n\x1cPrimaryShardReplicationState\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x15\n\rgeneration_id\x18\x02 \x01(\t\x12\x0c\n\x04kbid\x18\x03 \x01(\t\x12\x1b\n\nsimilarity\x18\x04 \x01(\tB\x02\x18\x01H\x00\x88\x01\x01\x12\"\n\x11normalize_vectors\x18\x05 \x01(\x08\x42\x02\x18\x01H\x01\x88\x01\x01\x12.\n\x0frelease_channel\x18\x06 \x01(\x0e\x32\x15.utils.ReleaseChannelB\r\n\x0b_similarityB\x14\n\x12_normalize_vectors\"I\n\x1eSecondaryShardReplicationState\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x15\n\rgeneration_id\x18\x02 \x01(\t\"\x80\x01\n%SecondaryCheckReplicationStateRequest\x12\x14\n\x0csecondary_id\x18\x01 \x01(\t\x12\x41\n\x0cshard_states\x18\x02 \x03(\x0b\x32+.replication.SecondaryShardReplicationState\"\x95\x01\n$PrimaryCheckReplicationStateResponse\x12?\n\x0cshard_states\x18\x01 \x03(\x0b\x32).replication.PrimaryShardReplicationState\x12\x18\n\x10shards_to_remove\x18\x02 \x03(\t\x12\x12\n\nprimary_id\x18\x03 \x01(\t\"\x1b\n\nSegmentIds\x12\r\n\x05items\x18\x01 \x03(\t\"\xeb\x01\n\x15ReplicateShardRequest\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12X\n\x14\x65xisting_segment_ids\x18\x02 \x03(\x0b\x32:.replication.ReplicateShardRequest.ExistingSegmentIdsEntry\x12\x12\n\nchunk_size\x18\x03 \x01(\x04\x1aR\n\x17\x45xistingSegmentIdsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.replication.SegmentIds:\x02\x38\x01\"\x89\x01\n\x16ReplicateShardResponse\x12\x15\n\rgeneration_id\x18\x01 \x01(\t\x12\x10\n\x08\x66ilepath\x18\x02 \x01(\t\x12\x0c\n\x04\x64\x61ta\x18\x03 \x01(\x0c\x12\r\n\x05\x63hunk\x18\x04 \x01(\r\x12\x15\n\rread_position\x18\x05 \x01(\x04\x12\x12\n\ntotal_size\x18\x06 \x01(\x04\x32\xbf\x02\n\x12ReplicationService\x12\x80\x01\n\x15\x43heckReplicationState\x12\x32.replication.SecondaryCheckReplicationStateRequest\x1a\x31.replication.PrimaryCheckReplicationStateResponse\"\x00\x12]\n\x0eReplicateShard\x12\".replication.ReplicateShardRequest\x1a#.replication.ReplicateShardResponse\"\x00\x30\x01\x12G\n\x0bGetMetadata\x12\x19.noderesources.EmptyQuery\x1a\x1b.noderesources.NodeMetadata\"\x00P\x00\x62\x06proto3')
|
24
|
-
|
25
|
-
_globals = globals()
|
26
|
-
_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
|
27
|
-
_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.replication_pb2', _globals)
|
28
|
-
if _descriptor._USE_C_DESCRIPTORS == False:
|
29
|
-
DESCRIPTOR._options = None
|
30
|
-
_globals['_PRIMARYSHARDREPLICATIONSTATE'].fields_by_name['similarity']._options = None
|
31
|
-
_globals['_PRIMARYSHARDREPLICATIONSTATE'].fields_by_name['similarity']._serialized_options = b'\030\001'
|
32
|
-
_globals['_PRIMARYSHARDREPLICATIONSTATE'].fields_by_name['normalize_vectors']._options = None
|
33
|
-
_globals['_PRIMARYSHARDREPLICATIONSTATE'].fields_by_name['normalize_vectors']._serialized_options = b'\030\001'
|
34
|
-
_globals['_REPLICATESHARDREQUEST_EXISTINGSEGMENTIDSENTRY']._options = None
|
35
|
-
_globals['_REPLICATESHARDREQUEST_EXISTINGSEGMENTIDSENTRY']._serialized_options = b'8\001'
|
36
|
-
_globals['_PRIMARYSHARDREPLICATIONSTATE']._serialized_start=88
|
37
|
-
_globals['_PRIMARYSHARDREPLICATIONSTATE']._serialized_end=323
|
38
|
-
_globals['_SECONDARYSHARDREPLICATIONSTATE']._serialized_start=325
|
39
|
-
_globals['_SECONDARYSHARDREPLICATIONSTATE']._serialized_end=398
|
40
|
-
_globals['_SECONDARYCHECKREPLICATIONSTATEREQUEST']._serialized_start=401
|
41
|
-
_globals['_SECONDARYCHECKREPLICATIONSTATEREQUEST']._serialized_end=529
|
42
|
-
_globals['_PRIMARYCHECKREPLICATIONSTATERESPONSE']._serialized_start=532
|
43
|
-
_globals['_PRIMARYCHECKREPLICATIONSTATERESPONSE']._serialized_end=681
|
44
|
-
_globals['_SEGMENTIDS']._serialized_start=683
|
45
|
-
_globals['_SEGMENTIDS']._serialized_end=710
|
46
|
-
_globals['_REPLICATESHARDREQUEST']._serialized_start=713
|
47
|
-
_globals['_REPLICATESHARDREQUEST']._serialized_end=948
|
48
|
-
_globals['_REPLICATESHARDREQUEST_EXISTINGSEGMENTIDSENTRY']._serialized_start=866
|
49
|
-
_globals['_REPLICATESHARDREQUEST_EXISTINGSEGMENTIDSENTRY']._serialized_end=948
|
50
|
-
_globals['_REPLICATESHARDRESPONSE']._serialized_start=951
|
51
|
-
_globals['_REPLICATESHARDRESPONSE']._serialized_end=1088
|
52
|
-
_globals['_REPLICATIONSERVICE']._serialized_start=1091
|
53
|
-
_globals['_REPLICATIONSERVICE']._serialized_end=1410
|
54
|
-
# @@protoc_insertion_point(module_scope)
|
@@ -1,230 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
@generated by mypy-protobuf. Do not edit manually!
|
3
|
-
isort:skip_file
|
4
|
-
"""
|
5
|
-
|
6
|
-
import builtins
|
7
|
-
import collections.abc
|
8
|
-
import google.protobuf.descriptor
|
9
|
-
import google.protobuf.internal.containers
|
10
|
-
import google.protobuf.message
|
11
|
-
import nucliadb_protos.utils_pb2
|
12
|
-
import typing
|
13
|
-
from nucliadb_protos.noderesources_pb2 import (
|
14
|
-
EmptyQuery as EmptyQuery,
|
15
|
-
EmptyResponse as EmptyResponse,
|
16
|
-
IndexMetadata as IndexMetadata,
|
17
|
-
IndexParagraph as IndexParagraph,
|
18
|
-
IndexParagraphs as IndexParagraphs,
|
19
|
-
IndexRelation as IndexRelation,
|
20
|
-
IndexRelations as IndexRelations,
|
21
|
-
NodeMetadata as NodeMetadata,
|
22
|
-
ParagraphMetadata as ParagraphMetadata,
|
23
|
-
Position as Position,
|
24
|
-
Representation as Representation,
|
25
|
-
Resource as Resource,
|
26
|
-
ResourceID as ResourceID,
|
27
|
-
SentenceMetadata as SentenceMetadata,
|
28
|
-
Shard as Shard,
|
29
|
-
ShardCreated as ShardCreated,
|
30
|
-
ShardId as ShardId,
|
31
|
-
ShardIds as ShardIds,
|
32
|
-
ShardMetadata as ShardMetadata,
|
33
|
-
StringList as StringList,
|
34
|
-
TextInformation as TextInformation,
|
35
|
-
VectorSentence as VectorSentence,
|
36
|
-
VectorSetID as VectorSetID,
|
37
|
-
VectorSetList as VectorSetList,
|
38
|
-
VectorsetSentences as VectorsetSentences,
|
39
|
-
)
|
40
|
-
|
41
|
-
DESCRIPTOR: google.protobuf.descriptor.FileDescriptor
|
42
|
-
|
43
|
-
@typing.final
|
44
|
-
class PrimaryShardReplicationState(google.protobuf.message.Message):
|
45
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
46
|
-
|
47
|
-
SHARD_ID_FIELD_NUMBER: builtins.int
|
48
|
-
GENERATION_ID_FIELD_NUMBER: builtins.int
|
49
|
-
KBID_FIELD_NUMBER: builtins.int
|
50
|
-
SIMILARITY_FIELD_NUMBER: builtins.int
|
51
|
-
NORMALIZE_VECTORS_FIELD_NUMBER: builtins.int
|
52
|
-
RELEASE_CHANNEL_FIELD_NUMBER: builtins.int
|
53
|
-
shard_id: builtins.str
|
54
|
-
generation_id: builtins.str
|
55
|
-
"""ID to identify the generation of the shard to know
|
56
|
-
if there is a new version of the shard available to download
|
57
|
-
"""
|
58
|
-
kbid: builtins.str
|
59
|
-
similarity: builtins.str
|
60
|
-
normalize_vectors: builtins.bool
|
61
|
-
release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType
|
62
|
-
def __init__(
|
63
|
-
self,
|
64
|
-
*,
|
65
|
-
shard_id: builtins.str = ...,
|
66
|
-
generation_id: builtins.str = ...,
|
67
|
-
kbid: builtins.str = ...,
|
68
|
-
similarity: builtins.str | None = ...,
|
69
|
-
normalize_vectors: builtins.bool | None = ...,
|
70
|
-
release_channel: nucliadb_protos.utils_pb2.ReleaseChannel.ValueType = ...,
|
71
|
-
) -> None: ...
|
72
|
-
def HasField(self, field_name: typing.Literal["_normalize_vectors", b"_normalize_vectors", "_similarity", b"_similarity", "normalize_vectors", b"normalize_vectors", "similarity", b"similarity"]) -> builtins.bool: ...
|
73
|
-
def ClearField(self, field_name: typing.Literal["_normalize_vectors", b"_normalize_vectors", "_similarity", b"_similarity", "generation_id", b"generation_id", "kbid", b"kbid", "normalize_vectors", b"normalize_vectors", "release_channel", b"release_channel", "shard_id", b"shard_id", "similarity", b"similarity"]) -> None: ...
|
74
|
-
@typing.overload
|
75
|
-
def WhichOneof(self, oneof_group: typing.Literal["_normalize_vectors", b"_normalize_vectors"]) -> typing.Literal["normalize_vectors"] | None: ...
|
76
|
-
@typing.overload
|
77
|
-
def WhichOneof(self, oneof_group: typing.Literal["_similarity", b"_similarity"]) -> typing.Literal["similarity"] | None: ...
|
78
|
-
|
79
|
-
global___PrimaryShardReplicationState = PrimaryShardReplicationState
|
80
|
-
|
81
|
-
@typing.final
|
82
|
-
class SecondaryShardReplicationState(google.protobuf.message.Message):
|
83
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
84
|
-
|
85
|
-
SHARD_ID_FIELD_NUMBER: builtins.int
|
86
|
-
GENERATION_ID_FIELD_NUMBER: builtins.int
|
87
|
-
shard_id: builtins.str
|
88
|
-
generation_id: builtins.str
|
89
|
-
"""ID to identify the generation of the shard to know
|
90
|
-
if there is a new version of the shard available to download
|
91
|
-
"""
|
92
|
-
def __init__(
|
93
|
-
self,
|
94
|
-
*,
|
95
|
-
shard_id: builtins.str = ...,
|
96
|
-
generation_id: builtins.str = ...,
|
97
|
-
) -> None: ...
|
98
|
-
def ClearField(self, field_name: typing.Literal["generation_id", b"generation_id", "shard_id", b"shard_id"]) -> None: ...
|
99
|
-
|
100
|
-
global___SecondaryShardReplicationState = SecondaryShardReplicationState
|
101
|
-
|
102
|
-
@typing.final
|
103
|
-
class SecondaryCheckReplicationStateRequest(google.protobuf.message.Message):
|
104
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
105
|
-
|
106
|
-
SECONDARY_ID_FIELD_NUMBER: builtins.int
|
107
|
-
SHARD_STATES_FIELD_NUMBER: builtins.int
|
108
|
-
secondary_id: builtins.str
|
109
|
-
@property
|
110
|
-
def shard_states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___SecondaryShardReplicationState]: ...
|
111
|
-
def __init__(
|
112
|
-
self,
|
113
|
-
*,
|
114
|
-
secondary_id: builtins.str = ...,
|
115
|
-
shard_states: collections.abc.Iterable[global___SecondaryShardReplicationState] | None = ...,
|
116
|
-
) -> None: ...
|
117
|
-
def ClearField(self, field_name: typing.Literal["secondary_id", b"secondary_id", "shard_states", b"shard_states"]) -> None: ...
|
118
|
-
|
119
|
-
global___SecondaryCheckReplicationStateRequest = SecondaryCheckReplicationStateRequest
|
120
|
-
|
121
|
-
@typing.final
|
122
|
-
class PrimaryCheckReplicationStateResponse(google.protobuf.message.Message):
|
123
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
124
|
-
|
125
|
-
SHARD_STATES_FIELD_NUMBER: builtins.int
|
126
|
-
SHARDS_TO_REMOVE_FIELD_NUMBER: builtins.int
|
127
|
-
PRIMARY_ID_FIELD_NUMBER: builtins.int
|
128
|
-
primary_id: builtins.str
|
129
|
-
@property
|
130
|
-
def shard_states(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___PrimaryShardReplicationState]: ...
|
131
|
-
@property
|
132
|
-
def shards_to_remove(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
133
|
-
def __init__(
|
134
|
-
self,
|
135
|
-
*,
|
136
|
-
shard_states: collections.abc.Iterable[global___PrimaryShardReplicationState] | None = ...,
|
137
|
-
shards_to_remove: collections.abc.Iterable[builtins.str] | None = ...,
|
138
|
-
primary_id: builtins.str = ...,
|
139
|
-
) -> None: ...
|
140
|
-
def ClearField(self, field_name: typing.Literal["primary_id", b"primary_id", "shard_states", b"shard_states", "shards_to_remove", b"shards_to_remove"]) -> None: ...
|
141
|
-
|
142
|
-
global___PrimaryCheckReplicationStateResponse = PrimaryCheckReplicationStateResponse
|
143
|
-
|
144
|
-
@typing.final
|
145
|
-
class SegmentIds(google.protobuf.message.Message):
|
146
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
147
|
-
|
148
|
-
ITEMS_FIELD_NUMBER: builtins.int
|
149
|
-
@property
|
150
|
-
def items(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
|
151
|
-
def __init__(
|
152
|
-
self,
|
153
|
-
*,
|
154
|
-
items: collections.abc.Iterable[builtins.str] | None = ...,
|
155
|
-
) -> None: ...
|
156
|
-
def ClearField(self, field_name: typing.Literal["items", b"items"]) -> None: ...
|
157
|
-
|
158
|
-
global___SegmentIds = SegmentIds
|
159
|
-
|
160
|
-
@typing.final
|
161
|
-
class ReplicateShardRequest(google.protobuf.message.Message):
|
162
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
163
|
-
|
164
|
-
@typing.final
|
165
|
-
class ExistingSegmentIdsEntry(google.protobuf.message.Message):
|
166
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
167
|
-
|
168
|
-
KEY_FIELD_NUMBER: builtins.int
|
169
|
-
VALUE_FIELD_NUMBER: builtins.int
|
170
|
-
key: builtins.str
|
171
|
-
@property
|
172
|
-
def value(self) -> global___SegmentIds: ...
|
173
|
-
def __init__(
|
174
|
-
self,
|
175
|
-
*,
|
176
|
-
key: builtins.str = ...,
|
177
|
-
value: global___SegmentIds | None = ...,
|
178
|
-
) -> None: ...
|
179
|
-
def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
|
180
|
-
def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
|
181
|
-
|
182
|
-
SHARD_ID_FIELD_NUMBER: builtins.int
|
183
|
-
EXISTING_SEGMENT_IDS_FIELD_NUMBER: builtins.int
|
184
|
-
CHUNK_SIZE_FIELD_NUMBER: builtins.int
|
185
|
-
shard_id: builtins.str
|
186
|
-
chunk_size: builtins.int
|
187
|
-
@property
|
188
|
-
def existing_segment_ids(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___SegmentIds]:
|
189
|
-
"""list of existing segment ids so we replicate same shards again"""
|
190
|
-
|
191
|
-
def __init__(
|
192
|
-
self,
|
193
|
-
*,
|
194
|
-
shard_id: builtins.str = ...,
|
195
|
-
existing_segment_ids: collections.abc.Mapping[builtins.str, global___SegmentIds] | None = ...,
|
196
|
-
chunk_size: builtins.int = ...,
|
197
|
-
) -> None: ...
|
198
|
-
def ClearField(self, field_name: typing.Literal["chunk_size", b"chunk_size", "existing_segment_ids", b"existing_segment_ids", "shard_id", b"shard_id"]) -> None: ...
|
199
|
-
|
200
|
-
global___ReplicateShardRequest = ReplicateShardRequest
|
201
|
-
|
202
|
-
@typing.final
|
203
|
-
class ReplicateShardResponse(google.protobuf.message.Message):
|
204
|
-
DESCRIPTOR: google.protobuf.descriptor.Descriptor
|
205
|
-
|
206
|
-
GENERATION_ID_FIELD_NUMBER: builtins.int
|
207
|
-
FILEPATH_FIELD_NUMBER: builtins.int
|
208
|
-
DATA_FIELD_NUMBER: builtins.int
|
209
|
-
CHUNK_FIELD_NUMBER: builtins.int
|
210
|
-
READ_POSITION_FIELD_NUMBER: builtins.int
|
211
|
-
TOTAL_SIZE_FIELD_NUMBER: builtins.int
|
212
|
-
generation_id: builtins.str
|
213
|
-
filepath: builtins.str
|
214
|
-
data: builtins.bytes
|
215
|
-
chunk: builtins.int
|
216
|
-
read_position: builtins.int
|
217
|
-
total_size: builtins.int
|
218
|
-
def __init__(
|
219
|
-
self,
|
220
|
-
*,
|
221
|
-
generation_id: builtins.str = ...,
|
222
|
-
filepath: builtins.str = ...,
|
223
|
-
data: builtins.bytes = ...,
|
224
|
-
chunk: builtins.int = ...,
|
225
|
-
read_position: builtins.int = ...,
|
226
|
-
total_size: builtins.int = ...,
|
227
|
-
) -> None: ...
|
228
|
-
def ClearField(self, field_name: typing.Literal["chunk", b"chunk", "data", b"data", "filepath", b"filepath", "generation_id", b"generation_id", "read_position", b"read_position", "total_size", b"total_size"]) -> None: ...
|
229
|
-
|
230
|
-
global___ReplicateShardResponse = ReplicateShardResponse
|
@@ -1,134 +0,0 @@
|
|
1
|
-
# Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
|
2
|
-
"""Client and server classes corresponding to protobuf-defined services."""
|
3
|
-
import grpc
|
4
|
-
|
5
|
-
from nucliadb_protos import noderesources_pb2 as nucliadb__protos_dot_noderesources__pb2
|
6
|
-
from nucliadb_protos import replication_pb2 as nucliadb__protos_dot_replication__pb2
|
7
|
-
|
8
|
-
|
9
|
-
class ReplicationServiceStub(object):
|
10
|
-
"""Missing associated documentation comment in .proto file."""
|
11
|
-
|
12
|
-
def __init__(self, channel):
|
13
|
-
"""Constructor.
|
14
|
-
|
15
|
-
Args:
|
16
|
-
channel: A grpc.Channel.
|
17
|
-
"""
|
18
|
-
self.CheckReplicationState = channel.unary_unary(
|
19
|
-
'/replication.ReplicationService/CheckReplicationState',
|
20
|
-
request_serializer=nucliadb__protos_dot_replication__pb2.SecondaryCheckReplicationStateRequest.SerializeToString,
|
21
|
-
response_deserializer=nucliadb__protos_dot_replication__pb2.PrimaryCheckReplicationStateResponse.FromString,
|
22
|
-
)
|
23
|
-
self.ReplicateShard = channel.unary_stream(
|
24
|
-
'/replication.ReplicationService/ReplicateShard',
|
25
|
-
request_serializer=nucliadb__protos_dot_replication__pb2.ReplicateShardRequest.SerializeToString,
|
26
|
-
response_deserializer=nucliadb__protos_dot_replication__pb2.ReplicateShardResponse.FromString,
|
27
|
-
)
|
28
|
-
self.GetMetadata = channel.unary_unary(
|
29
|
-
'/replication.ReplicationService/GetMetadata',
|
30
|
-
request_serializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
31
|
-
response_deserializer=nucliadb__protos_dot_noderesources__pb2.NodeMetadata.FromString,
|
32
|
-
)
|
33
|
-
|
34
|
-
|
35
|
-
class ReplicationServiceServicer(object):
|
36
|
-
"""Missing associated documentation comment in .proto file."""
|
37
|
-
|
38
|
-
def CheckReplicationState(self, request, context):
|
39
|
-
"""Shard replication RPCs
|
40
|
-
"""
|
41
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
42
|
-
context.set_details('Method not implemented!')
|
43
|
-
raise NotImplementedError('Method not implemented!')
|
44
|
-
|
45
|
-
def ReplicateShard(self, request, context):
|
46
|
-
"""Missing associated documentation comment in .proto file."""
|
47
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
48
|
-
context.set_details('Method not implemented!')
|
49
|
-
raise NotImplementedError('Method not implemented!')
|
50
|
-
|
51
|
-
def GetMetadata(self, request, context):
|
52
|
-
"""Missing associated documentation comment in .proto file."""
|
53
|
-
context.set_code(grpc.StatusCode.UNIMPLEMENTED)
|
54
|
-
context.set_details('Method not implemented!')
|
55
|
-
raise NotImplementedError('Method not implemented!')
|
56
|
-
|
57
|
-
|
58
|
-
def add_ReplicationServiceServicer_to_server(servicer, server):
|
59
|
-
rpc_method_handlers = {
|
60
|
-
'CheckReplicationState': grpc.unary_unary_rpc_method_handler(
|
61
|
-
servicer.CheckReplicationState,
|
62
|
-
request_deserializer=nucliadb__protos_dot_replication__pb2.SecondaryCheckReplicationStateRequest.FromString,
|
63
|
-
response_serializer=nucliadb__protos_dot_replication__pb2.PrimaryCheckReplicationStateResponse.SerializeToString,
|
64
|
-
),
|
65
|
-
'ReplicateShard': grpc.unary_stream_rpc_method_handler(
|
66
|
-
servicer.ReplicateShard,
|
67
|
-
request_deserializer=nucliadb__protos_dot_replication__pb2.ReplicateShardRequest.FromString,
|
68
|
-
response_serializer=nucliadb__protos_dot_replication__pb2.ReplicateShardResponse.SerializeToString,
|
69
|
-
),
|
70
|
-
'GetMetadata': grpc.unary_unary_rpc_method_handler(
|
71
|
-
servicer.GetMetadata,
|
72
|
-
request_deserializer=nucliadb__protos_dot_noderesources__pb2.EmptyQuery.FromString,
|
73
|
-
response_serializer=nucliadb__protos_dot_noderesources__pb2.NodeMetadata.SerializeToString,
|
74
|
-
),
|
75
|
-
}
|
76
|
-
generic_handler = grpc.method_handlers_generic_handler(
|
77
|
-
'replication.ReplicationService', rpc_method_handlers)
|
78
|
-
server.add_generic_rpc_handlers((generic_handler,))
|
79
|
-
|
80
|
-
|
81
|
-
# This class is part of an EXPERIMENTAL API.
|
82
|
-
class ReplicationService(object):
|
83
|
-
"""Missing associated documentation comment in .proto file."""
|
84
|
-
|
85
|
-
@staticmethod
|
86
|
-
def CheckReplicationState(request,
|
87
|
-
target,
|
88
|
-
options=(),
|
89
|
-
channel_credentials=None,
|
90
|
-
call_credentials=None,
|
91
|
-
insecure=False,
|
92
|
-
compression=None,
|
93
|
-
wait_for_ready=None,
|
94
|
-
timeout=None,
|
95
|
-
metadata=None):
|
96
|
-
return grpc.experimental.unary_unary(request, target, '/replication.ReplicationService/CheckReplicationState',
|
97
|
-
nucliadb__protos_dot_replication__pb2.SecondaryCheckReplicationStateRequest.SerializeToString,
|
98
|
-
nucliadb__protos_dot_replication__pb2.PrimaryCheckReplicationStateResponse.FromString,
|
99
|
-
options, channel_credentials,
|
100
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
101
|
-
|
102
|
-
@staticmethod
|
103
|
-
def ReplicateShard(request,
|
104
|
-
target,
|
105
|
-
options=(),
|
106
|
-
channel_credentials=None,
|
107
|
-
call_credentials=None,
|
108
|
-
insecure=False,
|
109
|
-
compression=None,
|
110
|
-
wait_for_ready=None,
|
111
|
-
timeout=None,
|
112
|
-
metadata=None):
|
113
|
-
return grpc.experimental.unary_stream(request, target, '/replication.ReplicationService/ReplicateShard',
|
114
|
-
nucliadb__protos_dot_replication__pb2.ReplicateShardRequest.SerializeToString,
|
115
|
-
nucliadb__protos_dot_replication__pb2.ReplicateShardResponse.FromString,
|
116
|
-
options, channel_credentials,
|
117
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
118
|
-
|
119
|
-
@staticmethod
|
120
|
-
def GetMetadata(request,
|
121
|
-
target,
|
122
|
-
options=(),
|
123
|
-
channel_credentials=None,
|
124
|
-
call_credentials=None,
|
125
|
-
insecure=False,
|
126
|
-
compression=None,
|
127
|
-
wait_for_ready=None,
|
128
|
-
timeout=None,
|
129
|
-
metadata=None):
|
130
|
-
return grpc.experimental.unary_unary(request, target, '/replication.ReplicationService/GetMetadata',
|
131
|
-
nucliadb__protos_dot_noderesources__pb2.EmptyQuery.SerializeToString,
|
132
|
-
nucliadb__protos_dot_noderesources__pb2.NodeMetadata.FromString,
|
133
|
-
options, channel_credentials,
|
134
|
-
insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
|
@@ -1,106 +0,0 @@
|
|
1
|
-
"""
|
2
|
-
@generated by mypy-protobuf. Do not edit manually!
|
3
|
-
isort:skip_file
|
4
|
-
"""
|
5
|
-
|
6
|
-
import abc
|
7
|
-
import collections.abc
|
8
|
-
import grpc
|
9
|
-
import grpc.aio
|
10
|
-
import nucliadb_protos.noderesources_pb2
|
11
|
-
import nucliadb_protos.replication_pb2
|
12
|
-
import typing
|
13
|
-
from nucliadb_protos.noderesources_pb2 import (
|
14
|
-
EmptyQuery as EmptyQuery,
|
15
|
-
EmptyResponse as EmptyResponse,
|
16
|
-
IndexMetadata as IndexMetadata,
|
17
|
-
IndexParagraph as IndexParagraph,
|
18
|
-
IndexParagraphs as IndexParagraphs,
|
19
|
-
IndexRelation as IndexRelation,
|
20
|
-
IndexRelations as IndexRelations,
|
21
|
-
NodeMetadata as NodeMetadata,
|
22
|
-
ParagraphMetadata as ParagraphMetadata,
|
23
|
-
Position as Position,
|
24
|
-
Representation as Representation,
|
25
|
-
Resource as Resource,
|
26
|
-
ResourceID as ResourceID,
|
27
|
-
SentenceMetadata as SentenceMetadata,
|
28
|
-
Shard as Shard,
|
29
|
-
ShardCreated as ShardCreated,
|
30
|
-
ShardId as ShardId,
|
31
|
-
ShardIds as ShardIds,
|
32
|
-
ShardMetadata as ShardMetadata,
|
33
|
-
StringList as StringList,
|
34
|
-
TextInformation as TextInformation,
|
35
|
-
VectorSentence as VectorSentence,
|
36
|
-
VectorSetID as VectorSetID,
|
37
|
-
VectorSetList as VectorSetList,
|
38
|
-
VectorsetSentences as VectorsetSentences,
|
39
|
-
)
|
40
|
-
|
41
|
-
_T = typing.TypeVar("_T")
|
42
|
-
|
43
|
-
class _MaybeAsyncIterator(collections.abc.AsyncIterator[_T], collections.abc.Iterator[_T], metaclass=abc.ABCMeta): ...
|
44
|
-
|
45
|
-
class _ServicerContext(grpc.ServicerContext, grpc.aio.ServicerContext): # type: ignore[misc, type-arg]
|
46
|
-
...
|
47
|
-
|
48
|
-
class ReplicationServiceStub:
|
49
|
-
def __init__(self, channel: typing.Union[grpc.Channel, grpc.aio.Channel]) -> None: ...
|
50
|
-
CheckReplicationState: grpc.UnaryUnaryMultiCallable[
|
51
|
-
nucliadb_protos.replication_pb2.SecondaryCheckReplicationStateRequest,
|
52
|
-
nucliadb_protos.replication_pb2.PrimaryCheckReplicationStateResponse,
|
53
|
-
]
|
54
|
-
"""Shard replication RPCs"""
|
55
|
-
|
56
|
-
ReplicateShard: grpc.UnaryStreamMultiCallable[
|
57
|
-
nucliadb_protos.replication_pb2.ReplicateShardRequest,
|
58
|
-
nucliadb_protos.replication_pb2.ReplicateShardResponse,
|
59
|
-
]
|
60
|
-
|
61
|
-
GetMetadata: grpc.UnaryUnaryMultiCallable[
|
62
|
-
nucliadb_protos.noderesources_pb2.EmptyQuery,
|
63
|
-
nucliadb_protos.noderesources_pb2.NodeMetadata,
|
64
|
-
]
|
65
|
-
|
66
|
-
class ReplicationServiceAsyncStub:
|
67
|
-
CheckReplicationState: grpc.aio.UnaryUnaryMultiCallable[
|
68
|
-
nucliadb_protos.replication_pb2.SecondaryCheckReplicationStateRequest,
|
69
|
-
nucliadb_protos.replication_pb2.PrimaryCheckReplicationStateResponse,
|
70
|
-
]
|
71
|
-
"""Shard replication RPCs"""
|
72
|
-
|
73
|
-
ReplicateShard: grpc.aio.UnaryStreamMultiCallable[
|
74
|
-
nucliadb_protos.replication_pb2.ReplicateShardRequest,
|
75
|
-
nucliadb_protos.replication_pb2.ReplicateShardResponse,
|
76
|
-
]
|
77
|
-
|
78
|
-
GetMetadata: grpc.aio.UnaryUnaryMultiCallable[
|
79
|
-
nucliadb_protos.noderesources_pb2.EmptyQuery,
|
80
|
-
nucliadb_protos.noderesources_pb2.NodeMetadata,
|
81
|
-
]
|
82
|
-
|
83
|
-
class ReplicationServiceServicer(metaclass=abc.ABCMeta):
|
84
|
-
@abc.abstractmethod
|
85
|
-
def CheckReplicationState(
|
86
|
-
self,
|
87
|
-
request: nucliadb_protos.replication_pb2.SecondaryCheckReplicationStateRequest,
|
88
|
-
context: _ServicerContext,
|
89
|
-
) -> typing.Union[nucliadb_protos.replication_pb2.PrimaryCheckReplicationStateResponse, collections.abc.Awaitable[nucliadb_protos.replication_pb2.PrimaryCheckReplicationStateResponse]]:
|
90
|
-
"""Shard replication RPCs"""
|
91
|
-
|
92
|
-
@abc.abstractmethod
|
93
|
-
def ReplicateShard(
|
94
|
-
self,
|
95
|
-
request: nucliadb_protos.replication_pb2.ReplicateShardRequest,
|
96
|
-
context: _ServicerContext,
|
97
|
-
) -> typing.Union[collections.abc.Iterator[nucliadb_protos.replication_pb2.ReplicateShardResponse], collections.abc.AsyncIterator[nucliadb_protos.replication_pb2.ReplicateShardResponse]]: ...
|
98
|
-
|
99
|
-
@abc.abstractmethod
|
100
|
-
def GetMetadata(
|
101
|
-
self,
|
102
|
-
request: nucliadb_protos.noderesources_pb2.EmptyQuery,
|
103
|
-
context: _ServicerContext,
|
104
|
-
) -> typing.Union[nucliadb_protos.noderesources_pb2.NodeMetadata, collections.abc.Awaitable[nucliadb_protos.noderesources_pb2.NodeMetadata]]: ...
|
105
|
-
|
106
|
-
def add_ReplicationServiceServicer_to_server(servicer: ReplicationServiceServicer, server: typing.Union[grpc.Server, grpc.aio.Server]) -> None: ...
|
File without changes
|
{nucliadb_protos-6.3.5.post3997.dist-info → nucliadb_protos-6.3.5.post4010.dist-info}/top_level.txt
RENAMED
File without changes
|