Show / Hide Table of Contents

Class NutritionLog.Types.Serving

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

Inheritance
object
NutritionLog.Types.Serving
Implements
IMessage<NutritionLog.Types.Serving>
IEquatable<NutritionLog.Types.Serving>
IDeepCloneable<NutritionLog.Types.Serving>
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 NutritionLog.Types.Serving : IMessage<NutritionLog.Types.Serving>, IEquatable<NutritionLog.Types.Serving>, IDeepCloneable<NutritionLog.Types.Serving>, IBufferMessage, IMessage

Constructors

Serving()

Declaration
public Serving()

Serving(Serving)

Declaration
public Serving(NutritionLog.Types.Serving other)
Parameters
Type Name Description
NutritionLog.Types.Serving other

Properties

Amount

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

Declaration
public double Amount { get; set; }
Property Value
Type Description
double

FoodMeasurementUnit

Required. Food measurement unit

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

FoodMeasurementUnitAsDataPointName

DataPointName-typed view over the FoodMeasurementUnit resource name property.

Declaration
public DataPointName FoodMeasurementUnitAsDataPointName { get; set; }
Property Value
Type Description
DataPointName

FoodMeasurementUnitDisplayName

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

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

HasAmount

Gets whether the "amount" field is set

Declaration
public bool HasAmount { get; }
Property Value
Type Description
bool
In this article
Back to top Generated by DocFX