Class MessageDeltaImageFileContent

java.lang.Object
com.azure.ai.openai.assistants.models.MessageDeltaContent
com.azure.ai.openai.assistants.models.MessageDeltaImageFileContent
All Implemented Interfaces:
com.azure.json.JsonSerializable<MessageDeltaContent>

public final class MessageDeltaImageFileContent extends MessageDeltaContent
Represents a streamed image file content part within a streaming message delta chunk.
  • Method Details

    • getType

      public String getType()
      Get the type property: The type of content for this content part.
      Overrides:
      getType in class MessageDeltaContent
      Returns:
      the type value.
    • getImageFile

      public MessageDeltaImageFileContentObject getImageFile()
      Get the imageFile property: The image_file data.
      Returns:
      the imageFile value.
    • toJson

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<MessageDeltaContent>
      Overrides:
      toJson in class MessageDeltaContent
      Throws:
      IOException
    • fromJson

      public static MessageDeltaImageFileContent fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of MessageDeltaImageFileContent from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of MessageDeltaImageFileContent 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 MessageDeltaImageFileContent.