Class VertexAiEmbeddingUtils.VideoBuilder

java.lang.Object
org.springframework.ai.vertexai.embedding.VertexAiEmbeddingUtils.VideoBuilder
Enclosing class:
VertexAiEmbeddingUtils

public static class VertexAiEmbeddingUtils.VideoBuilder extends Object
  • Field Details

    • videoBytes

      public byte[] videoBytes
      Video bytes to be encoded in base64 string. One of videoBytes or gcsUri.
    • gcsUri

      public String gcsUri
      The Cloud Storage location of the video on which to perform the embedding. One of videoBytes or gcsUri.
    • mimeType

      public org.springframework.util.MimeType mimeType
    • startOffsetSec

      public Integer startOffsetSec
      The start offset of the video segment in seconds. If not specified, it's calculated with max(0, endOffsetSec - 120).
    • endOffsetSec

      public Integer endOffsetSec
      The end offset of the video segment in seconds. If not specified, it's calculated with min(video length, startOffSec + 120). If both startOffSec and endOffSec are specified, endOffsetSec is adjusted to min(startOffsetSec+120, endOffsetSec).
    • intervalSec

      public Integer intervalSec
      The interval of the video the embedding will be generated. The minimum value for interval_sec is 4. If the interval is less than 4, an InvalidArgumentError is returned. There are no limitations on the maximum value of the interval. However, if the interval is larger than min(video length, 120s), it impacts the quality of the generated embeddings. Default value: 16.
  • Constructor Details

    • VideoBuilder

      public VideoBuilder()
  • Method Details