Enum CredentialTypeForMetrics

java.lang.Object
java.lang.Enum<CredentialTypeForMetrics>
com.google.auth.CredentialTypeForMetrics
All Implemented Interfaces:
Serializable, Comparable<CredentialTypeForMetrics>

public enum CredentialTypeForMetrics extends Enum<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 Details

  • Field Details

    • label

      private final String label
  • Constructor Details

    • CredentialTypeForMetrics

      private CredentialTypeForMetrics(String label)
  • Method Details

    • values

      public static CredentialTypeForMetrics[] 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

      public static CredentialTypeForMetrics valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getLabel

      public String getLabel()