Package com.google.genai.types
Class AuthConfigOauthConfig.Builder
-
- All Implemented Interfaces:
public abstract class AuthConfigOauthConfig.BuilderBuilder for AuthConfigOauthConfig.
-
-
Constructor Summary
Constructors Constructor Description AuthConfigOauthConfig.Builder()
-
Method Summary
Modifier and Type Method Description abstract AuthConfigOauthConfig.BuilderaccessToken(String accessToken)Setter for accessToken. AuthConfigOauthConfig.BuilderclearAccessToken()Clears the value of accessToken field. abstract AuthConfigOauthConfig.BuilderserviceAccount(String serviceAccount)Setter for serviceAccount. AuthConfigOauthConfig.BuilderclearServiceAccount()Clears the value of serviceAccount field. abstract AuthConfigOauthConfigbuild()-
-
Method Detail
-
accessToken
abstract AuthConfigOauthConfig.Builder accessToken(String accessToken)
Setter for accessToken.
accessToken: Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
-
clearAccessToken
@CanIgnoreReturnValue() AuthConfigOauthConfig.Builder clearAccessToken()
Clears the value of accessToken field.
-
serviceAccount
abstract AuthConfigOauthConfig.Builder serviceAccount(String serviceAccount)
Setter for serviceAccount.
serviceAccount: The service account used to generate access tokens for executing the Extension. - If the service account is specified, the `iam.serviceAccounts.getAccessToken` permission should be granted to Vertex AI Extension Service Agent (https://cloud.google.com/vertex-ai/docs/general/access-control#service-agents) on the provided service account.
-
clearServiceAccount
@CanIgnoreReturnValue() AuthConfigOauthConfig.Builder clearServiceAccount()
Clears the value of serviceAccount field.
-
build
abstract AuthConfigOauthConfig build()
-
-
-
-