Class VertexAiEmbeddingUtils.VideoBuilder
java.lang.Object
org.springframework.ai.vertexai.embedding.VertexAiEmbeddingUtils.VideoBuilder
- Enclosing class:
- VertexAiEmbeddingUtils
-
Field Summary
Modifier and TypeFieldDescriptionThe end offset of the video segment in seconds.The Cloud Storage location of the video on which to perform the embedding.The interval of the video the embedding will be generated.org.springframework.util.MimeType
The start offset of the video segment in seconds.byte[]
Video bytes to be encoded in base64 string. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.Struct
build()
of
(org.springframework.util.MimeType mimeType) withEndOffsetSec
(Integer endOffsetSec) withGcsUri
(String gcsUri) withIntervalSec
(Integer intervalSec) withStartOffsetSec
(Integer startOffsetSec) withVideoBytes
(byte[] imageBytes) withVideoData
(Object imageData)
-
Field Details
-
videoBytes
public byte[] videoBytesVideo bytes to be encoded in base64 string. One of videoBytes or gcsUri. -
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
The start offset of the video segment in seconds. If not specified, it's calculated with max(0, endOffsetSec - 120). -
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
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
-
of
-
withVideoData
-
withVideoBytes
-
withGcsUri
-
withStartOffsetSec
-
withEndOffsetSec
-
withIntervalSec
-
build
public com.google.protobuf.Struct build()
-