Service Client: Google::Devicesandservices::Health::V4::HealthProfile::HealthProfileServiceClient
Client stub representing the remote HealthProfileService 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::HealthProfile - Compiled Protocol Buffers messages for google/devicesandservices/health/v4/health_profile.proto
SYNOPSIS
use Google::Devicesandservices::Health::V4::HealthProfile;
my $msg = Google::Devicesandservices::Health::V4::HealthProfile::User->new({
name => $name,
});
# Read or update a field
my $val = $msg->name();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Devicesandservices::Health::V4::HealthProfile::User->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/devicesandservices/health/v4/health_profile.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::HealthProfile::User
Represents a user in the Google Health API. It matches the parent resource of collections owned by the user.
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 user.
The `{user}` ID is a system-generated identifier, as described in [Identity.health_user_id][google.devicesandservices.health.v4.Identity.health_user_id].
Format: `users/{user}`
Google::Devicesandservices::Health::V4::HealthProfile::Profile
Profile details.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of this Profile resource.
Format: `users/{user}/profile` Example: `users/1234567890/profile` or `users/me/profile` The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
This field is read-only.
$msg->age()/$msg->age($value)Type:
Int32Optional. The age in years based on the user's birth date.
Updates to this field are currently not supported.
$msg->membership_start_date()/$msg->membership_start_date($value)Type:
Message(Google::Type::Date::Date)Output only. The date the user created their account.
Updates to this field are currently not supported.
$msg->user_configured_walking_stride_length_mm()/$msg->user_configured_walking_stride_length_mm($value)Type:
Int32Optional. The user's user configured walking stride length, in millimeters.
The user must consent to the following access scope to access this field:
- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`
$msg->user_configured_running_stride_length_mm()/$msg->user_configured_running_stride_length_mm($value)Type:
Int32Optional. The user's user configured running stride length, in millimeters.
The user must consent to the following access scope to access this field:
- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`
$msg->auto_walking_stride_length_mm()/$msg->auto_walking_stride_length_mm($value)Type:
Int32Output only. The automatically calculated walking stride length, in millimeters.
The user must consent to the following access scope to access this field:
- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`
$msg->auto_running_stride_length_mm()/$msg->auto_running_stride_length_mm($value)Type:
Int32Output only. The automatically calculated running stride length, in millimeters.
The user must consent to the following access scope to access this field:
- `https://www.googleapis.com/auth/googlehealth.activity_and_fitness.readonly`
Google::Devicesandservices::Health::V4::HealthProfile::PairedDevice
User's Paired 1P Device
The PairedDevice details include information about the device type, battery status, battery level, last sync time, device version, mac address, and features.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of this Device resource.
Format: `users/{user}/pairedDevices/{paired_device}` Example: `users/1234567890/pairedDevices/123` or `users/me/pairedDevices/123`
$msg->device_type()/$msg->device_type($value)Type:
Enum(Google::Devicesandservices::Health::V4::PairedDevice::DeviceType)Output only. The device type. Supported: TRACKER | SCALE
$msg->battery_status()/$msg->battery_status($value)Type:
StringOutput only. The battery status of the device. Supported: High | Medium | Low | Empty
$msg->battery_level()/$msg->battery_level($value)Type:
Int32Output only. The battery level of the device.
$msg->last_sync_time()/$msg->last_sync_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time of last sync with the Fitbit mobile application.
$msg->device_version()/$msg->device_version($value)Type:
StringOutput only. The product name of the device
$msg->mac_address()/$msg->mac_address($value)Type:
StringOutput only. Mac ID number of the device.
$msg->features()/$msg->features($value)Type:
StringOutput only. Lists of unique features supported by the device.
Comprehensive list of supported features:
Fitness Tracking
- `ACTIVE_MINUTES`: Legacy active minutes. - `AUTOSTRIDE`: Automatic stride length calculation. - `BIKE_ONBOARDING`: Cycling UI support. - `CALORIES`: Daily burned calories. - `DISTANCE`: Daily distance tracking. - `ELEVATION`: Floors climbed. - `INACTIVITY_ALERTS`: Reminders to move. - `SEDENTARY_TIME`: Tracks inactive time. - `STEPS`: Daily steps. - `SWIM`: Swim tracking (laps/strokes). - `AUTORUN`: Automatic run detection. - `ACTIVE_ZONE_MINUTES`: Active Zone Minutes (AZM).
Heart Rate & Health
- `HEART_RATE`: Continuous heart rate (PPG). - `BAT_SIGNAL`: High/Low Heart Rate Alerts.
Advanced Sensors
- `SPO2`: Blood oxygen saturation. - `NIGHTTIME_OXYGEN_SATURATION`: Sleep SpO2. - `ESTIMATED_OXYGEN_VARIATION`: Estimated Oxygen Variation. - `EDA`: Electrodermal Activity (stress). - `SKIN_TEMPERATURE`: Skin temperature variation. - `INTERNAL_DEVICE_TEMPERATURE`: Internal device temperature.
Sleep & Wellness
- `SLEEP`: Basic sleep tracking. - `SMART_SLEEP`: Advanced sleep tracking (stages/score). - `BEDTIME_REMINDER`: Bedtime reminders. - `SOUNDSCAPE`: Snore and noise detection.
Advanced Workouts
- `WB`: Custom Workout Builder. - `AUTOCUES`: Auto Cues / Auto Lap. - `DWR_RUN`: Daily Run Recommendations. - `ADVANCED_RUNNING`: Advanced Running Dynamics (e.g., GCT, VO).
GPS & Location
- `GPS`: Built-in GPS. - `CONNECTED_GPS`: Connected GPS (uses phone). - `LOCATION_HINT`: Location helper.
Payments & NFC
- `PAYMENTS`: NFC payments (Fitbit Pay/Google Wallet). - `FELICA`: FeliCa support (Japan payments/transit).
Activity Detection
- `GROK`: SmartTrack automatic activity detection. - `RETRO_AR`: Retroactive Activity Recognition prompts.
Smart Features & UI
- `ALARMS`: Silent alarms. - `BLE_MUSIC_CONTROL`: BLE music control. - `MUSIC`: Direct music storage/control. - `YOUTUBE_MUSIC_SUPPORTED`: YouTube Music support. - `GALLERY`: App Gallery. - `TUTORIAL_SUPPORTED`: On-screen tutorials. - `SMILEY_EMOTE`: Legacy Zip face. - `MOBILE_TO_DEVICE_DEEPLINK`: Mobile to device settings deep link. - `HIDE_GALLERY`: Option to hide Gallery. - `HIDE_GOAL_SELECTION`: Option to hide goal selection. - `DIGITAL_WARRANTY_SUPPORTED`: Digital warranty display. - `DIRECT_DEVICE_SETTINGS_SUPPORTED`: Direct device settings management.
Gym HR Broadcasting
- `ASPEN_SUPPORTED`: Broadcast HR to gym equipment. - `ASPEN_REMOTE_UI_SUPPORTED`: Remote UI for HR sharing.
Privacy & Security
- `FINITE_IMPROBABILITY`: BLE Resolvable Private Address (RPA) privacy. - `DOMAIN_KEY_SYNC`: Domain key synchronization.
BLE Protocol
- `BONDING`: Secure BLE bonding. - `ADVERTISES_SERIAL`: Advertises serial number. - `STATUS_CHARACTERISTIC`: BLE Status Characteristic. - `TRACKER_CHANNEL_CHARACTERISTIC`: BLE Tracker Channel Characteristic. - `PING_CHARACTERISTIC`: BLE Ping Characteristic.
Cellular & Wi-Fi
- `MOBILE_DATA`: LTE cellular support. - `SINGLE_AP_WIFI`: Single AP Wi-Fi. - `MULTI_AP_WIFI`: Multi AP Wi-Fi. - `WIFI_FWUP`: Firmware updates over Wi-Fi.
Data Sync & Transfer
- `APP_SYNC`: Background app sync. - `LIVE_DATA`: Real-time data streaming. - `EVENT_BASED_SYNC_SUPPORTED`: Event-based sync. - `TIME_SERVICE`: Time synchronization service. - `REMOTE_FILE_PROVIDER`: Remote file transfer. - `DIRECT_COMMS_ALARMS`: Direct communication for alarms. - `DIRECT_COMMS_EXERCISE`: Direct communication for exercise. - `DIRECT_COMMS_BATTERY_ALERTS`: Direct communication for battery alerts.
Google Integrations
- `PARROT_TREE_SUPPORTED`: Find My Device support.
Enum: PairedDevice::DeviceType
DEVICE_TYPE_UNSPECIFIED=>0TRACKER=>1SCALE=>2
Google::Devicesandservices::Health::V4::HealthProfile::IrnProfile
Irregular Rhythm Notifications (IRN) Profile details.
The Irregular Rhythm Notifications (IRN) feature checks for signs of atrial fibrillation (AFib). The IrnProfile details include information about the user's onboarding status, enrollment status, and the last update time of analyzable data for this feature.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of this IrnProfile resource.
Format: `users/{user}/irnProfile` Example: `users/1234567890/irnProfile` or `users/me/irnProfile` The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
$msg->onboarding_status()/$msg->onboarding_status($value)Type:
BoolRequired. Whether or not the user has onboarded onto the IRN feature.
$msg->enrollment_status()/$msg->enrollment_status($value)Type:
BoolRequired. Whether or not the user is currently enrolled in having their data processed for IRN alerts.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The timestamp of the last piece of analyzable data synced by the user.
Google::Devicesandservices::Health::V4::HealthProfile::Settings
Settings details.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of this Settings resource.
Format: `users/{user}/settings` Example: `users/1234567890/settings` or `users/me/settings` The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
This field is read-only.
$msg->auto_stride_enabled()/$msg->auto_stride_enabled($value)Type:
BoolOptional. True if the user's stride length is determined automatically.
Updates to this field are currently not supported.
$msg->distance_unit()/$msg->distance_unit($value)Type:
Enum(Google::Devicesandservices::Health::V4::Settings::DistanceUnit)Optional. The measurement unit defined in the user's account settings.
$msg->glucose_unit()/$msg->glucose_unit($value)Type:
Enum(Google::Devicesandservices::Health::V4::Settings::GlucoseUnit)Optional. The measurement unit defined in the user's account settings.
$msg->height_unit()/$msg->height_unit($value)Type:
Enum(Google::Devicesandservices::Health::V4::Settings::HeightUnit)Optional. The measurement unit defined in the user's account settings.
$msg->language_locale()/$msg->language_locale($value)Type:
StringOptional. The locale defined in the user's account settings.
Updates to this field are currently not supported.
$msg->utc_offset()/$msg->utc_offset($value)Type:
Message(Google::Protobuf::Duration::Duration)Optional. The user's timezone offset relative to UTC.
Updates to this field are currently not supported.
$msg->stride_length_walking_type()/$msg->stride_length_walking_type($value)Type:
Enum(Google::Devicesandservices::Health::V4::Settings::StrideLengthType)Optional. The stride length type defined in the user's account settings for walking.
Updates to this field are currently not supported.
$msg->stride_length_running_type()/$msg->stride_length_running_type($value)Type:
Enum(Google::Devicesandservices::Health::V4::Settings::StrideLengthType)Optional. The stride length type defined in the user's account settings for running.
Updates to this field are currently not supported.
$msg->swim_unit()/$msg->swim_unit($value)Type:
Enum(Google::Devicesandservices::Health::V4::Settings::SwimUnit)Optional. The measurement unit defined in the user's account settings.
$msg->temperature_unit()/$msg->temperature_unit($value)Type:
Enum(Google::Devicesandservices::Health::V4::Settings::TemperatureUnit)Optional. The measurement unit defined in the user's account settings.
$msg->time_zone()/$msg->time_zone($value)Type:
StringOptional. The timezone defined in the user's account settings. This follows the IANA [Time Zone Database](https://www.iana.org/time-zones).
Updates to this field are currently not supported.
$msg->weight_unit()/$msg->weight_unit($value)Type:
Enum(Google::Devicesandservices::Health::V4::Settings::WeightUnit)Optional. The measurement unit defined in the user's account settings.
$msg->water_unit()/$msg->water_unit($value)Type:
Enum(Google::Devicesandservices::Health::V4::Settings::WaterUnit)Optional. The measurement unit defined in the user's account settings.
$msg->food_language_code()/$msg->food_language_code($value)Type:
StringOutput only. The food language code derived from the user's food database. Possible values: `'en-US'`, `'en-GB'`, `'de-DE'`, `'es-ES'`, `'fr-FR'`, `'zh-CN'`, `'zh-TW'`, `'ja-JP'`, `'en-AU'`, `'en-CA'`, `'it-IT'`, `'ko-KR'`, `'es-MX'`, `'en-IN'`, `'en-SG'`, `'en-PH'`, `'en-IE'`, `'fr-CA'`.
Updates to this field are currently not supported.
Enum: Settings::DistanceUnit
DISTANCE_UNIT_UNSPECIFIED=>0DISTANCE_UNIT_MILES=>1DISTANCE_UNIT_KILOMETERS=>2
Enum: Settings::GlucoseUnit
GLUCOSE_UNIT_UNSPECIFIED=>0GLUCOSE_UNIT_MG_DL=>1GLUCOSE_UNIT_MMOL_L=>2
Enum: Settings::HeightUnit
HEIGHT_UNIT_UNSPECIFIED=>0HEIGHT_UNIT_INCHES=>1HEIGHT_UNIT_CENTIMETERS=>2
Enum: Settings::StrideLengthType
STRIDE_LENGTH_TYPE_UNSPECIFIED=>0STRIDE_LENGTH_TYPE_DEFAULT=>1STRIDE_LENGTH_TYPE_MANUAL=>2STRIDE_LENGTH_TYPE_AUTO=>3
Enum: Settings::SwimUnit
SWIM_UNIT_UNSPECIFIED=>0SWIM_UNIT_METERS=>1SWIM_UNIT_YARDS=>2
Enum: Settings::TemperatureUnit
TEMPERATURE_UNIT_UNSPECIFIED=>0TEMPERATURE_UNIT_CELSIUS=>1TEMPERATURE_UNIT_FAHRENHEIT=>2
Enum: Settings::WeightUnit
WEIGHT_UNIT_UNSPECIFIED=>0WEIGHT_UNIT_POUNDS=>1WEIGHT_UNIT_STONE=>2WEIGHT_UNIT_KILOGRAMS=>3
Enum: Settings::WaterUnit
WATER_UNIT_UNSPECIFIED=>0WATER_UNIT_ML=>1WATER_UNIT_FL_OZ=>2WATER_UNIT_CUP=>3
Google::Devicesandservices::Health::V4::HealthProfile::Identity
Represents details about the Google user's identity.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of this Identity resource. Format: `users/me/identity`
$msg->legacy_user_id()/$msg->legacy_user_id($value)Type:
StringOutput only. The legacy Fitbit User identifier. This is the Fitbit ID used in the legacy Fitbit APIs (v1-v3). It can be referenced by clients migrating from the legacy Fitbit APIs to map their existing identifiers to the new Google user ID.
It must not be used for any other purpose. It is not of any use for new clients using only the Google Health APIs.
Valid values are strings of 1-63 characters, and valid characters are lowercase and uppercase letters, numbers, and hyphens.
$msg->health_user_id()/$msg->health_user_id($value)Type:
StringOutput only. The Google User Identifier in the Google Health APIs. It matches the `{user}` resource ID segment in the resource name paths, e.g. `users/{user}/dataTypes/steps`.
Valid values are strings of 1-63 characters, and valid characters are lowercase and uppercase letters, numbers, and hyphens.
Google::Devicesandservices::Health::V4::HealthProfile::GetProfileRequest
Request message for getting Profile details.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the Profile. Format: `users/me/profile`.
Google::Devicesandservices::Health::V4::HealthProfile::GetIrnProfileRequest
Request message for getting IRN Profile details.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the IRN Profile. Format: `users/{user}/irnProfile` Example: `users/1234567890/irnProfile` or `users/me/irnProfile` The {user} ID is a system-generated Google Health API user ID, a string of 1-63 characters consisting of lowercase and uppercase letters, numbers, and hyphens. The literal `me` can also be used to refer to the authenticated user.
Google::Devicesandservices::Health::V4::HealthProfile::UpdateProfileRequest
Request message for updating Profile details.
Inherits from Protobuf::Message.
Accessors
$msg->profile()/$msg->profile($value)Type:
Message(Google::Devicesandservices::Health::V4::HealthProfile::Profile)Required. Profile details.
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The list of fields to be updated.
Google::Devicesandservices::Health::V4::HealthProfile::GetSettingsRequest
Request message for getting Settings details.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the Settings. Format: `users/me/settings`.
Google::Devicesandservices::Health::V4::HealthProfile::UpdateSettingsRequest
Request message for updating Settings details.
Inherits from Protobuf::Message.
Accessors
$msg->settings()/$msg->settings($value)Type:
Message(Google::Devicesandservices::Health::V4::HealthProfile::Settings)Required. Settings details
$msg->update_mask()/$msg->update_mask($value)Type:
Message(Google::Protobuf::FieldMask::FieldMask)Optional. The list of fields to be updated.
Google::Devicesandservices::Health::V4::HealthProfile::GetIdentityRequest
Request message for getting Identity details.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The resource name of the Identity. Format: `users/me/identity`
Google::Devicesandservices::Health::V4::HealthProfile::GetPairedDeviceRequest
Request message for getting a Device.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the device to retrieve. Format: users/{user}/devices/{device}
Google::Devicesandservices::Health::V4::HealthProfile::ListPairedDevicesRequest
Request message for listing Devices.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent, which owns this collection of devices. Format: users/{user}
$msg->page_size()/$msg->page_size($value)Type:
Int32Optional. The maximum number of devices to return. The service may return fewer than this value. If unspecified, at most 5 devices will be returned. The maximum value is 100. values above 100 will be coerced to 100.
$msg->page_token()/$msg->page_token($value)Type:
StringOptional. A page token, received from a previous `ListPairedDevices` call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListPairedDevices` must match the call that provided the page token.
Google::Devicesandservices::Health::V4::HealthProfile::ListPairedDevicesResponse
Response message for ListPairedDevices.
Inherits from Protobuf::Message.
Accessors
$msg->paired_devices()/$msg->paired_devices($value)Type:
Message(Google::Devicesandservices::Health::V4::HealthProfile::PairedDevice)The paired devices of the user.
$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.
SEE ALSO
Protobuf, Protobuf::Message, Google::Devicesandservices::Health::V4::HealthProfile::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.