Enum WeightUnit (0.2.0)

public enum WeightUnit extends Enum<WeightUnit> implements ProtocolMessageEnum

Enum representing the unit of weight.

Protobuf enum google.devicesandservices.health.v4.WeightUnit

Implements

ProtocolMessageEnum

Static Fields

Name Description
GRAM

Value representing gram.

GRAM = 1;

GRAM_VALUE

Value representing gram.

GRAM = 1;

KILOGRAM

Value representing kilogram.

KILOGRAM = 2;

KILOGRAM_VALUE

Value representing kilogram.

KILOGRAM = 2;

MICROGRAM

Value representing microgram.

MICROGRAM = 7;

MICROGRAM_VALUE

Value representing microgram.

MICROGRAM = 7;

MILLIGRAM

Value representing milligram.

MILLIGRAM = 6;

MILLIGRAM_VALUE

Value representing milligram.

MILLIGRAM = 6;

NANOGRAM

Value representing nanogram.

NANOGRAM = 8;

NANOGRAM_VALUE

Value representing nanogram.

NANOGRAM = 8;

OUNCE

Value representing ounce.

OUNCE = 3;

OUNCE_VALUE

Value representing ounce.

OUNCE = 3;

POUND

Value representing pound.

POUND = 4;

POUND_VALUE

Value representing pound.

POUND = 4;

STONE

Value representing stone.

STONE = 5;

STONE_VALUE

Value representing stone.

STONE = 5;

UNRECOGNIZED
WEIGHT_UNIT_UNSPECIFIED

Unspecified weight unit.

WEIGHT_UNIT_UNSPECIFIED = 0;

WEIGHT_UNIT_UNSPECIFIED_VALUE

Unspecified weight unit.

WEIGHT_UNIT_UNSPECIFIED = 0;

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()