Package com.google.genai.types
Class UpscaleImageAPIParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.UpscaleImageAPIParameters
API parameters for UpscaleImage.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for UpscaleImageAPIParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for UpscaleImageAPIParameters.abstract Optional<UpscaleImageAPIConfig>config()Configuration for upscaling.static UpscaleImageAPIParametersDeserializes a JSON string to a UpscaleImageAPIParameters object.image()The input image to upscale.model()The model to use.abstract UpscaleImageAPIParameters.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
-
UpscaleImageAPIParameters
public UpscaleImageAPIParameters()
-
-
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 UpscaleImageAPIParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a UpscaleImageAPIParameters object.
-