Class AuthConfigOauthConfig

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.AuthConfigOauthConfig

public abstract class AuthConfigOauthConfig extends JsonSerializable
Config for user oauth.
  • Constructor Details

    • AuthConfigOauthConfig

      public AuthConfigOauthConfig()
  • Method Details

    • accessToken

      public abstract Optional<String> accessToken()
      Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.
    • serviceAccount

      public abstract Optional<String> 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.
    • builder

      public static AuthConfigOauthConfig.Builder builder()
      Instantiates a builder for AuthConfigOauthConfig.
    • toBuilder

      public abstract AuthConfigOauthConfig.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static AuthConfigOauthConfig fromJson(String jsonString)
      Deserializes a JSON string to a AuthConfigOauthConfig object.