Package com.google.genai.types
Class ComputeTokensResult
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ComputeTokensResult
Local tokenizer compute tokens result.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for ComputeTokensResult. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComputeTokensResult.Builder
builder()
Instantiates a builder for ComputeTokensResult.static ComputeTokensResult
Deserializes a JSON string to a ComputeTokensResult object.abstract ComputeTokensResult.Builder
Creates a builder with the same values as this instance.abstract Optional<List<TokensInfo>>
Lists of tokens info from the input.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ComputeTokensResult
public ComputeTokensResult()
-
-
Method Details
-
tokensInfo
Lists of tokens info from the input. -
builder
Instantiates a builder for ComputeTokensResult. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ComputeTokensResult object.
-