# NutritionRecord

Artifact: [androidx.health.connect:connect-client](https://developer.android.com/jetpack/androidx/releases/health-connect) [View Source](https://cs.android.com/search?q=file:androidx/health/connect/client/records/NutritionRecord.kt+class:androidx.health.connect.client.records.NutritionRecord) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

*** ** * ** ***


```
public final class NutritionRecord implements Record
```

<br />

*** ** * ** ***

Captures what nutrients were consumed as part of a meal or a food item.

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#BIOTIN_TOTAL()` Metric identifier to retrieve the total biotin from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#CAFFEINE_TOTAL()` Metric identifier to retrieve the total caffeine from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#CALCIUM_TOTAL()` Metric identifier to retrieve the total calcium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#CHLORIDE_TOTAL()` Metric identifier to retrieve the total chloride from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#CHOLESTEROL_TOTAL()` Metric identifier to retrieve the total cholesterol from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#CHROMIUM_TOTAL()` Metric identifier to retrieve the total chromium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#COPPER_TOTAL()` Metric identifier to retrieve the total copper from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#DIETARY_FIBER_TOTAL()` Metric identifier to retrieve the total dietary fiber from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Energy>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#ENERGY_FROM_FAT_TOTAL()` Metric identifier to retrieve the total energy from fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Energy>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#ENERGY_TOTAL()` Metric identifier to retrieve the total energy from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#FOLATE_TOTAL()` Metric identifier to retrieve the total folate from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#FOLIC_ACID_TOTAL()` Metric identifier to retrieve the total folic acid from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#IODINE_TOTAL()` Metric identifier to retrieve the total iodine from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#IRON_TOTAL()` Metric identifier to retrieve the total iron from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#MAGNESIUM_TOTAL()` Metric identifier to retrieve the total magnesium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#MANGANESE_TOTAL()` Metric identifier to retrieve the total manganese from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#MOLYBDENUM_TOTAL()` Metric identifier to retrieve the total molybdenum from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#MONOUNSATURATED_FAT_TOTAL()` Metric identifier to retrieve the total monounsaturated fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#NIACIN_TOTAL()` Metric identifier to retrieve the total niacin from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#PANTOTHENIC_ACID_TOTAL()` Metric identifier to retrieve the total pantothenic acid from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#PHOSPHORUS_TOTAL()` Metric identifier to retrieve the total phosphorus from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#POLYUNSATURATED_FAT_TOTAL()` Metric identifier to retrieve the total polyunsaturated fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#POTASSIUM_TOTAL()` Metric identifier to retrieve the total potassium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#PROTEIN_TOTAL()` Metric identifier to retrieve the total protein from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#RIBOFLAVIN_TOTAL()` Metric identifier to retrieve the total riboflavin from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#SATURATED_FAT_TOTAL()` Metric identifier to retrieve the total saturated fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#SELENIUM_TOTAL()` Metric identifier to retrieve the total selenium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#SODIUM_TOTAL()` Metric identifier to retrieve the total sodium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#SUGAR_TOTAL()` Metric identifier to retrieve the total sugar from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#THIAMIN_TOTAL()` Metric identifier to retrieve the total thiamin from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#TOTAL_CARBOHYDRATE_TOTAL()` Metric identifier to retrieve the total total carbohydrate from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#TOTAL_FAT_TOTAL()` Metric identifier to retrieve the total total fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#TRANS_FAT_TOTAL()` Metric identifier to retrieve the total trans fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#UNSATURATED_FAT_TOTAL()` Metric identifier to retrieve the total unsaturated fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#VITAMIN_A_TOTAL()` Metric identifier to retrieve the total vitamin a from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#VITAMIN_B12_TOTAL()` Metric identifier to retrieve the total vitamin b12 from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#VITAMIN_B6_TOTAL()` Metric identifier to retrieve the total vitamin b6 from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#VITAMIN_C_TOTAL()` Metric identifier to retrieve the total vitamin c from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#VITAMIN_D_TOTAL()` Metric identifier to retrieve the total vitamin d from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#VITAMIN_E_TOTAL()` Metric identifier to retrieve the total vitamin e from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#VITAMIN_K_TOTAL()` Metric identifier to retrieve the total vitamin k from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregateMetric<@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/units/Mass>` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#ZINC_TOTAL()` Metric identifier to retrieve the total zinc from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#NutritionRecord(java.time.Instant,java.time.ZoneOffset,java.time.Instant,java.time.ZoneOffset,androidx.health.connect.client.records.metadata.Metadata,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Energy,androidx.health.connect.client.units.Energy,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,androidx.health.connect.client.units.Mass,kotlin.String,kotlin.Int)( @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html startTime, https://developer.android.com/reference/java/time/ZoneOffset.html startZoneOffset, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html endTime, https://developer.android.com/reference/java/time/ZoneOffset.html endZoneOffset, @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/records/metadata/Metadata metadata, https://developer.android.com/reference/androidx/health/connect/client/units/Mass biotin, https://developer.android.com/reference/androidx/health/connect/client/units/Mass caffeine, https://developer.android.com/reference/androidx/health/connect/client/units/Mass calcium, https://developer.android.com/reference/androidx/health/connect/client/units/Energy energy, https://developer.android.com/reference/androidx/health/connect/client/units/Energy energyFromFat, https://developer.android.com/reference/androidx/health/connect/client/units/Mass chloride, https://developer.android.com/reference/androidx/health/connect/client/units/Mass cholesterol, https://developer.android.com/reference/androidx/health/connect/client/units/Mass chromium, https://developer.android.com/reference/androidx/health/connect/client/units/Mass copper, https://developer.android.com/reference/androidx/health/connect/client/units/Mass dietaryFiber, https://developer.android.com/reference/androidx/health/connect/client/units/Mass folate, https://developer.android.com/reference/androidx/health/connect/client/units/Mass folicAcid, https://developer.android.com/reference/androidx/health/connect/client/units/Mass iodine, https://developer.android.com/reference/androidx/health/connect/client/units/Mass iron, https://developer.android.com/reference/androidx/health/connect/client/units/Mass magnesium, https://developer.android.com/reference/androidx/health/connect/client/units/Mass manganese, https://developer.android.com/reference/androidx/health/connect/client/units/Mass molybdenum, https://developer.android.com/reference/androidx/health/connect/client/units/Mass monounsaturatedFat, https://developer.android.com/reference/androidx/health/connect/client/units/Mass niacin, https://developer.android.com/reference/androidx/health/connect/client/units/Mass pantothenicAcid, https://developer.android.com/reference/androidx/health/connect/client/units/Mass phosphorus, https://developer.android.com/reference/androidx/health/connect/client/units/Mass polyunsaturatedFat, https://developer.android.com/reference/androidx/health/connect/client/units/Mass potassium, https://developer.android.com/reference/androidx/health/connect/client/units/Mass protein, https://developer.android.com/reference/androidx/health/connect/client/units/Mass riboflavin, https://developer.android.com/reference/androidx/health/connect/client/units/Mass saturatedFat, https://developer.android.com/reference/androidx/health/connect/client/units/Mass selenium, https://developer.android.com/reference/androidx/health/connect/client/units/Mass sodium, https://developer.android.com/reference/androidx/health/connect/client/units/Mass sugar, https://developer.android.com/reference/androidx/health/connect/client/units/Mass thiamin, https://developer.android.com/reference/androidx/health/connect/client/units/Mass totalCarbohydrate, https://developer.android.com/reference/androidx/health/connect/client/units/Mass totalFat, https://developer.android.com/reference/androidx/health/connect/client/units/Mass transFat, https://developer.android.com/reference/androidx/health/connect/client/units/Mass unsaturatedFat, https://developer.android.com/reference/androidx/health/connect/client/units/Mass vitaminA, https://developer.android.com/reference/androidx/health/connect/client/units/Mass vitaminB12, https://developer.android.com/reference/androidx/health/connect/client/units/Mass vitaminB6, https://developer.android.com/reference/androidx/health/connect/client/units/Mass vitaminC, https://developer.android.com/reference/androidx/health/connect/client/units/Mass vitaminD, https://developer.android.com/reference/androidx/health/connect/client/units/Mass vitaminE, https://developer.android.com/reference/androidx/health/connect/client/units/Mass vitaminK, https://developer.android.com/reference/androidx/health/connect/client/units/Mass zinc, https://developer.android.com/reference/java/lang/String.html name, int mealType )` |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#equals(kotlin.Any)(https://developer.android.com/reference/java/lang/Object.html other)` |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getBiotin()()` Biotin in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getCaffeine()()` Caffeine in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getCalcium()()` Calcium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getChloride()()` Chloride in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getCholesterol()()` Cholesterol in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getChromium()()` Chromium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getCopper()()` Copper in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getDietaryFiber()()` Dietary fiber in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getEndTime()()` End time of the record. |
| `https://developer.android.com/reference/java/time/ZoneOffset.html` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getEndZoneOffset()()` User experienced zone offset at `https://developer.android.com/reference/androidx/health/connect/client/records/IntervalRecord#endTime()`, or null if unknown. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Energy` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getEnergy()()` Energy in `https://developer.android.com/reference/androidx/health/connect/client/units/Energy` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Energy` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getEnergyFromFat()()` Energy from fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Energy` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getFolate()()` Folate in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getFolicAcid()()` Folic acid in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getIodine()()` Iodine in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getIron()()` Iron in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getMagnesium()()` Magnesium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getManganese()()` Manganese in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final int` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getMealType()()` Type of meal related to the nutrients consumed. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/health/connect/client/records/metadata/Metadata` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getMetadata()()` Set of common metadata associated with the written record. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getMolybdenum()()` Molybdenum in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getMonounsaturatedFat()()` Monounsaturated fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getName()()` Name for food or drink, provided by the user. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getNiacin()()` Niacin in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getPantothenicAcid()()` Pantothenic acid in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getPhosphorus()()` Phosphorus in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getPolyunsaturatedFat()()` Polyunsaturated fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getPotassium()()` Potassium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getProtein()()` Protein in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getRiboflavin()()` Riboflavin in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getSaturatedFat()()` Saturated fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getSelenium()()` Selenium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getSodium()()` Sodium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/time/Instant.html` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getStartTime()()` Start time of the record. |
| `https://developer.android.com/reference/java/time/ZoneOffset.html` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getStartZoneOffset()()` User experienced zone offset at `https://developer.android.com/reference/androidx/health/connect/client/records/IntervalRecord#startTime()`, or null if unknown. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getSugar()()` Sugar in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getThiamin()()` Thiamin in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getTotalCarbohydrate()()` Total carbohydrate in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getTotalFat()()` Total fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getTransFat()()` Trans fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getUnsaturatedFat()()` Unsaturated fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getVitaminA()()` Vitamin A in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getVitaminB12()()` Vitamin B12 in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getVitaminB6()()` Vitamin B6 in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getVitaminC()()` Vitamin C in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getVitaminD()()` Vitamin D in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getVitaminE()()` Vitamin E in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getVitaminK()()` Vitamin K in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `final https://developer.android.com/reference/androidx/health/connect/client/units/Mass` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#getZinc()()` Zinc in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. |
| `int` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#hashCode()()` |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/health/connect/client/records/NutritionRecord#toString()()` |

## Public fields

### BIOTIN_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> BIOTIN_TOTAL
```

Metric identifier to retrieve the total biotin from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### CAFFEINE_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> CAFFEINE_TOTAL
```

Metric identifier to retrieve the total caffeine from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### CALCIUM_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> CALCIUM_TOTAL
```

Metric identifier to retrieve the total calcium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### CHLORIDE_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> CHLORIDE_TOTAL
```

Metric identifier to retrieve the total chloride from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### CHOLESTEROL_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> CHOLESTEROL_TOTAL
```

Metric identifier to retrieve the total cholesterol from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### CHROMIUM_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> CHROMIUM_TOTAL
```

Metric identifier to retrieve the total chromium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### COPPER_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> COPPER_TOTAL
```

Metric identifier to retrieve the total copper from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### DIETARY_FIBER_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> DIETARY_FIBER_TOTAL
```

Metric identifier to retrieve the total dietary fiber from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### ENERGY_FROM_FAT_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Energy> ENERGY_FROM_FAT_TOTAL
```

Metric identifier to retrieve the total energy from fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### ENERGY_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Energy> ENERGY_TOTAL
```

Metric identifier to retrieve the total energy from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### FOLATE_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> FOLATE_TOTAL
```

Metric identifier to retrieve the total folate from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### FOLIC_ACID_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> FOLIC_ACID_TOTAL
```

Metric identifier to retrieve the total folic acid from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### IODINE_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> IODINE_TOTAL
```

Metric identifier to retrieve the total iodine from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### IRON_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> IRON_TOTAL
```

Metric identifier to retrieve the total iron from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### MAGNESIUM_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> MAGNESIUM_TOTAL
```

Metric identifier to retrieve the total magnesium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### MANGANESE_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> MANGANESE_TOTAL
```

Metric identifier to retrieve the total manganese from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### MOLYBDENUM_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> MOLYBDENUM_TOTAL
```

Metric identifier to retrieve the total molybdenum from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### MONOUNSATURATED_FAT_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> MONOUNSATURATED_FAT_TOTAL
```

Metric identifier to retrieve the total monounsaturated fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### NIACIN_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> NIACIN_TOTAL
```

Metric identifier to retrieve the total niacin from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### PANTOTHENIC_ACID_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> PANTOTHENIC_ACID_TOTAL
```

Metric identifier to retrieve the total pantothenic acid from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### PHOSPHORUS_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> PHOSPHORUS_TOTAL
```

Metric identifier to retrieve the total phosphorus from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### POLYUNSATURATED_FAT_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> POLYUNSATURATED_FAT_TOTAL
```

Metric identifier to retrieve the total polyunsaturated fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### POTASSIUM_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> POTASSIUM_TOTAL
```

Metric identifier to retrieve the total potassium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### PROTEIN_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> PROTEIN_TOTAL
```

Metric identifier to retrieve the total protein from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### RIBOFLAVIN_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> RIBOFLAVIN_TOTAL
```

Metric identifier to retrieve the total riboflavin from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### SATURATED_FAT_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> SATURATED_FAT_TOTAL
```

Metric identifier to retrieve the total saturated fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### SELENIUM_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> SELENIUM_TOTAL
```

Metric identifier to retrieve the total selenium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### SODIUM_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> SODIUM_TOTAL
```

Metric identifier to retrieve the total sodium from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### SUGAR_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> SUGAR_TOTAL
```

Metric identifier to retrieve the total sugar from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### THIAMIN_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> THIAMIN_TOTAL
```

Metric identifier to retrieve the total thiamin from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### TOTAL_CARBOHYDRATE_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> TOTAL_CARBOHYDRATE_TOTAL
```

Metric identifier to retrieve the total total carbohydrate from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### TOTAL_FAT_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> TOTAL_FAT_TOTAL
```

Metric identifier to retrieve the total total fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### TRANS_FAT_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> TRANS_FAT_TOTAL
```

Metric identifier to retrieve the total trans fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### UNSATURATED_FAT_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> UNSATURATED_FAT_TOTAL
```

Metric identifier to retrieve the total unsaturated fat from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### VITAMIN_A_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> VITAMIN_A_TOTAL
```

Metric identifier to retrieve the total vitamin a from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### VITAMIN_B12_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> VITAMIN_B12_TOTAL
```

Metric identifier to retrieve the total vitamin b12 from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### VITAMIN_B6_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> VITAMIN_B6_TOTAL
```

Metric identifier to retrieve the total vitamin b6 from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### VITAMIN_C_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> VITAMIN_C_TOTAL
```

Metric identifier to retrieve the total vitamin c from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### VITAMIN_D_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> VITAMIN_D_TOTAL
```

Metric identifier to retrieve the total vitamin d from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### VITAMIN_E_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> VITAMIN_E_TOTAL
```

Metric identifier to retrieve the total vitamin e from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### VITAMIN_K_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> VITAMIN_K_TOTAL
```

Metric identifier to retrieve the total vitamin k from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

### ZINC_TOTAL

```
public static final @NonNull AggregateMetric<@NonNull Mass> ZINC_TOTAL
```

Metric identifier to retrieve the total zinc from `https://developer.android.com/reference/androidx/health/connect/client/aggregate/AggregationResult`.

## Public constructors

### NutritionRecord

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public NutritionRecord(
    @NonNull Instant startTime,
    ZoneOffset startZoneOffset,
    @NonNull Instant endTime,
    ZoneOffset endZoneOffset,
    @NonNull Metadata metadata,
    Mass biotin,
    Mass caffeine,
    Mass calcium,
    Energy energy,
    Energy energyFromFat,
    Mass chloride,
    Mass cholesterol,
    Mass chromium,
    Mass copper,
    Mass dietaryFiber,
    Mass folate,
    Mass folicAcid,
    Mass iodine,
    Mass iron,
    Mass magnesium,
    Mass manganese,
    Mass molybdenum,
    Mass monounsaturatedFat,
    Mass niacin,
    Mass pantothenicAcid,
    Mass phosphorus,
    Mass polyunsaturatedFat,
    Mass potassium,
    Mass protein,
    Mass riboflavin,
    Mass saturatedFat,
    Mass selenium,
    Mass sodium,
    Mass sugar,
    Mass thiamin,
    Mass totalCarbohydrate,
    Mass totalFat,
    Mass transFat,
    Mass unsaturatedFat,
    Mass vitaminA,
    Mass vitaminB12,
    Mass vitaminB6,
    Mass vitaminC,
    Mass vitaminD,
    Mass vitaminE,
    Mass vitaminK,
    Mass zinc,
    String name,
    int mealType
)
```

## Public methods

### equals

```
public boolean equals(Object other)
```

### getBiotin

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getBiotin()
```

Biotin in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getCaffeine

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getCaffeine()
```

Caffeine in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getCalcium

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getCalcium()
```

Calcium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getChloride

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getChloride()
```

Chloride in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getCholesterol

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getCholesterol()
```

Cholesterol in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getChromium

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getChromium()
```

Chromium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getCopper

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getCopper()
```

Copper in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getDietaryFiber

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getDietaryFiber()
```

Dietary fiber in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100000 grams.

### getEndTime

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public @NonNull Instant getEndTime()
```

End time of the record.

### getEndZoneOffset

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public ZoneOffset getEndZoneOffset()
```

User experienced zone offset at `https://developer.android.com/reference/androidx/health/connect/client/records/IntervalRecord#endTime()`, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.

### getEnergy

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Energy getEnergy()
```

Energy in `https://developer.android.com/reference/androidx/health/connect/client/units/Energy` unit. Optional field. Valid range: 0-100000 kcal.

### getEnergyFromFat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Energy getEnergyFromFat()
```

Energy from fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Energy` unit. Optional field. Valid range: 0-100000 kcal.

### getFolate

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getFolate()
```

Folate in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getFolicAcid

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getFolicAcid()
```

Folic acid in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getIodine

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getIodine()
```

Iodine in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getIron

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getIron()
```

Iron in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getMagnesium

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getMagnesium()
```

Magnesium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getManganese

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getManganese()
```

Manganese in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getMealType

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final int getMealType()
```

Type of meal related to the nutrients consumed. Optional, enum field. Allowed values: `https://developer.android.com/reference/androidx/health/connect/client/records/MealType`.

| See also |
|---|---|
| `https://developer.android.com/reference/androidx/health/connect/client/records/MealType` |   |

### getMetadata

```
public @NonNull Metadata getMetadata()
```

Set of common metadata associated with the written record.

### getMolybdenum

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getMolybdenum()
```

Molybdenum in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getMonounsaturatedFat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getMonounsaturatedFat()
```

Monounsaturated fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100000 grams.

### getName

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final String getName()
```

Name for food or drink, provided by the user. Optional field.

### getNiacin

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getNiacin()
```

Niacin in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getPantothenicAcid

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getPantothenicAcid()
```

Pantothenic acid in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getPhosphorus

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getPhosphorus()
```

Phosphorus in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getPolyunsaturatedFat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getPolyunsaturatedFat()
```

Polyunsaturated fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100000 grams.

### getPotassium

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getPotassium()
```

Potassium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getProtein

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getProtein()
```

Protein in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100000 grams.

### getRiboflavin

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getRiboflavin()
```

Riboflavin in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getSaturatedFat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getSaturatedFat()
```

Saturated fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100000 grams.

### getSelenium

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getSelenium()
```

Selenium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getSodium

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getSodium()
```

Sodium in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getStartTime

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public @NonNull Instant getStartTime()
```

Start time of the record.

### getStartZoneOffset

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public ZoneOffset getStartZoneOffset()
```

User experienced zone offset at `https://developer.android.com/reference/androidx/health/connect/client/records/IntervalRecord#startTime()`, or null if unknown. Providing these will help history aggregations results stay consistent should user travel. Queries with user experienced time filters will assume system current zone offset if the information is absent.

### getSugar

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getSugar()
```

Sugar in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100000 grams.

### getThiamin

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getThiamin()
```

Thiamin in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getTotalCarbohydrate

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getTotalCarbohydrate()
```

Total carbohydrate in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100000 grams.

### getTotalFat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getTotalFat()
```

Total fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100000 grams.

### getTransFat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getTransFat()
```

Trans fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100000 grams.

### getUnsaturatedFat

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getUnsaturatedFat()
```

Unsaturated fat in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100000 grams.

### getVitaminA

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getVitaminA()
```

Vitamin A in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getVitaminB12

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getVitaminB12()
```

Vitamin B12 in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getVitaminB6

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getVitaminB6()
```

Vitamin B6 in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getVitaminC

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getVitaminC()
```

Vitamin C in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getVitaminD

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getVitaminD()
```

Vitamin D in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getVitaminE

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getVitaminE()
```

Vitamin E in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getVitaminK

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getVitaminK()
```

Vitamin K in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### getZinc

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/health-connect#1.1.0)

```
public final Mass getZinc()
```

Zinc in `https://developer.android.com/reference/androidx/health/connect/client/units/Mass` unit. Optional field. Valid range: 0-100 grams.

### hashCode

```
public int hashCode()
```

### toString

```
public @NonNull String toString()
```