Package com.google.genai.types
Class UpscaleImageAPIConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.UpscaleImageAPIConfig
Deprecated.
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 classDeprecated.Builder for UpscaleImageAPIConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Deprecated.Instantiates a builder for UpscaleImageAPIConfig.Deprecated.Whether to add an image enhancing step before upscaling.static UpscaleImageAPIConfigDeprecated.Deserializes a JSON string to a UpscaleImageAPIConfig object.abstract Optional<HttpOptions>Deprecated.Used to override HTTP request options.Deprecated.With a higher image preservation factor, the original image pixels are more respected.Deprecated.Whether to include a reason for filtered-out images in the response.labels()Deprecated.User specified labels to track billing usage.mode()Deprecated.Deprecated.Deprecated.The level of compression.Deprecated.Cloud Storage URI used to store the generated images.Deprecated.The image format that the output should be saved as.abstract Optional<PersonGeneration>Deprecated.Allows generation of people by the model.abstract Optional<SafetyFilterLevel>Deprecated.Filter level for safety filtering.abstract UpscaleImageAPIConfig.BuilderDeprecated.Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
UpscaleImageAPIConfig
public UpscaleImageAPIConfig()Deprecated.
-
-
Method Details
-
httpOptions
Deprecated.Used to override HTTP request options. -
outputGcsUri
Deprecated.Cloud Storage URI used to store the generated images. -
safetyFilterLevel
Deprecated.Filter level for safety filtering. -
personGeneration
Deprecated.Allows generation of people by the model. -
includeRaiReason
Deprecated.Whether to include a reason for filtered-out images in the response. -
outputMimeType
Deprecated.The image format that the output should be saved as. -
outputCompressionQuality
Deprecated.The level of compression. Only applicable if the ``output_mime_type`` is ``image/jpeg``. -
enhanceInputImage
Deprecated.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
Deprecated.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. -
labels
Deprecated.User specified labels to track billing usage. -
numberOfImages
Deprecated. -
mode
Deprecated. -
builder
Deprecated.Instantiates a builder for UpscaleImageAPIConfig. -
toBuilder
Deprecated.Creates a builder with the same values as this instance. -
fromJson
Deprecated.Deserializes a JSON string to a UpscaleImageAPIConfig object.
-