NAME

Google::Devicesandservices::Health::V4::DataModel - Compiled Protocol Buffers messages for google/devicesandservices/health/v4/data_model.proto

SYNOPSIS

use Google::Devicesandservices::Health::V4::DataModel;

my $msg = Google::Devicesandservices::Health::V4::DataModel::ActiveZoneMinutes->new({
    interval => $interval,
    heart_rate_zone => $heart_rate_zone,
    active_zone_minutes => $active_zone_minutes,
});

# Read or update a field
my $val = $msg->interval();

# Binary wire-format roundtrip
my $bytes   = $msg->serialize();
my $decoded = Google::Devicesandservices::Health::V4::DataModel::ActiveZoneMinutes->parse($bytes);

# Canonical ProtoJSON
my $json = $msg->to_json();

DESCRIPTION

Auto-generated Protobuf message classes compiled from google/devicesandservices/health/v4/data_model.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().

MESSAGES

Google::Devicesandservices::Health::V4::DataModel::ActiveZoneMinutes

Record of active zone minutes in a given time interval.

Inherits from Protobuf::Message.

Accessors

Enum: ActiveZoneMinutes::HeartRateZone

  • HEART_RATE_ZONE_UNSPECIFIED => 0

  • FAT_BURN => 1

  • CARDIO => 2

  • PEAK => 3

Google::Devicesandservices::Health::V4::DataModel::ActiveZoneMinutesRollupValue

Represents the result of the rollup of the active zone minutes data type.

Inherits from Protobuf::Message.

Accessors

  • $msg->sum_in_cardio_heart_zone() / $msg->sum_in_cardio_heart_zone($value)

    Type: Int64

    Active zone minutes in `HeartRateZone.CARDIO`.

  • $msg->sum_in_peak_heart_zone() / $msg->sum_in_peak_heart_zone($value)

    Type: Int64

    Active zone minutes in `HeartRateZone.PEAK`.

  • $msg->sum_in_fat_burn_heart_zone() / $msg->sum_in_fat_burn_heart_zone($value)

    Type: Int64

    Active zone minutes in `HeartRateZone.FAT_BURN`.

Google::Devicesandservices::Health::V4::DataModel::ActiveMinutes

Record of active minutes in a given time interval.

Inherits from Protobuf::Message.

Accessors

Enum: ActiveMinutes::ActivityLevel

  • ACTIVITY_LEVEL_UNSPECIFIED => 0

  • LIGHT => 1

  • MODERATE => 2

  • VIGOROUS => 3

Google::Devicesandservices::Health::V4::DataModel::ActiveMinutesRollupValue

Represents the result of the rollup of the active minutes data type.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::ActivityLevel

Internal type to capture activity level during a certain time interval.

Inherits from Protobuf::Message.

Accessors

Enum: ActivityLevel::ActivityLevelType

  • ACTIVITY_LEVEL_TYPE_UNSPECIFIED => 0

  • SEDENTARY => 1

  • LIGHTLY_ACTIVE => 2

  • MODERATELY_ACTIVE => 3

  • VERY_ACTIVE => 4

Google::Devicesandservices::Health::V4::DataModel::ActivityLevelRollupValue

Represents the result of the rollup of the activity level data type.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::Altitude

Captures the altitude gain (i.e. deltas), and not level above sea, for a user in millimeters.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::BasalEnergyBurned

Number of calories burned due to basal metabolic rate (BMR) over a period of time.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::BodyFat

Body fat measurement.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::BodyFatRollupValue

Represents the result of the rollup of the body fat data type.

Inherits from Protobuf::Message.

Accessors

  • $msg->body_fat_percentage_avg() / $msg->body_fat_percentage_avg($value)

    Type: Double

    Average body fat percentage.

Google::Devicesandservices::Health::V4::DataModel::CoreBodyTemperature

Core body temperature measurement, distinct from peripheral body temperature, reflects the temperature of the body's internal organs.

Inherits from Protobuf::Message.

Accessors

Enum: CoreBodyTemperature::MeasurementLocation

  • MEASUREMENT_LOCATION_UNSPECIFIED => 0

  • OTHER => 1

  • ARMPIT => 2

  • BODY => 3

  • EAR => 4

  • FINGER => 5

  • GASTRO_INTESTINAL => 6

  • MOUTH => 7

  • RECTUM => 8

  • TOE => 9

  • EAR_DRUM => 10

  • TEMPORAL_ARTERY => 11

  • FOREHEAD => 12

  • URINARY_BLADDER => 13

  • NASAL => 14

  • NASOPHARYNGEAL => 15

  • WRIST => 16

  • VAGINA => 17

Google::Devicesandservices::Health::V4::DataModel::CoreBodyTemperatureRollupValue

Represents the result of the rollup of the core body temperature data type.

Inherits from Protobuf::Message.

Accessors

  • $msg->temperature_celsius_avg() / $msg->temperature_celsius_avg($value)

    Type: Double

    Average core body temperature in Celsius.

  • $msg->temperature_celsius_max() / $msg->temperature_celsius_max($value)

    Type: Double

    Maximum core body temperature in Celsius.

  • $msg->temperature_celsius_min() / $msg->temperature_celsius_min($value)

    Type: Double

    Minimum core body temperature in Celsius.

Google::Devicesandservices::Health::V4::DataModel::CaloriesInHeartRateZoneRollupValue

Represents the result of the rollup of the calories in heart rate zone data type.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::DailyHeartRateZones

User's heart rate zone thresholds based on the Karvonen algorithm for a specific day.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::DailyHeartRateVariability

Represents the daily heart rate variability data type.

At least one of the following fields must be set:

- `average_heart_rate_variability_milliseconds` - `non_rem_heart_rate_beats_per_minute` - `entropy` - `deep_sleep_root_mean_square_of_successive_differences_milliseconds`

Inherits from Protobuf::Message.

Accessors

  • $msg->date() / $msg->date($value)

    Type: Message (Google::Type::Date::Date)

    Required. Date (in the user's timezone) of heart rate variability measurement.

  • $msg->average_heart_rate_variability_milliseconds() / $msg->average_heart_rate_variability_milliseconds($value)

    Type: Double

    Optional. A user's average heart rate variability calculated using the root mean square of successive differences (RMSSD) in times between heartbeats.

  • $msg->non_rem_heart_rate_beats_per_minute() / $msg->non_rem_heart_rate_beats_per_minute($value)

    Type: Int64

    Optional. Non-REM heart rate

  • $msg->entropy() / $msg->entropy($value)

    Type: Double

    Optional. The Shanon entropy of heartbeat intervals. Entropy quantifies randomness or disorder in a system. High entropy indicates high HRV. Entropy is measured from the histogram of time interval between successive heart beats values measured during sleep.

  • $msg->deep_sleep_root_mean_square_of_successive_differences_milliseconds() / $msg->deep_sleep_root_mean_square_of_successive_differences_milliseconds($value)

    Type: Double

    Optional. The root mean square of successive differences (RMSSD) value during deep sleep.

Google::Devicesandservices::Health::V4::DataModel::DailyRespiratoryRate

A daily average respiratory rate (breaths per minute) for a day of the year. One data point per day calculated for the main sleep.

Inherits from Protobuf::Message.

Accessors

  • $msg->date() / $msg->date($value)

    Type: Message (Google::Type::Date::Date)

    Required. The date on which the respiratory rate was measured.

  • $msg->breaths_per_minute() / $msg->breaths_per_minute($value)

    Type: Double

    Required. The average number of breaths taken per minute.

Google::Devicesandservices::Health::V4::DataModel::DailyOxygenSaturation

A daily oxygen saturation (SpO2) record. Represents the user's daily oxygen saturation summary, typically calculated during sleep.

Inherits from Protobuf::Message.

Accessors

  • $msg->date() / $msg->date($value)

    Type: Message (Google::Type::Date::Date)

    Required. Date (in user's timezone) of the daily oxygen saturation record.

  • $msg->average_percentage() / $msg->average_percentage($value)

    Type: Double

    Required. The average value of the oxygen saturation samples during the sleep. Must be in the range `[0, 100]`.

  • $msg->lower_bound_percentage() / $msg->lower_bound_percentage($value)

    Type: Double

    Required. The lower bound of the confidence interval of oxygen saturation samples during sleep. Must be in the range `[0, 100]`.

  • $msg->upper_bound_percentage() / $msg->upper_bound_percentage($value)

    Type: Double

    Required. The upper bound of the confidence interval of oxygen saturation samples during sleep. Must be in the range `[0, 100]`.

  • $msg->standard_deviation_percentage() / $msg->standard_deviation_percentage($value)

    Type: Double

    Optional. Standard deviation of the daily oxygen saturation averages from the past 7-30 days.

Google::Devicesandservices::Health::V4::DataModel::DailyRestingHeartRate

Measures the daily resting heart rate for a user, calculated using the all day heart rate measurements.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::DailySleepTemperatureDerivations

Provides derived sleep temperature values, calculated from skin or internal device temperature readings during sleep.

Inherits from Protobuf::Message.

Accessors

  • $msg->date() / $msg->date($value)

    Type: Message (Google::Type::Date::Date)

    Required. Date for which the sleep temperature derivations are calculated.

  • $msg->nightly_temperature_celsius() / $msg->nightly_temperature_celsius($value)

    Type: Double

    Required. The user's nightly skin temperature. It is the mean of skin temperature samples taken from the user’s sleep.

  • $msg->baseline_temperature_celsius() / $msg->baseline_temperature_celsius($value)

    Type: Double

    Optional. The user's baseline skin temperature. It is the median of the user's nightly skin temperature over the past 30 days.

  • $msg->relative_nightly_stddev_30d_celsius() / $msg->relative_nightly_stddev_30d_celsius($value)

    Type: Double

    Optional. The standard deviation of the user’s relative nightly skin temperature (temperature - baseline) over the past 30 days.

Google::Devicesandservices::Health::V4::DataModel::DailyVO2Max

Contains a daily summary of the user's VO2 max (cardio fitness score), which is the maximum rate of oxygen the body can use during exercise.

Inherits from Protobuf::Message.

Accessors

  • $msg->date() / $msg->date($value)

    Type: Message (Google::Type::Date::Date)

    Required. The date for which the Daily VO2 max was measured.

  • $msg->vo2_max() / $msg->vo2_max($value)

    Type: Double

    Required. Daily VO2 max value measured as in ml consumed oxygen / kg of body weight / min. Must be in the range `[0, 100]`.

  • $msg->estimated() / $msg->estimated($value)

    Type: Bool

    Optional. An estimated field is added to indicate when the confidence has decreased sufficiently to consider the value an estimation.

  • $msg->cardio_fitness_level() / $msg->cardio_fitness_level($value)

    Type: Enum (Google::Devicesandservices::Health::V4::DailyVO2Max::CardioFitnessLevel)

    Optional. Represents the user's cardio fitness level based on their VO2 max.

  • $msg->vo2_max_covariance() / $msg->vo2_max_covariance($value)

    Type: Double

    Optional. The covariance of the VO2 max value.

Enum: DailyVO2Max::CardioFitnessLevel

  • CARDIO_FITNESS_LEVEL_UNSPECIFIED => 0

  • POOR => 1

  • FAIR => 2

  • AVERAGE => 3

  • GOOD => 4

  • VERY_GOOD => 5

  • EXCELLENT => 6

Google::Devicesandservices::Health::V4::DataModel::Distance

Distance traveled over an interval of time.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::DistanceRollupValue

Result of the rollup of the user's distance.

Inherits from Protobuf::Message.

Accessors

  • $msg->millimeters_sum() / $msg->millimeters_sum($value)

    Type: Int64

    Sum of the distance in millimeters.

Google::Devicesandservices::Health::V4::DataModel::Electrocardiogram

Represents an Electrocardiogram (ECG) measurement session. This data type is based on SaMD feature and any changes to it may require additional review.

Inherits from Protobuf::Message.

Accessors

  • $msg->interval() / $msg->interval($value)

    Type: Message (Google::Devicesandservices::Health::V4::DataCoordinates::SessionTimeInterval)

    Required. Observed interval.

    NOTE: Historical ECG data lacks timezone offsets, so `start_utc_offset` and `end_utc_offset` will be missing or default to zero. As a result, the civil time fields within this interval will default to UTC. It is recommended to use physical time fields instead for accurate time referencing.

    NOTE: The `start_time` and `end_time` of the interval are equal, representing the reading time.

  • $msg->beats_per_minute_avg() / $msg->beats_per_minute_avg($value)

    Type: Int64

    Optional. Average heart rate recorded during ECG reading in beats per minute.

  • $msg->result_classification() / $msg->result_classification($value)

    Type: Enum (Google::Devicesandservices::Health::V4::Electrocardiogram::ResultClassification)

    Optional. The result classification of the ECG reading.

  • $msg->waveform_samples() / $msg->waveform_samples($value)

    Type: SInt32

    Optional. An array of voltage values representing lead I ECG values. Each sample represents voltage difference in ECG graph. The first value in array corresponds to the start of the reading.

  • $msg->sampling_frequency_hertz() / $msg->sampling_frequency_hertz($value)

    Type: Int32

    Optional. The sampling frequency of waveform samples in hertz.

  • $msg->millivolts_scaling_factor() / $msg->millivolts_scaling_factor($value)

    Type: Int32

    Optional. The factor by which to divide waveform samples to get voltage in millivolts: millivolts = waveform_sample / millivolts_scaling_factor.

  • $msg->lead_number() / $msg->lead_number($value)

    Type: Int32

    Optional. The number of leads used for ECG reading.

  • $msg->medical_device_info() / $msg->medical_device_info($value)

    Type: Message (Google::Devicesandservices::Health::V4::MedicalDeviceInfo::MedicalDeviceInfo)

    Output only. The meta information for the compatible device used to conduct the measurement.

    ECG measurements typically populate `firmware_version`, `feature_version`, and `device_model`.

Enum: Electrocardiogram::ResultClassification

  • RESULT_CLASSIFICATION_UNSPECIFIED => 0

  • NORMAL_SINUS_RHYTHM => 1

  • ATRIAL_FIBRILLATION => 2

  • INCONCLUSIVE => 3

  • INCONCLUSIVE_HIGH_HEART_RATE => 4

  • INCONCLUSIVE_LOW_HEART_RATE => 5

  • UNREADABLE => 6

  • NOT_ANALYZED => 7

Google::Devicesandservices::Health::V4::DataModel::Exercise

An exercise that stores information about a physical activity.

Inherits from Protobuf::Message.

Accessors

Enum: Exercise::ExerciseType

  • EXERCISE_TYPE_UNSPECIFIED => 0

  • AEROBIC_WORKOUT => 13

  • ARCHERY => 47

  • ASSAULT_BIKE => 164

  • BACKPACKING => 181

  • BADMINTON => 48

  • BALLET => 103

  • BALLROOM_DANCE => 156

  • BARRE_CLASS => 49

  • BASEBALL => 50

  • BASKETBALL => 51

  • BIKING => 3

  • BILLIARDS => 180

  • BODY_WEIGHT => 149

  • BOOTCAMP => 14

  • BOWLING => 52

  • BOXING => 53

  • BREAKDANCING => 157

  • CALISTHENICS => 54

  • CANOEING => 15

  • CARDIO_SCULPT => 129

  • CARDIO_WORKOUT => 140

  • CARPENTRY => 108

  • CHEERLEADING => 165

  • CIRCUIT_TRAINING => 16

  • CLEANING => 105

  • CLIMBING => 55

  • CORE_TRAINING => 17

  • CRICKET => 56

  • CROQUET => 111

  • CROSS_COUNTRY_SKI => 18

  • CROSS_TRAINING => 57

  • CROSSFIT => 19

  • CURLING => 58

  • DANCING => 20

  • DIVING => 59

  • ELECTRIC_BIKE => 152

  • ELECTRIC_SCOOTER => 168

  • ELLIPTICAL => 21

  • EQUESTRIAN_SPORTS => 60

  • EXERCISE_CLASS => 61

  • FENCING => 62

  • FIELD_HOCKEY => 113

  • FISHING => 63

  • FITNESS_GAMING => 64

  • FOILING => 175

  • FOOTBALL_AMERICAN => 65

  • FOOTBALL_AUSTRALIAN => 66

  • FREE_WEIGHTS => 148

  • FRISBEE_PLAYING_GENERAL => 67

  • FUNCTIONAL_STRENGTH_TRAINING => 68

  • GARDENING => 107

  • GOLF => 22

  • GYMNASTICS => 69

  • HANDBALL => 70

  • HAND_CYCLING => 71

  • HIIT => 9

  • HIKING => 5

  • HIP_HOP => 158

  • HOCKEY => 72

  • HOEING => 109

  • HOUSEHOLD_CHORES => 137

  • HUNTING => 73

  • ICE_SKATING => 127

  • INCLINE_RUN => 142

  • INCLINE_WALK => 146

  • INDOOR_CLIMBING => 23

  • INTERVAL_WORKOUT => 24

  • JAZZ_DANCE => 154

  • JIU_JITSU => 160

  • JUMPING_ROPE => 74

  • KARATE => 159

  • KAYAKING => 25

  • KICKBOXING => 26

  • KITESURFING => 172

  • LACROSSE => 75

  • MARTIAL_ARTS => 27

  • MEDITATE => 28

  • MODERN_DANCE => 153

  • MOTOCROSS => 114

  • MOTORCYCLE => 121

  • MOUNTAIN_BIKE => 128

  • MOWING_LAWN => 106

  • MUAY_THAI => 162

  • MULTISPORT => 76

  • MUSICAL_PERFORMANCE => 163

  • NORDIC_WALKING => 145

  • ORIENTEERING => 115

  • OTHER => 12

  • OUTDOOR_BIKE => 29

  • OUTDOOR_WORKOUT => 30

  • PADDLEBOARDING => 31

  • PADEL => 176

  • PAINTING => 170

  • PARAGLIDING => 78

  • PARKOUR => 166

  • PICKELBALL => 79

  • PILATES => 7

  • POLO => 116

  • POWERLIFTING => 32

  • POWER_WALKING => 143

  • RACKET_SPORTS => 169

  • RACQUETBALL => 80

  • RESISTANCE_BANDS => 151

  • ROCK_CLIMBING => 123

  • ROLLERBLADING => 33

  • ROLLER_SKATING => 118

  • ROWING => 81

  • ROWING_MACHINE => 34

  • RUCKING => 144

  • RUGBY => 82

  • RUNNING => 1

  • SAILING => 83

  • SCOOTERING => 167

  • SCUBA_DIVING => 84

  • SHOOTING => 104

  • SHOVELING => 171

  • SKATEBOARDING => 117

  • SKATING => 35

  • SKIING => 36

  • SKYDIVING => 182

  • SNORKELING => 37

  • SNOWBOARDING => 38

  • SNOWMOBILING => 179

  • SNOWSHOEING => 85

  • SNOW_SPORT => 86

  • SOCCER => 87

  • SOFTBALL => 88

  • SPEED_SKATING => 178

  • SPINNING => 39

  • SPORT => 40

  • SQUASH => 89

  • STAIRCLIMBER => 41

  • STATIONARY_BIKE => 139

  • STEP_TRAINING => 90

  • STRENGTH_TRAINING => 11

  • STRETCHING => 42

  • STROLLER_WALK => 122

  • SURFING => 43

  • SWIMMING => 4

  • SWIMMING_OPEN_WATER => 91

  • SWIMMING_POOL => 101

  • SYNCHRONIZED_SWIMMING => 177

  • TABATA_WORKOUT => 130

  • TABLE_TENNIS => 92

  • TAEKWONDO => 161

  • TAI_CHI => 93

  • TANGO => 155

  • TENNIS => 44

  • TRACK_AND_FIELD => 94

  • TRAIL_RUN => 141

  • TRAMPOLINE => 119

  • TREADMILL => 45

  • TREADMILL_WALK => 138

  • TRX => 131

  • ULTIMATE_FRISBEE => 112

  • UNICYCLING => 102

  • VOLLEYBALL => 95

  • VOLLEYBALL_BEACH => 120

  • WAKEBOARDING => 173

  • WALKING => 2

  • WALK_WITH_WEIGHTS => 147

  • WATER_AEROBICS => 96

  • WATER_JOGGING => 126

  • WATER_POLO => 97

  • WATER_SKIING => 124

  • WATER_SPORT => 98

  • WATER_VOLLEYBALL => 125

  • WEEDING => 110

  • WEIGHTLIFTING => 10

  • WEIGHT_MACHINES => 150

  • WEIGHTS => 46

  • WHEELCHAIR => 99

  • WINDSURFING => 174

  • WORKOUT => 8

  • WRESTLING => 100

  • YOGA => 6

  • YOGA_BIKRAM => 132

  • YOGA_HATHA => 133

  • YOGA_POWER => 134

  • YOGA_VINYASA => 135

  • ZUMBA => 136

Google::Devicesandservices::Health::V4::DataModel::Floors

Gained elevation measured in floors over the time interval

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::FloorsRollupValue

Represents the result of the rollup of the user's floors.

Inherits from Protobuf::Message.

Accessors

  • $msg->count_sum() / $msg->count_sum($value)

    Type: Int64

    Sum of the floors count.

Google::Devicesandservices::Health::V4::DataModel::AltitudeRollupValue

Represents the result of the rollup of the user's altitude.

Inherits from Protobuf::Message.

Accessors

  • $msg->gain_millimeters_sum() / $msg->gain_millimeters_sum($value)

    Type: Int64

    Sum of the altitude gain in millimeters.

Google::Devicesandservices::Health::V4::DataModel::HeartRate

A heart rate measurement.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::HeartRateRollupValue

Represents the result of the rollup of the heart rate data type.

Inherits from Protobuf::Message.

Accessors

  • $msg->beats_per_minute_avg() / $msg->beats_per_minute_avg($value)

    Type: Double

    The average heart rate value in the interval.

  • $msg->beats_per_minute_max() / $msg->beats_per_minute_max($value)

    Type: Double

    The maximum heart rate value in the interval.

  • $msg->beats_per_minute_min() / $msg->beats_per_minute_min($value)

    Type: Double

    The minimum heart rate value in the interval.

Google::Devicesandservices::Health::V4::DataModel::RunVO2MaxRollupValue

Represents the result of the rollup of the user's daily heart rate variability personal range.

Inherits from Protobuf::Message.

Accessors

  • $msg->rate_min() / $msg->rate_min($value)

    Type: Double

    Minimum value of run VO2 max in the interval..

  • $msg->rate_max() / $msg->rate_max($value)

    Type: Double

    Maximum value of run VO2 max in the interval.

  • $msg->rate_avg() / $msg->rate_avg($value)

    Type: Double

    Average value of run VO2 max in the interval.

Google::Devicesandservices::Health::V4::DataModel::RunVO2Max

VO2 max value calculated based on the user's running activity. Value stored in ml/kg/min.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::HeartRateVariabilityPersonalRangeRollupValue

Represents the result of the rollup of the user's daily heart rate variability personal range.

Inherits from Protobuf::Message.

Accessors

  • $msg->average_heart_rate_variability_milliseconds_min() / $msg->average_heart_rate_variability_milliseconds_min($value)

    Type: Double

    The lower bound of the user's average heart rate variability personal range.

  • $msg->average_heart_rate_variability_milliseconds_max() / $msg->average_heart_rate_variability_milliseconds_max($value)

    Type: Double

    The upper bound of the user's average heart rate variability personal range.

Google::Devicesandservices::Health::V4::DataModel::Height

Body height measurement.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::HeartRateVariability

Captures user's heart rate variability (HRV) as measured by the root mean square of successive differences (RMSSD) between normal heartbeats or by standard deviation of the inter-beat intervals (SDNN).

Inherits from Protobuf::Message.

Accessors

  • $msg->sample_time() / $msg->sample_time($value)

    Type: Message (Google::Devicesandservices::Health::V4::DataCoordinates::ObservationSampleTime)

    Required. The time of the heart rate variability measurement.

  • $msg->root_mean_square_of_successive_differences_milliseconds() / $msg->root_mean_square_of_successive_differences_milliseconds($value)

    Type: Double

    Optional. The root mean square of successive differences between normal heartbeats. This is a measure of heart rate variability used by Google Health. Must be in the range `[1, 200]`.

  • $msg->standard_deviation_milliseconds() / $msg->standard_deviation_milliseconds($value)

    Type: Double

    Optional. The standard deviation of the heart rate variability measurement.

  • $msg->metadata() / $msg->metadata($value)

    Type: Message (Google::Devicesandservices::Health::V4::DataModel::HeartRateVariability::HeartRateVariabilityMetadata)

    Optional. Additional information about the heart rate variability measurement.

Google::Devicesandservices::Health::V4::DataModel::VolumeQuantity

Represents the volume quantity.

Inherits from Protobuf::Message.

Accessors

  • $msg->milliliters() / $msg->milliliters($value)

    Type: Double

    Required. Value representing the volume in milliliters. Must be in the range `[0, 100000]`.

  • $msg->user_provided_unit() / $msg->user_provided_unit($value)

    Type: Enum (Google::Devicesandservices::Health::V4::VolumeUnit)

    Optional. Value representing the user provided unit, used only for user-facing input and display purposes. In the API format, all volume quantities are converted to milliliters.

Google::Devicesandservices::Health::V4::DataModel::HydrationLog

Holds information about a user logged hydration.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::HydrationLogRollupValue

Represents the result of the rollup of the hydration log data type.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::IrregularRhythmNotification

Represents an Irregular Rhythm Notification alert, indicating a potential sign of atrial fibrillation (AFib). This data type is based on SaMD feature and any changes to it may require additional review.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::MetricsSummary

Summary metrics for an exercise.

Inherits from Protobuf::Message.

Accessors

  • $msg->calories_kcal() / $msg->calories_kcal($value)

    Type: Double

    Optional. Total calories burned by the user during the exercise.

  • $msg->distance_millimeters() / $msg->distance_millimeters($value)

    Type: Double

    Optional. Total distance covered by the user during the exercise.

  • $msg->steps() / $msg->steps($value)

    Type: Int64

    Optional. Total steps taken during the exercise.

  • $msg->average_speed_millimeters_per_second() / $msg->average_speed_millimeters_per_second($value)

    Type: Double

    Optional. Average speed in millimeters per second.

  • $msg->average_pace_seconds_per_meter() / $msg->average_pace_seconds_per_meter($value)

    Type: Double

    Optional. Average pace in seconds per meter.

  • $msg->average_heart_rate_beats_per_minute() / $msg->average_heart_rate_beats_per_minute($value)

    Type: Int64

    Optional. Average heart rate during the exercise.

  • $msg->elevation_gain_millimeters() / $msg->elevation_gain_millimeters($value)

    Type: Double

    Optional. Total elevation gain during the exercise.

  • $msg->active_zone_minutes() / $msg->active_zone_minutes($value)

    Type: Int64

    Optional. Total active zone minutes for the exercise.

  • $msg->run_vo2_max() / $msg->run_vo2_max($value)

    Type: Double

    Optional. Run VO2 max value for the exercise. Only present in the running exercises at the top level as in the summary of the whole exercise.

  • $msg->total_swim_lengths() / $msg->total_swim_lengths($value)

    Type: Double

    Optional. Number of full pool lengths completed during the exercise. Only present in the swimming exercises at the top level as in the summary of the whole exercise.

  • $msg->heart_rate_zone_durations() / $msg->heart_rate_zone_durations($value)

    Type: Message (Google::Devicesandservices::Health::V4::DataModel::MetricsSummary::TimeInHeartRateZones)

    Optional. Time spent in each heart rate zone.

  • $msg->mobility_metrics() / $msg->mobility_metrics($value)

    Type: Message (Google::Devicesandservices::Health::V4::DataModel::MetricsSummary::MobilityMetrics)

    Optional. Mobility workouts specific metrics. Only present in the advanced running exercises.

Google::Devicesandservices::Health::V4::DataModel::WeightQuantity

Represents the weight quantity.

Inherits from Protobuf::Message.

Accessors

  • $msg->grams() / $msg->grams($value)

    Type: Double

    Required. The weight value in grams. Must be in the range `[0, 100000]`.

  • $msg->user_provided_unit() / $msg->user_provided_unit($value)

    Type: Enum (Google::Devicesandservices::Health::V4::WeightUnit)

    Optional. Value representing the user provided unit.

Google::Devicesandservices::Health::V4::DataModel::EnergyQuantity

Represents the energy quantity.

Inherits from Protobuf::Message.

Accessors

  • $msg->kcal() / $msg->kcal($value)

    Type: Double

    Required. The energy value in kilocalories. Must be in the range `[0, 100000]`.

  • $msg->user_provided_unit() / $msg->user_provided_unit($value)

    Type: Enum (Google::Devicesandservices::Health::V4::EnergyUnit)

    Optional. Value representing the user provided unit.

Google::Devicesandservices::Health::V4::DataModel::NutrientQuantity

Represents the quantity of a nutrient.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::NutritionLog

Holds information about food logged by a user.

There are two ways of creating a nutrition log based on the food type: 1. Identified food: Using the food field, which is a reference to a Food resource. In this case fields `nutrients`, `energy`, `energy_from_fat`, `total_carbohydrate`, `total_fat`, `food_display_name` will be populated based on the referenced food. 2. Anonymous food: Using the `food_display_name` field and setting the `nutrients`, `energy`, `energy_from_fat`, `total_carbohydrate`, `total_fat` fields manually.

The identified food is preferred over the anonymous food. Nutrition logs created from anonymous food are not editable.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::Food

Represents a food item.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::NutritionLogRollupValue

Represents the result of the rollup of the nutrition log data type.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::OxygenSaturation

Captures the user's instantaneous oxygen saturation percentage (SpO2).

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::RestingHeartRatePersonalRangeRollupValue

Represents the rollup value for the daily resting heart rate data type.

Inherits from Protobuf::Message.

Accessors

  • $msg->beats_per_minute_min() / $msg->beats_per_minute_min($value)

    Type: Double

    The lower bound of the user's daily resting heart rate personal range.

  • $msg->beats_per_minute_max() / $msg->beats_per_minute_max($value)

    Type: Double

    The upper bound of the user's daily resting heart rate personal range.

Google::Devicesandservices::Health::V4::DataModel::FoodMeasurementUnit

Represents a food measurement unit.

Inherits from Protobuf::Message.

Accessors

  • $msg->display_name() / $msg->display_name($value)

    Type: String

    Required. The display name of the food measurement unit (e.g., "gram", "piece").

  • $msg->plural_display_name() / $msg->plural_display_name($value)

    Type: String

    Optional. The plural display name of the food measurement unit (e.g., "grams", "pieces").

Google::Devicesandservices::Health::V4::DataModel::RespiratoryRateSleepSummary

Records respiratory rate details during sleep. Can have multiple per day if the user sleeps multiple times.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::Sleep

A sleep session possibly including stages.

Inherits from Protobuf::Message.

Accessors

Enum: Sleep::SleepType

  • SLEEP_TYPE_UNSPECIFIED => 0

  • CLASSIC => 1

  • STAGES => 2

Enum: Sleep::SleepStageType

  • SLEEP_STAGE_TYPE_UNSPECIFIED => 0

  • AWAKE => 1

  • LIGHT => 2

  • DEEP => 3

  • REM => 4

  • ASLEEP => 5

  • RESTLESS => 6

Google::Devicesandservices::Health::V4::DataModel::Steps

Step count over the time interval.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::StepsRollupValue

Represents the result of the rollup of the steps data type.

Inherits from Protobuf::Message.

Accessors

  • $msg->count_sum() / $msg->count_sum($value)

    Type: Int64

    Total number of steps in the interval.

Google::Devicesandservices::Health::V4::DataModel::SwimLengthsData

Swim lengths data over the time interval.

Inherits from Protobuf::Message.

Accessors

Enum: SwimLengthsData::SwimStrokeType

  • SWIM_STROKE_TYPE_UNSPECIFIED => 0

  • FREESTYLE => 1

  • BACKSTROKE => 2

  • BREASTSTROKE => 3

  • BUTTERFLY => 4

Google::Devicesandservices::Health::V4::DataModel::SwimLengthsDataRollupValue

Represents the result of the rollup of the swim lengths data type.

Inherits from Protobuf::Message.

Accessors

  • $msg->stroke_count_sum() / $msg->stroke_count_sum($value)

    Type: Int64

    Total number of swim strokes in the interval.

Google::Devicesandservices::Health::V4::DataModel::TimeInHeartRateZone

Time in heart rate zone record. It's an interval spent in specific heart rate zone.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::TimeInHeartRateZoneRollupValue

Represents the result of the rollup of the time in heart rate zone data type.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::TotalCaloriesRollupValue

Represents the result of the rollup of the user's total calories.

Note: Queries for the `total-calories` data type must include a time interval filter (such as [`total_calories.interval.start_time`][google.devicesandservices.health.v4main.ObservationTimeInterval.start_time] or [`total_calories.interval.civil_start_time`][google.devicesandservices.health.v4main.ObservationTimeInterval.civil_start_time]). The maximum range is 14 days.

Example filter query: `total_calories.interval.start_time >= "2026-04-20T00:00:00Z" AND total_calories.interval.start_time < "2026-04-21T00:00:00Z"`

Inherits from Protobuf::Message.

Accessors

  • $msg->kcal_sum() / $msg->kcal_sum($value)

    Type: Double

    Sum of the total calories in kilocalories.

Google::Devicesandservices::Health::V4::DataModel::VO2Max

VO2 max measurement.

Inherits from Protobuf::Message.

Accessors

Enum: VO2Max::MeasurementMethod

  • MEASUREMENT_METHOD_UNSPECIFIED => 0

  • FITBIT_RUN => 1

  • GOOGLE_DEMOGRAPHIC => 2

  • COOPER_TEST => 3

  • HEART_RATE_RATIO => 4

  • METABOLIC_CART => 5

  • MULTISTAGE_FITNESS_TEST => 6

  • ROCKPORT_FITNESS_TEST => 7

  • MAX_EXERCISE => 8

  • PREDICTION_SUB_MAX_EXERCISE => 9

  • PREDICTION_NON_EXERCISE => 10

  • OTHER => 11

Google::Devicesandservices::Health::V4::DataModel::Weight

Body weight measurement.

Inherits from Protobuf::Message.

Accessors

  • $msg->sample_time() / $msg->sample_time($value)

    Type: Message (Google::Devicesandservices::Health::V4::DataCoordinates::ObservationSampleTime)

    Required. The time at which the weight was measured

  • $msg->weight_grams() / $msg->weight_grams($value)

    Type: Double

    Required. Weight of a user in grams. Must be in the range `[0, 1000000]`.

  • $msg->notes() / $msg->notes($value)

    Type: String

    Optional. Standard free-form notes captured at manual logging.

Google::Devicesandservices::Health::V4::DataModel::WeightRollupValue

Represents the result of the rollup of the weight data type.

Inherits from Protobuf::Message.

Accessors

  • $msg->weight_grams_avg() / $msg->weight_grams_avg($value)

    Type: Double

    Average weight in grams.

Google::Devicesandservices::Health::V4::DataModel::BloodGlucose

Represents a blood glucose level measurement. LINT: LEGACY_NAMES

Inherits from Protobuf::Message.

Accessors

Enum: BloodGlucose::MeasurementSource

  • MEASUREMENT_SOURCE_UNSPECIFIED => 0

  • SELF_MONITORING_BLOOD_GLUCOSE => 1

  • CONTINUOUS_GLUCOSE_MONITORING => 2

  • LAB_TEST => 3

Enum: BloodGlucose::MealType

  • MEAL_TYPE_UNSPECIFIED => 0

  • BREAKFAST => 1

  • LUNCH => 2

  • DINNER => 3

  • SNACK => 4

Enum: BloodGlucose::MeasurementTiming

  • MEASUREMENT_TIMING_UNSPECIFIED => 0

  • AFTER_MEAL => 1

  • BEFORE_MEAL => 2

  • FASTING => 3

  • GENERAL => 4

  • BEFORE_BED => 5

  • OVER_NIGHT => 6

Enum: BloodGlucose::Specimen

  • SPECIMEN_UNSPECIFIED => 0

  • CAPILLARY_BLOOD => 1

  • INTERSTITIAL_FLUID => 2

  • PLASMA => 3

  • SERUM => 4

  • TEARS => 5

  • WHOLE_BLOOD => 6

Google::Devicesandservices::Health::V4::DataModel::BloodGlucoseRollupValue

Represents the result of the rollup of the blood glucose data type. LINT: LEGACY_NAMES

Inherits from Protobuf::Message.

Accessors

  • $msg->blood_glucose_milligrams_per_deciliter_avg() / $msg->blood_glucose_milligrams_per_deciliter_avg($value)

    Type: Double

    Average blood glucose level in mg/dL.

Google::Devicesandservices::Health::V4::DataModel::SedentaryPeriod

SedentaryPeriod

SedentaryPeriod data represents the periods of time that the user was sedentary (i.e. not moving while wearing the device).

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::SedentaryPeriodRollupValue

Represents the result of the rollup of the user's sedentary periods.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::ActiveEnergyBurned

Energy burned as part of an activity, excluding the basal energy burn.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::ActiveEnergyBurnedRollupValue

Represents the result of the rollup of active energy burned.

Inherits from Protobuf::Message.

Accessors

  • $msg->kcal_sum() / $msg->kcal_sum($value)

    Type: Double

    Output only. Sum of the active energy burned in kilocalories.

Google::Devicesandservices::Health::V4::DataModel::MenstrualPeriod

Menstrual period record.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::OvulationTest

Ovulation test record.

Inherits from Protobuf::Message.

Accessors

Google::Devicesandservices::Health::V4::DataModel::Symptoms

Symptoms logged by the user.

Inherits from Protobuf::Message.

Accessors

Enum: Symptoms::SymptomValue

  • SYMPTOM_VALUE_UNSPECIFIED => 0

  • CRAMPS => 1

  • HEADACHE => 2

  • TENDER_BREASTS => 3

  • ACNE => 4

  • SICK => 5

  • BLOATED => 6

  • HOT_FLASHES => 7

  • PMS => 8

  • COUGH => 9

  • FEVER => 10

  • DIFFICULTY_BREATHING => 11

  • BACK_PAIN => 12

  • SHAKINESS => 13

  • HUNGER => 14

  • SWEATING => 15

  • ANXIETY => 16

  • THIRST => 17

  • FREQUENT_URINATION => 18

  • BLURRED_VISION => 19

  • OTHER => 20

  • SEX_DRIVE_HIGH => 21

  • SEX_DRIVE_MEDIUM => 22

  • SEX_DRIVE_LOW => 23

  • HEART_PALPITATIONS => 24

  • FAINTING => 25

  • CHEST_PAIN => 26

  • FATIGUE => 27

  • CONFUSION => 28

  • DIZZINESS => 29

  • ABDOMINAL_PAIN => 30

  • BLADDER_LEAKS => 31

  • BLEEDING_GUMS => 32

  • BRAIN_FOG => 33

  • BURNING_MOUTH => 34

  • CONSTIPATION => 35

  • CRAVINGS => 36

  • DECREASED_APPETITE => 37

  • DIARRHEA => 38

  • DRAWING_PAIN => 39

  • DRY_EYES => 40

  • DRY_HAIR => 41

  • DRY_SKIN => 42

  • EXHAUSTION => 43

  • FEEL_GOOD => 44

  • FOOD_AVERSIONS => 45

  • HAIR_LOSS => 46

  • HEARTBURN => 47

  • HYPERPIGMENTATION => 48

  • INCREASED_APPETITE => 49

  • INCREASED_APPETITE_V2 => 50

  • INSOMNIA => 51

  • JOINT_PAIN => 52

  • LEG_CRAMPS => 53

  • MILKY_NIPPLE_DISCHARGE => 54

  • NAUSEA => 55

  • NIGHT_SWEATS => 56

  • NORMAL_DIGESTION => 57

  • NORMAL_STOOL => 58

  • PERINEUM_PAIN => 59

  • SLEEPINESS => 60

  • STRETCH_MARKS => 61

  • SWELLING => 62

  • VAGINAL_DRYNESS => 63

  • VAGINAL_ITCHING => 64

  • VOMITING => 65

Google::Devicesandservices::Health::V4::DataModel::Moods

Moods record.

Inherits from Protobuf::Message.

Accessors

Enum: Moods::Mood

  • MOOD_UNSPECIFIED => 0

  • AMAZED => 1

  • AMUSED => 2

  • ANGRY => 3

  • ANNOYED => 4

  • ANXIOUS => 5

  • HAPPY => 6

  • CONTENT => 7

  • SAD => 8

  • WORRIED => 9

  • FRUSTRATED => 10

  • EXCITED => 11

  • CALM => 12

  • STRESSED => 13

  • ASHAMED => 14

  • BRAVE => 15

  • CONFIDENT => 16

  • DISAPPOINTED => 17

  • DISCOURAGED => 18

  • DISGUSTED => 19

  • DRAINED => 20

  • EMBARRASSED => 21

  • GRATEFUL => 22

  • GUILTY => 23

  • HOPEFUL => 24

  • HOPELESS => 25

  • INDIFFERENT => 26

  • IRRITATED => 27

  • JEALOUS => 28

  • JOYFUL => 29

  • LONELY => 30

  • OVERWHELMED => 31

  • PASSIONATE => 32

  • PEACEFUL => 33

  • PROUD => 34

  • RELIEVED => 35

  • SATISFIED => 36

  • SCARED => 37

  • SURPRISED => 38

  • ENERGIZED => 39

  • FATIGUED => 40

  • VERY_CALM => 41

  • VERY_STRESSED => 42

  • NEUTRAL => 43

  • AFRAID => 44

  • HURTING => 45

  • BORED => 46

  • BITTER => 47

  • ENVIOUS => 48

  • CONFUSED => 49

  • CURIOUS => 50

  • AWESTRUCK => 51

  • INSPIRED => 52

  • LONGING => 53

  • ACCOMPLISHED => 54

  • LOVING => 55

  • COMPASSIONATE => 56

  • DEPRESSED => 57

  • GOOD => 58

  • LOW_ENERGY => 59

  • OBSESSIVE_THOUGHTS => 60

  • PANIC => 61

  • PLAYFUL => 62

  • PLEASED => 63

  • SENSITIVE => 64

  • SLEEPY => 65

  • SWINGS => 66

  • UNHAPPY => 67

  • VERY_SELF_CRITICAL => 68

Enum: Moods::Valence

  • VALENCE_UNSPECIFIED => 0

  • UNPLEASANT => 1

  • BASELINE => 2

  • PLEASANT => 3

SEE ALSO

Protobuf, Protobuf::Message, Google::Devicesandservices::Health::V4::DataModel::Types, https://protobuf.dev/

LICENSE AND COPYRIGHT

Copyright (C) 2026 Google LLC

This program is released under the Apache 2.0 license.