Package com.google.genai.types
Class UpscaleImageConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.UpscaleImageConfig
Configuration for upscaling an image.
For more information on this configuration, refer to the `Imagen API reference documentation <https://cloud.google.com/vertex-ai/generative-ai/docs/model-reference/imagen-api>`_.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for UpscaleImageConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UpscaleImageConfig.Builder
builder()
Instantiates a builder for UpscaleImageConfig.Whether to add an image enhancing step before upscaling.static UpscaleImageConfig
Deserializes a JSON string to a UpscaleImageConfig 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.The level of compression.Cloud Storage URI used to store the generated images.The image format that the output should be saved as.abstract UpscaleImageConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
UpscaleImageConfig
public UpscaleImageConfig()
-
-
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. -
builder
Instantiates a builder for UpscaleImageConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a UpscaleImageConfig object.
-