Class AuthConfigOauthConfig

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class AuthConfigOauthConfig.Builder

      Builder for AuthConfigOauthConfig.

    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<String> accessToken() Access token for extension endpoint.
      abstract Optional<String> serviceAccount() The service account used to generate access tokens for executing the Extension.
      static AuthConfigOauthConfig.Builder builder() Instantiates a builder for AuthConfigOauthConfig.
      abstract AuthConfigOauthConfig.Builder toBuilder() Creates a builder with the same values as this instance.
      static AuthConfigOauthConfig fromJson(String jsonString) Deserializes a JSON string to a AuthConfigOauthConfig object.
      • Methods inherited from class com.google.genai.JsonSerializable

        fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AuthConfigOauthConfig

        AuthConfigOauthConfig()
    • Method Detail

      • accessToken

         abstract Optional<String> accessToken()

        Access token for extension endpoint. Only used to propagate token from [[ExecuteExtensionRequest.runtime_auth_config]] at request time.

      • serviceAccount

         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.