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 Summary
Enum ConstantsEnum ConstantDescriptionThis metric measures a currency.This metric measures feet.This metric measures hours.This metric measures kilometers.This metric measures meters.MetricUnit unspecified or missing.This metric measures miles.This metric measures milliseconds.This metric measures minutes.This metric measures seconds.This metric uses default units. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis metric measures a currency.static final intThis metric measures feet.static final intThis metric measures hours.static final intThis metric measures kilometers.static final intThis metric measures meters.static final intMetricUnit unspecified or missing.static final intThis metric measures miles.static final intThis metric measures milliseconds.static final intThis metric measures minutes.static final intThis metric measures seconds.static final intThis metric uses default units. -
Method Summary
Modifier and TypeMethodDescriptionstatic CalculatedMetric.MetricUnitforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<CalculatedMetric.MetricUnit>static CalculatedMetric.MetricUnitvalueOf(int value) Deprecated.static CalculatedMetric.MetricUnitvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static CalculatedMetric.MetricUnitReturns the enum constant of this type with the specified name.static CalculatedMetric.MetricUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
METRIC_UNIT_UNSPECIFIED
MetricUnit unspecified or missing.
METRIC_UNIT_UNSPECIFIED = 0; -
STANDARD
This metric uses default units.
STANDARD = 1; -
CURRENCY
This metric measures a currency.
CURRENCY = 2; -
FEET
This metric measures feet.
FEET = 3; -
MILES
This metric measures miles.
MILES = 4; -
METERS
This metric measures meters.
METERS = 5; -
KILOMETERS
This metric measures kilometers.
KILOMETERS = 6; -
MILLISECONDS
This metric measures milliseconds.
MILLISECONDS = 7; -
SECONDS
This metric measures seconds.
SECONDS = 8; -
MINUTES
This metric measures minutes.
MINUTES = 9; -
HOURS
This metric measures hours.
HOURS = 10; -
UNRECOGNIZED
-
-
Field Details
-
METRIC_UNIT_UNSPECIFIED_VALUE
public static final int METRIC_UNIT_UNSPECIFIED_VALUEMetricUnit unspecified or missing.
METRIC_UNIT_UNSPECIFIED = 0;- See Also:
-
STANDARD_VALUE
public static final int STANDARD_VALUEThis metric uses default units.
STANDARD = 1;- See Also:
-
CURRENCY_VALUE
public static final int CURRENCY_VALUEThis metric measures a currency.
CURRENCY = 2;- See Also:
-
FEET_VALUE
public static final int FEET_VALUEThis metric measures feet.
FEET = 3;- See Also:
-
MILES_VALUE
public static final int MILES_VALUEThis metric measures miles.
MILES = 4;- See Also:
-
METERS_VALUE
public static final int METERS_VALUEThis metric measures meters.
METERS = 5;- See Also:
-
KILOMETERS_VALUE
public static final int KILOMETERS_VALUEThis metric measures kilometers.
KILOMETERS = 6;- See Also:
-
MILLISECONDS_VALUE
public static final int MILLISECONDS_VALUEThis metric measures milliseconds.
MILLISECONDS = 7;- See Also:
-
SECONDS_VALUE
public static final int SECONDS_VALUEThis metric measures seconds.
SECONDS = 8;- See Also:
-
MINUTES_VALUE
public static final int MINUTES_VALUEThis metric measures minutes.
MINUTES = 9;- See Also:
-
HOURS_VALUE
public static final int HOURS_VALUEThis metric measures hours.
HOURS = 10;- See Also:
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.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 nameNullPointerException- if the argument is null
-