Enum CalculatedMetric.MetricUnit

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

public static enum CalculatedMetric.MetricUnit extends Enum<CalculatedMetric.MetricUnit> implements com.google.protobuf.ProtocolMessageEnum
 Possible types of representing the calculated metric's value.
 
Protobuf enum google.analytics.admin.v1alpha.CalculatedMetric.MetricUnit
  • Enum Constant Details

  • Field Details

    • METRIC_UNIT_UNSPECIFIED_VALUE

      public static final int METRIC_UNIT_UNSPECIFIED_VALUE
       MetricUnit unspecified or missing.
       
      METRIC_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:
    • MILES_VALUE

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

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

      public static final int KILOMETERS_VALUE
       This metric measures kilometers.
       
      KILOMETERS = 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 CalculatedMetric.MetricUnit[] 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 CalculatedMetric.MetricUnit 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 CalculatedMetric.MetricUnit 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 CalculatedMetric.MetricUnit 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<CalculatedMetric.MetricUnit> 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 CalculatedMetric.MetricUnit 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