Class VideoMetadata

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

public abstract class VideoMetadata extends JsonSerializable
Describes how the video in the Part should be used by the model.
  • Constructor Details

    • VideoMetadata

      public VideoMetadata()
  • Method Details

    • fps

      public abstract Optional<Double> fps()
      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].
    • endOffset

      public abstract Optional<Duration> endOffset()
      Optional. The end offset of the video.
    • 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.