Enum CustomMetric.MeasurementUnit

java.lang.Object
java.lang.Enum<CustomMetric.MeasurementUnit>
com.google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<CustomMetric.MeasurementUnit>
Enclosing class:
CustomMetric

public static enum CustomMetric.MeasurementUnit extends Enum<CustomMetric.MeasurementUnit> implements com.google.protobuf.ProtocolMessageEnum
 Possible types of representing the custom metric's value.

 Currency representation may change in the future, requiring a breaking API
 change.
 
Protobuf enum google.analytics.admin.v1alpha.CustomMetric.MeasurementUnit
  • Enum Constant Details

  • Field Details

    • MEASUREMENT_UNIT_UNSPECIFIED_VALUE

      public static final int MEASUREMENT_UNIT_UNSPECIFIED_VALUE
       MeasurementUnit unspecified or missing.
       
      MEASUREMENT_UNIT_UNSPECIFIED = 0;
      See Also:
    • STANDARD_VALUE

      public static final int STANDARD_VALUE
       This metric uses default units.
       
      STANDARD = 1;
      See Also:
    • CURRENCY_VALUE

      public static final int CURRENCY_VALUE
       This metric measures a currency.
       
      CURRENCY = 2;
      See Also:
    • FEET_VALUE

      public static final int FEET_VALUE
       This metric measures feet.
       
      FEET = 3;
      See Also:
    • METERS_VALUE

      public static final int METERS_VALUE
       This metric measures meters.
       
      METERS = 4;
      See Also:
    • KILOMETERS_VALUE

      public static final int KILOMETERS_VALUE
       This metric measures kilometers.
       
      KILOMETERS = 5;
      See Also:
    • MILES_VALUE

      public static final int MILES_VALUE
       This metric measures miles.
       
      MILES = 6;
      See Also:
    • MILLISECONDS_VALUE

      public static final int MILLISECONDS_VALUE
       This metric measures milliseconds.
       
      MILLISECONDS = 7;
      See Also:
    • SECONDS_VALUE

      public static final int SECONDS_VALUE
       This metric measures seconds.
       
      SECONDS = 8;
      See Also:
    • MINUTES_VALUE

      public static final int MINUTES_VALUE
       This metric measures minutes.
       
      MINUTES = 9;
      See Also:
    • HOURS_VALUE

      public static final int HOURS_VALUE
       This metric measures hours.
       
      HOURS = 10;
      See Also:
  • Method Details

    • values

      public static CustomMetric.MeasurementUnit[] 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 CustomMetric.MeasurementUnit 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
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static CustomMetric.MeasurementUnit valueOf(int value)
      Deprecated.
      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:
      value - 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
    • forNumber

      public static CustomMetric.MeasurementUnit forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<CustomMetric.MeasurementUnit> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static CustomMetric.MeasurementUnit valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      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:
      desc - 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