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 Summary
Enum ConstantsEnum ConstantDescriptionThis metric measures a currency.This metric measures feet.This metric measures hours.This metric measures kilometers.MeasurementUnit unspecified or missing.This metric measures meters.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 intMeasurementUnit unspecified or missing.static final intThis metric measures meters.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 CustomMetric.MeasurementUnitforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<CustomMetric.MeasurementUnit>static CustomMetric.MeasurementUnitvalueOf(int value) Deprecated.static CustomMetric.MeasurementUnitvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static CustomMetric.MeasurementUnitReturns the enum constant of this type with the specified name.static CustomMetric.MeasurementUnit[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MEASUREMENT_UNIT_UNSPECIFIED
MeasurementUnit unspecified or missing.
MEASUREMENT_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; -
METERS
This metric measures meters.
METERS = 4; -
KILOMETERS
This metric measures kilometers.
KILOMETERS = 5; -
MILES
This metric measures miles.
MILES = 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
-
MEASUREMENT_UNIT_UNSPECIFIED_VALUE
public static final int MEASUREMENT_UNIT_UNSPECIFIED_VALUEMeasurementUnit unspecified or missing.
MEASUREMENT_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:
-
METERS_VALUE
public static final int METERS_VALUEThis metric measures meters.
METERS = 4;- See Also:
-
KILOMETERS_VALUE
public static final int KILOMETERS_VALUEThis metric measures kilometers.
KILOMETERS = 5;- See Also:
-
MILES_VALUE
public static final int MILES_VALUEThis metric measures miles.
MILES = 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<CustomMetric.MeasurementUnit> 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 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 nameNullPointerException- if the argument is null
-