Class RecordResponse.Builder
- Enclosing class:
RecordResponse
-
Method Summary
Modifier and TypeMethodDescriptionadditionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) build()Whether this call created a new record.When the record was created, as an ISO-8601 UTC timestamp.Identifier of the API key or scoped token that created this record (for example,key_abc123for an API key).The record's absolute expiry as an ISO-8601 UTC timestamp, when a TTL is set — the record is automatically deleted at (or shortly after) this time.externalId(String externalId) externalId(Optional<String> externalId) Your own stable identifier for this record.Identifier of the folder grouping this record.from(RecordResponse other) Unique identifier for this record (UUID), assigned by Vectros at creation.indexFailure(IndexFailure indexFailure) indexFailure(Optional<IndexFailure> indexFailure) indexMode(RecordResponseIndexMode indexMode) indexMode(Optional<RecordResponseIndexMode> indexMode) The record's resolved search-index mode: the per-record override if set, otherwise the schema's type-level default, otherwise NONE.indexStatus(RecordResponseIndexStatus indexStatus) indexStatus(Optional<RecordResponseIndexStatus> indexStatus) Search-index status.The record's data payload.payloadBytes(Long payloadBytes) payloadBytes(Optional<Long> payloadBytes) Size in bytes of the full externalized payload.payloadExternalized(Boolean payloadExternalized) payloadExternalized(Optional<Boolean> payloadExternalized) True when this record's full payload is stored externally rather than inline.payloadPartial(Boolean payloadPartial) payloadPartial(Optional<Boolean> payloadPartial) True when THIS response returned only a PARTIAL payload — a large record's bulk fields are omitted frompayloadbecause you did not request them (a list or lookup withoutincludePayload=true).Identifier of the schema this record was validated against.schemaVersion(Integer schemaVersion) schemaVersion(Optional<Integer> schemaVersion) The version of the governing schema at the moment this record was written.The record's scope ownership as canonicalnamespace:valueentries (at most 2).status(RecordResponseStatus status) status(Optional<RecordResponseStatus> status) Record lifecycle status.The record's type, matching thetypeNamedeclared on the schema this record was created against.When the record was last updated, as an ISO-8601 UTC timestamp.Identifier of the owning user (a Vectros-assigned UUID).Optimistic-concurrency version.
-
Method Details
-
from
-
created
Whether this call created a new record. True when a new record was created; false when a record with the same
externalIdalready existed and was returned unchanged (idempotent create) or updated (when?upsert=true). Present only on the create response (POST /v1/records); absent on reads. The HTTP status mirrors it — 201 when created, 200 when an existing record was returned. -
created
-
id
Unique identifier for this record (UUID), assigned by Vectros at creation.
-
id
-
typeName
The record's type, matching the
typeNamedeclared on the schema this record was created against. -
typeName
-
schemaId
Identifier of the schema this record was validated against.
-
schemaId
-
schemaVersion
The version of the governing schema at the moment this record was written. The schema version increments on every schema edit, but a record keeps the version it was stamped with at write time even after the schema evolves — so you always know which schema shape the payload conforms to. Null for a record created without a schema.
-
schemaVersion
-
externalId
Your own stable identifier for this record. Immutable, and unique within your account, context, and record type. Null if the record was created without one.
-
externalId
-
payload
The record's data payload. Its structure is defined by the referenced schema. Fields the schema marks as searchable are indexed for full-text and semantic search. When a record's payload is stored externally (because it is large), list and lookup responses return only the indexed/metadata projection here and set
payloadExternalizedto true; to retrieve the full payload, fetch the record by id (GET /v1/records/{id}) or passincludePayload=trueon the list or lookup call. -
payload
-
payloadExternalized
True when this record's full payload is stored externally rather than inline. In that case list and lookup responses return only the indexed projection in
payloadunlessincludePayload=truewas passed; fetching the record by id always returns the full payload. Null (omitted) for inline records. -
payloadExternalized
-
payloadBytes
Size in bytes of the full externalized payload. Present only when
payloadExternalizedis true. -
payloadBytes
-
payloadPartial
True when THIS response returned only a PARTIAL payload — a large record's bulk fields are omitted from
payloadbecause you did not request them (a list or lookup withoutincludePayload=true). UnlikepayloadExternalized(which is also true on a by-id read that DID return the full payload), this tells you the payload in hand is incomplete. To get the full payload, fetch the record by id (GET /v1/records/{id}) or passincludePayload=true. To UPDATE such a record, usePATCH(which preserves omitted fields) — aPUTbuilt from this response would clear the omitted fields unless you pass?allowClear=true. Null (omitted) when the payload is complete. -
payloadPartial
-
status
Record lifecycle status.
ACTIVErecords are live and searchable;ARCHIVEDrecords are retracted from search and recall while kept stored, retrievable by id, findable by structured-field lookup, and listed byGET /v1/records(setstatusback toACTIVEto restore). -
status
-
folderId
Identifier of the folder grouping this record. A folder can group both records and documents together.
-
folderId
-
userId
Identifier of the owning user (a Vectros-assigned UUID). Set automatically from the calling token's identity when the token carries a user identity.
-
userId
-
scopes
The record's scope ownership as canonical
namespace:valueentries (at most 2).organdclientare reserved namespace names; any other is one you registered yourself. Set at creation, either explicitly or automatically from the calling token's identity. Empty for a record owned by a user alone (or unowned). Filter lists by these values with?scope=. -
scopes
-
indexStatus
Search-index status. PENDING_INDEX means the record is queued for indexing. INDEXED means indexing is complete and it is searchable via
POST /v1/search. Keyword (TEXT) matching is immediate the moment a record is INDEXED. In practice the semantic (vector) index is normally immediately queryable too — if a search still misses a record you just wrote, suspect your account's rate limit before indexing lag: a rate-limited request (including a retry the SDK made on your behalf) can silently take some time to actually run, which looks identical to "my data isn't there yet." A freshly indexed record that matches a HYBRID or RAG query's keywords is designed to surface immediately without waiting on the vector index — this exists in code foruniqueDocuments: false(chunk-level results), but like theuniqueDocuments: truedefault (which RAG's grounding search also uses), it rests only on a unit test with mocked inputs, not a live-verified guarantee; treat it as best-effort on either path. A query that can only match a record semantically (amode: SEMANTICsearch, or a HYBRID/RAG query sharing no words with the record) has no such fallback. SKIPPED means the record had no indexable text (e.g. only non-searchable fields populated) so there was nothing to index — it is stored and retrievable, just not full-text/semantic searchable until a searchable field is filled in; not an error. FAILED means indexing hit an error — the record is still readable but not searchable. Null for a store-only record (indexModeNONE), which has no indexing to track. -
indexStatus
-
indexFailure
-
indexFailure
-
indexMode
The record's resolved search-index mode: the per-record override if set, otherwise the schema's type-level default, otherwise NONE. HYBRID, SEMANTIC, and TEXT make the record searchable; NONE is store-only.
-
indexMode
-
createdBy
Identifier of the API key or scoped token that created this record (for example,
key_abc123for an API key). -
createdBy
-
createdAt
When the record was created, as an ISO-8601 UTC timestamp.
-
createdAt
-
updatedAt
When the record was last updated, as an ISO-8601 UTC timestamp.
-
updatedAt
-
version
Optimistic-concurrency version. Pass this value back as
expectedVersionon a later update to avoid silently overwriting a concurrent change — the update is rejected with 409 VERSION_CONFLICT if the record changed in the meantime. Incremented on every successful write. -
version
-
expiresAt
The record's absolute expiry as an ISO-8601 UTC timestamp, when a TTL is set — the record is automatically deleted at (or shortly after) this time. Null when the record has no expiry.
-
expiresAt
-
build
-
additionalProperty
-
additionalProperties
-