From 88e7437d1b4845a1462dd435f3b55d69405c4f84 Mon Sep 17 00:00:00 2001 From: Nathan Van Gheem Date: Tue, 23 Jan 2024 06:19:21 -0500 Subject: [PATCH 1/9] add missing field (#1756) --- nucliadb/nucliadb/common/http_clients/processing.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/nucliadb/nucliadb/common/http_clients/processing.py b/nucliadb/nucliadb/common/http_clients/processing.py index 409d5f3e7c..49ae8cbd71 100644 --- a/nucliadb/nucliadb/common/http_clients/processing.py +++ b/nucliadb/nucliadb/common/http_clients/processing.py @@ -203,6 +203,11 @@ class StatusResultV2(pydantic.BaseModel): title="Schedule ETA", description="Estimated time until the resource is scheduled.", ) + schedule_order: int = pydantic.Field( + 0, + title="Schedule Order", + description="Order of the resource in the schedule queue.", + ) class StatusResultsV2(pydantic.BaseModel): From 2d27250f252b8a09aa0b2cd90007865af9b06bb2 Mon Sep 17 00:00:00 2001 From: Ferran Llamas Date: Tue, 23 Jan 2024 12:53:16 +0100 Subject: [PATCH 2/9] Push helm chart to chart museum too on every commit to main (#1759) --- .github/workflows/release.yml | 54 +++++++++++++++++++++++++++++++++-- 1 file changed, 52 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9a7bdecd3b..40f16576f9 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,4 +1,4 @@ -name: PyPI Releases +name: PyPI and Helm Releases on: push: @@ -155,4 +155,54 @@ jobs: nuclia/nucliadb:${{ steps.version_step.outputs.version_number }} nuclia/nucliadb:${{ steps.version_step.outputs.hash }} cache-from: type=gha - cache-to: type=gha,mode=min \ No newline at end of file + cache-to: type=gha,mode=min + + deploy: + name: Deploy Helm chart and trigger internal CI + runs-on: ubuntu-latest + needs: push-docker + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Calculate short sha + id: env-vars + run: |- + HASH=`git rev-parse --short HEAD` + echo "short_sha=$HASH" >> $GITHUB_OUTPUT + + - name: Set helm package image + id: version_step + run: |- + sed -i.bak "s#IMAGE_TO_REPLACE#$IMAGE_NAME:${{ steps.env-vars.outputs.short_sha }}#" ./charts/nucliadb_writer/values.yaml + sed -i.bak "s#CONTAINER_REGISTRY_TO_REPLACE#$CONTAINER_REGISTRY#" ./charts/nucliadb_writer/values.yaml + VERSION=`cat VERSION` + VERSION_SHA=$VERSION+${{ steps.env-vars.outputs.short_sha }} + sed -i.bak "s#99999.99999.99999#$VERSION_SHA#" ./charts/nucliadb_writer/Chart.yaml + echo "version_number=$VERSION_SHA" >> $GITHUB_OUTPUT + + - name: Configure Git + run: | + git config user.name "$GITHUB_ACTOR" + git config user.email "$GITHUB_ACTOR@users.noreply.github.com" + + - name: Install Helm + uses: azure/setup-helm@v3 + with: + version: v3.4.0 + + - name: Push helm package + run: |- + helm lint charts/nucliadb + helm package charts/nucliadb + curl --data-binary "@nucliadb-${{ steps.version_step.outputs.version_number }}.tgz" ${{ secrets.HELM_CHART_URL }}/api/charts + + # Not working yet, disabled for now + # - name: Repository Dispatch + # uses: peter-evans/repository-dispatch@v2 + # with: + # token: ${{ secrets.GH_CICD_PUBLIC }} + # repository: nuclia/nucliadb_deploy + # event-type: promote + # client-payload: '{"component": "nucliadb_standalone", "chart-version": "${{ steps.version_step.outputs.version_number }}" }' From c67870ac1216a04096fb9dd9f6f50cc64c2b2e2b Mon Sep 17 00:00:00 2001 From: Javier Torres Date: Tue, 23 Jan 2024 14:20:10 +0100 Subject: [PATCH 3/9] Fix flaky relation search test, in case UUID starts with (#1758) --- nucliadb_node/tests/test_search_relations.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nucliadb_node/tests/test_search_relations.rs b/nucliadb_node/tests/test_search_relations.rs index 5702ef3716..944fa78817 100644 --- a/nucliadb_node/tests/test_search_relations.rs +++ b/nucliadb_node/tests/test_search_relations.rs @@ -379,6 +379,10 @@ async fn test_search_relations_prefixed( shard_id: shard_id.clone(), prefix: Some(RelationPrefixSearchRequest { prefix: "cat".to_string(), + node_filters: vec![RelationNodeFilter { + node_subtype: None, + node_type: NodeType::Entity as i32, + }], ..Default::default() }), ..Default::default() From 5332e7c2b5e33e16fb546264ddbcc6c9294e131b Mon Sep 17 00:00:00 2001 From: Carlos Lopez Date: Tue, 23 Jan 2024 15:02:27 +0100 Subject: [PATCH 4/9] Add pod annotations to standalone deployment (#1760) --- charts/nucliadb/templates/sts.yaml | 4 ++++ charts/nucliadb/values.yaml | 1 + 2 files changed, 5 insertions(+) diff --git a/charts/nucliadb/templates/sts.yaml b/charts/nucliadb/templates/sts.yaml index d44dd54120..83d41b2a30 100644 --- a/charts/nucliadb/templates/sts.yaml +++ b/charts/nucliadb/templates/sts.yaml @@ -20,6 +20,10 @@ spec: heritage: "{{ .Release.Service }}" template: metadata: + {{- with .Values.podAnnotations }} + annotations: +{{ toYaml . | indent 8 }} + {{- end }} name: nucliadb labels: app: nucliadb diff --git a/charts/nucliadb/values.yaml b/charts/nucliadb/values.yaml index 40125062d2..d627156e5b 100644 --- a/charts/nucliadb/values.yaml +++ b/charts/nucliadb/values.yaml @@ -6,6 +6,7 @@ image: nuclia/nucliadb imageVersion: replicas: 2 +podAnnotations: {} # app settings env: From a99b08a4c99dc5192828eed000ca02ac8a7a822d Mon Sep 17 00:00:00 2001 From: Nathan Van Gheem Date: Tue, 23 Jan 2024 10:06:58 -0500 Subject: [PATCH 5/9] missing sentry setup (#1761) --- VERSION | 2 +- nucliadb_telemetry/nucliadb_telemetry/errors.py | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index e0a8e3c1bd..257770671f 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.40.1 \ No newline at end of file +2.41.0 \ No newline at end of file diff --git a/nucliadb_telemetry/nucliadb_telemetry/errors.py b/nucliadb_telemetry/nucliadb_telemetry/errors.py index cc51cb0c9e..47b2a018e6 100644 --- a/nucliadb_telemetry/nucliadb_telemetry/errors.py +++ b/nucliadb_telemetry/nucliadb_telemetry/errors.py @@ -143,5 +143,7 @@ def setup_sentry_logging_integration(for_loggers: List[str]) -> None: if settings.sentry_url: sentry_sdk.init( dsn=settings.sentry_url, + environment=settings.environment, integrations=[SentryLoggingIntegration(for_loggers)], ) + sentry_sdk.set_tag("zone", settings.zone) From f74d6c252f0dac337a39750792d142e21cd2b068 Mon Sep 17 00:00:00 2001 From: Joan Antoni RE Date: Tue, 23 Jan 2024 16:29:40 +0100 Subject: [PATCH 6/9] Pass kbid as context to read replica feature (#1762) --- nucliadb/nucliadb/search/requesters/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nucliadb/nucliadb/search/requesters/utils.py b/nucliadb/nucliadb/search/requesters/utils.py index baa1d0e69f..dd9c4bfbf4 100644 --- a/nucliadb/nucliadb/search/requesters/utils.py +++ b/nucliadb/nucliadb/search/requesters/utils.py @@ -130,7 +130,9 @@ async def node_query( target_replicas: Optional[list[str]] = None, read_only: bool = True, ) -> tuple[list[T], bool, list[tuple[str, str, str]], list[str]]: - read_only = read_only and has_feature(const.Features.READ_REPLICA_SEARCHES) + read_only = read_only and has_feature( + const.Features.READ_REPLICA_SEARCHES, context={"kbid": kbid} + ) shard_manager = get_shard_manager() From 66baf3fbfb9ada1b8c1ab36cfd636d56b429ab90 Mon Sep 17 00:00:00 2001 From: Joan Antoni RE Date: Tue, 23 Jan 2024 17:19:14 +0100 Subject: [PATCH 7/9] Change query context to fix e2e (#1763) --- e2e/test_e2e.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/e2e/test_e2e.py b/e2e/test_e2e.py index abddd54526..00baa5be9d 100644 --- a/e2e/test_e2e.py +++ b/e2e/test_e2e.py @@ -190,7 +190,7 @@ def _test_predict_proxy_chat(kbid: str): json={ "question": "Who is the best football player?", "query_context": [ - "Many football players have existed. Cristiano Ronaldo and Messi among them, but Messi is by far the greatest." + "Many football players have existed. Messi is by far the greatest." ], "user_id": "someone@company.uk", }, @@ -252,4 +252,4 @@ def raise_for_status(resp): print("Error response") print("Status code:", resp.status_code) print(resp.text) - raise \ No newline at end of file + raise From fb0712a802711c0f986a9870d1c9aba71ae798f7 Mon Sep 17 00:00:00 2001 From: Joan Antoni RE Date: Tue, 23 Jan 2024 19:46:33 +0100 Subject: [PATCH 8/9] Add summary kind to summarize endpoint (#1764) --- nucliadb/nucliadb/search/search/summarize.py | 1 + nucliadb_models/nucliadb_models/search.py | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/nucliadb/nucliadb/search/search/summarize.py b/nucliadb/nucliadb/search/search/summarize.py index b532e8f1d4..192f6e6336 100644 --- a/nucliadb/nucliadb/search/search/summarize.py +++ b/nucliadb/nucliadb/search/search/summarize.py @@ -46,6 +46,7 @@ async def summarize(kbid: str, request: SummarizeRequest) -> SummarizedResponse: predict_request = SummarizeModel() predict_request.user_prompt = request.user_prompt + predict_request.summary_kind = request.summary_kind for rid, field_id, extracted_text in await get_extracted_texts( kbid, request.resources diff --git a/nucliadb_models/nucliadb_models/search.py b/nucliadb_models/nucliadb_models/search.py index 5ffff4cd73..900219ee2b 100644 --- a/nucliadb_models/nucliadb_models/search.py +++ b/nucliadb_models/nucliadb_models/search.py @@ -782,6 +782,11 @@ class SummarizeResourceModel(BaseModel): fields: Dict[str, str] = {} +class SummaryKind(str, Enum): + SIMPLE = "simple" + EXTENDED = "extended" + + class SummarizeModel(BaseModel): """ Model for the summarize predict api request payload @@ -789,6 +794,7 @@ class SummarizeModel(BaseModel): resources: Dict[str, SummarizeResourceModel] = {} user_prompt: Optional[str] = None + summary_kind: SummaryKind = SummaryKind.SIMPLE class SummarizeRequest(BaseModel): @@ -809,6 +815,12 @@ class SummarizeRequest(BaseModel): description="Uids of the resources to summarize", ) + summary_kind: SummaryKind = Field( + default=SummaryKind.SIMPLE, + title="Summary kind", + description="Option to customize how the summary will be", + ) + class SummarizedResource(BaseModel): summary: str From 4d7edf7f91fb72475d4e84abebfae0d57406e5b4 Mon Sep 17 00:00:00 2001 From: Nathan Van Gheem Date: Tue, 23 Jan 2024 16:49:37 -0500 Subject: [PATCH 9/9] support path prefix (#1754) --- nucliadb/nucliadb/ingest/orm/brain.py | 3 + .../tests/integration/search/test_search.py | 57 ++- nucliadb/nucliadb/writer/resource/origin.py | 2 + nucliadb_models/nucliadb_models/labels.py | 2 + nucliadb_models/nucliadb_models/metadata.py | 1 + .../python/nucliadb_protos/resources_pb2.py | 364 +++++++++--------- .../python/nucliadb_protos/resources_pb2.pyi | 5 +- nucliadb_protos/resources.proto | 1 + nucliadb_protos/rust/src/resources.rs | 2 + 9 files changed, 253 insertions(+), 184 deletions(-) diff --git a/nucliadb/nucliadb/ingest/orm/brain.py b/nucliadb/nucliadb/ingest/orm/brain.py index c69218f615..3a2597e3f7 100644 --- a/nucliadb/nucliadb/ingest/orm/brain.py +++ b/nucliadb/nucliadb/ingest/orm/brain.py @@ -413,6 +413,9 @@ def _set_resource_labels(self, basic: Basic, origin: Optional[Origin]): if origin.source_id != "": self.labels["u"].append(f"s/{origin.source_id}") + if origin.path: + self.labels["p"].append(origin.path.lstrip("/")) + # origin contributors for contrib in origin.colaborators: self.labels["u"].append(f"o/{contrib}") diff --git a/nucliadb/nucliadb/tests/integration/search/test_search.py b/nucliadb/nucliadb/tests/integration/search/test_search.py index d54ba5304e..d6179a292e 100644 --- a/nucliadb/nucliadb/tests/integration/search/test_search.py +++ b/nucliadb/nucliadb/tests/integration/search/test_search.py @@ -436,7 +436,7 @@ async def test_catalog_can_filter_by_processing_status( @pytest.mark.skip(reason="Needs sc-5626") @pytest.mark.asyncio @pytest.mark.parametrize("knowledgebox", ("EXPERIMENTAL", "STABLE"), indirect=True) -async def test_catalog_prefix_search( +async def test_( nucliadb_reader: AsyncClient, nucliadb_writer: AsyncClient, knowledgebox, @@ -1499,3 +1499,58 @@ def check_fuzzy_paragraphs(search_response, *, fuzzy_result: bool, n_expected: i assert paragraph["fuzzy_result"] is fuzzy_result found += 1 assert found == n_expected + + +@pytest.mark.asyncio +@pytest.mark.parametrize("knowledgebox", ("EXPERIMENTAL", "STABLE"), indirect=True) +async def test_search_by_path_filter( + nucliadb_reader: AsyncClient, + nucliadb_writer: AsyncClient, + nucliadb_grpc: WriterStub, + knowledgebox, +): + paths = ["/foo", "foo/bar", "foo/bar/1", "foo/bar/2", "foo/bar/3", "foo/bar/4"] + + for path in paths: + resp = await nucliadb_writer.post( + f"/kb/{knowledgebox}/resources", + headers={"X-Synchronous": "true"}, + json={ + "title": f"My resource: {path}", + "summary": "Some summary", + "origin": { + "path": path, + }, + }, + ) + assert resp.status_code == 201 + + resp = await nucliadb_reader.get( + f"/kb/{knowledgebox}/catalog", + params={ + "query": "", + }, + ) + assert resp.status_code == 200 + assert len(resp.json()["resources"]) == len(paths) + + # Get the list of all + resp = await nucliadb_reader.get( + f"/kb/{knowledgebox}/search?filters=/origin.path/foo" + ) + assert resp.status_code == 200 + assert len(resp.json()["resources"]) == len(paths) + + # Get the list of under foo/bar + resp = await nucliadb_reader.get( + f"/kb/{knowledgebox}/search?filters=/origin.path/foo/bar" + ) + assert resp.status_code == 200 + assert len(resp.json()["resources"]) == len(paths) - 1 + + # Get the list of under foo/bar/4 + resp = await nucliadb_reader.get( + f"/kb/{knowledgebox}/search?filters=/origin.path/foo/bar/4" + ) + assert resp.status_code == 200 + assert len(resp.json()["resources"]) == 1 diff --git a/nucliadb/nucliadb/writer/resource/origin.py b/nucliadb/nucliadb/writer/resource/origin.py index 75816631bc..006ff95cbd 100644 --- a/nucliadb/nucliadb/writer/resource/origin.py +++ b/nucliadb/nucliadb/writer/resource/origin.py @@ -41,6 +41,8 @@ def parse_origin(origin: Origin, origin_payload: InputOrigin): origin.related.extend(origin_payload.related) if origin_payload.metadata: origin.metadata.update(origin_payload.metadata) + if origin_payload.path: + origin.path = origin_payload.path origin.source = Origin.Source.API diff --git a/nucliadb_models/nucliadb_models/labels.py b/nucliadb_models/nucliadb_models/labels.py index 3b2d8913e8..d18ae214d6 100644 --- a/nucliadb_models/nucliadb_models/labels.py +++ b/nucliadb_models/nucliadb_models/labels.py @@ -33,6 +33,7 @@ "f": [], # field keyword field (field/keyword) "fg": [], # field keyword (keywords) flat "m": [], # origin metadata in the form of (key/value). Max key/value size is 255 + "p": [], # origin metadata in the form of (key/value). Max key/value size is 255 } @@ -44,6 +45,7 @@ "metadata.languages": "s/s", "origin.tags": "t", "origin.metadata": "m", + "origin.path": "p", "classification.labels": "l", "entities": "e", "field": "f", diff --git a/nucliadb_models/nucliadb_models/metadata.py b/nucliadb_models/nucliadb_models/metadata.py index 42967858cd..88ac423c63 100644 --- a/nucliadb_models/nucliadb_models/metadata.py +++ b/nucliadb_models/nucliadb_models/metadata.py @@ -354,6 +354,7 @@ class InputOrigin(BaseModel): # old field was "colaborators" filename: Optional[str] = None related: List[str] = [] + path: Optional[str] = None class Origin(InputOrigin): diff --git a/nucliadb_protos/python/nucliadb_protos/resources_pb2.py b/nucliadb_protos/python/nucliadb_protos/resources_pb2.py index 1e239aaabf..e36adb534e 100644 --- a/nucliadb_protos/python/nucliadb_protos/resources_pb2.py +++ b/nucliadb_protos/python/nucliadb_protos/resources_pb2.py @@ -17,7 +17,7 @@ from nucliadb_protos.utils_pb2 import * -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') +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\"\x8f\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\x12\x0c\n\x04path\x18\x0b \x01(\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') _globals = globals() _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals) @@ -79,8 +79,8 @@ _PAGESTRUCTURETOKEN.fields_by_name['__height__deprecated']._serialized_options = b'\030\001' _ROWSPREVIEW_SHEETSENTRY._options = None _ROWSPREVIEW_SHEETSENTRY._serialized_options = b'8\001' - _globals['_FIELDTYPE']._serialized_start=10964 - _globals['_FIELDTYPE']._serialized_end=11078 + _globals['_FIELDTYPE']._serialized_start=10978 + _globals['_FIELDTYPE']._serialized_end=11092 _globals['_CLOUDFILE']._serialized_start=139 _globals['_CLOUDFILE']._serialized_end=507 _globals['_CLOUDFILE_SOURCE']._serialized_start=409 @@ -90,183 +90,183 @@ _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 + _globals['_ORIGIN']._serialized_end=1456 + _globals['_ORIGIN_METADATAENTRY']._serialized_start=1368 + _globals['_ORIGIN_METADATAENTRY']._serialized_end=1415 + _globals['_ORIGIN_SOURCE']._serialized_start=1417 + _globals['_ORIGIN_SOURCE']._serialized_end=1456 + _globals['_EXTRA']._serialized_start=1458 + _globals['_EXTRA']._serialized_end=1508 + _globals['_RELATIONS']._serialized_start=1510 + _globals['_RELATIONS']._serialized_end=1557 + _globals['_MESSAGECONTENT']._serialized_start=1560 + _globals['_MESSAGECONTENT']._serialized_end=1737 + _globals['_MESSAGECONTENT_FORMAT']._serialized_start=1685 + _globals['_MESSAGECONTENT_FORMAT']._serialized_end=1737 + _globals['_MESSAGE']._serialized_start=1740 + _globals['_MESSAGE']._serialized_end=1978 + _globals['_MESSAGE_MESSAGETYPE']._serialized_start=1928 + _globals['_MESSAGE_MESSAGETYPE']._serialized_end=1978 + _globals['_CONVERSATION']._serialized_start=1980 + _globals['_CONVERSATION']._serialized_end=2032 + _globals['_FIELDCONVERSATION']._serialized_start=2034 + _globals['_FIELDCONVERSATION']._serialized_end=2097 + _globals['_NESTEDPOSITION']._serialized_start=2099 + _globals['_NESTEDPOSITION']._serialized_end=2157 + _globals['_NESTEDLISTPOSITION']._serialized_start=2159 + _globals['_NESTEDLISTPOSITION']._serialized_end=2225 + _globals['_FILEEXTRACTEDDATA']._serialized_start=2228 + _globals['_FILEEXTRACTEDDATA']._serialized_end=3309 + _globals['_FILEEXTRACTEDDATA_METADATAENTRY']._serialized_start=1368 + _globals['_FILEEXTRACTEDDATA_METADATAENTRY']._serialized_end=1415 + _globals['_FILEEXTRACTEDDATA_NESTEDENTRY']._serialized_start=2935 + _globals['_FILEEXTRACTEDDATA_NESTEDENTRY']._serialized_end=2980 + _globals['_FILEEXTRACTEDDATA_FILEGENERATEDENTRY']._serialized_start=2982 + _globals['_FILEEXTRACTEDDATA_FILEGENERATEDENTRY']._serialized_end=3056 + _globals['_FILEEXTRACTEDDATA_FILEROWSPREVIEWSENTRY']._serialized_start=3058 + _globals['_FILEEXTRACTEDDATA_FILEROWSPREVIEWSENTRY']._serialized_end=3137 + _globals['_FILEEXTRACTEDDATA_NESTEDPOSITIONENTRY']._serialized_start=3139 + _globals['_FILEEXTRACTEDDATA_NESTEDPOSITIONENTRY']._serialized_end=3219 + _globals['_FILEEXTRACTEDDATA_NESTEDLISTPOSITIONENTRY']._serialized_start=3221 + _globals['_FILEEXTRACTEDDATA_NESTEDLISTPOSITIONENTRY']._serialized_end=3309 + _globals['_LINKEXTRACTEDDATA']._serialized_start=3312 + _globals['_LINKEXTRACTEDDATA']._serialized_end=3763 + _globals['_LINKEXTRACTEDDATA_METADATAENTRY']._serialized_start=1368 + _globals['_LINKEXTRACTEDDATA_METADATAENTRY']._serialized_end=1415 + _globals['_EXTRACTEDTEXTWRAPPER']._serialized_start=3766 + _globals['_EXTRACTEDTEXTWRAPPER']._serialized_end=3915 + _globals['_EXTRACTEDVECTORSWRAPPER']._serialized_start=3918 + _globals['_EXTRACTEDVECTORSWRAPPER']._serialized_end=4072 + _globals['_USERVECTORSWRAPPER']._serialized_start=4075 + _globals['_USERVECTORSWRAPPER']._serialized_end=4328 + _globals['_USERVECTORSWRAPPER_VECTORSTODELETEENTRY']._serialized_start=4250 + _globals['_USERVECTORSWRAPPER_VECTORSTODELETEENTRY']._serialized_end=4328 + _globals['_SENTENCE']._serialized_start=4330 + _globals['_SENTENCE']._serialized_end=4381 + _globals['_PARAGRAPH']._serialized_start=4384 + _globals['_PARAGRAPH']._serialized_end=4731 + _globals['_PARAGRAPH_TYPEPARAGRAPH']._serialized_start=4638 + _globals['_PARAGRAPH_TYPEPARAGRAPH']._serialized_end=4731 + _globals['_POSITION']._serialized_start=4733 + _globals['_POSITION']._serialized_end=4771 + _globals['_POSITIONS']._serialized_start=4773 + _globals['_POSITIONS']._serialized_end=4839 + _globals['_FIELDMETADATA']._serialized_start=4842 + _globals['_FIELDMETADATA']._serialized_end=5511 + _globals['_FIELDMETADATA_NERENTRY']._serialized_start=5397 + _globals['_FIELDMETADATA_NERENTRY']._serialized_end=5439 + _globals['_FIELDMETADATA_POSITIONSENTRY']._serialized_start=5441 + _globals['_FIELDMETADATA_POSITIONSENTRY']._serialized_end=5511 + _globals['_QUESTION']._serialized_start=5513 + _globals['_QUESTION']._serialized_end=5579 + _globals['_ANSWERS']._serialized_start=5581 + _globals['_ANSWERS']._serialized_end=5646 + _globals['_QUESTIONANSWER']._serialized_start=5648 + _globals['_QUESTIONANSWER']._serialized_end=5740 + _globals['_QUESTIONANSWERS']._serialized_start=5742 + _globals['_QUESTIONANSWERS']._serialized_end=5811 + _globals['_FIELDQUESTIONANSWERWRAPPER']._serialized_start=5814 + _globals['_FIELDQUESTIONANSWERWRAPPER']._serialized_end=5987 + _globals['_FIELDCOMPUTEDMETADATA']._serialized_start=5990 + _globals['_FIELDCOMPUTEDMETADATA']._serialized_end=6238 + _globals['_FIELDCOMPUTEDMETADATA_SPLITMETADATAENTRY']._serialized_start=6160 + _globals['_FIELDCOMPUTEDMETADATA_SPLITMETADATAENTRY']._serialized_end=6238 + _globals['_FIELDCOMPUTEDMETADATAWRAPPER']._serialized_start=6240 + _globals['_FIELDCOMPUTEDMETADATAWRAPPER']._serialized_end=6357 + _globals['_METADATA']._serialized_start=6360 + _globals['_METADATA']._serialized_end=6644 + _globals['_METADATA_METADATAENTRY']._serialized_start=1368 + _globals['_METADATA_METADATAENTRY']._serialized_end=1415 + _globals['_METADATA_STATUS']._serialized_start=6571 + _globals['_METADATA_STATUS']._serialized_end=6644 + _globals['_FIELDTEXT']._serialized_start=6647 + _globals['_FIELDTEXT']._serialized_end=6794 + _globals['_FIELDTEXT_FORMAT']._serialized_start=6732 + _globals['_FIELDTEXT_FORMAT']._serialized_end=6794 + _globals['_BLOCK']._serialized_start=6797 + _globals['_BLOCK']._serialized_end=7081 + _globals['_BLOCK_TYPEBLOCK']._serialized_start=6966 + _globals['_BLOCK_TYPEBLOCK']._serialized_end=7081 + _globals['_LAYOUTCONTENT']._serialized_start=7084 + _globals['_LAYOUTCONTENT']._serialized_end=7242 + _globals['_LAYOUTCONTENT_BLOCKSENTRY']._serialized_start=7179 + _globals['_LAYOUTCONTENT_BLOCKSENTRY']._serialized_end=7242 + _globals['_FIELDLAYOUT']._serialized_start=7244 + _globals['_FIELDLAYOUT']._serialized_end=7368 + _globals['_FIELDLAYOUT_FORMAT']._serialized_start=7346 + _globals['_FIELDLAYOUT_FORMAT']._serialized_end=7368 + _globals['_CLASSIFICATION']._serialized_start=7370 + _globals['_CLASSIFICATION']._serialized_end=7461 + _globals['_USERMETADATA']._serialized_start=7463 + _globals['_USERMETADATA']._serialized_end=7565 + _globals['_FIELDCLASSIFICATIONS']._serialized_start=7567 + _globals['_FIELDCLASSIFICATIONS']._serialized_end=7676 + _globals['_COMPUTEDMETADATA']._serialized_start=7678 + _globals['_COMPUTEDMETADATA']._serialized_end=7760 + _globals['_TOKENSPLIT']._serialized_start=7762 + _globals['_TOKENSPLIT']._serialized_end=7874 + _globals['_PARAGRAPHANNOTATION']._serialized_start=7876 + _globals['_PARAGRAPHANNOTATION']._serialized_end=7962 + _globals['_QUESTIONANSWERANNOTATION']._serialized_start=7964 + _globals['_QUESTIONANSWERANNOTATION']._serialized_end=8069 + _globals['_VISUALSELECTION']._serialized_start=8071 + _globals['_VISUALSELECTION']._serialized_end=8180 + _globals['_PAGESELECTIONS']._serialized_start=8182 + _globals['_PAGESELECTIONS']._serialized_end=8256 + _globals['_USERFIELDMETADATA']._serialized_start=8259 + _globals['_USERFIELDMETADATA']._serialized_end=8518 + _globals['_FIELDLINK']._serialized_start=8521 + _globals['_FIELDLINK']._serialized_end=8921 + _globals['_FIELDLINK_HEADERSENTRY']._serialized_start=8774 + _globals['_FIELDLINK_HEADERSENTRY']._serialized_end=8820 + _globals['_FIELDLINK_COOKIESENTRY']._serialized_start=8822 + _globals['_FIELDLINK_COOKIESENTRY']._serialized_end=8868 + _globals['_FIELDLINK_LOCALSTORAGEENTRY']._serialized_start=8870 + _globals['_FIELDLINK_LOCALSTORAGEENTRY']._serialized_end=8921 + _globals['_KEYWORD']._serialized_start=8923 + _globals['_KEYWORD']._serialized_end=8947 + _globals['_FIELDKEYWORDSET']._serialized_start=8949 + _globals['_FIELDKEYWORDSET']._serialized_end=9004 + _globals['_FIELDDATETIME']._serialized_start=9006 + _globals['_FIELDDATETIME']._serialized_end=9064 + _globals['_FIELDFILE']._serialized_start=9067 + _globals['_FIELDFILE']._serialized_end=9406 + _globals['_FIELDFILE_HEADERSENTRY']._serialized_start=8774 + _globals['_FIELDFILE_HEADERSENTRY']._serialized_end=8820 + _globals['_FIELDFILE_COOKIESENTRY']._serialized_start=8822 + _globals['_FIELDFILE_COOKIESENTRY']._serialized_end=8868 + _globals['_ENTITY']._serialized_start=9408 + _globals['_ENTITY']._serialized_end=9459 + _globals['_FIELDLARGEMETADATA']._serialized_start=9462 + _globals['_FIELDLARGEMETADATA']._serialized_end=9625 + _globals['_FIELDLARGEMETADATA_TOKENSENTRY']._serialized_start=9580 + _globals['_FIELDLARGEMETADATA_TOKENSENTRY']._serialized_end=9625 + _globals['_LARGECOMPUTEDMETADATA']._serialized_start=9628 + _globals['_LARGECOMPUTEDMETADATA']._serialized_end=9886 + _globals['_LARGECOMPUTEDMETADATA_SPLITMETADATAENTRY']._serialized_start=9803 + _globals['_LARGECOMPUTEDMETADATA_SPLITMETADATAENTRY']._serialized_end=9886 + _globals['_LARGECOMPUTEDMETADATAWRAPPER']._serialized_start=9889 + _globals['_LARGECOMPUTEDMETADATAWRAPPER']._serialized_end=10058 + _globals['_PAGEPOSITIONS']._serialized_start=10060 + _globals['_PAGEPOSITIONS']._serialized_end=10103 + _globals['_PAGESTRUCTUREPAGE']._serialized_start=10105 + _globals['_PAGESTRUCTUREPAGE']._serialized_end=10155 + _globals['_PAGESTRUCTURETOKEN']._serialized_start=10158 + _globals['_PAGESTRUCTURETOKEN']._serialized_end=10384 + _globals['_PAGESTRUCTURE']._serialized_start=10386 + _globals['_PAGESTRUCTURE']._serialized_end=10492 + _globals['_FILEPAGES']._serialized_start=10495 + _globals['_FILEPAGES']._serialized_end=10634 + _globals['_ROWSPREVIEW']._serialized_start=10637 + _globals['_ROWSPREVIEW']._serialized_end=10857 + _globals['_ROWSPREVIEW_SHEET']._serialized_start=10704 + _globals['_ROWSPREVIEW_SHEET']._serialized_end=10780 + _globals['_ROWSPREVIEW_SHEET_ROW']._serialized_start=10761 + _globals['_ROWSPREVIEW_SHEET_ROW']._serialized_end=10780 + _globals['_ROWSPREVIEW_SHEETSENTRY']._serialized_start=10782 + _globals['_ROWSPREVIEW_SHEETSENTRY']._serialized_end=10857 + _globals['_FIELDID']._serialized_start=10859 + _globals['_FIELDID']._serialized_end=10925 + _globals['_ALLFIELDIDS']._serialized_start=10927 + _globals['_ALLFIELDIDS']._serialized_end=10976 # @@protoc_insertion_point(module_scope) diff --git a/nucliadb_protos/python/nucliadb_protos/resources_pb2.pyi b/nucliadb_protos/python/nucliadb_protos/resources_pb2.pyi index 519d00bbb8..74bd145317 100644 --- a/nucliadb_protos/python/nucliadb_protos/resources_pb2.pyi +++ b/nucliadb_protos/python/nucliadb_protos/resources_pb2.pyi @@ -284,6 +284,7 @@ class Origin(google.protobuf.message.Message): COLABORATORS_FIELD_NUMBER: builtins.int FILENAME_FIELD_NUMBER: builtins.int RELATED_FIELD_NUMBER: builtins.int + PATH_FIELD_NUMBER: builtins.int source: global___Origin.Source.ValueType source_id: builtins.str url: builtins.str @@ -300,6 +301,7 @@ class Origin(google.protobuf.message.Message): filename: builtins.str @property def related(self) -> google.protobuf.internal.containers.RepeatedScalarFieldContainer[builtins.str]: ... + path: builtins.str def __init__( self, *, @@ -313,9 +315,10 @@ class Origin(google.protobuf.message.Message): colaborators: collections.abc.Iterable[builtins.str] | None = ..., filename: builtins.str = ..., related: collections.abc.Iterable[builtins.str] | None = ..., + path: builtins.str = ..., ) -> None: ... def HasField(self, field_name: typing_extensions.Literal["created", b"created", "modified", b"modified"]) -> builtins.bool: ... - def ClearField(self, field_name: typing_extensions.Literal["colaborators", b"colaborators", "created", b"created", "filename", b"filename", "metadata", b"metadata", "modified", b"modified", "related", b"related", "source", b"source", "source_id", b"source_id", "tags", b"tags", "url", b"url"]) -> None: ... + def ClearField(self, field_name: typing_extensions.Literal["colaborators", b"colaborators", "created", b"created", "filename", b"filename", "metadata", b"metadata", "modified", b"modified", "path", b"path", "related", b"related", "source", b"source", "source_id", b"source_id", "tags", b"tags", "url", b"url"]) -> None: ... global___Origin = Origin diff --git a/nucliadb_protos/resources.proto b/nucliadb_protos/resources.proto index 3984336732..3eae77a0d7 100644 --- a/nucliadb_protos/resources.proto +++ b/nucliadb_protos/resources.proto @@ -88,6 +88,7 @@ message Origin { repeated string colaborators = 8; string filename = 9; repeated string related = 10; + string path = 11; } message Extra { diff --git a/nucliadb_protos/rust/src/resources.rs b/nucliadb_protos/rust/src/resources.rs index 5b14e29e02..8f63c19512 100644 --- a/nucliadb_protos/rust/src/resources.rs +++ b/nucliadb_protos/rust/src/resources.rs @@ -117,6 +117,8 @@ pub struct Origin { pub filename: ::prost::alloc::string::String, #[prost(string, repeated, tag="10")] pub related: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, + #[prost(string, tag="11")] + pub path: ::prost::alloc::string::String, } /// Nested message and enum types in `Origin`. pub mod origin {