Package com.google.genai.types
Class EmbedContentResponse
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.EmbedContentResponse
Response for the embed_content method.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for EmbedContentResponse. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic EmbedContentResponse.Builder
builder()
Instantiates a builder for EmbedContentResponse.abstract Optional<List<ContentEmbedding>>
The embeddings for each request, in the same order as provided in the batch request.static EmbedContentResponse
Deserializes a JSON string to a EmbedContentResponse object.abstract Optional<EmbedContentMetadata>
metadata()
Vertex API only.abstract Optional<HttpResponse>
Used to retain the full HTTP response.abstract EmbedContentResponse.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
EmbedContentResponse
public EmbedContentResponse()
-
-
Method Details
-
sdkHttpResponse
Used to retain the full HTTP response. -
embeddings
The embeddings for each request, in the same order as provided in the batch request. -
metadata
Vertex API only. Metadata about the request. -
builder
Instantiates a builder for EmbedContentResponse. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a EmbedContentResponse object.
-