Package com.google.genai.types
Class VideoGenerationReferenceImage
-
- All Implemented Interfaces:
public abstract class VideoGenerationReferenceImage extends JsonSerializable
A reference image for video generation.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classVideoGenerationReferenceImage.BuilderBuilder for VideoGenerationReferenceImage.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description VideoGenerationReferenceImage()
-
Method Summary
Modifier and Type Method Description abstract Optional<Image>image()The reference image. abstract Optional<VideoGenerationReferenceType>referenceType()The type of the reference image, which defines how the reference image will be used to generate the video. static VideoGenerationReferenceImage.Builderbuilder()Instantiates a builder for VideoGenerationReferenceImage. abstract VideoGenerationReferenceImage.BuildertoBuilder()Creates a builder with the same values as this instance. static VideoGenerationReferenceImagefromJson(String jsonString)Deserializes a JSON string to a VideoGenerationReferenceImage 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
-
referenceType
abstract Optional<VideoGenerationReferenceType> referenceType()
The type of the reference image, which defines how the reference image will be used to generate the video.
-
builder
static VideoGenerationReferenceImage.Builder builder()
Instantiates a builder for VideoGenerationReferenceImage.
-
toBuilder
abstract VideoGenerationReferenceImage.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static VideoGenerationReferenceImage fromJson(String jsonString)
Deserializes a JSON string to a VideoGenerationReferenceImage object.
-
-
-
-