Package com.google.genai.types
Class AuthConfig
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.AuthConfig
Auth configuration to run the extension.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Optional<ApiKeyConfig>
Config for API key auth.authType()
Type of auth scheme.static AuthConfig.Builder
builder()
Instantiates a builder for AuthConfig.static AuthConfig
Deserializes a JSON string to a AuthConfig object.abstract Optional<AuthConfigGoogleServiceAccountConfig>
Config for Google Service Account auth.abstract Optional<AuthConfigHttpBasicAuthConfig>
Config for HTTP Basic auth.abstract Optional<AuthConfigOauthConfig>
Config for user oauth.abstract Optional<AuthConfigOidcConfig>
Config for user OIDC auth.abstract AuthConfig.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
AuthConfig
public AuthConfig()
-
-
Method Details
-
apiKeyConfig
Config for API key auth. -
authType
Type of auth scheme. -
googleServiceAccountConfig
Config for Google Service Account auth. -
httpBasicAuthConfig
Config for HTTP Basic auth. -
oauthConfig
Config for user oauth. -
oidcConfig
Config for user OIDC auth. -
builder
Instantiates a builder for AuthConfig. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a AuthConfig object.
-