Package com.google.genai.types
Class AuthConfigOauthConfig.Builder
java.lang.Object
com.google.genai.types.AuthConfigOauthConfig.Builder
- Enclosing class:
- AuthConfigOauthConfig
Builder for AuthConfigOauthConfig.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AuthConfigOauthConfig.Builder
accessToken
(String accessToken) Setter for accessToken.abstract AuthConfigOauthConfig
build()
abstract AuthConfigOauthConfig.Builder
serviceAccount
(String serviceAccount) Setter for serviceAccount.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessToken
Setter for accessToken.accessToken: Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
-
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.
-
build
-