Interface EnergyQuantityOrBuilder (0.2.0)

public interface EnergyQuantityOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getKcal()

public abstract double getKcal()

Required. Value representing the energy in kilocalories.

optional double kcal = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The kcal.

getUserProvidedUnit()

public abstract EnergyUnit getUserProvidedUnit()

Optional. Value representing the user provided unit.

.google.devicesandservices.health.v4.EnergyUnit user_provided_unit = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
EnergyUnit

The userProvidedUnit.

getUserProvidedUnitValue()

public abstract int getUserProvidedUnitValue()

Optional. Value representing the user provided unit.

.google.devicesandservices.health.v4.EnergyUnit user_provided_unit = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for userProvidedUnit.

hasKcal()

public abstract boolean hasKcal()

Required. Value representing the energy in kilocalories.

optional double kcal = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the kcal field is set.