Class VideoResponseFormat

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

public abstract class VideoResponseFormat extends JsonSerializable
Configuration for video-specific output formatting. This data type is not supported in Gemini API.
  • Constructor Details

    • VideoResponseFormat

      public VideoResponseFormat()
  • Method Details

    • aspectRatio

      public abstract Optional<AspectRatio> aspectRatio()
      The aspect ratio for the video output.
    • delivery

      public abstract Optional<Delivery> delivery()
      Optional. Delivery mode for the generated content.
    • duration

      public abstract Optional<Duration> duration()
      Optional. The duration for the video output.
    • gcsUri

      public abstract Optional<String> gcsUri()
      Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.
    • builder

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

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

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