Class IrregularRhythmNotification.HeartBeat (0.2.0)

public static final class IrregularRhythmNotification.HeartBeat extends GeneratedMessage implements IrregularRhythmNotification.HeartBeatOrBuilder

A single heart beat measurement.

Protobuf type google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > IrregularRhythmNotification.HeartBeat

Static Fields

BEATS_PER_MINUTE_FIELD_NUMBER

public static final int BEATS_PER_MINUTE_FIELD_NUMBER
Field Value
Type Description
int

CIVIL_TIME_FIELD_NUMBER

public static final int CIVIL_TIME_FIELD_NUMBER
Field Value
Type Description
int

PHYSICAL_TIME_FIELD_NUMBER

public static final int PHYSICAL_TIME_FIELD_NUMBER
Field Value
Type Description
int

UTC_OFFSET_FIELD_NUMBER

public static final int UTC_OFFSET_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static IrregularRhythmNotification.HeartBeat getDefaultInstance()
Returns
Type Description
IrregularRhythmNotification.HeartBeat

getDescriptor()

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

newBuilder()

public static IrregularRhythmNotification.HeartBeat.Builder newBuilder()
Returns
Type Description
IrregularRhythmNotification.HeartBeat.Builder

newBuilder(IrregularRhythmNotification.HeartBeat prototype)

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

parseDelimitedFrom(InputStream input)

public static IrregularRhythmNotification.HeartBeat parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
IrregularRhythmNotification.HeartBeat
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static IrregularRhythmNotification.HeartBeat parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
IrregularRhythmNotification.HeartBeat
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static IrregularRhythmNotification.HeartBeat parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
IrregularRhythmNotification.HeartBeat
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static IrregularRhythmNotification.HeartBeat parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
IrregularRhythmNotification.HeartBeat
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static IrregularRhythmNotification.HeartBeat parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
IrregularRhythmNotification.HeartBeat
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<IrregularRhythmNotification.HeartBeat> parser()
Returns
Type Description
Parser<HeartBeat>

Methods

equals(Object obj)

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

getBeatsPerMinute()

public int getBeatsPerMinute()

Required. The beats-per-minute value extrapolated from the time before the following heart beat. This is calculated as 60000 / rr, where rr is the gap between heart beats in milliseconds (IBI - Interbeat Interval).

optional int32 beats_per_minute = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The beatsPerMinute.

getCivilTime()

public CivilDateTime getCivilTime()

Output only. The civil time in the timezone the subject is in at the time of the observation.

.google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTime

The civilTime.

getCivilTimeOrBuilder()

public CivilDateTimeOrBuilder getCivilTimeOrBuilder()

Output only. The civil time in the timezone the subject is in at the time of the observation.

.google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTimeOrBuilder

getDefaultInstanceForType()

public IrregularRhythmNotification.HeartBeat getDefaultInstanceForType()
Returns
Type Description
IrregularRhythmNotification.HeartBeat

getParserForType()

public Parser<IrregularRhythmNotification.HeartBeat> getParserForType()
Returns
Type Description
Parser<HeartBeat>
Overrides

getPhysicalTime()

public Timestamp getPhysicalTime()

Required. The time of the heart beat measurement.

.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The physicalTime.

getPhysicalTimeOrBuilder()

public TimestampOrBuilder getPhysicalTimeOrBuilder()

Required. The time of the heart beat measurement.

.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getUtcOffset()

public Duration getUtcOffset()

Required. The UTC offset of the user's timezone when the heart beat measurement occurred.

.google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The utcOffset.

getUtcOffsetOrBuilder()

public DurationOrBuilder getUtcOffsetOrBuilder()

Required. The UTC offset of the user's timezone when the heart beat measurement occurred.

.google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

hasBeatsPerMinute()

public boolean hasBeatsPerMinute()

Required. The beats-per-minute value extrapolated from the time before the following heart beat. This is calculated as 60000 / rr, where rr is the gap between heart beats in milliseconds (IBI - Interbeat Interval).

optional int32 beats_per_minute = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the beatsPerMinute field is set.

hasCivilTime()

public boolean hasCivilTime()

Output only. The civil time in the timezone the subject is in at the time of the observation.

.google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the civilTime field is set.

hasPhysicalTime()

public boolean hasPhysicalTime()

Required. The time of the heart beat measurement.

.google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the physicalTime field is set.

hasUtcOffset()

public boolean hasUtcOffset()

Required. The UTC offset of the user's timezone when the heart beat measurement occurred.

.google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the utcOffset 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 IrregularRhythmNotification.HeartBeat.Builder newBuilderForType()
Returns
Type Description
IrregularRhythmNotification.HeartBeat.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public IrregularRhythmNotification.HeartBeat.Builder toBuilder()
Returns
Type Description
IrregularRhythmNotification.HeartBeat.Builder

writeTo(CodedOutputStream output)

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