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 class
Builder for ContentEmbedding. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ContentEmbedding.Builder
builder()
Instantiates a builder for ContentEmbedding.static ContentEmbedding
Deserializes a JSON string to a ContentEmbedding object.abstract Optional<ContentEmbeddingStatistics>
Vertex API only.abstract ContentEmbedding.Builder
Creates 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
fromJsonString, 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.
-