Package ai.vectros.types
Class RecordResponse
java.lang.Object
ai.vectros.types.RecordResponse
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic RecordResponse.Builderbuilder()booleangetId()inthashCode()toString()
-
Method Details
-
getCreated
- Returns:
- 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.
-
getId
- Returns:
- Unique identifier for this record (UUID), assigned by Vectros at creation.
-
getTypeName
- Returns:
- The record's type, matching the
typeNamedeclared on the schema this record was created against.
-
getSchemaId
- Returns:
- Identifier of the schema this record was validated against.
-
getSchemaVersion
- Returns:
- 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.
-
getExternalId
- Returns:
- 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.
-
getPayload
- Returns:
- 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.
-
getPayloadExternalized
- Returns:
- 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.
-
getPayloadBytes
- Returns:
- Size in bytes of the full externalized payload. Present only when
payloadExternalizedis true.
-
getPayloadPartial
- Returns:
- 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.
-
getStatus
- Returns:
- 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).
-
getFolderId
- Returns:
- Identifier of the folder grouping this record. A folder can group both records and documents together.
-
getUserId
- Returns:
- Identifier of the owning user (a Vectros-assigned UUID). Set automatically from the calling token's identity when the token carries a user identity.
-
getScopes
- Returns:
- 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=.
-
getIndexStatus
- Returns:
- 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.
-
getIndexFailure
-
getIndexMode
- Returns:
- 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.
-
getCreatedBy
- Returns:
- Identifier of the API key or scoped token that created this record (for example,
key_abc123for an API key).
-
getCreatedAt
- Returns:
- When the record was created, as an ISO-8601 UTC timestamp.
-
getUpdatedAt
- Returns:
- When the record was last updated, as an ISO-8601 UTC timestamp.
-
getVersion
- Returns:
- 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.
-
getExpiresAt
- Returns:
- 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.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-