nucliadb-protos 6.3.4.post3686__py3-none-any.whl → 6.3.4.post3698__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.

@@ -23,7 +23,7 @@ from nucliadb_protos import utils_pb2 as nucliadb__protos_dot_utils__pb2
23
23
  from nucliadb_protos.noderesources_pb2 import *
24
24
  from nucliadb_protos.utils_pb2 import *
25
25
 
26
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n nucliadb_protos/nodereader.proto\x12\nnodereader\x1a#nucliadb_protos/noderesources.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bnucliadb_protos/utils.proto\"\x82\x01\n\x0cStreamFilter\x12\x39\n\x0b\x63onjunction\x18\x01 \x01(\x0e\x32$.nodereader.StreamFilter.Conjunction\x12\x0e\n\x06labels\x18\x02 \x03(\t\"\'\n\x0b\x43onjunction\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\x12\x07\n\x03NOT\x10\x02\"\x19\n\x07\x46\x61\x63\x65ted\x12\x0e\n\x06labels\x18\x01 \x03(\t\"\xc3\x01\n\x07OrderBy\x12\x11\n\x05\x66ield\x18\x01 \x01(\tB\x02\x18\x01\x12+\n\x04type\x18\x02 \x01(\x0e\x32\x1d.nodereader.OrderBy.OrderType\x12/\n\x07sort_by\x18\x03 \x01(\x0e\x32\x1e.nodereader.OrderBy.OrderField\"\x1e\n\tOrderType\x12\x08\n\x04\x44\x45SC\x10\x00\x12\x07\n\x03\x41SC\x10\x01\"\'\n\nOrderField\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\")\n\x0b\x46\x61\x63\x65tResult\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\r\n\x05total\x18\x02 \x01(\x05\"=\n\x0c\x46\x61\x63\x65tResults\x12-\n\x0c\x66\x61\x63\x65tresults\x18\x01 \x03(\x0b\x32\x17.nodereader.FacetResult\",\n\x0bResultScore\x12\x0c\n\x04\x62m25\x18\x01 \x01(\x02\x12\x0f\n\x07\x62ooster\x18\x02 \x01(\x02\"e\n\x0e\x44ocumentResult\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12&\n\x05score\x18\x03 \x01(\x0b\x32\x17.nodereader.ResultScore\x12\r\n\x05\x66ield\x18\x04 \x01(\t\x12\x0e\n\x06labels\x18\x05 \x03(\t\"\xbb\x02\n\x16\x44ocumentSearchResponse\x12\r\n\x05total\x18\x01 \x01(\x05\x12+\n\x07results\x18\x02 \x03(\x0b\x32\x1a.nodereader.DocumentResult\x12>\n\x06\x66\x61\x63\x65ts\x18\x03 \x03(\x0b\x32..nodereader.DocumentSearchResponse.FacetsEntry\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\x12\r\n\x05query\x18\x06 \x01(\t\x12\x11\n\tnext_page\x18\x07 \x01(\x08\x12\x0c\n\x04\x62m25\x18\x08 \x01(\x08\x1aG\n\x0b\x46\x61\x63\x65tsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.nodereader.FacetResults:\x02\x38\x01\"\xf8\x01\n\x0fParagraphResult\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\r\n\x05\x66ield\x18\x03 \x01(\t\x12\r\n\x05start\x18\x04 \x01(\x04\x12\x0b\n\x03\x65nd\x18\x05 \x01(\x04\x12\x11\n\tparagraph\x18\x06 \x01(\t\x12\r\n\x05split\x18\x07 \x01(\t\x12\r\n\x05index\x18\x08 \x01(\x04\x12&\n\x05score\x18\t \x01(\x0b\x32\x17.nodereader.ResultScore\x12\x0f\n\x07matches\x18\n \x03(\t\x12\x32\n\x08metadata\x18\x0b \x01(\x0b\x32 .noderesources.ParagraphMetadata\x12\x0e\n\x06labels\x18\x0c \x03(\t\"\xe8\x02\n\x17ParagraphSearchResponse\x12\x16\n\x0e\x66uzzy_distance\x18\n \x01(\x05\x12\r\n\x05total\x18\x01 \x01(\x05\x12,\n\x07results\x18\x02 \x03(\x0b\x32\x1b.nodereader.ParagraphResult\x12?\n\x06\x66\x61\x63\x65ts\x18\x03 \x03(\x0b\x32/.nodereader.ParagraphSearchResponse.FacetsEntry\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\x12\r\n\x05query\x18\x06 \x01(\t\x12\x11\n\tnext_page\x18\x07 \x01(\x08\x12\x0c\n\x04\x62m25\x18\x08 \x01(\x08\x12\x10\n\x08\x65matches\x18\t \x03(\t\x1aG\n\x0b\x46\x61\x63\x65tsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.nodereader.FacetResults:\x02\x38\x01\"&\n\x18\x44ocumentVectorIdentifier\x12\n\n\x02id\x18\x01 \x01(\t\"\x98\x01\n\x0e\x44ocumentScored\x12\x34\n\x06\x64oc_id\x18\x01 \x01(\x0b\x32$.nodereader.DocumentVectorIdentifier\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x31\n\x08metadata\x18\x03 \x01(\x0b\x32\x1f.noderesources.SentenceMetadata\x12\x0e\n\x06labels\x18\x04 \x03(\t\"s\n\x14VectorSearchResponse\x12-\n\tdocuments\x18\x01 \x03(\x0b\x32\x1a.nodereader.DocumentScored\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\"q\n\x12RelationNodeFilter\x12/\n\tnode_type\x18\x01 \x01(\x0e\x32\x1c.utils.RelationNode.NodeType\x12\x19\n\x0cnode_subtype\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_node_subtype\"\x95\x01\n\x12RelationEdgeFilter\x12\x33\n\rrelation_type\x18\x01 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\x1d\n\x10relation_subtype\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0erelation_value\x18\x03 \x03(\tB\x13\n\x11_relation_subtype\"\x80\x01\n\x1bRelationPrefixSearchRequest\x12\x10\n\x06prefix\x18\x01 \x01(\tH\x00\x12\x0f\n\x05query\x18\x03 \x01(\tH\x00\x12\x34\n\x0cnode_filters\x18\x02 \x03(\x0b\x32\x1e.nodereader.RelationNodeFilterB\x08\n\x06search\"B\n\x1cRelationPrefixSearchResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.utils.RelationNode\"\x87\x02\n\x17\x45ntitiesSubgraphRequest\x12)\n\x0c\x65ntry_points\x18\x01 \x03(\x0b\x32\x13.utils.RelationNode\x12\x12\n\x05\x64\x65pth\x18\x03 \x01(\x05H\x00\x88\x01\x01\x12M\n\x10\x64\x65leted_entities\x18\x04 \x03(\x0b\x32\x33.nodereader.EntitiesSubgraphRequest.DeletedEntities\x12\x16\n\x0e\x64\x65leted_groups\x18\x05 \x03(\t\x1a<\n\x0f\x44\x65letedEntities\x12\x14\n\x0cnode_subtype\x18\x01 \x01(\t\x12\x13\n\x0bnode_values\x18\x02 \x03(\tB\x08\n\x06_depth\">\n\x18\x45ntitiesSubgraphResponse\x12\"\n\trelations\x18\x01 \x03(\x0b\x32\x0f.utils.Relation\"\xb3\x07\n\nGraphQuery\x12.\n\x04path\x18\x01 \x01(\x0b\x32 .nodereader.GraphQuery.PathQuery\x1a\xf2\x01\n\x04Node\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x34\n\tnode_type\x18\x02 \x01(\x0e\x32\x1c.utils.RelationNode.NodeTypeH\x01\x88\x01\x01\x12\x19\n\x0cnode_subtype\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x39\n\nmatch_kind\x18\x04 \x01(\x0e\x32%.nodereader.GraphQuery.Node.MatchKind\"!\n\tMatchKind\x12\t\n\x05\x45XACT\x10\x00\x12\t\n\x05\x46UZZY\x10\x01\x42\x08\n\x06_valueB\x0c\n\n_node_typeB\x0f\n\r_node_subtype\x1at\n\x08Relation\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x38\n\rrelation_type\x18\x02 \x01(\x0e\x32\x1c.utils.Relation.RelationTypeH\x01\x88\x01\x01\x42\x08\n\x06_valueB\x10\n\x0e_relation_type\x1a\xe3\x01\n\x04Path\x12\x30\n\x06source\x18\x01 \x01(\x0b\x32\x1b.nodereader.GraphQuery.NodeH\x00\x88\x01\x01\x12\x36\n\x08relation\x18\x02 \x01(\x0b\x32\x1f.nodereader.GraphQuery.RelationH\x01\x88\x01\x01\x12\x35\n\x0b\x64\x65stination\x18\x03 \x01(\x0b\x32\x1b.nodereader.GraphQuery.NodeH\x02\x88\x01\x01\x12\x12\n\nundirected\x18\x04 \x01(\x08\x42\t\n\x07_sourceB\x0b\n\t_relationB\x0e\n\x0c_destination\x1a?\n\tBoolQuery\x12\x32\n\x08operands\x18\x01 \x03(\x0b\x32 .nodereader.GraphQuery.PathQuery\x1a\xe2\x01\n\tPathQuery\x12+\n\x04path\x18\x01 \x01(\x0b\x32\x1b.nodereader.GraphQuery.PathH\x00\x12\x34\n\x08\x62ool_not\x18\x02 \x01(\x0b\x32 .nodereader.GraphQuery.PathQueryH\x00\x12\x34\n\x08\x62ool_and\x18\x03 \x01(\x0b\x32 .nodereader.GraphQuery.BoolQueryH\x00\x12\x33\n\x07\x62ool_or\x18\x04 \x01(\x0b\x32 .nodereader.GraphQuery.BoolQueryH\x00\x42\x07\n\x05query\"\xc2\x01\n\x12GraphSearchRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12%\n\x05query\x18\x02 \x01(\x0b\x32\x16.nodereader.GraphQuery\x12\x36\n\x04kind\x18\x03 \x01(\x0e\x32(.nodereader.GraphSearchRequest.QueryKind\x12\r\n\x05top_k\x18\x04 \x01(\r\"/\n\tQueryKind\x12\x08\n\x04PATH\x10\x00\x12\t\n\x05NODES\x10\x01\x12\r\n\tRELATIONS\x10\x02\"\xe5\x02\n\x13GraphSearchResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.utils.RelationNode\x12;\n\trelations\x18\x02 \x03(\x0b\x32(.nodereader.GraphSearchResponse.Relation\x12\x33\n\x05graph\x18\x03 \x03(\x0b\x32$.nodereader.GraphSearchResponse.Path\x1ay\n\x08Relation\x12\x33\n\rrelation_type\x18\x01 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\r\n\x05label\x18\x02 \x01(\t\x12)\n\x08metadata\x18\x03 \x01(\x0b\x32\x17.utils.RelationMetadata\x1a=\n\x04Path\x12\x0e\n\x06source\x18\x01 \x01(\r\x12\x10\n\x08relation\x18\x02 \x01(\r\x12\x13\n\x0b\x64\x65stination\x18\x03 \x01(\r\"\x99\x01\n\x15RelationSearchRequest\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x37\n\x06prefix\x18\x0b \x01(\x0b\x32\'.nodereader.RelationPrefixSearchRequest\x12\x35\n\x08subgraph\x18\x0c \x01(\x0b\x32#.nodereader.EntitiesSubgraphRequest\"\x8a\x01\n\x16RelationSearchResponse\x12\x38\n\x06prefix\x18\x0b \x01(\x0b\x32(.nodereader.RelationPrefixSearchResponse\x12\x36\n\x08subgraph\x18\x0c \x01(\x0b\x32$.nodereader.EntitiesSubgraphResponse\"\xfa\x07\n\x10\x46ilterExpression\x12\x45\n\x08\x62ool_and\x18\x01 \x01(\x0b\x32\x31.nodereader.FilterExpression.FilterExpressionListH\x00\x12\x44\n\x07\x62ool_or\x18\x02 \x01(\x0b\x32\x31.nodereader.FilterExpression.FilterExpressionListH\x00\x12\x30\n\x08\x62ool_not\x18\x03 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x00\x12?\n\x08resource\x18\x04 \x01(\x0b\x32+.nodereader.FilterExpression.ResourceFilterH\x00\x12\x39\n\x05\x66ield\x18\x05 \x01(\x0b\x32(.nodereader.FilterExpression.FieldFilterH\x00\x12=\n\x07keyword\x18\x06 \x01(\x0b\x32*.nodereader.FilterExpression.KeywordFilterH\x00\x12<\n\x04\x64\x61te\x18\x07 \x01(\x0b\x32,.nodereader.FilterExpression.DateRangeFilterH\x00\x12\x39\n\x05\x66\x61\x63\x65t\x18\x08 \x01(\x0b\x32(.nodereader.FilterExpression.FacetFilterH\x00\x1a\x46\n\x14\x46ilterExpressionList\x12.\n\x08operands\x18\x01 \x03(\x0b\x32\x1c.nodereader.FilterExpression\x1a%\n\x0eResourceFilter\x12\x13\n\x0bresource_id\x18\x01 \x01(\t\x1a\x45\n\x0b\x46ieldFilter\x12\x12\n\nfield_type\x18\x01 \x01(\t\x12\x15\n\x08\x66ield_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_field_id\x1a\xf4\x01\n\x0f\x44\x61teRangeFilter\x12\x45\n\x05\x66ield\x18\x01 \x01(\x0e\x32\x36.nodereader.FilterExpression.DateRangeFilter.DateField\x12.\n\x05since\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x88\x01\x01\x12.\n\x05until\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x88\x01\x01\"&\n\tDateField\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x42\x08\n\x06_sinceB\x08\n\x06_until\x1a \n\rKeywordFilter\x12\x0f\n\x07keyword\x18\x01 \x01(\t\x1a\x1c\n\x0b\x46\x61\x63\x65tFilter\x12\r\n\x05\x66\x61\x63\x65t\x18\x01 \x01(\tB\x06\n\x04\x65xpr\"\x87\x06\n\rSearchRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\t\x12\"\n\x05order\x18\x05 \x01(\x0b\x32\x13.nodereader.OrderBy\x12$\n\x07\x66\x61\x63\x65ted\x18\x06 \x01(\x0b\x32\x13.nodereader.Faceted\x12\x13\n\x0bpage_number\x18\x07 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x08 \x01(\x05\x12\x0e\n\x06vector\x18\n \x03(\x02\x12\x11\n\tvectorset\x18\x0f \x01(\t\x12\x11\n\tparagraph\x18\x0c \x01(\x08\x12\x10\n\x08\x64ocument\x18\r \x01(\x08\x12\x17\n\x0fwith_duplicates\x18\x0e \x01(\x08\x12\x14\n\x0conly_faceted\x18\x10 \x01(\x08\x12\x1b\n\x0e\x61\x64vanced_query\x18\x12 \x01(\tH\x00\x88\x01\x01\x12@\n\x0frelation_prefix\x18\x14 \x01(\x0b\x32\'.nodereader.RelationPrefixSearchRequest\x12>\n\x11relation_subgraph\x18\x15 \x01(\x0b\x32#.nodereader.EntitiesSubgraphRequest\x12\x1a\n\x12min_score_semantic\x18\x17 \x01(\x02\x12\x16\n\x0emin_score_bm25\x18\x19 \x01(\x02\x12&\n\x08security\x18\x18 \x01(\x0b\x32\x0f.utils.SecurityH\x01\x88\x01\x01\x12\x37\n\x0c\x66ield_filter\x18\x1a \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x02\x88\x01\x01\x12;\n\x10paragraph_filter\x18\x1b \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x03\x88\x01\x01\x12\x33\n\x0f\x66ilter_operator\x18\x1c \x01(\x0e\x32\x1a.nodereader.FilterOperatorB\x11\n\x0f_advanced_queryB\x0b\n\t_securityB\x0f\n\r_field_filterB\x13\n\x11_paragraph_filter\"\xad\x02\n\x0eSuggestRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x02 \x01(\t\x12-\n\x08\x66\x65\x61tures\x18\x06 \x03(\x0e\x32\x1b.nodereader.SuggestFeatures\x12\x37\n\x0c\x66ield_filter\x18\x07 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x00\x88\x01\x01\x12;\n\x10paragraph_filter\x18\x08 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x01\x88\x01\x01\x12\x33\n\x0f\x66ilter_operator\x18\t \x01(\x0e\x32\x1a.nodereader.FilterOperatorB\x0f\n\r_field_filterB\x13\n\x11_paragraph_filter\"2\n\x0fRelatedEntities\x12\x10\n\x08\x65ntities\x18\x01 \x03(\t\x12\r\n\x05total\x18\x02 \x01(\r\"\xb1\x01\n\x0fSuggestResponse\x12\r\n\x05total\x18\x01 \x01(\x05\x12,\n\x07results\x18\x02 \x03(\x0b\x32\x1b.nodereader.ParagraphResult\x12\r\n\x05query\x18\x03 \x01(\t\x12\x10\n\x08\x65matches\x18\x04 \x03(\t\x12@\n\x0e\x65ntity_results\x18\x06 \x01(\x0b\x32(.nodereader.RelationPrefixSearchResponse\"\xe6\x01\n\x0eSearchResponse\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".nodereader.DocumentSearchResponse\x12\x36\n\tparagraph\x18\x02 \x01(\x0b\x32#.nodereader.ParagraphSearchResponse\x12\x30\n\x06vector\x18\x03 \x01(\x0b\x32 .nodereader.VectorSearchResponse\x12\x34\n\x08relation\x18\x04 \x01(\x0b\x32\".nodereader.RelationSearchResponse\"\x1b\n\x0cIdCollection\x12\x0b\n\x03ids\x18\x01 \x03(\t\"Q\n\x0cRelationEdge\x12/\n\tedge_type\x18\x01 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\x10\n\x08property\x18\x02 \x01(\t\"2\n\x08\x45\x64geList\x12&\n\x04list\x18\x01 \x03(\x0b\x32\x18.nodereader.RelationEdge\"N\n\x0fGetShardRequest\x12(\n\x08shard_id\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x11\n\tvectorset\x18\x02 \x01(\t\"+\n\rParagraphItem\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06labels\x18\x02 \x03(\t\";\n\x0c\x44ocumentItem\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\r\n\x05\x66ield\x18\x02 \x01(\t\x12\x0e\n\x06labels\x18\x03 \x03(\t\"c\n\rStreamRequest\x12(\n\x08shard_id\x18\x03 \x01(\x0b\x32\x16.noderesources.ShardId\x12(\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x18.nodereader.StreamFilter\"(\n\x14GetShardFilesRequest\x12\x10\n\x08shard_id\x18\x01 \x01(\t\"5\n\rShardFileList\x12$\n\x05\x66iles\x18\x02 \x03(\x0b\x32\x15.nodereader.ShardFile\"0\n\tShardFile\x12\x15\n\rrelative_path\x18\x01 \x01(\t\x12\x0c\n\x04size\x18\x02 \x01(\x04\"C\n\x18\x44ownloadShardFileRequest\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x15\n\rrelative_path\x18\x02 \x01(\t\"-\n\x0eShardFileChunk\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\x05*!\n\x0e\x46ilterOperator\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01*/\n\x0fSuggestFeatures\x12\x0c\n\x08\x45NTITIES\x10\x00\x12\x0e\n\nPARAGRAPHS\x10\x01\x32\xdf\x06\n\nNodeReader\x12?\n\x08GetShard\x12\x1b.nodereader.GetShardRequest\x1a\x14.noderesources.Shard\"\x00\x12\x41\n\x0b\x44ocumentIds\x12\x16.noderesources.ShardId\x1a\x18.nodereader.IdCollection\"\x00\x12\x42\n\x0cParagraphIds\x12\x16.noderesources.ShardId\x1a\x18.nodereader.IdCollection\"\x00\x12\x43\n\tVectorIds\x12\x1a.noderesources.VectorSetID\x1a\x18.nodereader.IdCollection\"\x00\x12\x41\n\x0bRelationIds\x12\x16.noderesources.ShardId\x1a\x18.nodereader.IdCollection\"\x00\x12?\n\rRelationEdges\x12\x16.noderesources.ShardId\x1a\x14.nodereader.EdgeList\"\x00\x12\x41\n\x06Search\x12\x19.nodereader.SearchRequest\x1a\x1a.nodereader.SearchResponse\"\x00\x12\x44\n\x07Suggest\x12\x1a.nodereader.SuggestRequest\x1a\x1b.nodereader.SuggestResponse\"\x00\x12\x46\n\nParagraphs\x12\x19.nodereader.StreamRequest\x1a\x19.nodereader.ParagraphItem\"\x00\x30\x01\x12\x44\n\tDocuments\x12\x19.nodereader.StreamRequest\x1a\x18.nodereader.DocumentItem\"\x00\x30\x01\x12N\n\rGetShardFiles\x12 .nodereader.GetShardFilesRequest\x1a\x19.nodereader.ShardFileList\"\x00\x12Y\n\x11\x44ownloadShardFile\x12$.nodereader.DownloadShardFileRequest\x1a\x1a.nodereader.ShardFileChunk\"\x00\x30\x01P\x00P\x02\x62\x06proto3')
26
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n nucliadb_protos/nodereader.proto\x12\nnodereader\x1a#nucliadb_protos/noderesources.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bnucliadb_protos/utils.proto\"\x82\x01\n\x0cStreamFilter\x12\x39\n\x0b\x63onjunction\x18\x01 \x01(\x0e\x32$.nodereader.StreamFilter.Conjunction\x12\x0e\n\x06labels\x18\x02 \x03(\t\"\'\n\x0b\x43onjunction\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01\x12\x07\n\x03NOT\x10\x02\"\x19\n\x07\x46\x61\x63\x65ted\x12\x0e\n\x06labels\x18\x01 \x03(\t\"\xc3\x01\n\x07OrderBy\x12\x11\n\x05\x66ield\x18\x01 \x01(\tB\x02\x18\x01\x12+\n\x04type\x18\x02 \x01(\x0e\x32\x1d.nodereader.OrderBy.OrderType\x12/\n\x07sort_by\x18\x03 \x01(\x0e\x32\x1e.nodereader.OrderBy.OrderField\"\x1e\n\tOrderType\x12\x08\n\x04\x44\x45SC\x10\x00\x12\x07\n\x03\x41SC\x10\x01\"\'\n\nOrderField\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\")\n\x0b\x46\x61\x63\x65tResult\x12\x0b\n\x03tag\x18\x01 \x01(\t\x12\r\n\x05total\x18\x02 \x01(\x05\"=\n\x0c\x46\x61\x63\x65tResults\x12-\n\x0c\x66\x61\x63\x65tresults\x18\x01 \x03(\x0b\x32\x17.nodereader.FacetResult\",\n\x0bResultScore\x12\x0c\n\x04\x62m25\x18\x01 \x01(\x02\x12\x0f\n\x07\x62ooster\x18\x02 \x01(\x02\"e\n\x0e\x44ocumentResult\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12&\n\x05score\x18\x03 \x01(\x0b\x32\x17.nodereader.ResultScore\x12\r\n\x05\x66ield\x18\x04 \x01(\t\x12\x0e\n\x06labels\x18\x05 \x03(\t\"\xbb\x02\n\x16\x44ocumentSearchResponse\x12\r\n\x05total\x18\x01 \x01(\x05\x12+\n\x07results\x18\x02 \x03(\x0b\x32\x1a.nodereader.DocumentResult\x12>\n\x06\x66\x61\x63\x65ts\x18\x03 \x03(\x0b\x32..nodereader.DocumentSearchResponse.FacetsEntry\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\x12\r\n\x05query\x18\x06 \x01(\t\x12\x11\n\tnext_page\x18\x07 \x01(\x08\x12\x0c\n\x04\x62m25\x18\x08 \x01(\x08\x1aG\n\x0b\x46\x61\x63\x65tsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.nodereader.FacetResults:\x02\x38\x01\"\xf8\x01\n\x0fParagraphResult\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\r\n\x05\x66ield\x18\x03 \x01(\t\x12\r\n\x05start\x18\x04 \x01(\x04\x12\x0b\n\x03\x65nd\x18\x05 \x01(\x04\x12\x11\n\tparagraph\x18\x06 \x01(\t\x12\r\n\x05split\x18\x07 \x01(\t\x12\r\n\x05index\x18\x08 \x01(\x04\x12&\n\x05score\x18\t \x01(\x0b\x32\x17.nodereader.ResultScore\x12\x0f\n\x07matches\x18\n \x03(\t\x12\x32\n\x08metadata\x18\x0b \x01(\x0b\x32 .noderesources.ParagraphMetadata\x12\x0e\n\x06labels\x18\x0c \x03(\t\"\xe8\x02\n\x17ParagraphSearchResponse\x12\x16\n\x0e\x66uzzy_distance\x18\n \x01(\x05\x12\r\n\x05total\x18\x01 \x01(\x05\x12,\n\x07results\x18\x02 \x03(\x0b\x32\x1b.nodereader.ParagraphResult\x12?\n\x06\x66\x61\x63\x65ts\x18\x03 \x03(\x0b\x32/.nodereader.ParagraphSearchResponse.FacetsEntry\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\x12\r\n\x05query\x18\x06 \x01(\t\x12\x11\n\tnext_page\x18\x07 \x01(\x08\x12\x0c\n\x04\x62m25\x18\x08 \x01(\x08\x12\x10\n\x08\x65matches\x18\t \x03(\t\x1aG\n\x0b\x46\x61\x63\x65tsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.nodereader.FacetResults:\x02\x38\x01\"&\n\x18\x44ocumentVectorIdentifier\x12\n\n\x02id\x18\x01 \x01(\t\"\x98\x01\n\x0e\x44ocumentScored\x12\x34\n\x06\x64oc_id\x18\x01 \x01(\x0b\x32$.nodereader.DocumentVectorIdentifier\x12\r\n\x05score\x18\x02 \x01(\x02\x12\x31\n\x08metadata\x18\x03 \x01(\x0b\x32\x1f.noderesources.SentenceMetadata\x12\x0e\n\x06labels\x18\x04 \x03(\t\"s\n\x14VectorSearchResponse\x12-\n\tdocuments\x18\x01 \x03(\x0b\x32\x1a.nodereader.DocumentScored\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\"q\n\x12RelationNodeFilter\x12/\n\tnode_type\x18\x01 \x01(\x0e\x32\x1c.utils.RelationNode.NodeType\x12\x19\n\x0cnode_subtype\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0f\n\r_node_subtype\"\x95\x01\n\x12RelationEdgeFilter\x12\x33\n\rrelation_type\x18\x01 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\x1d\n\x10relation_subtype\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0erelation_value\x18\x03 \x03(\tB\x13\n\x11_relation_subtype\"\x80\x01\n\x1bRelationPrefixSearchRequest\x12\x10\n\x06prefix\x18\x01 \x01(\tH\x00\x12\x0f\n\x05query\x18\x03 \x01(\tH\x00\x12\x34\n\x0cnode_filters\x18\x02 \x03(\x0b\x32\x1e.nodereader.RelationNodeFilterB\x08\n\x06search\"B\n\x1cRelationPrefixSearchResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.utils.RelationNode\"\x87\x02\n\x17\x45ntitiesSubgraphRequest\x12)\n\x0c\x65ntry_points\x18\x01 \x03(\x0b\x32\x13.utils.RelationNode\x12\x12\n\x05\x64\x65pth\x18\x03 \x01(\x05H\x00\x88\x01\x01\x12M\n\x10\x64\x65leted_entities\x18\x04 \x03(\x0b\x32\x33.nodereader.EntitiesSubgraphRequest.DeletedEntities\x12\x16\n\x0e\x64\x65leted_groups\x18\x05 \x03(\t\x1a<\n\x0f\x44\x65letedEntities\x12\x14\n\x0cnode_subtype\x18\x01 \x01(\t\x12\x13\n\x0bnode_values\x18\x02 \x03(\tB\x08\n\x06_depth\"s\n\x18\x45ntitiesSubgraphResponse\x12\"\n\trelations\x18\x01 \x03(\x0b\x32\x0f.utils.Relation\x12\x33\n\rnew_relations\x18\x02 \x03(\x0b\x32\x1c.noderesources.IndexRelation\"\xb3\x07\n\nGraphQuery\x12.\n\x04path\x18\x01 \x01(\x0b\x32 .nodereader.GraphQuery.PathQuery\x1a\xf2\x01\n\x04Node\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x34\n\tnode_type\x18\x02 \x01(\x0e\x32\x1c.utils.RelationNode.NodeTypeH\x01\x88\x01\x01\x12\x19\n\x0cnode_subtype\x18\x03 \x01(\tH\x02\x88\x01\x01\x12\x39\n\nmatch_kind\x18\x04 \x01(\x0e\x32%.nodereader.GraphQuery.Node.MatchKind\"!\n\tMatchKind\x12\t\n\x05\x45XACT\x10\x00\x12\t\n\x05\x46UZZY\x10\x01\x42\x08\n\x06_valueB\x0c\n\n_node_typeB\x0f\n\r_node_subtype\x1at\n\x08Relation\x12\x12\n\x05value\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x38\n\rrelation_type\x18\x02 \x01(\x0e\x32\x1c.utils.Relation.RelationTypeH\x01\x88\x01\x01\x42\x08\n\x06_valueB\x10\n\x0e_relation_type\x1a\xe3\x01\n\x04Path\x12\x30\n\x06source\x18\x01 \x01(\x0b\x32\x1b.nodereader.GraphQuery.NodeH\x00\x88\x01\x01\x12\x36\n\x08relation\x18\x02 \x01(\x0b\x32\x1f.nodereader.GraphQuery.RelationH\x01\x88\x01\x01\x12\x35\n\x0b\x64\x65stination\x18\x03 \x01(\x0b\x32\x1b.nodereader.GraphQuery.NodeH\x02\x88\x01\x01\x12\x12\n\nundirected\x18\x04 \x01(\x08\x42\t\n\x07_sourceB\x0b\n\t_relationB\x0e\n\x0c_destination\x1a?\n\tBoolQuery\x12\x32\n\x08operands\x18\x01 \x03(\x0b\x32 .nodereader.GraphQuery.PathQuery\x1a\xe2\x01\n\tPathQuery\x12+\n\x04path\x18\x01 \x01(\x0b\x32\x1b.nodereader.GraphQuery.PathH\x00\x12\x34\n\x08\x62ool_not\x18\x02 \x01(\x0b\x32 .nodereader.GraphQuery.PathQueryH\x00\x12\x34\n\x08\x62ool_and\x18\x03 \x01(\x0b\x32 .nodereader.GraphQuery.BoolQueryH\x00\x12\x33\n\x07\x62ool_or\x18\x04 \x01(\x0b\x32 .nodereader.GraphQuery.BoolQueryH\x00\x42\x07\n\x05query\"\xc2\x01\n\x12GraphSearchRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12%\n\x05query\x18\x02 \x01(\x0b\x32\x16.nodereader.GraphQuery\x12\x36\n\x04kind\x18\x03 \x01(\x0e\x32(.nodereader.GraphSearchRequest.QueryKind\x12\r\n\x05top_k\x18\x04 \x01(\r\"/\n\tQueryKind\x12\x08\n\x04PATH\x10\x00\x12\t\n\x05NODES\x10\x01\x12\r\n\tRELATIONS\x10\x02\"\xe5\x02\n\x13GraphSearchResponse\x12\"\n\x05nodes\x18\x01 \x03(\x0b\x32\x13.utils.RelationNode\x12;\n\trelations\x18\x02 \x03(\x0b\x32(.nodereader.GraphSearchResponse.Relation\x12\x33\n\x05graph\x18\x03 \x03(\x0b\x32$.nodereader.GraphSearchResponse.Path\x1ay\n\x08Relation\x12\x33\n\rrelation_type\x18\x01 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\r\n\x05label\x18\x02 \x01(\t\x12)\n\x08metadata\x18\x03 \x01(\x0b\x32\x17.utils.RelationMetadata\x1a=\n\x04Path\x12\x0e\n\x06source\x18\x01 \x01(\r\x12\x10\n\x08relation\x18\x02 \x01(\r\x12\x13\n\x0b\x64\x65stination\x18\x03 \x01(\r\"\x99\x01\n\x15RelationSearchRequest\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x37\n\x06prefix\x18\x0b \x01(\x0b\x32\'.nodereader.RelationPrefixSearchRequest\x12\x35\n\x08subgraph\x18\x0c \x01(\x0b\x32#.nodereader.EntitiesSubgraphRequest\"\x8a\x01\n\x16RelationSearchResponse\x12\x38\n\x06prefix\x18\x0b \x01(\x0b\x32(.nodereader.RelationPrefixSearchResponse\x12\x36\n\x08subgraph\x18\x0c \x01(\x0b\x32$.nodereader.EntitiesSubgraphResponse\"\xfa\x07\n\x10\x46ilterExpression\x12\x45\n\x08\x62ool_and\x18\x01 \x01(\x0b\x32\x31.nodereader.FilterExpression.FilterExpressionListH\x00\x12\x44\n\x07\x62ool_or\x18\x02 \x01(\x0b\x32\x31.nodereader.FilterExpression.FilterExpressionListH\x00\x12\x30\n\x08\x62ool_not\x18\x03 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x00\x12?\n\x08resource\x18\x04 \x01(\x0b\x32+.nodereader.FilterExpression.ResourceFilterH\x00\x12\x39\n\x05\x66ield\x18\x05 \x01(\x0b\x32(.nodereader.FilterExpression.FieldFilterH\x00\x12=\n\x07keyword\x18\x06 \x01(\x0b\x32*.nodereader.FilterExpression.KeywordFilterH\x00\x12<\n\x04\x64\x61te\x18\x07 \x01(\x0b\x32,.nodereader.FilterExpression.DateRangeFilterH\x00\x12\x39\n\x05\x66\x61\x63\x65t\x18\x08 \x01(\x0b\x32(.nodereader.FilterExpression.FacetFilterH\x00\x1a\x46\n\x14\x46ilterExpressionList\x12.\n\x08operands\x18\x01 \x03(\x0b\x32\x1c.nodereader.FilterExpression\x1a%\n\x0eResourceFilter\x12\x13\n\x0bresource_id\x18\x01 \x01(\t\x1a\x45\n\x0b\x46ieldFilter\x12\x12\n\nfield_type\x18\x01 \x01(\t\x12\x15\n\x08\x66ield_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x42\x0b\n\t_field_id\x1a\xf4\x01\n\x0f\x44\x61teRangeFilter\x12\x45\n\x05\x66ield\x18\x01 \x01(\x0e\x32\x36.nodereader.FilterExpression.DateRangeFilter.DateField\x12.\n\x05since\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x00\x88\x01\x01\x12.\n\x05until\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampH\x01\x88\x01\x01\"&\n\tDateField\x12\x0b\n\x07\x43REATED\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x42\x08\n\x06_sinceB\x08\n\x06_until\x1a \n\rKeywordFilter\x12\x0f\n\x07keyword\x18\x01 \x01(\t\x1a\x1c\n\x0b\x46\x61\x63\x65tFilter\x12\r\n\x05\x66\x61\x63\x65t\x18\x01 \x01(\tB\x06\n\x04\x65xpr\"\x87\x06\n\rSearchRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\t\x12\"\n\x05order\x18\x05 \x01(\x0b\x32\x13.nodereader.OrderBy\x12$\n\x07\x66\x61\x63\x65ted\x18\x06 \x01(\x0b\x32\x13.nodereader.Faceted\x12\x13\n\x0bpage_number\x18\x07 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x08 \x01(\x05\x12\x0e\n\x06vector\x18\n \x03(\x02\x12\x11\n\tvectorset\x18\x0f \x01(\t\x12\x11\n\tparagraph\x18\x0c \x01(\x08\x12\x10\n\x08\x64ocument\x18\r \x01(\x08\x12\x17\n\x0fwith_duplicates\x18\x0e \x01(\x08\x12\x14\n\x0conly_faceted\x18\x10 \x01(\x08\x12\x1b\n\x0e\x61\x64vanced_query\x18\x12 \x01(\tH\x00\x88\x01\x01\x12@\n\x0frelation_prefix\x18\x14 \x01(\x0b\x32\'.nodereader.RelationPrefixSearchRequest\x12>\n\x11relation_subgraph\x18\x15 \x01(\x0b\x32#.nodereader.EntitiesSubgraphRequest\x12\x1a\n\x12min_score_semantic\x18\x17 \x01(\x02\x12\x16\n\x0emin_score_bm25\x18\x19 \x01(\x02\x12&\n\x08security\x18\x18 \x01(\x0b\x32\x0f.utils.SecurityH\x01\x88\x01\x01\x12\x37\n\x0c\x66ield_filter\x18\x1a \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x02\x88\x01\x01\x12;\n\x10paragraph_filter\x18\x1b \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x03\x88\x01\x01\x12\x33\n\x0f\x66ilter_operator\x18\x1c \x01(\x0e\x32\x1a.nodereader.FilterOperatorB\x11\n\x0f_advanced_queryB\x0b\n\t_securityB\x0f\n\r_field_filterB\x13\n\x11_paragraph_filter\"\xad\x02\n\x0eSuggestRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x02 \x01(\t\x12-\n\x08\x66\x65\x61tures\x18\x06 \x03(\x0e\x32\x1b.nodereader.SuggestFeatures\x12\x37\n\x0c\x66ield_filter\x18\x07 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x00\x88\x01\x01\x12;\n\x10paragraph_filter\x18\x08 \x01(\x0b\x32\x1c.nodereader.FilterExpressionH\x01\x88\x01\x01\x12\x33\n\x0f\x66ilter_operator\x18\t \x01(\x0e\x32\x1a.nodereader.FilterOperatorB\x0f\n\r_field_filterB\x13\n\x11_paragraph_filter\"2\n\x0fRelatedEntities\x12\x10\n\x08\x65ntities\x18\x01 \x03(\t\x12\r\n\x05total\x18\x02 \x01(\r\"\xb1\x01\n\x0fSuggestResponse\x12\r\n\x05total\x18\x01 \x01(\x05\x12,\n\x07results\x18\x02 \x03(\x0b\x32\x1b.nodereader.ParagraphResult\x12\r\n\x05query\x18\x03 \x01(\t\x12\x10\n\x08\x65matches\x18\x04 \x03(\t\x12@\n\x0e\x65ntity_results\x18\x06 \x01(\x0b\x32(.nodereader.RelationPrefixSearchResponse\"\xe6\x01\n\x0eSearchResponse\x12\x34\n\x08\x64ocument\x18\x01 \x01(\x0b\x32\".nodereader.DocumentSearchResponse\x12\x36\n\tparagraph\x18\x02 \x01(\x0b\x32#.nodereader.ParagraphSearchResponse\x12\x30\n\x06vector\x18\x03 \x01(\x0b\x32 .nodereader.VectorSearchResponse\x12\x34\n\x08relation\x18\x04 \x01(\x0b\x32\".nodereader.RelationSearchResponse\"\x1b\n\x0cIdCollection\x12\x0b\n\x03ids\x18\x01 \x03(\t\"Q\n\x0cRelationEdge\x12/\n\tedge_type\x18\x01 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\x10\n\x08property\x18\x02 \x01(\t\"2\n\x08\x45\x64geList\x12&\n\x04list\x18\x01 \x03(\x0b\x32\x18.nodereader.RelationEdge\"N\n\x0fGetShardRequest\x12(\n\x08shard_id\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x11\n\tvectorset\x18\x02 \x01(\t\"+\n\rParagraphItem\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06labels\x18\x02 \x03(\t\";\n\x0c\x44ocumentItem\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\r\n\x05\x66ield\x18\x02 \x01(\t\x12\x0e\n\x06labels\x18\x03 \x03(\t\"c\n\rStreamRequest\x12(\n\x08shard_id\x18\x03 \x01(\x0b\x32\x16.noderesources.ShardId\x12(\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x18.nodereader.StreamFilter\"(\n\x14GetShardFilesRequest\x12\x10\n\x08shard_id\x18\x01 \x01(\t\"5\n\rShardFileList\x12$\n\x05\x66iles\x18\x02 \x03(\x0b\x32\x15.nodereader.ShardFile\"0\n\tShardFile\x12\x15\n\rrelative_path\x18\x01 \x01(\t\x12\x0c\n\x04size\x18\x02 \x01(\x04\"C\n\x18\x44ownloadShardFileRequest\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x15\n\rrelative_path\x18\x02 \x01(\t\"-\n\x0eShardFileChunk\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\x12\r\n\x05index\x18\x02 \x01(\x05*!\n\x0e\x46ilterOperator\x12\x07\n\x03\x41ND\x10\x00\x12\x06\n\x02OR\x10\x01*/\n\x0fSuggestFeatures\x12\x0c\n\x08\x45NTITIES\x10\x00\x12\x0e\n\nPARAGRAPHS\x10\x01\x32\xdf\x06\n\nNodeReader\x12?\n\x08GetShard\x12\x1b.nodereader.GetShardRequest\x1a\x14.noderesources.Shard\"\x00\x12\x41\n\x0b\x44ocumentIds\x12\x16.noderesources.ShardId\x1a\x18.nodereader.IdCollection\"\x00\x12\x42\n\x0cParagraphIds\x12\x16.noderesources.ShardId\x1a\x18.nodereader.IdCollection\"\x00\x12\x43\n\tVectorIds\x12\x1a.noderesources.VectorSetID\x1a\x18.nodereader.IdCollection\"\x00\x12\x41\n\x0bRelationIds\x12\x16.noderesources.ShardId\x1a\x18.nodereader.IdCollection\"\x00\x12?\n\rRelationEdges\x12\x16.noderesources.ShardId\x1a\x14.nodereader.EdgeList\"\x00\x12\x41\n\x06Search\x12\x19.nodereader.SearchRequest\x1a\x1a.nodereader.SearchResponse\"\x00\x12\x44\n\x07Suggest\x12\x1a.nodereader.SuggestRequest\x1a\x1b.nodereader.SuggestResponse\"\x00\x12\x46\n\nParagraphs\x12\x19.nodereader.StreamRequest\x1a\x19.nodereader.ParagraphItem\"\x00\x30\x01\x12\x44\n\tDocuments\x12\x19.nodereader.StreamRequest\x1a\x18.nodereader.DocumentItem\"\x00\x30\x01\x12N\n\rGetShardFiles\x12 .nodereader.GetShardFilesRequest\x1a\x19.nodereader.ShardFileList\"\x00\x12Y\n\x11\x44ownloadShardFile\x12$.nodereader.DownloadShardFileRequest\x1a\x1a.nodereader.ShardFileChunk\"\x00\x30\x01P\x00P\x02\x62\x06proto3')
27
27
 
28
28
  _globals = globals()
29
29
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -36,10 +36,10 @@ if _descriptor._USE_C_DESCRIPTORS == False:
36
36
  _globals['_DOCUMENTSEARCHRESPONSE_FACETSENTRY']._serialized_options = b'8\001'
37
37
  _globals['_PARAGRAPHSEARCHRESPONSE_FACETSENTRY']._options = None
38
38
  _globals['_PARAGRAPHSEARCHRESPONSE_FACETSENTRY']._serialized_options = b'8\001'
39
- _globals['_FILTEROPERATOR']._serialized_start=7886
40
- _globals['_FILTEROPERATOR']._serialized_end=7919
41
- _globals['_SUGGESTFEATURES']._serialized_start=7921
42
- _globals['_SUGGESTFEATURES']._serialized_end=7968
39
+ _globals['_FILTEROPERATOR']._serialized_start=7939
40
+ _globals['_FILTEROPERATOR']._serialized_end=7972
41
+ _globals['_SUGGESTFEATURES']._serialized_start=7974
42
+ _globals['_SUGGESTFEATURES']._serialized_end=8021
43
43
  _globals['_STREAMFILTER']._serialized_start=148
44
44
  _globals['_STREAMFILTER']._serialized_end=278
45
45
  _globals['_STREAMFILTER_CONJUNCTION']._serialized_start=239
@@ -89,85 +89,85 @@ if _descriptor._USE_C_DESCRIPTORS == False:
89
89
  _globals['_ENTITIESSUBGRAPHREQUEST_DELETEDENTITIES']._serialized_start=2664
90
90
  _globals['_ENTITIESSUBGRAPHREQUEST_DELETEDENTITIES']._serialized_end=2724
91
91
  _globals['_ENTITIESSUBGRAPHRESPONSE']._serialized_start=2736
92
- _globals['_ENTITIESSUBGRAPHRESPONSE']._serialized_end=2798
93
- _globals['_GRAPHQUERY']._serialized_start=2801
94
- _globals['_GRAPHQUERY']._serialized_end=3748
95
- _globals['_GRAPHQUERY_NODE']._serialized_start=2864
96
- _globals['_GRAPHQUERY_NODE']._serialized_end=3106
97
- _globals['_GRAPHQUERY_NODE_MATCHKIND']._serialized_start=3032
98
- _globals['_GRAPHQUERY_NODE_MATCHKIND']._serialized_end=3065
99
- _globals['_GRAPHQUERY_RELATION']._serialized_start=3108
100
- _globals['_GRAPHQUERY_RELATION']._serialized_end=3224
101
- _globals['_GRAPHQUERY_PATH']._serialized_start=3227
102
- _globals['_GRAPHQUERY_PATH']._serialized_end=3454
103
- _globals['_GRAPHQUERY_BOOLQUERY']._serialized_start=3456
104
- _globals['_GRAPHQUERY_BOOLQUERY']._serialized_end=3519
105
- _globals['_GRAPHQUERY_PATHQUERY']._serialized_start=3522
106
- _globals['_GRAPHQUERY_PATHQUERY']._serialized_end=3748
107
- _globals['_GRAPHSEARCHREQUEST']._serialized_start=3751
108
- _globals['_GRAPHSEARCHREQUEST']._serialized_end=3945
109
- _globals['_GRAPHSEARCHREQUEST_QUERYKIND']._serialized_start=3898
110
- _globals['_GRAPHSEARCHREQUEST_QUERYKIND']._serialized_end=3945
111
- _globals['_GRAPHSEARCHRESPONSE']._serialized_start=3948
112
- _globals['_GRAPHSEARCHRESPONSE']._serialized_end=4305
113
- _globals['_GRAPHSEARCHRESPONSE_RELATION']._serialized_start=4121
114
- _globals['_GRAPHSEARCHRESPONSE_RELATION']._serialized_end=4242
115
- _globals['_GRAPHSEARCHRESPONSE_PATH']._serialized_start=4244
116
- _globals['_GRAPHSEARCHRESPONSE_PATH']._serialized_end=4305
117
- _globals['_RELATIONSEARCHREQUEST']._serialized_start=4308
118
- _globals['_RELATIONSEARCHREQUEST']._serialized_end=4461
119
- _globals['_RELATIONSEARCHRESPONSE']._serialized_start=4464
120
- _globals['_RELATIONSEARCHRESPONSE']._serialized_end=4602
121
- _globals['_FILTEREXPRESSION']._serialized_start=4605
122
- _globals['_FILTEREXPRESSION']._serialized_end=5623
123
- _globals['_FILTEREXPRESSION_FILTEREXPRESSIONLIST']._serialized_start=5124
124
- _globals['_FILTEREXPRESSION_FILTEREXPRESSIONLIST']._serialized_end=5194
125
- _globals['_FILTEREXPRESSION_RESOURCEFILTER']._serialized_start=5196
126
- _globals['_FILTEREXPRESSION_RESOURCEFILTER']._serialized_end=5233
127
- _globals['_FILTEREXPRESSION_FIELDFILTER']._serialized_start=5235
128
- _globals['_FILTEREXPRESSION_FIELDFILTER']._serialized_end=5304
129
- _globals['_FILTEREXPRESSION_DATERANGEFILTER']._serialized_start=5307
130
- _globals['_FILTEREXPRESSION_DATERANGEFILTER']._serialized_end=5551
131
- _globals['_FILTEREXPRESSION_DATERANGEFILTER_DATEFIELD']._serialized_start=5493
132
- _globals['_FILTEREXPRESSION_DATERANGEFILTER_DATEFIELD']._serialized_end=5531
133
- _globals['_FILTEREXPRESSION_KEYWORDFILTER']._serialized_start=5553
134
- _globals['_FILTEREXPRESSION_KEYWORDFILTER']._serialized_end=5585
135
- _globals['_FILTEREXPRESSION_FACETFILTER']._serialized_start=5587
136
- _globals['_FILTEREXPRESSION_FACETFILTER']._serialized_end=5615
137
- _globals['_SEARCHREQUEST']._serialized_start=5626
138
- _globals['_SEARCHREQUEST']._serialized_end=6401
139
- _globals['_SUGGESTREQUEST']._serialized_start=6404
140
- _globals['_SUGGESTREQUEST']._serialized_end=6705
141
- _globals['_RELATEDENTITIES']._serialized_start=6707
142
- _globals['_RELATEDENTITIES']._serialized_end=6757
143
- _globals['_SUGGESTRESPONSE']._serialized_start=6760
144
- _globals['_SUGGESTRESPONSE']._serialized_end=6937
145
- _globals['_SEARCHRESPONSE']._serialized_start=6940
146
- _globals['_SEARCHRESPONSE']._serialized_end=7170
147
- _globals['_IDCOLLECTION']._serialized_start=7172
148
- _globals['_IDCOLLECTION']._serialized_end=7199
149
- _globals['_RELATIONEDGE']._serialized_start=7201
150
- _globals['_RELATIONEDGE']._serialized_end=7282
151
- _globals['_EDGELIST']._serialized_start=7284
152
- _globals['_EDGELIST']._serialized_end=7334
153
- _globals['_GETSHARDREQUEST']._serialized_start=7336
154
- _globals['_GETSHARDREQUEST']._serialized_end=7414
155
- _globals['_PARAGRAPHITEM']._serialized_start=7416
156
- _globals['_PARAGRAPHITEM']._serialized_end=7459
157
- _globals['_DOCUMENTITEM']._serialized_start=7461
158
- _globals['_DOCUMENTITEM']._serialized_end=7520
159
- _globals['_STREAMREQUEST']._serialized_start=7522
160
- _globals['_STREAMREQUEST']._serialized_end=7621
161
- _globals['_GETSHARDFILESREQUEST']._serialized_start=7623
162
- _globals['_GETSHARDFILESREQUEST']._serialized_end=7663
163
- _globals['_SHARDFILELIST']._serialized_start=7665
164
- _globals['_SHARDFILELIST']._serialized_end=7718
165
- _globals['_SHARDFILE']._serialized_start=7720
166
- _globals['_SHARDFILE']._serialized_end=7768
167
- _globals['_DOWNLOADSHARDFILEREQUEST']._serialized_start=7770
168
- _globals['_DOWNLOADSHARDFILEREQUEST']._serialized_end=7837
169
- _globals['_SHARDFILECHUNK']._serialized_start=7839
170
- _globals['_SHARDFILECHUNK']._serialized_end=7884
171
- _globals['_NODEREADER']._serialized_start=7971
172
- _globals['_NODEREADER']._serialized_end=8834
92
+ _globals['_ENTITIESSUBGRAPHRESPONSE']._serialized_end=2851
93
+ _globals['_GRAPHQUERY']._serialized_start=2854
94
+ _globals['_GRAPHQUERY']._serialized_end=3801
95
+ _globals['_GRAPHQUERY_NODE']._serialized_start=2917
96
+ _globals['_GRAPHQUERY_NODE']._serialized_end=3159
97
+ _globals['_GRAPHQUERY_NODE_MATCHKIND']._serialized_start=3085
98
+ _globals['_GRAPHQUERY_NODE_MATCHKIND']._serialized_end=3118
99
+ _globals['_GRAPHQUERY_RELATION']._serialized_start=3161
100
+ _globals['_GRAPHQUERY_RELATION']._serialized_end=3277
101
+ _globals['_GRAPHQUERY_PATH']._serialized_start=3280
102
+ _globals['_GRAPHQUERY_PATH']._serialized_end=3507
103
+ _globals['_GRAPHQUERY_BOOLQUERY']._serialized_start=3509
104
+ _globals['_GRAPHQUERY_BOOLQUERY']._serialized_end=3572
105
+ _globals['_GRAPHQUERY_PATHQUERY']._serialized_start=3575
106
+ _globals['_GRAPHQUERY_PATHQUERY']._serialized_end=3801
107
+ _globals['_GRAPHSEARCHREQUEST']._serialized_start=3804
108
+ _globals['_GRAPHSEARCHREQUEST']._serialized_end=3998
109
+ _globals['_GRAPHSEARCHREQUEST_QUERYKIND']._serialized_start=3951
110
+ _globals['_GRAPHSEARCHREQUEST_QUERYKIND']._serialized_end=3998
111
+ _globals['_GRAPHSEARCHRESPONSE']._serialized_start=4001
112
+ _globals['_GRAPHSEARCHRESPONSE']._serialized_end=4358
113
+ _globals['_GRAPHSEARCHRESPONSE_RELATION']._serialized_start=4174
114
+ _globals['_GRAPHSEARCHRESPONSE_RELATION']._serialized_end=4295
115
+ _globals['_GRAPHSEARCHRESPONSE_PATH']._serialized_start=4297
116
+ _globals['_GRAPHSEARCHRESPONSE_PATH']._serialized_end=4358
117
+ _globals['_RELATIONSEARCHREQUEST']._serialized_start=4361
118
+ _globals['_RELATIONSEARCHREQUEST']._serialized_end=4514
119
+ _globals['_RELATIONSEARCHRESPONSE']._serialized_start=4517
120
+ _globals['_RELATIONSEARCHRESPONSE']._serialized_end=4655
121
+ _globals['_FILTEREXPRESSION']._serialized_start=4658
122
+ _globals['_FILTEREXPRESSION']._serialized_end=5676
123
+ _globals['_FILTEREXPRESSION_FILTEREXPRESSIONLIST']._serialized_start=5177
124
+ _globals['_FILTEREXPRESSION_FILTEREXPRESSIONLIST']._serialized_end=5247
125
+ _globals['_FILTEREXPRESSION_RESOURCEFILTER']._serialized_start=5249
126
+ _globals['_FILTEREXPRESSION_RESOURCEFILTER']._serialized_end=5286
127
+ _globals['_FILTEREXPRESSION_FIELDFILTER']._serialized_start=5288
128
+ _globals['_FILTEREXPRESSION_FIELDFILTER']._serialized_end=5357
129
+ _globals['_FILTEREXPRESSION_DATERANGEFILTER']._serialized_start=5360
130
+ _globals['_FILTEREXPRESSION_DATERANGEFILTER']._serialized_end=5604
131
+ _globals['_FILTEREXPRESSION_DATERANGEFILTER_DATEFIELD']._serialized_start=5546
132
+ _globals['_FILTEREXPRESSION_DATERANGEFILTER_DATEFIELD']._serialized_end=5584
133
+ _globals['_FILTEREXPRESSION_KEYWORDFILTER']._serialized_start=5606
134
+ _globals['_FILTEREXPRESSION_KEYWORDFILTER']._serialized_end=5638
135
+ _globals['_FILTEREXPRESSION_FACETFILTER']._serialized_start=5640
136
+ _globals['_FILTEREXPRESSION_FACETFILTER']._serialized_end=5668
137
+ _globals['_SEARCHREQUEST']._serialized_start=5679
138
+ _globals['_SEARCHREQUEST']._serialized_end=6454
139
+ _globals['_SUGGESTREQUEST']._serialized_start=6457
140
+ _globals['_SUGGESTREQUEST']._serialized_end=6758
141
+ _globals['_RELATEDENTITIES']._serialized_start=6760
142
+ _globals['_RELATEDENTITIES']._serialized_end=6810
143
+ _globals['_SUGGESTRESPONSE']._serialized_start=6813
144
+ _globals['_SUGGESTRESPONSE']._serialized_end=6990
145
+ _globals['_SEARCHRESPONSE']._serialized_start=6993
146
+ _globals['_SEARCHRESPONSE']._serialized_end=7223
147
+ _globals['_IDCOLLECTION']._serialized_start=7225
148
+ _globals['_IDCOLLECTION']._serialized_end=7252
149
+ _globals['_RELATIONEDGE']._serialized_start=7254
150
+ _globals['_RELATIONEDGE']._serialized_end=7335
151
+ _globals['_EDGELIST']._serialized_start=7337
152
+ _globals['_EDGELIST']._serialized_end=7387
153
+ _globals['_GETSHARDREQUEST']._serialized_start=7389
154
+ _globals['_GETSHARDREQUEST']._serialized_end=7467
155
+ _globals['_PARAGRAPHITEM']._serialized_start=7469
156
+ _globals['_PARAGRAPHITEM']._serialized_end=7512
157
+ _globals['_DOCUMENTITEM']._serialized_start=7514
158
+ _globals['_DOCUMENTITEM']._serialized_end=7573
159
+ _globals['_STREAMREQUEST']._serialized_start=7575
160
+ _globals['_STREAMREQUEST']._serialized_end=7674
161
+ _globals['_GETSHARDFILESREQUEST']._serialized_start=7676
162
+ _globals['_GETSHARDFILESREQUEST']._serialized_end=7716
163
+ _globals['_SHARDFILELIST']._serialized_start=7718
164
+ _globals['_SHARDFILELIST']._serialized_end=7771
165
+ _globals['_SHARDFILE']._serialized_start=7773
166
+ _globals['_SHARDFILE']._serialized_end=7821
167
+ _globals['_DOWNLOADSHARDFILEREQUEST']._serialized_start=7823
168
+ _globals['_DOWNLOADSHARDFILEREQUEST']._serialized_end=7890
169
+ _globals['_SHARDFILECHUNK']._serialized_start=7892
170
+ _globals['_SHARDFILECHUNK']._serialized_end=7937
171
+ _globals['_NODEREADER']._serialized_start=8024
172
+ _globals['_NODEREADER']._serialized_end=8887
173
173
  # @@protoc_insertion_point(module_scope)
@@ -25,6 +25,8 @@ from nucliadb_protos.noderesources_pb2 import (
25
25
  IndexMetadata as IndexMetadata,
26
26
  IndexParagraph as IndexParagraph,
27
27
  IndexParagraphs as IndexParagraphs,
28
+ IndexRelation as IndexRelation,
29
+ IndexRelations as IndexRelations,
28
30
  NodeMetadata as NodeMetadata,
29
31
  ParagraphMetadata as ParagraphMetadata,
30
32
  Position as Position,
@@ -664,14 +666,20 @@ class EntitiesSubgraphResponse(google.protobuf.message.Message):
664
666
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
665
667
 
666
668
  RELATIONS_FIELD_NUMBER: builtins.int
669
+ NEW_RELATIONS_FIELD_NUMBER: builtins.int
667
670
  @property
668
- def relations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nucliadb_protos.utils_pb2.Relation]: ...
671
+ def relations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nucliadb_protos.utils_pb2.Relation]:
672
+ """Soon deprecated"""
673
+
674
+ @property
675
+ def new_relations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nucliadb_protos.noderesources_pb2.IndexRelation]: ...
669
676
  def __init__(
670
677
  self,
671
678
  *,
672
679
  relations: collections.abc.Iterable[nucliadb_protos.utils_pb2.Relation] | None = ...,
680
+ new_relations: collections.abc.Iterable[nucliadb_protos.noderesources_pb2.IndexRelation] | None = ...,
673
681
  ) -> None: ...
674
- def ClearField(self, field_name: typing.Literal["relations", b"relations"]) -> None: ...
682
+ def ClearField(self, field_name: typing.Literal["new_relations", b"new_relations", "relations", b"relations"]) -> None: ...
675
683
 
676
684
  global___EntitiesSubgraphResponse = EntitiesSubgraphResponse
677
685
 
@@ -16,6 +16,8 @@ from nucliadb_protos.noderesources_pb2 import (
16
16
  IndexMetadata as IndexMetadata,
17
17
  IndexParagraph as IndexParagraph,
18
18
  IndexParagraphs as IndexParagraphs,
19
+ IndexRelation as IndexRelation,
20
+ IndexRelations as IndexRelations,
19
21
  NodeMetadata as NodeMetadata,
20
22
  ParagraphMetadata as ParagraphMetadata,
21
23
  Position as Position,
@@ -17,7 +17,7 @@ from nucliadb_protos import utils_pb2 as nucliadb__protos_dot_utils__pb2
17
17
 
18
18
  from nucliadb_protos.utils_pb2 import *
19
19
 
20
- DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#nucliadb_protos/noderesources.proto\x12\rnoderesources\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bnucliadb_protos/utils.proto\"/\n\x0fTextInformation\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x0e\n\x06labels\x18\x02 \x03(\t\"j\n\rIndexMetadata\x12,\n\x08modified\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07\x63reated\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x15\n\x07ShardId\x12\n\n\x02id\x18\x01 \x01(\t\"/\n\x08ShardIds\x12#\n\x03ids\x18\x01 \x03(\x0b\x32\x16.noderesources.ShardId\"\xdc\x04\n\x0cShardCreated\x12\n\n\x02id\x18\x01 \x01(\t\x12\x45\n\x10\x64ocument_service\x18\x02 \x01(\x0e\x32+.noderesources.ShardCreated.DocumentService\x12G\n\x11paragraph_service\x18\x03 \x01(\x0e\x32,.noderesources.ShardCreated.ParagraphService\x12\x41\n\x0evector_service\x18\x04 \x01(\x0e\x32).noderesources.ShardCreated.VectorService\x12\x45\n\x10relation_service\x18\x05 \x01(\x0e\x32+.noderesources.ShardCreated.RelationService\"U\n\x0f\x44ocumentService\x12\x0f\n\x0b\x44OCUMENT_V0\x10\x00\x12\x0f\n\x0b\x44OCUMENT_V1\x10\x01\x12\x0f\n\x0b\x44OCUMENT_V2\x10\x02\x12\x0f\n\x0b\x44OCUMENT_V3\x10\x03\"Z\n\x10ParagraphService\x12\x10\n\x0cPARAGRAPH_V0\x10\x00\x12\x10\n\x0cPARAGRAPH_V1\x10\x01\x12\x10\n\x0cPARAGRAPH_V2\x10\x02\x12\x10\n\x0cPARAGRAPH_V3\x10\x03\"-\n\rVectorService\x12\r\n\tVECTOR_V0\x10\x00\x12\r\n\tVECTOR_V1\x10\x01\"D\n\x0fRelationService\x12\x0f\n\x0bRELATION_V0\x10\x00\x12\x0f\n\x0bRELATION_V1\x10\x01\x12\x0f\n\x0bRELATION_V2\x10\x02\",\n\nResourceID\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\"\x94\x01\n\x05Shard\x12.\n\x08metadata\x18\x05 \x01(\x0b\x32\x1c.noderesources.ShardMetadata\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x01(\x04\x12\x12\n\nparagraphs\x18\x03 \x01(\x04\x12\x11\n\tsentences\x18\x04 \x01(\x04\x12\x12\n\nsize_bytes\x18\x06 \x01(\x04\"\x0f\n\rEmptyResponse\"\x0c\n\nEmptyQuery\"\x87\x01\n\x08Position\x12\r\n\x05index\x18\x01 \x01(\x04\x12\r\n\x05start\x18\x02 \x01(\x04\x12\x0b\n\x03\x65nd\x18\x03 \x01(\x04\x12\x13\n\x0bpage_number\x18\x04 \x01(\x04\x12\x0f\n\x07in_page\x18\x07 \x01(\x08\x12\x15\n\rstart_seconds\x18\x05 \x03(\r\x12\x13\n\x0b\x65nd_seconds\x18\x06 \x03(\r\"2\n\x0eRepresentation\x12\x12\n\nis_a_table\x18\x01 \x01(\x08\x12\x0c\n\x04\x66ile\x18\x02 \x01(\t\"\x8e\x01\n\x10SentenceMetadata\x12)\n\x08position\x18\x01 \x01(\x0b\x32\x17.noderesources.Position\x12\x18\n\x10page_with_visual\x18\x02 \x01(\x08\x12\x35\n\x0erepresentation\x18\x03 \x01(\x0b\x32\x1d.noderesources.Representation\"S\n\x0eVectorSentence\x12\x0e\n\x06vector\x18\x01 \x03(\x02\x12\x31\n\x08metadata\x18\t \x01(\x0b\x32\x1f.noderesources.SentenceMetadata\"\xaa\x01\n\x12VectorsetSentences\x12\x43\n\tsentences\x18\x01 \x03(\x0b\x32\x30.noderesources.VectorsetSentences.SentencesEntry\x1aO\n\x0eSentencesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.noderesources.VectorSentence:\x02\x38\x01\"\x8f\x01\n\x11ParagraphMetadata\x12)\n\x08position\x18\x01 \x01(\x0b\x32\x17.noderesources.Position\x12\x18\n\x10page_with_visual\x18\x02 \x01(\x08\x12\x35\n\x0erepresentation\x18\x03 \x01(\x0b\x32\x1d.noderesources.Representation\"\xff\x03\n\x0eIndexParagraph\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\x12\x0e\n\x06labels\x18\x03 \x03(\t\x12?\n\tsentences\x18\x04 \x03(\x0b\x32,.noderesources.IndexParagraph.SentencesEntry\x12T\n\x14vectorsets_sentences\x18\n \x03(\x0b\x32\x36.noderesources.IndexParagraph.VectorsetsSentencesEntry\x12\r\n\x05\x66ield\x18\x05 \x01(\t\x12\r\n\x05split\x18\x06 \x01(\t\x12\r\n\x05index\x18\x07 \x01(\x04\x12\x19\n\x11repeated_in_field\x18\x08 \x01(\x08\x12\x32\n\x08metadata\x18\t \x01(\x0b\x32 .noderesources.ParagraphMetadata\x1aO\n\x0eSentencesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.noderesources.VectorSentence:\x02\x38\x01\x1a]\n\x18VectorsetsSentencesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.noderesources.VectorsetSentences:\x02\x38\x01\"G\n\x0bVectorSetID\x12%\n\x05shard\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x11\n\tvectorset\x18\x02 \x01(\t\"J\n\rVectorSetList\x12%\n\x05shard\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x12\n\nvectorsets\x18\x02 \x03(\t\"\xa7\x01\n\x0fIndexParagraphs\x12\x42\n\nparagraphs\x18\x01 \x03(\x0b\x32..noderesources.IndexParagraphs.ParagraphsEntry\x1aP\n\x0fParagraphsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.noderesources.IndexParagraph:\x02\x38\x01\"\xa2\t\n\x08Resource\x12+\n\x08resource\x18\x01 \x01(\x0b\x32\x19.noderesources.ResourceID\x12.\n\x08metadata\x18\x02 \x01(\x0b\x32\x1c.noderesources.IndexMetadata\x12\x31\n\x05texts\x18\x03 \x03(\x0b\x32\".noderesources.Resource.TextsEntry\x12\x0e\n\x06labels\x18\x04 \x03(\t\x12\x36\n\x06status\x18\x05 \x01(\x0e\x32&.noderesources.Resource.ResourceStatus\x12;\n\nparagraphs\x18\x06 \x03(\x0b\x32\'.noderesources.Resource.ParagraphsEntry\x12\x1c\n\x14paragraphs_to_delete\x18\x07 \x03(\t\x12\x1f\n\x13sentences_to_delete\x18\x08 \x03(\tB\x02\x18\x01\x12V\n\x19vector_prefixes_to_delete\x18\x0f \x03(\x0b\x32\x33.noderesources.Resource.VectorPrefixesToDeleteEntry\x12\"\n\trelations\x18\t \x03(\x0b\x32\x0f.utils.Relation\x12\x10\n\x08shard_id\x18\x0b \x01(\t\x12\x39\n\x07vectors\x18\x0c \x03(\x0b\x32$.noderesources.Resource.VectorsEntryB\x02\x18\x01\x12K\n\x11vectors_to_delete\x18\r \x03(\x0b\x32,.noderesources.Resource.VectorsToDeleteEntryB\x02\x18\x01\x12&\n\x08security\x18\x0e \x01(\x0b\x32\x0f.utils.SecurityH\x00\x88\x01\x01\x1aL\n\nTextsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x1e.noderesources.TextInformation:\x02\x38\x01\x1aQ\n\x0fParagraphsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x1e.noderesources.IndexParagraphs:\x02\x38\x01\x1aX\n\x1bVectorPrefixesToDeleteEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.noderesources.StringList:\x02\x38\x01\x1a\x42\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.utils.UserVectors:\x02\x38\x01\x1aN\n\x14VectorsToDeleteEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.utils.UserVectorsList:\x02\x38\x01\"h\n\x0eResourceStatus\x12\r\n\tPROCESSED\x10\x00\x12\t\n\x05\x45MPTY\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x0b\n\x07\x42LOCKED\x10\x05\x12\x0b\n\x07\x45XPIRED\x10\x06\x42\x0b\n\t_security\"M\n\rShardMetadata\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12.\n\x0frelease_channel\x18\x02 \x01(\x0e\x32\x15.utils.ReleaseChannel\"\xf8\x02\n\x0cNodeMetadata\x12\x16\n\nload_score\x18\x01 \x01(\x02\x42\x02\x18\x01\x12\x13\n\x0bshard_count\x18\x02 \x01(\x04\x12;\n\x06shards\x18\x03 \x03(\x0b\x32\'.noderesources.NodeMetadata.ShardsEntryB\x02\x18\x01\x12\x0f\n\x07node_id\x18\x04 \x01(\t\x12\x1c\n\x0fprimary_node_id\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0e\x61vailable_disk\x18\x06 \x01(\x04\x12\x12\n\ntotal_disk\x18\x07 \x01(\x04\x1a\x35\n\rShardMetadata\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x16\n\nload_score\x18\x02 \x01(\x02\x42\x02\x18\x01\x1aX\n\x0bShardsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).noderesources.NodeMetadata.ShardMetadata:\x02\x38\x01\x42\x12\n\x10_primary_node_id\"\x1b\n\nStringList\x12\r\n\x05items\x18\x01 \x03(\tP\x01\x62\x06proto3')
20
+ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n#nucliadb_protos/noderesources.proto\x12\rnoderesources\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1bnucliadb_protos/utils.proto\"/\n\x0fTextInformation\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x0e\n\x06labels\x18\x02 \x03(\t\"j\n\rIndexMetadata\x12,\n\x08modified\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12+\n\x07\x63reated\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\x15\n\x07ShardId\x12\n\n\x02id\x18\x01 \x01(\t\"/\n\x08ShardIds\x12#\n\x03ids\x18\x01 \x03(\x0b\x32\x16.noderesources.ShardId\"\xdc\x04\n\x0cShardCreated\x12\n\n\x02id\x18\x01 \x01(\t\x12\x45\n\x10\x64ocument_service\x18\x02 \x01(\x0e\x32+.noderesources.ShardCreated.DocumentService\x12G\n\x11paragraph_service\x18\x03 \x01(\x0e\x32,.noderesources.ShardCreated.ParagraphService\x12\x41\n\x0evector_service\x18\x04 \x01(\x0e\x32).noderesources.ShardCreated.VectorService\x12\x45\n\x10relation_service\x18\x05 \x01(\x0e\x32+.noderesources.ShardCreated.RelationService\"U\n\x0f\x44ocumentService\x12\x0f\n\x0b\x44OCUMENT_V0\x10\x00\x12\x0f\n\x0b\x44OCUMENT_V1\x10\x01\x12\x0f\n\x0b\x44OCUMENT_V2\x10\x02\x12\x0f\n\x0b\x44OCUMENT_V3\x10\x03\"Z\n\x10ParagraphService\x12\x10\n\x0cPARAGRAPH_V0\x10\x00\x12\x10\n\x0cPARAGRAPH_V1\x10\x01\x12\x10\n\x0cPARAGRAPH_V2\x10\x02\x12\x10\n\x0cPARAGRAPH_V3\x10\x03\"-\n\rVectorService\x12\r\n\tVECTOR_V0\x10\x00\x12\r\n\tVECTOR_V1\x10\x01\"D\n\x0fRelationService\x12\x0f\n\x0bRELATION_V0\x10\x00\x12\x0f\n\x0bRELATION_V1\x10\x01\x12\x0f\n\x0bRELATION_V2\x10\x02\",\n\nResourceID\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\"\x94\x01\n\x05Shard\x12.\n\x08metadata\x18\x05 \x01(\x0b\x32\x1c.noderesources.ShardMetadata\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x01(\x04\x12\x12\n\nparagraphs\x18\x03 \x01(\x04\x12\x11\n\tsentences\x18\x04 \x01(\x04\x12\x12\n\nsize_bytes\x18\x06 \x01(\x04\"\x0f\n\rEmptyResponse\"\x0c\n\nEmptyQuery\"\x87\x01\n\x08Position\x12\r\n\x05index\x18\x01 \x01(\x04\x12\r\n\x05start\x18\x02 \x01(\x04\x12\x0b\n\x03\x65nd\x18\x03 \x01(\x04\x12\x13\n\x0bpage_number\x18\x04 \x01(\x04\x12\x0f\n\x07in_page\x18\x07 \x01(\x08\x12\x15\n\rstart_seconds\x18\x05 \x03(\r\x12\x13\n\x0b\x65nd_seconds\x18\x06 \x03(\r\"2\n\x0eRepresentation\x12\x12\n\nis_a_table\x18\x01 \x01(\x08\x12\x0c\n\x04\x66ile\x18\x02 \x01(\t\"\x8e\x01\n\x10SentenceMetadata\x12)\n\x08position\x18\x01 \x01(\x0b\x32\x17.noderesources.Position\x12\x18\n\x10page_with_visual\x18\x02 \x01(\x08\x12\x35\n\x0erepresentation\x18\x03 \x01(\x0b\x32\x1d.noderesources.Representation\"S\n\x0eVectorSentence\x12\x0e\n\x06vector\x18\x01 \x03(\x02\x12\x31\n\x08metadata\x18\t \x01(\x0b\x32\x1f.noderesources.SentenceMetadata\"\xaa\x01\n\x12VectorsetSentences\x12\x43\n\tsentences\x18\x01 \x03(\x0b\x32\x30.noderesources.VectorsetSentences.SentencesEntry\x1aO\n\x0eSentencesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.noderesources.VectorSentence:\x02\x38\x01\"\x8f\x01\n\x11ParagraphMetadata\x12)\n\x08position\x18\x01 \x01(\x0b\x32\x17.noderesources.Position\x12\x18\n\x10page_with_visual\x18\x02 \x01(\x08\x12\x35\n\x0erepresentation\x18\x03 \x01(\x0b\x32\x1d.noderesources.Representation\"\xff\x03\n\x0eIndexParagraph\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\x12\x0e\n\x06labels\x18\x03 \x03(\t\x12?\n\tsentences\x18\x04 \x03(\x0b\x32,.noderesources.IndexParagraph.SentencesEntry\x12T\n\x14vectorsets_sentences\x18\n \x03(\x0b\x32\x36.noderesources.IndexParagraph.VectorsetsSentencesEntry\x12\r\n\x05\x66ield\x18\x05 \x01(\t\x12\r\n\x05split\x18\x06 \x01(\t\x12\r\n\x05index\x18\x07 \x01(\x04\x12\x19\n\x11repeated_in_field\x18\x08 \x01(\x08\x12\x32\n\x08metadata\x18\t \x01(\x0b\x32 .noderesources.ParagraphMetadata\x1aO\n\x0eSentencesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.noderesources.VectorSentence:\x02\x38\x01\x1a]\n\x18VectorsetsSentencesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x30\n\x05value\x18\x02 \x01(\x0b\x32!.noderesources.VectorsetSentences:\x02\x38\x01\"G\n\x0bVectorSetID\x12%\n\x05shard\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x11\n\tvectorset\x18\x02 \x01(\t\"J\n\rVectorSetList\x12%\n\x05shard\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x12\n\nvectorsets\x18\x02 \x03(\t\"\xa7\x01\n\x0fIndexParagraphs\x12\x42\n\nparagraphs\x18\x01 \x03(\x0b\x32..noderesources.IndexParagraphs.ParagraphsEntry\x1aP\n\x0fParagraphsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.noderesources.IndexParagraph:\x02\x38\x01\"\xe1\n\n\x08Resource\x12+\n\x08resource\x18\x01 \x01(\x0b\x32\x19.noderesources.ResourceID\x12.\n\x08metadata\x18\x02 \x01(\x0b\x32\x1c.noderesources.IndexMetadata\x12\x31\n\x05texts\x18\x03 \x03(\x0b\x32\".noderesources.Resource.TextsEntry\x12\x0e\n\x06labels\x18\x04 \x03(\t\x12\x36\n\x06status\x18\x05 \x01(\x0e\x32&.noderesources.Resource.ResourceStatus\x12;\n\nparagraphs\x18\x06 \x03(\x0b\x32\'.noderesources.Resource.ParagraphsEntry\x12\x1c\n\x14paragraphs_to_delete\x18\x07 \x03(\t\x12\x1f\n\x13sentences_to_delete\x18\x08 \x03(\tB\x02\x18\x01\x12V\n\x19vector_prefixes_to_delete\x18\x0f \x03(\x0b\x32\x33.noderesources.Resource.VectorPrefixesToDeleteEntry\x12!\n\x19relation_fields_to_delete\x18\x10 \x03(\t\x12\"\n\trelations\x18\t \x03(\x0b\x32\x0f.utils.Relation\x12\x44\n\x0f\x66ield_relations\x18\n \x03(\x0b\x32+.noderesources.Resource.FieldRelationsEntry\x12\x10\n\x08shard_id\x18\x0b \x01(\t\x12\x39\n\x07vectors\x18\x0c \x03(\x0b\x32$.noderesources.Resource.VectorsEntryB\x02\x18\x01\x12K\n\x11vectors_to_delete\x18\r \x03(\x0b\x32,.noderesources.Resource.VectorsToDeleteEntryB\x02\x18\x01\x12&\n\x08security\x18\x0e \x01(\x0b\x32\x0f.utils.SecurityH\x00\x88\x01\x01\x1aL\n\nTextsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x1e.noderesources.TextInformation:\x02\x38\x01\x1aQ\n\x0fParagraphsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12-\n\x05value\x18\x02 \x01(\x0b\x32\x1e.noderesources.IndexParagraphs:\x02\x38\x01\x1aX\n\x1bVectorPrefixesToDeleteEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.noderesources.StringList:\x02\x38\x01\x1aT\n\x13\x46ieldRelationsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.noderesources.IndexRelations:\x02\x38\x01\x1a\x42\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12!\n\x05value\x18\x02 \x01(\x0b\x32\x12.utils.UserVectors:\x02\x38\x01\x1aN\n\x14VectorsToDeleteEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.utils.UserVectorsList:\x02\x38\x01\"h\n\x0eResourceStatus\x12\r\n\tPROCESSED\x10\x00\x12\t\n\x05\x45MPTY\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\n\n\x06\x44\x45LETE\x10\x03\x12\x0b\n\x07PENDING\x10\x04\x12\x0b\n\x07\x42LOCKED\x10\x05\x12\x0b\n\x07\x45XPIRED\x10\x06\x42\x0b\n\t_security\"M\n\rShardMetadata\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12.\n\x0frelease_channel\x18\x02 \x01(\x0e\x32\x15.utils.ReleaseChannel\"\xf8\x02\n\x0cNodeMetadata\x12\x16\n\nload_score\x18\x01 \x01(\x02\x42\x02\x18\x01\x12\x13\n\x0bshard_count\x18\x02 \x01(\x04\x12;\n\x06shards\x18\x03 \x03(\x0b\x32\'.noderesources.NodeMetadata.ShardsEntryB\x02\x18\x01\x12\x0f\n\x07node_id\x18\x04 \x01(\t\x12\x1c\n\x0fprimary_node_id\x18\x05 \x01(\tH\x00\x88\x01\x01\x12\x16\n\x0e\x61vailable_disk\x18\x06 \x01(\x04\x12\x12\n\ntotal_disk\x18\x07 \x01(\x04\x1a\x35\n\rShardMetadata\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x16\n\nload_score\x18\x02 \x01(\x02\x42\x02\x18\x01\x1aX\n\x0bShardsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x38\n\x05value\x18\x02 \x01(\x0b\x32).noderesources.NodeMetadata.ShardMetadata:\x02\x38\x01\x42\x12\n\x10_primary_node_id\"\x1b\n\nStringList\x12\r\n\x05items\x18\x01 \x03(\t\"x\n\rIndexRelation\x12!\n\x08relation\x18\x01 \x01(\x0b\x32\x0f.utils.Relation\x12\x1e\n\x11resource_field_id\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x0e\n\x06\x66\x61\x63\x65ts\x18\x03 \x03(\tB\x14\n\x12_resource_field_id\"A\n\x0eIndexRelations\x12/\n\trelations\x18\x01 \x03(\x0b\x32\x1c.noderesources.IndexRelationP\x01\x62\x06proto3')
21
21
 
22
22
  _globals = globals()
23
23
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
@@ -38,6 +38,8 @@ if _descriptor._USE_C_DESCRIPTORS == False:
38
38
  _globals['_RESOURCE_PARAGRAPHSENTRY']._serialized_options = b'8\001'
39
39
  _globals['_RESOURCE_VECTORPREFIXESTODELETEENTRY']._options = None
40
40
  _globals['_RESOURCE_VECTORPREFIXESTODELETEENTRY']._serialized_options = b'8\001'
41
+ _globals['_RESOURCE_FIELDRELATIONSENTRY']._options = None
42
+ _globals['_RESOURCE_FIELDRELATIONSENTRY']._serialized_options = b'8\001'
41
43
  _globals['_RESOURCE_VECTORSENTRY']._options = None
42
44
  _globals['_RESOURCE_VECTORSENTRY']._serialized_options = b'8\001'
43
45
  _globals['_RESOURCE_VECTORSTODELETEENTRY']._options = None
@@ -111,27 +113,33 @@ if _descriptor._USE_C_DESCRIPTORS == False:
111
113
  _globals['_INDEXPARAGRAPHS_PARAGRAPHSENTRY']._serialized_start=2670
112
114
  _globals['_INDEXPARAGRAPHS_PARAGRAPHSENTRY']._serialized_end=2750
113
115
  _globals['_RESOURCE']._serialized_start=2753
114
- _globals['_RESOURCE']._serialized_end=3939
115
- _globals['_RESOURCE_TEXTSENTRY']._serialized_start=3423
116
- _globals['_RESOURCE_TEXTSENTRY']._serialized_end=3499
117
- _globals['_RESOURCE_PARAGRAPHSENTRY']._serialized_start=3501
118
- _globals['_RESOURCE_PARAGRAPHSENTRY']._serialized_end=3582
119
- _globals['_RESOURCE_VECTORPREFIXESTODELETEENTRY']._serialized_start=3584
120
- _globals['_RESOURCE_VECTORPREFIXESTODELETEENTRY']._serialized_end=3672
121
- _globals['_RESOURCE_VECTORSENTRY']._serialized_start=3674
122
- _globals['_RESOURCE_VECTORSENTRY']._serialized_end=3740
123
- _globals['_RESOURCE_VECTORSTODELETEENTRY']._serialized_start=3742
124
- _globals['_RESOURCE_VECTORSTODELETEENTRY']._serialized_end=3820
125
- _globals['_RESOURCE_RESOURCESTATUS']._serialized_start=3822
126
- _globals['_RESOURCE_RESOURCESTATUS']._serialized_end=3926
127
- _globals['_SHARDMETADATA']._serialized_start=3941
128
- _globals['_SHARDMETADATA']._serialized_end=4018
129
- _globals['_NODEMETADATA']._serialized_start=4021
130
- _globals['_NODEMETADATA']._serialized_end=4397
131
- _globals['_NODEMETADATA_SHARDMETADATA']._serialized_start=4234
132
- _globals['_NODEMETADATA_SHARDMETADATA']._serialized_end=4287
133
- _globals['_NODEMETADATA_SHARDSENTRY']._serialized_start=4289
134
- _globals['_NODEMETADATA_SHARDSENTRY']._serialized_end=4377
135
- _globals['_STRINGLIST']._serialized_start=4399
136
- _globals['_STRINGLIST']._serialized_end=4426
116
+ _globals['_RESOURCE']._serialized_end=4130
117
+ _globals['_RESOURCE_TEXTSENTRY']._serialized_start=3528
118
+ _globals['_RESOURCE_TEXTSENTRY']._serialized_end=3604
119
+ _globals['_RESOURCE_PARAGRAPHSENTRY']._serialized_start=3606
120
+ _globals['_RESOURCE_PARAGRAPHSENTRY']._serialized_end=3687
121
+ _globals['_RESOURCE_VECTORPREFIXESTODELETEENTRY']._serialized_start=3689
122
+ _globals['_RESOURCE_VECTORPREFIXESTODELETEENTRY']._serialized_end=3777
123
+ _globals['_RESOURCE_FIELDRELATIONSENTRY']._serialized_start=3779
124
+ _globals['_RESOURCE_FIELDRELATIONSENTRY']._serialized_end=3863
125
+ _globals['_RESOURCE_VECTORSENTRY']._serialized_start=3865
126
+ _globals['_RESOURCE_VECTORSENTRY']._serialized_end=3931
127
+ _globals['_RESOURCE_VECTORSTODELETEENTRY']._serialized_start=3933
128
+ _globals['_RESOURCE_VECTORSTODELETEENTRY']._serialized_end=4011
129
+ _globals['_RESOURCE_RESOURCESTATUS']._serialized_start=4013
130
+ _globals['_RESOURCE_RESOURCESTATUS']._serialized_end=4117
131
+ _globals['_SHARDMETADATA']._serialized_start=4132
132
+ _globals['_SHARDMETADATA']._serialized_end=4209
133
+ _globals['_NODEMETADATA']._serialized_start=4212
134
+ _globals['_NODEMETADATA']._serialized_end=4588
135
+ _globals['_NODEMETADATA_SHARDMETADATA']._serialized_start=4425
136
+ _globals['_NODEMETADATA_SHARDMETADATA']._serialized_end=4478
137
+ _globals['_NODEMETADATA_SHARDSENTRY']._serialized_start=4480
138
+ _globals['_NODEMETADATA_SHARDSENTRY']._serialized_end=4568
139
+ _globals['_STRINGLIST']._serialized_start=4590
140
+ _globals['_STRINGLIST']._serialized_end=4617
141
+ _globals['_INDEXRELATION']._serialized_start=4619
142
+ _globals['_INDEXRELATION']._serialized_end=4739
143
+ _globals['_INDEXRELATIONS']._serialized_start=4741
144
+ _globals['_INDEXRELATIONS']._serialized_end=4806
137
145
  # @@protoc_insertion_point(module_scope)
@@ -686,6 +686,24 @@ class Resource(google.protobuf.message.Message):
686
686
  def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
687
687
  def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
688
688
 
689
+ @typing.final
690
+ class FieldRelationsEntry(google.protobuf.message.Message):
691
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
692
+
693
+ KEY_FIELD_NUMBER: builtins.int
694
+ VALUE_FIELD_NUMBER: builtins.int
695
+ key: builtins.str
696
+ @property
697
+ def value(self) -> global___IndexRelations: ...
698
+ def __init__(
699
+ self,
700
+ *,
701
+ key: builtins.str = ...,
702
+ value: global___IndexRelations | None = ...,
703
+ ) -> None: ...
704
+ def HasField(self, field_name: typing.Literal["value", b"value"]) -> builtins.bool: ...
705
+ def ClearField(self, field_name: typing.Literal["key", b"key", "value", b"value"]) -> None: ...
706
+
689
707
  @typing.final
690
708
  class VectorsEntry(google.protobuf.message.Message):
691
709
  DESCRIPTOR: google.protobuf.descriptor.Descriptor
@@ -731,7 +749,9 @@ class Resource(google.protobuf.message.Message):
731
749
  PARAGRAPHS_TO_DELETE_FIELD_NUMBER: builtins.int
732
750
  SENTENCES_TO_DELETE_FIELD_NUMBER: builtins.int
733
751
  VECTOR_PREFIXES_TO_DELETE_FIELD_NUMBER: builtins.int
752
+ RELATION_FIELDS_TO_DELETE_FIELD_NUMBER: builtins.int
734
753
  RELATIONS_FIELD_NUMBER: builtins.int
754
+ FIELD_RELATIONS_FIELD_NUMBER: builtins.int
735
755
  SHARD_ID_FIELD_NUMBER: builtins.int
736
756
  VECTORS_FIELD_NUMBER: builtins.int
737
757
  VECTORS_TO_DELETE_FIELD_NUMBER: builtins.int
@@ -774,10 +794,16 @@ class Resource(google.protobuf.message.Message):
774
794
  def vector_prefixes_to_delete(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___StringList]:
775
795
  """vectorset_id -> [vector_key_prefix, ...]"""
776
796
 
797
+ @property
798
+ def relation_fields_to_delete(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
777
799
  @property
778
800
  def relations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[nucliadb_protos.utils_pb2.Relation]:
779
- """Relations"""
801
+ """Relations
802
+ Soon deprecated
803
+ """
780
804
 
805
+ @property
806
+ def field_relations(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, global___IndexRelations]: ...
781
807
  @property
782
808
  def vectors(self) -> google.protobuf.internal.containers.MessageMap[builtins.str, nucliadb_protos.utils_pb2.UserVectors]:
783
809
  """vectorset is the key"""
@@ -800,14 +826,16 @@ class Resource(google.protobuf.message.Message):
800
826
  paragraphs_to_delete: collections.abc.Iterable[builtins.str] | None = ...,
801
827
  sentences_to_delete: collections.abc.Iterable[builtins.str] | None = ...,
802
828
  vector_prefixes_to_delete: collections.abc.Mapping[builtins.str, global___StringList] | None = ...,
829
+ relation_fields_to_delete: collections.abc.Iterable[builtins.str] | None = ...,
803
830
  relations: collections.abc.Iterable[nucliadb_protos.utils_pb2.Relation] | None = ...,
831
+ field_relations: collections.abc.Mapping[builtins.str, global___IndexRelations] | None = ...,
804
832
  shard_id: builtins.str = ...,
805
833
  vectors: collections.abc.Mapping[builtins.str, nucliadb_protos.utils_pb2.UserVectors] | None = ...,
806
834
  vectors_to_delete: collections.abc.Mapping[builtins.str, nucliadb_protos.utils_pb2.UserVectorsList] | None = ...,
807
835
  security: nucliadb_protos.utils_pb2.Security | None = ...,
808
836
  ) -> None: ...
809
837
  def HasField(self, field_name: typing.Literal["_security", b"_security", "metadata", b"metadata", "resource", b"resource", "security", b"security"]) -> builtins.bool: ...
810
- def ClearField(self, field_name: typing.Literal["_security", b"_security", "labels", b"labels", "metadata", b"metadata", "paragraphs", b"paragraphs", "paragraphs_to_delete", b"paragraphs_to_delete", "relations", b"relations", "resource", b"resource", "security", b"security", "sentences_to_delete", b"sentences_to_delete", "shard_id", b"shard_id", "status", b"status", "texts", b"texts", "vector_prefixes_to_delete", b"vector_prefixes_to_delete", "vectors", b"vectors", "vectors_to_delete", b"vectors_to_delete"]) -> None: ...
838
+ def ClearField(self, field_name: typing.Literal["_security", b"_security", "field_relations", b"field_relations", "labels", b"labels", "metadata", b"metadata", "paragraphs", b"paragraphs", "paragraphs_to_delete", b"paragraphs_to_delete", "relation_fields_to_delete", b"relation_fields_to_delete", "relations", b"relations", "resource", b"resource", "security", b"security", "sentences_to_delete", b"sentences_to_delete", "shard_id", b"shard_id", "status", b"status", "texts", b"texts", "vector_prefixes_to_delete", b"vector_prefixes_to_delete", "vectors", b"vectors", "vectors_to_delete", b"vectors_to_delete"]) -> None: ...
811
839
  def WhichOneof(self, oneof_group: typing.Literal["_security", b"_security"]) -> typing.Literal["security"] | None: ...
812
840
 
813
841
  global___Resource = Resource
@@ -915,3 +943,46 @@ class StringList(google.protobuf.message.Message):
915
943
  def ClearField(self, field_name: typing.Literal["items", b"items"]) -> None: ...
916
944
 
917
945
  global___StringList = StringList
946
+
947
+ @typing.final
948
+ class IndexRelation(google.protobuf.message.Message):
949
+ """Relations as sent and retrieved from the index, with some additional metadata"""
950
+
951
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
952
+
953
+ RELATION_FIELD_NUMBER: builtins.int
954
+ RESOURCE_FIELD_ID_FIELD_NUMBER: builtins.int
955
+ FACETS_FIELD_NUMBER: builtins.int
956
+ resource_field_id: builtins.str
957
+ @property
958
+ def relation(self) -> nucliadb_protos.utils_pb2.Relation: ...
959
+ @property
960
+ def facets(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ...
961
+ def __init__(
962
+ self,
963
+ *,
964
+ relation: nucliadb_protos.utils_pb2.Relation | None = ...,
965
+ resource_field_id: builtins.str | None = ...,
966
+ facets: collections.abc.Iterable[builtins.str] | None = ...,
967
+ ) -> None: ...
968
+ def HasField(self, field_name: typing.Literal["_resource_field_id", b"_resource_field_id", "relation", b"relation", "resource_field_id", b"resource_field_id"]) -> builtins.bool: ...
969
+ def ClearField(self, field_name: typing.Literal["_resource_field_id", b"_resource_field_id", "facets", b"facets", "relation", b"relation", "resource_field_id", b"resource_field_id"]) -> None: ...
970
+ def WhichOneof(self, oneof_group: typing.Literal["_resource_field_id", b"_resource_field_id"]) -> typing.Literal["resource_field_id"] | None: ...
971
+
972
+ global___IndexRelation = IndexRelation
973
+
974
+ @typing.final
975
+ class IndexRelations(google.protobuf.message.Message):
976
+ DESCRIPTOR: google.protobuf.descriptor.Descriptor
977
+
978
+ RELATIONS_FIELD_NUMBER: builtins.int
979
+ @property
980
+ def relations(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___IndexRelation]: ...
981
+ def __init__(
982
+ self,
983
+ *,
984
+ relations: collections.abc.Iterable[global___IndexRelation] | None = ...,
985
+ ) -> None: ...
986
+ def ClearField(self, field_name: typing.Literal["relations", b"relations"]) -> None: ...
987
+
988
+ global___IndexRelations = IndexRelations
@@ -24,6 +24,8 @@ from nucliadb_protos.noderesources_pb2 import (
24
24
  IndexMetadata as IndexMetadata,
25
25
  IndexParagraph as IndexParagraph,
26
26
  IndexParagraphs as IndexParagraphs,
27
+ IndexRelation as IndexRelation,
28
+ IndexRelations as IndexRelations,
27
29
  NodeMetadata as NodeMetadata,
28
30
  ParagraphMetadata as ParagraphMetadata,
29
31
  Position as Position,
@@ -16,6 +16,8 @@ from nucliadb_protos.noderesources_pb2 import (
16
16
  IndexMetadata as IndexMetadata,
17
17
  IndexParagraph as IndexParagraph,
18
18
  IndexParagraphs as IndexParagraphs,
19
+ IndexRelation as IndexRelation,
20
+ IndexRelations as IndexRelations,
19
21
  NodeMetadata as NodeMetadata,
20
22
  ParagraphMetadata as ParagraphMetadata,
21
23
  Position as Position,
@@ -16,6 +16,8 @@ from nucliadb_protos.noderesources_pb2 import (
16
16
  IndexMetadata as IndexMetadata,
17
17
  IndexParagraph as IndexParagraph,
18
18
  IndexParagraphs as IndexParagraphs,
19
+ IndexRelation as IndexRelation,
20
+ IndexRelations as IndexRelations,
19
21
  NodeMetadata as NodeMetadata,
20
22
  ParagraphMetadata as ParagraphMetadata,
21
23
  Position as Position,
@@ -16,6 +16,8 @@ from nucliadb_protos.noderesources_pb2 import (
16
16
  IndexMetadata as IndexMetadata,
17
17
  IndexParagraph as IndexParagraph,
18
18
  IndexParagraphs as IndexParagraphs,
19
+ IndexRelation as IndexRelation,
20
+ IndexRelations as IndexRelations,
19
21
  NodeMetadata as NodeMetadata,
20
22
  ParagraphMetadata as ParagraphMetadata,
21
23
  Position as Position,
@@ -101,6 +101,8 @@ from nucliadb_protos.noderesources_pb2 import (
101
101
  IndexMetadata as IndexMetadata,
102
102
  IndexParagraph as IndexParagraph,
103
103
  IndexParagraphs as IndexParagraphs,
104
+ IndexRelation as IndexRelation,
105
+ IndexRelations as IndexRelations,
104
106
  NodeMetadata as NodeMetadata,
105
107
  ParagraphMetadata as ParagraphMetadata,
106
108
  Position as Position,
@@ -90,6 +90,8 @@ from nucliadb_protos.noderesources_pb2 import (
90
90
  IndexMetadata as IndexMetadata,
91
91
  IndexParagraph as IndexParagraph,
92
92
  IndexParagraphs as IndexParagraphs,
93
+ IndexRelation as IndexRelation,
94
+ IndexRelations as IndexRelations,
93
95
  NodeMetadata as NodeMetadata,
94
96
  ParagraphMetadata as ParagraphMetadata,
95
97
  Position as Position,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: nucliadb_protos
3
- Version: 6.3.4.post3686
3
+ Version: 6.3.4.post3698
4
4
  Summary: Protobuf definitions for nucliadb
5
5
  Author-email: Nuclia <nucliadb@nuclia.com>
6
6
  License: AGPL
@@ -13,21 +13,21 @@ nucliadb_protos/knowledgebox_pb2.py,sha256=POe5_FswhpoCOR1l2AB4IZeYXKCaCiKExa8vK
13
13
  nucliadb_protos/knowledgebox_pb2.pyi,sha256=ddrV26ZGwvKWey2wU3r69cnT5hb9IKe0ZVCFIn-deiI,39708
14
14
  nucliadb_protos/migrations_pb2.py,sha256=tbrT2r8VNKv4emtH31KTTtFj9yMJ8N3V6GemowvbG0o,1152
15
15
  nucliadb_protos/migrations_pb2.pyi,sha256=K1doWaVBMDlpF1pHBdZd97AZKBKynJz6C7uHDYhaJs4,844
16
- nucliadb_protos/nodereader_pb2.py,sha256=IAXejTn6hoOyjkbqZoZLgMYvUUTX04bo2OIVsRAisa0,24437
17
- nucliadb_protos/nodereader_pb2.pyi,sha256=lfE74toOJFoYoY2I26-sLG9FYgi87fyrvcqcmoD-4i4,68932
16
+ nucliadb_protos/nodereader_pb2.py,sha256=QbyapknwY7X9Epr7-fnU8GbHI8_pdPSBd8c7gCePugI,24516
17
+ nucliadb_protos/nodereader_pb2.pyi,sha256=HwBNxD3jhGluTqB9mcFmlp3Ff56I-BMwDGVL0arIyKQ,69391
18
18
  nucliadb_protos/nodereader_pb2_grpc.py,sha256=T67PSk2UBEK1h0LRCHrEIlydxB6xpY0paUBfUL5gS6U,20681
19
- nucliadb_protos/nodereader_pb2_grpc.pyi,sha256=UjPLXlY_Mnp46k-9-wHC0kw9az4qI24O6Uc0WKS-vU4,10171
20
- nucliadb_protos/noderesources_pb2.py,sha256=1l98hF_sQvtitwrH8aeXh8z68Zev_cIF0vMAdhyCg4c,15272
21
- nucliadb_protos/noderesources_pb2.pyi,sha256=B2QtIGUR8dyw-SVt8SwUWtZoEbQPf1SLcJlP0f1L7Kc,37392
19
+ nucliadb_protos/nodereader_pb2_grpc.pyi,sha256=Z2ID_s0lPLy4rIT4_D8jDvPoHD7tS7gPdTqfGp4oneQ,10245
20
+ nucliadb_protos/noderesources_pb2.py,sha256=LnCZbrXvpyK1oYTolLNji8ZFK6LpG3B6keA9JWKGxDs,16359
21
+ nucliadb_protos/noderesources_pb2.pyi,sha256=8-33hVuahFuNfgZxrxtg-YbNxyUXoiU8GhAv8f-3dxg,40779
22
22
  nucliadb_protos/nodewriter_pb2.py,sha256=XUxmGiwlMplQd_Ta11AC0efW4Dty_LJWjINcJ8bLA2w,8735
23
- nucliadb_protos/nodewriter_pb2.pyi,sha256=7Y6Y7yavwqxzAraNjiy3PR5UqHdCcVa02xjaO3JaqQ0,14578
23
+ nucliadb_protos/nodewriter_pb2.pyi,sha256=ZqQB9XRfc2fcO56ArqlnMWXFNnXWEMpciwCzqv307Pg,14652
24
24
  nucliadb_protos/nodewriter_pb2_grpc.py,sha256=m-Mq-lhWlMwnd37mRx1v0kV8j7V0vqGyGVM3RPI3IZs,20793
25
- nucliadb_protos/nodewriter_pb2_grpc.pyi,sha256=Wk6AT0b7T2srHkv3H4IVyKe4Bj0dUnjGOu8mOeotYCs,9173
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
27
  nucliadb_protos/replication_pb2.py,sha256=CD4omXcplPzfJpEdhNRoufUEdPhVA-JTkLF_ra6bxhk,5175
28
- nucliadb_protos/replication_pb2.pyi,sha256=cHPaHL4ccvfSJLvznkEvAiZuvYp8omeWH-NpLT7rmQw,9304
28
+ nucliadb_protos/replication_pb2.pyi,sha256=xZxWLi_T2jynvJskx0UTQSR3poNuJbD7c89E0p5sH3A,9378
29
29
  nucliadb_protos/replication_pb2_grpc.py,sha256=64JFEgvnGLleLNiwprqIwV7DRINjPAFJcojS4nwN4LU,6379
30
- nucliadb_protos/replication_pb2_grpc.pyi,sha256=ms9LK7W17SGSQBFD7DxyPvC-7fV28vV60YBowu8yPYU,3999
30
+ nucliadb_protos/replication_pb2_grpc.pyi,sha256=lvCVDVdzx84xD113JXcLQgmoeEZPcxTcoBe09El-vks,4073
31
31
  nucliadb_protos/resources_pb2.py,sha256=gYHnnVwPZlPh045xY3yHbTTEPoJfMdYPv294vBg5H_Q,37586
32
32
  nucliadb_protos/resources_pb2.pyi,sha256=ZhrOLbtkJUGSMzQmWU2Eo-fAR1UxNKwGWjFCNycLaeA,100494
33
33
  nucliadb_protos/standalone_pb2.py,sha256=1y0x3t9UZai6iPV5KWeUEr7EyDATVk5lF_ihhZwlNwM,2192
@@ -41,10 +41,10 @@ nucliadb_protos/train_pb2_grpc.pyi,sha256=ozo6WrUuLq2LaNAthi6v-ziO29YhH-7lDUPzdg
41
41
  nucliadb_protos/utils_pb2.py,sha256=7_0QLAjCZiao82Z9-GLnbylzOE_AM8at4F7Ie0lewKo,6880
42
42
  nucliadb_protos/utils_pb2.pyi,sha256=gIgrVPlEFImEszIvSltt4bky29yPqEGKZcjyA0oXUlk,19351
43
43
  nucliadb_protos/writer_pb2.py,sha256=ZP_i-N0qB-yJmp61T4D3iXKBCyACgWphSyOXeaWhW_o,31074
44
- nucliadb_protos/writer_pb2.pyi,sha256=aRpfI-mv8OLQoavfYa7W51IHusDtbU4QoZ2Pe-UERwk,76342
44
+ nucliadb_protos/writer_pb2.pyi,sha256=w0HaqAlc5tiUvDZnRoPg-PsUX5w2cL8GLfi-WG-nV6c,76416
45
45
  nucliadb_protos/writer_pb2_grpc.py,sha256=UOXVeYfuqQp8zX_haSK3EjyZcu0J_JNBmMw6uvIo7JI,31184
46
- nucliadb_protos/writer_pb2_grpc.pyi,sha256=51o-ck0-mgy7CNB2NooDUjslpHKEaMlQWi7ebBKh2EI,18999
47
- nucliadb_protos-6.3.4.post3686.dist-info/METADATA,sha256=obBeeGfvzg1i0P6GJjkzScR40O-TAgNqbMYmxslpPd0,824
48
- nucliadb_protos-6.3.4.post3686.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
49
- nucliadb_protos-6.3.4.post3686.dist-info/top_level.txt,sha256=wRP-apvCCaxGnNKXTnYx6tpAPggTof4SZQyoI1b-sjU,16
50
- nucliadb_protos-6.3.4.post3686.dist-info/RECORD,,
46
+ nucliadb_protos/writer_pb2_grpc.pyi,sha256=TE-gUe3I6CBYo7M0R64sIhhHJe9cD7OfutdpvPEk3lw,19073
47
+ nucliadb_protos-6.3.4.post3698.dist-info/METADATA,sha256=lYvlntx53H0Cz0-vaNeOHByI3jNNfyH9tQPH27ZVmJg,824
48
+ nucliadb_protos-6.3.4.post3698.dist-info/WHEEL,sha256=beeZ86-EfXScwlR_HKu4SllMC9wUEj_8Z_4FJ3egI2w,91
49
+ nucliadb_protos-6.3.4.post3698.dist-info/top_level.txt,sha256=wRP-apvCCaxGnNKXTnYx6tpAPggTof4SZQyoI1b-sjU,16
50
+ nucliadb_protos-6.3.4.post3698.dist-info/RECORD,,