Package com.google.genai.types
Class UpscaleImageAPIParameters
-
- All Implemented Interfaces:
@InternalApi() public abstract class UpscaleImageAPIParameters extends JsonSerializable
API parameters for UpscaleImage.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classUpscaleImageAPIParameters.BuilderBuilder for UpscaleImageAPIParameters.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description UpscaleImageAPIParameters()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>model()The model to use. abstract Optional<Image>image()The input image to upscale. abstract Optional<String>upscaleFactor()The factor to upscale the image (x2 or x4). abstract Optional<UpscaleImageAPIConfig>config()Configuration for upscaling. static UpscaleImageAPIParameters.Builderbuilder()Instantiates a builder for UpscaleImageAPIParameters. abstract UpscaleImageAPIParameters.BuildertoBuilder()Creates a builder with the same values as this instance. static UpscaleImageAPIParametersfromJson(String jsonString)Deserializes a JSON string to a UpscaleImageAPIParameters object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
upscaleFactor
abstract Optional<String> upscaleFactor()
The factor to upscale the image (x2 or x4).
-
config
abstract Optional<UpscaleImageAPIConfig> config()
Configuration for upscaling.
-
builder
static UpscaleImageAPIParameters.Builder builder()
Instantiates a builder for UpscaleImageAPIParameters.
-
toBuilder
abstract UpscaleImageAPIParameters.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static UpscaleImageAPIParameters fromJson(String jsonString)
Deserializes a JSON string to a UpscaleImageAPIParameters object.
-
-
-
-