Class IrregularRhythmNotification (0.2.0)

public final class IrregularRhythmNotification extends GeneratedMessage implements IrregularRhythmNotificationOrBuilder

Represents an Irregular Rhythm Notification alert, indicating a potential sign of atrial fibrillation (AFib). This data type is based on SaMD feature and any changes to it may require additional review.

Protobuf type google.devicesandservices.health.v4.IrregularRhythmNotification

Static Fields

ALERT_WINDOWS_FIELD_NUMBER

public static final int ALERT_WINDOWS_FIELD_NUMBER
Field Value
Type Description
int

INTERVAL_FIELD_NUMBER

public static final int INTERVAL_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

Static Methods

getDefaultInstance()

public static IrregularRhythmNotification getDefaultInstance()
Returns
Type Description
IrregularRhythmNotification

getDescriptor()

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

newBuilder()

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

newBuilder(IrregularRhythmNotification prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getAlertWindows(int index)

public IrregularRhythmNotification.AlertWindow getAlertWindows(int index)

Optional. The overlapping analysis windows that were used to evaluate rhythm for potential AFib, containing specific information about the user's heart rhythm.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.AlertWindow alert_windows = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IrregularRhythmNotification.AlertWindow

getAlertWindowsCount()

public int getAlertWindowsCount()

Optional. The overlapping analysis windows that were used to evaluate rhythm for potential AFib, containing specific information about the user's heart rhythm.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.AlertWindow alert_windows = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getAlertWindowsList()

public List<IrregularRhythmNotification.AlertWindow> getAlertWindowsList()

Optional. The overlapping analysis windows that were used to evaluate rhythm for potential AFib, containing specific information about the user's heart rhythm.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.AlertWindow alert_windows = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<AlertWindow>

getAlertWindowsOrBuilder(int index)

public IrregularRhythmNotification.AlertWindowOrBuilder getAlertWindowsOrBuilder(int index)

Optional. The overlapping analysis windows that were used to evaluate rhythm for potential AFib, containing specific information about the user's heart rhythm.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.AlertWindow alert_windows = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IrregularRhythmNotification.AlertWindowOrBuilder

getAlertWindowsOrBuilderList()

public List<? extends IrregularRhythmNotification.AlertWindowOrBuilder> getAlertWindowsOrBuilderList()

Optional. The overlapping analysis windows that were used to evaluate rhythm for potential AFib, containing specific information about the user's heart rhythm.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.AlertWindow alert_windows = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<? extends com.google.devicesandservices.health.v4.IrregularRhythmNotification.AlertWindowOrBuilder>

getDefaultInstanceForType()

public IrregularRhythmNotification getDefaultInstanceForType()
Returns
Type Description
IrregularRhythmNotification

getInterval()

public SessionTimeInterval getInterval()

Required. Observed interval.

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

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

Returns
Type Description
SessionTimeIntervalOrBuilder

getMedicalDeviceInfo()

public MedicalDeviceInfo getMedicalDeviceInfo()

Output only. The meta information for the compatible device used to conduct the measurement.

Irregular Rhythm Notification measurements typically populate algorithm_version, service_version, and device_model.

.google.devicesandservices.health.v4.MedicalDeviceInfo medical_device_info = 6 [(.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.

Irregular Rhythm Notification measurements typically populate algorithm_version, service_version, and device_model.

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

Returns
Type Description
MedicalDeviceInfoOrBuilder

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasInterval()

public boolean hasInterval()

Required. Observed interval.

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

Returns
Type Description
boolean

Whether the interval field is set.

hasMedicalDeviceInfo()

public boolean hasMedicalDeviceInfo()

Output only. The meta information for the compatible device used to conduct the measurement.

Irregular Rhythm Notification measurements typically populate algorithm_version, service_version, and device_model.

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

Returns
Type Description
boolean

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

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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