Class protos.google.devicesandservices.health.v4beta.DailyRollupDataPoint (0.9.0)

Represents a DailyRollupDataPoint.

Implements

Package

@google-cloud/health

Constructors

(constructor)(properties)

constructor(properties?: google.devicesandservices.health.v4beta.IDailyRollupDataPoint);

Constructs a new DailyRollupDataPoint.

Parameter
Name Description
properties IDailyRollupDataPoint

Properties to set

Properties

activeEnergyBurned

public activeEnergyBurned?: (google.devicesandservices.health.v4beta.IActiveEnergyBurnedRollupValue|null);

DailyRollupDataPoint activeEnergyBurned.

activeMinutes

public activeMinutes?: (google.devicesandservices.health.v4beta.IActiveMinutesRollupValue|null);

DailyRollupDataPoint activeMinutes.

activeZoneMinutes

public activeZoneMinutes?: (google.devicesandservices.health.v4beta.IActiveZoneMinutesRollupValue|null);

DailyRollupDataPoint activeZoneMinutes.

activityLevel

public activityLevel?: (google.devicesandservices.health.v4beta.IActivityLevelRollupValue|null);

DailyRollupDataPoint activityLevel.

altitude

public altitude?: (google.devicesandservices.health.v4beta.IAltitudeRollupValue|null);

DailyRollupDataPoint altitude.

bloodGlucose

public bloodGlucose?: (google.devicesandservices.health.v4beta.IBloodGlucoseRollupValue|null);

DailyRollupDataPoint bloodGlucose.

bodyFat

public bodyFat?: (google.devicesandservices.health.v4beta.IBodyFatRollupValue|null);

DailyRollupDataPoint bodyFat.

caloriesInHeartRateZone

public caloriesInHeartRateZone?: (google.devicesandservices.health.v4beta.ICaloriesInHeartRateZoneRollupValue|null);

DailyRollupDataPoint caloriesInHeartRateZone.

civilEndTime

public civilEndTime?: (google.devicesandservices.health.v4beta.ICivilDateTime|null);

DailyRollupDataPoint civilEndTime.

civilStartTime

public civilStartTime?: (google.devicesandservices.health.v4beta.ICivilDateTime|null);

DailyRollupDataPoint civilStartTime.

coreBodyTemperature

public coreBodyTemperature?: (google.devicesandservices.health.v4beta.ICoreBodyTemperatureRollupValue|null);

DailyRollupDataPoint coreBodyTemperature.

distance

public distance?: (google.devicesandservices.health.v4beta.IDistanceRollupValue|null);

DailyRollupDataPoint distance.

floors

public floors?: (google.devicesandservices.health.v4beta.IFloorsRollupValue|null);

DailyRollupDataPoint floors.

heartRate

public heartRate?: (google.devicesandservices.health.v4beta.IHeartRateRollupValue|null);

DailyRollupDataPoint heartRate.

heartRateVariabilityPersonalRange

public heartRateVariabilityPersonalRange?: (google.devicesandservices.health.v4beta.IHeartRateVariabilityPersonalRangeRollupValue|null);

DailyRollupDataPoint heartRateVariabilityPersonalRange.

hydrationLog

public hydrationLog?: (google.devicesandservices.health.v4beta.IHydrationLogRollupValue|null);

DailyRollupDataPoint hydrationLog.

nutritionLog

public nutritionLog?: (google.devicesandservices.health.v4beta.INutritionLogRollupValue|null);

DailyRollupDataPoint nutritionLog.

restingHeartRatePersonalRange

public restingHeartRatePersonalRange?: (google.devicesandservices.health.v4beta.IRestingHeartRatePersonalRangeRollupValue|null);

DailyRollupDataPoint restingHeartRatePersonalRange.

runVo2Max

public runVo2Max?: (google.devicesandservices.health.v4beta.IRunVO2MaxRollupValue|null);

DailyRollupDataPoint runVo2Max.

sedentaryPeriod

public sedentaryPeriod?: (google.devicesandservices.health.v4beta.ISedentaryPeriodRollupValue|null);

DailyRollupDataPoint sedentaryPeriod.

skinTemperature

public skinTemperature?: (google.devicesandservices.health.v4beta.ISkinTemperatureRollupValue|null);

DailyRollupDataPoint skinTemperature.

steps

public steps?: (google.devicesandservices.health.v4beta.IStepsRollupValue|null);

DailyRollupDataPoint steps.

swimLengthsData

public swimLengthsData?: (google.devicesandservices.health.v4beta.ISwimLengthsDataRollupValue|null);

DailyRollupDataPoint swimLengthsData.

timeInHeartRateZone

public timeInHeartRateZone?: (google.devicesandservices.health.v4beta.ITimeInHeartRateZoneRollupValue|null);

DailyRollupDataPoint timeInHeartRateZone.

totalCalories

public totalCalories?: (google.devicesandservices.health.v4beta.ITotalCaloriesRollupValue|null);

DailyRollupDataPoint totalCalories.

value

public value?: ("steps"|"floors"|"heartRate"|"restingHeartRatePersonalRange"|"heartRateVariabilityPersonalRange"|"weight"|"altitude"|"distance"|"bodyFat"|"totalCalories"|"activeZoneMinutes"|"sedentaryPeriod"|"runVo2Max"|"caloriesInHeartRateZone"|"activityLevel"|"nutritionLog"|"hydrationLog"|"timeInHeartRateZone"|"activeMinutes"|"swimLengthsData"|"coreBodyTemperature"|"activeEnergyBurned"|"bloodGlucose"|"skinTemperature");

DailyRollupDataPoint value.

weight

public weight?: (google.devicesandservices.health.v4beta.IWeightRollupValue|null);

DailyRollupDataPoint weight.

Methods

create(properties)

public static create(properties?: google.devicesandservices.health.v4beta.IDailyRollupDataPoint): google.devicesandservices.health.v4beta.DailyRollupDataPoint;

Creates a new DailyRollupDataPoint instance using the specified properties.

Parameter
Name Description
properties IDailyRollupDataPoint

Properties to set

Returns
Type Description
DailyRollupDataPoint

DailyRollupDataPoint instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.devicesandservices.health.v4beta.DailyRollupDataPoint;

Decodes a DailyRollupDataPoint message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
DailyRollupDataPoint

DailyRollupDataPoint

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.devicesandservices.health.v4beta.DailyRollupDataPoint;

Decodes a DailyRollupDataPoint message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
DailyRollupDataPoint

DailyRollupDataPoint

encode(message, writer)

public static encode(message: google.devicesandservices.health.v4beta.IDailyRollupDataPoint, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified DailyRollupDataPoint message. Does not implicitly messages.

Parameters
Name Description
message IDailyRollupDataPoint

DailyRollupDataPoint message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.devicesandservices.health.v4beta.IDailyRollupDataPoint, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified DailyRollupDataPoint message, length delimited. Does not implicitly messages.

Parameters
Name Description
message IDailyRollupDataPoint

DailyRollupDataPoint message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.devicesandservices.health.v4beta.DailyRollupDataPoint;

Creates a DailyRollupDataPoint message from a plain object. Also converts values to their respective internal types.

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
DailyRollupDataPoint

DailyRollupDataPoint

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for DailyRollupDataPoint

Parameter
Name Description
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
Type Description
string

The default type url

toJSON()

public toJSON(): { [k: string]: any };

Converts this DailyRollupDataPoint to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.devicesandservices.health.v4beta.DailyRollupDataPoint, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from a DailyRollupDataPoint message. Also converts values to other types if specified.

Parameters
Name Description
message DailyRollupDataPoint

DailyRollupDataPoint

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies a DailyRollupDataPoint message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not