Package com.google.genai.types
Class AuthConfig.Builder
java.lang.Object
com.google.genai.types.AuthConfig.Builder
- Enclosing class:
- AuthConfig
Builder for AuthConfig.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract AuthConfig.BuilderapiKeyConfig(ApiKeyConfig apiKeyConfig) Setter for apiKeyConfig.apiKeyConfig(ApiKeyConfig.Builder apiKeyConfigBuilder) Setter for apiKeyConfig builder.abstract AuthConfig.BuilderSetter for authType.authType(AuthType.Known knownType) Setter for authType given a known enum.Setter for authType given a string.abstract AuthConfigbuild()Clears the value of apiKeyConfig field.Clears the value of authType field.Clears the value of googleServiceAccountConfig field.Clears the value of httpBasicAuthConfig field.Clears the value of oauthConfig field.Clears the value of oidcConfig field.abstract AuthConfig.BuildergoogleServiceAccountConfig(AuthConfigGoogleServiceAccountConfig googleServiceAccountConfig) Setter for googleServiceAccountConfig.googleServiceAccountConfig(AuthConfigGoogleServiceAccountConfig.Builder googleServiceAccountConfigBuilder) Setter for googleServiceAccountConfig builder.abstract AuthConfig.BuilderhttpBasicAuthConfig(AuthConfigHttpBasicAuthConfig httpBasicAuthConfig) Setter for httpBasicAuthConfig.httpBasicAuthConfig(AuthConfigHttpBasicAuthConfig.Builder httpBasicAuthConfigBuilder) Setter for httpBasicAuthConfig builder.abstract AuthConfig.BuilderoauthConfig(AuthConfigOauthConfig oauthConfig) Setter for oauthConfig.oauthConfig(AuthConfigOauthConfig.Builder oauthConfigBuilder) Setter for oauthConfig builder.abstract AuthConfig.BuilderoidcConfig(AuthConfigOidcConfig oidcConfig) Setter for oidcConfig.oidcConfig(AuthConfigOidcConfig.Builder oidcConfigBuilder) Setter for oidcConfig builder.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
apiKeyConfig
Setter for apiKeyConfig.apiKeyConfig: Config for API key auth.
-
apiKeyConfig
@CanIgnoreReturnValue public AuthConfig.Builder apiKeyConfig(ApiKeyConfig.Builder apiKeyConfigBuilder) Setter for apiKeyConfig builder.apiKeyConfig: Config for API key auth.
-
clearApiKeyConfig
Clears the value of apiKeyConfig field. -
authType
Setter for authType.authType: Type of auth scheme.
-
clearAuthType
Clears the value of authType field. -
authType
Setter for authType given a known enum.authType: Type of auth scheme.
-
authType
Setter for authType given a string.authType: Type of auth scheme.
-
googleServiceAccountConfig
public abstract AuthConfig.Builder googleServiceAccountConfig(AuthConfigGoogleServiceAccountConfig googleServiceAccountConfig) Setter for googleServiceAccountConfig.googleServiceAccountConfig: Config for Google Service Account auth.
-
googleServiceAccountConfig
@CanIgnoreReturnValue public AuthConfig.Builder googleServiceAccountConfig(AuthConfigGoogleServiceAccountConfig.Builder googleServiceAccountConfigBuilder) Setter for googleServiceAccountConfig builder.googleServiceAccountConfig: Config for Google Service Account auth.
-
clearGoogleServiceAccountConfig
Clears the value of googleServiceAccountConfig field. -
httpBasicAuthConfig
public abstract AuthConfig.Builder httpBasicAuthConfig(AuthConfigHttpBasicAuthConfig httpBasicAuthConfig) Setter for httpBasicAuthConfig.httpBasicAuthConfig: Config for HTTP Basic auth.
-
httpBasicAuthConfig
@CanIgnoreReturnValue public AuthConfig.Builder httpBasicAuthConfig(AuthConfigHttpBasicAuthConfig.Builder httpBasicAuthConfigBuilder) Setter for httpBasicAuthConfig builder.httpBasicAuthConfig: Config for HTTP Basic auth.
-
clearHttpBasicAuthConfig
Clears the value of httpBasicAuthConfig field. -
oauthConfig
Setter for oauthConfig.oauthConfig: Config for user oauth.
-
oauthConfig
@CanIgnoreReturnValue public AuthConfig.Builder oauthConfig(AuthConfigOauthConfig.Builder oauthConfigBuilder) Setter for oauthConfig builder.oauthConfig: Config for user oauth.
-
clearOauthConfig
Clears the value of oauthConfig field. -
oidcConfig
Setter for oidcConfig.oidcConfig: Config for user OIDC auth.
-
oidcConfig
@CanIgnoreReturnValue public AuthConfig.Builder oidcConfig(AuthConfigOidcConfig.Builder oidcConfigBuilder) Setter for oidcConfig builder.oidcConfig: Config for user OIDC auth.
-
clearOidcConfig
Clears the value of oidcConfig field. -
build
-