From 1330a47fc12883c472031e1daf0859de887d17d0 Mon Sep 17 00:00:00 2001 From: Javier Torres Date: Tue, 16 Jan 2024 12:21:19 +0100 Subject: [PATCH] Return NER family in entity suggestions (#1729) Return NER family in entity suggestions --- .gitignore | 1 + nucliadb/nucliadb/search/search/merge.py | 15 +- .../tests/integration/test_entities.py | 2 +- .../tests/integration/test_suggest.py | 23 +- nucliadb_models/nucliadb_models/search.py | 7 +- nucliadb_node/src/shards/shard_reader.rs | 17 +- nucliadb_node/tests/test_suggest.rs | 23 +- nucliadb_protos/nodereader.proto | 2 +- .../python/nucliadb_protos/audit_pb2.py | 40 +- .../python/nucliadb_protos/dataset_pb2.py | 88 ++-- .../nucliadb_protos/knowledgebox_pb2.py | 156 +++---- .../python/nucliadb_protos/migrations_pb2.py | 12 +- .../python/nucliadb_protos/nodereader_pb2.py | 222 +++++----- .../python/nucliadb_protos/nodereader_pb2.pyi | 10 +- .../nucliadb_protos/noderesources_pb2.py | 144 +++---- .../python/nucliadb_protos/nodewriter_pb2.py | 48 +-- .../python/nucliadb_protos/replication_pb2.py | 44 +- .../python/nucliadb_protos/resources_pb2.py | 388 +++++++++--------- .../python/nucliadb_protos/standalone_pb2.py | 28 +- .../python/nucliadb_protos/train_pb2.py | 104 ++--- .../python/nucliadb_protos/utils_pb2.py | 88 ++-- .../python/nucliadb_protos/writer_pb2.py | 360 ++++++++-------- nucliadb_protos/rust/src/nodereader.rs | 4 +- nucliadb_relations2/src/reader.rs | 8 +- 24 files changed, 925 insertions(+), 909 deletions(-) diff --git a/.gitignore b/.gitignore index 083b99e05a..fec3b1ac11 100644 --- a/.gitignore +++ b/.gitignore @@ -23,6 +23,7 @@ target .egg-info *.so venv/ +.venv/ nucliadb/.mypy_cache lib share diff --git a/nucliadb/nucliadb/search/search/merge.py b/nucliadb/nucliadb/search/search/merge.py index 60c1144bd5..8b544676a6 100644 --- a/nucliadb/nucliadb/search/search/merge.py +++ b/nucliadb/nucliadb/search/search/merge.py @@ -19,7 +19,7 @@ # import datetime import math -from typing import Any, Optional, Union +from typing import Any, Optional, Set, Union from nucliadb_protos.nodereader_pb2 import ( DocumentResult, @@ -53,6 +53,7 @@ Paragraph, Paragraphs, RelatedEntities, + RelatedEntity, RelationDirection, RelationNodeTypeMap, Relations, @@ -594,13 +595,15 @@ async def merge_paragraphs_results( async def merge_suggest_entities_results( suggest_responses: list[SuggestResponse], ) -> RelatedEntities: - merge = RelatedEntities(entities=[], total=0) - + unique_entities: Set[RelatedEntity] = set() for response in suggest_responses: - merge.entities.extend(response.entities.entities) - merge.total += response.entities.total + response_entities = ( + RelatedEntity(family=e.subtype, value=e.value) + for e in response.entity_results.nodes + ) + unique_entities.update(response_entities) - return merge + return RelatedEntities(entities=list(unique_entities), total=len(unique_entities)) async def merge_suggest_results( diff --git a/nucliadb/nucliadb/tests/integration/test_entities.py b/nucliadb/nucliadb/tests/integration/test_entities.py index 02708269bc..8ce97934ee 100644 --- a/nucliadb/nucliadb/tests/integration/test_entities.py +++ b/nucliadb/nucliadb/tests/integration/test_entities.py @@ -431,7 +431,7 @@ async def test_entities_indexing( assert resp.status_code == 200 body = resp.json() - entities = set(body["entities"]["entities"]) + entities = set((e["value"] for e in body["entities"]["entities"])) # BUG? why is "domestic cat" not appearing in the results? assert entities == {"dog", "dolphin"} # assert entities == {"dog", "domestic cat", "dolphin"} diff --git a/nucliadb/nucliadb/tests/integration/test_suggest.py b/nucliadb/nucliadb/tests/integration/test_suggest.py index e69046f35c..2d9a44add3 100644 --- a/nucliadb/nucliadb/tests/integration/test_suggest.py +++ b/nucliadb/nucliadb/tests/integration/test_suggest.py @@ -212,16 +212,19 @@ async def test_suggest_related_entities( ) assert resp.status_code == 201 + def assert_expected_entities(body, expected): + assert set((e["value"] for e in body["entities"]["entities"])) == expected + # Test simple suggestions resp = await nucliadb_reader.get(f"/kb/{knowledgebox}/suggest?query=Ann") assert resp.status_code == 200 body = resp.json() - assert set(body["entities"]["entities"]) == {"Anna", "Anthony"} + assert_expected_entities(body, {"Anna", "Anthony"}) resp = await nucliadb_reader.get(f"/kb/{knowledgebox}/suggest?query=joh") assert resp.status_code == 200 body = resp.json() - assert set(body["entities"]["entities"]) == {"John"} + assert_expected_entities(body, {"John"}) resp = await nucliadb_reader.get(f"/kb/{knowledgebox}/suggest?query=xxxxx") assert resp.status_code == 200 @@ -233,33 +236,33 @@ async def test_suggest_related_entities( resp = await nucliadb_reader.get(f"/kb/{knowledgebox}/suggest?query=bar") assert resp.status_code == 200 body = resp.json() - assert set(body["entities"]["entities"]) == {"Barcelona", "Bárcenas"} + assert_expected_entities(body, {"Barcelona", "Bárcenas"}) resp = await nucliadb_reader.get(f"/kb/{knowledgebox}/suggest?query=Bar") assert resp.status_code == 200 body = resp.json() - assert set(body["entities"]["entities"]) == {"Barcelona", "Bárcenas"} + assert_expected_entities(body, {"Barcelona", "Bárcenas"}) resp = await nucliadb_reader.get(f"/kb/{knowledgebox}/suggest?query=BAR") assert resp.status_code == 200 body = resp.json() - assert set(body["entities"]["entities"]) == {"Barcelona", "Bárcenas"} + assert_expected_entities(body, {"Barcelona", "Bárcenas"}) resp = await nucliadb_reader.get(f"/kb/{knowledgebox}/suggest?query=BÄR") assert resp.status_code == 200 body = resp.json() - assert set(body["entities"]["entities"]) == {"Barcelona", "Bárcenas"} + assert_expected_entities(body, {"Barcelona", "Bárcenas"}) resp = await nucliadb_reader.get(f"/kb/{knowledgebox}/suggest?query=BáR") assert resp.status_code == 200 body = resp.json() - assert set(body["entities"]["entities"]) == {"Barcelona", "Bárcenas"} + assert_expected_entities(body, {"Barcelona", "Bárcenas"}) # Test multiple word suggest and ordering resp = await nucliadb_reader.get(f"/kb/{knowledgebox}/suggest?query=Solomon+Is") assert resp.status_code == 200 body = resp.json() - assert set(body["entities"]["entities"]) == {"Solomon Islands", "Israel"} + assert_expected_entities(body, {"Solomon Islands", "Israel"}) @pytest.mark.asyncio @@ -350,8 +353,8 @@ def assert_expected_paragraphs(response): def assert_expected_entities(response): expected = {"Anna", "Anthony"} - assert response["entities"]["total"] == len(expected) - assert set(response["entities"]["entities"]) == expected + assert len(response["entities"]) == len(expected) + assert set((e["value"] for e in response["entities"]["entities"])) == expected resp = await nucliadb_reader.get( f"/kb/{knowledgebox}/suggest", diff --git a/nucliadb_models/nucliadb_models/search.py b/nucliadb_models/nucliadb_models/search.py index f5730a4d5e..9b8dd58a50 100644 --- a/nucliadb_models/nucliadb_models/search.py +++ b/nucliadb_models/nucliadb_models/search.py @@ -228,9 +228,14 @@ class Relations(BaseModel): # graph: List[RelationPath] +class RelatedEntity(BaseModel, frozen=True): + family: str + value: str + + class RelatedEntities(BaseModel): total: int = 0 - entities: List[str] = [] + entities: List[RelatedEntity] = [] class ResourceSearchResults(JsonBaseModel): diff --git a/nucliadb_node/src/shards/shard_reader.rs b/nucliadb_node/src/shards/shard_reader.rs index b9b731dd84..24803515a2 100644 --- a/nucliadb_node/src/shards/shard_reader.rs +++ b/nucliadb_node/src/shards/shard_reader.rs @@ -29,7 +29,7 @@ use nucliadb_core::protos::shard_created::{ }; use nucliadb_core::protos::{ DocumentSearchRequest, DocumentSearchResponse, EdgeList, GetShardRequest, - ParagraphSearchRequest, ParagraphSearchResponse, RelatedEntities, RelationPrefixSearchRequest, + ParagraphSearchRequest, ParagraphSearchResponse, RelationPrefixSearchRequest, RelationSearchRequest, RelationSearchResponse, SearchRequest, SearchResponse, Shard, ShardFile, ShardFileChunk, ShardFileList, StreamRequest, SuggestFeatures, SuggestRequest, SuggestResponse, TypeList, VectorSearchRequest, VectorSearchResponse, @@ -38,8 +38,9 @@ use nucliadb_core::query_planner::QueryPlan; use nucliadb_core::thread::*; use nucliadb_core::tracing::{self, *}; use nucliadb_procs::measure; -use nucliadb_protos::nodereader::RelationNodeFilter; +use nucliadb_protos::nodereader::{RelationNodeFilter, RelationPrefixSearchResponse}; use nucliadb_protos::utils::relation_node::NodeType; +use nucliadb_relations2::reader::HashedRelationNode; use crate::disk_structure::*; use crate::shards::metadata::ShardMetadata; @@ -362,13 +363,12 @@ impl ShardReader { .into_iter() .flatten() // unwrap errors and continue with successful results .flat_map(|response| response.prefix) - .flat_map(|prefix_response| prefix_response.nodes.into_iter()) - .map(|node| node.value); + .flat_map(|prefix_response| prefix_response.nodes.into_iter()); // remove duplicate entities - let mut seen = HashSet::new(); + let mut seen: HashSet = HashSet::new(); let mut ent_result = entities.collect::>(); - ent_result.retain(|e| seen.insert(e.clone())); + ent_result.retain(|e| seen.insert(e.clone().into())); ent_result }; @@ -403,10 +403,7 @@ impl ShardReader { }; if let Some(entities) = entities { - response.entities = Some(RelatedEntities { - total: entities.len() as u32, - entities, - }) + response.entity_results = Some(RelationPrefixSearchResponse { nodes: entities }); } Ok(response) diff --git a/nucliadb_node/tests/test_suggest.rs b/nucliadb_node/tests/test_suggest.rs index f98ff4d21b..c28bce5404 100644 --- a/nucliadb_node/tests/test_suggest.rs +++ b/nucliadb_node/tests/test_suggest.rs @@ -203,10 +203,10 @@ async fn test_suggest_entities( // multiple words and result ordering let response = suggest_entities(&mut reader, &shard.id, "Solomon Isa").await; - assert!(response.entities.is_some()); - assert_eq!(response.entities.as_ref().unwrap().total, 2); - assert!(response.entities.as_ref().unwrap().entities[0] == *"Solomon Islands"); - assert!(response.entities.as_ref().unwrap().entities[1] == *"Israel"); + assert!(response.entity_results.is_some()); + assert_eq!(response.entity_results.as_ref().unwrap().nodes.len(), 2); + assert!(response.entity_results.as_ref().unwrap().nodes[0].value == *"Solomon Islands"); + assert!(response.entity_results.as_ref().unwrap().nodes[1].value == *"Israel"); // Does not find resources by UUID prefix let pap_uuid = &shard.resources["pap"]; @@ -238,7 +238,7 @@ async fn test_suggest_features( let mut reader = node.reader_client(); let response = suggest_paragraphs(&mut reader, &shard.id, "ann").await; - assert!(response.entities.is_none()); + assert!(response.entity_results.is_none()); expect_paragraphs( &response, &[(&shard.resources["little prince"], "/a/summary")], @@ -358,20 +358,21 @@ async fn suggest_entities( } fn expect_entities(response: &SuggestResponse, expected: &[&str]) { - assert!(response.entities.is_some()); + assert!(response.entity_results.is_some()); assert_eq!( - response.entities.as_ref().unwrap().total as usize, + response.entity_results.as_ref().unwrap().nodes.len(), expected.len(), "Response entities don't match expected ones: {:?} != {:?}", - response.entities, + response.entity_results, expected, ); for entity in expected { assert!(response - .entities + .entity_results .as_ref() .unwrap() - .entities - .contains(&entity.to_string())); + .nodes + .iter() + .any(|e| &e.value == entity)); } } diff --git a/nucliadb_protos/nodereader.proto b/nucliadb_protos/nodereader.proto index cce458dc3e..75e6308488 100644 --- a/nucliadb_protos/nodereader.proto +++ b/nucliadb_protos/nodereader.proto @@ -368,7 +368,7 @@ message SuggestResponse { repeated string ematches = 4; // Entities related with the query - RelatedEntities entities = 5; + RelationPrefixSearchResponse entity_results = 6; } message SearchResponse { diff --git a/nucliadb_protos/python/nucliadb_protos/audit_pb2.py b/nucliadb_protos/python/nucliadb_protos/audit_pb2.py index 1ac6662bfa..d4b60e02d6 100644 --- a/nucliadb_protos/python/nucliadb_protos/audit_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/audit_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/audit.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -34,27 +34,27 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bnucliadb_protos/audit.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a nucliadb_protos/nodereader.proto\x1a\x1fnucliadb_protos/resources.proto\"\xde\x01\n\nAuditField\x12\'\n\x06\x61\x63tion\x18\x01 \x01(\x0e\x32\x17.AuditField.FieldAction\x12\x0c\n\x04size\x18\x02 \x01(\x05\x12\x16\n\nsize_delta\x18\x03 \x01(\x05\x42\x02\x18\x01\x12\x10\n\x08\x66ield_id\x18\x04 \x01(\t\x12(\n\nfield_type\x18\x05 \x01(\x0e\x32\x14.resources.FieldType\x12\x10\n\x08\x66ilename\x18\x06 \x01(\t\"3\n\x0b\x46ieldAction\x12\t\n\x05\x41\x44\x44\x45\x44\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\"4\n\x0e\x41uditKBCounter\x12\x12\n\nparagraphs\x18\x02 \x01(\x03\x12\x0e\n\x06\x66ields\x18\x03 \x01(\x03\"+\n\x0b\x43hatContext\x12\x0e\n\x06\x61uthor\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\"\x94\x01\n\tChatAudit\x12\x10\n\x08question\x18\x01 \x01(\t\x12\x13\n\x06\x61nswer\x18\x02 \x01(\tH\x00\x88\x01\x01\x12\x1f\n\x12rephrased_question\x18\x03 \x01(\tH\x01\x88\x01\x01\x12\x1d\n\x07\x63ontext\x18\x04 \x03(\x0b\x32\x0c.ChatContextB\t\n\x07_answerB\x15\n\x13_rephrased_question\"\xf0\x04\n\x0c\x41uditRequest\x12%\n\x04type\x18\x01 \x01(\x0e\x32\x17.AuditRequest.AuditType\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12\x0e\n\x06userid\x18\x04 \x01(\t\x12(\n\x04time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0e\n\x06\x66ields\x18\x06 \x03(\t\x12)\n\x06search\x18\x07 \x01(\x0b\x32\x19.nodereader.SearchRequest\x12\x0e\n\x06timeit\x18\x08 \x01(\x02\x12\x0e\n\x06origin\x18\t \x01(\t\x12\x0b\n\x03rid\x18\n \x01(\t\x12\x0c\n\x04task\x18\x0b \x01(\t\x12\x11\n\tresources\x18\x0c \x01(\x05\x12*\n\x0e\x66ield_metadata\x18\r \x03(\x0b\x32\x12.resources.FieldID\x12!\n\x0c\x66ields_audit\x18\x0e \x03(\x0b\x32\x0b.AuditField\x12 \n\x0b\x63lient_type\x18\x10 \x01(\x0e\x32\x0b.ClientType\x12\x10\n\x08trace_id\x18\x11 \x01(\t\x12#\n\nkb_counter\x18\x12 \x01(\x0b\x32\x0f.AuditKBCounter\x12\x18\n\x04\x63hat\x18\x13 \x01(\x0b\x32\n.ChatAudit\"\xa5\x01\n\tAuditType\x12\x0b\n\x07VISITED\x10\x00\x12\x0c\n\x08MODIFIED\x10\x01\x12\x0b\n\x07\x44\x45LETED\x10\x02\x12\x07\n\x03NEW\x10\x03\x12\x0b\n\x07STARTED\x10\x04\x12\x0b\n\x07STOPPED\x10\x05\x12\n\n\x06SEARCH\x10\x06\x12\r\n\tPROCESSED\x10\x07\x12\x0e\n\nKB_DELETED\x10\x08\x12\x0b\n\x07SUGGEST\x10\t\x12\x0b\n\x07INDEXED\x10\n\x12\x08\n\x04\x43HAT\x10\x0b*\\\n\nClientType\x12\x07\n\x03\x41PI\x10\x00\x12\x07\n\x03WEB\x10\x01\x12\n\n\x06WIDGET\x10\x02\x12\x0b\n\x07\x44\x45SKTOP\x10\x03\x12\r\n\tDASHBOARD\x10\x04\x12\x14\n\x10\x43HROME_EXTENSION\x10\x05\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.audit_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.audit_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None _AUDITFIELD.fields_by_name['size_delta']._options = None _AUDITFIELD.fields_by_name['size_delta']._serialized_options = b'\030\001' - _CLIENTTYPE._serialized_start=1233 - _CLIENTTYPE._serialized_end=1325 - _AUDITFIELD._serialized_start=132 - _AUDITFIELD._serialized_end=354 - _AUDITFIELD_FIELDACTION._serialized_start=303 - _AUDITFIELD_FIELDACTION._serialized_end=354 - _AUDITKBCOUNTER._serialized_start=356 - _AUDITKBCOUNTER._serialized_end=408 - _CHATCONTEXT._serialized_start=410 - _CHATCONTEXT._serialized_end=453 - _CHATAUDIT._serialized_start=456 - _CHATAUDIT._serialized_end=604 - _AUDITREQUEST._serialized_start=607 - _AUDITREQUEST._serialized_end=1231 - _AUDITREQUEST_AUDITTYPE._serialized_start=1066 - _AUDITREQUEST_AUDITTYPE._serialized_end=1231 + _globals['_CLIENTTYPE']._serialized_start=1233 + _globals['_CLIENTTYPE']._serialized_end=1325 + _globals['_AUDITFIELD']._serialized_start=132 + _globals['_AUDITFIELD']._serialized_end=354 + _globals['_AUDITFIELD_FIELDACTION']._serialized_start=303 + _globals['_AUDITFIELD_FIELDACTION']._serialized_end=354 + _globals['_AUDITKBCOUNTER']._serialized_start=356 + _globals['_AUDITKBCOUNTER']._serialized_end=408 + _globals['_CHATCONTEXT']._serialized_start=410 + _globals['_CHATCONTEXT']._serialized_end=453 + _globals['_CHATAUDIT']._serialized_start=456 + _globals['_CHATAUDIT']._serialized_end=604 + _globals['_AUDITREQUEST']._serialized_start=607 + _globals['_AUDITREQUEST']._serialized_end=1231 + _globals['_AUDITREQUEST_AUDITTYPE']._serialized_start=1066 + _globals['_AUDITREQUEST_AUDITTYPE']._serialized_end=1231 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/dataset_pb2.py b/nucliadb_protos/python/nucliadb_protos/dataset_pb2.py index aee28efdd8..24d4f3ee71 100644 --- a/nucliadb_protos/python/nucliadb_protos/dataset_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/dataset_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/dataset.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,49 +15,49 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1dnucliadb_protos/dataset.proto\x12\x07\x64\x61taset\"\x83\x01\n\x08TrainSet\x12\x1f\n\x04type\x18\x01 \x01(\x0e\x32\x11.dataset.TaskType\x12(\n\x06\x66ilter\x18\x02 \x01(\x0b\x32\x18.dataset.TrainSet.Filter\x12\x12\n\nbatch_size\x18\x03 \x01(\x05\x1a\x18\n\x06\x46ilter\x12\x0e\n\x06labels\x18\x01 \x03(\t\"L\n\x05Label\x12\x10\n\x08labelset\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\"\n\x06origin\x18\x03 \x01(\x0e\x32\x12.dataset.LabelFrom\"9\n\tTextLabel\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x1e\n\x06labels\x18\x02 \x03(\x0b\x32\x0e.dataset.Label\"F\n\x16MultipleTextSameLabels\x12\x0c\n\x04text\x18\x01 \x03(\t\x12\x1e\n\x06labels\x18\x02 \x03(\x0b\x32\x0e.dataset.Label\"<\n\x18\x46ieldClassificationBatch\x12 \n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x12.dataset.TextLabel\"@\n\x1cParagraphClassificationBatch\x12 \n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x12.dataset.TextLabel\"L\n\x1bSentenceClassificationBatch\x12-\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x1f.dataset.MultipleTextSameLabels\"4\n\x14TokensClassification\x12\r\n\x05token\x18\x01 \x03(\t\x12\r\n\x05label\x18\x02 \x03(\t\"G\n\x18TokenClassificationBatch\x12+\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x1d.dataset.TokensClassification\";\n\x13ImageClassification\x12\x12\n\nselections\x18\x01 \x01(\t\x12\x10\n\x08page_uri\x18\x02 \x01(\t\"F\n\x18ImageClassificationBatch\x12*\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x1c.dataset.ImageClassification\"/\n\x13ParagraphStreamItem\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04text\x18\x02 \x01(\t\"E\n\x17ParagraphStreamingBatch\x12*\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32\x1c.dataset.ParagraphStreamItem\">\n\x08Question\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x10\n\x08language\x18\x02 \x01(\t\x12\x12\n\nparagraphs\x18\x03 \x03(\t\"<\n\x06\x41nswer\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x10\n\x08language\x18\x02 \x01(\t\x12\x12\n\nparagraphs\x18\x03 \x03(\t\"{\n\x18QuestionAnswerStreamItem\x12#\n\x08question\x18\x01 \x01(\x0b\x32\x11.dataset.Question\x12\x1f\n\x06\x61nswer\x18\x02 \x01(\x0b\x32\x0f.dataset.Answer\x12\x19\n\x11\x63\x61ncelled_by_user\x18\x03 \x01(\x08\"O\n\x1cQuestionAnswerStreamingBatch\x12/\n\x04\x64\x61ta\x18\x01 \x03(\x0b\x32!.dataset.QuestionAnswerStreamItem*\xcb\x01\n\x08TaskType\x12\x18\n\x14\x46IELD_CLASSIFICATION\x10\x00\x12\x1c\n\x18PARAGRAPH_CLASSIFICATION\x10\x01\x12\x1b\n\x17SENTENCE_CLASSIFICATION\x10\x02\x12\x18\n\x14TOKEN_CLASSIFICATION\x10\x03\x12\x18\n\x14IMAGE_CLASSIFICATION\x10\x04\x12\x17\n\x13PARAGRAPH_STREAMING\x10\x05\x12\x1d\n\x19QUESTION_ANSWER_STREAMING\x10\x06*3\n\tLabelFrom\x12\r\n\tPARAGRAPH\x10\x00\x12\t\n\x05\x46IELD\x10\x01\x12\x0c\n\x08RESOURCE\x10\x02\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.dataset_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.dataset_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _TASKTYPE._serialized_start=1304 - _TASKTYPE._serialized_end=1507 - _LABELFROM._serialized_start=1509 - _LABELFROM._serialized_end=1560 - _TRAINSET._serialized_start=43 - _TRAINSET._serialized_end=174 - _TRAINSET_FILTER._serialized_start=150 - _TRAINSET_FILTER._serialized_end=174 - _LABEL._serialized_start=176 - _LABEL._serialized_end=252 - _TEXTLABEL._serialized_start=254 - _TEXTLABEL._serialized_end=311 - _MULTIPLETEXTSAMELABELS._serialized_start=313 - _MULTIPLETEXTSAMELABELS._serialized_end=383 - _FIELDCLASSIFICATIONBATCH._serialized_start=385 - _FIELDCLASSIFICATIONBATCH._serialized_end=445 - _PARAGRAPHCLASSIFICATIONBATCH._serialized_start=447 - _PARAGRAPHCLASSIFICATIONBATCH._serialized_end=511 - _SENTENCECLASSIFICATIONBATCH._serialized_start=513 - _SENTENCECLASSIFICATIONBATCH._serialized_end=589 - _TOKENSCLASSIFICATION._serialized_start=591 - _TOKENSCLASSIFICATION._serialized_end=643 - _TOKENCLASSIFICATIONBATCH._serialized_start=645 - _TOKENCLASSIFICATIONBATCH._serialized_end=716 - _IMAGECLASSIFICATION._serialized_start=718 - _IMAGECLASSIFICATION._serialized_end=777 - _IMAGECLASSIFICATIONBATCH._serialized_start=779 - _IMAGECLASSIFICATIONBATCH._serialized_end=849 - _PARAGRAPHSTREAMITEM._serialized_start=851 - _PARAGRAPHSTREAMITEM._serialized_end=898 - _PARAGRAPHSTREAMINGBATCH._serialized_start=900 - _PARAGRAPHSTREAMINGBATCH._serialized_end=969 - _QUESTION._serialized_start=971 - _QUESTION._serialized_end=1033 - _ANSWER._serialized_start=1035 - _ANSWER._serialized_end=1095 - _QUESTIONANSWERSTREAMITEM._serialized_start=1097 - _QUESTIONANSWERSTREAMITEM._serialized_end=1220 - _QUESTIONANSWERSTREAMINGBATCH._serialized_start=1222 - _QUESTIONANSWERSTREAMINGBATCH._serialized_end=1301 + _globals['_TASKTYPE']._serialized_start=1304 + _globals['_TASKTYPE']._serialized_end=1507 + _globals['_LABELFROM']._serialized_start=1509 + _globals['_LABELFROM']._serialized_end=1560 + _globals['_TRAINSET']._serialized_start=43 + _globals['_TRAINSET']._serialized_end=174 + _globals['_TRAINSET_FILTER']._serialized_start=150 + _globals['_TRAINSET_FILTER']._serialized_end=174 + _globals['_LABEL']._serialized_start=176 + _globals['_LABEL']._serialized_end=252 + _globals['_TEXTLABEL']._serialized_start=254 + _globals['_TEXTLABEL']._serialized_end=311 + _globals['_MULTIPLETEXTSAMELABELS']._serialized_start=313 + _globals['_MULTIPLETEXTSAMELABELS']._serialized_end=383 + _globals['_FIELDCLASSIFICATIONBATCH']._serialized_start=385 + _globals['_FIELDCLASSIFICATIONBATCH']._serialized_end=445 + _globals['_PARAGRAPHCLASSIFICATIONBATCH']._serialized_start=447 + _globals['_PARAGRAPHCLASSIFICATIONBATCH']._serialized_end=511 + _globals['_SENTENCECLASSIFICATIONBATCH']._serialized_start=513 + _globals['_SENTENCECLASSIFICATIONBATCH']._serialized_end=589 + _globals['_TOKENSCLASSIFICATION']._serialized_start=591 + _globals['_TOKENSCLASSIFICATION']._serialized_end=643 + _globals['_TOKENCLASSIFICATIONBATCH']._serialized_start=645 + _globals['_TOKENCLASSIFICATIONBATCH']._serialized_end=716 + _globals['_IMAGECLASSIFICATION']._serialized_start=718 + _globals['_IMAGECLASSIFICATION']._serialized_end=777 + _globals['_IMAGECLASSIFICATIONBATCH']._serialized_start=779 + _globals['_IMAGECLASSIFICATIONBATCH']._serialized_end=849 + _globals['_PARAGRAPHSTREAMITEM']._serialized_start=851 + _globals['_PARAGRAPHSTREAMITEM']._serialized_end=898 + _globals['_PARAGRAPHSTREAMINGBATCH']._serialized_start=900 + _globals['_PARAGRAPHSTREAMINGBATCH']._serialized_end=969 + _globals['_QUESTION']._serialized_start=971 + _globals['_QUESTION']._serialized_end=1033 + _globals['_ANSWER']._serialized_start=1035 + _globals['_ANSWER']._serialized_end=1095 + _globals['_QUESTIONANSWERSTREAMITEM']._serialized_start=1097 + _globals['_QUESTIONANSWERSTREAMITEM']._serialized_end=1220 + _globals['_QUESTIONANSWERSTREAMINGBATCH']._serialized_start=1222 + _globals['_QUESTIONANSWERSTREAMINGBATCH']._serialized_end=1301 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/knowledgebox_pb2.py b/nucliadb_protos/python/nucliadb_protos/knowledgebox_pb2.py index dd0217da89..6c8cad0ae0 100644 --- a/nucliadb_protos/python/nucliadb_protos/knowledgebox_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/knowledgebox_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/knowledgebox.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -17,10 +17,10 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\"nucliadb_protos/knowledgebox.proto\x12\x0cknowledgebox\x1a\x1bnucliadb_protos/utils.proto\",\n\x0eKnowledgeBoxID\x12\x0c\n\x04slug\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\"\x96\x01\n\x0cKnowledgeBox\x12\x0c\n\x04slug\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x38\n\x06status\x18\x03 \x01(\x0e\x32(.knowledgebox.KnowledgeBoxResponseStatus\x12\x30\n\x06\x63onfig\x18\x04 \x01(\x0b\x32 .knowledgebox.KnowledgeBoxConfig\"\xe1\x01\n\x12KnowledgeBoxConfig\x12\r\n\x05title\x18\x01 \x01(\t\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x17\n\x0f\x65nabled_filters\x18\x03 \x03(\t\x12\x18\n\x10\x65nabled_insights\x18\x04 \x03(\t\x12\x0c\n\x04slug\x18\x05 \x01(\t\x12\x1b\n\x0f\x64isable_vectors\x18\x06 \x01(\x08\x42\x02\x18\x01\x12\x19\n\x11migration_version\x18\x07 \x01(\x03\x12.\n\x0frelease_channel\x18\x08 \x01(\x0e\x32\x15.utils.ReleaseChannel\"\xab\x02\n\x0fKnowledgeBoxNew\x12\x0c\n\x04slug\x18\x01 \x01(\t\x12\x30\n\x06\x63onfig\x18\x02 \x01(\x0b\x32 .knowledgebox.KnowledgeBoxConfig\x12\x11\n\tforceuuid\x18\x03 \x01(\t\x12+\n\nsimilarity\x18\x04 \x01(\x0e\x32\x17.utils.VectorSimilarity\x12\x1d\n\x10vector_dimension\x18\x05 \x01(\x05H\x00\x88\x01\x01\x12\x1e\n\x11\x64\x65\x66\x61ult_min_score\x18\x06 \x01(\x02H\x01\x88\x01\x01\x12.\n\x0frelease_channel\x18\x07 \x01(\x0e\x32\x15.utils.ReleaseChannelB\x13\n\x11_vector_dimensionB\x14\n\x12_default_min_score\"a\n\x17NewKnowledgeBoxResponse\x12\x38\n\x06status\x18\x01 \x01(\x0e\x32(.knowledgebox.KnowledgeBoxResponseStatus\x12\x0c\n\x04uuid\x18\x02 \x01(\t\"$\n\x12KnowledgeBoxPrefix\x12\x0e\n\x06prefix\x18\x01 \x01(\t\"b\n\x12KnowledgeBoxUpdate\x12\x0c\n\x04slug\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x30\n\x06\x63onfig\x18\x03 \x01(\x0b\x32 .knowledgebox.KnowledgeBoxConfig\"d\n\x1aUpdateKnowledgeBoxResponse\x12\x38\n\x06status\x18\x01 \x01(\x0e\x32(.knowledgebox.KnowledgeBoxResponseStatus\x12\x0c\n\x04uuid\x18\x02 \x01(\t\"\x18\n\x16GCKnowledgeBoxResponse\"V\n\x1a\x44\x65leteKnowledgeBoxResponse\x12\x38\n\x06status\x18\x01 \x01(\x0e\x32(.knowledgebox.KnowledgeBoxResponseStatus\"\x1d\n\x1b\x43leanedKnowledgeBoxResponse\"B\n\x05Label\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0f\n\x07related\x18\x03 \x01(\t\x12\x0c\n\x04text\x18\x04 \x01(\t\x12\x0b\n\x03uri\x18\x05 \x01(\t\"\xe0\x01\n\x08LabelSet\x12\r\n\x05title\x18\x01 \x01(\t\x12\r\n\x05\x63olor\x18\x02 \x01(\t\x12#\n\x06labels\x18\x03 \x03(\x0b\x32\x13.knowledgebox.Label\x12\x10\n\x08multiple\x18\x04 \x01(\x08\x12\x31\n\x04kind\x18\x05 \x03(\x0e\x32#.knowledgebox.LabelSet.LabelSetKind\"L\n\x0cLabelSetKind\x12\r\n\tRESOURCES\x10\x00\x12\x0e\n\nPARAGRAPHS\x10\x01\x12\r\n\tSENTENCES\x10\x02\x12\x0e\n\nSELECTIONS\x10\x03\"\x87\x01\n\x06Labels\x12\x34\n\x08labelset\x18\x01 \x03(\x0b\x32\".knowledgebox.Labels.LabelsetEntry\x1aG\n\rLabelsetEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.knowledgebox.LabelSet:\x02\x38\x01\"L\n\x06\x45ntity\x12\r\n\x05value\x18\x02 \x01(\t\x12\x12\n\nrepresents\x18\x04 \x03(\t\x12\x0e\n\x06merged\x18\x03 \x01(\x08\x12\x0f\n\x07\x64\x65leted\x18\x05 \x01(\x08\"D\n\x14\x45ntitiesGroupSummary\x12\r\n\x05title\x18\x02 \x01(\t\x12\r\n\x05\x63olor\x18\x03 \x01(\t\x12\x0e\n\x06\x63ustom\x18\x04 \x01(\x08\"\xc1\x01\n\rEntitiesGroup\x12;\n\x08\x65ntities\x18\x01 \x03(\x0b\x32).knowledgebox.EntitiesGroup.EntitiesEntry\x12\r\n\x05title\x18\x02 \x01(\t\x12\r\n\x05\x63olor\x18\x03 \x01(\t\x12\x0e\n\x06\x63ustom\x18\x04 \x01(\x08\x1a\x45\n\rEntitiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.knowledgebox.Entity:\x02\x38\x01\"0\n\x15\x44\x65letedEntitiesGroups\x12\x17\n\x0f\x65ntities_groups\x18\x01 \x03(\t\"\xaf\x01\n\x0e\x45ntitiesGroups\x12I\n\x0f\x65ntities_groups\x18\x01 \x03(\x0b\x32\x30.knowledgebox.EntitiesGroups.EntitiesGroupsEntry\x1aR\n\x13\x45ntitiesGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12*\n\x05value\x18\x02 \x01(\x0b\x32\x1b.knowledgebox.EntitiesGroup:\x02\x38\x01\"\xf3\x03\n\x19\x45ntityGroupDuplicateIndex\x12T\n\x0f\x65ntities_groups\x18\x01 \x03(\x0b\x32;.knowledgebox.EntityGroupDuplicateIndex.EntitiesGroupsEntry\x1a&\n\x10\x45ntityDuplicates\x12\x12\n\nduplicates\x18\x01 \x03(\t\x1a\xe1\x01\n\x15\x45ntityGroupDuplicates\x12]\n\x08\x65ntities\x18\x01 \x03(\x0b\x32K.knowledgebox.EntityGroupDuplicateIndex.EntityGroupDuplicates.EntitiesEntry\x1ai\n\rEntitiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12G\n\x05value\x18\x02 \x01(\x0b\x32\x38.knowledgebox.EntityGroupDuplicateIndex.EntityDuplicates:\x02\x38\x01\x1at\n\x13\x45ntitiesGroupsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12L\n\x05value\x18\x02 \x01(\x0b\x32=.knowledgebox.EntityGroupDuplicateIndex.EntityGroupDuplicates:\x02\x38\x01\"K\n\tVectorSet\x12\x11\n\tdimension\x18\x01 \x01(\x05\x12+\n\nsimilarity\x18\x02 \x01(\x0e\x32\x17.utils.VectorSimilarity\"\x96\x01\n\nVectorSets\x12<\n\nvectorsets\x18\x01 \x03(\x0b\x32(.knowledgebox.VectorSets.VectorsetsEntry\x1aJ\n\x0fVectorsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12&\n\x05value\x18\x02 \x01(\x0b\x32\x17.knowledgebox.VectorSet:\x02\x38\x01\" \n\x0cTermSynonyms\x12\x10\n\x08synonyms\x18\x01 \x03(\t\"\x86\x01\n\x08Synonyms\x12\x30\n\x05terms\x18\x01 \x03(\x0b\x32!.knowledgebox.Synonyms.TermsEntry\x1aH\n\nTermsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.knowledgebox.TermSynonyms:\x02\x38\x01\"\xb7\x01\n\x15SemanticModelMetadata\x12\x34\n\x13similarity_function\x18\x01 \x01(\x0e\x32\x17.utils.VectorSimilarity\x12\x1d\n\x10vector_dimension\x18\x02 \x01(\x05H\x00\x88\x01\x01\x12\x1e\n\x11\x64\x65\x66\x61ult_min_score\x18\x03 \x01(\x02H\x01\x88\x01\x01\x42\x13\n\x11_vector_dimensionB\x14\n\x12_default_min_score\"\x8c\x01\n\x0fKBConfiguration\x12\x16\n\x0esemantic_model\x18\x02 \x01(\t\x12\x18\n\x10generative_model\x18\x03 \x01(\t\x12\x11\n\tner_model\x18\x04 \x01(\t\x12\x1b\n\x13\x61nonymization_model\x18\x05 \x01(\t\x12\x17\n\x0fvisual_labeling\x18\x06 \x01(\t*K\n\x1aKnowledgeBoxResponseStatus\x12\x06\n\x02OK\x10\x00\x12\x0c\n\x08\x43ONFLICT\x10\x01\x12\x0c\n\x08NOTFOUND\x10\x02\x12\t\n\x05\x45RROR\x10\x03P\x00\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.knowledgebox_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.knowledgebox_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None _KNOWLEDGEBOXCONFIG.fields_by_name['disable_vectors']._options = None _KNOWLEDGEBOXCONFIG.fields_by_name['disable_vectors']._serialized_options = b'\030\001' @@ -38,78 +38,78 @@ _VECTORSETS_VECTORSETSENTRY._serialized_options = b'8\001' _SYNONYMS_TERMSENTRY._options = None _SYNONYMS_TERMSENTRY._serialized_options = b'8\001' - _KNOWLEDGEBOXRESPONSESTATUS._serialized_start=3531 - _KNOWLEDGEBOXRESPONSESTATUS._serialized_end=3606 - _KNOWLEDGEBOXID._serialized_start=81 - _KNOWLEDGEBOXID._serialized_end=125 - _KNOWLEDGEBOX._serialized_start=128 - _KNOWLEDGEBOX._serialized_end=278 - _KNOWLEDGEBOXCONFIG._serialized_start=281 - _KNOWLEDGEBOXCONFIG._serialized_end=506 - _KNOWLEDGEBOXNEW._serialized_start=509 - _KNOWLEDGEBOXNEW._serialized_end=808 - _NEWKNOWLEDGEBOXRESPONSE._serialized_start=810 - _NEWKNOWLEDGEBOXRESPONSE._serialized_end=907 - _KNOWLEDGEBOXPREFIX._serialized_start=909 - _KNOWLEDGEBOXPREFIX._serialized_end=945 - _KNOWLEDGEBOXUPDATE._serialized_start=947 - _KNOWLEDGEBOXUPDATE._serialized_end=1045 - _UPDATEKNOWLEDGEBOXRESPONSE._serialized_start=1047 - _UPDATEKNOWLEDGEBOXRESPONSE._serialized_end=1147 - _GCKNOWLEDGEBOXRESPONSE._serialized_start=1149 - _GCKNOWLEDGEBOXRESPONSE._serialized_end=1173 - _DELETEKNOWLEDGEBOXRESPONSE._serialized_start=1175 - _DELETEKNOWLEDGEBOXRESPONSE._serialized_end=1261 - _CLEANEDKNOWLEDGEBOXRESPONSE._serialized_start=1263 - _CLEANEDKNOWLEDGEBOXRESPONSE._serialized_end=1292 - _LABEL._serialized_start=1294 - _LABEL._serialized_end=1360 - _LABELSET._serialized_start=1363 - _LABELSET._serialized_end=1587 - _LABELSET_LABELSETKIND._serialized_start=1511 - _LABELSET_LABELSETKIND._serialized_end=1587 - _LABELS._serialized_start=1590 - _LABELS._serialized_end=1725 - _LABELS_LABELSETENTRY._serialized_start=1654 - _LABELS_LABELSETENTRY._serialized_end=1725 - _ENTITY._serialized_start=1727 - _ENTITY._serialized_end=1803 - _ENTITIESGROUPSUMMARY._serialized_start=1805 - _ENTITIESGROUPSUMMARY._serialized_end=1873 - _ENTITIESGROUP._serialized_start=1876 - _ENTITIESGROUP._serialized_end=2069 - _ENTITIESGROUP_ENTITIESENTRY._serialized_start=2000 - _ENTITIESGROUP_ENTITIESENTRY._serialized_end=2069 - _DELETEDENTITIESGROUPS._serialized_start=2071 - _DELETEDENTITIESGROUPS._serialized_end=2119 - _ENTITIESGROUPS._serialized_start=2122 - _ENTITIESGROUPS._serialized_end=2297 - _ENTITIESGROUPS_ENTITIESGROUPSENTRY._serialized_start=2215 - _ENTITIESGROUPS_ENTITIESGROUPSENTRY._serialized_end=2297 - _ENTITYGROUPDUPLICATEINDEX._serialized_start=2300 - _ENTITYGROUPDUPLICATEINDEX._serialized_end=2799 - _ENTITYGROUPDUPLICATEINDEX_ENTITYDUPLICATES._serialized_start=2415 - _ENTITYGROUPDUPLICATEINDEX_ENTITYDUPLICATES._serialized_end=2453 - _ENTITYGROUPDUPLICATEINDEX_ENTITYGROUPDUPLICATES._serialized_start=2456 - _ENTITYGROUPDUPLICATEINDEX_ENTITYGROUPDUPLICATES._serialized_end=2681 - _ENTITYGROUPDUPLICATEINDEX_ENTITYGROUPDUPLICATES_ENTITIESENTRY._serialized_start=2576 - _ENTITYGROUPDUPLICATEINDEX_ENTITYGROUPDUPLICATES_ENTITIESENTRY._serialized_end=2681 - _ENTITYGROUPDUPLICATEINDEX_ENTITIESGROUPSENTRY._serialized_start=2683 - _ENTITYGROUPDUPLICATEINDEX_ENTITIESGROUPSENTRY._serialized_end=2799 - _VECTORSET._serialized_start=2801 - _VECTORSET._serialized_end=2876 - _VECTORSETS._serialized_start=2879 - _VECTORSETS._serialized_end=3029 - _VECTORSETS_VECTORSETSENTRY._serialized_start=2955 - _VECTORSETS_VECTORSETSENTRY._serialized_end=3029 - _TERMSYNONYMS._serialized_start=3031 - _TERMSYNONYMS._serialized_end=3063 - _SYNONYMS._serialized_start=3066 - _SYNONYMS._serialized_end=3200 - _SYNONYMS_TERMSENTRY._serialized_start=3128 - _SYNONYMS_TERMSENTRY._serialized_end=3200 - _SEMANTICMODELMETADATA._serialized_start=3203 - _SEMANTICMODELMETADATA._serialized_end=3386 - _KBCONFIGURATION._serialized_start=3389 - _KBCONFIGURATION._serialized_end=3529 + _globals['_KNOWLEDGEBOXRESPONSESTATUS']._serialized_start=3531 + _globals['_KNOWLEDGEBOXRESPONSESTATUS']._serialized_end=3606 + _globals['_KNOWLEDGEBOXID']._serialized_start=81 + _globals['_KNOWLEDGEBOXID']._serialized_end=125 + _globals['_KNOWLEDGEBOX']._serialized_start=128 + _globals['_KNOWLEDGEBOX']._serialized_end=278 + _globals['_KNOWLEDGEBOXCONFIG']._serialized_start=281 + _globals['_KNOWLEDGEBOXCONFIG']._serialized_end=506 + _globals['_KNOWLEDGEBOXNEW']._serialized_start=509 + _globals['_KNOWLEDGEBOXNEW']._serialized_end=808 + _globals['_NEWKNOWLEDGEBOXRESPONSE']._serialized_start=810 + _globals['_NEWKNOWLEDGEBOXRESPONSE']._serialized_end=907 + _globals['_KNOWLEDGEBOXPREFIX']._serialized_start=909 + _globals['_KNOWLEDGEBOXPREFIX']._serialized_end=945 + _globals['_KNOWLEDGEBOXUPDATE']._serialized_start=947 + _globals['_KNOWLEDGEBOXUPDATE']._serialized_end=1045 + _globals['_UPDATEKNOWLEDGEBOXRESPONSE']._serialized_start=1047 + _globals['_UPDATEKNOWLEDGEBOXRESPONSE']._serialized_end=1147 + _globals['_GCKNOWLEDGEBOXRESPONSE']._serialized_start=1149 + _globals['_GCKNOWLEDGEBOXRESPONSE']._serialized_end=1173 + _globals['_DELETEKNOWLEDGEBOXRESPONSE']._serialized_start=1175 + _globals['_DELETEKNOWLEDGEBOXRESPONSE']._serialized_end=1261 + _globals['_CLEANEDKNOWLEDGEBOXRESPONSE']._serialized_start=1263 + _globals['_CLEANEDKNOWLEDGEBOXRESPONSE']._serialized_end=1292 + _globals['_LABEL']._serialized_start=1294 + _globals['_LABEL']._serialized_end=1360 + _globals['_LABELSET']._serialized_start=1363 + _globals['_LABELSET']._serialized_end=1587 + _globals['_LABELSET_LABELSETKIND']._serialized_start=1511 + _globals['_LABELSET_LABELSETKIND']._serialized_end=1587 + _globals['_LABELS']._serialized_start=1590 + _globals['_LABELS']._serialized_end=1725 + _globals['_LABELS_LABELSETENTRY']._serialized_start=1654 + _globals['_LABELS_LABELSETENTRY']._serialized_end=1725 + _globals['_ENTITY']._serialized_start=1727 + _globals['_ENTITY']._serialized_end=1803 + _globals['_ENTITIESGROUPSUMMARY']._serialized_start=1805 + _globals['_ENTITIESGROUPSUMMARY']._serialized_end=1873 + _globals['_ENTITIESGROUP']._serialized_start=1876 + _globals['_ENTITIESGROUP']._serialized_end=2069 + _globals['_ENTITIESGROUP_ENTITIESENTRY']._serialized_start=2000 + _globals['_ENTITIESGROUP_ENTITIESENTRY']._serialized_end=2069 + _globals['_DELETEDENTITIESGROUPS']._serialized_start=2071 + _globals['_DELETEDENTITIESGROUPS']._serialized_end=2119 + _globals['_ENTITIESGROUPS']._serialized_start=2122 + _globals['_ENTITIESGROUPS']._serialized_end=2297 + _globals['_ENTITIESGROUPS_ENTITIESGROUPSENTRY']._serialized_start=2215 + _globals['_ENTITIESGROUPS_ENTITIESGROUPSENTRY']._serialized_end=2297 + _globals['_ENTITYGROUPDUPLICATEINDEX']._serialized_start=2300 + _globals['_ENTITYGROUPDUPLICATEINDEX']._serialized_end=2799 + _globals['_ENTITYGROUPDUPLICATEINDEX_ENTITYDUPLICATES']._serialized_start=2415 + _globals['_ENTITYGROUPDUPLICATEINDEX_ENTITYDUPLICATES']._serialized_end=2453 + _globals['_ENTITYGROUPDUPLICATEINDEX_ENTITYGROUPDUPLICATES']._serialized_start=2456 + _globals['_ENTITYGROUPDUPLICATEINDEX_ENTITYGROUPDUPLICATES']._serialized_end=2681 + _globals['_ENTITYGROUPDUPLICATEINDEX_ENTITYGROUPDUPLICATES_ENTITIESENTRY']._serialized_start=2576 + _globals['_ENTITYGROUPDUPLICATEINDEX_ENTITYGROUPDUPLICATES_ENTITIESENTRY']._serialized_end=2681 + _globals['_ENTITYGROUPDUPLICATEINDEX_ENTITIESGROUPSENTRY']._serialized_start=2683 + _globals['_ENTITYGROUPDUPLICATEINDEX_ENTITIESGROUPSENTRY']._serialized_end=2799 + _globals['_VECTORSET']._serialized_start=2801 + _globals['_VECTORSET']._serialized_end=2876 + _globals['_VECTORSETS']._serialized_start=2879 + _globals['_VECTORSETS']._serialized_end=3029 + _globals['_VECTORSETS_VECTORSETSENTRY']._serialized_start=2955 + _globals['_VECTORSETS_VECTORSETSENTRY']._serialized_end=3029 + _globals['_TERMSYNONYMS']._serialized_start=3031 + _globals['_TERMSYNONYMS']._serialized_end=3063 + _globals['_SYNONYMS']._serialized_start=3066 + _globals['_SYNONYMS']._serialized_end=3200 + _globals['_SYNONYMS_TERMSENTRY']._serialized_start=3128 + _globals['_SYNONYMS_TERMSENTRY']._serialized_end=3200 + _globals['_SEMANTICMODELMETADATA']._serialized_start=3203 + _globals['_SEMANTICMODELMETADATA']._serialized_end=3386 + _globals['_KBCONFIGURATION']._serialized_start=3389 + _globals['_KBCONFIGURATION']._serialized_end=3529 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/migrations_pb2.py b/nucliadb_protos/python/nucliadb_protos/migrations_pb2.py index ec779defcd..dc1e0d1e32 100644 --- a/nucliadb_protos/python/nucliadb_protos/migrations_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/migrations_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/migrations.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,11 +15,11 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n nucliadb_protos/migrations.proto\x12\nmigrations\"@\n\rMigrationInfo\x12\x17\n\x0f\x63urrent_version\x18\x01 \x01(\x04\x12\x16\n\x0etarget_version\x18\x02 \x01(\x04\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.migrations_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.migrations_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _MIGRATIONINFO._serialized_start=48 - _MIGRATIONINFO._serialized_end=112 + _globals['_MIGRATIONINFO']._serialized_start=48 + _globals['_MIGRATIONINFO']._serialized_end=112 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/nodereader_pb2.py b/nucliadb_protos/python/nucliadb_protos/nodereader_pb2.py index baaaceffea..a4b0bb0c3c 100644 --- a/nucliadb_protos/python/nucliadb_protos/nodereader_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/nodereader_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/nodereader.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -22,12 +22,12 @@ from nucliadb_protos.noderesources_pb2 import * from nucliadb_protos.utils_pb2 import * -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\"8\n\x06\x46ilter\x12\x14\n\x0c\x66ield_labels\x18\x01 \x03(\t\x12\x18\n\x10paragraph_labels\x18\x02 \x03(\t\"\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\"\xd2\x01\n\nTimestamps\x12\x31\n\rfrom_modified\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bto_modified\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0c\x66rom_created\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nto_created\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\")\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\"\xb5\x03\n\x15\x44ocumentSearchRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x02 \x01(\t\x12\x0e\n\x06\x66ields\x18\x03 \x03(\t\x12\"\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x12.nodereader.Filter\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*\n\ntimestamps\x18\t \x01(\x0b\x32\x16.nodereader.Timestamps\x12\x12\n\x06reload\x18\n \x01(\x08\x42\x02\x18\x01\x12\x14\n\x0conly_faceted\x18\x0f \x01(\x08\x12@\n\x0bwith_status\x18\x10 \x01(\x0e\x32&.noderesources.Resource.ResourceStatusH\x00\x88\x01\x01\x12\x1b\n\x0e\x61\x64vanced_query\x18\x11 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_with_statusB\x11\n\x0f_advanced_query\"\xa0\x03\n\x16ParagraphSearchRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0e\n\x06\x66ields\x18\x03 \x03(\t\x12\x0c\n\x04\x62ody\x18\x04 \x01(\t\x12\"\n\x06\x66ilter\x18\x05 \x01(\x0b\x32\x12.nodereader.Filter\x12\"\n\x05order\x18\x07 \x01(\x0b\x32\x13.nodereader.OrderBy\x12$\n\x07\x66\x61\x63\x65ted\x18\x08 \x01(\x0b\x32\x13.nodereader.Faceted\x12\x13\n\x0bpage_number\x18\n \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x0b \x01(\x05\x12*\n\ntimestamps\x18\x0c \x01(\x0b\x32\x16.nodereader.Timestamps\x12\x12\n\x06reload\x18\r \x01(\x08\x42\x02\x18\x01\x12\x17\n\x0fwith_duplicates\x18\x0e \x01(\x08\x12\x14\n\x0conly_faceted\x18\x0f \x01(\x08\x12\x1b\n\x0e\x61\x64vanced_query\x18\x10 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x0bkey_filters\x18\x11 \x03(\tB\x11\n\x0f_advanced_query\",\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\"\xf8\x01\n\x13VectorSearchRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06vector\x18\x02 \x03(\x02\x12\x14\n\x0c\x66ield_labels\x18\x03 \x03(\t\x12\x18\n\x10paragraph_labels\x18\x12 \x03(\t\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\x12\x12\n\x06reload\x18\r \x01(\x08\x42\x02\x18\x01\x12\x17\n\x0fwith_duplicates\x18\x0e \x01(\x08\x12\x12\n\nvector_set\x18\x0f \x01(\t\x12\x13\n\x0bkey_filters\x18\x10 \x03(\t\x12\x11\n\tmin_score\x18\x11 \x01(\x02\"&\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\"c\n\x1bRelationPrefixSearchRequest\x12\x0e\n\x06prefix\x18\x01 \x01(\t\x12\x34\n\x0cnode_filters\x18\x02 \x03(\x0b\x32\x1e.nodereader.RelationNodeFilter\"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\"\xad\x01\n\x15RelationSearchRequest\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x12\n\x06reload\x18\x05 \x01(\x08\x42\x02\x18\x01\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\"\xaa\x06\n\rSearchRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x03(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\t\x12\"\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x12.nodereader.Filter\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*\n\ntimestamps\x18\t \x01(\x0b\x32\x16.nodereader.Timestamps\x12\x0e\n\x06vector\x18\n \x03(\x02\x12\x11\n\tvectorset\x18\x0f \x01(\t\x12\x12\n\x06reload\x18\x0b \x01(\x08\x42\x02\x18\x01\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\x0bwith_status\x18\x11 \x01(\x0e\x32&.noderesources.Resource.ResourceStatusH\x01\x88\x01\x01\x12\x38\n\trelations\x18\x13 \x01(\x0b\x32!.nodereader.RelationSearchRequestB\x02\x18\x01\x12@\n\x0frelation_prefix\x18\x14 \x01(\x0b\x32\'.nodereader.RelationPrefixSearchRequest\x12>\n\x11relation_subgraph\x18\x15 \x01(\x0b\x32#.nodereader.EntitiesSubgraphRequest\x12\x13\n\x0bkey_filters\x18\x16 \x03(\t\x12\x11\n\tmin_score\x18\x17 \x01(\x02\x12&\n\x08security\x18\x18 \x01(\x0b\x32\x0f.utils.SecurityH\x02\x88\x01\x01\x42\x11\n\x0f_advanced_queryB\x0e\n\x0c_with_statusB\x0b\n\t_security\"\xbc\x01\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\"\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x12.nodereader.Filter\x12*\n\ntimestamps\x18\x04 \x01(\x0b\x32\x16.nodereader.Timestamps\x12\x0e\n\x06\x66ields\x18\x05 \x03(\t\"2\n\x0fRelatedEntities\x12\x10\n\x08\x65ntities\x18\x01 \x03(\t\x12\r\n\x05total\x18\x02 \x01(\r\"\x9e\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\x08\x65ntities\x18\x05 \x01(\x0b\x32\x1b.nodereader.RelatedEntities\"\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\x16RelationTypeListMember\x12/\n\twith_type\x18\x01 \x01(\x0e\x32\x1c.utils.RelationNode.NodeType\x12\x14\n\x0cwith_subtype\x18\x02 \x01(\t\"<\n\x08TypeList\x12\x30\n\x04list\x18\x01 \x03(\x0b\x32\".nodereader.RelationTypeListMember\"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\"\xab\x01\n\rStreamRequest\x12\x32\n\x12\x66ilter__deprecated\x18\x01 \x01(\x0b\x32\x12.nodereader.FilterB\x02\x18\x01\x12\x12\n\x06reload\x18\x02 \x01(\x08\x42\x02\x18\x01\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\x0fSuggestFeatures\x12\x0c\n\x08\x45NTITIES\x10\x00\x12\x0e\n\nPARAGRAPHS\x10\x01\x32\x85\n\n\nNodeReader\x12?\n\x08GetShard\x12\x1b.nodereader.GetShardRequest\x1a\x14.noderesources.Shard\"\x00\x12Y\n\x0e\x44ocumentSearch\x12!.nodereader.DocumentSearchRequest\x1a\".nodereader.DocumentSearchResponse\"\x00\x12\\\n\x0fParagraphSearch\x12\".nodereader.ParagraphSearchRequest\x1a#.nodereader.ParagraphSearchResponse\"\x00\x12S\n\x0cVectorSearch\x12\x1f.nodereader.VectorSearchRequest\x1a .nodereader.VectorSearchResponse\"\x00\x12Y\n\x0eRelationSearch\x12!.nodereader.RelationSearchRequest\x1a\".nodereader.RelationSearchResponse\"\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?\n\tVectorIds\x12\x16.noderesources.ShardId\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?\n\rRelationTypes\x12\x16.noderesources.ShardId\x1a\x14.nodereader.TypeList\"\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') +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\"8\n\x06\x46ilter\x12\x14\n\x0c\x66ield_labels\x18\x01 \x03(\t\x12\x18\n\x10paragraph_labels\x18\x02 \x03(\t\"\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\"\xd2\x01\n\nTimestamps\x12\x31\n\rfrom_modified\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bto_modified\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0c\x66rom_created\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12.\n\nto_created\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\")\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\"\xb5\x03\n\x15\x44ocumentSearchRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04\x62ody\x18\x02 \x01(\t\x12\x0e\n\x06\x66ields\x18\x03 \x03(\t\x12\"\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x12.nodereader.Filter\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*\n\ntimestamps\x18\t \x01(\x0b\x32\x16.nodereader.Timestamps\x12\x12\n\x06reload\x18\n \x01(\x08\x42\x02\x18\x01\x12\x14\n\x0conly_faceted\x18\x0f \x01(\x08\x12@\n\x0bwith_status\x18\x10 \x01(\x0e\x32&.noderesources.Resource.ResourceStatusH\x00\x88\x01\x01\x12\x1b\n\x0e\x61\x64vanced_query\x18\x11 \x01(\tH\x01\x88\x01\x01\x42\x0e\n\x0c_with_statusB\x11\n\x0f_advanced_query\"\xa0\x03\n\x16ParagraphSearchRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12\x0e\n\x06\x66ields\x18\x03 \x03(\t\x12\x0c\n\x04\x62ody\x18\x04 \x01(\t\x12\"\n\x06\x66ilter\x18\x05 \x01(\x0b\x32\x12.nodereader.Filter\x12\"\n\x05order\x18\x07 \x01(\x0b\x32\x13.nodereader.OrderBy\x12$\n\x07\x66\x61\x63\x65ted\x18\x08 \x01(\x0b\x32\x13.nodereader.Faceted\x12\x13\n\x0bpage_number\x18\n \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x0b \x01(\x05\x12*\n\ntimestamps\x18\x0c \x01(\x0b\x32\x16.nodereader.Timestamps\x12\x12\n\x06reload\x18\r \x01(\x08\x42\x02\x18\x01\x12\x17\n\x0fwith_duplicates\x18\x0e \x01(\x08\x12\x14\n\x0conly_faceted\x18\x0f \x01(\x08\x12\x1b\n\x0e\x61\x64vanced_query\x18\x10 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x0bkey_filters\x18\x11 \x03(\tB\x11\n\x0f_advanced_query\",\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\"\xf8\x01\n\x13VectorSearchRequest\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0e\n\x06vector\x18\x02 \x03(\x02\x12\x14\n\x0c\x66ield_labels\x18\x03 \x03(\t\x12\x18\n\x10paragraph_labels\x18\x12 \x03(\t\x12\x13\n\x0bpage_number\x18\x04 \x01(\x05\x12\x17\n\x0fresult_per_page\x18\x05 \x01(\x05\x12\x12\n\x06reload\x18\r \x01(\x08\x42\x02\x18\x01\x12\x17\n\x0fwith_duplicates\x18\x0e \x01(\x08\x12\x12\n\nvector_set\x18\x0f \x01(\t\x12\x13\n\x0bkey_filters\x18\x10 \x03(\t\x12\x11\n\tmin_score\x18\x11 \x01(\x02\"&\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\"c\n\x1bRelationPrefixSearchRequest\x12\x0e\n\x06prefix\x18\x01 \x01(\t\x12\x34\n\x0cnode_filters\x18\x02 \x03(\x0b\x32\x1e.nodereader.RelationNodeFilter\"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\"\xad\x01\n\x15RelationSearchRequest\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x12\n\x06reload\x18\x05 \x01(\x08\x42\x02\x18\x01\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\"\xaa\x06\n\rSearchRequest\x12\r\n\x05shard\x18\x01 \x01(\t\x12\x0e\n\x06\x66ields\x18\x02 \x03(\t\x12\x0c\n\x04\x62ody\x18\x03 \x01(\t\x12\"\n\x06\x66ilter\x18\x04 \x01(\x0b\x32\x12.nodereader.Filter\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*\n\ntimestamps\x18\t \x01(\x0b\x32\x16.nodereader.Timestamps\x12\x0e\n\x06vector\x18\n \x03(\x02\x12\x11\n\tvectorset\x18\x0f \x01(\t\x12\x12\n\x06reload\x18\x0b \x01(\x08\x42\x02\x18\x01\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\x0bwith_status\x18\x11 \x01(\x0e\x32&.noderesources.Resource.ResourceStatusH\x01\x88\x01\x01\x12\x38\n\trelations\x18\x13 \x01(\x0b\x32!.nodereader.RelationSearchRequestB\x02\x18\x01\x12@\n\x0frelation_prefix\x18\x14 \x01(\x0b\x32\'.nodereader.RelationPrefixSearchRequest\x12>\n\x11relation_subgraph\x18\x15 \x01(\x0b\x32#.nodereader.EntitiesSubgraphRequest\x12\x13\n\x0bkey_filters\x18\x16 \x03(\t\x12\x11\n\tmin_score\x18\x17 \x01(\x02\x12&\n\x08security\x18\x18 \x01(\x0b\x32\x0f.utils.SecurityH\x02\x88\x01\x01\x42\x11\n\x0f_advanced_queryB\x0e\n\x0c_with_statusB\x0b\n\t_security\"\xbc\x01\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\"\n\x06\x66ilter\x18\x03 \x01(\x0b\x32\x12.nodereader.Filter\x12*\n\ntimestamps\x18\x04 \x01(\x0b\x32\x16.nodereader.Timestamps\x12\x0e\n\x06\x66ields\x18\x05 \x03(\t\"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\x16RelationTypeListMember\x12/\n\twith_type\x18\x01 \x01(\x0e\x32\x1c.utils.RelationNode.NodeType\x12\x14\n\x0cwith_subtype\x18\x02 \x01(\t\"<\n\x08TypeList\x12\x30\n\x04list\x18\x01 \x03(\x0b\x32\".nodereader.RelationTypeListMember\"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\"\xab\x01\n\rStreamRequest\x12\x32\n\x12\x66ilter__deprecated\x18\x01 \x01(\x0b\x32\x12.nodereader.FilterB\x02\x18\x01\x12\x12\n\x06reload\x18\x02 \x01(\x08\x42\x02\x18\x01\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\x0fSuggestFeatures\x12\x0c\n\x08\x45NTITIES\x10\x00\x12\x0e\n\nPARAGRAPHS\x10\x01\x32\x85\n\n\nNodeReader\x12?\n\x08GetShard\x12\x1b.nodereader.GetShardRequest\x1a\x14.noderesources.Shard\"\x00\x12Y\n\x0e\x44ocumentSearch\x12!.nodereader.DocumentSearchRequest\x1a\".nodereader.DocumentSearchResponse\"\x00\x12\\\n\x0fParagraphSearch\x12\".nodereader.ParagraphSearchRequest\x1a#.nodereader.ParagraphSearchResponse\"\x00\x12S\n\x0cVectorSearch\x12\x1f.nodereader.VectorSearchRequest\x1a .nodereader.VectorSearchResponse\"\x00\x12Y\n\x0eRelationSearch\x12!.nodereader.RelationSearchRequest\x1a\".nodereader.RelationSearchResponse\"\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?\n\tVectorIds\x12\x16.noderesources.ShardId\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?\n\rRelationTypes\x12\x16.noderesources.ShardId\x1a\x14.nodereader.TypeList\"\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') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.nodereader_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.nodereader_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None _ORDERBY.fields_by_name['field']._options = None _ORDERBY.fields_by_name['field']._serialized_options = b'\030\001' @@ -51,110 +51,110 @@ _STREAMREQUEST.fields_by_name['filter__deprecated']._serialized_options = b'\030\001' _STREAMREQUEST.fields_by_name['reload']._options = None _STREAMREQUEST.fields_by_name['reload']._serialized_options = b'\030\001' - _SUGGESTFEATURES._serialized_start=6864 - _SUGGESTFEATURES._serialized_end=6911 - _FILTER._serialized_start=147 - _FILTER._serialized_end=203 - _STREAMFILTER._serialized_start=206 - _STREAMFILTER._serialized_end=336 - _STREAMFILTER_CONJUNCTION._serialized_start=297 - _STREAMFILTER_CONJUNCTION._serialized_end=336 - _FACETED._serialized_start=338 - _FACETED._serialized_end=363 - _ORDERBY._serialized_start=366 - _ORDERBY._serialized_end=561 - _ORDERBY_ORDERTYPE._serialized_start=490 - _ORDERBY_ORDERTYPE._serialized_end=520 - _ORDERBY_ORDERFIELD._serialized_start=522 - _ORDERBY_ORDERFIELD._serialized_end=561 - _TIMESTAMPS._serialized_start=564 - _TIMESTAMPS._serialized_end=774 - _FACETRESULT._serialized_start=776 - _FACETRESULT._serialized_end=817 - _FACETRESULTS._serialized_start=819 - _FACETRESULTS._serialized_end=880 - _DOCUMENTSEARCHREQUEST._serialized_start=883 - _DOCUMENTSEARCHREQUEST._serialized_end=1320 - _PARAGRAPHSEARCHREQUEST._serialized_start=1323 - _PARAGRAPHSEARCHREQUEST._serialized_end=1739 - _RESULTSCORE._serialized_start=1741 - _RESULTSCORE._serialized_end=1785 - _DOCUMENTRESULT._serialized_start=1787 - _DOCUMENTRESULT._serialized_end=1888 - _DOCUMENTSEARCHRESPONSE._serialized_start=1891 - _DOCUMENTSEARCHRESPONSE._serialized_end=2206 - _DOCUMENTSEARCHRESPONSE_FACETSENTRY._serialized_start=2135 - _DOCUMENTSEARCHRESPONSE_FACETSENTRY._serialized_end=2206 - _PARAGRAPHRESULT._serialized_start=2209 - _PARAGRAPHRESULT._serialized_end=2457 - _PARAGRAPHSEARCHRESPONSE._serialized_start=2460 - _PARAGRAPHSEARCHRESPONSE._serialized_end=2820 - _PARAGRAPHSEARCHRESPONSE_FACETSENTRY._serialized_start=2135 - _PARAGRAPHSEARCHRESPONSE_FACETSENTRY._serialized_end=2206 - _VECTORSEARCHREQUEST._serialized_start=2823 - _VECTORSEARCHREQUEST._serialized_end=3071 - _DOCUMENTVECTORIDENTIFIER._serialized_start=3073 - _DOCUMENTVECTORIDENTIFIER._serialized_end=3111 - _DOCUMENTSCORED._serialized_start=3114 - _DOCUMENTSCORED._serialized_end=3266 - _VECTORSEARCHRESPONSE._serialized_start=3268 - _VECTORSEARCHRESPONSE._serialized_end=3383 - _RELATIONNODEFILTER._serialized_start=3385 - _RELATIONNODEFILTER._serialized_end=3498 - _RELATIONEDGEFILTER._serialized_start=3501 - _RELATIONEDGEFILTER._serialized_end=3650 - _RELATIONPREFIXSEARCHREQUEST._serialized_start=3652 - _RELATIONPREFIXSEARCHREQUEST._serialized_end=3751 - _RELATIONPREFIXSEARCHRESPONSE._serialized_start=3753 - _RELATIONPREFIXSEARCHRESPONSE._serialized_end=3819 - _ENTITIESSUBGRAPHREQUEST._serialized_start=3822 - _ENTITIESSUBGRAPHREQUEST._serialized_end=4085 - _ENTITIESSUBGRAPHREQUEST_DELETEDENTITIES._serialized_start=4015 - _ENTITIESSUBGRAPHREQUEST_DELETEDENTITIES._serialized_end=4075 - _ENTITIESSUBGRAPHRESPONSE._serialized_start=4087 - _ENTITIESSUBGRAPHRESPONSE._serialized_end=4149 - _RELATIONSEARCHREQUEST._serialized_start=4152 - _RELATIONSEARCHREQUEST._serialized_end=4325 - _RELATIONSEARCHRESPONSE._serialized_start=4328 - _RELATIONSEARCHRESPONSE._serialized_end=4466 - _SEARCHREQUEST._serialized_start=4469 - _SEARCHREQUEST._serialized_end=5279 - _SUGGESTREQUEST._serialized_start=5282 - _SUGGESTREQUEST._serialized_end=5470 - _RELATEDENTITIES._serialized_start=5472 - _RELATEDENTITIES._serialized_end=5522 - _SUGGESTRESPONSE._serialized_start=5525 - _SUGGESTRESPONSE._serialized_end=5683 - _SEARCHRESPONSE._serialized_start=5686 - _SEARCHRESPONSE._serialized_end=5916 - _IDCOLLECTION._serialized_start=5918 - _IDCOLLECTION._serialized_end=5945 - _RELATIONEDGE._serialized_start=5947 - _RELATIONEDGE._serialized_end=6028 - _EDGELIST._serialized_start=6030 - _EDGELIST._serialized_end=6080 - _RELATIONTYPELISTMEMBER._serialized_start=6082 - _RELATIONTYPELISTMEMBER._serialized_end=6177 - _TYPELIST._serialized_start=6179 - _TYPELIST._serialized_end=6239 - _GETSHARDREQUEST._serialized_start=6241 - _GETSHARDREQUEST._serialized_end=6319 - _PARAGRAPHITEM._serialized_start=6321 - _PARAGRAPHITEM._serialized_end=6364 - _DOCUMENTITEM._serialized_start=6366 - _DOCUMENTITEM._serialized_end=6425 - _STREAMREQUEST._serialized_start=6428 - _STREAMREQUEST._serialized_end=6599 - _GETSHARDFILESREQUEST._serialized_start=6601 - _GETSHARDFILESREQUEST._serialized_end=6641 - _SHARDFILELIST._serialized_start=6643 - _SHARDFILELIST._serialized_end=6696 - _SHARDFILE._serialized_start=6698 - _SHARDFILE._serialized_end=6746 - _DOWNLOADSHARDFILEREQUEST._serialized_start=6748 - _DOWNLOADSHARDFILEREQUEST._serialized_end=6815 - _SHARDFILECHUNK._serialized_start=6817 - _SHARDFILECHUNK._serialized_end=6862 - _NODEREADER._serialized_start=6914 - _NODEREADER._serialized_end=8199 + _globals['_SUGGESTFEATURES']._serialized_start=6883 + _globals['_SUGGESTFEATURES']._serialized_end=6930 + _globals['_FILTER']._serialized_start=147 + _globals['_FILTER']._serialized_end=203 + _globals['_STREAMFILTER']._serialized_start=206 + _globals['_STREAMFILTER']._serialized_end=336 + _globals['_STREAMFILTER_CONJUNCTION']._serialized_start=297 + _globals['_STREAMFILTER_CONJUNCTION']._serialized_end=336 + _globals['_FACETED']._serialized_start=338 + _globals['_FACETED']._serialized_end=363 + _globals['_ORDERBY']._serialized_start=366 + _globals['_ORDERBY']._serialized_end=561 + _globals['_ORDERBY_ORDERTYPE']._serialized_start=490 + _globals['_ORDERBY_ORDERTYPE']._serialized_end=520 + _globals['_ORDERBY_ORDERFIELD']._serialized_start=522 + _globals['_ORDERBY_ORDERFIELD']._serialized_end=561 + _globals['_TIMESTAMPS']._serialized_start=564 + _globals['_TIMESTAMPS']._serialized_end=774 + _globals['_FACETRESULT']._serialized_start=776 + _globals['_FACETRESULT']._serialized_end=817 + _globals['_FACETRESULTS']._serialized_start=819 + _globals['_FACETRESULTS']._serialized_end=880 + _globals['_DOCUMENTSEARCHREQUEST']._serialized_start=883 + _globals['_DOCUMENTSEARCHREQUEST']._serialized_end=1320 + _globals['_PARAGRAPHSEARCHREQUEST']._serialized_start=1323 + _globals['_PARAGRAPHSEARCHREQUEST']._serialized_end=1739 + _globals['_RESULTSCORE']._serialized_start=1741 + _globals['_RESULTSCORE']._serialized_end=1785 + _globals['_DOCUMENTRESULT']._serialized_start=1787 + _globals['_DOCUMENTRESULT']._serialized_end=1888 + _globals['_DOCUMENTSEARCHRESPONSE']._serialized_start=1891 + _globals['_DOCUMENTSEARCHRESPONSE']._serialized_end=2206 + _globals['_DOCUMENTSEARCHRESPONSE_FACETSENTRY']._serialized_start=2135 + _globals['_DOCUMENTSEARCHRESPONSE_FACETSENTRY']._serialized_end=2206 + _globals['_PARAGRAPHRESULT']._serialized_start=2209 + _globals['_PARAGRAPHRESULT']._serialized_end=2457 + _globals['_PARAGRAPHSEARCHRESPONSE']._serialized_start=2460 + _globals['_PARAGRAPHSEARCHRESPONSE']._serialized_end=2820 + _globals['_PARAGRAPHSEARCHRESPONSE_FACETSENTRY']._serialized_start=2135 + _globals['_PARAGRAPHSEARCHRESPONSE_FACETSENTRY']._serialized_end=2206 + _globals['_VECTORSEARCHREQUEST']._serialized_start=2823 + _globals['_VECTORSEARCHREQUEST']._serialized_end=3071 + _globals['_DOCUMENTVECTORIDENTIFIER']._serialized_start=3073 + _globals['_DOCUMENTVECTORIDENTIFIER']._serialized_end=3111 + _globals['_DOCUMENTSCORED']._serialized_start=3114 + _globals['_DOCUMENTSCORED']._serialized_end=3266 + _globals['_VECTORSEARCHRESPONSE']._serialized_start=3268 + _globals['_VECTORSEARCHRESPONSE']._serialized_end=3383 + _globals['_RELATIONNODEFILTER']._serialized_start=3385 + _globals['_RELATIONNODEFILTER']._serialized_end=3498 + _globals['_RELATIONEDGEFILTER']._serialized_start=3501 + _globals['_RELATIONEDGEFILTER']._serialized_end=3650 + _globals['_RELATIONPREFIXSEARCHREQUEST']._serialized_start=3652 + _globals['_RELATIONPREFIXSEARCHREQUEST']._serialized_end=3751 + _globals['_RELATIONPREFIXSEARCHRESPONSE']._serialized_start=3753 + _globals['_RELATIONPREFIXSEARCHRESPONSE']._serialized_end=3819 + _globals['_ENTITIESSUBGRAPHREQUEST']._serialized_start=3822 + _globals['_ENTITIESSUBGRAPHREQUEST']._serialized_end=4085 + _globals['_ENTITIESSUBGRAPHREQUEST_DELETEDENTITIES']._serialized_start=4015 + _globals['_ENTITIESSUBGRAPHREQUEST_DELETEDENTITIES']._serialized_end=4075 + _globals['_ENTITIESSUBGRAPHRESPONSE']._serialized_start=4087 + _globals['_ENTITIESSUBGRAPHRESPONSE']._serialized_end=4149 + _globals['_RELATIONSEARCHREQUEST']._serialized_start=4152 + _globals['_RELATIONSEARCHREQUEST']._serialized_end=4325 + _globals['_RELATIONSEARCHRESPONSE']._serialized_start=4328 + _globals['_RELATIONSEARCHRESPONSE']._serialized_end=4466 + _globals['_SEARCHREQUEST']._serialized_start=4469 + _globals['_SEARCHREQUEST']._serialized_end=5279 + _globals['_SUGGESTREQUEST']._serialized_start=5282 + _globals['_SUGGESTREQUEST']._serialized_end=5470 + _globals['_RELATEDENTITIES']._serialized_start=5472 + _globals['_RELATEDENTITIES']._serialized_end=5522 + _globals['_SUGGESTRESPONSE']._serialized_start=5525 + _globals['_SUGGESTRESPONSE']._serialized_end=5702 + _globals['_SEARCHRESPONSE']._serialized_start=5705 + _globals['_SEARCHRESPONSE']._serialized_end=5935 + _globals['_IDCOLLECTION']._serialized_start=5937 + _globals['_IDCOLLECTION']._serialized_end=5964 + _globals['_RELATIONEDGE']._serialized_start=5966 + _globals['_RELATIONEDGE']._serialized_end=6047 + _globals['_EDGELIST']._serialized_start=6049 + _globals['_EDGELIST']._serialized_end=6099 + _globals['_RELATIONTYPELISTMEMBER']._serialized_start=6101 + _globals['_RELATIONTYPELISTMEMBER']._serialized_end=6196 + _globals['_TYPELIST']._serialized_start=6198 + _globals['_TYPELIST']._serialized_end=6258 + _globals['_GETSHARDREQUEST']._serialized_start=6260 + _globals['_GETSHARDREQUEST']._serialized_end=6338 + _globals['_PARAGRAPHITEM']._serialized_start=6340 + _globals['_PARAGRAPHITEM']._serialized_end=6383 + _globals['_DOCUMENTITEM']._serialized_start=6385 + _globals['_DOCUMENTITEM']._serialized_end=6444 + _globals['_STREAMREQUEST']._serialized_start=6447 + _globals['_STREAMREQUEST']._serialized_end=6618 + _globals['_GETSHARDFILESREQUEST']._serialized_start=6620 + _globals['_GETSHARDFILESREQUEST']._serialized_end=6660 + _globals['_SHARDFILELIST']._serialized_start=6662 + _globals['_SHARDFILELIST']._serialized_end=6715 + _globals['_SHARDFILE']._serialized_start=6717 + _globals['_SHARDFILE']._serialized_end=6765 + _globals['_DOWNLOADSHARDFILEREQUEST']._serialized_start=6767 + _globals['_DOWNLOADSHARDFILEREQUEST']._serialized_end=6834 + _globals['_SHARDFILECHUNK']._serialized_start=6836 + _globals['_SHARDFILECHUNK']._serialized_end=6881 + _globals['_NODEREADER']._serialized_start=6933 + _globals['_NODEREADER']._serialized_end=8218 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/nodereader_pb2.pyi b/nucliadb_protos/python/nucliadb_protos/nodereader_pb2.pyi index 175da2b60f..07f8863b21 100644 --- a/nucliadb_protos/python/nucliadb_protos/nodereader_pb2.pyi +++ b/nucliadb_protos/python/nucliadb_protos/nodereader_pb2.pyi @@ -1107,7 +1107,7 @@ class SuggestResponse(google.protobuf.message.Message): RESULTS_FIELD_NUMBER: builtins.int QUERY_FIELD_NUMBER: builtins.int EMATCHES_FIELD_NUMBER: builtins.int - ENTITIES_FIELD_NUMBER: builtins.int + ENTITY_RESULTS_FIELD_NUMBER: builtins.int total: builtins.int @property def results(self) -> google.protobuf.internal.containers.RepeatedCompositeFieldContainer[global___ParagraphResult]: ... @@ -1116,7 +1116,7 @@ class SuggestResponse(google.protobuf.message.Message): @property def ematches(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... @property - def entities(self) -> global___RelatedEntities: + def entity_results(self) -> global___RelationPrefixSearchResponse: """Entities related with the query""" def __init__( self, @@ -1125,10 +1125,10 @@ class SuggestResponse(google.protobuf.message.Message): results: collections.abc.Iterable[global___ParagraphResult] | None = ..., query: builtins.str = ..., ematches: collections.abc.Iterable[builtins.str] | None = ..., - entities: global___RelatedEntities | None = ..., + entity_results: global___RelationPrefixSearchResponse | None = ..., ) -> None: ... - def HasField(self, field_name: typing_extensions.Literal["entities", b"entities"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["ematches", b"ematches", "entities", b"entities", "query", b"query", "results", b"results", "total", b"total"]) -> None: ... + def HasField(self, field_name: typing_extensions.Literal["entity_results", b"entity_results"]) -> builtins.bool: ... + def ClearField(self, field_name: typing_extensions.Literal["ematches", b"ematches", "entity_results", b"entity_results", "query", b"query", "results", b"results", "total", b"total"]) -> None: ... global___SuggestResponse = SuggestResponse diff --git a/nucliadb_protos/python/nucliadb_protos/noderesources_pb2.py b/nucliadb_protos/python/nucliadb_protos/noderesources_pb2.py index a514c8b9d3..1c69e74ee5 100644 --- a/nucliadb_protos/python/nucliadb_protos/noderesources_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/noderesources_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/noderesources.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -18,10 +18,10 @@ 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\"\xa7\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\"D\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\"6\n\x10ParagraphService\x12\x10\n\x0cPARAGRAPH_V0\x10\x00\x12\x10\n\x0cPARAGRAPH_V1\x10\x01\"-\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\"\xa8\x02\n\x0cShardCleaned\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\",\n\nResourceID\x12\x10\n\x08shard_id\x18\x01 \x01(\t\x12\x0c\n\x04uuid\x18\x02 \x01(\t\"\x80\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\"\x0f\n\rEmptyResponse\"\x0c\n\nEmptyQuery\"v\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\x15\n\rstart_seconds\x18\x05 \x03(\r\x12\x13\n\x0b\x65nd_seconds\x18\x06 \x03(\r\"=\n\x10SentenceMetadata\x12)\n\x08position\x18\x01 \x01(\x0b\x32\x17.noderesources.Position\"S\n\x0eVectorSentence\x12\x0e\n\x06vector\x18\x01 \x03(\x02\x12\x31\n\x08metadata\x18\t \x01(\x0b\x32\x1f.noderesources.SentenceMetadata\">\n\x11ParagraphMetadata\x12)\n\x08position\x18\x01 \x01(\x0b\x32\x17.noderesources.Position\"\xca\x02\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\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\"G\n\x0bVectorSetID\x12%\n\x05shard\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x11\n\tvectorset\x18\x02 \x01(\t\"I\n\rVectorSetList\x12%\n\x05shard\x18\x01 \x01(\x0b\x32\x16.noderesources.ShardId\x12\x11\n\tvectorset\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\"\xe4\x07\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\x1b\n\x13sentences_to_delete\x18\x08 \x03(\t\x12\"\n\trelations\x18\t \x03(\x0b\x32\x0f.utils.Relation\x12\x10\n\x08shard_id\x18\x0b \x01(\t\x12\x35\n\x07vectors\x18\x0c \x03(\x0b\x32$.noderesources.Resource.VectorsEntry\x12G\n\x11vectors_to_delete\x18\r \x03(\x0b\x32,.noderesources.Resource.VectorsToDeleteEntry\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\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\"\xcc\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\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_idP\x01\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.noderesources_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.noderesources_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None _INDEXPARAGRAPH_SENTENCESENTRY._options = None _INDEXPARAGRAPH_SENTENCESENTRY._serialized_options = b'8\001' @@ -43,72 +43,72 @@ _NODEMETADATA.fields_by_name['load_score']._serialized_options = b'\030\001' _NODEMETADATA.fields_by_name['shards']._options = None _NODEMETADATA.fields_by_name['shards']._serialized_options = b'\030\001' - _TEXTINFORMATION._serialized_start=116 - _TEXTINFORMATION._serialized_end=163 - _INDEXMETADATA._serialized_start=165 - _INDEXMETADATA._serialized_end=271 - _SHARDID._serialized_start=273 - _SHARDID._serialized_end=294 - _SHARDIDS._serialized_start=296 - _SHARDIDS._serialized_end=343 - _SHARDCREATED._serialized_start=346 - _SHARDCREATED._serialized_end=897 - _SHARDCREATED_DOCUMENTSERVICE._serialized_start=656 - _SHARDCREATED_DOCUMENTSERVICE._serialized_end=724 - _SHARDCREATED_PARAGRAPHSERVICE._serialized_start=726 - _SHARDCREATED_PARAGRAPHSERVICE._serialized_end=780 - _SHARDCREATED_VECTORSERVICE._serialized_start=782 - _SHARDCREATED_VECTORSERVICE._serialized_end=827 - _SHARDCREATED_RELATIONSERVICE._serialized_start=829 - _SHARDCREATED_RELATIONSERVICE._serialized_end=897 - _SHARDCLEANED._serialized_start=900 - _SHARDCLEANED._serialized_end=1196 - _RESOURCEID._serialized_start=1198 - _RESOURCEID._serialized_end=1242 - _SHARD._serialized_start=1245 - _SHARD._serialized_end=1373 - _EMPTYRESPONSE._serialized_start=1375 - _EMPTYRESPONSE._serialized_end=1390 - _EMPTYQUERY._serialized_start=1392 - _EMPTYQUERY._serialized_end=1404 - _POSITION._serialized_start=1406 - _POSITION._serialized_end=1524 - _SENTENCEMETADATA._serialized_start=1526 - _SENTENCEMETADATA._serialized_end=1587 - _VECTORSENTENCE._serialized_start=1589 - _VECTORSENTENCE._serialized_end=1672 - _PARAGRAPHMETADATA._serialized_start=1674 - _PARAGRAPHMETADATA._serialized_end=1736 - _INDEXPARAGRAPH._serialized_start=1739 - _INDEXPARAGRAPH._serialized_end=2069 - _INDEXPARAGRAPH_SENTENCESENTRY._serialized_start=1990 - _INDEXPARAGRAPH_SENTENCESENTRY._serialized_end=2069 - _VECTORSETID._serialized_start=2071 - _VECTORSETID._serialized_end=2142 - _VECTORSETLIST._serialized_start=2144 - _VECTORSETLIST._serialized_end=2217 - _INDEXPARAGRAPHS._serialized_start=2220 - _INDEXPARAGRAPHS._serialized_end=2387 - _INDEXPARAGRAPHS_PARAGRAPHSENTRY._serialized_start=2307 - _INDEXPARAGRAPHS_PARAGRAPHSENTRY._serialized_end=2387 - _RESOURCE._serialized_start=2390 - _RESOURCE._serialized_end=3386 - _RESOURCE_TEXTSENTRY._serialized_start=2960 - _RESOURCE_TEXTSENTRY._serialized_end=3036 - _RESOURCE_PARAGRAPHSENTRY._serialized_start=3038 - _RESOURCE_PARAGRAPHSENTRY._serialized_end=3119 - _RESOURCE_VECTORSENTRY._serialized_start=3121 - _RESOURCE_VECTORSENTRY._serialized_end=3187 - _RESOURCE_VECTORSTODELETEENTRY._serialized_start=3189 - _RESOURCE_VECTORSTODELETEENTRY._serialized_end=3267 - _RESOURCE_RESOURCESTATUS._serialized_start=3269 - _RESOURCE_RESOURCESTATUS._serialized_end=3373 - _SHARDMETADATA._serialized_start=3388 - _SHARDMETADATA._serialized_end=3465 - _NODEMETADATA._serialized_start=3468 - _NODEMETADATA._serialized_end=3800 - _NODEMETADATA_SHARDMETADATA._serialized_start=3637 - _NODEMETADATA_SHARDMETADATA._serialized_end=3690 - _NODEMETADATA_SHARDSENTRY._serialized_start=3692 - _NODEMETADATA_SHARDSENTRY._serialized_end=3780 + _globals['_TEXTINFORMATION']._serialized_start=116 + _globals['_TEXTINFORMATION']._serialized_end=163 + _globals['_INDEXMETADATA']._serialized_start=165 + _globals['_INDEXMETADATA']._serialized_end=271 + _globals['_SHARDID']._serialized_start=273 + _globals['_SHARDID']._serialized_end=294 + _globals['_SHARDIDS']._serialized_start=296 + _globals['_SHARDIDS']._serialized_end=343 + _globals['_SHARDCREATED']._serialized_start=346 + _globals['_SHARDCREATED']._serialized_end=897 + _globals['_SHARDCREATED_DOCUMENTSERVICE']._serialized_start=656 + _globals['_SHARDCREATED_DOCUMENTSERVICE']._serialized_end=724 + _globals['_SHARDCREATED_PARAGRAPHSERVICE']._serialized_start=726 + _globals['_SHARDCREATED_PARAGRAPHSERVICE']._serialized_end=780 + _globals['_SHARDCREATED_VECTORSERVICE']._serialized_start=782 + _globals['_SHARDCREATED_VECTORSERVICE']._serialized_end=827 + _globals['_SHARDCREATED_RELATIONSERVICE']._serialized_start=829 + _globals['_SHARDCREATED_RELATIONSERVICE']._serialized_end=897 + _globals['_SHARDCLEANED']._serialized_start=900 + _globals['_SHARDCLEANED']._serialized_end=1196 + _globals['_RESOURCEID']._serialized_start=1198 + _globals['_RESOURCEID']._serialized_end=1242 + _globals['_SHARD']._serialized_start=1245 + _globals['_SHARD']._serialized_end=1373 + _globals['_EMPTYRESPONSE']._serialized_start=1375 + _globals['_EMPTYRESPONSE']._serialized_end=1390 + _globals['_EMPTYQUERY']._serialized_start=1392 + _globals['_EMPTYQUERY']._serialized_end=1404 + _globals['_POSITION']._serialized_start=1406 + _globals['_POSITION']._serialized_end=1524 + _globals['_SENTENCEMETADATA']._serialized_start=1526 + _globals['_SENTENCEMETADATA']._serialized_end=1587 + _globals['_VECTORSENTENCE']._serialized_start=1589 + _globals['_VECTORSENTENCE']._serialized_end=1672 + _globals['_PARAGRAPHMETADATA']._serialized_start=1674 + _globals['_PARAGRAPHMETADATA']._serialized_end=1736 + _globals['_INDEXPARAGRAPH']._serialized_start=1739 + _globals['_INDEXPARAGRAPH']._serialized_end=2069 + _globals['_INDEXPARAGRAPH_SENTENCESENTRY']._serialized_start=1990 + _globals['_INDEXPARAGRAPH_SENTENCESENTRY']._serialized_end=2069 + _globals['_VECTORSETID']._serialized_start=2071 + _globals['_VECTORSETID']._serialized_end=2142 + _globals['_VECTORSETLIST']._serialized_start=2144 + _globals['_VECTORSETLIST']._serialized_end=2217 + _globals['_INDEXPARAGRAPHS']._serialized_start=2220 + _globals['_INDEXPARAGRAPHS']._serialized_end=2387 + _globals['_INDEXPARAGRAPHS_PARAGRAPHSENTRY']._serialized_start=2307 + _globals['_INDEXPARAGRAPHS_PARAGRAPHSENTRY']._serialized_end=2387 + _globals['_RESOURCE']._serialized_start=2390 + _globals['_RESOURCE']._serialized_end=3386 + _globals['_RESOURCE_TEXTSENTRY']._serialized_start=2960 + _globals['_RESOURCE_TEXTSENTRY']._serialized_end=3036 + _globals['_RESOURCE_PARAGRAPHSENTRY']._serialized_start=3038 + _globals['_RESOURCE_PARAGRAPHSENTRY']._serialized_end=3119 + _globals['_RESOURCE_VECTORSENTRY']._serialized_start=3121 + _globals['_RESOURCE_VECTORSENTRY']._serialized_end=3187 + _globals['_RESOURCE_VECTORSTODELETEENTRY']._serialized_start=3189 + _globals['_RESOURCE_VECTORSTODELETEENTRY']._serialized_end=3267 + _globals['_RESOURCE_RESOURCESTATUS']._serialized_start=3269 + _globals['_RESOURCE_RESOURCESTATUS']._serialized_end=3373 + _globals['_SHARDMETADATA']._serialized_start=3388 + _globals['_SHARDMETADATA']._serialized_end=3465 + _globals['_NODEMETADATA']._serialized_start=3468 + _globals['_NODEMETADATA']._serialized_end=3800 + _globals['_NODEMETADATA_SHARDMETADATA']._serialized_start=3637 + _globals['_NODEMETADATA_SHARDMETADATA']._serialized_end=3690 + _globals['_NODEMETADATA_SHARDSENTRY']._serialized_start=3692 + _globals['_NODEMETADATA_SHARDSENTRY']._serialized_end=3780 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/nodewriter_pb2.py b/nucliadb_protos/python/nucliadb_protos/nodewriter_pb2.py index 73bb87b6db..84faaf05ed 100644 --- a/nucliadb_protos/python/nucliadb_protos/nodewriter_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/nodewriter_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/nodewriter.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,29 +21,29 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n nucliadb_protos/nodewriter.proto\x12\nnodewriter\x1a#nucliadb_protos/noderesources.proto\"\xc9\x01\n\x08OpStatus\x12+\n\x06status\x18\x01 \x01(\x0e\x32\x1b.nodewriter.OpStatus.Status\x12\x0e\n\x06\x64\x65tail\x18\x02 \x01(\t\x12\x13\n\x0b\x66ield_count\x18\x03 \x01(\x04\x12\x17\n\x0fparagraph_count\x18\x05 \x01(\x04\x12\x16\n\x0esentence_count\x18\x06 \x01(\x04\x12\x10\n\x08shard_id\x18\x04 \x01(\t\"(\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0b\n\x07WARNING\x10\x01\x12\t\n\x05\x45RROR\x10\x02\"\x86\x02\n\x0cIndexMessage\x12\x0c\n\x04node\x18\x01 \x01(\t\x12\r\n\x05shard\x18\x02 \x01(\t\x12\x0c\n\x04txid\x18\x03 \x01(\x04\x12\x10\n\x08resource\x18\x04 \x01(\t\x12,\n\x0btypemessage\x18\x05 \x01(\x0e\x32\x17.nodewriter.TypeMessage\x12\x12\n\nreindex_id\x18\x06 \x01(\t\x12\x16\n\tpartition\x18\x07 \x01(\tH\x00\x88\x01\x01\x12\x13\n\x0bstorage_key\x18\x08 \x01(\t\x12\x0c\n\x04kbid\x18\t \x01(\t\x12.\n\x06source\x18\n \x01(\x0e\x32\x1e.nodewriter.IndexMessageSourceB\x0c\n\n_partition\"x\n\x18GarbageCollectorResponse\x12;\n\x06status\x18\x01 \x01(\x0e\x32+.nodewriter.GarbageCollectorResponse.Status\"\x1f\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\r\n\tTRY_LATER\x10\x01\"|\n\x0fNewShardRequest\x12+\n\nsimilarity\x18\x01 \x01(\x0e\x32\x17.utils.VectorSimilarity\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12.\n\x0frelease_channel\x18\x03 \x01(\x0e\x32\x15.utils.ReleaseChannel\"j\n\x13NewVectorSetRequest\x12&\n\x02id\x18\x01 \x01(\x0b\x32\x1a.noderesources.VectorSetID\x12+\n\nsimilarity\x18\x02 \x01(\x0e\x32\x17.utils.VectorSimilarity*)\n\x0bTypeMessage\x12\x0c\n\x08\x43REATION\x10\x00\x12\x0c\n\x08\x44\x45LETION\x10\x01*/\n\x12IndexMessageSource\x12\r\n\tPROCESSOR\x10\x00\x12\n\n\x06WRITER\x10\x01\x32\x96\x06\n\nNodeWriter\x12\x46\n\x08NewShard\x12\x1b.nodewriter.NewShardRequest\x1a\x1b.noderesources.ShardCreated\"\x00\x12M\n\x14\x43leanAndUpgradeShard\x12\x16.noderesources.ShardId\x1a\x1b.noderesources.ShardCleaned\"\x00\x12?\n\x0b\x44\x65leteShard\x12\x16.noderesources.ShardId\x1a\x16.noderesources.ShardId\"\x00\x12\x42\n\nListShards\x12\x19.noderesources.EmptyQuery\x1a\x17.noderesources.ShardIds\"\x00\x12\x44\n\x02GC\x12\x16.noderesources.ShardId\x1a$.nodewriter.GarbageCollectorResponse\"\x00\x12>\n\x0bSetResource\x12\x17.noderesources.Resource\x1a\x14.nodewriter.OpStatus\"\x00\x12\x43\n\x0eRemoveResource\x12\x19.noderesources.ResourceID\x1a\x14.nodewriter.OpStatus\"\x00\x12G\n\x0c\x41\x64\x64VectorSet\x12\x1f.nodewriter.NewVectorSetRequest\x1a\x14.nodewriter.OpStatus\"\x00\x12\x45\n\x0fRemoveVectorSet\x12\x1a.noderesources.VectorSetID\x1a\x14.nodewriter.OpStatus\"\x00\x12H\n\x0eListVectorSets\x12\x16.noderesources.ShardId\x1a\x1c.noderesources.VectorSetList\"\x00\x12G\n\x0bGetMetadata\x12\x19.noderesources.EmptyQuery\x1a\x1b.noderesources.NodeMetadata\"\x00P\x00\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.nodewriter_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.nodewriter_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _TYPEMESSAGE._serialized_start=910 - _TYPEMESSAGE._serialized_end=951 - _INDEXMESSAGESOURCE._serialized_start=953 - _INDEXMESSAGESOURCE._serialized_end=1000 - _OPSTATUS._serialized_start=86 - _OPSTATUS._serialized_end=287 - _OPSTATUS_STATUS._serialized_start=247 - _OPSTATUS_STATUS._serialized_end=287 - _INDEXMESSAGE._serialized_start=290 - _INDEXMESSAGE._serialized_end=552 - _GARBAGECOLLECTORRESPONSE._serialized_start=554 - _GARBAGECOLLECTORRESPONSE._serialized_end=674 - _GARBAGECOLLECTORRESPONSE_STATUS._serialized_start=643 - _GARBAGECOLLECTORRESPONSE_STATUS._serialized_end=674 - _NEWSHARDREQUEST._serialized_start=676 - _NEWSHARDREQUEST._serialized_end=800 - _NEWVECTORSETREQUEST._serialized_start=802 - _NEWVECTORSETREQUEST._serialized_end=908 - _NODEWRITER._serialized_start=1003 - _NODEWRITER._serialized_end=1793 + _globals['_TYPEMESSAGE']._serialized_start=910 + _globals['_TYPEMESSAGE']._serialized_end=951 + _globals['_INDEXMESSAGESOURCE']._serialized_start=953 + _globals['_INDEXMESSAGESOURCE']._serialized_end=1000 + _globals['_OPSTATUS']._serialized_start=86 + _globals['_OPSTATUS']._serialized_end=287 + _globals['_OPSTATUS_STATUS']._serialized_start=247 + _globals['_OPSTATUS_STATUS']._serialized_end=287 + _globals['_INDEXMESSAGE']._serialized_start=290 + _globals['_INDEXMESSAGE']._serialized_end=552 + _globals['_GARBAGECOLLECTORRESPONSE']._serialized_start=554 + _globals['_GARBAGECOLLECTORRESPONSE']._serialized_end=674 + _globals['_GARBAGECOLLECTORRESPONSE_STATUS']._serialized_start=643 + _globals['_GARBAGECOLLECTORRESPONSE_STATUS']._serialized_end=674 + _globals['_NEWSHARDREQUEST']._serialized_start=676 + _globals['_NEWSHARDREQUEST']._serialized_end=800 + _globals['_NEWVECTORSETREQUEST']._serialized_start=802 + _globals['_NEWVECTORSETREQUEST']._serialized_end=908 + _globals['_NODEWRITER']._serialized_start=1003 + _globals['_NODEWRITER']._serialized_end=1793 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/replication_pb2.py b/nucliadb_protos/python/nucliadb_protos/replication_pb2.py index ee74a66e72..01d5ca6436 100644 --- a/nucliadb_protos/python/nucliadb_protos/replication_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/replication_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/replication.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -21,29 +21,29 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n!nucliadb_protos/replication.proto\x12\x0breplication\x1a#nucliadb_protos/noderesources.proto\"i\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\x12\n\nsimilarity\x18\x04 \x01(\t\"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') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.replication_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.replication_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None _REPLICATESHARDREQUEST_EXISTINGSEGMENTIDSENTRY._options = None _REPLICATESHARDREQUEST_EXISTINGSEGMENTIDSENTRY._serialized_options = b'8\001' - _PRIMARYSHARDREPLICATIONSTATE._serialized_start=87 - _PRIMARYSHARDREPLICATIONSTATE._serialized_end=192 - _SECONDARYSHARDREPLICATIONSTATE._serialized_start=194 - _SECONDARYSHARDREPLICATIONSTATE._serialized_end=267 - _SECONDARYCHECKREPLICATIONSTATEREQUEST._serialized_start=270 - _SECONDARYCHECKREPLICATIONSTATEREQUEST._serialized_end=398 - _PRIMARYCHECKREPLICATIONSTATERESPONSE._serialized_start=401 - _PRIMARYCHECKREPLICATIONSTATERESPONSE._serialized_end=550 - _SEGMENTIDS._serialized_start=552 - _SEGMENTIDS._serialized_end=579 - _REPLICATESHARDREQUEST._serialized_start=582 - _REPLICATESHARDREQUEST._serialized_end=817 - _REPLICATESHARDREQUEST_EXISTINGSEGMENTIDSENTRY._serialized_start=735 - _REPLICATESHARDREQUEST_EXISTINGSEGMENTIDSENTRY._serialized_end=817 - _REPLICATESHARDRESPONSE._serialized_start=820 - _REPLICATESHARDRESPONSE._serialized_end=957 - _REPLICATIONSERVICE._serialized_start=960 - _REPLICATIONSERVICE._serialized_end=1279 + _globals['_PRIMARYSHARDREPLICATIONSTATE']._serialized_start=87 + _globals['_PRIMARYSHARDREPLICATIONSTATE']._serialized_end=192 + _globals['_SECONDARYSHARDREPLICATIONSTATE']._serialized_start=194 + _globals['_SECONDARYSHARDREPLICATIONSTATE']._serialized_end=267 + _globals['_SECONDARYCHECKREPLICATIONSTATEREQUEST']._serialized_start=270 + _globals['_SECONDARYCHECKREPLICATIONSTATEREQUEST']._serialized_end=398 + _globals['_PRIMARYCHECKREPLICATIONSTATERESPONSE']._serialized_start=401 + _globals['_PRIMARYCHECKREPLICATIONSTATERESPONSE']._serialized_end=550 + _globals['_SEGMENTIDS']._serialized_start=552 + _globals['_SEGMENTIDS']._serialized_end=579 + _globals['_REPLICATESHARDREQUEST']._serialized_start=582 + _globals['_REPLICATESHARDREQUEST']._serialized_end=817 + _globals['_REPLICATESHARDREQUEST_EXISTINGSEGMENTIDSENTRY']._serialized_start=735 + _globals['_REPLICATESHARDREQUEST_EXISTINGSEGMENTIDSENTRY']._serialized_end=817 + _globals['_REPLICATESHARDRESPONSE']._serialized_start=820 + _globals['_REPLICATESHARDRESPONSE']._serialized_end=957 + _globals['_REPLICATIONSERVICE']._serialized_start=960 + _globals['_REPLICATIONSERVICE']._serialized_end=1279 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/resources_pb2.py b/nucliadb_protos/python/nucliadb_protos/resources_pb2.py index 93565fa4af..b49c1b2f84 100644 --- a/nucliadb_protos/python/nucliadb_protos/resources_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/resources_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/resources.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -19,10 +19,10 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1fnucliadb_protos/resources.proto\x12\tresources\x1a\x1bnucliadb_protos/utils.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xf0\x02\n\tCloudFile\x12\x0b\n\x03uri\x18\x01 \x01(\t\x12\x0c\n\x04size\x18\x02 \x01(\x04\x12\x14\n\x0c\x63ontent_type\x18\x03 \x01(\t\x12\x13\n\x0b\x62ucket_name\x18\x04 \x01(\t\x12+\n\x06source\x18\x05 \x01(\x0e\x32\x1b.resources.CloudFile.Source\x12\x10\n\x08\x66ilename\x18\x06 \x01(\t\x12\x15\n\rresumable_uri\x18\x07 \x01(\t\x12\x0e\n\x06offset\x18\x08 \x01(\x04\x12\x12\n\nupload_uri\x18\t \x01(\t\x12\r\n\x05parts\x18\n \x03(\t\x12\x0f\n\x07old_uri\x18\x0b \x01(\t\x12\x12\n\nold_bucket\x18\x0c \x01(\t\x12\x0b\n\x03md5\x18\r \x01(\t\"b\n\x06Source\x12\t\n\x05\x46LAPS\x10\x00\x12\x07\n\x03GCS\x10\x01\x12\x06\n\x02S3\x10\x02\x12\t\n\x05LOCAL\x10\x03\x12\x0c\n\x08\x45XTERNAL\x10\x04\x12\t\n\x05\x45MPTY\x10\x05\x12\n\n\x06\x45XPORT\x10\x06\x12\x0c\n\x08POSTGRES\x10\x07\"\xa0\x04\n\x05\x42\x61sic\x12\x0c\n\x04slug\x18\x01 \x01(\t\x12\x0c\n\x04icon\x18\x02 \x01(\t\x12\r\n\x05title\x18\x03 \x01(\t\x12\x0f\n\x07summary\x18\x04 \x01(\t\x12\x11\n\tthumbnail\x18\x05 \x01(\t\x12\x0e\n\x06layout\x18\x06 \x01(\t\x12+\n\x07\x63reated\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08modified\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12%\n\x08metadata\x18\t \x01(\x0b\x32\x13.resources.Metadata\x12-\n\x0cusermetadata\x18\n \x01(\x0b\x32\x17.resources.UserMetadata\x12\x33\n\rfieldmetadata\x18\x0b \x03(\x0b\x32\x1c.resources.UserFieldMetadata\x12\x35\n\x10\x63omputedmetadata\x18\x0f \x01(\x0b\x32\x1b.resources.ComputedMetadata\x12\x0c\n\x04uuid\x18\x0c \x01(\t\x12\x0e\n\x06labels\x18\r \x03(\t\x12\x12\n\nlast_seqid\x18\x0e \x01(\x03\x12\x18\n\x10last_account_seq\x18# \x01(\x03\x12)\n\x05queue\x18$ \x01(\x0e\x32\x1a.resources.Basic.QueueType\"$\n\tQueueType\x12\x0b\n\x07PRIVATE\x10\x00\x12\n\n\x06SHARED\x10\x01\"\x81\x03\n\x06Origin\x12(\n\x06source\x18\x01 \x01(\x0e\x32\x18.resources.Origin.Source\x12\x11\n\tsource_id\x18\x02 \x01(\t\x12\x0b\n\x03url\x18\x03 \x01(\t\x12+\n\x07\x63reated\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08modified\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x31\n\x08metadata\x18\x06 \x03(\x0b\x32\x1f.resources.Origin.MetadataEntry\x12\x0c\n\x04tags\x18\x07 \x03(\t\x12\x14\n\x0c\x63olaborators\x18\x08 \x03(\t\x12\x10\n\x08\x66ilename\x18\t \x01(\t\x12\x0f\n\x07related\x18\n \x03(\t\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\'\n\x06Source\x12\x07\n\x03WEB\x10\x00\x12\x0b\n\x07\x44\x45SKTOP\x10\x01\x12\x07\n\x03\x41PI\x10\x02\"2\n\x05\x45xtra\x12)\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\"/\n\tRelations\x12\"\n\trelations\x18\x01 \x03(\x0b\x32\x0f.utils.Relation\"\xb1\x01\n\x0eMessageContent\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x30\n\x06\x66ormat\x18\x02 \x01(\x0e\x32 .resources.MessageContent.Format\x12)\n\x0b\x61ttachments\x18\x04 \x03(\x0b\x32\x14.resources.CloudFile\"4\n\x06\x46ormat\x12\t\n\x05PLAIN\x10\x00\x12\x08\n\x04HTML\x10\x01\x12\x0c\n\x08MARKDOWN\x10\x02\x12\x07\n\x03RST\x10\x03\"\xee\x01\n\x07Message\x12-\n\ttimestamp\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x0b\n\x03who\x18\x02 \x01(\t\x12\n\n\x02to\x18\x03 \x03(\t\x12*\n\x07\x63ontent\x18\x04 \x01(\x0b\x32\x19.resources.MessageContent\x12\r\n\x05ident\x18\x05 \x01(\t\x12,\n\x04type\x18\x06 \x01(\x0e\x32\x1e.resources.Message.MessageType\"2\n\x0bMessageType\x12\t\n\x05UNSET\x10\x00\x12\x0c\n\x08QUESTION\x10\x01\x12\n\n\x06\x41NSWER\x10\x02\"4\n\x0c\x43onversation\x12$\n\x08messages\x18\x01 \x03(\x0b\x32\x12.resources.Message\"?\n\x11\x46ieldConversation\x12\r\n\x05pages\x18\x01 \x01(\x05\x12\x0c\n\x04size\x18\x02 \x01(\x05\x12\r\n\x05total\x18\x03 \x01(\x05\":\n\x0eNestedPosition\x12\r\n\x05start\x18\x01 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x03\x12\x0c\n\x04page\x18\x03 \x01(\x03\"B\n\x12NestedListPosition\x12,\n\tpositions\x18\x01 \x03(\x0b\x32\x19.resources.NestedPosition\"\xb9\x08\n\x11\x46ileExtractedData\x12\x10\n\x08language\x18\x01 \x01(\t\x12\x0b\n\x03md5\x18\x02 \x01(\t\x12<\n\x08metadata\x18\x03 \x03(\x0b\x32*.resources.FileExtractedData.MetadataEntry\x12\x38\n\x06nested\x18\x04 \x03(\x0b\x32(.resources.FileExtractedData.NestedEntry\x12G\n\x0e\x66ile_generated\x18\x05 \x03(\x0b\x32/.resources.FileExtractedData.FileGeneratedEntry\x12N\n\x12\x66ile_rows_previews\x18\x06 \x03(\x0b\x32\x32.resources.FileExtractedData.FileRowsPreviewsEntry\x12*\n\x0c\x66ile_preview\x18\x07 \x01(\x0b\x32\x14.resources.CloudFile\x12\x31\n\x13\x66ile_pages_previews\x18\x08 \x01(\x0b\x32\x14.resources.FilePages\x12,\n\x0e\x66ile_thumbnail\x18\t \x01(\x0b\x32\x14.resources.CloudFile\x12\r\n\x05\x66ield\x18\n \x01(\t\x12\x0c\n\x04icon\x18\x0b \x01(\t\x12M\n\x0fnested_position\x18\x0c \x03(\x0b\x32\x30.resources.FileExtractedData.NestedPositionEntryB\x02\x18\x01\x12R\n\x14nested_list_position\x18\r \x03(\x0b\x32\x34.resources.FileExtractedData.NestedListPositionEntry\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a-\n\x0bNestedEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aJ\n\x12\x46ileGeneratedEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.resources.CloudFile:\x02\x38\x01\x1aO\n\x15\x46ileRowsPreviewsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.resources.RowsPreview:\x02\x38\x01\x1aP\n\x13NestedPositionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12(\n\x05value\x18\x02 \x01(\x0b\x32\x19.resources.NestedPosition:\x02\x38\x01\x1aX\n\x17NestedListPositionEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.resources.NestedListPosition:\x02\x38\x01\"\xc3\x03\n\x11LinkExtractedData\x12(\n\x04\x64\x61te\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x10\n\x08language\x18\x02 \x01(\t\x12\r\n\x05title\x18\x04 \x01(\t\x12<\n\x08metadata\x18\x05 \x03(\x0b\x32*.resources.LinkExtractedData.MetadataEntry\x12,\n\x0elink_thumbnail\x18\x06 \x01(\x0b\x32\x14.resources.CloudFile\x12*\n\x0clink_preview\x18\x07 \x01(\x0b\x32\x14.resources.CloudFile\x12\r\n\x05\x66ield\x18\x08 \x01(\t\x12(\n\nlink_image\x18\t \x01(\x0b\x32\x14.resources.CloudFile\x12\x13\n\x0b\x64\x65scription\x18\n \x01(\t\x12\x0c\n\x04type\x18\x0b \x01(\t\x12\r\n\x05\x65mbed\x18\x0c \x01(\t\x12/\n\rpdf_structure\x18\r \x01(\x0b\x32\x18.resources.PageStructure\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x95\x01\n\x14\x45xtractedTextWrapper\x12$\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x14.utils.ExtractedTextH\x00\x12$\n\x04\x66ile\x18\x02 \x01(\x0b\x32\x14.resources.CloudFileH\x00\x12!\n\x05\x66ield\x18\x03 \x01(\x0b\x32\x12.resources.FieldIDB\x0e\n\x0c\x66ile_or_data\"\x9a\x01\n\x17\x45xtractedVectorsWrapper\x12&\n\x07vectors\x18\x01 \x01(\x0b\x32\x13.utils.VectorObjectH\x00\x12$\n\x04\x66ile\x18\x02 \x01(\x0b\x32\x14.resources.CloudFileH\x00\x12!\n\x05\x66ield\x18\x03 \x01(\x0b\x32\x12.resources.FieldIDB\x0e\n\x0c\x66ile_or_data\"\xfd\x01\n\x12UserVectorsWrapper\x12%\n\x07vectors\x18\x01 \x01(\x0b\x32\x14.utils.UserVectorSet\x12M\n\x11vectors_to_delete\x18\r \x03(\x0b\x32\x32.resources.UserVectorsWrapper.VectorsToDeleteEntry\x12!\n\x05\x66ield\x18\x03 \x01(\x0b\x32\x12.resources.FieldID\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\"3\n\x08Sentence\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\x12\x0b\n\x03key\x18\x03 \x01(\t\"\xdb\x02\n\tParagraph\x12\r\n\x05start\x18\x01 \x01(\r\x12\x0b\n\x03\x65nd\x18\x02 \x01(\r\x12\x15\n\rstart_seconds\x18\x03 \x03(\r\x12\x13\n\x0b\x65nd_seconds\x18\x04 \x03(\r\x12\x30\n\x04kind\x18\x05 \x01(\x0e\x32\".resources.Paragraph.TypeParagraph\x12\x32\n\x0f\x63lassifications\x18\x06 \x03(\x0b\x32\x19.resources.Classification\x12&\n\tsentences\x18\x07 \x03(\x0b\x32\x13.resources.Sentence\x12\x0b\n\x03key\x18\x08 \x01(\t\x12\x0c\n\x04text\x18\t \x01(\t\"]\n\rTypeParagraph\x12\x08\n\x04TEXT\x10\x00\x12\x07\n\x03OCR\x10\x01\x12\r\n\tINCEPTION\x10\x02\x12\x0f\n\x0b\x44\x45SCRIPTION\x10\x03\x12\x0e\n\nTRANSCRIPT\x10\x04\x12\t\n\x05TITLE\x10\x05\"&\n\x08Position\x12\r\n\x05start\x18\x01 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x03\"B\n\tPositions\x12%\n\x08position\x18\x01 \x03(\x0b\x32\x13.resources.Position\x12\x0e\n\x06\x65ntity\x18\x02 \x01(\t\"\x9d\x05\n\rFieldMetadata\x12\r\n\x05links\x18\x01 \x03(\t\x12(\n\nparagraphs\x18\x02 \x03(\x0b\x32\x14.resources.Paragraph\x12.\n\x03ner\x18\x03 \x03(\x0b\x32!.resources.FieldMetadata.NerEntry\x12\x32\n\x0f\x63lassifications\x18\x04 \x03(\x0b\x32\x19.resources.Classification\x12.\n\nlast_index\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x36\n\x12last_understanding\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0clast_extract\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x30\n\x0clast_summary\x18\x08 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\'\n\tthumbnail\x18\t \x01(\x0b\x32\x14.resources.CloudFile\x12\x10\n\x08language\x18\n \x01(\t\x12\x0f\n\x07summary\x18\x0b \x01(\t\x12:\n\tpositions\x18\x0c \x03(\x0b\x32\'.resources.FieldMetadata.PositionsEntry\x12\'\n\trelations\x18\r \x03(\x0b\x32\x14.resources.Relations\x1a*\n\x08NerEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x46\n\x0ePositionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.resources.Positions:\x02\x38\x01\"B\n\x08Question\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x10\n\x08language\x18\x02 \x01(\t\x12\x16\n\x0eids_paragraphs\x18\x03 \x03(\t\"A\n\x07\x41nswers\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x10\n\x08language\x18\x02 \x01(\t\x12\x16\n\x0eids_paragraphs\x18\x03 \x03(\t\"\\\n\x0eQuestionAnswer\x12%\n\x08question\x18\x01 \x01(\x0b\x32\x13.resources.Question\x12#\n\x07\x61nswers\x18\x02 \x03(\x0b\x32\x12.resources.Answers\"E\n\x0fQuestionAnswers\x12\x32\n\x0fquestion_answer\x18\x01 \x03(\x0b\x32\x19.resources.QuestionAnswer\"\xad\x01\n\x1a\x46ieldQuestionAnswerWrapper\x12\x36\n\x10question_answers\x18\x01 \x01(\x0b\x32\x1a.resources.QuestionAnswersH\x00\x12$\n\x04\x66ile\x18\x02 \x01(\x0b\x32\x14.resources.CloudFileH\x00\x12!\n\x05\x66ield\x18\x03 \x01(\x0b\x32\x12.resources.FieldIDB\x0e\n\x0c\x66ile_or_data\"\xf8\x01\n\x15\x46ieldComputedMetadata\x12*\n\x08metadata\x18\x01 \x01(\x0b\x32\x18.resources.FieldMetadata\x12K\n\x0esplit_metadata\x18\x02 \x03(\x0b\x32\x33.resources.FieldComputedMetadata.SplitMetadataEntry\x12\x16\n\x0e\x64\x65leted_splits\x18\x03 \x03(\t\x1aN\n\x12SplitMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.resources.FieldMetadata:\x02\x38\x01\"u\n\x1c\x46ieldComputedMetadataWrapper\x12\x32\n\x08metadata\x18\x01 \x01(\x0b\x32 .resources.FieldComputedMetadata\x12!\n\x05\x66ield\x18\x04 \x01(\x0b\x32\x12.resources.FieldID\"\x9c\x02\n\x08Metadata\x12\x33\n\x08metadata\x18\x01 \x03(\x0b\x32!.resources.Metadata.MetadataEntry\x12\x10\n\x08language\x18\x02 \x01(\t\x12\x11\n\tlanguages\x18\x03 \x03(\t\x12\x0e\n\x06useful\x18\x04 \x01(\x08\x12*\n\x06status\x18\x05 \x01(\x0e\x32\x1a.resources.Metadata.Status\x1a/\n\rMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"I\n\x06Status\x12\x0b\n\x07PENDING\x10\x00\x12\r\n\tPROCESSED\x10\x01\x12\t\n\x05\x45RROR\x10\x02\x12\x0b\n\x07\x42LOCKED\x10\x03\x12\x0b\n\x07\x45XPIRED\x10\x04\"\x93\x01\n\tFieldText\x12\x0c\n\x04\x62ody\x18\x01 \x01(\t\x12+\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x1b.resources.FieldText.Format\x12\x0b\n\x03md5\x18\x03 \x01(\t\">\n\x06\x46ormat\x12\t\n\x05PLAIN\x10\x00\x12\x08\n\x04HTML\x10\x01\x12\x07\n\x03RST\x10\x02\x12\x0c\n\x08MARKDOWN\x10\x03\x12\x08\n\x04JSON\x10\x04\"\x9c\x02\n\x05\x42lock\x12\t\n\x01x\x18\x01 \x01(\x05\x12\t\n\x01y\x18\x02 \x01(\x05\x12\x0c\n\x04\x63ols\x18\x03 \x01(\x05\x12\x0c\n\x04rows\x18\x04 \x01(\x05\x12(\n\x04type\x18\x05 \x01(\x0e\x32\x1a.resources.Block.TypeBlock\x12\r\n\x05ident\x18\x06 \x01(\t\x12\x0f\n\x07payload\x18\x07 \x01(\t\x12\"\n\x04\x66ile\x18\x08 \x01(\x0b\x32\x14.resources.CloudFile\"s\n\tTypeBlock\x12\t\n\x05TITLE\x10\x00\x12\x0f\n\x0b\x44\x45SCRIPTION\x10\x01\x12\x0c\n\x08RICHTEXT\x10\x02\x12\x08\n\x04TEXT\x10\x03\x12\x0f\n\x0b\x41TTACHMENTS\x10\x04\x12\x0c\n\x08\x43OMMENTS\x10\x05\x12\x13\n\x0f\x43LASSIFICATIONS\x10\x06\"\x9e\x01\n\rLayoutContent\x12\x34\n\x06\x62locks\x18\x01 \x03(\x0b\x32$.resources.LayoutContent.BlocksEntry\x12\x16\n\x0e\x64\x65leted_blocks\x18\x02 \x03(\t\x1a?\n\x0b\x42locksEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1f\n\x05value\x18\x02 \x01(\x0b\x32\x10.resources.Block:\x02\x38\x01\"|\n\x0b\x46ieldLayout\x12&\n\x04\x62ody\x18\x01 \x01(\x0b\x32\x18.resources.LayoutContent\x12-\n\x06\x66ormat\x18\x02 \x01(\x0e\x32\x1d.resources.FieldLayout.Format\"\x16\n\x06\x46ormat\x12\x0c\n\x08NUCLIAv1\x10\x00\"[\n\x0e\x43lassification\x12\x10\n\x08labelset\x18\x01 \x01(\t\x12\r\n\x05label\x18\x02 \x01(\t\x12\x19\n\x11\x63\x61ncelled_by_user\x18\x03 \x01(\x08\x12\r\n\x05split\x18\x04 \x01(\t\"f\n\x0cUserMetadata\x12\x32\n\x0f\x63lassifications\x18\x01 \x03(\x0b\x32\x19.resources.Classification\x12\"\n\trelations\x18\x03 \x03(\x0b\x32\x0f.utils.Relation\"m\n\x14\x46ieldClassifications\x12!\n\x05\x66ield\x18\x01 \x01(\x0b\x32\x12.resources.FieldID\x12\x32\n\x0f\x63lassifications\x18\x02 \x03(\x0b\x32\x19.resources.Classification\"R\n\x10\x43omputedMetadata\x12>\n\x15\x66ield_classifications\x18\x01 \x03(\x0b\x32\x1f.resources.FieldClassifications\"p\n\nTokenSplit\x12\r\n\x05token\x18\x01 \x01(\t\x12\r\n\x05klass\x18\x02 \x01(\t\x12\r\n\x05start\x18\x03 \x01(\r\x12\x0b\n\x03\x65nd\x18\x04 \x01(\r\x12\x19\n\x11\x63\x61ncelled_by_user\x18\x05 \x01(\x08\x12\r\n\x05split\x18\x06 \x01(\t\"V\n\x13ParagraphAnnotation\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x32\n\x0f\x63lassifications\x18\x02 \x03(\x0b\x32\x19.resources.Classification\"i\n\x18QuestionAnswerAnnotation\x12\x32\n\x0fquestion_answer\x18\x01 \x01(\x0b\x32\x19.resources.QuestionAnswer\x12\x19\n\x11\x63\x61ncelled_by_user\x18\x02 \x01(\x08\"m\n\x0fVisualSelection\x12\r\n\x05label\x18\x01 \x01(\t\x12\x0b\n\x03top\x18\x02 \x01(\x02\x12\x0c\n\x04left\x18\x03 \x01(\x02\x12\r\n\x05right\x18\x04 \x01(\x02\x12\x0e\n\x06\x62ottom\x18\x05 \x01(\x02\x12\x11\n\ttoken_ids\x18\x06 \x03(\r\"J\n\x0ePageSelections\x12\x0c\n\x04page\x18\x01 \x01(\r\x12*\n\x06visual\x18\x02 \x03(\x0b\x32\x1a.resources.VisualSelection\"\x83\x02\n\x11UserFieldMetadata\x12$\n\x05token\x18\x01 \x03(\x0b\x32\x15.resources.TokenSplit\x12\x32\n\nparagraphs\x18\x02 \x03(\x0b\x32\x1e.resources.ParagraphAnnotation\x12\x32\n\x0fpage_selections\x18\x04 \x03(\x0b\x32\x19.resources.PageSelections\x12=\n\x10question_answers\x18\x05 \x03(\x0b\x32#.resources.QuestionAnswerAnnotation\x12!\n\x05\x66ield\x18\x03 \x01(\x0b\x32\x12.resources.FieldID\"\x90\x03\n\tFieldLink\x12)\n\x05\x61\x64\x64\x65\x64\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x32\n\x07headers\x18\x02 \x03(\x0b\x32!.resources.FieldLink.HeadersEntry\x12\x32\n\x07\x63ookies\x18\x03 \x03(\x0b\x32!.resources.FieldLink.CookiesEntry\x12\x0b\n\x03uri\x18\x04 \x01(\t\x12\x10\n\x08language\x18\x05 \x01(\t\x12<\n\x0clocalstorage\x18\x06 \x03(\x0b\x32&.resources.FieldLink.LocalstorageEntry\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a.\n\x0c\x43ookiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11LocalstorageEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\x18\n\x07Keyword\x12\r\n\x05value\x18\x01 \x01(\t\"7\n\x0f\x46ieldKeywordset\x12$\n\x08keywords\x18\x01 \x03(\x0b\x32\x12.resources.Keyword\":\n\rFieldDatetime\x12)\n\x05value\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xd3\x02\n\tFieldFile\x12)\n\x05\x61\x64\x64\x65\x64\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\"\n\x04\x66ile\x18\x02 \x01(\x0b\x32\x14.resources.CloudFile\x12\x10\n\x08language\x18\x03 \x01(\t\x12\x10\n\x08password\x18\x04 \x01(\t\x12\x0b\n\x03url\x18\x05 \x01(\t\x12\x32\n\x07headers\x18\x06 \x03(\x0b\x32!.resources.FieldFile.HeadersEntry\x12\x32\n\x07\x63ookies\x18\x07 \x03(\x0b\x32!.resources.FieldFile.CookiesEntry\x1a.\n\x0cHeadersEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a.\n\x0c\x43ookiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"3\n\x06\x45ntity\x12\r\n\x05token\x18\x01 \x01(\t\x12\x0c\n\x04root\x18\x02 \x01(\t\x12\x0c\n\x04type\x18\x03 \x01(\t\"\xa3\x01\n\x12\x46ieldLargeMetadata\x12#\n\x08\x65ntities\x18\x01 \x03(\x0b\x32\x11.resources.Entity\x12\x39\n\x06tokens\x18\x02 \x03(\x0b\x32).resources.FieldLargeMetadata.TokensEntry\x1a-\n\x0bTokensEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x05:\x02\x38\x01\"\x82\x02\n\x15LargeComputedMetadata\x12/\n\x08metadata\x18\x01 \x01(\x0b\x32\x1d.resources.FieldLargeMetadata\x12K\n\x0esplit_metadata\x18\x02 \x03(\x0b\x32\x33.resources.LargeComputedMetadata.SplitMetadataEntry\x12\x16\n\x0e\x64\x65leted_splits\x18\x03 \x03(\t\x1aS\n\x12SplitMetadataEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12,\n\x05value\x18\x02 \x01(\x0b\x32\x1d.resources.FieldLargeMetadata:\x02\x38\x01\"\xa9\x01\n\x1cLargeComputedMetadataWrapper\x12\x30\n\x04real\x18\x01 \x01(\x0b\x32 .resources.LargeComputedMetadataH\x00\x12$\n\x04\x66ile\x18\x02 \x01(\x0b\x32\x14.resources.CloudFileH\x00\x12!\n\x05\x66ield\x18\x03 \x01(\x0b\x32\x12.resources.FieldIDB\x0e\n\x0c\x66ile_or_data\"+\n\rPagePositions\x12\r\n\x05start\x18\x01 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x03\"2\n\x11PageStructurePage\x12\r\n\x05width\x18\x01 \x01(\x03\x12\x0e\n\x06height\x18\x02 \x01(\x03\"\xe2\x01\n\x12PageStructureToken\x12\x1b\n\x0f__x__deprecated\x18\x01 \x01(\x03\x42\x02\x18\x01\x12\x1b\n\x0f__y__deprecated\x18\x02 \x01(\x03\x42\x02\x18\x01\x12\x1f\n\x13__width__deprecated\x18\x03 \x01(\x03\x42\x02\x18\x01\x12 \n\x14__height__deprecated\x18\x04 \x01(\x03\x42\x02\x18\x01\x12\t\n\x01x\x18\x07 \x01(\x02\x12\t\n\x01y\x18\x08 \x01(\x02\x12\r\n\x05width\x18\t \x01(\x02\x12\x0e\n\x06height\x18\n \x01(\x02\x12\x0c\n\x04text\x18\x05 \x01(\t\x12\x0c\n\x04line\x18\x06 \x01(\x02\"j\n\rPageStructure\x12*\n\x04page\x18\x01 \x01(\x0b\x32\x1c.resources.PageStructurePage\x12-\n\x06tokens\x18\x02 \x03(\x0b\x32\x1d.resources.PageStructureToken\"\x8b\x01\n\tFilePages\x12#\n\x05pages\x18\x01 \x03(\x0b\x32\x14.resources.CloudFile\x12+\n\tpositions\x18\x02 \x03(\x0b\x32\x18.resources.PagePositions\x12,\n\nstructures\x18\x03 \x03(\x0b\x32\x18.resources.PageStructure\"\xdc\x01\n\x0bRowsPreview\x12\x32\n\x06sheets\x18\x01 \x03(\x0b\x32\".resources.RowsPreview.SheetsEntry\x1aL\n\x05Sheet\x12.\n\x04rows\x18\x01 \x03(\x0b\x32 .resources.RowsPreview.Sheet.Row\x1a\x13\n\x03Row\x12\x0c\n\x04\x63\x65ll\x18\x01 \x03(\t\x1aK\n\x0bSheetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12+\n\x05value\x18\x02 \x01(\x0b\x32\x1c.resources.RowsPreview.Sheet:\x02\x38\x01\"B\n\x07\x46ieldID\x12(\n\nfield_type\x18\x01 \x01(\x0e\x32\x14.resources.FieldType\x12\r\n\x05\x66ield\x18\x02 \x01(\t\"1\n\x0b\x41llFieldIDs\x12\"\n\x06\x66ields\x18\x01 \x03(\x0b\x32\x12.resources.FieldID*r\n\tFieldType\x12\x08\n\x04\x46ILE\x10\x00\x12\x08\n\x04LINK\x10\x01\x12\x0c\n\x08\x44\x41TETIME\x10\x02\x12\x0e\n\nKEYWORDSET\x10\x03\x12\x08\n\x04TEXT\x10\x04\x12\n\n\x06LAYOUT\x10\x05\x12\x0b\n\x07GENERIC\x10\x06\x12\x10\n\x0c\x43ONVERSATION\x10\x07P\x00\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.resources_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.resources_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None _ORIGIN_METADATAENTRY._options = None _ORIGIN_METADATAENTRY._serialized_options = b'8\001' @@ -78,194 +78,194 @@ _PAGESTRUCTURETOKEN.fields_by_name['__height__deprecated']._serialized_options = b'\030\001' _ROWSPREVIEW_SHEETSENTRY._options = None _ROWSPREVIEW_SHEETSENTRY._serialized_options = b'8\001' - _FIELDTYPE._serialized_start=10964 - _FIELDTYPE._serialized_end=11078 - _CLOUDFILE._serialized_start=139 - _CLOUDFILE._serialized_end=507 - _CLOUDFILE_SOURCE._serialized_start=409 - _CLOUDFILE_SOURCE._serialized_end=507 - _BASIC._serialized_start=510 - _BASIC._serialized_end=1054 - _BASIC_QUEUETYPE._serialized_start=1018 - _BASIC_QUEUETYPE._serialized_end=1054 - _ORIGIN._serialized_start=1057 - _ORIGIN._serialized_end=1442 - _ORIGIN_METADATAENTRY._serialized_start=1354 - _ORIGIN_METADATAENTRY._serialized_end=1401 - _ORIGIN_SOURCE._serialized_start=1403 - _ORIGIN_SOURCE._serialized_end=1442 - _EXTRA._serialized_start=1444 - _EXTRA._serialized_end=1494 - _RELATIONS._serialized_start=1496 - _RELATIONS._serialized_end=1543 - _MESSAGECONTENT._serialized_start=1546 - _MESSAGECONTENT._serialized_end=1723 - _MESSAGECONTENT_FORMAT._serialized_start=1671 - _MESSAGECONTENT_FORMAT._serialized_end=1723 - _MESSAGE._serialized_start=1726 - _MESSAGE._serialized_end=1964 - _MESSAGE_MESSAGETYPE._serialized_start=1914 - _MESSAGE_MESSAGETYPE._serialized_end=1964 - _CONVERSATION._serialized_start=1966 - _CONVERSATION._serialized_end=2018 - _FIELDCONVERSATION._serialized_start=2020 - _FIELDCONVERSATION._serialized_end=2083 - _NESTEDPOSITION._serialized_start=2085 - _NESTEDPOSITION._serialized_end=2143 - _NESTEDLISTPOSITION._serialized_start=2145 - _NESTEDLISTPOSITION._serialized_end=2211 - _FILEEXTRACTEDDATA._serialized_start=2214 - _FILEEXTRACTEDDATA._serialized_end=3295 - _FILEEXTRACTEDDATA_METADATAENTRY._serialized_start=1354 - _FILEEXTRACTEDDATA_METADATAENTRY._serialized_end=1401 - _FILEEXTRACTEDDATA_NESTEDENTRY._serialized_start=2921 - _FILEEXTRACTEDDATA_NESTEDENTRY._serialized_end=2966 - _FILEEXTRACTEDDATA_FILEGENERATEDENTRY._serialized_start=2968 - _FILEEXTRACTEDDATA_FILEGENERATEDENTRY._serialized_end=3042 - _FILEEXTRACTEDDATA_FILEROWSPREVIEWSENTRY._serialized_start=3044 - _FILEEXTRACTEDDATA_FILEROWSPREVIEWSENTRY._serialized_end=3123 - _FILEEXTRACTEDDATA_NESTEDPOSITIONENTRY._serialized_start=3125 - _FILEEXTRACTEDDATA_NESTEDPOSITIONENTRY._serialized_end=3205 - _FILEEXTRACTEDDATA_NESTEDLISTPOSITIONENTRY._serialized_start=3207 - _FILEEXTRACTEDDATA_NESTEDLISTPOSITIONENTRY._serialized_end=3295 - _LINKEXTRACTEDDATA._serialized_start=3298 - _LINKEXTRACTEDDATA._serialized_end=3749 - _LINKEXTRACTEDDATA_METADATAENTRY._serialized_start=1354 - _LINKEXTRACTEDDATA_METADATAENTRY._serialized_end=1401 - _EXTRACTEDTEXTWRAPPER._serialized_start=3752 - _EXTRACTEDTEXTWRAPPER._serialized_end=3901 - _EXTRACTEDVECTORSWRAPPER._serialized_start=3904 - _EXTRACTEDVECTORSWRAPPER._serialized_end=4058 - _USERVECTORSWRAPPER._serialized_start=4061 - _USERVECTORSWRAPPER._serialized_end=4314 - _USERVECTORSWRAPPER_VECTORSTODELETEENTRY._serialized_start=4236 - _USERVECTORSWRAPPER_VECTORSTODELETEENTRY._serialized_end=4314 - _SENTENCE._serialized_start=4316 - _SENTENCE._serialized_end=4367 - _PARAGRAPH._serialized_start=4370 - _PARAGRAPH._serialized_end=4717 - _PARAGRAPH_TYPEPARAGRAPH._serialized_start=4624 - _PARAGRAPH_TYPEPARAGRAPH._serialized_end=4717 - _POSITION._serialized_start=4719 - _POSITION._serialized_end=4757 - _POSITIONS._serialized_start=4759 - _POSITIONS._serialized_end=4825 - _FIELDMETADATA._serialized_start=4828 - _FIELDMETADATA._serialized_end=5497 - _FIELDMETADATA_NERENTRY._serialized_start=5383 - _FIELDMETADATA_NERENTRY._serialized_end=5425 - _FIELDMETADATA_POSITIONSENTRY._serialized_start=5427 - _FIELDMETADATA_POSITIONSENTRY._serialized_end=5497 - _QUESTION._serialized_start=5499 - _QUESTION._serialized_end=5565 - _ANSWERS._serialized_start=5567 - _ANSWERS._serialized_end=5632 - _QUESTIONANSWER._serialized_start=5634 - _QUESTIONANSWER._serialized_end=5726 - _QUESTIONANSWERS._serialized_start=5728 - _QUESTIONANSWERS._serialized_end=5797 - _FIELDQUESTIONANSWERWRAPPER._serialized_start=5800 - _FIELDQUESTIONANSWERWRAPPER._serialized_end=5973 - _FIELDCOMPUTEDMETADATA._serialized_start=5976 - _FIELDCOMPUTEDMETADATA._serialized_end=6224 - _FIELDCOMPUTEDMETADATA_SPLITMETADATAENTRY._serialized_start=6146 - _FIELDCOMPUTEDMETADATA_SPLITMETADATAENTRY._serialized_end=6224 - _FIELDCOMPUTEDMETADATAWRAPPER._serialized_start=6226 - _FIELDCOMPUTEDMETADATAWRAPPER._serialized_end=6343 - _METADATA._serialized_start=6346 - _METADATA._serialized_end=6630 - _METADATA_METADATAENTRY._serialized_start=1354 - _METADATA_METADATAENTRY._serialized_end=1401 - _METADATA_STATUS._serialized_start=6557 - _METADATA_STATUS._serialized_end=6630 - _FIELDTEXT._serialized_start=6633 - _FIELDTEXT._serialized_end=6780 - _FIELDTEXT_FORMAT._serialized_start=6718 - _FIELDTEXT_FORMAT._serialized_end=6780 - _BLOCK._serialized_start=6783 - _BLOCK._serialized_end=7067 - _BLOCK_TYPEBLOCK._serialized_start=6952 - _BLOCK_TYPEBLOCK._serialized_end=7067 - _LAYOUTCONTENT._serialized_start=7070 - _LAYOUTCONTENT._serialized_end=7228 - _LAYOUTCONTENT_BLOCKSENTRY._serialized_start=7165 - _LAYOUTCONTENT_BLOCKSENTRY._serialized_end=7228 - _FIELDLAYOUT._serialized_start=7230 - _FIELDLAYOUT._serialized_end=7354 - _FIELDLAYOUT_FORMAT._serialized_start=7332 - _FIELDLAYOUT_FORMAT._serialized_end=7354 - _CLASSIFICATION._serialized_start=7356 - _CLASSIFICATION._serialized_end=7447 - _USERMETADATA._serialized_start=7449 - _USERMETADATA._serialized_end=7551 - _FIELDCLASSIFICATIONS._serialized_start=7553 - _FIELDCLASSIFICATIONS._serialized_end=7662 - _COMPUTEDMETADATA._serialized_start=7664 - _COMPUTEDMETADATA._serialized_end=7746 - _TOKENSPLIT._serialized_start=7748 - _TOKENSPLIT._serialized_end=7860 - _PARAGRAPHANNOTATION._serialized_start=7862 - _PARAGRAPHANNOTATION._serialized_end=7948 - _QUESTIONANSWERANNOTATION._serialized_start=7950 - _QUESTIONANSWERANNOTATION._serialized_end=8055 - _VISUALSELECTION._serialized_start=8057 - _VISUALSELECTION._serialized_end=8166 - _PAGESELECTIONS._serialized_start=8168 - _PAGESELECTIONS._serialized_end=8242 - _USERFIELDMETADATA._serialized_start=8245 - _USERFIELDMETADATA._serialized_end=8504 - _FIELDLINK._serialized_start=8507 - _FIELDLINK._serialized_end=8907 - _FIELDLINK_HEADERSENTRY._serialized_start=8760 - _FIELDLINK_HEADERSENTRY._serialized_end=8806 - _FIELDLINK_COOKIESENTRY._serialized_start=8808 - _FIELDLINK_COOKIESENTRY._serialized_end=8854 - _FIELDLINK_LOCALSTORAGEENTRY._serialized_start=8856 - _FIELDLINK_LOCALSTORAGEENTRY._serialized_end=8907 - _KEYWORD._serialized_start=8909 - _KEYWORD._serialized_end=8933 - _FIELDKEYWORDSET._serialized_start=8935 - _FIELDKEYWORDSET._serialized_end=8990 - _FIELDDATETIME._serialized_start=8992 - _FIELDDATETIME._serialized_end=9050 - _FIELDFILE._serialized_start=9053 - _FIELDFILE._serialized_end=9392 - _FIELDFILE_HEADERSENTRY._serialized_start=8760 - _FIELDFILE_HEADERSENTRY._serialized_end=8806 - _FIELDFILE_COOKIESENTRY._serialized_start=8808 - _FIELDFILE_COOKIESENTRY._serialized_end=8854 - _ENTITY._serialized_start=9394 - _ENTITY._serialized_end=9445 - _FIELDLARGEMETADATA._serialized_start=9448 - _FIELDLARGEMETADATA._serialized_end=9611 - _FIELDLARGEMETADATA_TOKENSENTRY._serialized_start=9566 - _FIELDLARGEMETADATA_TOKENSENTRY._serialized_end=9611 - _LARGECOMPUTEDMETADATA._serialized_start=9614 - _LARGECOMPUTEDMETADATA._serialized_end=9872 - _LARGECOMPUTEDMETADATA_SPLITMETADATAENTRY._serialized_start=9789 - _LARGECOMPUTEDMETADATA_SPLITMETADATAENTRY._serialized_end=9872 - _LARGECOMPUTEDMETADATAWRAPPER._serialized_start=9875 - _LARGECOMPUTEDMETADATAWRAPPER._serialized_end=10044 - _PAGEPOSITIONS._serialized_start=10046 - _PAGEPOSITIONS._serialized_end=10089 - _PAGESTRUCTUREPAGE._serialized_start=10091 - _PAGESTRUCTUREPAGE._serialized_end=10141 - _PAGESTRUCTURETOKEN._serialized_start=10144 - _PAGESTRUCTURETOKEN._serialized_end=10370 - _PAGESTRUCTURE._serialized_start=10372 - _PAGESTRUCTURE._serialized_end=10478 - _FILEPAGES._serialized_start=10481 - _FILEPAGES._serialized_end=10620 - _ROWSPREVIEW._serialized_start=10623 - _ROWSPREVIEW._serialized_end=10843 - _ROWSPREVIEW_SHEET._serialized_start=10690 - _ROWSPREVIEW_SHEET._serialized_end=10766 - _ROWSPREVIEW_SHEET_ROW._serialized_start=10747 - _ROWSPREVIEW_SHEET_ROW._serialized_end=10766 - _ROWSPREVIEW_SHEETSENTRY._serialized_start=10768 - _ROWSPREVIEW_SHEETSENTRY._serialized_end=10843 - _FIELDID._serialized_start=10845 - _FIELDID._serialized_end=10911 - _ALLFIELDIDS._serialized_start=10913 - _ALLFIELDIDS._serialized_end=10962 + _globals['_FIELDTYPE']._serialized_start=10964 + _globals['_FIELDTYPE']._serialized_end=11078 + _globals['_CLOUDFILE']._serialized_start=139 + _globals['_CLOUDFILE']._serialized_end=507 + _globals['_CLOUDFILE_SOURCE']._serialized_start=409 + _globals['_CLOUDFILE_SOURCE']._serialized_end=507 + _globals['_BASIC']._serialized_start=510 + _globals['_BASIC']._serialized_end=1054 + _globals['_BASIC_QUEUETYPE']._serialized_start=1018 + _globals['_BASIC_QUEUETYPE']._serialized_end=1054 + _globals['_ORIGIN']._serialized_start=1057 + _globals['_ORIGIN']._serialized_end=1442 + _globals['_ORIGIN_METADATAENTRY']._serialized_start=1354 + _globals['_ORIGIN_METADATAENTRY']._serialized_end=1401 + _globals['_ORIGIN_SOURCE']._serialized_start=1403 + _globals['_ORIGIN_SOURCE']._serialized_end=1442 + _globals['_EXTRA']._serialized_start=1444 + _globals['_EXTRA']._serialized_end=1494 + _globals['_RELATIONS']._serialized_start=1496 + _globals['_RELATIONS']._serialized_end=1543 + _globals['_MESSAGECONTENT']._serialized_start=1546 + _globals['_MESSAGECONTENT']._serialized_end=1723 + _globals['_MESSAGECONTENT_FORMAT']._serialized_start=1671 + _globals['_MESSAGECONTENT_FORMAT']._serialized_end=1723 + _globals['_MESSAGE']._serialized_start=1726 + _globals['_MESSAGE']._serialized_end=1964 + _globals['_MESSAGE_MESSAGETYPE']._serialized_start=1914 + _globals['_MESSAGE_MESSAGETYPE']._serialized_end=1964 + _globals['_CONVERSATION']._serialized_start=1966 + _globals['_CONVERSATION']._serialized_end=2018 + _globals['_FIELDCONVERSATION']._serialized_start=2020 + _globals['_FIELDCONVERSATION']._serialized_end=2083 + _globals['_NESTEDPOSITION']._serialized_start=2085 + _globals['_NESTEDPOSITION']._serialized_end=2143 + _globals['_NESTEDLISTPOSITION']._serialized_start=2145 + _globals['_NESTEDLISTPOSITION']._serialized_end=2211 + _globals['_FILEEXTRACTEDDATA']._serialized_start=2214 + _globals['_FILEEXTRACTEDDATA']._serialized_end=3295 + _globals['_FILEEXTRACTEDDATA_METADATAENTRY']._serialized_start=1354 + _globals['_FILEEXTRACTEDDATA_METADATAENTRY']._serialized_end=1401 + _globals['_FILEEXTRACTEDDATA_NESTEDENTRY']._serialized_start=2921 + _globals['_FILEEXTRACTEDDATA_NESTEDENTRY']._serialized_end=2966 + _globals['_FILEEXTRACTEDDATA_FILEGENERATEDENTRY']._serialized_start=2968 + _globals['_FILEEXTRACTEDDATA_FILEGENERATEDENTRY']._serialized_end=3042 + _globals['_FILEEXTRACTEDDATA_FILEROWSPREVIEWSENTRY']._serialized_start=3044 + _globals['_FILEEXTRACTEDDATA_FILEROWSPREVIEWSENTRY']._serialized_end=3123 + _globals['_FILEEXTRACTEDDATA_NESTEDPOSITIONENTRY']._serialized_start=3125 + _globals['_FILEEXTRACTEDDATA_NESTEDPOSITIONENTRY']._serialized_end=3205 + _globals['_FILEEXTRACTEDDATA_NESTEDLISTPOSITIONENTRY']._serialized_start=3207 + _globals['_FILEEXTRACTEDDATA_NESTEDLISTPOSITIONENTRY']._serialized_end=3295 + _globals['_LINKEXTRACTEDDATA']._serialized_start=3298 + _globals['_LINKEXTRACTEDDATA']._serialized_end=3749 + _globals['_LINKEXTRACTEDDATA_METADATAENTRY']._serialized_start=1354 + _globals['_LINKEXTRACTEDDATA_METADATAENTRY']._serialized_end=1401 + _globals['_EXTRACTEDTEXTWRAPPER']._serialized_start=3752 + _globals['_EXTRACTEDTEXTWRAPPER']._serialized_end=3901 + _globals['_EXTRACTEDVECTORSWRAPPER']._serialized_start=3904 + _globals['_EXTRACTEDVECTORSWRAPPER']._serialized_end=4058 + _globals['_USERVECTORSWRAPPER']._serialized_start=4061 + _globals['_USERVECTORSWRAPPER']._serialized_end=4314 + _globals['_USERVECTORSWRAPPER_VECTORSTODELETEENTRY']._serialized_start=4236 + _globals['_USERVECTORSWRAPPER_VECTORSTODELETEENTRY']._serialized_end=4314 + _globals['_SENTENCE']._serialized_start=4316 + _globals['_SENTENCE']._serialized_end=4367 + _globals['_PARAGRAPH']._serialized_start=4370 + _globals['_PARAGRAPH']._serialized_end=4717 + _globals['_PARAGRAPH_TYPEPARAGRAPH']._serialized_start=4624 + _globals['_PARAGRAPH_TYPEPARAGRAPH']._serialized_end=4717 + _globals['_POSITION']._serialized_start=4719 + _globals['_POSITION']._serialized_end=4757 + _globals['_POSITIONS']._serialized_start=4759 + _globals['_POSITIONS']._serialized_end=4825 + _globals['_FIELDMETADATA']._serialized_start=4828 + _globals['_FIELDMETADATA']._serialized_end=5497 + _globals['_FIELDMETADATA_NERENTRY']._serialized_start=5383 + _globals['_FIELDMETADATA_NERENTRY']._serialized_end=5425 + _globals['_FIELDMETADATA_POSITIONSENTRY']._serialized_start=5427 + _globals['_FIELDMETADATA_POSITIONSENTRY']._serialized_end=5497 + _globals['_QUESTION']._serialized_start=5499 + _globals['_QUESTION']._serialized_end=5565 + _globals['_ANSWERS']._serialized_start=5567 + _globals['_ANSWERS']._serialized_end=5632 + _globals['_QUESTIONANSWER']._serialized_start=5634 + _globals['_QUESTIONANSWER']._serialized_end=5726 + _globals['_QUESTIONANSWERS']._serialized_start=5728 + _globals['_QUESTIONANSWERS']._serialized_end=5797 + _globals['_FIELDQUESTIONANSWERWRAPPER']._serialized_start=5800 + _globals['_FIELDQUESTIONANSWERWRAPPER']._serialized_end=5973 + _globals['_FIELDCOMPUTEDMETADATA']._serialized_start=5976 + _globals['_FIELDCOMPUTEDMETADATA']._serialized_end=6224 + _globals['_FIELDCOMPUTEDMETADATA_SPLITMETADATAENTRY']._serialized_start=6146 + _globals['_FIELDCOMPUTEDMETADATA_SPLITMETADATAENTRY']._serialized_end=6224 + _globals['_FIELDCOMPUTEDMETADATAWRAPPER']._serialized_start=6226 + _globals['_FIELDCOMPUTEDMETADATAWRAPPER']._serialized_end=6343 + _globals['_METADATA']._serialized_start=6346 + _globals['_METADATA']._serialized_end=6630 + _globals['_METADATA_METADATAENTRY']._serialized_start=1354 + _globals['_METADATA_METADATAENTRY']._serialized_end=1401 + _globals['_METADATA_STATUS']._serialized_start=6557 + _globals['_METADATA_STATUS']._serialized_end=6630 + _globals['_FIELDTEXT']._serialized_start=6633 + _globals['_FIELDTEXT']._serialized_end=6780 + _globals['_FIELDTEXT_FORMAT']._serialized_start=6718 + _globals['_FIELDTEXT_FORMAT']._serialized_end=6780 + _globals['_BLOCK']._serialized_start=6783 + _globals['_BLOCK']._serialized_end=7067 + _globals['_BLOCK_TYPEBLOCK']._serialized_start=6952 + _globals['_BLOCK_TYPEBLOCK']._serialized_end=7067 + _globals['_LAYOUTCONTENT']._serialized_start=7070 + _globals['_LAYOUTCONTENT']._serialized_end=7228 + _globals['_LAYOUTCONTENT_BLOCKSENTRY']._serialized_start=7165 + _globals['_LAYOUTCONTENT_BLOCKSENTRY']._serialized_end=7228 + _globals['_FIELDLAYOUT']._serialized_start=7230 + _globals['_FIELDLAYOUT']._serialized_end=7354 + _globals['_FIELDLAYOUT_FORMAT']._serialized_start=7332 + _globals['_FIELDLAYOUT_FORMAT']._serialized_end=7354 + _globals['_CLASSIFICATION']._serialized_start=7356 + _globals['_CLASSIFICATION']._serialized_end=7447 + _globals['_USERMETADATA']._serialized_start=7449 + _globals['_USERMETADATA']._serialized_end=7551 + _globals['_FIELDCLASSIFICATIONS']._serialized_start=7553 + _globals['_FIELDCLASSIFICATIONS']._serialized_end=7662 + _globals['_COMPUTEDMETADATA']._serialized_start=7664 + _globals['_COMPUTEDMETADATA']._serialized_end=7746 + _globals['_TOKENSPLIT']._serialized_start=7748 + _globals['_TOKENSPLIT']._serialized_end=7860 + _globals['_PARAGRAPHANNOTATION']._serialized_start=7862 + _globals['_PARAGRAPHANNOTATION']._serialized_end=7948 + _globals['_QUESTIONANSWERANNOTATION']._serialized_start=7950 + _globals['_QUESTIONANSWERANNOTATION']._serialized_end=8055 + _globals['_VISUALSELECTION']._serialized_start=8057 + _globals['_VISUALSELECTION']._serialized_end=8166 + _globals['_PAGESELECTIONS']._serialized_start=8168 + _globals['_PAGESELECTIONS']._serialized_end=8242 + _globals['_USERFIELDMETADATA']._serialized_start=8245 + _globals['_USERFIELDMETADATA']._serialized_end=8504 + _globals['_FIELDLINK']._serialized_start=8507 + _globals['_FIELDLINK']._serialized_end=8907 + _globals['_FIELDLINK_HEADERSENTRY']._serialized_start=8760 + _globals['_FIELDLINK_HEADERSENTRY']._serialized_end=8806 + _globals['_FIELDLINK_COOKIESENTRY']._serialized_start=8808 + _globals['_FIELDLINK_COOKIESENTRY']._serialized_end=8854 + _globals['_FIELDLINK_LOCALSTORAGEENTRY']._serialized_start=8856 + _globals['_FIELDLINK_LOCALSTORAGEENTRY']._serialized_end=8907 + _globals['_KEYWORD']._serialized_start=8909 + _globals['_KEYWORD']._serialized_end=8933 + _globals['_FIELDKEYWORDSET']._serialized_start=8935 + _globals['_FIELDKEYWORDSET']._serialized_end=8990 + _globals['_FIELDDATETIME']._serialized_start=8992 + _globals['_FIELDDATETIME']._serialized_end=9050 + _globals['_FIELDFILE']._serialized_start=9053 + _globals['_FIELDFILE']._serialized_end=9392 + _globals['_FIELDFILE_HEADERSENTRY']._serialized_start=8760 + _globals['_FIELDFILE_HEADERSENTRY']._serialized_end=8806 + _globals['_FIELDFILE_COOKIESENTRY']._serialized_start=8808 + _globals['_FIELDFILE_COOKIESENTRY']._serialized_end=8854 + _globals['_ENTITY']._serialized_start=9394 + _globals['_ENTITY']._serialized_end=9445 + _globals['_FIELDLARGEMETADATA']._serialized_start=9448 + _globals['_FIELDLARGEMETADATA']._serialized_end=9611 + _globals['_FIELDLARGEMETADATA_TOKENSENTRY']._serialized_start=9566 + _globals['_FIELDLARGEMETADATA_TOKENSENTRY']._serialized_end=9611 + _globals['_LARGECOMPUTEDMETADATA']._serialized_start=9614 + _globals['_LARGECOMPUTEDMETADATA']._serialized_end=9872 + _globals['_LARGECOMPUTEDMETADATA_SPLITMETADATAENTRY']._serialized_start=9789 + _globals['_LARGECOMPUTEDMETADATA_SPLITMETADATAENTRY']._serialized_end=9872 + _globals['_LARGECOMPUTEDMETADATAWRAPPER']._serialized_start=9875 + _globals['_LARGECOMPUTEDMETADATAWRAPPER']._serialized_end=10044 + _globals['_PAGEPOSITIONS']._serialized_start=10046 + _globals['_PAGEPOSITIONS']._serialized_end=10089 + _globals['_PAGESTRUCTUREPAGE']._serialized_start=10091 + _globals['_PAGESTRUCTUREPAGE']._serialized_end=10141 + _globals['_PAGESTRUCTURETOKEN']._serialized_start=10144 + _globals['_PAGESTRUCTURETOKEN']._serialized_end=10370 + _globals['_PAGESTRUCTURE']._serialized_start=10372 + _globals['_PAGESTRUCTURE']._serialized_end=10478 + _globals['_FILEPAGES']._serialized_start=10481 + _globals['_FILEPAGES']._serialized_end=10620 + _globals['_ROWSPREVIEW']._serialized_start=10623 + _globals['_ROWSPREVIEW']._serialized_end=10843 + _globals['_ROWSPREVIEW_SHEET']._serialized_start=10690 + _globals['_ROWSPREVIEW_SHEET']._serialized_end=10766 + _globals['_ROWSPREVIEW_SHEET_ROW']._serialized_start=10747 + _globals['_ROWSPREVIEW_SHEET_ROW']._serialized_end=10766 + _globals['_ROWSPREVIEW_SHEETSENTRY']._serialized_start=10768 + _globals['_ROWSPREVIEW_SHEETSENTRY']._serialized_end=10843 + _globals['_FIELDID']._serialized_start=10845 + _globals['_FIELDID']._serialized_end=10911 + _globals['_ALLFIELDIDS']._serialized_start=10913 + _globals['_ALLFIELDIDS']._serialized_end=10962 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/standalone_pb2.py b/nucliadb_protos/python/nucliadb_protos/standalone_pb2.py index 8f0e807308..2bd4da11f4 100644 --- a/nucliadb_protos/python/nucliadb_protos/standalone_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/standalone_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/standalone.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,19 +15,19 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n nucliadb_protos/standalone.proto\x12\nstandalone\"E\n\x11NodeActionRequest\x12\x0f\n\x07service\x18\x01 \x01(\t\x12\x0e\n\x06\x61\x63tion\x18\x02 \x01(\t\x12\x0f\n\x07payload\x18\x03 \x01(\x0c\"%\n\x12NodeActionResponse\x12\x0f\n\x07payload\x18\x01 \x01(\x0c\"\x11\n\x0fNodeInfoRequest\"D\n\x10NodeInfoResponse\x12\n\n\x02id\x18\x01 \x01(\t\x12\x0f\n\x07\x61\x64\x64ress\x18\x02 \x01(\t\x12\x13\n\x0bshard_count\x18\x03 \x01(\r2\xb2\x01\n\x18StandaloneClusterService\x12M\n\nNodeAction\x12\x1d.standalone.NodeActionRequest\x1a\x1e.standalone.NodeActionResponse\"\x00\x12G\n\x08NodeInfo\x12\x1b.standalone.NodeInfoRequest\x1a\x1c.standalone.NodeInfoResponse\"\x00\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.standalone_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.standalone_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None - _NODEACTIONREQUEST._serialized_start=48 - _NODEACTIONREQUEST._serialized_end=117 - _NODEACTIONRESPONSE._serialized_start=119 - _NODEACTIONRESPONSE._serialized_end=156 - _NODEINFOREQUEST._serialized_start=158 - _NODEINFOREQUEST._serialized_end=175 - _NODEINFORESPONSE._serialized_start=177 - _NODEINFORESPONSE._serialized_end=245 - _STANDALONECLUSTERSERVICE._serialized_start=248 - _STANDALONECLUSTERSERVICE._serialized_end=426 + _globals['_NODEACTIONREQUEST']._serialized_start=48 + _globals['_NODEACTIONREQUEST']._serialized_end=117 + _globals['_NODEACTIONRESPONSE']._serialized_start=119 + _globals['_NODEACTIONRESPONSE']._serialized_end=156 + _globals['_NODEINFOREQUEST']._serialized_start=158 + _globals['_NODEINFOREQUEST']._serialized_end=175 + _globals['_NODEINFORESPONSE']._serialized_start=177 + _globals['_NODEINFORESPONSE']._serialized_end=245 + _globals['_STANDALONECLUSTERSERVICE']._serialized_start=248 + _globals['_STANDALONECLUSTERSERVICE']._serialized_end=426 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/train_pb2.py b/nucliadb_protos/python/nucliadb_protos/train_pb2.py index c0d8126da5..1505a2c03d 100644 --- a/nucliadb_protos/python/nucliadb_protos/train_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/train_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/train.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -54,10 +54,10 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bnucliadb_protos/train.proto\x12\x05train\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\"nucliadb_protos/knowledgebox.proto\x1a\x1fnucliadb_protos/resources.proto\x1a\x1cnucliadb_protos/writer.proto\"Q\n\x0f\x45nabledMetadata\x12\x0c\n\x04text\x18\x01 \x01(\x08\x12\x10\n\x08\x65ntities\x18\x02 \x01(\x08\x12\x0e\n\x06labels\x18\x03 \x01(\x08\x12\x0e\n\x06vector\x18\x04 \x01(\x08\"\x92\x01\n\x0bTrainLabels\x12+\n\x08resource\x18\x01 \x03(\x0b\x32\x19.resources.Classification\x12(\n\x05\x66ield\x18\x02 \x03(\x0b\x32\x19.resources.Classification\x12,\n\tparagraph\x18\x03 \x03(\x0b\x32\x19.resources.Classification\"&\n\x08Position\x12\r\n\x05start\x18\x01 \x01(\x03\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x03\"E\n\x0f\x45ntityPositions\x12\x0e\n\x06\x65ntity\x18\x01 \x01(\t\x12\"\n\tpositions\x18\x02 \x03(\x0b\x32\x0f.train.Position\"\xcd\x02\n\rTrainMetadata\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x34\n\x08\x65ntities\x18\x02 \x03(\x0b\x32\".train.TrainMetadata.EntitiesEntry\x12\x43\n\x10\x65ntity_positions\x18\x05 \x03(\x0b\x32).train.TrainMetadata.EntityPositionsEntry\x12\"\n\x06labels\x18\x03 \x01(\x0b\x32\x12.train.TrainLabels\x12\x0e\n\x06vector\x18\x04 \x03(\x02\x1a/\n\rEntitiesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1aN\n\x14\x45ntityPositionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.train.EntityPositions:\x02\x38\x01\":\n\x0eGetInfoRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\"}\n\x18GetLabelsetsCountRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\x1b\n\x13paragraph_labelsets\x18\x02 \x03(\t\x12\x1a\n\x12resource_labelsets\x18\x03 \x03(\t\"\x87\x01\n\x13GetResourcesRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12(\n\x08metadata\x18\x02 \x01(\x0b\x32\x16.train.EnabledMetadata\x12\x0c\n\x04size\x18\x03 \x01(\x04\x12\x0e\n\x06random\x18\x04 \x01(\x08\"\xb9\x01\n\x14GetParagraphsRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12!\n\x05\x66ield\x18\x03 \x01(\x0b\x32\x12.resources.FieldID\x12(\n\x08metadata\x18\x04 \x01(\x0b\x32\x16.train.EnabledMetadata\x12\x0c\n\x04size\x18\x05 \x01(\x04\x12\x0e\n\x06random\x18\x06 \x01(\x08\"\xb8\x01\n\x13GetSentencesRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12!\n\x05\x66ield\x18\x03 \x01(\x0b\x32\x12.resources.FieldID\x12(\n\x08metadata\x18\x04 \x01(\x0b\x32\x16.train.EnabledMetadata\x12\x0c\n\x04size\x18\x05 \x01(\x04\x12\x0e\n\x06random\x18\x06 \x01(\x08\"\xb5\x01\n\x10GetFieldsRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\x0c\n\x04uuid\x18\x02 \x01(\t\x12!\n\x05\x66ield\x18\x03 \x01(\x0b\x32\x12.resources.FieldID\x12(\n\x08metadata\x18\x04 \x01(\x0b\x32\x16.train.EnabledMetadata\x12\x0c\n\x04size\x18\x05 \x01(\x04\x12\x0e\n\x06random\x18\x06 \x01(\x08\"U\n\tTrainInfo\x12\x11\n\tresources\x18\x01 \x01(\x04\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\"\x8d\x01\n\rTrainSentence\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12!\n\x05\x66ield\x18\x02 \x01(\x0b\x32\x12.resources.FieldID\x12\x11\n\tparagraph\x18\x03 \x01(\t\x12\x10\n\x08sentence\x18\x04 \x01(\t\x12&\n\x08metadata\x18\x05 \x01(\x0b\x32\x14.train.TrainMetadata\"|\n\x0eTrainParagraph\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12!\n\x05\x66ield\x18\x02 \x01(\x0b\x32\x12.resources.FieldID\x12\x11\n\tparagraph\x18\x03 \x01(\t\x12&\n\x08metadata\x18\x04 \x01(\x0b\x32\x14.train.TrainMetadata\"w\n\nTrainField\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12!\n\x05\x66ield\x18\x02 \x01(\x0b\x32\x12.resources.FieldID\x12\x10\n\x08subfield\x18\x03 \x01(\t\x12&\n\x08metadata\x18\x04 \x01(\x0b\x32\x14.train.TrainMetadata\"\xcb\x01\n\rTrainResource\x12\x0c\n\x04uuid\x18\x01 \x01(\t\x12\r\n\x05title\x18\x02 \x01(\t\x12\x0c\n\x04icon\x18\x03 \x01(\t\x12\x0c\n\x04slug\x18\x04 \x01(\t\x12+\n\x07\x63reated\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12,\n\x08modified\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12&\n\x08metadata\x18\x07 \x01(\x0b\x32\x14.train.TrainMetadata\"\xe6\x01\n\rLabelsetCount\x12\x38\n\nparagraphs\x18\x01 \x03(\x0b\x32$.train.LabelsetCount.ParagraphsEntry\x12\x36\n\tresources\x18\x02 \x03(\x0b\x32#.train.LabelsetCount.ResourcesEntry\x1a\x31\n\x0fParagraphsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\x1a\x30\n\x0eResourcesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x03:\x02\x38\x01\"\x91\x01\n\x0eLabelsetsCount\x12\x37\n\tlabelsets\x18\x02 \x03(\x0b\x32$.train.LabelsetsCount.LabelsetsEntry\x1a\x46\n\x0eLabelsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12#\n\x05value\x18\x02 \x01(\x0b\x32\x14.train.LabelsetCount:\x02\x38\x01\x32\xb9\x04\n\x05Train\x12\x34\n\x07GetInfo\x12\x15.train.GetInfoRequest\x1a\x10.train.TrainInfo\"\x00\x12\x44\n\x0cGetSentences\x12\x1a.train.GetSentencesRequest\x1a\x14.train.TrainSentence\"\x00\x30\x01\x12G\n\rGetParagraphs\x12\x1b.train.GetParagraphsRequest\x1a\x15.train.TrainParagraph\"\x00\x30\x01\x12;\n\tGetFields\x12\x17.train.GetFieldsRequest\x1a\x11.train.TrainField\"\x00\x30\x01\x12\x44\n\x0cGetResources\x12\x1a.train.GetResourcesRequest\x1a\x14.train.TrainResource\"\x00\x30\x01\x12J\n\x0bGetOntology\x12\x1b.fdbwriter.GetLabelsRequest\x1a\x1c.fdbwriter.GetLabelsResponse\"\x00\x12N\n\x0bGetEntities\x12\x1d.fdbwriter.GetEntitiesRequest\x1a\x1e.fdbwriter.GetEntitiesResponse\"\x00\x12L\n\x10GetOntologyCount\x12\x1f.train.GetLabelsetsCountRequest\x1a\x15.train.LabelsetsCount\"\x00P\x01P\x02P\x03\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.train_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.train_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None _TRAINMETADATA_ENTITIESENTRY._options = None _TRAINMETADATA_ENTITIESENTRY._serialized_options = b'8\001' @@ -69,52 +69,52 @@ _LABELSETCOUNT_RESOURCESENTRY._serialized_options = b'8\001' _LABELSETSCOUNT_LABELSETSENTRY._options = None _LABELSETSCOUNT_LABELSETSENTRY._serialized_options = b'8\001' - _ENABLEDMETADATA._serialized_start=170 - _ENABLEDMETADATA._serialized_end=251 - _TRAINLABELS._serialized_start=254 - _TRAINLABELS._serialized_end=400 - _POSITION._serialized_start=402 - _POSITION._serialized_end=440 - _ENTITYPOSITIONS._serialized_start=442 - _ENTITYPOSITIONS._serialized_end=511 - _TRAINMETADATA._serialized_start=514 - _TRAINMETADATA._serialized_end=847 - _TRAINMETADATA_ENTITIESENTRY._serialized_start=720 - _TRAINMETADATA_ENTITIESENTRY._serialized_end=767 - _TRAINMETADATA_ENTITYPOSITIONSENTRY._serialized_start=769 - _TRAINMETADATA_ENTITYPOSITIONSENTRY._serialized_end=847 - _GETINFOREQUEST._serialized_start=849 - _GETINFOREQUEST._serialized_end=907 - _GETLABELSETSCOUNTREQUEST._serialized_start=909 - _GETLABELSETSCOUNTREQUEST._serialized_end=1034 - _GETRESOURCESREQUEST._serialized_start=1037 - _GETRESOURCESREQUEST._serialized_end=1172 - _GETPARAGRAPHSREQUEST._serialized_start=1175 - _GETPARAGRAPHSREQUEST._serialized_end=1360 - _GETSENTENCESREQUEST._serialized_start=1363 - _GETSENTENCESREQUEST._serialized_end=1547 - _GETFIELDSREQUEST._serialized_start=1550 - _GETFIELDSREQUEST._serialized_end=1731 - _TRAININFO._serialized_start=1733 - _TRAININFO._serialized_end=1818 - _TRAINSENTENCE._serialized_start=1821 - _TRAINSENTENCE._serialized_end=1962 - _TRAINPARAGRAPH._serialized_start=1964 - _TRAINPARAGRAPH._serialized_end=2088 - _TRAINFIELD._serialized_start=2090 - _TRAINFIELD._serialized_end=2209 - _TRAINRESOURCE._serialized_start=2212 - _TRAINRESOURCE._serialized_end=2415 - _LABELSETCOUNT._serialized_start=2418 - _LABELSETCOUNT._serialized_end=2648 - _LABELSETCOUNT_PARAGRAPHSENTRY._serialized_start=2549 - _LABELSETCOUNT_PARAGRAPHSENTRY._serialized_end=2598 - _LABELSETCOUNT_RESOURCESENTRY._serialized_start=2600 - _LABELSETCOUNT_RESOURCESENTRY._serialized_end=2648 - _LABELSETSCOUNT._serialized_start=2651 - _LABELSETSCOUNT._serialized_end=2796 - _LABELSETSCOUNT_LABELSETSENTRY._serialized_start=2726 - _LABELSETSCOUNT_LABELSETSENTRY._serialized_end=2796 - _TRAIN._serialized_start=2799 - _TRAIN._serialized_end=3368 + _globals['_ENABLEDMETADATA']._serialized_start=170 + _globals['_ENABLEDMETADATA']._serialized_end=251 + _globals['_TRAINLABELS']._serialized_start=254 + _globals['_TRAINLABELS']._serialized_end=400 + _globals['_POSITION']._serialized_start=402 + _globals['_POSITION']._serialized_end=440 + _globals['_ENTITYPOSITIONS']._serialized_start=442 + _globals['_ENTITYPOSITIONS']._serialized_end=511 + _globals['_TRAINMETADATA']._serialized_start=514 + _globals['_TRAINMETADATA']._serialized_end=847 + _globals['_TRAINMETADATA_ENTITIESENTRY']._serialized_start=720 + _globals['_TRAINMETADATA_ENTITIESENTRY']._serialized_end=767 + _globals['_TRAINMETADATA_ENTITYPOSITIONSENTRY']._serialized_start=769 + _globals['_TRAINMETADATA_ENTITYPOSITIONSENTRY']._serialized_end=847 + _globals['_GETINFOREQUEST']._serialized_start=849 + _globals['_GETINFOREQUEST']._serialized_end=907 + _globals['_GETLABELSETSCOUNTREQUEST']._serialized_start=909 + _globals['_GETLABELSETSCOUNTREQUEST']._serialized_end=1034 + _globals['_GETRESOURCESREQUEST']._serialized_start=1037 + _globals['_GETRESOURCESREQUEST']._serialized_end=1172 + _globals['_GETPARAGRAPHSREQUEST']._serialized_start=1175 + _globals['_GETPARAGRAPHSREQUEST']._serialized_end=1360 + _globals['_GETSENTENCESREQUEST']._serialized_start=1363 + _globals['_GETSENTENCESREQUEST']._serialized_end=1547 + _globals['_GETFIELDSREQUEST']._serialized_start=1550 + _globals['_GETFIELDSREQUEST']._serialized_end=1731 + _globals['_TRAININFO']._serialized_start=1733 + _globals['_TRAININFO']._serialized_end=1818 + _globals['_TRAINSENTENCE']._serialized_start=1821 + _globals['_TRAINSENTENCE']._serialized_end=1962 + _globals['_TRAINPARAGRAPH']._serialized_start=1964 + _globals['_TRAINPARAGRAPH']._serialized_end=2088 + _globals['_TRAINFIELD']._serialized_start=2090 + _globals['_TRAINFIELD']._serialized_end=2209 + _globals['_TRAINRESOURCE']._serialized_start=2212 + _globals['_TRAINRESOURCE']._serialized_end=2415 + _globals['_LABELSETCOUNT']._serialized_start=2418 + _globals['_LABELSETCOUNT']._serialized_end=2648 + _globals['_LABELSETCOUNT_PARAGRAPHSENTRY']._serialized_start=2549 + _globals['_LABELSETCOUNT_PARAGRAPHSENTRY']._serialized_end=2598 + _globals['_LABELSETCOUNT_RESOURCESENTRY']._serialized_start=2600 + _globals['_LABELSETCOUNT_RESOURCESENTRY']._serialized_end=2648 + _globals['_LABELSETSCOUNT']._serialized_start=2651 + _globals['_LABELSETSCOUNT']._serialized_end=2796 + _globals['_LABELSETSCOUNT_LABELSETSENTRY']._serialized_start=2726 + _globals['_LABELSETSCOUNT_LABELSETSENTRY']._serialized_end=2796 + _globals['_TRAIN']._serialized_start=2799 + _globals['_TRAIN']._serialized_end=3368 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/utils_pb2.py b/nucliadb_protos/python/nucliadb_protos/utils_pb2.py index 449c8fff3e..c79e5703b2 100644 --- a/nucliadb_protos/python/nucliadb_protos/utils_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/utils_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/utils.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -15,10 +15,10 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x1bnucliadb_protos/utils.proto\x12\x05utils\"\x98\x02\n\x08Relation\x12#\n\x06source\x18\x06 \x01(\x0b\x32\x13.utils.RelationNode\x12\x1f\n\x02to\x18\x07 \x01(\x0b\x32\x13.utils.RelationNode\x12.\n\x08relation\x18\x05 \x01(\x0e\x32\x1c.utils.Relation.RelationType\x12\x16\n\x0erelation_label\x18\x08 \x01(\t\x12)\n\x08metadata\x18\t \x01(\x0b\x32\x17.utils.RelationMetadata\"S\n\x0cRelationType\x12\t\n\x05\x43HILD\x10\x00\x12\t\n\x05\x41\x42OUT\x10\x01\x12\n\n\x06\x45NTITY\x10\x02\x12\t\n\x05\x43OLAB\x10\x03\x12\x0b\n\x07SYNONYM\x10\x04\x12\t\n\x05OTHER\x10\x05\"\xd6\x01\n\x10RelationMetadata\x12\x19\n\x0cparagraph_id\x18\x01 \x01(\tH\x00\x88\x01\x01\x12\x19\n\x0csource_start\x18\x02 \x01(\x05H\x01\x88\x01\x01\x12\x17\n\nsource_end\x18\x03 \x01(\x05H\x02\x88\x01\x01\x12\x15\n\x08to_start\x18\x04 \x01(\x05H\x03\x88\x01\x01\x12\x13\n\x06to_end\x18\x05 \x01(\x05H\x04\x88\x01\x01\x42\x0f\n\r_paragraph_idB\x0f\n\r_source_startB\r\n\x0b_source_endB\x0b\n\t_to_startB\t\n\x07_to_end\"\x96\x01\n\x0cRelationNode\x12\r\n\x05value\x18\x04 \x01(\t\x12+\n\x05ntype\x18\x05 \x01(\x0e\x32\x1c.utils.RelationNode.NodeType\x12\x0f\n\x07subtype\x18\x06 \x01(\t\"9\n\x08NodeType\x12\n\n\x06\x45NTITY\x10\x00\x12\t\n\x05LABEL\x10\x01\x12\x0c\n\x08RESOURCE\x10\x02\x12\x08\n\x04USER\x10\x03\"\xa0\x01\n\rExtractedText\x12\x0c\n\x04text\x18\x01 \x01(\t\x12\x37\n\nsplit_text\x18\x02 \x03(\x0b\x32#.utils.ExtractedText.SplitTextEntry\x12\x16\n\x0e\x64\x65leted_splits\x18\x03 \x03(\t\x1a\x30\n\x0eSplitTextEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"d\n\x06Vector\x12\r\n\x05start\x18\x01 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x02 \x01(\x05\x12\x17\n\x0fstart_paragraph\x18\x03 \x01(\x05\x12\x15\n\rend_paragraph\x18\x04 \x01(\x05\x12\x0e\n\x06vector\x18\x05 \x03(\x02\")\n\x07Vectors\x12\x1e\n\x07vectors\x18\x01 \x03(\x0b\x32\r.utils.Vector\"\xca\x01\n\x0cVectorObject\x12\x1f\n\x07vectors\x18\x01 \x01(\x0b\x32\x0e.utils.Vectors\x12<\n\rsplit_vectors\x18\x02 \x03(\x0b\x32%.utils.VectorObject.SplitVectorsEntry\x12\x16\n\x0e\x64\x65leted_splits\x18\x03 \x03(\t\x1a\x43\n\x11SplitVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\x1d\n\x05value\x18\x02 \x01(\x0b\x32\x0e.utils.Vectors:\x02\x38\x01\"H\n\nUserVector\x12\x0e\n\x06vector\x18\x01 \x03(\x02\x12\x0e\n\x06labels\x18\x02 \x03(\t\x12\r\n\x05start\x18\x03 \x01(\x05\x12\x0b\n\x03\x65nd\x18\x04 \x01(\x05\"\x82\x01\n\x0bUserVectors\x12\x30\n\x07vectors\x18\x01 \x03(\x0b\x32\x1f.utils.UserVectors.VectorsEntry\x1a\x41\n\x0cVectorsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12 \n\x05value\x18\x02 \x01(\x0b\x32\x11.utils.UserVector:\x02\x38\x01\"\x87\x01\n\rUserVectorSet\x12\x32\n\x07vectors\x18\x01 \x03(\x0b\x32!.utils.UserVectorSet.VectorsEntry\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\"\"\n\x0fUserVectorsList\x12\x0f\n\x07vectors\x18\x01 \x03(\t\"!\n\x08Security\x12\x15\n\raccess_groups\x18\x01 \x03(\t*\'\n\x10VectorSimilarity\x12\n\n\x06\x43OSINE\x10\x00\x12\x07\n\x03\x44OT\x10\x01*.\n\x0eReleaseChannel\x12\n\n\x06STABLE\x10\x00\x12\x10\n\x0c\x45XPERIMENTAL\x10\x01\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.utils_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.utils_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None _EXTRACTEDTEXT_SPLITTEXTENTRY._options = None _EXTRACTEDTEXT_SPLITTEXTENTRY._serialized_options = b'8\001' @@ -28,44 +28,44 @@ _USERVECTORS_VECTORSENTRY._serialized_options = b'8\001' _USERVECTORSET_VECTORSENTRY._options = None _USERVECTORSET_VECTORSENTRY._serialized_options = b'8\001' - _VECTORSIMILARITY._serialized_start=1620 - _VECTORSIMILARITY._serialized_end=1659 - _RELEASECHANNEL._serialized_start=1661 - _RELEASECHANNEL._serialized_end=1707 - _RELATION._serialized_start=39 - _RELATION._serialized_end=319 - _RELATION_RELATIONTYPE._serialized_start=236 - _RELATION_RELATIONTYPE._serialized_end=319 - _RELATIONMETADATA._serialized_start=322 - _RELATIONMETADATA._serialized_end=536 - _RELATIONNODE._serialized_start=539 - _RELATIONNODE._serialized_end=689 - _RELATIONNODE_NODETYPE._serialized_start=632 - _RELATIONNODE_NODETYPE._serialized_end=689 - _EXTRACTEDTEXT._serialized_start=692 - _EXTRACTEDTEXT._serialized_end=852 - _EXTRACTEDTEXT_SPLITTEXTENTRY._serialized_start=804 - _EXTRACTEDTEXT_SPLITTEXTENTRY._serialized_end=852 - _VECTOR._serialized_start=854 - _VECTOR._serialized_end=954 - _VECTORS._serialized_start=956 - _VECTORS._serialized_end=997 - _VECTOROBJECT._serialized_start=1000 - _VECTOROBJECT._serialized_end=1202 - _VECTOROBJECT_SPLITVECTORSENTRY._serialized_start=1135 - _VECTOROBJECT_SPLITVECTORSENTRY._serialized_end=1202 - _USERVECTOR._serialized_start=1204 - _USERVECTOR._serialized_end=1276 - _USERVECTORS._serialized_start=1279 - _USERVECTORS._serialized_end=1409 - _USERVECTORS_VECTORSENTRY._serialized_start=1344 - _USERVECTORS_VECTORSENTRY._serialized_end=1409 - _USERVECTORSET._serialized_start=1412 - _USERVECTORSET._serialized_end=1547 - _USERVECTORSET_VECTORSENTRY._serialized_start=1481 - _USERVECTORSET_VECTORSENTRY._serialized_end=1547 - _USERVECTORSLIST._serialized_start=1549 - _USERVECTORSLIST._serialized_end=1583 - _SECURITY._serialized_start=1585 - _SECURITY._serialized_end=1618 + _globals['_VECTORSIMILARITY']._serialized_start=1620 + _globals['_VECTORSIMILARITY']._serialized_end=1659 + _globals['_RELEASECHANNEL']._serialized_start=1661 + _globals['_RELEASECHANNEL']._serialized_end=1707 + _globals['_RELATION']._serialized_start=39 + _globals['_RELATION']._serialized_end=319 + _globals['_RELATION_RELATIONTYPE']._serialized_start=236 + _globals['_RELATION_RELATIONTYPE']._serialized_end=319 + _globals['_RELATIONMETADATA']._serialized_start=322 + _globals['_RELATIONMETADATA']._serialized_end=536 + _globals['_RELATIONNODE']._serialized_start=539 + _globals['_RELATIONNODE']._serialized_end=689 + _globals['_RELATIONNODE_NODETYPE']._serialized_start=632 + _globals['_RELATIONNODE_NODETYPE']._serialized_end=689 + _globals['_EXTRACTEDTEXT']._serialized_start=692 + _globals['_EXTRACTEDTEXT']._serialized_end=852 + _globals['_EXTRACTEDTEXT_SPLITTEXTENTRY']._serialized_start=804 + _globals['_EXTRACTEDTEXT_SPLITTEXTENTRY']._serialized_end=852 + _globals['_VECTOR']._serialized_start=854 + _globals['_VECTOR']._serialized_end=954 + _globals['_VECTORS']._serialized_start=956 + _globals['_VECTORS']._serialized_end=997 + _globals['_VECTOROBJECT']._serialized_start=1000 + _globals['_VECTOROBJECT']._serialized_end=1202 + _globals['_VECTOROBJECT_SPLITVECTORSENTRY']._serialized_start=1135 + _globals['_VECTOROBJECT_SPLITVECTORSENTRY']._serialized_end=1202 + _globals['_USERVECTOR']._serialized_start=1204 + _globals['_USERVECTOR']._serialized_end=1276 + _globals['_USERVECTORS']._serialized_start=1279 + _globals['_USERVECTORS']._serialized_end=1409 + _globals['_USERVECTORS_VECTORSENTRY']._serialized_start=1344 + _globals['_USERVECTORS_VECTORSENTRY']._serialized_end=1409 + _globals['_USERVECTORSET']._serialized_start=1412 + _globals['_USERVECTORSET']._serialized_end=1547 + _globals['_USERVECTORSET_VECTORSENTRY']._serialized_start=1481 + _globals['_USERVECTORSET_VECTORSENTRY']._serialized_end=1547 + _globals['_USERVECTORSLIST']._serialized_start=1549 + _globals['_USERVECTORSLIST']._serialized_end=1583 + _globals['_SECURITY']._serialized_start=1585 + _globals['_SECURITY']._serialized_end=1618 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/writer_pb2.py b/nucliadb_protos/python/nucliadb_protos/writer_pb2.py index b6cc7b8895..7762328f24 100644 --- a/nucliadb_protos/python/nucliadb_protos/writer_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/writer_pb2.py @@ -2,10 +2,10 @@ # Generated by the protocol buffer compiler. DO NOT EDIT! # source: nucliadb_protos/writer.proto """Generated protocol buffer code.""" -from google.protobuf.internal import builder as _builder from google.protobuf import descriptor as _descriptor from google.protobuf import descriptor_pool as _descriptor_pool from google.protobuf import symbol_database as _symbol_database +from google.protobuf.internal import builder as _builder # @@protoc_insertion_point(imports) _sym_db = _symbol_database.Default() @@ -34,10 +34,10 @@ 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\"\xa8\x01\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\".\n\x06Source\x12\x08\n\x04HTTP\x10\x00\x12\r\n\tDASHBOARD\x10\x01\x12\x0b\n\x07\x44\x45SKTOP\x10\x02\"\xad\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\"2\n\tErrorCode\x12\x0b\n\x07GENERIC\x10\x00\x12\x0b\n\x07\x45XTRACT\x10\x01\x12\x0b\n\x07PROCESS\x10\x02\"\x97\x11\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\"\n\trelations\x18\n \x03(\x0b\x32\x0f.utils.Relation\x12\x42\n\rconversations\x18\x0b \x03(\x0b\x32+.fdbwriter.BrokerMessage.ConversationsEntry\x12\x36\n\x07layouts\x18\x0c \x03(\x0b\x32%.fdbwriter.BrokerMessage.LayoutsEntry\x12\x32\n\x05texts\x18\r \x03(\x0b\x32#.fdbwriter.BrokerMessage.TextsEntry\x12>\n\x0bkeywordsets\x18\x0e \x03(\x0b\x32).fdbwriter.BrokerMessage.KeywordsetsEntry\x12:\n\tdatetimes\x18\x0f \x03(\x0b\x32\'.fdbwriter.BrokerMessage.DatetimesEntry\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\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\x46\n\x0cLayoutsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12%\n\x05value\x18\x02 \x01(\x0b\x32\x16.resources.FieldLayout:\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\x1aN\n\x10KeywordsetsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12)\n\x05value\x18\x02 \x01(\x0b\x32\x1a.resources.FieldKeywordset:\x02\x38\x01\x1aJ\n\x0e\x44\x61tetimesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\'\n\x05value\x18\x02 \x01(\x0b\x32\x18.resources.FieldDatetime:\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\"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\"r\n\x10SetLabelsRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\n\n\x02id\x18\x02 \x01(\t\x12(\n\x08labelset\x18\x03 \x01(\x0b\x32\x16.knowledgebox.LabelSet\"H\n\x10\x44\x65lLabelsRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\n\n\x02id\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\"\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\"P\n\x12GetLabelSetRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\x10\n\x08labelset\x18\x02 \x01(\t\"\xc0\x01\n\x13GetLabelSetResponse\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12(\n\x08labelset\x18\x02 \x01(\x0b\x32\x16.knowledgebox.LabelSet\x12\x35\n\x06status\x18\x03 \x01(\x0e\x32%.fdbwriter.GetLabelSetResponse.Status\"\x1e\n\x06Status\x12\x06\n\x02OK\x10\x00\x12\x0c\n\x08NOTFOUND\x10\x01\"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\"R\n\x13\x44\x65lVectorSetRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\x11\n\tvectorset\x18\x02 \x01(\t\"w\n\x13SetVectorSetRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12\n\n\x02id\x18\x02 \x01(\t\x12*\n\tvectorset\x18\x03 \x01(\x0b\x32\x17.knowledgebox.VectorSet\"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\"\x8a\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.BrokerMessage\x12-\n\x06source\x18\t \x01(\x0e\x32\x1d.fdbwriter.NotificationSource\",\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\"v\n\x0bShardObject\x12\r\n\x05shard\x18\x01 \x01(\t\x12)\n\x08replicas\x18\x03 \x03(\x0b\x32\x17.fdbwriter.ShardReplica\x12-\n\ttimestamp\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"\xbe\x02\n\x06Shards\x12&\n\x06shards\x18\x01 \x03(\x0b\x32\x16.fdbwriter.ShardObject\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12\x0e\n\x06\x61\x63tual\x18\x03 \x01(\x05\x12/\n\nsimilarity\x18\x04 \x01(\x0e\x32\x17.utils.VectorSimilarityB\x02\x18\x01\x12\x32\n\x05model\x18\x05 \x01(\x0b\x32#.knowledgebox.SemanticModelMetadata\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\"e\n\x0fResourceFieldId\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x0b\n\x03rid\x18\x02 \x01(\t\x12(\n\nfield_type\x18\x03 \x01(\x0e\x32\x14.resources.FieldType\x12\r\n\x05\x66ield\x18\x04 \x01(\t\"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\",\n\x1bResourceFieldExistsResponse\x12\r\n\x05\x66ound\x18\x01 \x01(\x08\"/\n\x11ResourceIdRequest\x12\x0c\n\x04kbid\x18\x01 \x01(\t\x12\x0c\n\x04slug\x18\x02 \x01(\t\"\"\n\x12ResourceIdResponse\x12\x0c\n\x04uuid\x18\x01 \x01(\t\"\x1d\n\rExportRequest\x12\x0c\n\x04kbid\x18\x01 \x01(\t\"w\n\x11SetVectorsRequest\x12$\n\x07vectors\x18\x01 \x01(\x0b\x32\x13.utils.VectorObject\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12\x0b\n\x03rid\x18\x03 \x01(\t\x12!\n\x05\x66ield\x18\x04 \x01(\x0b\x32\x12.resources.FieldID\"#\n\x12SetVectorsResponse\x12\r\n\x05\x66ound\x18\x01 \x01(\x08\"*\n\x0b\x46ileRequest\x12\x0e\n\x06\x62ucket\x18\x01 \x01(\t\x12\x0b\n\x03key\x18\x02 \x01(\t\"\x1a\n\nBinaryData\x12\x0c\n\x04\x64\x61ta\x18\x01 \x01(\x0c\"a\n\x0e\x42inaryMetadata\x12\x0c\n\x04kbid\x18\x02 \x01(\t\x12\x0b\n\x03key\x18\x03 \x01(\t\x12\x0c\n\x04size\x18\x04 \x01(\x05\x12\x10\n\x08\x66ilename\x18\x05 \x01(\t\x12\x14\n\x0c\x63ontent_type\x18\x06 \x01(\t\"k\n\x10UploadBinaryData\x12\r\n\x05\x63ount\x18\x01 \x01(\x05\x12-\n\x08metadata\x18\x02 \x01(\x0b\x32\x19.fdbwriter.BinaryMetadataH\x00\x12\x11\n\x07payload\x18\x03 \x01(\x0cH\x00\x42\x06\n\x04\x64\x61ta\"\x0e\n\x0c\x46ileUploaded\"\x1f\n\x0fSynonymsRequest\x12\x0c\n\x04kbid\x18\x01 \x01(\t\"j\n\x12SetSynonymsRequest\x12*\n\x04kbid\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12(\n\x08synonyms\x18\x02 \x01(\x0b\x32\x16.knowledgebox.Synonyms\"j\n\x13GetSynonymsResponse\x12)\n\x06status\x18\x01 \x01(\x0b\x32\x19.fdbwriter.OpStatusWriter\x12(\n\x08synonyms\x18\x02 \x01(\x0b\x32\x16.knowledgebox.Synonyms\"t\n\x19SetKBConfigurationRequest\x12(\n\x02kb\x18\x01 \x01(\x0b\x32\x1c.knowledgebox.KnowledgeBoxID\x12-\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x1d.knowledgebox.KBConfiguration\"t\n\x18GetConfigurationResponse\x12)\n\x06status\x18\x01 \x01(\x0b\x32\x19.fdbwriter.OpStatusWriter\x12-\n\x06\x63onfig\x18\x02 \x01(\x0b\x32\x1d.knowledgebox.KBConfiguration*:\n\x12NotificationSource\x12\t\n\x05UNSET\x10\x00\x12\n\n\x06WRITER\x10\x01\x12\r\n\tPROCESSOR\x10\x02\x32\xaa\x18\n\x06Writer\x12M\n\x0fGetKnowledgeBox\x12\x1c.knowledgebox.KnowledgeBoxID\x1a\x1a.knowledgebox.KnowledgeBox\"\x00\x12Y\n\x0fNewKnowledgeBox\x12\x1d.knowledgebox.KnowledgeBoxNew\x1a%.knowledgebox.NewKnowledgeBoxResponse\"\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\x12m\n CleanAndUpgradeKnowledgeBoxIndex\x12\x1c.knowledgebox.KnowledgeBoxID\x1a).knowledgebox.CleanedKnowledgeBoxResponse\"\x00\x12V\n\x10ListKnowledgeBox\x12 .knowledgebox.KnowledgeBoxPrefix\x1a\x1c.knowledgebox.KnowledgeBoxID\"\x00\x30\x01\x12V\n\x0eGCKnowledgeBox\x12\x1c.knowledgebox.KnowledgeBoxID\x1a$.knowledgebox.GCKnowledgeBoxResponse\"\x00\x12K\n\nSetVectors\x12\x1c.fdbwriter.SetVectorsRequest\x1a\x1d.fdbwriter.SetVectorsResponse\"\x00\x12[\n\x13ResourceFieldExists\x12\x1a.fdbwriter.ResourceFieldId\x1a&.fdbwriter.ResourceFieldExistsResponse\"\x00\x12N\n\rGetResourceId\x12\x1c.fdbwriter.ResourceIdRequest\x1a\x1d.fdbwriter.ResourceIdResponse\"\x00\x12I\n\x0eProcessMessage\x12\x18.fdbwriter.BrokerMessage\x1a\x19.fdbwriter.OpStatusWriter\"\x00(\x01\x12H\n\tGetLabels\x12\x1b.fdbwriter.GetLabelsRequest\x1a\x1c.fdbwriter.GetLabelsResponse\"\x00\x12N\n\x0bGetLabelSet\x12\x1d.fdbwriter.GetLabelSetRequest\x1a\x1e.fdbwriter.GetLabelSetResponse\"\x00\x12\x45\n\tSetLabels\x12\x1b.fdbwriter.SetLabelsRequest\x1a\x19.fdbwriter.OpStatusWriter\"\x00\x12\x45\n\tDelLabels\x12\x1b.fdbwriter.DelLabelsRequest\x1a\x19.fdbwriter.OpStatusWriter\"\x00\x12T\n\rGetVectorSets\x12\x1f.fdbwriter.GetVectorSetsRequest\x1a .fdbwriter.GetVectorSetsResponse\"\x00\x12K\n\x0c\x44\x65lVectorSet\x12\x1e.fdbwriter.DelVectorSetRequest\x1a\x19.fdbwriter.OpStatusWriter\"\x00\x12K\n\x0cSetVectorSet\x12\x1e.fdbwriter.SetVectorSetRequest\x1a\x19.fdbwriter.OpStatusWriter\"\x00\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\x12M\n\x0bGetSynonyms\x12\x1c.knowledgebox.KnowledgeBoxID\x1a\x1e.fdbwriter.GetSynonymsResponse\"\x00\x12I\n\x0bSetSynonyms\x12\x1d.fdbwriter.SetSynonymsRequest\x1a\x19.fdbwriter.OpStatusWriter\"\x00\x12H\n\x0b\x44\x65lSynonyms\x12\x1c.knowledgebox.KnowledgeBoxID\x1a\x19.fdbwriter.OpStatusWriter\"\x00\x12U\n\x10SetConfiguration\x12$.fdbwriter.SetKBConfigurationRequest\x1a\x19.fdbwriter.OpStatusWriter\"\x00\x12M\n\x10\x44\x65lConfiguration\x12\x1c.knowledgebox.KnowledgeBoxID\x1a\x19.fdbwriter.OpStatusWriter\"\x00\x12W\n\x10GetConfiguration\x12\x1c.knowledgebox.KnowledgeBoxID\x1a#.fdbwriter.GetConfigurationResponse\"\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\x12@\n\x06\x45xport\x12\x18.fdbwriter.ExportRequest\x1a\x18.fdbwriter.BrokerMessage\"\x00\x30\x01\x12\x41\n\x0c\x44ownloadFile\x12\x16.fdbwriter.FileRequest\x1a\x15.fdbwriter.BinaryData\"\x00\x30\x01\x12\x46\n\nUploadFile\x12\x1b.fdbwriter.UploadBinaryData\x1a\x17.fdbwriter.FileUploaded\"\x00(\x01P\x01P\x02P\x03\x62\x06proto3') -_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, globals()) -_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.writer_pb2', globals()) +_globals = globals() +_builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) +_builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'nucliadb_protos.writer_pb2', _globals) if _descriptor._USE_C_DESCRIPTORS == False: - DESCRIPTOR._options = None _BROKERMESSAGE_CONVERSATIONSENTRY._options = None _BROKERMESSAGE_CONVERSATIONSENTRY._serialized_options = b'8\001' @@ -77,180 +77,180 @@ _SHARDS_EXTRAENTRY._serialized_options = b'8\001' _SHARDS.fields_by_name['similarity']._options = None _SHARDS.fields_by_name['similarity']._serialized_options = b'\030\001' - _NOTIFICATIONSOURCE._serialized_start=9177 - _NOTIFICATIONSOURCE._serialized_end=9235 - _AUDIT._serialized_start=183 - _AUDIT._serialized_end=351 - _AUDIT_SOURCE._serialized_start=305 - _AUDIT_SOURCE._serialized_end=351 - _ERROR._serialized_start=354 - _ERROR._serialized_end=527 - _ERROR_ERRORCODE._serialized_start=477 - _ERROR_ERRORCODE._serialized_end=527 - _BROKERMESSAGE._serialized_start=530 - _BROKERMESSAGE._serialized_end=2729 - _BROKERMESSAGE_CONVERSATIONSENTRY._serialized_start=2096 - _BROKERMESSAGE_CONVERSATIONSENTRY._serialized_end=2173 - _BROKERMESSAGE_LAYOUTSENTRY._serialized_start=2175 - _BROKERMESSAGE_LAYOUTSENTRY._serialized_end=2245 - _BROKERMESSAGE_TEXTSENTRY._serialized_start=2247 - _BROKERMESSAGE_TEXTSENTRY._serialized_end=2313 - _BROKERMESSAGE_KEYWORDSETSENTRY._serialized_start=2315 - _BROKERMESSAGE_KEYWORDSETSENTRY._serialized_end=2393 - _BROKERMESSAGE_DATETIMESENTRY._serialized_start=2395 - _BROKERMESSAGE_DATETIMESENTRY._serialized_end=2469 - _BROKERMESSAGE_LINKSENTRY._serialized_start=2471 - _BROKERMESSAGE_LINKSENTRY._serialized_end=2537 - _BROKERMESSAGE_FILESENTRY._serialized_start=2539 - _BROKERMESSAGE_FILESENTRY._serialized_end=2605 - _BROKERMESSAGE_MESSAGETYPE._serialized_start=2607 - _BROKERMESSAGE_MESSAGETYPE._serialized_end=2685 - _BROKERMESSAGE_MESSAGESOURCE._serialized_start=2687 - _BROKERMESSAGE_MESSAGESOURCE._serialized_end=2729 - _BROKERMESSAGEBLOBREFERENCE._serialized_start=2731 - _BROKERMESSAGEBLOBREFERENCE._serialized_end=2808 - _WRITERSTATUSRESPONSE._serialized_start=2811 - _WRITERSTATUSRESPONSE._serialized_end=2962 - _WRITERSTATUSRESPONSE_MSGIDENTRY._serialized_start=2918 - _WRITERSTATUSRESPONSE_MSGIDENTRY._serialized_end=2962 - _WRITERSTATUSREQUEST._serialized_start=2964 - _WRITERSTATUSREQUEST._serialized_end=2985 - _SETLABELSREQUEST._serialized_start=2987 - _SETLABELSREQUEST._serialized_end=3101 - _DELLABELSREQUEST._serialized_start=3103 - _DELLABELSREQUEST._serialized_end=3175 - _GETLABELSRESPONSE._serialized_start=3178 - _GETLABELSRESPONSE._serialized_end=3362 - _GETLABELSRESPONSE_STATUS._serialized_start=3332 - _GETLABELSRESPONSE_STATUS._serialized_end=3362 - _GETLABELSREQUEST._serialized_start=3364 - _GETLABELSREQUEST._serialized_end=3424 - _NEWENTITIESGROUPREQUEST._serialized_start=3427 - _NEWENTITIESGROUPREQUEST._serialized_end=3556 - _NEWENTITIESGROUPRESPONSE._serialized_start=3559 - _NEWENTITIESGROUPRESPONSE._serialized_end=3712 - _NEWENTITIESGROUPRESPONSE_STATUS._serialized_start=3647 - _NEWENTITIESGROUPRESPONSE_STATUS._serialized_end=3712 - _SETENTITIESREQUEST._serialized_start=3714 - _SETENTITIESREQUEST._serialized_end=3838 - _UPDATEENTITIESGROUPREQUEST._serialized_start=3841 - _UPDATEENTITIESGROUPREQUEST._serialized_end=4235 - _UPDATEENTITIESGROUPREQUEST_ADDENTRY._serialized_start=4102 - _UPDATEENTITIESGROUPREQUEST_ADDENTRY._serialized_end=4166 - _UPDATEENTITIESGROUPREQUEST_UPDATEENTRY._serialized_start=4168 - _UPDATEENTITIESGROUPREQUEST_UPDATEENTRY._serialized_end=4235 - _UPDATEENTITIESGROUPRESPONSE._serialized_start=4238 - _UPDATEENTITIESGROUPRESPONSE._serialized_end=4407 - _UPDATEENTITIESGROUPRESPONSE_STATUS._serialized_start=4332 - _UPDATEENTITIESGROUPRESPONSE_STATUS._serialized_end=4407 - _LISTENTITIESGROUPSREQUEST._serialized_start=4409 - _LISTENTITIESGROUPSREQUEST._serialized_end=4478 - _LISTENTITIESGROUPSRESPONSE._serialized_start=4481 - _LISTENTITIESGROUPSRESPONSE._serialized_end=4764 - _LISTENTITIESGROUPSRESPONSE_GROUPSENTRY._serialized_start=4640 - _LISTENTITIESGROUPSRESPONSE_GROUPSENTRY._serialized_end=4721 - _LISTENTITIESGROUPSRESPONSE_STATUS._serialized_start=4723 - _LISTENTITIESGROUPSRESPONSE_STATUS._serialized_end=4764 - _GETENTITIESREQUEST._serialized_start=4766 - _GETENTITIESREQUEST._serialized_end=4828 - _GETENTITIESRESPONSE._serialized_start=4831 - _GETENTITIESRESPONSE._serialized_end=5128 - _GETENTITIESRESPONSE_GROUPSENTRY._serialized_start=5011 - _GETENTITIESRESPONSE_GROUPSENTRY._serialized_end=5085 - _GETENTITIESRESPONSE_STATUS._serialized_start=4723 - _GETENTITIESRESPONSE_STATUS._serialized_end=4764 - _DELENTITIESREQUEST._serialized_start=5130 - _DELENTITIESREQUEST._serialized_end=5207 - _MERGEENTITIESREQUEST._serialized_start=5210 - _MERGEENTITIESREQUEST._serialized_end=5427 - _MERGEENTITIESREQUEST_ENTITYID._serialized_start=5386 - _MERGEENTITIESREQUEST_ENTITYID._serialized_end=5427 - _GETLABELSETREQUEST._serialized_start=5429 - _GETLABELSETREQUEST._serialized_end=5509 - _GETLABELSETRESPONSE._serialized_start=5512 - _GETLABELSETRESPONSE._serialized_end=5704 - _GETLABELSETRESPONSE_STATUS._serialized_start=3332 - _GETLABELSETRESPONSE_STATUS._serialized_end=3362 - _GETENTITIESGROUPREQUEST._serialized_start=5706 - _GETENTITIESGROUPREQUEST._serialized_end=5788 - _GETENTITIESGROUPRESPONSE._serialized_start=5791 - _GETENTITIESGROUPRESPONSE._serialized_end=6040 - _GETENTITIESGROUPRESPONSE_STATUS._serialized_start=5965 - _GETENTITIESGROUPRESPONSE_STATUS._serialized_end=6040 - _GETVECTORSETSREQUEST._serialized_start=6042 - _GETVECTORSETSREQUEST._serialized_end=6106 - _GETVECTORSETSRESPONSE._serialized_start=6109 - _GETVECTORSETSRESPONSE._serialized_end=6320 - _GETVECTORSETSRESPONSE_STATUS._serialized_start=4723 - _GETVECTORSETSRESPONSE_STATUS._serialized_end=4764 - _DELVECTORSETREQUEST._serialized_start=6322 - _DELVECTORSETREQUEST._serialized_end=6404 - _SETVECTORSETREQUEST._serialized_start=6406 - _SETVECTORSETREQUEST._serialized_end=6525 - _OPSTATUSWRITER._serialized_start=6527 - _OPSTATUSWRITER._serialized_end=6636 - _OPSTATUSWRITER_STATUS._serialized_start=6595 - _OPSTATUSWRITER_STATUS._serialized_end=6636 - _NOTIFICATION._serialized_start=6639 - _NOTIFICATION._serialized_end=7033 - _NOTIFICATION_ACTION._serialized_start=6925 - _NOTIFICATION_ACTION._serialized_end=6969 - _NOTIFICATION_WRITETYPE._serialized_start=6971 - _NOTIFICATION_WRITETYPE._serialized_end=7033 - _MEMBER._serialized_start=7036 - _MEMBER._serialized_end=7291 - _MEMBER_TYPE._serialized_start=7229 - _MEMBER_TYPE._serialized_end=7291 - _LISTMEMBERSREQUEST._serialized_start=7293 - _LISTMEMBERSREQUEST._serialized_end=7313 - _LISTMEMBERSRESPONSE._serialized_start=7315 - _LISTMEMBERSRESPONSE._serialized_end=7372 - _SHARDREPLICA._serialized_start=7374 - _SHARDREPLICA._serialized_end=7446 - _SHARDOBJECT._serialized_start=7448 - _SHARDOBJECT._serialized_end=7566 - _SHARDS._serialized_start=7569 - _SHARDS._serialized_end=7887 - _SHARDS_EXTRAENTRY._serialized_start=7843 - _SHARDS_EXTRAENTRY._serialized_end=7887 - _RESOURCEFIELDID._serialized_start=7889 - _RESOURCEFIELDID._serialized_end=7990 - _INDEXRESOURCE._serialized_start=7992 - _INDEXRESOURCE._serialized_end=8059 - _INDEXSTATUS._serialized_start=8061 - _INDEXSTATUS._serialized_end=8074 - _RESOURCEFIELDEXISTSRESPONSE._serialized_start=8076 - _RESOURCEFIELDEXISTSRESPONSE._serialized_end=8120 - _RESOURCEIDREQUEST._serialized_start=8122 - _RESOURCEIDREQUEST._serialized_end=8169 - _RESOURCEIDRESPONSE._serialized_start=8171 - _RESOURCEIDRESPONSE._serialized_end=8205 - _EXPORTREQUEST._serialized_start=8207 - _EXPORTREQUEST._serialized_end=8236 - _SETVECTORSREQUEST._serialized_start=8238 - _SETVECTORSREQUEST._serialized_end=8357 - _SETVECTORSRESPONSE._serialized_start=8359 - _SETVECTORSRESPONSE._serialized_end=8394 - _FILEREQUEST._serialized_start=8396 - _FILEREQUEST._serialized_end=8438 - _BINARYDATA._serialized_start=8440 - _BINARYDATA._serialized_end=8466 - _BINARYMETADATA._serialized_start=8468 - _BINARYMETADATA._serialized_end=8565 - _UPLOADBINARYDATA._serialized_start=8567 - _UPLOADBINARYDATA._serialized_end=8674 - _FILEUPLOADED._serialized_start=8676 - _FILEUPLOADED._serialized_end=8690 - _SYNONYMSREQUEST._serialized_start=8692 - _SYNONYMSREQUEST._serialized_end=8723 - _SETSYNONYMSREQUEST._serialized_start=8725 - _SETSYNONYMSREQUEST._serialized_end=8831 - _GETSYNONYMSRESPONSE._serialized_start=8833 - _GETSYNONYMSRESPONSE._serialized_end=8939 - _SETKBCONFIGURATIONREQUEST._serialized_start=8941 - _SETKBCONFIGURATIONREQUEST._serialized_end=9057 - _GETCONFIGURATIONRESPONSE._serialized_start=9059 - _GETCONFIGURATIONRESPONSE._serialized_end=9175 - _WRITER._serialized_start=9238 - _WRITER._serialized_end=12352 + _globals['_NOTIFICATIONSOURCE']._serialized_start=9177 + _globals['_NOTIFICATIONSOURCE']._serialized_end=9235 + _globals['_AUDIT']._serialized_start=183 + _globals['_AUDIT']._serialized_end=351 + _globals['_AUDIT_SOURCE']._serialized_start=305 + _globals['_AUDIT_SOURCE']._serialized_end=351 + _globals['_ERROR']._serialized_start=354 + _globals['_ERROR']._serialized_end=527 + _globals['_ERROR_ERRORCODE']._serialized_start=477 + _globals['_ERROR_ERRORCODE']._serialized_end=527 + _globals['_BROKERMESSAGE']._serialized_start=530 + _globals['_BROKERMESSAGE']._serialized_end=2729 + _globals['_BROKERMESSAGE_CONVERSATIONSENTRY']._serialized_start=2096 + _globals['_BROKERMESSAGE_CONVERSATIONSENTRY']._serialized_end=2173 + _globals['_BROKERMESSAGE_LAYOUTSENTRY']._serialized_start=2175 + _globals['_BROKERMESSAGE_LAYOUTSENTRY']._serialized_end=2245 + _globals['_BROKERMESSAGE_TEXTSENTRY']._serialized_start=2247 + _globals['_BROKERMESSAGE_TEXTSENTRY']._serialized_end=2313 + _globals['_BROKERMESSAGE_KEYWORDSETSENTRY']._serialized_start=2315 + _globals['_BROKERMESSAGE_KEYWORDSETSENTRY']._serialized_end=2393 + _globals['_BROKERMESSAGE_DATETIMESENTRY']._serialized_start=2395 + _globals['_BROKERMESSAGE_DATETIMESENTRY']._serialized_end=2469 + _globals['_BROKERMESSAGE_LINKSENTRY']._serialized_start=2471 + _globals['_BROKERMESSAGE_LINKSENTRY']._serialized_end=2537 + _globals['_BROKERMESSAGE_FILESENTRY']._serialized_start=2539 + _globals['_BROKERMESSAGE_FILESENTRY']._serialized_end=2605 + _globals['_BROKERMESSAGE_MESSAGETYPE']._serialized_start=2607 + _globals['_BROKERMESSAGE_MESSAGETYPE']._serialized_end=2685 + _globals['_BROKERMESSAGE_MESSAGESOURCE']._serialized_start=2687 + _globals['_BROKERMESSAGE_MESSAGESOURCE']._serialized_end=2729 + _globals['_BROKERMESSAGEBLOBREFERENCE']._serialized_start=2731 + _globals['_BROKERMESSAGEBLOBREFERENCE']._serialized_end=2808 + _globals['_WRITERSTATUSRESPONSE']._serialized_start=2811 + _globals['_WRITERSTATUSRESPONSE']._serialized_end=2962 + _globals['_WRITERSTATUSRESPONSE_MSGIDENTRY']._serialized_start=2918 + _globals['_WRITERSTATUSRESPONSE_MSGIDENTRY']._serialized_end=2962 + _globals['_WRITERSTATUSREQUEST']._serialized_start=2964 + _globals['_WRITERSTATUSREQUEST']._serialized_end=2985 + _globals['_SETLABELSREQUEST']._serialized_start=2987 + _globals['_SETLABELSREQUEST']._serialized_end=3101 + _globals['_DELLABELSREQUEST']._serialized_start=3103 + _globals['_DELLABELSREQUEST']._serialized_end=3175 + _globals['_GETLABELSRESPONSE']._serialized_start=3178 + _globals['_GETLABELSRESPONSE']._serialized_end=3362 + _globals['_GETLABELSRESPONSE_STATUS']._serialized_start=3332 + _globals['_GETLABELSRESPONSE_STATUS']._serialized_end=3362 + _globals['_GETLABELSREQUEST']._serialized_start=3364 + _globals['_GETLABELSREQUEST']._serialized_end=3424 + _globals['_NEWENTITIESGROUPREQUEST']._serialized_start=3427 + _globals['_NEWENTITIESGROUPREQUEST']._serialized_end=3556 + _globals['_NEWENTITIESGROUPRESPONSE']._serialized_start=3559 + _globals['_NEWENTITIESGROUPRESPONSE']._serialized_end=3712 + _globals['_NEWENTITIESGROUPRESPONSE_STATUS']._serialized_start=3647 + _globals['_NEWENTITIESGROUPRESPONSE_STATUS']._serialized_end=3712 + _globals['_SETENTITIESREQUEST']._serialized_start=3714 + _globals['_SETENTITIESREQUEST']._serialized_end=3838 + _globals['_UPDATEENTITIESGROUPREQUEST']._serialized_start=3841 + _globals['_UPDATEENTITIESGROUPREQUEST']._serialized_end=4235 + _globals['_UPDATEENTITIESGROUPREQUEST_ADDENTRY']._serialized_start=4102 + _globals['_UPDATEENTITIESGROUPREQUEST_ADDENTRY']._serialized_end=4166 + _globals['_UPDATEENTITIESGROUPREQUEST_UPDATEENTRY']._serialized_start=4168 + _globals['_UPDATEENTITIESGROUPREQUEST_UPDATEENTRY']._serialized_end=4235 + _globals['_UPDATEENTITIESGROUPRESPONSE']._serialized_start=4238 + _globals['_UPDATEENTITIESGROUPRESPONSE']._serialized_end=4407 + _globals['_UPDATEENTITIESGROUPRESPONSE_STATUS']._serialized_start=4332 + _globals['_UPDATEENTITIESGROUPRESPONSE_STATUS']._serialized_end=4407 + _globals['_LISTENTITIESGROUPSREQUEST']._serialized_start=4409 + _globals['_LISTENTITIESGROUPSREQUEST']._serialized_end=4478 + _globals['_LISTENTITIESGROUPSRESPONSE']._serialized_start=4481 + _globals['_LISTENTITIESGROUPSRESPONSE']._serialized_end=4764 + _globals['_LISTENTITIESGROUPSRESPONSE_GROUPSENTRY']._serialized_start=4640 + _globals['_LISTENTITIESGROUPSRESPONSE_GROUPSENTRY']._serialized_end=4721 + _globals['_LISTENTITIESGROUPSRESPONSE_STATUS']._serialized_start=4723 + _globals['_LISTENTITIESGROUPSRESPONSE_STATUS']._serialized_end=4764 + _globals['_GETENTITIESREQUEST']._serialized_start=4766 + _globals['_GETENTITIESREQUEST']._serialized_end=4828 + _globals['_GETENTITIESRESPONSE']._serialized_start=4831 + _globals['_GETENTITIESRESPONSE']._serialized_end=5128 + _globals['_GETENTITIESRESPONSE_GROUPSENTRY']._serialized_start=5011 + _globals['_GETENTITIESRESPONSE_GROUPSENTRY']._serialized_end=5085 + _globals['_GETENTITIESRESPONSE_STATUS']._serialized_start=4723 + _globals['_GETENTITIESRESPONSE_STATUS']._serialized_end=4764 + _globals['_DELENTITIESREQUEST']._serialized_start=5130 + _globals['_DELENTITIESREQUEST']._serialized_end=5207 + _globals['_MERGEENTITIESREQUEST']._serialized_start=5210 + _globals['_MERGEENTITIESREQUEST']._serialized_end=5427 + _globals['_MERGEENTITIESREQUEST_ENTITYID']._serialized_start=5386 + _globals['_MERGEENTITIESREQUEST_ENTITYID']._serialized_end=5427 + _globals['_GETLABELSETREQUEST']._serialized_start=5429 + _globals['_GETLABELSETREQUEST']._serialized_end=5509 + _globals['_GETLABELSETRESPONSE']._serialized_start=5512 + _globals['_GETLABELSETRESPONSE']._serialized_end=5704 + _globals['_GETLABELSETRESPONSE_STATUS']._serialized_start=3332 + _globals['_GETLABELSETRESPONSE_STATUS']._serialized_end=3362 + _globals['_GETENTITIESGROUPREQUEST']._serialized_start=5706 + _globals['_GETENTITIESGROUPREQUEST']._serialized_end=5788 + _globals['_GETENTITIESGROUPRESPONSE']._serialized_start=5791 + _globals['_GETENTITIESGROUPRESPONSE']._serialized_end=6040 + _globals['_GETENTITIESGROUPRESPONSE_STATUS']._serialized_start=5965 + _globals['_GETENTITIESGROUPRESPONSE_STATUS']._serialized_end=6040 + _globals['_GETVECTORSETSREQUEST']._serialized_start=6042 + _globals['_GETVECTORSETSREQUEST']._serialized_end=6106 + _globals['_GETVECTORSETSRESPONSE']._serialized_start=6109 + _globals['_GETVECTORSETSRESPONSE']._serialized_end=6320 + _globals['_GETVECTORSETSRESPONSE_STATUS']._serialized_start=4723 + _globals['_GETVECTORSETSRESPONSE_STATUS']._serialized_end=4764 + _globals['_DELVECTORSETREQUEST']._serialized_start=6322 + _globals['_DELVECTORSETREQUEST']._serialized_end=6404 + _globals['_SETVECTORSETREQUEST']._serialized_start=6406 + _globals['_SETVECTORSETREQUEST']._serialized_end=6525 + _globals['_OPSTATUSWRITER']._serialized_start=6527 + _globals['_OPSTATUSWRITER']._serialized_end=6636 + _globals['_OPSTATUSWRITER_STATUS']._serialized_start=6595 + _globals['_OPSTATUSWRITER_STATUS']._serialized_end=6636 + _globals['_NOTIFICATION']._serialized_start=6639 + _globals['_NOTIFICATION']._serialized_end=7033 + _globals['_NOTIFICATION_ACTION']._serialized_start=6925 + _globals['_NOTIFICATION_ACTION']._serialized_end=6969 + _globals['_NOTIFICATION_WRITETYPE']._serialized_start=6971 + _globals['_NOTIFICATION_WRITETYPE']._serialized_end=7033 + _globals['_MEMBER']._serialized_start=7036 + _globals['_MEMBER']._serialized_end=7291 + _globals['_MEMBER_TYPE']._serialized_start=7229 + _globals['_MEMBER_TYPE']._serialized_end=7291 + _globals['_LISTMEMBERSREQUEST']._serialized_start=7293 + _globals['_LISTMEMBERSREQUEST']._serialized_end=7313 + _globals['_LISTMEMBERSRESPONSE']._serialized_start=7315 + _globals['_LISTMEMBERSRESPONSE']._serialized_end=7372 + _globals['_SHARDREPLICA']._serialized_start=7374 + _globals['_SHARDREPLICA']._serialized_end=7446 + _globals['_SHARDOBJECT']._serialized_start=7448 + _globals['_SHARDOBJECT']._serialized_end=7566 + _globals['_SHARDS']._serialized_start=7569 + _globals['_SHARDS']._serialized_end=7887 + _globals['_SHARDS_EXTRAENTRY']._serialized_start=7843 + _globals['_SHARDS_EXTRAENTRY']._serialized_end=7887 + _globals['_RESOURCEFIELDID']._serialized_start=7889 + _globals['_RESOURCEFIELDID']._serialized_end=7990 + _globals['_INDEXRESOURCE']._serialized_start=7992 + _globals['_INDEXRESOURCE']._serialized_end=8059 + _globals['_INDEXSTATUS']._serialized_start=8061 + _globals['_INDEXSTATUS']._serialized_end=8074 + _globals['_RESOURCEFIELDEXISTSRESPONSE']._serialized_start=8076 + _globals['_RESOURCEFIELDEXISTSRESPONSE']._serialized_end=8120 + _globals['_RESOURCEIDREQUEST']._serialized_start=8122 + _globals['_RESOURCEIDREQUEST']._serialized_end=8169 + _globals['_RESOURCEIDRESPONSE']._serialized_start=8171 + _globals['_RESOURCEIDRESPONSE']._serialized_end=8205 + _globals['_EXPORTREQUEST']._serialized_start=8207 + _globals['_EXPORTREQUEST']._serialized_end=8236 + _globals['_SETVECTORSREQUEST']._serialized_start=8238 + _globals['_SETVECTORSREQUEST']._serialized_end=8357 + _globals['_SETVECTORSRESPONSE']._serialized_start=8359 + _globals['_SETVECTORSRESPONSE']._serialized_end=8394 + _globals['_FILEREQUEST']._serialized_start=8396 + _globals['_FILEREQUEST']._serialized_end=8438 + _globals['_BINARYDATA']._serialized_start=8440 + _globals['_BINARYDATA']._serialized_end=8466 + _globals['_BINARYMETADATA']._serialized_start=8468 + _globals['_BINARYMETADATA']._serialized_end=8565 + _globals['_UPLOADBINARYDATA']._serialized_start=8567 + _globals['_UPLOADBINARYDATA']._serialized_end=8674 + _globals['_FILEUPLOADED']._serialized_start=8676 + _globals['_FILEUPLOADED']._serialized_end=8690 + _globals['_SYNONYMSREQUEST']._serialized_start=8692 + _globals['_SYNONYMSREQUEST']._serialized_end=8723 + _globals['_SETSYNONYMSREQUEST']._serialized_start=8725 + _globals['_SETSYNONYMSREQUEST']._serialized_end=8831 + _globals['_GETSYNONYMSRESPONSE']._serialized_start=8833 + _globals['_GETSYNONYMSRESPONSE']._serialized_end=8939 + _globals['_SETKBCONFIGURATIONREQUEST']._serialized_start=8941 + _globals['_SETKBCONFIGURATIONREQUEST']._serialized_end=9057 + _globals['_GETCONFIGURATIONRESPONSE']._serialized_start=9059 + _globals['_GETCONFIGURATIONRESPONSE']._serialized_end=9175 + _globals['_WRITER']._serialized_start=9238 + _globals['_WRITER']._serialized_end=12352 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/rust/src/nodereader.rs b/nucliadb_protos/rust/src/nodereader.rs index 5b55186943..50b1ddd9dc 100644 --- a/nucliadb_protos/rust/src/nodereader.rs +++ b/nucliadb_protos/rust/src/nodereader.rs @@ -471,8 +471,8 @@ pub struct SuggestResponse { #[prost(string, repeated, tag="4")] pub ematches: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, /// Entities related with the query - #[prost(message, optional, tag="5")] - pub entities: ::core::option::Option, + #[prost(message, optional, tag="6")] + pub entity_results: ::core::option::Option, } #[derive(Clone, PartialEq, ::prost::Message)] pub struct SearchResponse { diff --git a/nucliadb_relations2/src/reader.rs b/nucliadb_relations2/src/reader.rs index 4d5b2bf1fe..772e3f8b7e 100644 --- a/nucliadb_relations2/src/reader.rs +++ b/nucliadb_relations2/src/reader.rs @@ -424,7 +424,7 @@ impl RelationsReaderService { } } -struct HashedRelationNode(RelationNode); +pub struct HashedRelationNode(pub RelationNode); impl From for RelationNode { fn from(val: HashedRelationNode) -> Self { @@ -432,6 +432,12 @@ impl From for RelationNode { } } +impl From for HashedRelationNode { + fn from(val: RelationNode) -> Self { + HashedRelationNode(val) + } +} + impl Eq for HashedRelationNode {} impl PartialEq for HashedRelationNode { fn eq(&self, other: &Self) -> bool {