Class DocumentResponse.Builder
- Enclosing class:
DocumentResponse
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()The associated client — the Vectros-assigned UUID of a client in your account.When the document was created, as an ISO-8601 UTC timestamp.externalId(String externalId) externalId(Optional<String> externalId) Your own stable identifier for this document (immutable, and unique within your context).Size of the uploaded file, in bytes.MIME type of the uploaded file.The ID of the folder that contains this document.from(DocumentResponse other) The Vectros-assigned unique ID of the document.indexMode(DocumentResponseIndexMode indexMode) indexMode(Optional<DocumentResponseIndexMode> indexMode) How this document is indexed.lastModified(String lastModified) lastModified(Optional<String> lastModified) When the document was last modified, as an ISO-8601 UTC timestamp.The owning organization — the Vectros-assigned UUID of an organization in your account.The document's structured payload, as a JSON object.payloadExternalized(Boolean payloadExternalized) payloadExternalized(Optional<Boolean> payloadExternalized) True when this document's structured payload is large enough to be stored externally rather than inline.The ID of the record schema this document'spayloadis validated and indexed against.schemaVersion(Integer schemaVersion) schemaVersion(Optional<Integer> schemaVersion) The version of the bound schema in effect when this document was written.status(DocumentResponseStatus status) status(Optional<DocumentResponseStatus> status) Processing status of the document.Whether the raw text is stored and retrievable via GET /v1/documents/{id}/text.Size of the extracted text, in bytes.The document's title.The owning user — the Vectros-assigned UUID of a user in your account.Optimistic-concurrency version.
-
Method Details
-
from
-
id
The Vectros-assigned unique ID of the document.
-
id
-
title
The document's title.
-
title
-
externalId
Your own stable identifier for this document (immutable, and unique within your context). Null if the document was created without one.
-
externalId
-
status
Processing status of the document. PENDING_UPLOAD, UPLOADED, EXTRACTING, and PENDING_INDEX are in-flight states; INDEXED means the document is indexed and searchable; SKIPPED means extraction produced no indexable text so there was nothing to index — the document is stored and retrievable, just not searchable (not an error); STORED means it is store-only (indexMode=NONE) — persisted and retrievable but by design not searchable; FAILED means processing failed.
-
status
-
indexMode
How this document is indexed. HYBRID, SEMANTIC, and TEXT are searchable; NONE is store-only (not indexed for search).
-
indexMode
-
storeText
Whether the raw text is stored and retrievable via GET /v1/documents/{id}/text.
-
storeText
-
folderId
The ID of the folder that contains this document.
-
folderId
-
payload
The document's structured payload, as a JSON object. When
schemaIdis set, schema-declared fields are validated and indexed for lookup; undeclared keys pass through as free-form. A by-id GET returns the full payload; on list responses this may be only the inline subset of fields (seepayloadExternalized). -
payload
-
payloadExternalized
True when this document's structured payload is large enough to be stored externally rather than inline. In that case
payloadon a list response holds only the inline subset of fields; fetch the full payload with a by-id GET. -
payloadExternalized
-
schemaId
The ID of the record schema this document's
payloadis validated and indexed against. Null if the document is schemaless. -
schemaId
-
schemaVersion
The version of the bound schema in effect when this document was written. A document keeps the version it was stamped with at write time, even after the schema is later edited. Null when the document is schemaless.
-
schemaVersion
-
textBytes
Size of the extracted text, in bytes.
-
textBytes
-
userId
The owning user — the Vectros-assigned UUID of a user in your account.
-
userId
-
orgId
The owning organization — the Vectros-assigned UUID of an organization in your account.
-
orgId
-
clientId
The associated client — the Vectros-assigned UUID of a client in your account.
-
clientId
-
fileType
MIME type of the uploaded file. Present only for file-backed documents.
-
fileType
-
fileSize
Size of the uploaded file, in bytes. Present only for file-backed documents.
-
fileSize
-
createdAt
When the document was created, as an ISO-8601 UTC timestamp.
-
createdAt
-
lastModified
When the document was last modified, as an ISO-8601 UTC timestamp.
-
lastModified
-
version
Optimistic-concurrency version. Pass this back as
expectedVersionon a later update to avoid silently overwriting a concurrent change — the update is rejected with 409 if the document has moved on. Incremented on every successful write. -
version
-
build
-
additionalProperty
-
additionalProperties
-