Class CreateAuthTokenConfig.Builder
-
- All Implemented Interfaces:
public abstract class CreateAuthTokenConfig.BuilderBuilder for CreateAuthTokenConfig.
-
-
Constructor Summary
Constructors Constructor Description CreateAuthTokenConfig.Builder()
-
Method Summary
Modifier and Type Method Description abstract CreateAuthTokenConfig.BuilderhttpOptions(HttpOptions httpOptions)Setter for httpOptions. CreateAuthTokenConfig.BuilderhttpOptions(HttpOptions.Builder httpOptionsBuilder)Setter for httpOptions builder. CreateAuthTokenConfig.BuilderclearHttpOptions()Clears the value of httpOptions field. abstract CreateAuthTokenConfig.BuilderexpireTime(Instant expireTime)Setter for expireTime. CreateAuthTokenConfig.BuilderclearExpireTime()Clears the value of expireTime field. abstract CreateAuthTokenConfig.BuildernewSessionExpireTime(Instant newSessionExpireTime)Setter for newSessionExpireTime. CreateAuthTokenConfig.BuilderclearNewSessionExpireTime()Clears the value of newSessionExpireTime field. abstract CreateAuthTokenConfig.Builderuses(Integer uses)Setter for uses. CreateAuthTokenConfig.BuilderclearUses()Clears the value of uses field. abstract CreateAuthTokenConfig.BuilderliveConnectConstraints(LiveConnectConstraints liveConnectConstraints)Setter for liveConnectConstraints. CreateAuthTokenConfig.BuilderliveConnectConstraints(LiveConnectConstraints.Builder liveConnectConstraintsBuilder)Setter for liveConnectConstraints builder. CreateAuthTokenConfig.BuilderclearLiveConnectConstraints()Clears the value of liveConnectConstraints field. abstract CreateAuthTokenConfig.BuilderlockAdditionalFields(List<String> lockAdditionalFields)Setter for lockAdditionalFields. CreateAuthTokenConfig.BuilderlockAdditionalFields(Array<String> lockAdditionalFields)Setter for lockAdditionalFields. CreateAuthTokenConfig.BuilderclearLockAdditionalFields()Clears the value of lockAdditionalFields field. abstract CreateAuthTokenConfigbuild()-
-
Method Detail
-
httpOptions
abstract CreateAuthTokenConfig.Builder httpOptions(HttpOptions httpOptions)
Setter for httpOptions.
httpOptions: Used to override HTTP request options.
-
httpOptions
@CanIgnoreReturnValue() CreateAuthTokenConfig.Builder httpOptions(HttpOptions.Builder httpOptionsBuilder)
Setter for httpOptions builder.
httpOptions: Used to override HTTP request options.
-
clearHttpOptions
@CanIgnoreReturnValue() CreateAuthTokenConfig.Builder clearHttpOptions()
Clears the value of httpOptions field.
-
expireTime
abstract CreateAuthTokenConfig.Builder expireTime(Instant expireTime)
Setter for expireTime.
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.
-
clearExpireTime
@CanIgnoreReturnValue() CreateAuthTokenConfig.Builder clearExpireTime()
Clears the value of expireTime field.
-
newSessionExpireTime
abstract CreateAuthTokenConfig.Builder newSessionExpireTime(Instant newSessionExpireTime)
Setter for newSessionExpireTime.
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.
-
clearNewSessionExpireTime
@CanIgnoreReturnValue() CreateAuthTokenConfig.Builder clearNewSessionExpireTime()
Clears the value of newSessionExpireTime field.
-
uses
abstract CreateAuthTokenConfig.Builder uses(Integer uses)
Setter for uses.
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.
-
clearUses
@CanIgnoreReturnValue() CreateAuthTokenConfig.Builder clearUses()
Clears the value of uses field.
-
liveConnectConstraints
abstract CreateAuthTokenConfig.Builder liveConnectConstraints(LiveConnectConstraints liveConnectConstraints)
Setter for liveConnectConstraints.
liveConnectConstraints: Configuration specific to Live API connections created using this token.
-
liveConnectConstraints
@CanIgnoreReturnValue() CreateAuthTokenConfig.Builder liveConnectConstraints(LiveConnectConstraints.Builder liveConnectConstraintsBuilder)
Setter for liveConnectConstraints builder.
liveConnectConstraints: Configuration specific to Live API connections created using this token.
-
clearLiveConnectConstraints
@CanIgnoreReturnValue() CreateAuthTokenConfig.Builder clearLiveConnectConstraints()
Clears the value of liveConnectConstraints field.
-
lockAdditionalFields
abstract CreateAuthTokenConfig.Builder lockAdditionalFields(List<String> lockAdditionalFields)
Setter for lockAdditionalFields.
lockAdditionalFields: Additional fields to lock in the effective LiveConnectParameters.
-
lockAdditionalFields
@CanIgnoreReturnValue() CreateAuthTokenConfig.Builder lockAdditionalFields(Array<String> lockAdditionalFields)
Setter for lockAdditionalFields.
lockAdditionalFields: Additional fields to lock in the effective LiveConnectParameters.
-
clearLockAdditionalFields
@CanIgnoreReturnValue() CreateAuthTokenConfig.Builder clearLockAdditionalFields()
Clears the value of lockAdditionalFields field.
-
build
abstract CreateAuthTokenConfig build()
-
-
-
-