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.Builder
apiKeyConfig
(ApiKeyConfig apiKeyConfig) Setter for apiKeyConfig.apiKeyConfig
(ApiKeyConfig.Builder apiKeyConfigBuilder) Setter for apiKeyConfig builder.abstract AuthConfig.Builder
Setter for authType.authType
(AuthType.Known knownType) Setter for authType given a known enum.Setter for authType given a string.abstract AuthConfig
build()
abstract AuthConfig.Builder
googleServiceAccountConfig
(AuthConfigGoogleServiceAccountConfig googleServiceAccountConfig) Setter for googleServiceAccountConfig.googleServiceAccountConfig
(AuthConfigGoogleServiceAccountConfig.Builder googleServiceAccountConfigBuilder) Setter for googleServiceAccountConfig builder.abstract AuthConfig.Builder
httpBasicAuthConfig
(AuthConfigHttpBasicAuthConfig httpBasicAuthConfig) Setter for httpBasicAuthConfig.httpBasicAuthConfig
(AuthConfigHttpBasicAuthConfig.Builder httpBasicAuthConfigBuilder) Setter for httpBasicAuthConfig builder.abstract AuthConfig.Builder
oauthConfig
(AuthConfigOauthConfig oauthConfig) Setter for oauthConfig.oauthConfig
(AuthConfigOauthConfig.Builder oauthConfigBuilder) Setter for oauthConfig builder.abstract AuthConfig.Builder
oidcConfig
(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
Setter for apiKeyConfig builder.apiKeyConfig: Config for API key auth.
-
authType
Setter for authType.authType: Type of auth scheme.
-
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
public AuthConfig.Builder googleServiceAccountConfig(AuthConfigGoogleServiceAccountConfig.Builder googleServiceAccountConfigBuilder) Setter for googleServiceAccountConfig builder.googleServiceAccountConfig: Config for Google Service Account auth.
-
httpBasicAuthConfig
public abstract AuthConfig.Builder httpBasicAuthConfig(AuthConfigHttpBasicAuthConfig httpBasicAuthConfig) Setter for httpBasicAuthConfig.httpBasicAuthConfig: Config for HTTP Basic auth.
-
httpBasicAuthConfig
public AuthConfig.Builder httpBasicAuthConfig(AuthConfigHttpBasicAuthConfig.Builder httpBasicAuthConfigBuilder) Setter for httpBasicAuthConfig builder.httpBasicAuthConfig: Config for HTTP Basic auth.
-
oauthConfig
Setter for oauthConfig.oauthConfig: Config for user oauth.
-
oauthConfig
Setter for oauthConfig builder.oauthConfig: Config for user oauth.
-
oidcConfig
Setter for oidcConfig.oidcConfig: Config for user OIDC auth.
-
oidcConfig
Setter for oidcConfig builder.oidcConfig: Config for user OIDC auth.
-
build
-