Package com.google.genai.types
Class GenerateVideosParameters
-
- All Implemented Interfaces:
@InternalApi() public abstract class GenerateVideosParameters extends JsonSerializable
Class that represents the parameters for generating videos.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classGenerateVideosParameters.BuilderBuilder for GenerateVideosParameters.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description GenerateVideosParameters()
-
Method Summary
Modifier and Type Method Description abstract Optional<String>model()ID of the model to use. 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. abstract Optional<GenerateVideosSource>source()A set of source input(s) for video generation. abstract Optional<GenerateVideosConfig>config()Configuration for generating videos. static GenerateVideosParameters.Builderbuilder()Instantiates a builder for GenerateVideosParameters. abstract GenerateVideosParameters.BuildertoBuilder()Creates a builder with the same values as this instance. static GenerateVideosParametersfromJson(String jsonString)Deserializes a JSON string to a GenerateVideosParameters 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
-
model
abstract Optional<String> model()
ID of the model to use. For a list of models, see `Google models `_.
-
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.
-
source
abstract Optional<GenerateVideosSource> source()
A set of source input(s) for video generation.
-
config
abstract Optional<GenerateVideosConfig> config()
Configuration for generating videos.
-
builder
static GenerateVideosParameters.Builder builder()
Instantiates a builder for GenerateVideosParameters.
-
toBuilder
abstract GenerateVideosParameters.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static GenerateVideosParameters fromJson(String jsonString)
Deserializes a JSON string to a GenerateVideosParameters object.
-
-
-
-