Package com.google.genai.types
Class ContentEmbeddingStatistics
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ContentEmbeddingStatistics
Statistics of the input text associated with the result of content embedding.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for ContentEmbeddingStatistics. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for ContentEmbeddingStatistics.static ContentEmbeddingStatistics
Deserializes a JSON string to a ContentEmbeddingStatistics object.abstract ContentEmbeddingStatistics.Builder
Creates a builder with the same values as this instance.Vertex API only.Vertex API only.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ContentEmbeddingStatistics
public ContentEmbeddingStatistics()
-
-
Method Details
-
truncated
Vertex API only. If the input text was truncated due to having a length longer than the allowed maximum input. -
tokenCount
Vertex API only. Number of tokens of the input text. -
builder
Instantiates a builder for ContentEmbeddingStatistics. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ContentEmbeddingStatistics object.
-