Enum EnergyUnit (0.2.0)

public enum EnergyUnit extends Enum<EnergyUnit> implements ProtocolMessageEnum

Enum representing the unit of energy.

Protobuf enum google.devicesandservices.health.v4.EnergyUnit

Implements

ProtocolMessageEnum

Static Fields

Name Description
CALORIE

Value representing calorie.

CALORIE = 5;

CALORIE_VALUE

Value representing calorie.

CALORIE = 5;

ENERGY_UNIT_UNSPECIFIED

Unspecified energy unit.

ENERGY_UNIT_UNSPECIFIED = 0;

ENERGY_UNIT_UNSPECIFIED_VALUE

Unspecified energy unit.

ENERGY_UNIT_UNSPECIFIED = 0;

JOULE

Value representing joule.

JOULE = 1;

JOULE_VALUE

Value representing joule.

JOULE = 1;

KILOCALORIE

Value representing kilocalorie.

KILOCALORIE = 3;

KILOCALORIE_VALUE

Value representing kilocalorie.

KILOCALORIE = 3;

KILOJOULE

Value representing kilojoule.

KILOJOULE = 2;

KILOJOULE_VALUE

Value representing kilojoule.

KILOJOULE = 2;

SMALL_CALORIE

Value representing small calorie.

SMALL_CALORIE = 4;

SMALL_CALORIE_VALUE

Value representing small calorie.

SMALL_CALORIE = 4;

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