Package com.google.genai.types
Enum AuthType.Known
- All Implemented Interfaces:
Serializable
,Comparable<AuthType.Known>
- Enclosing class:
- AuthType
Enum representing the known values for AuthType.
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAPI Key Auth.Google Service Account Auth.HTTP Basic Auth.No Auth.OAuth auth.OpenID Connect (OIDC) Auth. -
Method Summary
Modifier and TypeMethodDescriptionstatic AuthType.Known
Returns the enum constant of this type with the specified name.static AuthType.Known[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
AUTH_TYPE_UNSPECIFIED
-
NO_AUTH
No Auth. -
API_KEY_AUTH
API Key Auth. -
HTTP_BASIC_AUTH
HTTP Basic Auth. -
GOOGLE_SERVICE_ACCOUNT_AUTH
Google Service Account Auth. -
OAUTH
OAuth auth. -
OIDC_AUTH
OpenID Connect (OIDC) Auth.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-