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()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
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
-