Class VectorStoreFile.Builder
-
- All Implemented Interfaces:
public final class VectorStoreFile.Builder
-
-
Constructor Summary
Constructors Constructor Description VectorStoreFile.Builder()
-
Method Summary
Modifier and Type Method Description final VectorStoreFile.Builder
id(String id)
The identifier, which can be referenced in API endpoints. final VectorStoreFile.Builder
id(JsonField<String> id)
The identifier, which can be referenced in API endpoints. final VectorStoreFile.Builder
createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the vector store file was created. final VectorStoreFile.Builder
createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the vector store file was created. final VectorStoreFile.Builder
lastError(VectorStoreFile.LastError lastError)
The last error associated with this vector store file. final VectorStoreFile.Builder
lastError(Optional<VectorStoreFile.LastError> lastError)
The last error associated with this vector store file. final VectorStoreFile.Builder
lastError(JsonField<VectorStoreFile.LastError> lastError)
The last error associated with this vector store file. final VectorStoreFile.Builder
object_(JsonValue object_)
The object type, which is always vector_store.file
.final VectorStoreFile.Builder
status(VectorStoreFile.Status status)
The status of the vector store file, which can be either in_progress
,completed
,cancelled
, orfailed
.final VectorStoreFile.Builder
status(JsonField<VectorStoreFile.Status> status)
The status of the vector store file, which can be either in_progress
,completed
,cancelled
, orfailed
.final VectorStoreFile.Builder
usageBytes(Long usageBytes)
The total vector store usage in bytes. final VectorStoreFile.Builder
usageBytes(JsonField<Long> usageBytes)
The total vector store usage in bytes. final VectorStoreFile.Builder
vectorStoreId(String vectorStoreId)
The ID of the vector store that the File is attached to. final VectorStoreFile.Builder
vectorStoreId(JsonField<String> vectorStoreId)
The ID of the vector store that the File is attached to. final VectorStoreFile.Builder
chunkingStrategy(FileChunkingStrategy chunkingStrategy)
The strategy used to chunk the file. final VectorStoreFile.Builder
chunkingStrategy(JsonField<FileChunkingStrategy> chunkingStrategy)
The strategy used to chunk the file. final VectorStoreFile.Builder
chunkingStrategy(StaticFileChunkingStrategyObject staticFileChunkingStrategyObject)
The strategy used to chunk the file. final VectorStoreFile.Builder
chunkingStrategy(OtherFileChunkingStrategyObject otherFileChunkingStrategyObject)
This is returned when the chunking strategy is unknown. final VectorStoreFile.Builder
additionalProperties(Map<String, JsonValue> additionalProperties)
final VectorStoreFile.Builder
putAdditionalProperty(String key, JsonValue value)
final VectorStoreFile.Builder
putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
final VectorStoreFile.Builder
removeAdditionalProperty(String key)
final VectorStoreFile.Builder
removeAllAdditionalProperties(Set<String> keys)
final VectorStoreFile
build()
-
-
Method Detail
-
id
final VectorStoreFile.Builder id(String id)
The identifier, which can be referenced in API endpoints.
-
id
final VectorStoreFile.Builder id(JsonField<String> id)
The identifier, which can be referenced in API endpoints.
-
createdAt
final VectorStoreFile.Builder createdAt(Long createdAt)
The Unix timestamp (in seconds) for when the vector store file was created.
-
createdAt
final VectorStoreFile.Builder createdAt(JsonField<Long> createdAt)
The Unix timestamp (in seconds) for when the vector store file was created.
-
lastError
final VectorStoreFile.Builder lastError(VectorStoreFile.LastError lastError)
The last error associated with this vector store file. Will be
null
if there are no errors.
-
lastError
final VectorStoreFile.Builder lastError(Optional<VectorStoreFile.LastError> lastError)
The last error associated with this vector store file. Will be
null
if there are no errors.
-
lastError
final VectorStoreFile.Builder lastError(JsonField<VectorStoreFile.LastError> lastError)
The last error associated with this vector store file. Will be
null
if there are no errors.
-
object_
final VectorStoreFile.Builder object_(JsonValue object_)
The object type, which is always
vector_store.file
.
-
status
final VectorStoreFile.Builder status(VectorStoreFile.Status status)
The status of the vector store file, which can be either
in_progress
,completed
,cancelled
, orfailed
. The statuscompleted
indicates that the vector store file is ready for use.
-
status
final VectorStoreFile.Builder status(JsonField<VectorStoreFile.Status> status)
The status of the vector store file, which can be either
in_progress
,completed
,cancelled
, orfailed
. The statuscompleted
indicates that the vector store file is ready for use.
-
usageBytes
final VectorStoreFile.Builder usageBytes(Long usageBytes)
The total vector store usage in bytes. Note that this may be different from the original file size.
-
usageBytes
final VectorStoreFile.Builder usageBytes(JsonField<Long> usageBytes)
The total vector store usage in bytes. Note that this may be different from the original file size.
-
vectorStoreId
final VectorStoreFile.Builder vectorStoreId(String vectorStoreId)
The ID of the vector store that the File is attached to.
-
vectorStoreId
final VectorStoreFile.Builder vectorStoreId(JsonField<String> vectorStoreId)
The ID of the vector store that the File is attached to.
-
chunkingStrategy
final VectorStoreFile.Builder chunkingStrategy(FileChunkingStrategy chunkingStrategy)
The strategy used to chunk the file.
-
chunkingStrategy
final VectorStoreFile.Builder chunkingStrategy(JsonField<FileChunkingStrategy> chunkingStrategy)
The strategy used to chunk the file.
-
chunkingStrategy
final VectorStoreFile.Builder chunkingStrategy(StaticFileChunkingStrategyObject staticFileChunkingStrategyObject)
The strategy used to chunk the file.
-
chunkingStrategy
final VectorStoreFile.Builder chunkingStrategy(OtherFileChunkingStrategyObject otherFileChunkingStrategyObject)
This is returned when the chunking strategy is unknown. Typically, this is because the file was indexed before the
chunking_strategy
concept was introduced in the API.
-
additionalProperties
final VectorStoreFile.Builder additionalProperties(Map<String, JsonValue> additionalProperties)
-
putAdditionalProperty
final VectorStoreFile.Builder putAdditionalProperty(String key, JsonValue value)
-
putAllAdditionalProperties
final VectorStoreFile.Builder putAllAdditionalProperties(Map<String, JsonValue> additionalProperties)
-
removeAdditionalProperty
final VectorStoreFile.Builder removeAdditionalProperty(String key)
-
removeAllAdditionalProperties
final VectorStoreFile.Builder removeAllAdditionalProperties(Set<String> keys)
-
build
final VectorStoreFile build()
-
-
-
-