public static interface NutritionLogRollupValue.EnergyQuantityRollupOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getKcalSum()
public abstract double getKcalSum()Required. The sum of the energy in kilocalories.
optional double kcal_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
double |
The kcalSum. |
getUserProvidedUnitLast()
public abstract EnergyUnit getUserProvidedUnitLast()Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.EnergyUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnergyUnit |
The userProvidedUnitLast. |
getUserProvidedUnitLastValue()
public abstract int getUserProvidedUnitLastValue()Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.EnergyUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for userProvidedUnitLast. |
hasKcalSum()
public abstract boolean hasKcalSum()Required. The sum of the energy in kilocalories.
optional double kcal_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the kcalSum field is set. |