Service Client: Google::Devicesandservices::Health::V4::DataPoints::DataPointsServiceClient
Client stub representing the remote DataPointsService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to devicesandservices.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Devicesandservices::Health::V4::DataPoints - Compiled Protocol Buffers messages for google/devicesandservices/health/v4/data_points.proto
SYNOPSIS
use Google::Devicesandservices::Health::V4::DataPoints;
my $msg = Google::Devicesandservices::Health::V4::DataPoints::DataPoint->new({
steps => $steps,
floors => $floors,
heart_rate => $heart_rate,
sleep => $sleep,
});
# Read or update a field
my $val = $msg->steps();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Devicesandservices::Health::V4::DataPoints::DataPoint->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/devicesandservices/health/v4/data_points.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::DataPoints::DataPoint
A computed or recorded metric.
Inherits from Protobuf::Message.
Accessors
$msg->steps()/$msg->steps($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Steps)Optional. Data for points in the `steps` interval data type collection.
$msg->floors()/$msg->floors($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Floors)Optional. Data for points in the `floors` interval data type collection.
$msg->heart_rate()/$msg->heart_rate($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HeartRate)Optional. Data for points in the `heart-rate` sample data type collection.
$msg->sleep()/$msg->sleep($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Sleep)Optional. Data for points in the `sleep` session data type collection.
$msg->daily_resting_heart_rate()/$msg->daily_resting_heart_rate($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyRestingHeartRate)Optional. Data for points in the `daily-resting-heart-rate` daily data type collection.
$msg->daily_heart_rate_variability()/$msg->daily_heart_rate_variability($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyHeartRateVariability)Optional. Data for points in the `daily-heart-rate-variability` daily data type collection.
$msg->exercise()/$msg->exercise($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Exercise)Optional. Data for points in the `exercise` session data type collection.
$msg->weight()/$msg->weight($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Weight)Optional. Data for points in the `weight` sample data type collection.
$msg->altitude()/$msg->altitude($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Altitude)Optional. Data for points in the `altitude` interval data type collection.
$msg->distance()/$msg->distance($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Distance)Optional. Data for points in the `distance` interval data type collection.
$msg->body_fat()/$msg->body_fat($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::BodyFat)Optional. Data for points in the `body-fat` sample data type collection.
$msg->active_zone_minutes()/$msg->active_zone_minutes($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveZoneMinutes)Optional. Data for points in the `active-zone-minutes` interval data type collection, measured in minutes.
$msg->heart_rate_variability()/$msg->heart_rate_variability($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HeartRateVariability)Optional. Data for points in the `heart-rate-variability` sample data type collection.
$msg->daily_sleep_temperature_derivations()/$msg->daily_sleep_temperature_derivations($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailySleepTemperatureDerivations)Optional. Data for points in the `daily-sleep-temperature-derivations` daily data type collection.
$msg->sedentary_period()/$msg->sedentary_period($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::SedentaryPeriod)Optional. Data for points in the `sedentary-period` interval data type collection.
$msg->run_vo2_max()/$msg->run_vo2_max($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::RunVO2Max)Optional. Data for points in the `run-vo2-max` sample data type collection.
$msg->oxygen_saturation()/$msg->oxygen_saturation($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::OxygenSaturation)Optional. Data for points in the `oxygen-saturation` sample data type collection.
$msg->daily_oxygen_saturation()/$msg->daily_oxygen_saturation($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyOxygenSaturation)Optional. Data for points in the `daily-oxygen-saturation` daily data type collection.
$msg->activity_level()/$msg->activity_level($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActivityLevel)Optional. Data for points in the `activity-level` daily data type collection.
$msg->vo2_max()/$msg->vo2_max($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::VO2Max)Optional. Data for points in the `vo2-max` sample data type collection.
$msg->daily_vo2_max()/$msg->daily_vo2_max($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyVO2Max)Optional. Data for points in the `daily-vo2-max` daily data type collection.
$msg->nutrition_log()/$msg->nutrition_log($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutritionLog)Optional. Data for points in the `nutrition-log` session data type collection.
$msg->irregular_rhythm_notification()/$msg->irregular_rhythm_notification($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::IrregularRhythmNotification)Optional. Data for points in the `irregular-rhythm-notification` session data type collection.
$msg->electrocardiogram()/$msg->electrocardiogram($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Electrocardiogram)Optional. Data for points in the `electrocardiogram` session data type collection.
$msg->daily_heart_rate_zones()/$msg->daily_heart_rate_zones($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyHeartRateZones)Optional. Data for points in the `daily-heart-rate-zones` daily data type collection.
$msg->hydration_log()/$msg->hydration_log($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HydrationLog)Optional. Data for points in the `hydration-log` session data type collection.
$msg->food()/$msg->food($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Food)Optional. The food details.
$msg->time_in_heart_rate_zone()/$msg->time_in_heart_rate_zone($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::TimeInHeartRateZone)Optional. Data for points in the `time-in-heart-rate-zone` interval data type collection.
$msg->active_minutes()/$msg->active_minutes($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveMinutes)Optional. Data for points in the `active-minutes` interval data type collection.
$msg->respiratory_rate_sleep_summary()/$msg->respiratory_rate_sleep_summary($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::RespiratoryRateSleepSummary)Optional. Data for points in the `respiratory-rate-sleep-summary` sample data type collection.
$msg->daily_respiratory_rate()/$msg->daily_respiratory_rate($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyRespiratoryRate)Optional. Data for points in the `daily-respiratory-rate` daily data type collection.
$msg->swim_lengths_data()/$msg->swim_lengths_data($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::SwimLengthsData)Optional. Data for points in the `swim-lengths-data` interval data type collection.
$msg->height()/$msg->height($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Height)Optional. Data for points in the `height` sample data type collection.
$msg->basal_energy_burned()/$msg->basal_energy_burned($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::BasalEnergyBurned)Optional. Data for points in the `basal-energy-burned` interval data type collection.
$msg->core_body_temperature()/$msg->core_body_temperature($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::CoreBodyTemperature)Optional. Data for points in the `core-body-temperature` sample data type collection.
$msg->active_energy_burned()/$msg->active_energy_burned($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveEnergyBurned)Optional. Data for points in the `active-energy-burned` interval data type collection.
$msg->food_measurement_unit()/$msg->food_measurement_unit($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::FoodMeasurementUnit)Optional. The food measurement unit details.
$msg->blood_glucose()/$msg->blood_glucose($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::BloodGlucose)Optional. Data for points in the `blood-glucose` sample data type collection.
$msg->menstrual_period()/$msg->menstrual_period($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::MenstrualPeriod)Optional. Data for points in the `menstrual-period` interval data type collection.
$msg->ovulation_test()/$msg->ovulation_test($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::OvulationTest)Optional. Data for points in the `ovulation-test` sample data type collection.
$msg->symptoms()/$msg->symptoms($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Symptoms)Optional. Data for points in the `symptoms` sample data type collection.
$msg->moods()/$msg->moods($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Moods)Optional. Data for points in the `moods` sample data type collection.
$msg->name()/$msg->name($value)Type:
StringIdentifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty.
Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}`
Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef`
The `{user}` ID is a system-generated identifier, as described in [Identity.health_user_id][google.devicesandservices.health.v4.Identity.health_user_id].
The `{data_type}` ID corresponds to the kebab-case version of the field names in the [DataPoint data][google.devicesandservices.health.v4.DataPoint] union field, e.g. `heart-rate` for the `heart_rate` field.
The `{data_point}` ID can be client-provided or system-generated. If client-provided, it must be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
$msg->data_source()/$msg->data_source($value)Type:
Message(Google::Devicesandservices::Health::V4::DataSource::DataSource)Optional. Data source information for the metric
Google::Devicesandservices::Health::V4::DataPoints::ReconciledDataPoint
A reconciled computed or recorded metric.
Inherits from Protobuf::Message.
Accessors
$msg->steps()/$msg->steps($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Steps)Data for points in the `steps` interval data type collection.
$msg->floors()/$msg->floors($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Floors)Data for points in the `floors` interval data type collection.
$msg->heart_rate()/$msg->heart_rate($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HeartRate)Data for points in the `heart-rate` sample data type collection.
$msg->sleep()/$msg->sleep($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Sleep)Data for points in the `sleep` session data type collection.
$msg->daily_resting_heart_rate()/$msg->daily_resting_heart_rate($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyRestingHeartRate)Data for points in the `daily-resting-heart-rate` daily data type collection.
$msg->daily_heart_rate_variability()/$msg->daily_heart_rate_variability($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyHeartRateVariability)Data for points in the `daily-heart-rate-variability` daily data type collection.
$msg->exercise()/$msg->exercise($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Exercise)Data for points in the `exercise` session data type collection.
$msg->weight()/$msg->weight($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Weight)Data for points in the `weight` sample data type collection.
$msg->altitude()/$msg->altitude($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Altitude)Data for points in the `altitude` interval data type collection.
$msg->distance()/$msg->distance($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Distance)Data for points in the `distance` interval data type collection.
$msg->body_fat()/$msg->body_fat($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::BodyFat)Data for points in the `body-fat` sample data type collection.
$msg->active_zone_minutes()/$msg->active_zone_minutes($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveZoneMinutes)Data for points in the `active-zone-minutes` interval data type collection, measured in minutes.
$msg->heart_rate_variability()/$msg->heart_rate_variability($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HeartRateVariability)Data for points in the `heart-rate-variability` sample data type collection.
$msg->daily_sleep_temperature_derivations()/$msg->daily_sleep_temperature_derivations($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailySleepTemperatureDerivations)Data for points in the `daily-sleep-temperature-derivations` daily data type collection.
$msg->sedentary_period()/$msg->sedentary_period($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::SedentaryPeriod)Data for points in the `sedentary-period` interval data type collection.
$msg->run_vo2_max()/$msg->run_vo2_max($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::RunVO2Max)Data for points in the `run-vo2-max` sample data type collection.
$msg->oxygen_saturation()/$msg->oxygen_saturation($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::OxygenSaturation)Data for points in the `oxygen-saturation` sample data type collection.
$msg->daily_oxygen_saturation()/$msg->daily_oxygen_saturation($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyOxygenSaturation)Data for points in the `daily-oxygen-saturation` daily data type collection.
$msg->activity_level()/$msg->activity_level($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActivityLevel)Data for points in the `activity-level` daily data type collection.
$msg->vo2_max()/$msg->vo2_max($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::VO2Max)Data for points in the `vo2-max` sample data type collection.
$msg->daily_vo2_max()/$msg->daily_vo2_max($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyVO2Max)Data for points in the `daily-vo2-max` daily data type collection.
$msg->nutrition_log()/$msg->nutrition_log($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutritionLog)Data for points in the `nutrition-log` session data type collection.
$msg->daily_heart_rate_zones()/$msg->daily_heart_rate_zones($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyHeartRateZones)Data for points in the `daily-heart-rate-zones` daily data type collection.
$msg->hydration_log()/$msg->hydration_log($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HydrationLog)Data for points in the `hydration-log` session data type collection.
$msg->time_in_heart_rate_zone()/$msg->time_in_heart_rate_zone($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::TimeInHeartRateZone)Data for points in the `time-in-heart-rate-zone` interval data type collection.
$msg->active_minutes()/$msg->active_minutes($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveMinutes)Data for points in the `active-minutes` interval data type collection.
$msg->respiratory_rate_sleep_summary()/$msg->respiratory_rate_sleep_summary($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::RespiratoryRateSleepSummary)Data for points in the `respiratory-rate-sleep-summary` sample data type collection.
$msg->daily_respiratory_rate()/$msg->daily_respiratory_rate($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DailyRespiratoryRate)Data for points in the `daily-respiratory-rate` daily data type collection.
$msg->swim_lengths_data()/$msg->swim_lengths_data($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::SwimLengthsData)Data for points in the `swim-lengths-data` interval data type collection.
$msg->height()/$msg->height($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::Height)Data for points in the `height` sample data type collection.
$msg->basal_energy_burned()/$msg->basal_energy_burned($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::BasalEnergyBurned)Data for points in the `basal-energy-burned` interval data type collection.
$msg->core_body_temperature()/$msg->core_body_temperature($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::CoreBodyTemperature)Data for points in the `core-body-temperature` sample data type collection.
$msg->active_energy_burned()/$msg->active_energy_burned($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveEnergyBurned)Data for points in the `active-energy-burned` interval data type collection.
$msg->blood_glucose()/$msg->blood_glucose($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::BloodGlucose)Data for points in the `blood-glucose` sample data type collection.
$msg->data_point_name()/$msg->data_point_name($value)Type:
StringIdentifier. Data point name, only supported for the subset of identifiable data types. For the majority of the data types, individual data points do not need to be identified and this field would be empty.
Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}`
Example: `users/abcd1234/dataTypes/sleep/dataPoints/a1b2c3d4-e5f6-7890-1234-567890abcdef`
The `{user}` ID is a system-generated identifier, as described in [Identity.health_user_id][google.devicesandservices.health.v4.Identity.health_user_id].
The `{data_type}` ID corresponds to the kebab-case version of the field names in the [DataPoint data][google.devicesandservices.health.v4.DataPoint] union field, e.g. `heart-rate` for the `heart_rate` field.
The `{data_point}` ID can be client-provided or system-generated. If client-provided, it must be a string of 4-63 characters, containing only lowercase letters, numbers, and hyphens.
Google::Devicesandservices::Health::V4::DataPoints::RollupDataPoint
Value of a rollup for a single physical time interval (aggregation window) of reconciled data points from all data sources, excluding those data points that are identified as recorded by wearables in intervals when they were not actually worn.
Inherits from Protobuf::Message.
Accessors
$msg->steps()/$msg->steps($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::StepsRollupValue)Returned by default when rolling up data points from the `steps` data type, or when requested explicitly using the `steps` rollup type identifier.
$msg->floors()/$msg->floors($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::FloorsRollupValue)Returned by default when rolling up data points from the `floors` data type, or when requested explicitly using the `floors` rollup type identifier.
$msg->heart_rate()/$msg->heart_rate($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HeartRateRollupValue)Returned by default when rolling up data points from the `heart-rate` data type, or when requested explicitly using the `heart-rate` rollup type identifier.
$msg->weight()/$msg->weight($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::WeightRollupValue)Returned by default when rolling up data points from the `weight` data type, or when requested explicitly using the `weight` rollup type identifier.
$msg->altitude()/$msg->altitude($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::AltitudeRollupValue)Returned by default when rolling up data points from the `altitude` data type, or when requested explicitly using the `altitude` rollup type identifier.
$msg->distance()/$msg->distance($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DistanceRollupValue)Returned by default when rolling up data points from the `distance` data type, or when requested explicitly using the `distance` rollup type identifier.
$msg->body_fat()/$msg->body_fat($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::BodyFatRollupValue)Returned by default when rolling up data points from the `body-fat` data type, or when requested explicitly using the `body-fat` rollup type identifier.
$msg->total_calories()/$msg->total_calories($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::TotalCaloriesRollupValue)Returned by default when rolling up data points from the `total-calories` data type, or when requested explicitly using the `total-calories` rollup type identifier.
$msg->active_zone_minutes()/$msg->active_zone_minutes($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveZoneMinutesRollupValue)Returned by default when rolling up data points from the `active-zone-minutes` data type, or when requested explicitly using the `active-zone-minutes` rollup type identifier.
$msg->sedentary_period()/$msg->sedentary_period($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::SedentaryPeriodRollupValue)Returned by default when rolling up data points from the `sedentary-period` data type, or when requested explicitly using the `sedentary-period` rollup type identifier.
$msg->run_vo2_max()/$msg->run_vo2_max($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::RunVO2MaxRollupValue)Returned by default when rolling up data points from the `run-vo2-max` data type, or when requested explicitly using the `run-vo2-max` rollup type identifier.
$msg->calories_in_heart_rate_zone()/$msg->calories_in_heart_rate_zone($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::CaloriesInHeartRateZoneRollupValue)Returned by default when rolling up data points from the `calories-in-heart-rate-zone` data type, or when requested explicitly using the `calories-in-heart-rate-zone` rollup type identifier.
$msg->activity_level()/$msg->activity_level($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActivityLevelRollupValue)Returned by default when rolling up data points from the `activity-level` data type, or when requested explicitly using the `activity-level` rollup type identifier.
$msg->nutrition_log()/$msg->nutrition_log($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutritionLogRollupValue)Returned by default when rolling up data points from the `nutrition-log` data type, or when requested explicitly using the `nutrition-log` rollup type identifier.
$msg->hydration_log()/$msg->hydration_log($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HydrationLogRollupValue)Returned by default when rolling up data points from the `hydration-log` data type, or when requested explicitly using the `hydration-log` rollup type identifier.
$msg->time_in_heart_rate_zone()/$msg->time_in_heart_rate_zone($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::TimeInHeartRateZoneRollupValue)Returned by default when rolling up data points from the `time-in-heart-rate-zone` data type, or when requested explicitly using the `time-in-heart-rate-zone` rollup type identifier.
$msg->active_minutes()/$msg->active_minutes($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveMinutesRollupValue)Returned by default when rolling up data points from the `active-minutes` data type, or when requested explicitly using the `active-minutes` rollup type identifier.
$msg->swim_lengths_data()/$msg->swim_lengths_data($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::SwimLengthsDataRollupValue)Returned by default when rolling up data points from the `swim-lengths-data` data type, or when requested explicitly using the `swim-lengths-data` rollup type identifier.
$msg->core_body_temperature()/$msg->core_body_temperature($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::CoreBodyTemperatureRollupValue)Returned by default when rolling up data points from the `core-body-temperature` data type, or when requested explicitly using the `core-body-temperature` rollup type identifier.
$msg->active_energy_burned()/$msg->active_energy_burned($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveEnergyBurnedRollupValue)Returned by default when rolling up data points from the `active-energy-burned` data type.
$msg->blood_glucose()/$msg->blood_glucose($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::BloodGlucoseRollupValue)Returned by default when rolling up data points from the `blood-glucose` data type.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Start time of the window this value aggregates over
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)End time of the window this value aggregates over
Google::Devicesandservices::Health::V4::DataPoints::DailyRollupDataPoint
Value of a daily rollup for a single civil time interval (aggregation window) of reconciled data points from all data sources, excluding those data points that are identified as recorded by wearables in intervals when they were not actually worn.
Inherits from Protobuf::Message.
Accessors
$msg->steps()/$msg->steps($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::StepsRollupValue)Returned by default when rolling up data points from the `steps` data type, or when requested explicitly using the `steps` rollup type identifier.
$msg->floors()/$msg->floors($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::FloorsRollupValue)Returned by default when rolling up data points from the `floors` data type, or when requested explicitly using the `floors` rollup type identifier.
$msg->heart_rate()/$msg->heart_rate($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HeartRateRollupValue)Returned by default when rolling up data points from the `heart-rate` data type, or when requested explicitly using the `heart-rate` rollup type identifier.
$msg->resting_heart_rate_personal_range()/$msg->resting_heart_rate_personal_range($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::RestingHeartRatePersonalRangeRollupValue)Returned by default when rolling up data points from the `daily-resting-heart-rate` data type, or when requested explicitly using the `resting-heart-rate-personal-range` rollup type identifier.
$msg->heart_rate_variability_personal_range()/$msg->heart_rate_variability_personal_range($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HeartRateVariabilityPersonalRangeRollupValue)Returned by default when rolling up data points from the `daily-heart-rate-variability` data type, or when requested explicitly using the `heart-rate-variability-personal-range` rollup type identifier.
$msg->weight()/$msg->weight($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::WeightRollupValue)Returned by default when rolling up data points from the `weight` data type, or when requested explicitly using the `weight` rollup type identifier.
$msg->altitude()/$msg->altitude($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::AltitudeRollupValue)Returned by default when rolling up data points from the `altitude` data type, or when requested explicitly using the `altitude` rollup type identifier.
$msg->distance()/$msg->distance($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::DistanceRollupValue)Returned by default when rolling up data points from the `distance` data type, or when requested explicitly using the `distance` rollup type identifier.
$msg->body_fat()/$msg->body_fat($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::BodyFatRollupValue)Returned by default when rolling up data points from the `body-fat` data type, or when requested explicitly using the `body-fat` rollup type identifier.
$msg->total_calories()/$msg->total_calories($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::TotalCaloriesRollupValue)Returned by default when rolling up data points from the `total-calories` data type, or when requested explicitly using the `total-calories` rollup type identifier.
$msg->active_zone_minutes()/$msg->active_zone_minutes($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveZoneMinutesRollupValue)Returned by default when rolling up data points from the `active-zone-minutes` data type, or when requested explicitly using the `active-zone-minutes` rollup type identifier.
$msg->sedentary_period()/$msg->sedentary_period($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::SedentaryPeriodRollupValue)Returned by default when rolling up data points from the `sedentary-period` data type, or when requested explicitly using the `sedentary-period` rollup type identifier.
$msg->run_vo2_max()/$msg->run_vo2_max($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::RunVO2MaxRollupValue)Returned by default when rolling up data points from the `run-vo2-max` data type, or when requested explicitly using the `run-vo2-max` rollup type identifier.
$msg->calories_in_heart_rate_zone()/$msg->calories_in_heart_rate_zone($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::CaloriesInHeartRateZoneRollupValue)Returned by default when rolling up data points from the `calories-in-heart-rate-zone` data type, or when requested explicitly using the `calories-in-heart-rate-zone` rollup type identifier.
$msg->activity_level()/$msg->activity_level($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActivityLevelRollupValue)Returned by default when rolling up data points from the `activity-level` data type, or when requested explicitly using the `activity-level` rollup type identifier.
$msg->nutrition_log()/$msg->nutrition_log($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::NutritionLogRollupValue)Returned by default when rolling up data points from the `nutrition-log` data type, or when requested explicitly using the `nutrition-log` rollup type identifier.
$msg->hydration_log()/$msg->hydration_log($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::HydrationLogRollupValue)Returned by default when rolling up data points from the `hydration-log` data type, or when requested explicitly using the `hydration-log` rollup type identifier.
$msg->time_in_heart_rate_zone()/$msg->time_in_heart_rate_zone($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::TimeInHeartRateZoneRollupValue)Returned by default when rolling up data points from the `time-in-heart-rate-zone` data type, or when requested explicitly using the `time-in-heart-rate-zone` rollup type identifier.
$msg->active_minutes()/$msg->active_minutes($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveMinutesRollupValue)Returned by default when rolling up data points from the `active-minutes` data type, or when requested explicitly using the `active-minutes` rollup type identifier.
$msg->swim_lengths_data()/$msg->swim_lengths_data($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::SwimLengthsDataRollupValue)Returned by default when rolling up data points from the `swim-lengths-data` data type, or when requested explicitly using the `swim-lengths-data` rollup type identifier.
$msg->core_body_temperature()/$msg->core_body_temperature($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::CoreBodyTemperatureRollupValue)Returned by default when rolling up data points from the `core-body-temperature` data type, or when requested explicitly using the `core-body-temperature` rollup type identifier.
$msg->active_energy_burned()/$msg->active_energy_burned($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::ActiveEnergyBurnedRollupValue)Returned by default when rolling up data points from the `active-energy-burned` data type.
$msg->blood_glucose()/$msg->blood_glucose($value)Type:
Message(Google::Devicesandservices::Health::V4::DataModel::BloodGlucoseRollupValue)Returned by default when rolling up data points from the `blood-glucose` data type.
$msg->civil_start_time()/$msg->civil_start_time($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::CivilDateTime)Start time of the window this value aggregates over
$msg->civil_end_time()/$msg->civil_end_time($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::CivilDateTime)End time of the window this value aggregates over
Google::Devicesandservices::Health::V4::DataPoints::GetDataPointRequest
Request for getting a single data point
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the data point to retrieve.
Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}`
See [DataPoint.name][google.devicesandservices.health.v4.DataPoint.name] for examples and possible values.
Google::Devicesandservices::Health::V4::DataPoints::ListDataPointsRequest
Request for listing raw data points
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent data type of the Data Point collection.
Format: `users/me/dataTypes/{data_type}`, e.g.:
- `users/me/dataTypes/steps` - `users/me/dataTypes/weight`
For a list of the supported data types see the [DataPoint data][google.devicesandservices.health.v4.DataPoint] union field.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of data points to return. If unspecified, at most 1440 data points will be returned. The maximum page size is 10000; values above that will be truncated accordingly. For `exercise` and `sleep` the default page size is 25. The maximum page size for `exercise` and `sleep` is 25.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The `next_page_token` from a previous request, if any.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filter expression following https://google.aip.dev/160.
A time range (either physical or civil) can be specified.
The supported filter fields are:
- Interval start time: - Pattern: `{interval_data_type}.interval.start_time` - Supported comparison operators: `>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `steps.interval.start_time >= "2023-11-24T00:00:00Z" AND steps.interval.start_time < "2023-11-25T00:00:00Z"` - `distance.interval.start_time >= "2024-08-14T12:34:56Z"`
- Interval civil start time: - Pattern: `{interval_data_type}.interval.civil_start_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `steps.interval.civil_start_time >= "2023-11-24" AND steps.interval.civil_start_time < "2023-11-25"` - `distance.interval.civil_start_time >= "2024-08-14T12:34:56"`
- Sample observation physical time: - Pattern: `{sample_data_type}.sample_time.physical_time` - Supported comparison operators: `>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND` - Example: - `weight.sample_time.physical_time >= "2023-11-24T00:00:00Z" AND weight.sample_time.physical_time < "2023-11-25T00:00:00Z"` - `weight.sample_time.physical_time >= "2024-08-14T12:34:56Z"`
- Sample observation civil time: - Pattern: `{sample_data_type}.sample_time.civil_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `weight.sample_time.civil_time >= "2023-11-24" AND weight.sample_time.civil_time < "2023-11-25"` - `weight.sample_time.civil_time >= "2024-08-14T12:34:56"`
- Daily summary date: - Pattern: `{daily_summary_data_type}.date` - Supported comparison operators: `>=`, `<` - Date literal expected in ISO 8601 `YYYY-MM-DD` format - Supported logical operators: `AND` - Example: - `daily_heart_rate_variability.date < "2024-08-15"`
- Session civil start time (Excluding Sleep and ECG): - Pattern: `{session_data_type}.interval.civil_start_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND` - Example: - `exercise.interval.civil_start_time >= "2023-11-24" AND exercise.interval.civil_start_time < "2023-11-25"` - `exercise.interval.civil_start_time >= "2024-08-14T12:34:56"`
- Session start time (ECG specific): - Pattern: `electrocardiogram.interval.start_time` - Supported comparison operators: `>=` - Timestamp literal expected in RFC-3339 format - Example: - `electrocardiogram.interval.start_time >= "2024-08-14T12:34:56Z"` - Note: Only filtering by start time is supported for ECG. Filtering by end time (e.g., `electrocardiogram.interval.end_time`) is not supported.
- Session end time (Sleep specific): - Pattern: `sleep.interval.end_time` - Supported comparison operators: `>=`, `<` - Timestamp literal expected in RFC-3339 format - Supported logical operators: `AND`, `OR` - Example: - `sleep.interval.end_time >= "2023-11-24T00:00:00Z" AND sleep.interval.end_time < "2023-11-25T00:00:00Z"`
- Session civil end time (Sleep specific): - Pattern: `sleep.interval.civil_end_time` - Supported comparison operators: `>=`, `<` - Date with optional time literal expected in ISO 8601 `YYYY-MM-DD[THH:mm:ss]` format - Supported logical operators: `AND`, `OR` - Example: - `sleep.interval.civil_end_time >= "2023-11-24" AND sleep.interval.civil_end_time < "2023-11-25"`
Data points in the response will be ordered by the interval start time in descending order.
Google::Devicesandservices::Health::V4::DataPoints::ListDataPointsResponse
Response containing raw data points matching the query
Inherits from Protobuf::Message.
Accessors
$msg->data_points()/$msg->data_points($value)Type:
Message(Google::Devicesandservices::Health::V4::DataPoints::DataPoint)Data points matching the query
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringNext page token, empty if the response is complete
Google::Devicesandservices::Health::V4::DataPoints::CreateDataPointRequest
Request to create an identifiable data point.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource name where the data point will be created. Format: `users/{user}/dataTypes/{data_type}`
$msg->data_point()/$msg->data_point($value)Type:
Message(Google::Devicesandservices::Health::V4::DataPoints::DataPoint)Required. The data point to create.
Google::Devicesandservices::Health::V4::DataPoints::CreateDataPointOperationMetadata
Metadata for a create data point operation.
Inherits from Protobuf::Message.
Google::Devicesandservices::Health::V4::DataPoints::UpdateDataPointRequest
Request to update an identifiable data point.
Inherits from Protobuf::Message.
Accessors
$msg->data_point()/$msg->data_point($value)Type:
Message(Google::Devicesandservices::Health::V4::DataPoints::DataPoint)Required. The data point to update
The data point's `name` field is used to identify the data point to update.
Format: `users/{user}/dataTypes/{data_type}/dataPoints/{data_point}`
Google::Devicesandservices::Health::V4::DataPoints::UpdateDataPointOperationMetadata
Metadata for an update data point operation.
Inherits from Protobuf::Message.
Google::Devicesandservices::Health::V4::DataPoints::BatchDeleteDataPointsRequest
Request to delete a batch of identifiable data points.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringOptional. Parent (data type) for the Data Point collection Format: `users/me/dataTypes/{data_type}`, e.g.:
- `users/me/dataTypes/steps` - `users/me/dataTypes/-`
For a list of the supported data types see the [DataPoint data][google.devicesandservices.health.v4.DataPoint] union field.
Deleting data points across multiple data type collections is supported following https://aip.dev/159.
If this is set, the parent of all of the data points specified in `names` must match this field.
$msg->names()/$msg->names($value)Type:
StringRequired. The names of the DataPoints to delete. A maximum of 10000 data points can be deleted in a single request.
Google::Devicesandservices::Health::V4::DataPoints::BatchDeleteDataPointsResponse
Response containing the list of possibly soft-deleted DataPoints.
Inherits from Protobuf::Message.
Accessors
$msg->data_points()/$msg->data_points($value)Type:
Message(Google::Devicesandservices::Health::V4::DataPoints::DataPoint)The list of soft-deleted DataPoints, if the data type supports only soft deletion.
Google::Devicesandservices::Health::V4::DataPoints::BatchDeleteDataPointsOperationMetadata
Metadata for a batch delete data points operation.
Inherits from Protobuf::Message.
Accessors
$msg->failed_requests()/$msg->failed_requests($value)Type:
Message(Google::Devicesandservices::Health::V4::DataPoints::BatchDeleteDataPointsOperationMetadata::FailedRequestsEntry)The key in this map is the index of the request in the `requests` field in the batch request.
Google::Devicesandservices::Health::V4::DataPoints::ReconcileDataPointsRequest
Request to reconcile data points from multiple data sources.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent data type of the Data Point collection.
Format: `users/me/dataTypes/{data_type}`, e.g.:
- `users/me/dataTypes/steps` - `users/me/dataTypes/heart-rate`
For a list of the supported data types see the [DataPoint data][google.devicesandservices.health.v4.DataPoint] union field.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of data points to return. If unspecified, at most 1440 data points will be returned. The maximum page size is 10000; values above that will be truncated accordingly. For `exercise` and `sleep` the default page size is 25. The maximum page size for `exercise` and `sleep` is 25.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The `next_page_token` from a previous request, if any.
$msg->filter()/$msg->filter($value)Type:
StringOptional. Filter expression based on https://aip.dev/160.
A time range, either physical or civil, can be specified. See the [ListDataPointsRequest.filter][google.devicesandservices.health.v4.ListDataPointsRequest.filter] for the supported fields and syntax.
$msg->data_source_family()/$msg->data_source_family($value)Type:
StringOptional. The data source family name to reconcile.
If empty, data points from all data sources will be reconciled.
Format: `users/me/dataSourceFamilies/{data_source_family}`
- `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/me/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller.
Callers that were only granted write scopes for the requested data type may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`.
If no data point matches the requested data source family, the response is an empty list rather than an error.
Google::Devicesandservices::Health::V4::DataPoints::ReconcileDataPointsResponse
Response containing the list of reconciled DataPoints.
Inherits from Protobuf::Message.
Accessors
$msg->data_points()/$msg->data_points($value)Type:
Message(Google::Devicesandservices::Health::V4::DataPoints::ReconciledDataPoint)Data points matching the query
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringNext page token, empty if the response is complete
Google::Devicesandservices::Health::V4::DataPoints::RollUpDataPointsRequest
Request to roll up data points by physical time intervals.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent data type of the Data Point collection.
Format: `users/{user}/dataTypes/{data_type}`, e.g.:
- `users/me/dataTypes/steps` - `users/me/dataTypes/distance`
For a list of the supported data types see the [RollupDataPoint value][google.devicesandservices.health.v4.RollupDataPoint] union field.
$msg->range()/$msg->range($value)Type:
Message(Google::Type::Interval::Interval)Required. Closed-open range of data points that will be rolled up. The maximum range for `calories-in-heart-rate-zone`, `heart-rate`, `active-minutes` and `total-calories` is 14 days. The maximum range for all other data types is 90 days.
$msg->window_size()/$msg->window_size($value)Type:
Message(Google::Protobuf::Duration::Duration)Required. The size of the time window to group data points into before applying the aggregation functions. Must be at least 1 second.
If the requested range is not an exact multiple of `window_size`, the final bucket chronologically will be truncated at the upper endpoint of the range and will cover a duration shorter than `window_size`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of data points to return. If unspecified, at most 1440 data points will be returned. The maximum page size is 10000; values above that will be truncated accordingly.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The next_page_token from a previous request, if any. All other request fields need to be the same as in the initial request when the page token is specified.
$msg->data_source_family()/$msg->data_source_family($value)Type:
StringOptional. The data source family name to roll up.
If empty, data points from all available data sources will be rolled up.
Format: `users/me/dataSourceFamilies/{data_source_family}`
The supported values are:
- `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/me/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller.
Callers that were only granted write scopes for the requested data type may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`.
If no data point matches the requested data source family, the response is an empty list rather than an error.
Google::Devicesandservices::Health::V4::DataPoints::RollUpDataPointsResponse
Response containing the list of rolled up data points.
Inherits from Protobuf::Message.
Accessors
$msg->rollup_data_points()/$msg->rollup_data_points($value)Type:
Message(Google::Devicesandservices::Health::V4::DataPoints::RollupDataPoint)Values for each aggregation time window.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringA token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
Google::Devicesandservices::Health::V4::DataPoints::DailyRollUpDataPointsRequest
Request to roll up data points by civil time intervals.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. Parent data type of the Data Point collection.
Format: `users/{user}/dataTypes/{data_type}`, e.g.:
- `users/me/dataTypes/steps` - `users/me/dataTypes/distance`
For a list of the supported data types see the [DailyRollupDataPoint value][google.devicesandservices.health.v4.DailyRollupDataPoint] union field.
$msg->range()/$msg->range($value)Type:
Message(Google::Devicesandservices::Health::V4::DataCoordinates::CivilTimeInterval)Required. Closed-open range of data points that will be rolled up. The start time must be aligned with the aggregation window. The maximum range for `calories-in-heart-rate-zone`, `heart-rate`, `active-minutes` and `total-calories` is 14 days. The maximum range for all other data types is 90 days.
$msg->window_size_days()/$msg->window_size_days($value)Type:
Int32Optional. Aggregation window size, in number of days. Defaults to 1 if not specified.
If the requested range is not an exact multiple of `window_size_days`, the final bucket chronologically will be truncated at the upper endpoint of the range and will cover a duration shorter than `window_size_days`.
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of data points to return. If unspecified, at most 1440 data points will be returned. The maximum page size is 10000; values above that will be truncated accordingly.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. The `next_page_token` from a previous request, if any. All other request fields need to be the same as in the initial request when the page token is specified.
$msg->data_source_family()/$msg->data_source_family($value)Type:
StringOptional. The data source family name to roll up. If empty, data points from all available data sources will be rolled up.
Format: `users/me/dataSourceFamilies/{data_source_family}`
The supported values are:
- `users/me/dataSourceFamilies/all-sources` - Default value. Includes data from all available data sources. - `users/me/dataSourceFamilies/google-wearables` - Includes data from Google and Fitbit tracker devices (such as Fitbit trackers and Pixel Watch). Excludes manually logged data. - `users/me/dataSourceFamilies/google-sources` - Includes first-party Google data, such as data from tracker devices, manually logged data, and Health Connect. - `users/me/dataSourceFamilies/self-sources` - Includes only the data the calling client wrote through this API, that is, data points whose data source was registered through this API with the same OAuth client ID as the caller.
Callers that were only granted write scopes for the requested data type may only read the data they wrote themselves: their requests are implicitly restricted to `self-sources`, and requesting any other data source family fails with `PERMISSION_DENIED`.
If no data point matches the requested data source family, the response is an empty list rather than an error.
Google::Devicesandservices::Health::V4::DataPoints::DailyRollUpDataPointsResponse
Response containing the list of rolled up data points.
Inherits from Protobuf::Message.
Accessors
$msg->rollup_data_points()/$msg->rollup_data_points($value)Type:
Message(Google::Devicesandservices::Health::V4::DataPoints::DailyRollupDataPoint)Values for each aggregation time window.
Google::Devicesandservices::Health::V4::DataPoints::DataType
Represents a type of health data a user can have data points recorded for. It matches the parent resource of collection containing data points of the given type.
Clients currently do not need to interact with this resource directly.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the data type.
Format: `users/{user}/dataTypes/{data_type}`
See [DataPoint.name][google.devicesandservices.health.v4.DataPoint.name] for examples and possible values.
Google::Devicesandservices::Health::V4::DataPoints::ExportExerciseTcxRequest
Represents a request to export exercise data in TCX format.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the exercise data point to export.
Format: `users/{user}/dataTypes/exercise/dataPoints/{data_point}` Example: `users/me/dataTypes/exercise/dataPoints/2026443605080188808`
The `{user}` is the alias `"me"` currently. Future versions may support user IDs. The `{data_point}` ID maps to the exercise ID, which is a long integer.
$msg->partial_data()/$msg->partial_data($value)Type:
BoolOptional. Indicates whether to include the TCX data points when the GPS data is not available. If not specified, defaults to `false` and partial data will not be included.
Google::Devicesandservices::Health::V4::DataPoints::ExportExerciseTcxResponse
Represents a Response for exporting exercise data in TCX format.
Inherits from Protobuf::Message.
Accessors
$msg->tcx_data()/$msg->tcx_data($value)Type:
StringContains the exported TCX data.
This field is intended for gRPC clients, as media download integration is not supported for gRPC. HTTP clients should instead use the `alt=media` query parameter to download the raw binary TCX file.
SEE ALSO
Protobuf, Protobuf::Message, Google::Devicesandservices::Health::V4::DataPoints::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.