Class ApiAuthApiKeyConfig.Builder

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

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

    • Builder

      public Builder()
  • Method Details

    • apiKeySecretVersion

      public abstract ApiAuthApiKeyConfig.Builder apiKeySecretVersion(String apiKeySecretVersion)
      Setter for apiKeySecretVersion.

      apiKeySecretVersion: Required. The SecretManager secret version resource name storing API key. e.g. projects/{project}/secrets/{secret}/versions/{version}

    • apiKeyString

      public abstract ApiAuthApiKeyConfig.Builder apiKeyString(String apiKeyString)
      Setter for apiKeyString.

      apiKeyString: The API key string. Either this or `api_key_secret_version` must be set.

    • build

      public abstract ApiAuthApiKeyConfig build()