Package com.google.genai.types
Class UpscaleImageParameters
-
- All Implemented Interfaces:
@InternalApi() public abstract class UpscaleImageParameters extends JsonSerializable
User-facing config UpscaleImageParameters.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classUpscaleImageParameters.BuilderBuilder for UpscaleImageParameters.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description UpscaleImageParameters()
-
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<UpscaleImageConfig>config()Configuration for upscaling. static UpscaleImageParameters.Builderbuilder()Instantiates a builder for UpscaleImageParameters. abstract UpscaleImageParameters.BuildertoBuilder()Creates a builder with the same values as this instance. static UpscaleImageParametersfromJson(String jsonString)Deserializes a JSON string to a UpscaleImageParameters 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<UpscaleImageConfig> config()
Configuration for upscaling.
-
builder
static UpscaleImageParameters.Builder builder()
Instantiates a builder for UpscaleImageParameters.
-
toBuilder
abstract UpscaleImageParameters.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static UpscaleImageParameters fromJson(String jsonString)
Deserializes a JSON string to a UpscaleImageParameters object.
-
-
-
-