Class Electrocardiogram (0.2.0)

public final class Electrocardiogram extends GeneratedMessage implements ElectrocardiogramOrBuilder

Represents an Electrocardiogram (ECG) measurement session. This data type is based on SaMD feature and any changes to it may require additional review.

Protobuf type google.devicesandservices.health.v4.Electrocardiogram

Static Fields

BEATS_PER_MINUTE_AVG_FIELD_NUMBER

public static final int BEATS_PER_MINUTE_AVG_FIELD_NUMBER
Field Value
Type Description
int

INTERVAL_FIELD_NUMBER

public static final int INTERVAL_FIELD_NUMBER
Field Value
Type Description
int

LEAD_NUMBER_FIELD_NUMBER

public static final int LEAD_NUMBER_FIELD_NUMBER
Field Value
Type Description
int

MEDICAL_DEVICE_INFO_FIELD_NUMBER

public static final int MEDICAL_DEVICE_INFO_FIELD_NUMBER
Field Value
Type Description
int

MILLIVOLTS_SCALING_FACTOR_FIELD_NUMBER

public static final int MILLIVOLTS_SCALING_FACTOR_FIELD_NUMBER
Field Value
Type Description
int

RESULT_CLASSIFICATION_FIELD_NUMBER

public static final int RESULT_CLASSIFICATION_FIELD_NUMBER
Field Value
Type Description
int

SAMPLING_FREQUENCY_HERTZ_FIELD_NUMBER

public static final int SAMPLING_FREQUENCY_HERTZ_FIELD_NUMBER
Field Value
Type Description
int

WAVEFORM_SAMPLES_FIELD_NUMBER

public static final int WAVEFORM_SAMPLES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Electrocardiogram getDefaultInstance()
Returns
Type Description
Electrocardiogram

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Electrocardiogram.Builder newBuilder()
Returns
Type Description
Electrocardiogram.Builder

newBuilder(Electrocardiogram prototype)

public static Electrocardiogram.Builder newBuilder(Electrocardiogram prototype)
Parameter
Name Description
prototype Electrocardiogram
Returns
Type Description
Electrocardiogram.Builder

parseDelimitedFrom(InputStream input)

public static Electrocardiogram parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Electrocardiogram parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Electrocardiogram parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Electrocardiogram parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Electrocardiogram parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Electrocardiogram parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Electrocardiogram parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Electrocardiogram parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Electrocardiogram parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Electrocardiogram parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Electrocardiogram parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Electrocardiogram parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Electrocardiogram
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Electrocardiogram> parser()
Returns
Type Description
Parser<Electrocardiogram>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getBeatsPerMinuteAvg()

public long getBeatsPerMinuteAvg()

Optional. Average heart rate recorded during ECG reading in beats per minute.

optional int64 beats_per_minute_avg = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
long

The beatsPerMinuteAvg.

getDefaultInstanceForType()

public Electrocardiogram getDefaultInstanceForType()
Returns
Type Description
Electrocardiogram

getInterval()

public SessionTimeInterval getInterval()

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.

.google.devicesandservices.health.v4.SessionTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SessionTimeInterval

The interval.

getIntervalOrBuilder()

public SessionTimeIntervalOrBuilder getIntervalOrBuilder()

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.

.google.devicesandservices.health.v4.SessionTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SessionTimeIntervalOrBuilder

getLeadNumber()

public int getLeadNumber()

Optional. The number of leads used for ECG reading.

optional int32 lead_number = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The leadNumber.

getMedicalDeviceInfo()

public MedicalDeviceInfo getMedicalDeviceInfo()

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.

.google.devicesandservices.health.v4.MedicalDeviceInfo medical_device_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MedicalDeviceInfo

The medicalDeviceInfo.

getMedicalDeviceInfoOrBuilder()

public MedicalDeviceInfoOrBuilder getMedicalDeviceInfoOrBuilder()

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.

.google.devicesandservices.health.v4.MedicalDeviceInfo medical_device_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
MedicalDeviceInfoOrBuilder

getMillivoltsScalingFactor()

public int getMillivoltsScalingFactor()

Optional. The factor by which to divide waveform samples to get voltage in millivolts: millivolts = waveform_sample / millivolts_scaling_factor.

optional int32 millivolts_scaling_factor = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The millivoltsScalingFactor.

getParserForType()

public Parser<Electrocardiogram> getParserForType()
Returns
Type Description
Parser<Electrocardiogram>
Overrides

getResultClassification()

public Electrocardiogram.ResultClassification getResultClassification()

Optional. The result classification of the ECG reading.

.google.devicesandservices.health.v4.Electrocardiogram.ResultClassification result_classification = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Electrocardiogram.ResultClassification

The resultClassification.

getResultClassificationValue()

public int getResultClassificationValue()

Optional. The result classification of the ECG reading.

.google.devicesandservices.health.v4.Electrocardiogram.ResultClassification result_classification = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for resultClassification.

getSamplingFrequencyHertz()

public int getSamplingFrequencyHertz()

Optional. The sampling frequency of waveform samples in hertz.

optional int32 sampling_frequency_hertz = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The samplingFrequencyHertz.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWaveformSamples(int index)

public int getWaveformSamples(int index)

Optional. 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.

repeated sint32 waveform_samples = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
int

The waveformSamples at the given index.

getWaveformSamplesCount()

public int getWaveformSamplesCount()

Optional. 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.

repeated sint32 waveform_samples = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The count of waveformSamples.

getWaveformSamplesList()

public List<Integer> getWaveformSamplesList()

Optional. 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.

repeated sint32 waveform_samples = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Integer>

A list containing the waveformSamples.

hasBeatsPerMinuteAvg()

public boolean hasBeatsPerMinuteAvg()

Optional. Average heart rate recorded during ECG reading in beats per minute.

optional int64 beats_per_minute_avg = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the beatsPerMinuteAvg field is set.

hasInterval()

public boolean hasInterval()

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.

.google.devicesandservices.health.v4.SessionTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the interval field is set.

hasLeadNumber()

public boolean hasLeadNumber()

Optional. The number of leads used for ECG reading.

optional int32 lead_number = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the leadNumber field is set.

hasMedicalDeviceInfo()

public boolean hasMedicalDeviceInfo()

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.

.google.devicesandservices.health.v4.MedicalDeviceInfo medical_device_info = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the medicalDeviceInfo field is set.

hasMillivoltsScalingFactor()

public boolean hasMillivoltsScalingFactor()

Optional. The factor by which to divide waveform samples to get voltage in millivolts: millivolts = waveform_sample / millivolts_scaling_factor.

optional int32 millivolts_scaling_factor = 6 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the millivoltsScalingFactor field is set.

hasSamplingFrequencyHertz()

public boolean hasSamplingFrequencyHertz()

Optional. The sampling frequency of waveform samples in hertz.

optional int32 sampling_frequency_hertz = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the samplingFrequencyHertz field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Electrocardiogram.Builder newBuilderForType()
Returns
Type Description
Electrocardiogram.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Electrocardiogram.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Electrocardiogram.Builder
Overrides

toBuilder()

public Electrocardiogram.Builder toBuilder()
Returns
Type Description
Electrocardiogram.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException