Class VectorStore.Builder
-
- All Implemented Interfaces:
public final class VectorStore.Builder
A builder for VectorStore.
-
-
Method Summary
Modifier and Type Method Description final VectorStore.Builder
id(String id)
The identifier, which can be referenced in API endpoints. final VectorStore.Builder
id(JsonField<String> id)
The identifier, which can be referenced in API endpoints. final VectorStore.Builder
createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the vector store was created. final VectorStore.Builder
createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the vector store was created. final VectorStore.Builder
fileCounts(VectorStore.FileCounts fileCounts)
final VectorStore.Builder
fileCounts(JsonField<VectorStore.FileCounts> fileCounts)
final VectorStore.Builder
lastActiveAt(Long lastActiveAt)
The Unix timestamp (in seconds) for when the vector store was last active. final VectorStore.Builder
lastActiveAt(Long lastActiveAt)
The Unix timestamp (in seconds) for when the vector store was last active. final VectorStore.Builder
lastActiveAt(Optional<Long> lastActiveAt)
The Unix timestamp (in seconds) for when the vector store was last active. final VectorStore.Builder
lastActiveAt(JsonField<Long> lastActiveAt)
The Unix timestamp (in seconds) for when the vector store was last active. final VectorStore.Builder
metadata(Metadata metadata)
Set of 16 key-value pairs that can be attached to an object. final VectorStore.Builder
metadata(Optional<Metadata> metadata)
Set of 16 key-value pairs that can be attached to an object. final VectorStore.Builder
metadata(JsonField<Metadata> metadata)
Set of 16 key-value pairs that can be attached to an object. final VectorStore.Builder
name(String name)
The name of the vector store. final VectorStore.Builder
name(JsonField<String> name)
The name of the vector store. final VectorStore.Builder
object_(JsonValue object_)
The object type, which is always vector_store
.final VectorStore.Builder
status(VectorStore.Status status)
The status of the vector store, which can be either expired
,in_progress
, orcompleted
.final VectorStore.Builder
status(JsonField<VectorStore.Status> status)
The status of the vector store, which can be either expired
,in_progress
, orcompleted
.final VectorStore.Builder
usageBytes(Long usageBytes)
The total number of bytes used by the files in the vector store. final VectorStore.Builder
usageBytes(JsonField<Long> usageBytes)
The total number of bytes used by the files in the vector store. final VectorStore.Builder
expiresAfter(VectorStore.ExpiresAfter expiresAfter)
The expiration policy for a vector store. final VectorStore.Builder
expiresAfter(JsonField<VectorStore.ExpiresAfter> expiresAfter)
The expiration policy for a vector store. final VectorStore.Builder
expiresAt(Long expiresAt)
The Unix timestamp (in seconds) for when the vector store will expire. final VectorStore.Builder
expiresAt(Long expiresAt)
The Unix timestamp (in seconds) for when the vector store will expire. final VectorStore.Builder
expiresAt(Optional<Long> expiresAt)
The Unix timestamp (in seconds) for when the vector store will expire. final VectorStore.Builder
expiresAt(JsonField<Long> expiresAt)
The Unix timestamp (in seconds) for when the vector store will expire. final VectorStore.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final VectorStore.Builder
putAdditionalProperty(String key, JsonValue value)
final VectorStore.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final VectorStore.Builder
removeAdditionalProperty(String key)
final VectorStore.Builder
removeAllAdditionalProperties(Set<String> keys)
final VectorStore
build()
-
-
Method Detail
-
id
final VectorStore.Builder id(String id)
The identifier, which can be referenced in API endpoints.
-
id
final VectorStore.Builder id(JsonField<String> id)
The identifier, which can be referenced in API endpoints.
-
createdAt
final VectorStore.Builder createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the vector store was created.
-
createdAt
final VectorStore.Builder createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the vector store was created.
-
fileCounts
final VectorStore.Builder fileCounts(VectorStore.FileCounts fileCounts)
-
fileCounts
final VectorStore.Builder fileCounts(JsonField<VectorStore.FileCounts> fileCounts)
-
lastActiveAt
final VectorStore.Builder lastActiveAt(Long lastActiveAt)
The Unix timestamp (in seconds) for when the vector store was last active.
-
lastActiveAt
final VectorStore.Builder lastActiveAt(Long lastActiveAt)
The Unix timestamp (in seconds) for when the vector store was last active.
-
lastActiveAt
final VectorStore.Builder lastActiveAt(Optional<Long> lastActiveAt)
The Unix timestamp (in seconds) for when the vector store was last active.
-
lastActiveAt
final VectorStore.Builder lastActiveAt(JsonField<Long> lastActiveAt)
The Unix timestamp (in seconds) for when the vector store was last active.
-
metadata
final VectorStore.Builder metadata(Metadata metadata)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
metadata
final VectorStore.Builder metadata(Optional<Metadata> metadata)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
metadata
final VectorStore.Builder metadata(JsonField<Metadata> metadata)
Set of 16 key-value pairs that can be attached to an object. This can be useful for storing additional information about the object in a structured format, and querying for objects via API or the dashboard.
Keys are strings with a maximum length of 64 characters. Values are strings with a maximum length of 512 characters.
-
name
final VectorStore.Builder name(String name)
The name of the vector store.
-
name
final VectorStore.Builder name(JsonField<String> name)
The name of the vector store.
-
object_
final VectorStore.Builder object_(JsonValue object_)
The object type, which is always
vector_store
.
-
status
final VectorStore.Builder status(VectorStore.Status status)
The status of the vector store, which can be either
expired
,in_progress
, orcompleted
. A status ofcompleted
indicates that the vector store is ready for use.
-
status
final VectorStore.Builder status(JsonField<VectorStore.Status> status)
The status of the vector store, which can be either
expired
,in_progress
, orcompleted
. A status ofcompleted
indicates that the vector store is ready for use.
-
usageBytes
final VectorStore.Builder usageBytes(Long usageBytes)
The total number of bytes used by the files in the vector store.
-
usageBytes
final VectorStore.Builder usageBytes(JsonField<Long> usageBytes)
The total number of bytes used by the files in the vector store.
-
expiresAfter
final VectorStore.Builder expiresAfter(VectorStore.ExpiresAfter expiresAfter)
The expiration policy for a vector store.
-
expiresAfter
final VectorStore.Builder expiresAfter(JsonField<VectorStore.ExpiresAfter> expiresAfter)
The expiration policy for a vector store.
-
expiresAt
final VectorStore.Builder expiresAt(Long expiresAt)
The Unix timestamp (in seconds) for when the vector store will expire.
-
expiresAt
final VectorStore.Builder expiresAt(Long expiresAt)
The Unix timestamp (in seconds) for when the vector store will expire.
-
expiresAt
final VectorStore.Builder expiresAt(Optional<Long> expiresAt)
The Unix timestamp (in seconds) for when the vector store will expire.
-
expiresAt
final VectorStore.Builder expiresAt(JsonField<Long> expiresAt)
The Unix timestamp (in seconds) for when the vector store will expire.
-
additionalProperties
final VectorStore.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final VectorStore.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final VectorStore.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final VectorStore.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final VectorStore.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final VectorStore build()
-
-
-
-