Package com.google.genai.types
Class GenerateVideosSource
-
- All Implemented Interfaces:
public abstract class GenerateVideosSource extends JsonSerializable
A set of source input(s) for video generation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classGenerateVideosSource.BuilderBuilder for GenerateVideosSource.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description GenerateVideosSource()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>prompt()The text prompt for generating the videos. abstract Optional<Image>image()The input image for generating the videos. abstract Optional<Video>video()The input video for video extension use cases. static GenerateVideosSource.Builderbuilder()Instantiates a builder for GenerateVideosSource. abstract GenerateVideosSource.BuildertoBuilder()Creates a builder with the same values as this instance. static GenerateVideosSourcefromJson(String jsonString)Deserializes a JSON string to a GenerateVideosSource 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
-
prompt
abstract Optional<String> prompt()
The text prompt for generating the videos. Optional if image or video is provided.
-
image
abstract Optional<Image> image()
The input image for generating the videos. Optional if prompt is provided. Not allowed if video is provided.
-
video
abstract Optional<Video> video()
The input video for video extension use cases. Optional if prompt is provided. Not allowed if image is provided.
-
builder
static GenerateVideosSource.Builder builder()
Instantiates a builder for GenerateVideosSource.
-
toBuilder
abstract GenerateVideosSource.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static GenerateVideosSource fromJson(String jsonString)
Deserializes a JSON string to a GenerateVideosSource object.
-
-
-
-