Package ai.vectros.types
Class RecordResponse
java.lang.Object
ai.vectros.types.RecordResponse
-
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.
-
getStatus
- Returns:
- Record lifecycle status. ACTIVE records are live. Use this field to model soft-delete or workflow states without physically deleting records.
-
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.
-
getOrgId
- Returns:
- Identifier of the owning organization (a Vectros-assigned UUID). Set automatically from the calling token's identity when the token carries an organization identity.
-
getClientId
- Returns:
- Identifier of the associated client (a Vectros-assigned UUID). Set automatically from the calling token's identity when the token carries a client identity.
-
getIndexStatus
- Returns:
- Search-index status. PENDING_INDEX means the record is queued for indexing. INDEXED means it is searchable via
POST /v1/search. 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.
-
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.
-
equals
-
getAdditionalProperties
-
hashCode
public int hashCode() -
toString
-
builder
-