Enum CustomMetric.MeasurementUnit (0.58.0)

public enum CustomMetric.MeasurementUnit extends Enum<CustomMetric.MeasurementUnit> implements 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

Implements

ProtocolMessageEnum

Static Fields

Name Description
CURRENCY

This metric measures a currency.

CURRENCY = 2;

CURRENCY_VALUE

This metric measures a currency.

CURRENCY = 2;

FEET

This metric measures feet.

FEET = 3;

FEET_VALUE

This metric measures feet.

FEET = 3;

HOURS

This metric measures hours.

HOURS = 10;

HOURS_VALUE

This metric measures hours.

HOURS = 10;

KILOMETERS

This metric measures kilometers.

KILOMETERS = 5;

KILOMETERS_VALUE

This metric measures kilometers.

KILOMETERS = 5;

MEASUREMENT_UNIT_UNSPECIFIED

MeasurementUnit unspecified or missing.

MEASUREMENT_UNIT_UNSPECIFIED = 0;

MEASUREMENT_UNIT_UNSPECIFIED_VALUE

MeasurementUnit unspecified or missing.

MEASUREMENT_UNIT_UNSPECIFIED = 0;

METERS

This metric measures meters.

METERS = 4;

METERS_VALUE

This metric measures meters.

METERS = 4;

MILES

This metric measures miles.

MILES = 6;

MILES_VALUE

This metric measures miles.

MILES = 6;

MILLISECONDS

This metric measures milliseconds.

MILLISECONDS = 7;

MILLISECONDS_VALUE

This metric measures milliseconds.

MILLISECONDS = 7;

MINUTES

This metric measures minutes.

MINUTES = 9;

MINUTES_VALUE

This metric measures minutes.

MINUTES = 9;

SECONDS

This metric measures seconds.

SECONDS = 8;

SECONDS_VALUE

This metric measures seconds.

SECONDS = 8;

STANDARD

This metric uses default units.

STANDARD = 1;

STANDARD_VALUE

This metric uses default units.

STANDARD = 1;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()