Class VectorStoreFile
java.lang.Object
com.azure.ai.openai.assistants.models.VectorStoreFile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VectorStoreFile>
public final class VectorStoreFile
extends Object
implements com.azure.json.JsonSerializable<VectorStoreFile>
Description of a file attached to a vector store.
-
Method Summary
Modifier and TypeMethodDescriptionstatic VectorStoreFile
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VectorStoreFile from the JsonReader.Get the chunkingStrategy property: The strategy used to chunk the file.Get the createdAt property: The Unix timestamp (in seconds) for when the vector store file was created.getId()
Get the id property: The identifier, which can be referenced in API endpoints.Get the lastError property: The last error associated with this vector store file.Get the object property: The object type, which is always `vector_store.file`.Get the status property: The status of the vector store file, which can be either `in_progress`, `completed`, `cancelled`, or `failed`.int
Get the usageBytes property: The total vector store usage in bytes.Get the vectorStoreId property: The ID of the vector store that the file is attached to.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Method Details
-
getId
Get the id property: The identifier, which can be referenced in API endpoints.- Returns:
- the id value.
-
getObject
Get the object property: The object type, which is always `vector_store.file`.- Returns:
- the object value.
-
getUsageBytes
public int getUsageBytes()Get the usageBytes property: The total vector store usage in bytes. Note that this may be different from the original file size.- Returns:
- the usageBytes value.
-
getCreatedAt
Get the createdAt property: The Unix timestamp (in seconds) for when the vector store file was created.- Returns:
- the createdAt value.
-
getVectorStoreId
Get the vectorStoreId property: The ID of the vector store that the file is attached to.- Returns:
- the vectorStoreId value.
-
getStatus
Get the status property: The status of the vector store file, which can be either `in_progress`, `completed`, `cancelled`, or `failed`. The status `completed` indicates that the vector store file is ready for use.- Returns:
- the status value.
-
getLastError
Get the lastError property: The last error associated with this vector store file. Will be `null` if there are no errors.- Returns:
- the lastError value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<VectorStoreFile>
- Throws:
IOException
-
fromJson
Reads an instance of VectorStoreFile from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VectorStoreFile if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
- Throws:
IllegalStateException
- If the deserialized JSON object was missing any required properties.IOException
- If an error occurs while reading the VectorStoreFile.
-
getChunkingStrategy
Get the chunkingStrategy property: The strategy used to chunk the file.- Returns:
- the chunkingStrategy value.
-