Class VectorStoreDataSource
java.lang.Object
com.azure.ai.agents.persistent.models.VectorStoreDataSource
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VectorStoreDataSource>
public final class VectorStoreDataSource
extends Object
implements com.azure.json.JsonSerializable<VectorStoreDataSource>
The structure, containing Azure asset URI path and the asset type of the file used as a data source
for the enterprise file search.
-
Constructor Summary
ConstructorsConstructorDescriptionVectorStoreDataSource(String assetIdentifier, VectorStoreDataSourceAssetType assetType) Creates an instance of VectorStoreDataSource class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VectorStoreDataSourcefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VectorStoreDataSource from the JsonReader.Get the assetIdentifier property: Asset URI.Get the assetType property: The asset type.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VectorStoreDataSource
Creates an instance of VectorStoreDataSource class.- Parameters:
assetIdentifier- the assetIdentifier value to set.assetType- the assetType value to set.
-
-
Method Details
-
getAssetIdentifier
Get the assetIdentifier property: Asset URI.- Returns:
- the assetIdentifier value.
-
getAssetType
Get the assetType property: The asset type.- Returns:
- the assetType value.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VectorStoreDataSource>- Throws:
IOException
-
fromJson
public static VectorStoreDataSource fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VectorStoreDataSource from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VectorStoreDataSource 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 VectorStoreDataSource.
-