Package com.google.genai.types
Class UpscaleImageAPIConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.UpscaleImageAPIConfig
API config for UpscaleImage with fields not exposed to users.
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 classBuilder for UpscaleImageAPIConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
objectMapper -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for UpscaleImageAPIConfig.static UpscaleImageAPIConfigDeserializes a JSON string to a UpscaleImageAPIConfig object.Whether to include a reason for filtered-out images in the response.mode()The level of compression if the ``output_mime_type`` is ``image/jpeg``.The image format that the output should be saved as.abstract UpscaleImageAPIConfig.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, toJson, toJsonNode, toJsonString
-
Constructor Details
-
UpscaleImageAPIConfig
public UpscaleImageAPIConfig()
-
-
Method Details
-
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``. -
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.
-