Class FileUploadRequest.Builder
- All Implemented Interfaces:
FileUploadRequest._FinalStage,FileUploadRequest.FileNameStage,FileUploadRequest.FileTypeStage
- Enclosing class:
FileUploadRequest
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()Associated client ID — the Vectros-assigned UUID of a client in your account.Associated client ID — the Vectros-assigned UUID of a client in your account.externalId(String externalId) Stable, caller-supplied identifier for this document.externalId(Optional<String> externalId) Stable, caller-supplied identifier for this document.Original file name, including its extension.MIME type of the file being uploaded.ID of the folder in which to place this document.ID of the folder in which to place this document.from(FileUploadRequest other) indexMode(FileUploadRequestIndexMode indexMode) Indexing strategy applied after the file is processed and its text is extracted.indexMode(Optional<FileUploadRequestIndexMode> indexMode) Indexing strategy applied after the file is processed and its text is extracted.Owning organization ID — the Vectros-assigned UUID of an organization in your account.Owning organization ID — the Vectros-assigned UUID of an organization in your account.The document's structured data, as a flat key/value object.The document's structured data, as a flat key/value object.Optional ID of a record schema to bind this document to.Optional ID of a record schema to bind this document to.Whentrueand a document with the sameexternalIdalready exists, apply the submittedpayload/titleto that existing document (a metadata upsert) before re-issuing the presigned URL.Whentrueand a document with the sameexternalIdalready exists, apply the submittedpayload/titleto that existing document (a metadata upsert) before re-issuing the presigned URL.Owning user ID — the Vectros-assigned UUID of a user in your account.Owning user ID — the Vectros-assigned UUID of a user in your account.
-
Method Details
-
from
- Specified by:
fromin interfaceFileUploadRequest.FileNameStage
-
fileName
Original file name, including its extension. Used as the document title when no separate title is provided.
Original file name, including its extension. Used as the document title when no separate title is provided.
- Specified by:
fileNamein interfaceFileUploadRequest.FileNameStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
fileType
MIME type of the file being uploaded. Used to set the correct Content-Type on the stored object.
MIME type of the file being uploaded. Used to set the correct Content-Type on the stored object.
- Specified by:
fileTypein interfaceFileUploadRequest.FileTypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
Stable, caller-supplied identifier for this document. Optional. Immutable after create. Unique within your account and context: initiating an upload again with the same
externalIdreturns the same document plus a fresh presigned URL (idempotent — no duplicate), and it is the key other records use to reference this one. Max 256 characters.- Specified by:
externalIdin interfaceFileUploadRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
externalId
Stable, caller-supplied identifier for this document. Optional. Immutable after create. Unique within your account and context: initiating an upload again with the same
externalIdreturns the same document plus a fresh presigned URL (idempotent — no duplicate), and it is the key other records use to reference this one. Max 256 characters.- Specified by:
externalIdin interfaceFileUploadRequest._FinalStage
-
clientId
Associated client ID — the Vectros-assigned UUID of a client in your account. Optional. With an API key, sets the document's client explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
clientIdin interfaceFileUploadRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
clientId
Associated client ID — the Vectros-assigned UUID of a client in your account. Optional. With an API key, sets the document's client explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
clientIdin interfaceFileUploadRequest._FinalStage
-
orgId
Owning organization ID — the Vectros-assigned UUID of an organization in your account. Optional. With an API key, sets the document's owning organization explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
orgIdin interfaceFileUploadRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
orgId
Owning organization ID — the Vectros-assigned UUID of an organization in your account. Optional. With an API key, sets the document's owning organization explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
orgIdin interfaceFileUploadRequest._FinalStage
-
userId
Owning user ID — the Vectros-assigned UUID of a user in your account. Optional. With an API key, sets the document's owner explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
userIdin interfaceFileUploadRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
userId
Owning user ID — the Vectros-assigned UUID of a user in your account. Optional. With an API key, sets the document's owner explicitly. With a scoped token, must match the token's identity claim (if set) or fall within its data scope.
- Specified by:
userIdin interfaceFileUploadRequest._FinalStage
-
schemaId
Optional ID of a record schema to bind this document to. When set, the document's
payloadis validated against the schema and its lookup fields become directly queryable (matching record and text-ingest behavior).- Specified by:
schemaIdin interfaceFileUploadRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
schemaId
Optional ID of a record schema to bind this document to. When set, the document's
payloadis validated against the schema and its lookup fields become directly queryable (matching record and text-ingest behavior).- Specified by:
schemaIdin interfaceFileUploadRequest._FinalStage
-
payload
The document's structured data, as a flat key/value object. When
schemaIdis set, declared fields are validated against the schema and its lookup fields become directly queryable (matching record and text-ingest behavior); undeclared keys pass through as free-form and are searchable via thefiltersparameter onPOST /v1/search.- Specified by:
payloadin interfaceFileUploadRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
payload
The document's structured data, as a flat key/value object. When
schemaIdis set, declared fields are validated against the schema and its lookup fields become directly queryable (matching record and text-ingest behavior); undeclared keys pass through as free-form and are searchable via thefiltersparameter onPOST /v1/search.- Specified by:
payloadin interfaceFileUploadRequest._FinalStage
-
folderId
ID of the folder in which to place this document. Omit to use your account's default root folder.
- Specified by:
folderIdin interfaceFileUploadRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
folderId
ID of the folder in which to place this document. Omit to use your account's default root folder.
- Specified by:
folderIdin interfaceFileUploadRequest._FinalStage
-
indexMode
Indexing strategy applied after the file is processed and its text is extracted.
HYBRIDruns both BM25 keyword and dense-vector semantic indexing (recommended).SEMANTICindexes only as dense vectors.TEXTindexes only with BM25.NONEis store-only (archival): the file is still uploaded and its text extracted, but it is not search-indexed — retrievable by id/download and structured-field lookup only. Optional: omit to inherit the bound schema's default index mode. If neither this field nor the schema specifies one, the request is rejected. When both are set, this per-file value wins.- Specified by:
indexModein interfaceFileUploadRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
indexMode
Indexing strategy applied after the file is processed and its text is extracted.
HYBRIDruns both BM25 keyword and dense-vector semantic indexing (recommended).SEMANTICindexes only as dense vectors.TEXTindexes only with BM25.NONEis store-only (archival): the file is still uploaded and its text extracted, but it is not search-indexed — retrievable by id/download and structured-field lookup only. Optional: omit to inherit the bound schema's default index mode. If neither this field nor the schema specifies one, the request is rejected. When both are set, this per-file value wins.- Specified by:
indexModein interfaceFileUploadRequest._FinalStage
-
upsert
When
trueand a document with the sameexternalIdalready exists, apply the submittedpayload/titleto that existing document (a metadata upsert) before re-issuing the presigned URL. The file body is replaced inherently by the re-upload; it cannot be diffed at upload-init. Defaults tofalse. Requires thedocuments:uscope in addition todocuments:c.- Specified by:
upsertin interfaceFileUploadRequest._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
upsert
When
trueand a document with the sameexternalIdalready exists, apply the submittedpayload/titleto that existing document (a metadata upsert) before re-issuing the presigned URL. The file body is replaced inherently by the re-upload; it cannot be diffed at upload-init. Defaults tofalse. Requires thedocuments:uscope in addition todocuments:c.- Specified by:
upsertin interfaceFileUploadRequest._FinalStage
-
build
- Specified by:
buildin interfaceFileUploadRequest._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceFileUploadRequest._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceFileUploadRequest._FinalStage
-