- JSON representation
- NutritionLogRollupValue.NutrientQuantityRollup
- NutritionLogRollupValue.WeightQuantityRollup
- NutritionLogRollupValue.EnergyQuantityRollup
Represents the result of the rollup of the nutrition log data type.
| JSON representation |
|---|
{ "nutrients": [ { object ( |
| Fields | |
|---|---|
nutrients[] |
List of the nutrient roll-ups by the nutrient type. |
energy |
Energy rollup. |
energyFromFat |
Value Energy from fat rollup. |
totalCarbohydrate |
Total carbohydrate rollup. |
totalFat |
Total fat rollup. |
NutritionLogRollupValue.NutrientQuantityRollup
Nutrient quantity rollup.
| JSON representation |
|---|
{ "quantity": { object ( |
| Fields | |
|---|---|
quantity |
Required. Aggregated nutrient weight. |
nutrient |
Required. Aggregated nutrient. |
NutritionLogRollupValue.WeightQuantityRollup
Rollup for the weight.
| JSON representation |
|---|
{
"userProvidedUnitLast": enum ( |
| Fields | |
|---|---|
userProvidedUnitLast |
Optional. The user provided unit on the last element. |
gramsSum |
Required. The sum of the weight in grams. |
NutritionLogRollupValue.EnergyQuantityRollup
Rollup for the energy quantity.
| JSON representation |
|---|
{
"userProvidedUnitLast": enum ( |
| Fields | |
|---|---|
userProvidedUnitLast |
Optional. The user provided unit on the last element. |
kcalSum |
Required. The sum of the energy in kilocalories. |