Package com.google.genai.types
Class ContentEmbeddingStatistics.Builder
java.lang.Object
com.google.genai.types.ContentEmbeddingStatistics.Builder
- Enclosing class:
- ContentEmbeddingStatistics
Builder for ContentEmbeddingStatistics.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract ContentEmbeddingStatisticsbuild()Clears the value of tokenCount field.Clears the value of tokensDetails field.Clears the value of truncated field.abstract ContentEmbeddingStatistics.BuildertokenCount(Float tokenCount) Setter for tokenCount.tokensDetails(ModalityTokenCount... tokensDetails) Setter for tokensDetails.tokensDetails(ModalityTokenCount.Builder... tokensDetailsBuilders) Setter for tokensDetails builder.abstract ContentEmbeddingStatistics.BuildertokensDetails(List<ModalityTokenCount> tokensDetails) Setter for tokensDetails.abstract ContentEmbeddingStatistics.Buildertruncated(boolean truncated) Setter for truncated.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
truncated
Setter for truncated.truncated: Gemini Enterprise Agent Platform only. If the input text was truncated due to having a length longer than the allowed maximum input.
-
clearTruncated
Clears the value of truncated field. -
tokenCount
Setter for tokenCount.tokenCount: Gemini Enterprise Agent Platform only. Number of tokens of the input text.
-
clearTokenCount
Clears the value of tokenCount field. -
tokensDetails
public abstract ContentEmbeddingStatistics.Builder tokensDetails(List<ModalityTokenCount> tokensDetails) Setter for tokensDetails.tokensDetails: Gemini Enterprise Agent Platform only. List of modalities and their token count for the input content.
-
tokensDetails
@CanIgnoreReturnValue public ContentEmbeddingStatistics.Builder tokensDetails(ModalityTokenCount... tokensDetails) Setter for tokensDetails.tokensDetails: Gemini Enterprise Agent Platform only. List of modalities and their token count for the input content.
-
tokensDetails
@CanIgnoreReturnValue public ContentEmbeddingStatistics.Builder tokensDetails(ModalityTokenCount.Builder... tokensDetailsBuilders) Setter for tokensDetails builder.tokensDetails: Gemini Enterprise Agent Platform only. List of modalities and their token count for the input content.
-
clearTokensDetails
Clears the value of tokensDetails field. -
build
-