Class VertexAiEmbeddingUtils.ImageBuilder
java.lang.Object
org.springframework.ai.vertexai.embedding.VertexAiEmbeddingUtils.ImageBuilder
- Enclosing class:
- VertexAiEmbeddingUtils
-
Field Summary
Modifier and TypeFieldDescriptionThe Cloud Storage location of the image to perform the embedding.byte[]
Image bytes to be encoded in a base64 string.org.springframework.util.MimeType
The MIME type of the content of the image. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.Struct
build()
of
(org.springframework.util.MimeType mimeType) withGcsUri
(String gcsUri) withImageBytes
(byte[] imageBytes) withImageData
(Object imageData)
-
Field Details
-
imageBytes
public byte[] imageBytesImage bytes to be encoded in a base64 string. -
gcsUri
The Cloud Storage location of the image to perform the embedding. One of bytesBase64Encoded or gcsUri. -
mimeType
public org.springframework.util.MimeType mimeTypeThe MIME type of the content of the image. Supported values: image/jpeg and image/png.
-
-
Constructor Details
-
ImageBuilder
public ImageBuilder()
-
-
Method Details
-
of
-
withImageData
-
withImageBytes
-
withGcsUri
-
build
public com.google.protobuf.Struct build()
-