public interface FoodOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getAccessLevel()
public abstract FoodAccessLevel getAccessLevel()Required. The access level of the food.
.google.devicesandservices.health.v4.FoodAccessLevel access_level = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
FoodAccessLevel |
The accessLevel. |
getAccessLevelValue()
public abstract int getAccessLevelValue()Required. The access level of the food.
.google.devicesandservices.health.v4.FoodAccessLevel access_level = 4 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for accessLevel. |
getBrand()
public abstract String getBrand()Optional. The brand of the food.
string brand = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The brand. |
getBrandBytes()
public abstract ByteString getBrandBytes()Optional. The brand of the food.
string brand = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for brand. |
getDefaultServing()
public abstract Food.FoodServing getDefaultServing()Required. Value representing the default serving of the food.
.google.devicesandservices.health.v4.Food.FoodServing default_serving = 19 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Food.FoodServing |
The defaultServing. |
getDefaultServingOrBuilder()
public abstract Food.FoodServingOrBuilder getDefaultServingOrBuilder()Required. Value representing the default serving of the food.
.google.devicesandservices.health.v4.Food.FoodServing default_serving = 19 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
Food.FoodServingOrBuilder |
|
getDescription()
public abstract String getDescription()Optional. The description of the food.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The description. |
getDescriptionBytes()
public abstract ByteString getDescriptionBytes()Optional. The description of the food.
string description = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for description. |
getDisplayName()
public abstract String getDisplayName()Required. The display name of the food.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
String |
The displayName. |
getDisplayNameBytes()
public abstract ByteString getDisplayNameBytes()Required. The display name of the food.
string display_name = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for displayName. |
getEnergyAvg()
public abstract EnergyQuantity getEnergyAvg()Optional. Value representing the average energy of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_avg = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnergyQuantity |
The energyAvg. |
getEnergyAvgOrBuilder()
public abstract EnergyQuantityOrBuilder getEnergyAvgOrBuilder()Optional. Value representing the average energy of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_avg = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnergyQuantityOrBuilder |
|
getEnergyFromFat()
public abstract EnergyQuantity getEnergyFromFat()Optional. Value representing the energy from fat of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_from_fat = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnergyQuantity |
The energyFromFat. |
getEnergyFromFatOrBuilder()
public abstract EnergyQuantityOrBuilder getEnergyFromFatOrBuilder()Optional. Value representing the energy from fat of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_from_fat = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnergyQuantityOrBuilder |
|
getEnergyMax()
public abstract EnergyQuantity getEnergyMax()Optional. Value representing the maximum energy of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_max = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnergyQuantity |
The energyMax. |
getEnergyMaxOrBuilder()
public abstract EnergyQuantityOrBuilder getEnergyMaxOrBuilder()Optional. Value representing the maximum energy of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_max = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnergyQuantityOrBuilder |
|
getEnergyMin()
public abstract EnergyQuantity getEnergyMin()Optional. Value representing the minimum energy of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_min = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnergyQuantity |
The energyMin. |
getEnergyMinOrBuilder()
public abstract EnergyQuantityOrBuilder getEnergyMinOrBuilder()Optional. Value representing the minimum energy of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_min = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnergyQuantityOrBuilder |
|
getLanguageCode()
public abstract String getLanguageCode()Optional. The language code where the food is available in format xx-XX. Supported values are defined in Settings.food_language_code.
string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The languageCode. |
getLanguageCodeBytes()
public abstract ByteString getLanguageCodeBytes()Optional. The language code where the food is available in format xx-XX. Supported values are defined in Settings.food_language_code.
string language_code = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for languageCode. |
getMealType()
public abstract MealType getMealType()Optional. The meal type associated with this food.
.google.devicesandservices.health.v4.MealType meal_type = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
MealType |
The mealType. |
getMealTypeValue()
public abstract int getMealTypeValue()Optional. The meal type associated with this food.
.google.devicesandservices.health.v4.MealType meal_type = 10 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for mealType. |
getNutrients(int index)
public abstract NutrientQuantity getNutrients(int index)Optional. Value representing the nutrients of the food for the default serving.
repeated .google.devicesandservices.health.v4.NutrientQuantity nutrients = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantity |
|
getNutrientsCount()
public abstract int getNutrientsCount()Optional. Value representing the nutrients of the food for the default serving.
repeated .google.devicesandservices.health.v4.NutrientQuantity nutrients = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getNutrientsList()
public abstract List<NutrientQuantity> getNutrientsList()Optional. Value representing the nutrients of the food for the default serving.
repeated .google.devicesandservices.health.v4.NutrientQuantity nutrients = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<NutrientQuantity> |
|
getNutrientsOrBuilder(int index)
public abstract NutrientQuantityOrBuilder getNutrientsOrBuilder(int index)Optional. Value representing the nutrients of the food for the default serving.
repeated .google.devicesandservices.health.v4.NutrientQuantity nutrients = 12 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
NutrientQuantityOrBuilder |
|
getNutrientsOrBuilderList()
public abstract List<? extends NutrientQuantityOrBuilder> getNutrientsOrBuilderList()Optional. Value representing the nutrients of the food for the default serving.
repeated .google.devicesandservices.health.v4.NutrientQuantity nutrients = 12 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.devicesandservices.health.v4.NutrientQuantityOrBuilder> |
|
getServings(int index)
public abstract Food.FoodServing getServings(int index)Optional. The serving of the food.
repeated .google.devicesandservices.health.v4.Food.FoodServing servings = 20 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Food.FoodServing |
|
getServingsCount()
public abstract int getServingsCount()Optional. The serving of the food.
repeated .google.devicesandservices.health.v4.Food.FoodServing servings = 20 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getServingsList()
public abstract List<Food.FoodServing> getServingsList()Optional. The serving of the food.
repeated .google.devicesandservices.health.v4.Food.FoodServing servings = 20 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<FoodServing> |
|
getServingsOrBuilder(int index)
public abstract Food.FoodServingOrBuilder getServingsOrBuilder(int index)Optional. The serving of the food.
repeated .google.devicesandservices.health.v4.Food.FoodServing servings = 20 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Food.FoodServingOrBuilder |
|
getServingsOrBuilderList()
public abstract List<? extends Food.FoodServingOrBuilder> getServingsOrBuilderList()Optional. The serving of the food.
repeated .google.devicesandservices.health.v4.Food.FoodServing servings = 20 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.devicesandservices.health.v4.Food.FoodServingOrBuilder> |
|
getTotalCarbohydrate()
public abstract WeightQuantity getTotalCarbohydrate()Optional. Value representing the total carbohydrate of the food for the default serving.
.google.devicesandservices.health.v4.WeightQuantity total_carbohydrate = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WeightQuantity |
The totalCarbohydrate. |
getTotalCarbohydrateOrBuilder()
public abstract WeightQuantityOrBuilder getTotalCarbohydrateOrBuilder()Optional. Value representing the total carbohydrate of the food for the default serving.
.google.devicesandservices.health.v4.WeightQuantity total_carbohydrate = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WeightQuantityOrBuilder |
|
getTotalFat()
public abstract WeightQuantity getTotalFat()Optional. Value representing the total fat of the food for the default serving.
.google.devicesandservices.health.v4.WeightQuantity total_fat = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WeightQuantity |
The totalFat. |
getTotalFatOrBuilder()
public abstract WeightQuantityOrBuilder getTotalFatOrBuilder()Optional. Value representing the total fat of the food for the default serving.
.google.devicesandservices.health.v4.WeightQuantity total_fat = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
WeightQuantityOrBuilder |
|
hasDefaultServing()
public abstract boolean hasDefaultServing()Required. Value representing the default serving of the food.
.google.devicesandservices.health.v4.Food.FoodServing default_serving = 19 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the defaultServing field is set. |
hasEnergyAvg()
public abstract boolean hasEnergyAvg()Optional. Value representing the average energy of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_avg = 17 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the energyAvg field is set. |
hasEnergyFromFat()
public abstract boolean hasEnergyFromFat()Optional. Value representing the energy from fat of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_from_fat = 13 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the energyFromFat field is set. |
hasEnergyMax()
public abstract boolean hasEnergyMax()Optional. Value representing the maximum energy of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_max = 18 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the energyMax field is set. |
hasEnergyMin()
public abstract boolean hasEnergyMin()Optional. Value representing the minimum energy of the food for the default serving.
.google.devicesandservices.health.v4.EnergyQuantity energy_min = 16 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the energyMin field is set. |
hasTotalCarbohydrate()
public abstract boolean hasTotalCarbohydrate()Optional. Value representing the total carbohydrate of the food for the default serving.
.google.devicesandservices.health.v4.WeightQuantity total_carbohydrate = 14 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the totalCarbohydrate field is set. |
hasTotalFat()
public abstract boolean hasTotalFat()Optional. Value representing the total fat of the food for the default serving.
.google.devicesandservices.health.v4.WeightQuantity total_fat = 15 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the totalFat field is set. |