public static interface NutritionLogRollupValue.WeightQuantityRollupOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getGramsSum()
public abstract double getGramsSum()Required. The sum of the weight in grams.
optional double grams_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
double |
The gramsSum. |
getUserProvidedUnitLast()
public abstract WeightUnit getUserProvidedUnitLast()Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.WeightUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WeightUnit |
The userProvidedUnitLast. |
getUserProvidedUnitLastValue()
public abstract int getUserProvidedUnitLastValue()Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.WeightUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for userProvidedUnitLast. |
hasGramsSum()
public abstract boolean hasGramsSum()Required. The sum of the weight in grams.
optional double grams_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the gramsSum field is set. |