Show / Hide Table of Contents

Class FoodServing

Represents different properties and information about the serving of a specific food.

Inheritance
object
FoodServing
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 FoodServing : IDirectResponseSchema

Properties

Amount

Optional. Amount of food consumed, fractional values are supported.

Declaration
[JsonProperty("amount")]
public virtual double? Amount { get; set; }
Property Value
Type Description
double?

ETag

The ETag of the item.

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

FoodMeasurementUnit

Required. Food measurement unit

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

FoodMeasurementUnitDisplayName

Output only. Legacy measurement unit for serving size in singular form (e.g. "piece", "gram").

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

FoodMeasurementUnitDisplayNamePlural

Output only. Legacy measurement unit for serving size in plural form (e.g. "pieces", "grams").

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

Multiplier

Optional. Value representing the multiplier used to compute the energy when using this serving instead of the default serving.

Declaration
[JsonProperty("multiplier")]
public virtual double? Multiplier { get; set; }
Property Value
Type Description
double?

Implements

IDirectResponseSchema
In this article
Back to top Generated by DocFX