Package com.google.genai.types
Class UpscaleImageParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.UpscaleImageParameters
User-facing config UpscaleImageParameters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for UpscaleImageParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for UpscaleImageParameters.abstract Optional<UpscaleImageConfig>config()Configuration for upscaling.static UpscaleImageParametersDeserializes a JSON string to a UpscaleImageParameters object.image()The input image to upscale.model()The model to use.abstract UpscaleImageParameters.BuilderCreates a builder with the same values as this instance.The factor to upscale the image (x2 or x4).Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
UpscaleImageParameters
public UpscaleImageParameters()
-
-
Method Details
-
model
The model to use. -
image
The input image to upscale. -
upscaleFactor
The factor to upscale the image (x2 or x4). -
config
Configuration for upscaling. -
builder
Instantiates a builder for UpscaleImageParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a UpscaleImageParameters object.
-