Package com.google.auth
Enum CredentialTypeForMetrics
- All Implemented Interfaces:
Serializable
,Comparable<CredentialTypeForMetrics>
Defines the different types of credentials that can be used for metrics.
Each credential type is associated with a label that is used for reporting purposes. Add new enum constant only when corresponding configs established.
Credentials with type CredentialTypeForMetrics.DO_NOT_SEND
is default value for
credential implementations that do not set type specifically. It is not expected to send metrics.
- See Also:
-
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetLabel()
static CredentialTypeForMetrics
Returns the enum constant of this type with the specified name.static CredentialTypeForMetrics[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
USER_CREDENTIALS
-
SERVICE_ACCOUNT_CREDENTIALS_AT
-
SERVICE_ACCOUNT_CREDENTIALS_JWT
-
VM_CREDENTIALS
-
IMPERSONATED_CREDENTIALS
-
DO_NOT_SEND
-
-
Field Details
-
label
-
-
Constructor Details
-
CredentialTypeForMetrics
-
-
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
-
getLabel
-