Show / Hide Table of Contents

Class Food

Represents a food item.

Inheritance
object
Food
Implements
IDirectResponseSchema
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Google.Apis.GoogleHealthAPI.v4.Data
Assembly: Google.Apis.GoogleHealthAPI.v4.dll
Syntax
public class Food : IDirectResponseSchema

Properties

AccessLevel

Required. The access level of the food.

Declaration
[JsonProperty("accessLevel")]
public virtual string AccessLevel { get; set; }
Property Value
Type Description
string

Brand

Optional. The brand of the food.

Declaration
[JsonProperty("brand")]
public virtual string Brand { get; set; }
Property Value
Type Description
string

DefaultServing

Required. Value representing the default serving of the food.

Declaration
[JsonProperty("defaultServing")]
public virtual FoodServing DefaultServing { get; set; }
Property Value
Type Description
FoodServing

Description

Optional. The description of the food.

Declaration
[JsonProperty("description")]
public virtual string Description { get; set; }
Property Value
Type Description
string

DisplayName

Required. The display name of the food.

Declaration
[JsonProperty("displayName")]
public virtual string DisplayName { get; set; }
Property Value
Type Description
string

ETag

The ETag of the item.

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

EnergyAvg

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

Declaration
[JsonProperty("energyAvg")]
public virtual 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
[JsonProperty("energyFromFat")]
public virtual EnergyQuantity EnergyFromFat { get; set; }
Property Value
Type Description
EnergyQuantity

EnergyMax

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

Declaration
[JsonProperty("energyMax")]
public virtual EnergyQuantity EnergyMax { get; set; }
Property Value
Type Description
EnergyQuantity

EnergyMin

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

Declaration
[JsonProperty("energyMin")]
public virtual 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.

Declaration
[JsonProperty("languageCode")]
public virtual string LanguageCode { get; set; }
Property Value
Type Description
string

MealType

Optional. The meal type associated with this food.

Declaration
[JsonProperty("mealType")]
public virtual string MealType { get; set; }
Property Value
Type Description
string

Nutrients

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

Declaration
[JsonProperty("nutrients")]
public virtual IList<NutrientQuantity> Nutrients { get; set; }
Property Value
Type Description
IList<NutrientQuantity>

Servings

Optional. The serving of the food.

Declaration
[JsonProperty("servings")]
public virtual IList<FoodServing> Servings { get; set; }
Property Value
Type Description
IList<FoodServing>

TotalCarbohydrate

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

Declaration
[JsonProperty("totalCarbohydrate")]
public virtual WeightQuantity TotalCarbohydrate { get; set; }
Property Value
Type Description
WeightQuantity

TotalFat

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

Declaration
[JsonProperty("totalFat")]
public virtual WeightQuantity TotalFat { get; set; }
Property Value
Type Description
WeightQuantity

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX