Package com.google.genai.types
Class ContentEmbeddingStatistics
-
- All Implemented Interfaces:
public abstract class ContentEmbeddingStatistics extends JsonSerializable
Statistics of the input text associated with the result of content embedding.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public abstract classContentEmbeddingStatistics.BuilderBuilder for ContentEmbeddingStatistics.
-
Field Summary
Fields Modifier and Type Field Description public final static StringMAX_READ_LENGTH_PROPERTY
-
Constructor Summary
Constructors Constructor Description ContentEmbeddingStatistics()
-
Method Summary
Modifier and Type Method Description abstract Optional<Boolean>truncated()Gemini Enterprise Agent Platform only. abstract Optional<Float>tokenCount()Gemini Enterprise Agent Platform only. static ContentEmbeddingStatistics.Builderbuilder()Instantiates a builder for ContentEmbeddingStatistics. abstract ContentEmbeddingStatistics.BuildertoBuilder()Creates a builder with the same values as this instance. static ContentEmbeddingStatisticsfromJson(String jsonString)Deserializes a JSON string to a ContentEmbeddingStatistics 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
-
truncated
abstract Optional<Boolean> truncated()
Gemini Enterprise Agent Platform only. If the input text was truncated due to having a length longer than the allowed maximum input.
-
tokenCount
abstract Optional<Float> tokenCount()
Gemini Enterprise Agent Platform only. Number of tokens of the input text.
-
builder
static ContentEmbeddingStatistics.Builder builder()
Instantiates a builder for ContentEmbeddingStatistics.
-
toBuilder
abstract ContentEmbeddingStatistics.Builder toBuilder()
Creates a builder with the same values as this instance.
-
fromJson
static ContentEmbeddingStatistics fromJson(String jsonString)
Deserializes a JSON string to a ContentEmbeddingStatistics object.
-
-
-
-