Package com.google.genai.types
Class CreateAuthTokenConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CreateAuthTokenConfig
Optional parameters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder for CreateAuthTokenConfig. -
Field Summary
Fields inherited from class com.google.genai.JsonSerializable
MAX_READ_LENGTH_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Instantiates a builder for CreateAuthTokenConfig.An optional time after which, when using the resulting token, messages in Live API sessions will be rejected.static CreateAuthTokenConfigDeserializes a JSON string to a CreateAuthTokenConfig object.abstract Optional<HttpOptions>Used to override HTTP request options.abstract Optional<LiveConnectConstraints>Configuration specific to Live API connections created using this token.Additional fields to lock in the effective LiveConnectParameters.The time after which new Live API sessions using the token resulting from this request will be rejected.abstract CreateAuthTokenConfig.BuilderCreates a builder with the same values as this instance.uses()The number of times the token can be used.Methods inherited from class com.google.genai.JsonSerializable
fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
-
Constructor Details
-
CreateAuthTokenConfig
public CreateAuthTokenConfig()
-
-
Method Details
-
httpOptions
Used to override HTTP request options. -
expireTime
An optional time after which, when using the resulting token, messages in Live API sessions will be rejected. (Gemini may preemptively close the session after this time.)If not set then this defaults to 30 minutes in the future. If set, this value must be less than 20 hours in the future.
-
newSessionExpireTime
The time after which new Live API sessions using the token resulting from this request will be rejected.If not set this defaults to 60 seconds in the future. If set, this value must be less than 20 hours in the future.
-
uses
The number of times the token can be used. If this value is zero then no limit is applied. Default is 1. Resuming a Live API session does not count as a use. -
liveConnectConstraints
Configuration specific to Live API connections created using this token. -
lockAdditionalFields
Additional fields to lock in the effective LiveConnectParameters. -
builder
Instantiates a builder for CreateAuthTokenConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a CreateAuthTokenConfig object.
-