# Interface NutritionLogRollupValue.NutrientQuantityRollupOrBuilder (0.2.0)

    public static interface NutritionLogRollupValue.NutrientQuantityRollupOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getNutrient()

    public abstract Nutrient getNutrient()

Required. Aggregated nutrient.

`
.google.devicesandservices.health.v4.Nutrient nutrient = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.Nutrient` | The nutrient. |

### getNutrientValue()

    public abstract int getNutrientValue()

Required. Aggregated nutrient.

`
.google.devicesandservices.health.v4.Nutrient nutrient = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for nutrient. |

### getQuantity()

    public abstract NutritionLogRollupValue.WeightQuantityRollup getQuantity()

Required. Aggregated nutrient weight.

`
.google.devicesandservices.health.v4.NutritionLogRollupValue.WeightQuantityRollup quantity = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.NutritionLogRollupValue.WeightQuantityRollup` | The quantity. |

### getQuantityOrBuilder()

    public abstract NutritionLogRollupValue.WeightQuantityRollupOrBuilder getQuantityOrBuilder()

Required. Aggregated nutrient weight.

`
.google.devicesandservices.health.v4.NutritionLogRollupValue.WeightQuantityRollup quantity = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.NutritionLogRollupValue.WeightQuantityRollupOrBuilder` |   |

### hasQuantity()

    public abstract boolean hasQuantity()

Required. Aggregated nutrient weight.

`
.google.devicesandservices.health.v4.NutritionLogRollupValue.WeightQuantityRollup quantity = 1 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the quantity field is set. |