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
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval.
$msg->heart_rate_zone()/$msg->heart_rate_zone($value)Type:
Enum(Google::Devicesandservices::Health::V4::ActiveZoneMinutes::HeartRateZone)Required. Heart rate zone in which the active zone minutes have been earned, in the given time interval.
$msg->active_zone_minutes()/$msg->active_zone_minutes($value)Type:
Int64Required. Number of Active Zone Minutes earned in the given time interval. Note: active_zone_minutes equals to 1 for low intensity (fat burn) zones or 2 for high intensity zones (cardio, peak).
Enum: ActiveZoneMinutes::HeartRateZone
HEART_RATE_ZONE_UNSPECIFIED=>0FAT_BURN=>1CARDIO=>2PEAK=>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:
Int64Active zone minutes in `HeartRateZone.CARDIO`.
$msg->sum_in_peak_heart_zone()/$msg->sum_in_peak_heart_zone($value)Type:
Int64Active zone minutes in `HeartRateZone.PEAK`.
$msg->sum_in_fat_burn_heart_zone()/$msg->sum_in_fat_burn_heart_zone($value)Type:
Int64Active 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
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval.
$msg->active_minutes_by_activity_level()/$msg->active_minutes_by_activity_level($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveMinutes::ActiveMinutesByActivityLevel)Required. Active minutes by activity level. At most one record per activity level is allowed.
Enum: ActiveMinutes::ActivityLevel
ACTIVITY_LEVEL_UNSPECIFIED=>0LIGHT=>1MODERATE=>2VIGOROUS=>3
Google::Devicesandservices::Health::V4::DataModel::ActiveMinutesRollupValue
Represents the result of the rollup of the active minutes data type.
Inherits from Protobuf::Message.
Accessors
$msg->active_minutes_rollup_by_activity_level()/$msg->active_minutes_rollup_by_activity_level($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveMinutesRollupValue::ActiveMinutesRollupByActivityLevel)Active minutes by activity level. At most one record per activity level is allowed.
Google::Devicesandservices::Health::V4::DataModel::ActivityLevel
Internal type to capture activity level during a certain time interval.
Inherits from Protobuf::Message.
Accessors
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval.
$msg->activity_level_type()/$msg->activity_level_type($value)Type:
Enum(Google::Devicesandservices::Health::V4::ActivityLevel::ActivityLevelType)Required. Activity level type in the given time interval.
Enum: ActivityLevel::ActivityLevelType
ACTIVITY_LEVEL_TYPE_UNSPECIFIED=>0SEDENTARY=>1LIGHTLY_ACTIVE=>2MODERATELY_ACTIVE=>3VERY_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
$msg->activity_level_rollups_by_activity_level_type()/$msg->activity_level_rollups_by_activity_level_type($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActivityLevelRollupValue::ActivityLevelRollupByActivityLevelType)List of total durations in each activity level type.
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
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval.
$msg->gain_millimeters()/$msg->gain_millimeters($value)Type:
Int64Required. Altitude gain in millimeters over the observed interval. Must be in the range `[-1000000000, 1000000000]`.
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
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval.
$msg->kcal()/$msg->kcal($value)Type:
DoubleRequired. Number of calories burned due to basal metabolic rate in kilocalories over the observed interval.
Google::Devicesandservices::Health::V4::DataModel::BodyFat
Body fat 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 body fat was measured.
$msg->percentage()/$msg->percentage($value)Type:
DoubleRequired. Body fat percentage. Must be in the range `[0, 100]`.
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:
DoubleAverage 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
$msg->sample_time()/$msg->sample_time($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationSampleTime)Required. The time at which core body temperature was measured.
$msg->temperature_celsius()/$msg->temperature_celsius($value)Type:
DoubleRequired. The core body temperature in Celsius. Must be in the range `[0, 100]`.
$msg->measurement_location()/$msg->measurement_location($value)Type:
Enum(Google::Devicesandservices::Health::V4::CoreBodyTemperature::MeasurementLocation)Optional. The location of the core body temperature measurement.
$msg->id()/$msg->id($value)Type:
StringOptional. The unique identifier of the core body temperature measurement.
Enum: CoreBodyTemperature::MeasurementLocation
MEASUREMENT_LOCATION_UNSPECIFIED=>0OTHER=>1ARMPIT=>2BODY=>3EAR=>4FINGER=>5GASTRO_INTESTINAL=>6MOUTH=>7RECTUM=>8TOE=>9EAR_DRUM=>10TEMPORAL_ARTERY=>11FOREHEAD=>12URINARY_BLADDER=>13NASAL=>14NASOPHARYNGEAL=>15WRIST=>16VAGINA=>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:
DoubleAverage core body temperature in Celsius.
$msg->temperature_celsius_max()/$msg->temperature_celsius_max($value)Type:
DoubleMaximum core body temperature in Celsius.
$msg->temperature_celsius_min()/$msg->temperature_celsius_min($value)Type:
DoubleMinimum 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
$msg->calories_in_heart_rate_zones()/$msg->calories_in_heart_rate_zones($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::CaloriesInHeartRateZoneRollupValue::CaloriesInHeartRateZoneValue)List of calories burned in each heart rate zone.
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
$msg->date()/$msg->date($value)Type:
Message(Google::Type::Date::Date)Required. Date (in user's timezone) of the heart rate zones record.
$msg->heart_rate_zones()/$msg->heart_rate_zones($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyHeartRateZones::HeartRateZone)Required. The heart rate zones.
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:
DoubleOptional. 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:
Int64Optional. Non-REM heart rate
$msg->entropy()/$msg->entropy($value)Type:
DoubleOptional. 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:
DoubleOptional. 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:
DoubleRequired. 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:
DoubleRequired. 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:
DoubleRequired. 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:
DoubleRequired. 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:
DoubleOptional. 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
$msg->date()/$msg->date($value)Type:
Message(Google::Type::Date::Date)Required. Date (in the user's timezone) of the resting heart rate measurement.
$msg->beats_per_minute()/$msg->beats_per_minute($value)Type:
Int64Required. The resting heart rate value in beats per minute.
$msg->daily_resting_heart_rate_metadata()/$msg->daily_resting_heart_rate_metadata($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyRestingHeartRate::DailyRestingHeartRateMetadata)Optional. Metadata for the daily resting heart rate.
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:
DoubleRequired. 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:
DoubleOptional. 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:
DoubleOptional. 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:
DoubleRequired. 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:
BoolOptional. 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:
DoubleOptional. The covariance of the VO2 max value.
Enum: DailyVO2Max::CardioFitnessLevel
CARDIO_FITNESS_LEVEL_UNSPECIFIED=>0POOR=>1FAIR=>2AVERAGE=>3GOOD=>4VERY_GOOD=>5EXCELLENT=>6
Google::Devicesandservices::Health::V4::DataModel::Distance
Distance traveled over an interval of time.
Inherits from Protobuf::Message.
Accessors
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval.
$msg->millimeters()/$msg->millimeters($value)Type:
Int64Required. Distance in millimeters over the observed interval. Must be in the range `[0, 1000000000]`.
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:
Int64Sum 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:
Int64Optional. 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:
SInt32Optional. 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:
Int32Optional. The sampling frequency of waveform samples in hertz.
$msg->millivolts_scaling_factor()/$msg->millivolts_scaling_factor($value)Type:
Int32Optional. 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:
Int32Optional. 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=>0NORMAL_SINUS_RHYTHM=>1ATRIAL_FIBRILLATION=>2INCONCLUSIVE=>3INCONCLUSIVE_HIGH_HEART_RATE=>4INCONCLUSIVE_LOW_HEART_RATE=>5UNREADABLE=>6NOT_ANALYZED=>7
Google::Devicesandservices::Health::V4::DataModel::Exercise
An exercise that stores information about a physical activity.
Inherits from Protobuf::Message.
Accessors
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::SessionTimeInterval)Required. Observed exercise interval
$msg->exercise_type()/$msg->exercise_type($value)Type:
Enum(Google::Devicesandservices::Health::V4::Exercise::ExerciseType)Required. The type of activity performed during an exercise.
$msg->splits()/$msg->splits($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Exercise::SplitSummary)Optional. The default split is 1 km or 1 mile. - if the movement distance is less than the default, then there are no splits - if the movement distance is greater than or equal to the default, then we have splits
$msg->exercise_events()/$msg->exercise_events($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Exercise::ExerciseEvent)Optional. Exercise events that happen during an exercise, such as pause & restarts.
$msg->split_summaries()/$msg->split_summaries($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Exercise::SplitSummary)Optional. Laps or splits recorded within an exercise. Laps could be split based on distance or other criteria (duration, etc.) Laps should not be overlapping with each other.
$msg->metrics_summary()/$msg->metrics_summary($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::MetricsSummary)Required. Summary metrics for this exercise ( )
$msg->exercise_metadata()/$msg->exercise_metadata($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Exercise::ExerciseMetadata)Optional. Additional exercise metadata.
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The localized, human-readable name of the exercise. For all exercise types other than `OTHER`, the system ignores client input and overrides this field with a generated name based on `exercise_type` (e.g., "Walking" for `WALKING`). If `exercise_type` is `OTHER`, this field can contain the user's custom, free-form display name.
$msg->active_duration()/$msg->active_duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Optional. Duration excluding pauses.
$msg->notes()/$msg->notes($value)Type:
StringOptional. Standard free-form notes captured at manual logging.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. This is the timestamp of the last update to the exercise.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Represents the timestamp of the creation of the exercise.
Enum: Exercise::ExerciseType
EXERCISE_TYPE_UNSPECIFIED=>0AEROBIC_WORKOUT=>13ARCHERY=>47ASSAULT_BIKE=>164BACKPACKING=>181BADMINTON=>48BALLET=>103BALLROOM_DANCE=>156BARRE_CLASS=>49BASEBALL=>50BASKETBALL=>51BIKING=>3BILLIARDS=>180BODY_WEIGHT=>149BOOTCAMP=>14BOWLING=>52BOXING=>53BREAKDANCING=>157CALISTHENICS=>54CANOEING=>15CARDIO_SCULPT=>129CARDIO_WORKOUT=>140CARPENTRY=>108CHEERLEADING=>165CIRCUIT_TRAINING=>16CLEANING=>105CLIMBING=>55CORE_TRAINING=>17CRICKET=>56CROQUET=>111CROSS_COUNTRY_SKI=>18CROSS_TRAINING=>57CROSSFIT=>19CURLING=>58DANCING=>20DIVING=>59ELECTRIC_BIKE=>152ELECTRIC_SCOOTER=>168ELLIPTICAL=>21EQUESTRIAN_SPORTS=>60EXERCISE_CLASS=>61FENCING=>62FIELD_HOCKEY=>113FISHING=>63FITNESS_GAMING=>64FOILING=>175FOOTBALL_AMERICAN=>65FOOTBALL_AUSTRALIAN=>66FREE_WEIGHTS=>148FRISBEE_PLAYING_GENERAL=>67FUNCTIONAL_STRENGTH_TRAINING=>68GARDENING=>107GOLF=>22GYMNASTICS=>69HANDBALL=>70HAND_CYCLING=>71HIIT=>9HIKING=>5HIP_HOP=>158HOCKEY=>72HOEING=>109HOUSEHOLD_CHORES=>137HUNTING=>73ICE_SKATING=>127INCLINE_RUN=>142INCLINE_WALK=>146INDOOR_CLIMBING=>23INTERVAL_WORKOUT=>24JAZZ_DANCE=>154JIU_JITSU=>160JUMPING_ROPE=>74KARATE=>159KAYAKING=>25KICKBOXING=>26KITESURFING=>172LACROSSE=>75MARTIAL_ARTS=>27MEDITATE=>28MODERN_DANCE=>153MOTOCROSS=>114MOTORCYCLE=>121MOUNTAIN_BIKE=>128MOWING_LAWN=>106MUAY_THAI=>162MULTISPORT=>76MUSICAL_PERFORMANCE=>163NORDIC_WALKING=>145ORIENTEERING=>115OTHER=>12OUTDOOR_BIKE=>29OUTDOOR_WORKOUT=>30PADDLEBOARDING=>31PADEL=>176PAINTING=>170PARAGLIDING=>78PARKOUR=>166PICKELBALL=>79PILATES=>7POLO=>116POWERLIFTING=>32POWER_WALKING=>143RACKET_SPORTS=>169RACQUETBALL=>80RESISTANCE_BANDS=>151ROCK_CLIMBING=>123ROLLERBLADING=>33ROLLER_SKATING=>118ROWING=>81ROWING_MACHINE=>34RUCKING=>144RUGBY=>82RUNNING=>1SAILING=>83SCOOTERING=>167SCUBA_DIVING=>84SHOOTING=>104SHOVELING=>171SKATEBOARDING=>117SKATING=>35SKIING=>36SKYDIVING=>182SNORKELING=>37SNOWBOARDING=>38SNOWMOBILING=>179SNOWSHOEING=>85SNOW_SPORT=>86SOCCER=>87SOFTBALL=>88SPEED_SKATING=>178SPINNING=>39SPORT=>40SQUASH=>89STAIRCLIMBER=>41STATIONARY_BIKE=>139STEP_TRAINING=>90STRENGTH_TRAINING=>11STRETCHING=>42STROLLER_WALK=>122SURFING=>43SWIMMING=>4SWIMMING_OPEN_WATER=>91SWIMMING_POOL=>101SYNCHRONIZED_SWIMMING=>177TABATA_WORKOUT=>130TABLE_TENNIS=>92TAEKWONDO=>161TAI_CHI=>93TANGO=>155TENNIS=>44TRACK_AND_FIELD=>94TRAIL_RUN=>141TRAMPOLINE=>119TREADMILL=>45TREADMILL_WALK=>138TRX=>131ULTIMATE_FRISBEE=>112UNICYCLING=>102VOLLEYBALL=>95VOLLEYBALL_BEACH=>120WAKEBOARDING=>173WALKING=>2WALK_WITH_WEIGHTS=>147WATER_AEROBICS=>96WATER_JOGGING=>126WATER_POLO=>97WATER_SKIING=>124WATER_SPORT=>98WATER_VOLLEYBALL=>125WEEDING=>110WEIGHTLIFTING=>10WEIGHT_MACHINES=>150WEIGHTS=>46WHEELCHAIR=>99WINDSURFING=>174WORKOUT=>8WRESTLING=>100YOGA=>6YOGA_BIKRAM=>132YOGA_HATHA=>133YOGA_POWER=>134YOGA_VINYASA=>135ZUMBA=>136
Google::Devicesandservices::Health::V4::DataModel::Floors
Gained elevation measured in floors over the time interval
Inherits from Protobuf::Message.
Accessors
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval
$msg->count()/$msg->count($value)Type:
Int64Required. Number of floors in the recorded interval. Must be in the range `[0, 1000000]`.
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:
Int64Sum 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:
Int64Sum of the altitude gain in millimeters.
Google::Devicesandservices::Health::V4::DataModel::HeartRate
A heart rate measurement.
Inherits from Protobuf::Message.
Accessors
$msg->sample_time()/$msg->sample_time($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationSampleTime)Required. Observation time
$msg->beats_per_minute()/$msg->beats_per_minute($value)Type:
Int64Required. The heart rate value in beats per minute. Must be in the range `[1, 300]`.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HeartRate::HeartRateMetadata)Optional. Metadata about the heart rate sample.
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:
DoubleThe average heart rate value in the interval.
$msg->beats_per_minute_max()/$msg->beats_per_minute_max($value)Type:
DoubleThe maximum heart rate value in the interval.
$msg->beats_per_minute_min()/$msg->beats_per_minute_min($value)Type:
DoubleThe 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:
DoubleMinimum value of run VO2 max in the interval..
$msg->rate_max()/$msg->rate_max($value)Type:
DoubleMaximum value of run VO2 max in the interval.
$msg->rate_avg()/$msg->rate_avg($value)Type:
DoubleAverage 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
$msg->sample_time()/$msg->sample_time($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationSampleTime)Required. The time at which the metric was measured.
$msg->run_vo2_max()/$msg->run_vo2_max($value)Type:
DoubleRequired. Run VO2 max value in ml/kg/min. Must be in the range `[0, 100]`.
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:
DoubleThe 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:
DoubleThe 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
$msg->sample_time()/$msg->sample_time($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationSampleTime)Required. The time at which the height was recorded.
$msg->height_millimeters()/$msg->height_millimeters($value)Type:
Int64Required. Height of the user in millimeters. Must be in the range `[0, 3000]`.
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:
DoubleOptional. 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:
DoubleOptional. 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:
DoubleRequired. 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
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::SessionTimeInterval)Required. Observed interval.
$msg->amount_consumed()/$msg->amount_consumed($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::VolumeQuantity)Required. Amount of liquid (ex. water) consumed.
Google::Devicesandservices::Health::V4::DataModel::HydrationLogRollupValue
Represents the result of the rollup of the hydration log data type.
Inherits from Protobuf::Message.
Accessors
$msg->amount_consumed()/$msg->amount_consumed($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HydrationLogRollupValue::VolumeQuantityRollup)Rollup for amount consumed.
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
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::SessionTimeInterval)Required. Observed interval.
$msg->alert_windows()/$msg->alert_windows($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::IrregularRhythmNotification::AlertWindow)Optional. The overlapping analysis windows that were used to evaluate rhythm for potential AFib, containing specific information about the user's heart rhythm.
$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.
Irregular Rhythm Notification measurements typically populate `algorithm_version`, `service_version`, and `device_model`.
Google::Devicesandservices::Health::V4::DataModel::MetricsSummary
Summary metrics for an exercise.
Inherits from Protobuf::Message.
Accessors
$msg->calories_kcal()/$msg->calories_kcal($value)Type:
DoubleOptional. Total calories burned by the user during the exercise.
$msg->distance_millimeters()/$msg->distance_millimeters($value)Type:
DoubleOptional. Total distance covered by the user during the exercise.
$msg->steps()/$msg->steps($value)Type:
Int64Optional. Total steps taken during the exercise.
$msg->average_speed_millimeters_per_second()/$msg->average_speed_millimeters_per_second($value)Type:
DoubleOptional. Average speed in millimeters per second.
$msg->average_pace_seconds_per_meter()/$msg->average_pace_seconds_per_meter($value)Type:
DoubleOptional. Average pace in seconds per meter.
$msg->average_heart_rate_beats_per_minute()/$msg->average_heart_rate_beats_per_minute($value)Type:
Int64Optional. Average heart rate during the exercise.
$msg->elevation_gain_millimeters()/$msg->elevation_gain_millimeters($value)Type:
DoubleOptional. Total elevation gain during the exercise.
$msg->active_zone_minutes()/$msg->active_zone_minutes($value)Type:
Int64Optional. Total active zone minutes for the exercise.
$msg->run_vo2_max()/$msg->run_vo2_max($value)Type:
DoubleOptional. 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:
DoubleOptional. 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:
DoubleRequired. 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:
DoubleRequired. 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
$msg->quantity()/$msg->quantity($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::WeightQuantity)Required. The quantity of the nutrient, measured in grams.
$msg->nutrient()/$msg->nutrient($value)Type:
Enum(Google::Devicesandservices::Health::V4::Nutrient)Required. The nutrient type.
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
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::SessionTimeInterval)Required. The time window when the food was logged.
$msg->nutrients()/$msg->nutrients($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutrientQuantity)Optional. An array of individual nutrient values for the nutrition log.
$msg->energy()/$msg->energy($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::EnergyQuantity)Optional. The total energy of the food, measured in kilocalories (`kcal`).
$msg->energy_from_fat()/$msg->energy_from_fat($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::EnergyQuantity)Optional. The energy from fat, measured in kilocalories (`kcal`).
$msg->total_carbohydrate()/$msg->total_carbohydrate($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::WeightQuantity)Optional. The total carbohydrate content, measured in grams.
$msg->total_fat()/$msg->total_fat($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::WeightQuantity)Optional. The total fat content, measured in grams.
$msg->meal_type()/$msg->meal_type($value)Type:
Enum(Google::Devicesandservices::Health::V4::MealType)Optional. The meal category. One of `BREAKFAST`, `LUNCH`, `DINNER`, or `SNACK`.
$msg->serving()/$msg->serving($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutritionLog::Serving)Optional. The serving information for the logged food.
$msg->food()/$msg->food($value)Type:
StringOptional. The resource name of the Food item. Required when creating a nutrition log from an identified food. For anonymous food logs, use the `food_display_name` field instead.
$msg->food_display_name()/$msg->food_display_name($value)Type:
StringThe display name of the food. For identified food logs, this is populated automatically from the referenced food.
Google::Devicesandservices::Health::V4::DataModel::Food
Represents a food item.
Inherits from Protobuf::Message.
Accessors
$msg->display_name()/$msg->display_name($value)Type:
StringRequired. The display name of the food.
$msg->brand()/$msg->brand($value)Type:
StringOptional. The brand of the food.
$msg->access_level()/$msg->access_level($value)Type:
Enum(Google::Devicesandservices::Health::V4::FoodAccessLevel)Required. The access level of the food.
$msg->description()/$msg->description($value)Type:
StringOptional. The description of the food.
$msg->language_code()/$msg->language_code($value)Type:
StringOptional. The language code where the food is available in format xx-XX. Supported values are defined in [Settings.food_language_code][google.devicesandservices.health.v4.Settings.food_language_code].
$msg->meal_type()/$msg->meal_type($value)Type:
Enum(Google::Devicesandservices::Health::V4::MealType)Optional. The meal type associated with this food.
$msg->nutrients()/$msg->nutrients($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutrientQuantity)Optional. Value representing the nutrients of the food for the default serving.
$msg->energy_from_fat()/$msg->energy_from_fat($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::EnergyQuantity)Optional. Value representing the energy from fat of the food for the default serving.
$msg->total_carbohydrate()/$msg->total_carbohydrate($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::WeightQuantity)Optional. Value representing the total carbohydrate of the food for the default serving.
$msg->total_fat()/$msg->total_fat($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::WeightQuantity)Optional. Value representing the total fat of the food for the default serving.
$msg->energy_min()/$msg->energy_min($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::EnergyQuantity)Optional. Value representing the minimum energy of the food for the default serving.
$msg->energy_avg()/$msg->energy_avg($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::EnergyQuantity)Optional. Value representing the average energy of the food for the default serving.
$msg->energy_max()/$msg->energy_max($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::EnergyQuantity)Optional. Value representing the maximum energy of the food for the default serving.
$msg->default_serving()/$msg->default_serving($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Food::FoodServing)Required. Value representing the default serving of the food.
$msg->servings()/$msg->servings($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Food::FoodServing)Optional. The serving of the food.
Google::Devicesandservices::Health::V4::DataModel::NutritionLogRollupValue
Represents the result of the rollup of the nutrition log data type.
Inherits from Protobuf::Message.
Accessors
$msg->nutrients()/$msg->nutrients($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutritionLogRollupValue::NutrientQuantityRollup)List of the nutrient roll-ups by the nutrient type.
$msg->energy()/$msg->energy($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutritionLogRollupValue::EnergyQuantityRollup)Energy rollup.
$msg->energy_from_fat()/$msg->energy_from_fat($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutritionLogRollupValue::EnergyQuantityRollup)Value Energy from fat rollup.
$msg->total_carbohydrate()/$msg->total_carbohydrate($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutritionLogRollupValue::WeightQuantityRollup)Total carbohydrate rollup.
$msg->total_fat()/$msg->total_fat($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutritionLogRollupValue::WeightQuantityRollup)Total fat rollup.
Google::Devicesandservices::Health::V4::DataModel::OxygenSaturation
Captures the user's instantaneous oxygen saturation percentage (SpO2).
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 oxygen saturation was measured.
$msg->percentage()/$msg->percentage($value)Type:
DoubleRequired. The oxygen saturation percentage. Must be in the range `[0, 100]`.
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:
DoubleThe lower bound of the user's daily resting heart rate personal range.
$msg->beats_per_minute_max()/$msg->beats_per_minute_max($value)Type:
DoubleThe 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:
StringRequired. The display name of the food measurement unit (e.g., "gram", "piece").
$msg->plural_display_name()/$msg->plural_display_name($value)Type:
StringOptional. 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
$msg->sample_time()/$msg->sample_time($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationSampleTime)Required. The time at which respiratory rate was measured.
$msg->deep_sleep_stats()/$msg->deep_sleep_stats($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::RespiratoryRateSleepSummary::RespiratoryRateSleepSummaryStatistics)Optional. Respiratory rate statistics for deep sleep.
$msg->light_sleep_stats()/$msg->light_sleep_stats($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::RespiratoryRateSleepSummary::RespiratoryRateSleepSummaryStatistics)Optional. Respiratory rate statistics for light sleep.
$msg->rem_sleep_stats()/$msg->rem_sleep_stats($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::RespiratoryRateSleepSummary::RespiratoryRateSleepSummaryStatistics)Optional. Respiratory rate statistics for REM sleep.
$msg->full_sleep_stats()/$msg->full_sleep_stats($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::RespiratoryRateSleepSummary::RespiratoryRateSleepSummaryStatistics)Required. Full respiratory rate statistics.
Google::Devicesandservices::Health::V4::DataModel::Sleep
A sleep session possibly including stages.
Inherits from Protobuf::Message.
Accessors
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::SessionTimeInterval)Required. Observed sleep interval.
$msg->type()/$msg->type($value)Type:
Enum(Google::Devicesandservices::Health::V4::Sleep::SleepType)Optional. SleepType: classic or stages.
$msg->stages()/$msg->stages($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Sleep::SleepStage)Optional. List of non-overlapping contiguous sleep stage segments that cover the sleep period.
$msg->out_of_bed_segments()/$msg->out_of_bed_segments($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Sleep::OutOfBedSegment)Optional. “Out of bed” segments that can overlap with sleep stages.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Sleep::SleepMetadata)Optional. Sleep metadata: `processed`, `main_sleep`, `manually_edited`, and `stages_status`.
$msg->summary()/$msg->summary($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Sleep::SleepSummary)Output only. Sleep summary: metrics and stages summary.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Creation time of this sleep observation.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Last update time of this sleep observation.
$msg->short_awakenings()/$msg->short_awakenings($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Sleep::SleepStage)Output only. List of short awake segments (under a set threshold) that are part of the sleep session. These can overlap with sleep stages.
Enum: Sleep::SleepType
SLEEP_TYPE_UNSPECIFIED=>0CLASSIC=>1STAGES=>2
Enum: Sleep::SleepStageType
SLEEP_STAGE_TYPE_UNSPECIFIED=>0AWAKE=>1LIGHT=>2DEEP=>3REM=>4ASLEEP=>5RESTLESS=>6
Google::Devicesandservices::Health::V4::DataModel::Steps
Step count over the time interval.
Inherits from Protobuf::Message.
Accessors
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval.
$msg->count()/$msg->count($value)Type:
Int64Required. Number of steps in the recorded interval. Must be in the range `[0, 1000000]`.
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:
Int64Total number of steps in the interval.
Google::Devicesandservices::Health::V4::DataModel::SwimLengthsData
Swim lengths data over the time interval.
Inherits from Protobuf::Message.
Accessors
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval.
$msg->swim_stroke_type()/$msg->swim_stroke_type($value)Type:
Enum(Google::Devicesandservices::Health::V4::SwimLengthsData::SwimStrokeType)Required. Swim stroke type.
$msg->stroke_count()/$msg->stroke_count($value)Type:
Int64Required. Number of strokes in the lap.
Enum: SwimLengthsData::SwimStrokeType
SWIM_STROKE_TYPE_UNSPECIFIED=>0FREESTYLE=>1BACKSTROKE=>2BREASTSTROKE=>3BUTTERFLY=>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:
Int64Total 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
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval.
$msg->heart_rate_zone_type()/$msg->heart_rate_zone_type($value)Type:
Enum(Google::Devicesandservices::Health::V4::HeartRateZoneType)Required. Heart rate zone type.
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
$msg->time_in_heart_rate_zones()/$msg->time_in_heart_rate_zones($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::TimeInHeartRateZoneRollupValue::TimeInHeartRateZoneValue)List of time spent in each heart rate zone.
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:
DoubleSum of the total calories in kilocalories.
Google::Devicesandservices::Health::V4::DataModel::VO2Max
VO2 max 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 VO2 max was measured.
$msg->vo2_max()/$msg->vo2_max($value)Type:
DoubleRequired. VO2 max value measured as in ml consumed oxygen / kg of body weight / min. Must be in the range `[0, 100]`.
$msg->measurement_method()/$msg->measurement_method($value)Type:
Enum(Google::Devicesandservices::Health::V4::VO2Max::MeasurementMethod)Optional. The method used to measure the VO2 max value.
Enum: VO2Max::MeasurementMethod
MEASUREMENT_METHOD_UNSPECIFIED=>0FITBIT_RUN=>1GOOGLE_DEMOGRAPHIC=>2COOPER_TEST=>3HEART_RATE_RATIO=>4METABOLIC_CART=>5MULTISTAGE_FITNESS_TEST=>6ROCKPORT_FITNESS_TEST=>7MAX_EXERCISE=>8PREDICTION_SUB_MAX_EXERCISE=>9PREDICTION_NON_EXERCISE=>10OTHER=>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:
DoubleRequired. Weight of a user in grams. Must be in the range `[0, 1000000]`.
$msg->notes()/$msg->notes($value)Type:
StringOptional. 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:
DoubleAverage weight in grams.
Google::Devicesandservices::Health::V4::DataModel::BloodGlucose
Represents a blood glucose level measurement. LINT: LEGACY_NAMES
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 blood glucose was measured.
$msg->blood_glucose_milligrams_per_deciliter()/$msg->blood_glucose_milligrams_per_deciliter($value)Type:
DoubleRequired. Blood glucose level concentration in mg/dL. Must be in the range `[0, 900]`.
$msg->measurement_source()/$msg->measurement_source($value)Type:
Enum(Google::Devicesandservices::Health::V4::BloodGlucose::MeasurementSource)Optional. Source of the measurement.
$msg->meal_type()/$msg->meal_type($value)Type:
Enum(Google::Devicesandservices::Health::V4::BloodGlucose::MealType)Optional. Meal type of the measurement.
$msg->measurement_timing()/$msg->measurement_timing($value)Type:
Enum(Google::Devicesandservices::Health::V4::BloodGlucose::MeasurementTiming)Optional. Timing of the measurement.
$msg->specimen()/$msg->specimen($value)Type:
Enum(Google::Devicesandservices::Health::V4::BloodGlucose::Specimen)Optional. Type of body fluid used to measure the blood glucose.
$msg->notes()/$msg->notes($value)Type:
StringOptional. Standard free-form notes captured at manual logging.
Enum: BloodGlucose::MeasurementSource
MEASUREMENT_SOURCE_UNSPECIFIED=>0SELF_MONITORING_BLOOD_GLUCOSE=>1CONTINUOUS_GLUCOSE_MONITORING=>2LAB_TEST=>3
Enum: BloodGlucose::MealType
MEAL_TYPE_UNSPECIFIED=>0BREAKFAST=>1LUNCH=>2DINNER=>3SNACK=>4
Enum: BloodGlucose::MeasurementTiming
MEASUREMENT_TIMING_UNSPECIFIED=>0AFTER_MEAL=>1BEFORE_MEAL=>2FASTING=>3GENERAL=>4BEFORE_BED=>5OVER_NIGHT=>6
Enum: BloodGlucose::Specimen
SPECIMEN_UNSPECIFIED=>0CAPILLARY_BLOOD=>1INTERSTITIAL_FLUID=>2PLASMA=>3SERUM=>4TEARS=>5WHOLE_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:
DoubleAverage 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
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval.
Google::Devicesandservices::Health::V4::DataModel::SedentaryPeriodRollupValue
Represents the result of the rollup of the user's sedentary periods.
Inherits from Protobuf::Message.
Accessors
$msg->duration_sum()/$msg->duration_sum($value)Type:
Message(Google::Protobuf::Duration::Duration)The total time user spent sedentary during the interval.
Google::Devicesandservices::Health::V4::DataModel::ActiveEnergyBurned
Energy burned as part of an activity, excluding the basal energy burn.
Inherits from Protobuf::Message.
Accessors
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval
$msg->kcal()/$msg->kcal($value)Type:
DoubleRequired. Energy burned during an activity, measured in kilocalories. Must be in the range `[0, 1000000]`.
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:
DoubleOutput only. Sum of the active energy burned in kilocalories.
Google::Devicesandservices::Health::V4::DataModel::MenstrualPeriod
Menstrual period record.
Inherits from Protobuf::Message.
Accessors
$msg->interval()/$msg->interval($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationTimeInterval)Required. Observed interval.
$msg->notes()/$msg->notes($value)Type:
StringOptional. Standard free-form notes captured at manual logging.
Google::Devicesandservices::Health::V4::DataModel::OvulationTest
Ovulation test record.
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 ovulation test was measured.
$msg->result()/$msg->result($value)Type:
Enum(Google::Devicesandservices::Health::V4::OvulationTestResult)Required. The result of the ovulation test.
Google::Devicesandservices::Health::V4::DataModel::Symptoms
Symptoms logged by the user.
Inherits from Protobuf::Message.
Accessors
$msg->sample_time()/$msg->sample_time($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::ObservationSampleTime)Required. Time when the symptoms were logged.
$msg->symptoms()/$msg->symptoms($value)Type:
Enum(Google::Devicesandservices::Health::V4::Symptoms::SymptomValue)Required. List of symptoms experienced.
Enum: Symptoms::SymptomValue
SYMPTOM_VALUE_UNSPECIFIED=>0CRAMPS=>1HEADACHE=>2TENDER_BREASTS=>3ACNE=>4SICK=>5BLOATED=>6HOT_FLASHES=>7PMS=>8COUGH=>9FEVER=>10DIFFICULTY_BREATHING=>11BACK_PAIN=>12SHAKINESS=>13HUNGER=>14SWEATING=>15ANXIETY=>16THIRST=>17FREQUENT_URINATION=>18BLURRED_VISION=>19OTHER=>20SEX_DRIVE_HIGH=>21SEX_DRIVE_MEDIUM=>22SEX_DRIVE_LOW=>23HEART_PALPITATIONS=>24FAINTING=>25CHEST_PAIN=>26FATIGUE=>27CONFUSION=>28DIZZINESS=>29ABDOMINAL_PAIN=>30BLADDER_LEAKS=>31BLEEDING_GUMS=>32BRAIN_FOG=>33BURNING_MOUTH=>34CONSTIPATION=>35CRAVINGS=>36DECREASED_APPETITE=>37DIARRHEA=>38DRAWING_PAIN=>39DRY_EYES=>40DRY_HAIR=>41DRY_SKIN=>42EXHAUSTION=>43FEEL_GOOD=>44FOOD_AVERSIONS=>45HAIR_LOSS=>46HEARTBURN=>47HYPERPIGMENTATION=>48INCREASED_APPETITE=>49INCREASED_APPETITE_V2=>50INSOMNIA=>51JOINT_PAIN=>52LEG_CRAMPS=>53MILKY_NIPPLE_DISCHARGE=>54NAUSEA=>55NIGHT_SWEATS=>56NORMAL_DIGESTION=>57NORMAL_STOOL=>58PERINEUM_PAIN=>59SLEEPINESS=>60STRETCH_MARKS=>61SWELLING=>62VAGINAL_DRYNESS=>63VAGINAL_ITCHING=>64VOMITING=>65
Google::Devicesandservices::Health::V4::DataModel::Moods
Moods record.
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 moods were measured.
$msg->moods()/$msg->moods($value)Type:
Enum(Google::Devicesandservices::Health::V4::Moods::Mood)Required. The moods logged.
$msg->valences()/$msg->valences($value)Type:
Enum(Google::Devicesandservices::Health::V4::Moods::Valence)Optional. The valences.
Enum: Moods::Mood
MOOD_UNSPECIFIED=>0AMAZED=>1AMUSED=>2ANGRY=>3ANNOYED=>4ANXIOUS=>5HAPPY=>6CONTENT=>7SAD=>8WORRIED=>9FRUSTRATED=>10EXCITED=>11CALM=>12STRESSED=>13ASHAMED=>14BRAVE=>15CONFIDENT=>16DISAPPOINTED=>17DISCOURAGED=>18DISGUSTED=>19DRAINED=>20EMBARRASSED=>21GRATEFUL=>22GUILTY=>23HOPEFUL=>24HOPELESS=>25INDIFFERENT=>26IRRITATED=>27JEALOUS=>28JOYFUL=>29LONELY=>30OVERWHELMED=>31PASSIONATE=>32PEACEFUL=>33PROUD=>34RELIEVED=>35SATISFIED=>36SCARED=>37SURPRISED=>38ENERGIZED=>39FATIGUED=>40VERY_CALM=>41VERY_STRESSED=>42NEUTRAL=>43AFRAID=>44HURTING=>45BORED=>46BITTER=>47ENVIOUS=>48CONFUSED=>49CURIOUS=>50AWESTRUCK=>51INSPIRED=>52LONGING=>53ACCOMPLISHED=>54LOVING=>55COMPASSIONATE=>56DEPRESSED=>57GOOD=>58LOW_ENERGY=>59OBSESSIVE_THOUGHTS=>60PANIC=>61PLAYFUL=>62PLEASED=>63SENSITIVE=>64SLEEPY=>65SWINGS=>66UNHAPPY=>67VERY_SELF_CRITICAL=>68
Enum: Moods::Valence
VALENCE_UNSPECIFIED=>0UNPLEASANT=>1BASELINE=>2PLEASANT=>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.