Package com.google.genai.types
Class ApiAuthApiKeyConfig.Builder
-
- All Implemented Interfaces:
public abstract class ApiAuthApiKeyConfig.BuilderBuilder for ApiAuthApiKeyConfig.
-
-
Constructor Summary
Constructors Constructor Description ApiAuthApiKeyConfig.Builder()
-
Method Summary
Modifier and Type Method Description abstract ApiAuthApiKeyConfig.BuilderapiKeySecretVersion(String apiKeySecretVersion)Setter for apiKeySecretVersion. ApiAuthApiKeyConfig.BuilderclearApiKeySecretVersion()Clears the value of apiKeySecretVersion field. abstract ApiAuthApiKeyConfig.BuilderapiKeyString(String apiKeyString)Setter for apiKeyString. ApiAuthApiKeyConfig.BuilderclearApiKeyString()Clears the value of apiKeyString field. abstract ApiAuthApiKeyConfigbuild()-
-
Method Detail
-
apiKeySecretVersion
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}
-
clearApiKeySecretVersion
@CanIgnoreReturnValue() ApiAuthApiKeyConfig.Builder clearApiKeySecretVersion()
Clears the value of apiKeySecretVersion field.
-
apiKeyString
abstract ApiAuthApiKeyConfig.Builder apiKeyString(String apiKeyString)
Setter for apiKeyString.
apiKeyString: The API key string. Either this or `api_key_secret_version` must be set.
-
clearApiKeyString
@CanIgnoreReturnValue() ApiAuthApiKeyConfig.Builder clearApiKeyString()
Clears the value of apiKeyString field.
-
build
abstract ApiAuthApiKeyConfig build()
-
-
-
-