Class AuthConfigGoogleServiceAccountConfig

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

public abstract class AuthConfigGoogleServiceAccountConfig extends JsonSerializable
Config for Google Service Account Authentication.
  • Constructor Details

    • AuthConfigGoogleServiceAccountConfig

      public AuthConfigGoogleServiceAccountConfig()
  • Method Details

    • serviceAccount

      public abstract Optional<String> serviceAccount()
      Optional. The service account that the extension execution service runs as. - 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 specified service account. - If not specified, the Vertex AI Extension Service Agent will be used to execute the Extension.
    • builder

      Instantiates a builder for AuthConfigGoogleServiceAccountConfig.
    • toBuilder

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

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