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.static UpscaleImageConfig
Deserializes a JSON string to a UpscaleImageConfig object.abstract Optional<HttpOptions>
Used to override HTTP request options.Whether to include a reason for filtered-out images in the response.The level of compression if the ``output_mime_type`` is ``image/jpeg``.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
fromJsonString, toJson
-
Constructor Details
-
UpscaleImageConfig
public UpscaleImageConfig()
-
-
Method Details
-
httpOptions
Used to override HTTP request options. -
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 if the ``output_mime_type`` is ``image/jpeg``. -
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.
-