Interface NutrientQuantityOrBuilder (0.2.0)

public interface NutrientQuantityOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getNutrient()

public abstract Nutrient getNutrient()

Required. Value representing the 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. Value representing the 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 WeightQuantity getQuantity()

Required. Value representing the quantity of the nutrient.

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

Returns
Type Description
WeightQuantity

The quantity.

getQuantityOrBuilder()

public abstract WeightQuantityOrBuilder getQuantityOrBuilder()

Required. Value representing the quantity of the nutrient.

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

Returns
Type Description
WeightQuantityOrBuilder

hasQuantity()

public abstract boolean hasQuantity()

Required. Value representing the quantity of the nutrient.

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

Returns
Type Description
boolean

Whether the quantity field is set.