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

Enum: DataSource::RecordingMethod

  • RECORDING_METHOD_UNSPECIFIED => 0

  • MANUAL => 1

  • PASSIVELY_MEASURED => 2

  • DERIVED => 3

  • ACTIVELY_MEASURED => 4

  • UNKNOWN => 5

Enum: DataSource::Platform

  • PLATFORM_UNSPECIFIED => 0

  • FITBIT => 1

  • HEALTH_CONNECT => 2

  • HEALTH_KIT => 3

  • FIT => 4

  • FITBIT_WEB_API => 5

  • NEST => 6

  • GOOGLE_WEB_API => 7

  • GOOGLE_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.