Package com.google.genai.types
Class ImageResponseFormat
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ImageResponseFormat
Configuration for image-specific output formatting.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ImageResponseFormat. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<AspectRatio>Optional.static ImageResponseFormat.Builderbuilder()Instantiates a builder for ImageResponseFormat.delivery()Optional.static ImageResponseFormatDeserializes a JSON string to a ImageResponseFormat object.Optional.mimeType()Optional.abstract ImageResponseFormat.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
ImageResponseFormat
public ImageResponseFormat()
-
-
Method Details
-
aspectRatio
Optional. The aspect ratio for the image output. -
delivery
Optional. Delivery mode for the generated content. -
imageSize
Optional. The size of the image output. -
mimeType
Optional. The MIME type of the image output. -
builder
Instantiates a builder for ImageResponseFormat. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ImageResponseFormat object.
-