Package com.google.genai.types
Class ContentEmbeddingStatistics.Builder
-
- All Implemented Interfaces:
public abstract class ContentEmbeddingStatistics.BuilderBuilder for ContentEmbeddingStatistics.
-
-
Constructor Summary
Constructors Constructor Description ContentEmbeddingStatistics.Builder()
-
Method Summary
Modifier and Type Method Description abstract ContentEmbeddingStatistics.Buildertruncated(boolean truncated)Setter for truncated. ContentEmbeddingStatistics.BuilderclearTruncated()Clears the value of truncated field. abstract ContentEmbeddingStatistics.BuildertokenCount(Float tokenCount)Setter for tokenCount. ContentEmbeddingStatistics.BuilderclearTokenCount()Clears the value of tokenCount field. abstract ContentEmbeddingStatisticsbuild()-
-
Method Detail
-
truncated
abstract ContentEmbeddingStatistics.Builder truncated(boolean 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
@CanIgnoreReturnValue() ContentEmbeddingStatistics.Builder clearTruncated()
Clears the value of truncated field.
-
tokenCount
abstract ContentEmbeddingStatistics.Builder tokenCount(Float tokenCount)
Setter for tokenCount.
tokenCount: Gemini Enterprise Agent Platform only. Number of tokens of the input text.
-
clearTokenCount
@CanIgnoreReturnValue() ContentEmbeddingStatistics.Builder clearTokenCount()
Clears the value of tokenCount field.
-
build
abstract ContentEmbeddingStatistics build()
-
-
-
-