Package com.google.genai.types
Class VideoGenerationMask
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.VideoGenerationMask
A mask for video generation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for VideoGenerationMask. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoGenerationMask.Builder
builder()
Instantiates a builder for VideoGenerationMask.static VideoGenerationMask
Deserializes a JSON string to a VideoGenerationMask object.image()
The image mask to use for generating videos.abstract Optional<VideoGenerationMaskMode>
maskMode()
Describes how the mask will be used.abstract VideoGenerationMask.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
VideoGenerationMask
public VideoGenerationMask()
-
-
Method Details
-
image
The image mask to use for generating videos. -
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
Instantiates a builder for VideoGenerationMask. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a VideoGenerationMask object.
-