public interface EnergyQuantityOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
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. |