Enum MetricType

java.lang.Object
java.lang.Enum<MetricType>
com.google.analytics.data.v1beta.MetricType
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<MetricType>

@Generated public enum MetricType extends Enum<MetricType> implements com.google.protobuf.ProtocolMessageEnum
 A metric's value type.
 
Protobuf enum google.analytics.data.v1beta.MetricType
  • Enum Constant Details

    • METRIC_TYPE_UNSPECIFIED

      public static final MetricType METRIC_TYPE_UNSPECIFIED
       Unspecified type.
       
      METRIC_TYPE_UNSPECIFIED = 0;
    • TYPE_INTEGER

      public static final MetricType TYPE_INTEGER
       Integer type.
       
      TYPE_INTEGER = 1;
    • TYPE_FLOAT

      public static final MetricType TYPE_FLOAT
       Floating point type.
       
      TYPE_FLOAT = 2;
    • TYPE_SECONDS

      public static final MetricType TYPE_SECONDS
       A duration of seconds; a special floating point type.
       
      TYPE_SECONDS = 4;
    • TYPE_MILLISECONDS

      public static final MetricType TYPE_MILLISECONDS
       A duration in milliseconds; a special floating point type.
       
      TYPE_MILLISECONDS = 5;
    • TYPE_MINUTES

      public static final MetricType TYPE_MINUTES
       A duration in minutes; a special floating point type.
       
      TYPE_MINUTES = 6;
    • TYPE_HOURS

      public static final MetricType TYPE_HOURS
       A duration in hours; a special floating point type.
       
      TYPE_HOURS = 7;
    • TYPE_STANDARD

      public static final MetricType TYPE_STANDARD
       A custom metric of standard type; a special floating point type.
       
      TYPE_STANDARD = 8;
    • TYPE_CURRENCY

      public static final MetricType TYPE_CURRENCY
       An amount of money; a special floating point type.
       
      TYPE_CURRENCY = 9;
    • TYPE_FEET

      public static final MetricType TYPE_FEET
       A length in feet; a special floating point type.
       
      TYPE_FEET = 10;
    • TYPE_MILES

      public static final MetricType TYPE_MILES
       A length in miles; a special floating point type.
       
      TYPE_MILES = 11;
    • TYPE_METERS

      public static final MetricType TYPE_METERS
       A length in meters; a special floating point type.
       
      TYPE_METERS = 12;
    • TYPE_KILOMETERS

      public static final MetricType TYPE_KILOMETERS
       A length in kilometers; a special floating point type.
       
      TYPE_KILOMETERS = 13;
    • UNRECOGNIZED

      public static final MetricType UNRECOGNIZED
  • Field Details

    • METRIC_TYPE_UNSPECIFIED_VALUE

      public static final int METRIC_TYPE_UNSPECIFIED_VALUE
       Unspecified type.
       
      METRIC_TYPE_UNSPECIFIED = 0;
      See Also:
    • TYPE_INTEGER_VALUE

      public static final int TYPE_INTEGER_VALUE
       Integer type.
       
      TYPE_INTEGER = 1;
      See Also:
    • TYPE_FLOAT_VALUE

      public static final int TYPE_FLOAT_VALUE
       Floating point type.
       
      TYPE_FLOAT = 2;
      See Also:
    • TYPE_SECONDS_VALUE

      public static final int TYPE_SECONDS_VALUE
       A duration of seconds; a special floating point type.
       
      TYPE_SECONDS = 4;
      See Also:
    • TYPE_MILLISECONDS_VALUE

      public static final int TYPE_MILLISECONDS_VALUE
       A duration in milliseconds; a special floating point type.
       
      TYPE_MILLISECONDS = 5;
      See Also:
    • TYPE_MINUTES_VALUE

      public static final int TYPE_MINUTES_VALUE
       A duration in minutes; a special floating point type.
       
      TYPE_MINUTES = 6;
      See Also:
    • TYPE_HOURS_VALUE

      public static final int TYPE_HOURS_VALUE
       A duration in hours; a special floating point type.
       
      TYPE_HOURS = 7;
      See Also:
    • TYPE_STANDARD_VALUE

      public static final int TYPE_STANDARD_VALUE
       A custom metric of standard type; a special floating point type.
       
      TYPE_STANDARD = 8;
      See Also:
    • TYPE_CURRENCY_VALUE

      public static final int TYPE_CURRENCY_VALUE
       An amount of money; a special floating point type.
       
      TYPE_CURRENCY = 9;
      See Also:
    • TYPE_FEET_VALUE

      public static final int TYPE_FEET_VALUE
       A length in feet; a special floating point type.
       
      TYPE_FEET = 10;
      See Also:
    • TYPE_MILES_VALUE

      public static final int TYPE_MILES_VALUE
       A length in miles; a special floating point type.
       
      TYPE_MILES = 11;
      See Also:
    • TYPE_METERS_VALUE

      public static final int TYPE_METERS_VALUE
       A length in meters; a special floating point type.
       
      TYPE_METERS = 12;
      See Also:
    • TYPE_KILOMETERS_VALUE

      public static final int TYPE_KILOMETERS_VALUE
       A length in kilometers; a special floating point type.
       
      TYPE_KILOMETERS = 13;
      See Also:
  • Method Details

    • values

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