Package com.google.genai.types
Class ComputeTokensConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.ComputeTokensConfig
Optional parameters for computing tokens.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for ComputeTokensConfig. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ComputeTokensConfig.Builder
builder()
Instantiates a builder for ComputeTokensConfig.static ComputeTokensConfig
Deserializes a JSON string to a ComputeTokensConfig object.abstract Optional<HttpOptions>
Used to override HTTP request options.abstract ComputeTokensConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
ComputeTokensConfig
public ComputeTokensConfig()
-
-
Method Details
-
httpOptions
Used to override HTTP request options. -
builder
Instantiates a builder for ComputeTokensConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a ComputeTokensConfig object.
-