Package com.google.genai.types
Class ContentEmbedding
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ContentEmbedding
The embedding generated from an input content.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for ContentEmbedding. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentEmbedding.Builderbuilder()Instantiates a builder for ContentEmbedding.static ContentEmbeddingDeserializes a JSON string to a ContentEmbedding object.abstract Optional<ContentEmbeddingStatistics>Vertex API only.abstract ContentEmbedding.BuilderCreates a builder with the same values as this instance.values()A list of floats representing an embedding.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ContentEmbedding
public ContentEmbedding()
-
-
Method Details
-
values
A list of floats representing an embedding. -
statistics
Vertex API only. Statistics of the input text associated with this embedding. -
builder
Instantiates a builder for ContentEmbedding. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ContentEmbedding object.
-