Class AuthConfigOauthConfig.Builder

java.lang.Object
com.google.genai.types.AuthConfigOauthConfig.Builder
Enclosing class:
AuthConfigOauthConfig

public abstract static class AuthConfigOauthConfig.Builder extends Object
Builder for AuthConfigOauthConfig.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • accessToken

      public 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.

    • serviceAccount

      public 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.

    • build

      public abstract AuthConfigOauthConfig build()