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

Represents a RollupDataPoint.

Implements

Package

@google-cloud/health

Constructors

(constructor)(properties)

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

Constructs a new RollupDataPoint.

Parameter
Name Description
properties IRollupDataPoint

Properties to set

Properties

activeEnergyBurned

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

RollupDataPoint activeEnergyBurned.

activeMinutes

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

RollupDataPoint activeMinutes.

activeZoneMinutes

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

RollupDataPoint activeZoneMinutes.

activityLevel

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

RollupDataPoint activityLevel.

altitude

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

RollupDataPoint altitude.

bloodGlucose

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

RollupDataPoint bloodGlucose.

bodyFat

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

RollupDataPoint bodyFat.

caloriesInHeartRateZone

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

RollupDataPoint caloriesInHeartRateZone.

coreBodyTemperature

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

RollupDataPoint coreBodyTemperature.

distance

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

RollupDataPoint distance.

endTime

public endTime?: (google.protobuf.ITimestamp|null);

RollupDataPoint endTime.

floors

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

RollupDataPoint floors.

heartRate

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

RollupDataPoint heartRate.

hydrationLog

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

RollupDataPoint hydrationLog.

nutritionLog

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

RollupDataPoint nutritionLog.

runVo2Max

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

RollupDataPoint runVo2Max.

sedentaryPeriod

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

RollupDataPoint sedentaryPeriod.

skinTemperature

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

RollupDataPoint skinTemperature.

startTime

public startTime?: (google.protobuf.ITimestamp|null);

RollupDataPoint startTime.

steps

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

RollupDataPoint steps.

swimLengthsData

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

RollupDataPoint swimLengthsData.

timeInHeartRateZone

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

RollupDataPoint timeInHeartRateZone.

totalCalories

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

RollupDataPoint totalCalories.

value

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

RollupDataPoint value.

weight

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

RollupDataPoint weight.

Methods

create(properties)

public static create(properties?: google.devicesandservices.health.v4beta.IRollupDataPoint): google.devicesandservices.health.v4beta.RollupDataPoint;

Creates a new RollupDataPoint instance using the specified properties.

Parameter
Name Description
properties IRollupDataPoint

Properties to set

Returns
Type Description
RollupDataPoint

RollupDataPoint instance

decode(reader, length)

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

Decodes a RollupDataPoint 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
RollupDataPoint

RollupDataPoint

decodeDelimited(reader)

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

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
RollupDataPoint

RollupDataPoint

encode(message, writer)

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

Encodes the specified RollupDataPoint message. Does not implicitly messages.

Parameters
Name Description
message IRollupDataPoint

RollupDataPoint 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.IRollupDataPoint, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IRollupDataPoint

RollupDataPoint 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.RollupDataPoint;

Creates a RollupDataPoint 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
RollupDataPoint

RollupDataPoint

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for RollupDataPoint

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 RollupDataPoint to JSON.

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

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message RollupDataPoint

RollupDataPoint

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 RollupDataPoint 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