Class MessageImageFileParam
java.lang.Object
com.azure.ai.agents.persistent.models.MessageImageFileParam
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageImageFileParam>
public final class MessageImageFileParam
extends Object
implements com.azure.json.JsonSerializable<MessageImageFileParam>
Defines how an internally uploaded image file is referenced when creating an image-file block.
-
Constructor Summary
ConstructorsConstructorDescriptionMessageImageFileParam(String fileId) Creates an instance of MessageImageFileParam class. -
Method Summary
Modifier and TypeMethodDescriptionstatic MessageImageFileParamfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of MessageImageFileParam from the JsonReader.Get the detail property: Optional detail level for the image (auto, low, or high).Get the fileId property: The ID of the previously uploaded image file.setDetail(ImageDetailLevel detail) Set the detail property: Optional detail level for the image (auto, low, or high).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
-
MessageImageFileParam
Creates an instance of MessageImageFileParam class.- Parameters:
fileId- the fileId value to set.
-
-
Method Details
-
getFileId
Get the fileId property: The ID of the previously uploaded image file.- Returns:
- the fileId value.
-
getDetail
Get the detail property: Optional detail level for the image (auto, low, or high).- Returns:
- the detail value.
-
setDetail
Set the detail property: Optional detail level for the image (auto, low, or high).- Parameters:
detail- the detail value to set.- Returns:
- the MessageImageFileParam object itself.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<MessageImageFileParam>- Throws:
IOException
-
fromJson
public static MessageImageFileParam fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MessageImageFileParam from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of MessageImageFileParam 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 MessageImageFileParam.
-