Class VideoGenerationMask

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.VideoGenerationMask

public abstract class VideoGenerationMask extends JsonSerializable
A mask for video generation.
  • Constructor Details

    • VideoGenerationMask

      public VideoGenerationMask()
  • Method Details

    • image

      public abstract Optional<Image> image()
      The image mask to use for generating videos.
    • maskMode

      public 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

      public static VideoGenerationMask.Builder builder()
      Instantiates a builder for VideoGenerationMask.
    • toBuilder

      public abstract VideoGenerationMask.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static VideoGenerationMask fromJson(String jsonString)
      Deserializes a JSON string to a VideoGenerationMask object.