Package com.google.genai.types
Class VideoMetadata
-
- All Implemented Interfaces:
public abstract class VideoMetadata extends JsonSerializable
Provides metadata for a video, including the start and end offsets for clipping and the frame rate.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classVideoMetadata.BuilderBuilder for VideoMetadata.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description VideoMetadata()
-
Method Summary
Modifier and Type Method Description abstract Optional<Duration>endOffset()Optional. abstract Optional<Double>fps()Optional. abstract Optional<Duration>startOffset()Optional. static VideoMetadata.Builderbuilder()Instantiates a builder for VideoMetadata. abstract VideoMetadata.BuildertoBuilder()Creates a builder with the same values as this instance. static VideoMetadatafromJson(String jsonString)Deserializes a JSON string to a VideoMetadata 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
-
fps
abstract Optional<Double> fps()
Optional. The frame rate of the video sent to the model. If not specified, the default value is 1.0. The valid range is (0.0, 24.0].
-
startOffset
abstract Optional<Duration> startOffset()
Optional. The start offset of the video.
-
builder
static VideoMetadata.Builder builder()
Instantiates a builder for VideoMetadata.
-
toBuilder
abstract VideoMetadata.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static VideoMetadata fromJson(String jsonString)
Deserializes a JSON string to a VideoMetadata object.
-
-
-
-