Package com.google.genai.types
Class UpscaleImageConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.UpscaleImageConfig
Deprecated.
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 classDeprecated.Builder for UpscaleImageConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic UpscaleImageConfig.Builderbuilder()Deprecated.Instantiates a builder for UpscaleImageConfig.Deprecated.Whether to add an image enhancing step before upscaling.static UpscaleImageConfigDeprecated.Deserializes a JSON string to a UpscaleImageConfig 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.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 UpscaleImageConfig.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
-
UpscaleImageConfig
public UpscaleImageConfig()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. -
builder
Deprecated.Instantiates a builder for UpscaleImageConfig. -
toBuilder
Deprecated.Creates a builder with the same values as this instance. -
fromJson
Deprecated.Deserializes a JSON string to a UpscaleImageConfig object.
-