Class GenerateVideosSource

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

public abstract class GenerateVideosSource extends JsonSerializable
A set of source input(s) for video generation.
  • Constructor Details

    • GenerateVideosSource

      public GenerateVideosSource()
  • Method Details

    • prompt

      public abstract Optional<String> prompt()
      The text prompt for generating the videos. Optional if image or video is provided.
    • image

      public abstract Optional<Image> image()
      The input image for generating the videos. Optional if prompt is provided. Not allowed if video is provided.
    • video

      public abstract Optional<Video> video()
      The input video for video extension use cases. Optional if prompt is provided. Not allowed if image is provided.
    • builder

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

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

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