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
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
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 |
|
public static final int WAVEFORM_SAMPLES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Electrocardiogram getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Electrocardiogram.Builder newBuilder()
newBuilder(Electrocardiogram prototype)
public static Electrocardiogram.Builder newBuilder(Electrocardiogram prototype)
public static Electrocardiogram parseDelimitedFrom(InputStream input)
public static Electrocardiogram parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Electrocardiogram parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Electrocardiogram parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Electrocardiogram parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Electrocardiogram parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Electrocardiogram parseFrom(CodedInputStream input)
public static Electrocardiogram parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Electrocardiogram parseFrom(InputStream input)
public static Electrocardiogram parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Electrocardiogram parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Electrocardiogram parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Electrocardiogram> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
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()
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];
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];
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];
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];
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()
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];
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
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.
|
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.
|
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()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Electrocardiogram.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Electrocardiogram.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Electrocardiogram.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides