NutritionLogRollupValue

Represents the result of the rollup of the nutrition log data type.

JSON representation
{
  "nutrients": [
    {
      object (NutritionLogRollupValue.NutrientQuantityRollup)
    }
  ],
  "energy": {
    object (NutritionLogRollupValue.EnergyQuantityRollup)
  },
  "energyFromFat": {
    object (NutritionLogRollupValue.EnergyQuantityRollup)
  },
  "totalCarbohydrate": {
    object (NutritionLogRollupValue.WeightQuantityRollup)
  },
  "totalFat": {
    object (NutritionLogRollupValue.WeightQuantityRollup)
  }
}
Fields
nutrients[]

object (NutritionLogRollupValue.NutrientQuantityRollup)

List of the nutrient roll-ups by the nutrient type.

energy

object (NutritionLogRollupValue.EnergyQuantityRollup)

Energy rollup.

energyFromFat

object (NutritionLogRollupValue.EnergyQuantityRollup)

Value Energy from fat rollup.

totalCarbohydrate

object (NutritionLogRollupValue.WeightQuantityRollup)

Total carbohydrate rollup.

totalFat

object (NutritionLogRollupValue.WeightQuantityRollup)

Total fat rollup.

NutritionLogRollupValue.NutrientQuantityRollup

Nutrient quantity rollup.

JSON representation
{
  "quantity": {
    object (NutritionLogRollupValue.WeightQuantityRollup)
  },
  "nutrient": enum (Nutrient)
}
Fields
quantity

object (NutritionLogRollupValue.WeightQuantityRollup)

Required. Aggregated nutrient weight.

nutrient

enum (Nutrient)

Required. Aggregated nutrient.

NutritionLogRollupValue.WeightQuantityRollup

Rollup for the weight.

JSON representation
{
  "userProvidedUnitLast": enum (WeightUnit),
  "gramsSum": number
}
Fields
userProvidedUnitLast

enum (WeightUnit)

Optional. The user provided unit on the last element.

gramsSum

number

Required. The sum of the weight in grams.

NutritionLogRollupValue.EnergyQuantityRollup

Rollup for the energy quantity.

JSON representation
{
  "userProvidedUnitLast": enum (EnergyUnit),
  "kcalSum": number
}
Fields
userProvidedUnitLast

enum (EnergyUnit)

Optional. The user provided unit on the last element.

kcalSum

number

Required. The sum of the energy in kilocalories.