public interface EnergyQuantityOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getKcal()
public abstract double getKcal() Required. The energy value in kilocalories.
Must be in the range [0, 100000].
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. The energy value in kilocalories.
Must be in the range [0, 100000].
optional double kcal = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the kcal field is set. |