Class MessageDeltaTextFilePathAnnotationObject
java.lang.Object
com.azure.ai.openai.assistants.models.MessageDeltaTextAnnotation
com.azure.ai.openai.assistants.models.MessageDeltaTextFilePathAnnotationObject
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageDeltaTextAnnotation>
Represents a streamed file path annotation applied to a streaming text content part.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of MessageDeltaTextFilePathAnnotationObject from the JsonReader.Get the endIndex property: The end index of this annotation in the content text.Get the filePath property: The file path information.Get the startIndex property: The start index of this annotation in the content text.getText()
Get the text property: The text in the message content that needs to be replaced.getType()
Get the type property: The type of the text content annotation.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.ai.openai.assistants.models.MessageDeltaTextAnnotation
getIndex
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
-
getType
Get the type property: The type of the text content annotation.- Overrides:
getType
in classMessageDeltaTextAnnotation
- Returns:
- the type value.
-
getFilePath
Get the filePath property: The file path information.- Returns:
- the filePath value.
-
getStartIndex
Get the startIndex property: The start index of this annotation in the content text.- Returns:
- the startIndex value.
-
getEndIndex
Get the endIndex property: The end index of this annotation in the content text.- Returns:
- the endIndex value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<MessageDeltaTextAnnotation>
- Overrides:
toJson
in classMessageDeltaTextAnnotation
- Throws:
IOException
-
fromJson
public static MessageDeltaTextFilePathAnnotationObject fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MessageDeltaTextFilePathAnnotationObject from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of MessageDeltaTextFilePathAnnotationObject 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 MessageDeltaTextFilePathAnnotationObject.
-
getText
Get the text property: The text in the message content that needs to be replaced.- Returns:
- the text value.
-