Package com.google.genai.types
Class ImageResponseFormat.Builder
java.lang.Object
com.google.genai.types.ImageResponseFormat.Builder
- Enclosing class:
- ImageResponseFormat
Builder for ImageResponseFormat.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ImageResponseFormat.BuilderaspectRatio(AspectRatio aspectRatio) Setter for aspectRatio.aspectRatio(AspectRatio.Known knownType) Setter for aspectRatio given a known enum.aspectRatio(String aspectRatio) Setter for aspectRatio given a string.abstract ImageResponseFormatbuild()Clears the value of aspectRatio field.Clears the value of delivery field.Clears the value of imageSize field.Clears the value of mimeType field.abstract ImageResponseFormat.BuilderSetter for delivery.delivery(Delivery.Known knownType) Setter for delivery given a known enum.Setter for delivery given a string.abstract ImageResponseFormat.BuilderSetter for imageSize.imageSize(ImageSize.Known knownType) Setter for imageSize given a known enum.Setter for imageSize given a string.abstract ImageResponseFormat.BuilderSetter for mimeType.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
aspectRatio
Setter for aspectRatio.aspectRatio: Optional. The aspect ratio for the image output.
-
clearAspectRatio
Clears the value of aspectRatio field. -
aspectRatio
Setter for aspectRatio given a known enum.aspectRatio: Optional. The aspect ratio for the image output.
-
aspectRatio
Setter for aspectRatio given a string.aspectRatio: Optional. The aspect ratio for the image output.
-
delivery
Setter for delivery.delivery: Optional. Delivery mode for the generated content.
-
clearDelivery
Clears the value of delivery field. -
delivery
Setter for delivery given a known enum.delivery: Optional. Delivery mode for the generated content.
-
delivery
Setter for delivery given a string.delivery: Optional. Delivery mode for the generated content.
-
imageSize
Setter for imageSize.imageSize: Optional. The size of the image output.
-
clearImageSize
Clears the value of imageSize field. -
imageSize
Setter for imageSize given a known enum.imageSize: Optional. The size of the image output.
-
imageSize
Setter for imageSize given a string.imageSize: Optional. The size of the image output.
-
mimeType
Setter for mimeType.mimeType: Optional. The MIME type of the image output.
-
clearMimeType
Clears the value of mimeType field. -
build
-