NAME
Google::Devicesandservices::Health::V4::DataSource - Compiled Protocol Buffers messages for google/devicesandservices/health/v4/data_source.proto
SYNOPSIS
use Google::Devicesandservices::Health::V4::DataSource;
my $msg = Google::Devicesandservices::Health::V4::DataSource::DataSource->new({
recording_method => $recording_method,
device => $device,
application => $application,
platform => $platform,
});
# Read or update a field
my $val = $msg->recording_method();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Devicesandservices::Health::V4::DataSource::DataSource->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/devicesandservices/health/v4/data_source.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::DataSource::DataSource
Data Source definition to track the origin of data.
Each health data point, regardless of the complexity or data model (whether a simple step count or a detailed sleep session) must retain information about its source of origin (e.g. the device or app that collected it).
Inherits from Protobuf::Message.
Accessors
$msg->recording_method()/$msg->recording_method($value)Type:
Enum(Google::Devicesandservices::Health::V4::DataSource::RecordingMethod)Optional. Captures how the data was recorded.
$msg->device()/$msg->device($value)Type:
Message(Google::Devicesandservices::Health::V4::DataSource::DataSource::Device)Optional. Captures metadata for raw data points originating from devices. We expect this data source to be used for data points written on device sync.
$msg->application()/$msg->application($value)Type:
Message(Google::Devicesandservices::Health::V4::DataSource::DataSource::Application)Output only. Captures metadata for the application that provided this data.
$msg->platform()/$msg->platform($value)Type:
Enum(Google::Devicesandservices::Health::V4::DataSource::Platform)Output only. Captures the platform that uploaded the data.
Enum: DataSource::RecordingMethod
RECORDING_METHOD_UNSPECIFIED=>0MANUAL=>1PASSIVELY_MEASURED=>2DERIVED=>3ACTIVELY_MEASURED=>4UNKNOWN=>5
Enum: DataSource::Platform
PLATFORM_UNSPECIFIED=>0FITBIT=>1HEALTH_CONNECT=>2HEALTH_KIT=>3FIT=>4FITBIT_WEB_API=>5NEST=>6GOOGLE_WEB_API=>7GOOGLE_PARTNER_INTEGRATION=>8
SEE ALSO
Protobuf, Protobuf::Message, Google::Devicesandservices::Health::V4::DataSource::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.