Package com.google.genai.types
Class VideoMetadata
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.VideoMetadata
Metadata describes the input video content.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic VideoMetadata.Builderbuilder()Instantiates a builder for VideoMetadata.Optional.fps()Optional.static VideoMetadataDeserializes a JSON string to a VideoMetadata object.Optional.abstract VideoMetadata.BuilderCreates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
setMaxReadLength, stringToJsonNode, toJson
-
Constructor Details
-
VideoMetadata
public VideoMetadata()
-
-
Method Details
-
endOffset
Optional. The end offset of the video. -
fps
Optional. The frame rate of the video sent to the model. If not specified, the default value will be 1.0. The fps range is (0.0, 24.0]. -
startOffset
Optional. The start offset of the video. -
builder
Instantiates a builder for VideoMetadata. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a VideoMetadata object.
-