Show / Hide Table of Contents

Class Food

Represents a food item.

Inheritance
object
Food
Implements
IMessage<Food>
IEquatable<Food>
IDeepCloneable<Food>
IBufferMessage
IMessage
Inherited Members
object.GetHashCode()
object.GetType()
object.ToString()
Namespace: Google.DevicesAndServices.Health.V4
Assembly: Google.DevicesAndServices.Health.V4.dll
Syntax
public sealed class Food : IMessage<Food>, IEquatable<Food>, IDeepCloneable<Food>, IBufferMessage, IMessage

Constructors

Food()

Declaration
public Food()

Food(Food)

Declaration
public Food(Food other)
Parameters
Type Name Description
Food other

Properties

AccessLevel

Required. The access level of the food.

Declaration
public FoodAccessLevel AccessLevel { get; set; }
Property Value
Type Description
FoodAccessLevel

Brand

Optional. The brand of the food.

Declaration
public string Brand { get; set; }
Property Value
Type Description
string

DefaultServing

Required. Value representing the default serving of the food.

Declaration
public Food.Types.FoodServing DefaultServing { get; set; }
Property Value
Type Description
Food.Types.FoodServing

Description

Optional. The description of the food.

Declaration
public string Description { get; set; }
Property Value
Type Description
string

DisplayName

Required. The display name of the food.

Declaration
public string DisplayName { get; set; }
Property Value
Type Description
string

EnergyAvg

Optional. Value representing the average energy of the food for the default serving.

Declaration
public EnergyQuantity EnergyAvg { get; set; }
Property Value
Type Description
EnergyQuantity

EnergyFromFat

Optional. Value representing the energy from fat of the food for the default serving.

Declaration
public EnergyQuantity EnergyFromFat { get; set; }
Property Value
Type Description
EnergyQuantity

EnergyMax

Optional. Value representing the maximum energy of the food for the default serving.

Declaration
public EnergyQuantity EnergyMax { get; set; }
Property Value
Type Description
EnergyQuantity

EnergyMin

Optional. Value representing the minimum energy of the food for the default serving.

Declaration
public EnergyQuantity EnergyMin { get; set; }
Property Value
Type Description
EnergyQuantity

LanguageCode

Optional. The language code where the food is available in format xx-XX. Supported values are defined in [Settings.food_language_code][google.devicesandservices.health.v4.Settings.food_language_code].

Declaration
public string LanguageCode { get; set; }
Property Value
Type Description
string

MealType

Optional. The meal type associated with this food.

Declaration
public MealType MealType { get; set; }
Property Value
Type Description
MealType

Nutrients

Optional. Value representing the nutrients of the food for the default serving.

Declaration
public RepeatedField<NutrientQuantity> Nutrients { get; }
Property Value
Type Description
RepeatedField<NutrientQuantity>

Servings

Optional. The serving of the food.

Declaration
public RepeatedField<Food.Types.FoodServing> Servings { get; }
Property Value
Type Description
RepeatedField<Food.Types.FoodServing>

TotalCarbohydrate

Optional. Value representing the total carbohydrate of the food for the default serving.

Declaration
public WeightQuantity TotalCarbohydrate { get; set; }
Property Value
Type Description
WeightQuantity

TotalFat

Optional. Value representing the total fat of the food for the default serving.

Declaration
public WeightQuantity TotalFat { get; set; }
Property Value
Type Description
WeightQuantity
In this article
Back to top Generated by DocFX