Package com.google.genai.types
Class VideoGenerationMask
-
- All Implemented Interfaces:
public abstract class VideoGenerationMask extends JsonSerializable
A mask for video generation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classVideoGenerationMask.BuilderBuilder for VideoGenerationMask.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description VideoGenerationMask()
-
Method Summary
Modifier and Type Method Description abstract Optional<Image>image()The image mask to use for generating videos. abstract Optional<VideoGenerationMaskMode>maskMode()Describes how the mask will be used. static VideoGenerationMask.Builderbuilder()Instantiates a builder for VideoGenerationMask. abstract VideoGenerationMask.BuildertoBuilder()Creates a builder with the same values as this instance. static VideoGenerationMaskfromJson(String jsonString)Deserializes a JSON string to a VideoGenerationMask 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
-
maskMode
abstract Optional<VideoGenerationMaskMode> maskMode()
Describes how the mask will be used. Inpainting masks must match the aspect ratio of the input video. Outpainting masks can be either 9:16 or 16:9.
-
builder
static VideoGenerationMask.Builder builder()
Instantiates a builder for VideoGenerationMask.
-
toBuilder
abstract VideoGenerationMask.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static VideoGenerationMask fromJson(String jsonString)
Deserializes a JSON string to a VideoGenerationMask object.
-
-
-
-