Class VideoResponseFormat.Builder

java.lang.Object
com.google.genai.types.VideoResponseFormat.Builder
Enclosing class:
VideoResponseFormat

public abstract static class VideoResponseFormat.Builder extends Object
Builder for VideoResponseFormat.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • aspectRatio

      public abstract VideoResponseFormat.Builder aspectRatio(AspectRatio aspectRatio)
      Setter for aspectRatio.

      aspectRatio: The aspect ratio for the video output.

    • clearAspectRatio

      @CanIgnoreReturnValue public VideoResponseFormat.Builder clearAspectRatio()
      Clears the value of aspectRatio field.
    • aspectRatio

      @CanIgnoreReturnValue public VideoResponseFormat.Builder aspectRatio(AspectRatio.Known knownType)
      Setter for aspectRatio given a known enum.

      aspectRatio: The aspect ratio for the video output.

    • aspectRatio

      @CanIgnoreReturnValue public VideoResponseFormat.Builder aspectRatio(String aspectRatio)
      Setter for aspectRatio given a string.

      aspectRatio: The aspect ratio for the video output.

    • delivery

      public abstract VideoResponseFormat.Builder delivery(Delivery delivery)
      Setter for delivery.

      delivery: Optional. Delivery mode for the generated content.

    • clearDelivery

      @CanIgnoreReturnValue public VideoResponseFormat.Builder clearDelivery()
      Clears the value of delivery field.
    • delivery

      @CanIgnoreReturnValue public VideoResponseFormat.Builder delivery(Delivery.Known knownType)
      Setter for delivery given a known enum.

      delivery: Optional. Delivery mode for the generated content.

    • delivery

      @CanIgnoreReturnValue public VideoResponseFormat.Builder delivery(String delivery)
      Setter for delivery given a string.

      delivery: Optional. Delivery mode for the generated content.

    • duration

      public abstract VideoResponseFormat.Builder duration(Duration duration)
      Setter for duration.

      duration: Optional. The duration for the video output.

    • clearDuration

      @CanIgnoreReturnValue public VideoResponseFormat.Builder clearDuration()
      Clears the value of duration field.
    • gcsUri

      public abstract VideoResponseFormat.Builder gcsUri(String gcsUri)
      Setter for gcsUri.

      gcsUri: Optional. The Google Cloud Storage URI to store the video output. Required for Vertex if delivery is URI.

    • clearGcsUri

      @CanIgnoreReturnValue public VideoResponseFormat.Builder clearGcsUri()
      Clears the value of gcsUri field.
    • resolution

      public abstract VideoResponseFormat.Builder resolution(String resolution)
      Setter for resolution.

      resolution: Optional. The video output resolution. Supported values: "360p", "720p", "1080p", "4k".

    • clearResolution

      @CanIgnoreReturnValue public VideoResponseFormat.Builder clearResolution()
      Clears the value of resolution field.
    • build

      public abstract VideoResponseFormat build()