Package com.google.genai.types
Class UpscaleImageAPIConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.UpscaleImageAPIConfig
Internal API config for UpscaleImage.
These fields require default values sent to the API which are not intended to be modifiable or exposed to users in the SDK method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for UpscaleImageAPIConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for UpscaleImageAPIConfig.Whether to add an image enhancing step before upscaling.static UpscaleImageAPIConfig
Deserializes a JSON string to a UpscaleImageAPIConfig object.abstract Optional<HttpOptions>
Used to override HTTP request options.With a higher image preservation factor, the original image pixels are more respected.Whether to include a reason for filtered-out images in the response.mode()
The level of compression.Cloud Storage URI used to store the generated images.The image format that the output should be saved as.abstract UpscaleImageAPIConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
UpscaleImageAPIConfig
public UpscaleImageAPIConfig()
-
-
Method Details
-
httpOptions
Used to override HTTP request options. -
outputGcsUri
Cloud Storage URI used to store the generated images. -
includeRaiReason
Whether to include a reason for filtered-out images in the response. -
outputMimeType
The image format that the output should be saved as. -
outputCompressionQuality
The level of compression. Only applicable if the ``output_mime_type`` is ``image/jpeg``. -
enhanceInputImage
Whether to add an image enhancing step before upscaling. It is expected to suppress the noise and JPEG compression artifacts from the input image. -
imagePreservationFactor
With a higher image preservation factor, the original image pixels are more respected. With a lower image preservation factor, the output image will have be more different from the input image, but with finer details and less noise. -
numberOfImages
-
mode
-
builder
Instantiates a builder for UpscaleImageAPIConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a UpscaleImageAPIConfig object.
-