Interface NutritionLogRollupValue.NutrientQuantityRollupOrBuilder (0.2.0)

public static interface NutritionLogRollupValue.NutrientQuantityRollupOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getNutrient()

public abstract Nutrient getNutrient()

Required. Aggregated nutrient.

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

Returns
Type Description
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
int

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
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
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
boolean

Whether the quantity field is set.