Class VideoMetadata

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.VideoMetadata

public abstract class VideoMetadata extends JsonSerializable
Provides metadata for a video, including the start and end offsets for clipping and the frame rate.
  • Constructor Details

    • VideoMetadata

      public VideoMetadata()
  • Method Details

    • endOffset

      public abstract Optional<Duration> endOffset()
      Optional. The end offset of the video.
    • fps

      public 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

      public abstract Optional<Duration> startOffset()
      Optional. The start offset of the video.
    • builder

      public static VideoMetadata.Builder builder()
      Instantiates a builder for VideoMetadata.
    • toBuilder

      public abstract VideoMetadata.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static VideoMetadata fromJson(String jsonString)
      Deserializes a JSON string to a VideoMetadata object.