Package com.google.genai.types
Class SingleEmbedContentResponse
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.SingleEmbedContentResponse
Config for `response` parameter.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for SingleEmbedContentResponse. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for SingleEmbedContentResponse.abstract Optional<ContentEmbedding>
The response to the request.static SingleEmbedContentResponse
Deserializes a JSON string to a SingleEmbedContentResponse object.abstract SingleEmbedContentResponse.Builder
Creates a builder with the same values as this instance.The error encountered while processing the request.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
SingleEmbedContentResponse
public SingleEmbedContentResponse()
-
-
Method Details
-
embedding
The response to the request. -
tokenCount
The error encountered while processing the request. -
builder
Instantiates a builder for SingleEmbedContentResponse. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a SingleEmbedContentResponse object.
-