Package com.google.genai.types
Class SingleEmbedContentResponse
-
- All Implemented Interfaces:
public abstract class SingleEmbedContentResponse extends JsonSerializable
Config for `response` parameter.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classSingleEmbedContentResponse.BuilderBuilder for SingleEmbedContentResponse.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description SingleEmbedContentResponse()
-
Method Summary
Modifier and Type Method Description abstract Optional<ContentEmbedding>embedding()The response to the request. abstract Optional<Long>tokenCount()The error encountered while processing the request. static SingleEmbedContentResponse.Builderbuilder()Instantiates a builder for SingleEmbedContentResponse. abstract SingleEmbedContentResponse.BuildertoBuilder()Creates a builder with the same values as this instance. static SingleEmbedContentResponsefromJson(String jsonString)Deserializes a JSON string to a SingleEmbedContentResponse object. -
Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
embedding
abstract Optional<ContentEmbedding> embedding()
The response to the request.
-
tokenCount
abstract Optional<Long> tokenCount()
The error encountered while processing the request.
-
builder
static SingleEmbedContentResponse.Builder builder()
Instantiates a builder for SingleEmbedContentResponse.
-
toBuilder
abstract SingleEmbedContentResponse.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static SingleEmbedContentResponse fromJson(String jsonString)
Deserializes a JSON string to a SingleEmbedContentResponse object.
-
-
-
-