Class IrregularRhythmNotification.AlertWindow.Builder (0.2.0)

public static final class IrregularRhythmNotification.AlertWindow.Builder extends GeneratedMessage.Builder<IrregularRhythmNotification.AlertWindow.Builder> implements IrregularRhythmNotification.AlertWindowOrBuilder

An analysis window evaluated for AFib.

Note: The current version of the algorithm will only produce alerts if all windows are positive. So anything returned from the API will always have the positive bit set to true. Internally, windows can be negative, however. We never save "inconclusive" windows (they aren't produced by the algorithm).

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

Static Methods

getDescriptor()

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

Methods

addAllHeartBeats(Iterable<? extends IrregularRhythmNotification.HeartBeat> values)

public IrregularRhythmNotification.AlertWindow.Builder addAllHeartBeats(Iterable<? extends IrregularRhythmNotification.HeartBeat> values)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
values Iterable<? extends com.google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat>
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

addHeartBeats(IrregularRhythmNotification.HeartBeat value)

public IrregularRhythmNotification.AlertWindow.Builder addHeartBeats(IrregularRhythmNotification.HeartBeat value)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value IrregularRhythmNotification.HeartBeat
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

addHeartBeats(IrregularRhythmNotification.HeartBeat.Builder builderForValue)

public IrregularRhythmNotification.AlertWindow.Builder addHeartBeats(IrregularRhythmNotification.HeartBeat.Builder builderForValue)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue IrregularRhythmNotification.HeartBeat.Builder
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

addHeartBeats(int index, IrregularRhythmNotification.HeartBeat value)

public IrregularRhythmNotification.AlertWindow.Builder addHeartBeats(int index, IrregularRhythmNotification.HeartBeat value)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value IrregularRhythmNotification.HeartBeat
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

addHeartBeats(int index, IrregularRhythmNotification.HeartBeat.Builder builderForValue)

public IrregularRhythmNotification.AlertWindow.Builder addHeartBeats(int index, IrregularRhythmNotification.HeartBeat.Builder builderForValue)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue IrregularRhythmNotification.HeartBeat.Builder
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

addHeartBeatsBuilder()

public IrregularRhythmNotification.HeartBeat.Builder addHeartBeatsBuilder()

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IrregularRhythmNotification.HeartBeat.Builder

addHeartBeatsBuilder(int index)

public IrregularRhythmNotification.HeartBeat.Builder addHeartBeatsBuilder(int index)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IrregularRhythmNotification.HeartBeat.Builder

build()

public IrregularRhythmNotification.AlertWindow build()
Returns
Type Description
IrregularRhythmNotification.AlertWindow

buildPartial()

public IrregularRhythmNotification.AlertWindow buildPartial()
Returns
Type Description
IrregularRhythmNotification.AlertWindow

clear()

public IrregularRhythmNotification.AlertWindow.Builder clear()
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder
Overrides

clearCivilEndTime()

public IrregularRhythmNotification.AlertWindow.Builder clearCivilEndTime()

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

clearCivilStartTime()

public IrregularRhythmNotification.AlertWindow.Builder clearCivilStartTime()

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

clearEndTime()

public IrregularRhythmNotification.AlertWindow.Builder clearEndTime()

Required. The end time of the analysis window.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

clearEndUtcOffset()

public IrregularRhythmNotification.AlertWindow.Builder clearEndUtcOffset()

Required. The UTC offset of the user's timezone when the analysis window ended.

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

clearHeartBeats()

public IrregularRhythmNotification.AlertWindow.Builder clearHeartBeats()

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

clearPositive()

public IrregularRhythmNotification.AlertWindow.Builder clearPositive()

Optional. Flag indicating whether the window was positive for AFib or not. A true value indicates that AFib was detected in this window. A false value means AFib was not detected, but does not guarantee the absence of AFib.

bool positive = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

This builder for chaining.

clearStartTime()

public IrregularRhythmNotification.AlertWindow.Builder clearStartTime()

Required. Observed interval. The start time of the analysis window.

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

Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

clearStartUtcOffset()

public IrregularRhythmNotification.AlertWindow.Builder clearStartUtcOffset()

Required. The UTC offset of the user's timezone when the analysis window started.

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

Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

getCivilEndTime()

public CivilDateTime getCivilEndTime()

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTime

The civilEndTime.

getCivilEndTimeBuilder()

public CivilDateTime.Builder getCivilEndTimeBuilder()

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTime.Builder

getCivilEndTimeOrBuilder()

public CivilDateTimeOrBuilder getCivilEndTimeOrBuilder()

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTimeOrBuilder

getCivilStartTime()

public CivilDateTime getCivilStartTime()

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTime

The civilStartTime.

getCivilStartTimeBuilder()

public CivilDateTime.Builder getCivilStartTimeBuilder()

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTime.Builder

getCivilStartTimeOrBuilder()

public CivilDateTimeOrBuilder getCivilStartTimeOrBuilder()

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTimeOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

Required. The end time of the analysis window.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Required. The end time of the analysis window.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Required. The end time of the analysis window.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getEndUtcOffset()

public Duration getEndUtcOffset()

Required. The UTC offset of the user's timezone when the analysis window ended.

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The endUtcOffset.

getEndUtcOffsetBuilder()

public Duration.Builder getEndUtcOffsetBuilder()

Required. The UTC offset of the user's timezone when the analysis window ended.

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getEndUtcOffsetOrBuilder()

public DurationOrBuilder getEndUtcOffsetOrBuilder()

Required. The UTC offset of the user's timezone when the analysis window ended.

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

getHeartBeats(int index)

public IrregularRhythmNotification.HeartBeat getHeartBeats(int index)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IrregularRhythmNotification.HeartBeat

getHeartBeatsBuilder(int index)

public IrregularRhythmNotification.HeartBeat.Builder getHeartBeatsBuilder(int index)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IrregularRhythmNotification.HeartBeat.Builder

getHeartBeatsBuilderList()

public List<IrregularRhythmNotification.HeartBeat.Builder> getHeartBeatsBuilderList()

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<Builder>

getHeartBeatsCount()

public int getHeartBeatsCount()

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

getHeartBeatsList()

public List<IrregularRhythmNotification.HeartBeat> getHeartBeatsList()

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
List<HeartBeat>

getHeartBeatsOrBuilder(int index)

public IrregularRhythmNotification.HeartBeatOrBuilder getHeartBeatsOrBuilder(int index)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IrregularRhythmNotification.HeartBeatOrBuilder

getHeartBeatsOrBuilderList()

public List<? extends IrregularRhythmNotification.HeartBeatOrBuilder> getHeartBeatsOrBuilderList()

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

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

getPositive()

public boolean getPositive()

Optional. Flag indicating whether the window was positive for AFib or not. A true value indicates that AFib was detected in this window. A false value means AFib was not detected, but does not guarantee the absence of AFib.

bool positive = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

The positive.

getStartTime()

public Timestamp getStartTime()

Required. Observed interval. The start time of the analysis window.

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

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Required. Observed interval. The start time of the analysis window.

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

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Required. Observed interval. The start time of the analysis window.

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

Returns
Type Description
TimestampOrBuilder

getStartUtcOffset()

public Duration getStartUtcOffset()

Required. The UTC offset of the user's timezone when the analysis window started.

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

Returns
Type Description
Duration

The startUtcOffset.

getStartUtcOffsetBuilder()

public Duration.Builder getStartUtcOffsetBuilder()

Required. The UTC offset of the user's timezone when the analysis window started.

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

Returns
Type Description
Builder

getStartUtcOffsetOrBuilder()

public DurationOrBuilder getStartUtcOffsetOrBuilder()

Required. The UTC offset of the user's timezone when the analysis window started.

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

Returns
Type Description
DurationOrBuilder

hasCivilEndTime()

public boolean hasCivilEndTime()

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the civilEndTime field is set.

hasCivilStartTime()

public boolean hasCivilStartTime()

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the civilStartTime field is set.

hasEndTime()

public boolean hasEndTime()

Required. The end time of the analysis window.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endTime field is set.

hasEndUtcOffset()

public boolean hasEndUtcOffset()

Required. The UTC offset of the user's timezone when the analysis window ended.

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endUtcOffset field is set.

hasStartTime()

public boolean hasStartTime()

Required. Observed interval. The start time of the analysis window.

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

Returns
Type Description
boolean

Whether the startTime field is set.

hasStartUtcOffset()

public boolean hasStartUtcOffset()

Required. The UTC offset of the user's timezone when the analysis window started.

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

Returns
Type Description
boolean

Whether the startUtcOffset field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCivilEndTime(CivilDateTime value)

public IrregularRhythmNotification.AlertWindow.Builder mergeCivilEndTime(CivilDateTime value)

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

mergeCivilStartTime(CivilDateTime value)

public IrregularRhythmNotification.AlertWindow.Builder mergeCivilStartTime(CivilDateTime value)

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

mergeEndTime(Timestamp value)

public IrregularRhythmNotification.AlertWindow.Builder mergeEndTime(Timestamp value)

Required. The end time of the analysis window.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

mergeEndUtcOffset(Duration value)

public IrregularRhythmNotification.AlertWindow.Builder mergeEndUtcOffset(Duration value)

Required. The UTC offset of the user's timezone when the analysis window ended.

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

mergeFrom(IrregularRhythmNotification.AlertWindow other)

public IrregularRhythmNotification.AlertWindow.Builder mergeFrom(IrregularRhythmNotification.AlertWindow other)
Parameter
Name Description
other IrregularRhythmNotification.AlertWindow
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public IrregularRhythmNotification.AlertWindow.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public IrregularRhythmNotification.AlertWindow.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder
Overrides

mergeStartTime(Timestamp value)

public IrregularRhythmNotification.AlertWindow.Builder mergeStartTime(Timestamp value)

Required. Observed interval. The start time of the analysis window.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

mergeStartUtcOffset(Duration value)

public IrregularRhythmNotification.AlertWindow.Builder mergeStartUtcOffset(Duration value)

Required. The UTC offset of the user's timezone when the analysis window started.

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

Parameter
Name Description
value Duration
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

removeHeartBeats(int index)

public IrregularRhythmNotification.AlertWindow.Builder removeHeartBeats(int index)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
index int
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setCivilEndTime(CivilDateTime value)

public IrregularRhythmNotification.AlertWindow.Builder setCivilEndTime(CivilDateTime value)

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setCivilEndTime(CivilDateTime.Builder builderForValue)

public IrregularRhythmNotification.AlertWindow.Builder setCivilEndTime(CivilDateTime.Builder builderForValue)

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue CivilDateTime.Builder
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setCivilStartTime(CivilDateTime value)

public IrregularRhythmNotification.AlertWindow.Builder setCivilStartTime(CivilDateTime value)

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setCivilStartTime(CivilDateTime.Builder builderForValue)

public IrregularRhythmNotification.AlertWindow.Builder setCivilStartTime(CivilDateTime.Builder builderForValue)

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue CivilDateTime.Builder
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setEndTime(Timestamp value)

public IrregularRhythmNotification.AlertWindow.Builder setEndTime(Timestamp value)

Required. The end time of the analysis window.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setEndTime(Timestamp.Builder builderForValue)

public IrregularRhythmNotification.AlertWindow.Builder setEndTime(Timestamp.Builder builderForValue)

Required. The end time of the analysis window.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setEndUtcOffset(Duration value)

public IrregularRhythmNotification.AlertWindow.Builder setEndUtcOffset(Duration value)

Required. The UTC offset of the user's timezone when the analysis window ended.

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setEndUtcOffset(Duration.Builder builderForValue)

public IrregularRhythmNotification.AlertWindow.Builder setEndUtcOffset(Duration.Builder builderForValue)

Required. The UTC offset of the user's timezone when the analysis window ended.

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setHeartBeats(int index, IrregularRhythmNotification.HeartBeat value)

public IrregularRhythmNotification.AlertWindow.Builder setHeartBeats(int index, IrregularRhythmNotification.HeartBeat value)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
value IrregularRhythmNotification.HeartBeat
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setHeartBeats(int index, IrregularRhythmNotification.HeartBeat.Builder builderForValue)

public IrregularRhythmNotification.AlertWindow.Builder setHeartBeats(int index, IrregularRhythmNotification.HeartBeat.Builder builderForValue)

Optional. All heart beats in the interval contained in this analysis window.

repeated .google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat heart_beats = 8 [(.google.api.field_behavior) = OPTIONAL];

Parameters
Name Description
index int
builderForValue IrregularRhythmNotification.HeartBeat.Builder
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setPositive(boolean value)

public IrregularRhythmNotification.AlertWindow.Builder setPositive(boolean value)

Optional. Flag indicating whether the window was positive for AFib or not. A true value indicates that AFib was detected in this window. A false value means AFib was not detected, but does not guarantee the absence of AFib.

bool positive = 7 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value boolean

The positive to set.

Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

This builder for chaining.

setStartTime(Timestamp value)

public IrregularRhythmNotification.AlertWindow.Builder setStartTime(Timestamp value)

Required. Observed interval. The start time of the analysis window.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setStartTime(Timestamp.Builder builderForValue)

public IrregularRhythmNotification.AlertWindow.Builder setStartTime(Timestamp.Builder builderForValue)

Required. Observed interval. The start time of the analysis window.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setStartUtcOffset(Duration value)

public IrregularRhythmNotification.AlertWindow.Builder setStartUtcOffset(Duration value)

Required. The UTC offset of the user's timezone when the analysis window started.

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

Parameter
Name Description
value Duration
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder

setStartUtcOffset(Duration.Builder builderForValue)

public IrregularRhythmNotification.AlertWindow.Builder setStartUtcOffset(Duration.Builder builderForValue)

Required. The UTC offset of the user's timezone when the analysis window started.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
IrregularRhythmNotification.AlertWindow.Builder