Package com.google.genai.types
Class GenerateVideosSource
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GenerateVideosSource
A set of source input(s) for video generation.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for GenerateVideosSource. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic GenerateVideosSource.Builder
builder()
Instantiates a builder for GenerateVideosSource.static GenerateVideosSource
Deserializes a JSON string to a GenerateVideosSource object.image()
The input image for generating the videos.prompt()
The text prompt for generating the videos.abstract GenerateVideosSource.Builder
Creates a builder with the same values as this instance.video()
The input video for video extension use cases.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GenerateVideosSource
public GenerateVideosSource()
-
-
Method Details
-
prompt
The text prompt for generating the videos. Optional if image or video is provided. -
image
The input image for generating the videos. Optional if prompt is provided. Not allowed if video is provided. -
video
The input video for video extension use cases. Optional if prompt is provided. Not allowed if image is provided. -
builder
Instantiates a builder for GenerateVideosSource. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GenerateVideosSource object.
-