Class MessageDeltaTextContentObject
java.lang.Object
com.azure.ai.openai.assistants.models.MessageDeltaContent
com.azure.ai.openai.assistants.models.MessageDeltaTextContentObject
- All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageDeltaContent>
Represents a streamed text content part within a streaming message delta chunk.
-
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of MessageDeltaTextContentObject from the JsonReader.getText()
Get the text property: The text content details.getType()
Get the type property: The type of content for this content part.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) Methods inherited from class com.azure.ai.openai.assistants.models.MessageDeltaContent
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 content for this content part.- Overrides:
getType
in classMessageDeltaContent
- Returns:
- the type value.
-
getText
Get the text property: The text content details.- Returns:
- the text value.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<MessageDeltaContent>
- Overrides:
toJson
in classMessageDeltaContent
- Throws:
IOException
-
fromJson
public static MessageDeltaTextContentObject fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of MessageDeltaTextContentObject from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of MessageDeltaTextContentObject 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 MessageDeltaTextContentObject.
-