Class AuthToken.Builder
- Enclosing class:
- AuthToken
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AuthTokenbuild()Clears the value of expireTime field.Clears the value of name field.Clears the value of newSessionExpireTime field.Clears the value of uses field.abstract AuthToken.BuilderexpireTime(String expireTime) Setter for expireTime.abstract AuthToken.BuilderSetter for name.abstract AuthToken.BuildernewSessionExpireTime(String newSessionExpireTime) Setter for newSessionExpireTime.abstract AuthToken.BuilderSetter for uses.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
name
Setter for name.name: The name of the auth token.
-
clearName
Clears the value of name field. -
expireTime
Setter for expireTime.expireTime: Optional. Input only. Immutable. An optional time after which, when using the resulting token, messages in BidiGenerateContent 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.
-
clearExpireTime
Clears the value of expireTime field. -
newSessionExpireTime
Setter for newSessionExpireTime.newSessionExpireTime: Optional. Input only. Immutable. 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.
-
clearNewSessionExpireTime
Clears the value of newSessionExpireTime field. -
uses
Setter for uses.uses: Optional. Input only. Immutable. The number of times the token can be used. If this value is zero then no limit is applied. Resuming a Live API session does not count as a use. If unspecified, the default is 1.
-
clearUses
Clears the value of uses field. -
build
-