public enum CredentialTypeForMetrics extends Enum<CredentialTypeForMetrics>
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.
getLabel()| Enum Constant and Description |
|---|
DO_NOT_SEND |
IMPERSONATED_CREDENTIALS |
SERVICE_ACCOUNT_CREDENTIALS_AT |
SERVICE_ACCOUNT_CREDENTIALS_JWT |
USER_CREDENTIALS |
VM_CREDENTIALS |
| Modifier and Type | Method and Description |
|---|---|
String |
getLabel() |
static CredentialTypeForMetrics |
valueOf(String name)
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.
|
public static final CredentialTypeForMetrics USER_CREDENTIALS
public static final CredentialTypeForMetrics SERVICE_ACCOUNT_CREDENTIALS_AT
public static final CredentialTypeForMetrics SERVICE_ACCOUNT_CREDENTIALS_JWT
public static final CredentialTypeForMetrics VM_CREDENTIALS
public static final CredentialTypeForMetrics IMPERSONATED_CREDENTIALS
public static final CredentialTypeForMetrics DO_NOT_SEND
public static CredentialTypeForMetrics[] values()
for (CredentialTypeForMetrics c : CredentialTypeForMetrics.values()) System.out.println(c);
public static CredentialTypeForMetrics valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getLabel()
Copyright © 2026 Google. All rights reserved.