# Interface IrregularRhythmNotification.AlertWindowOrBuilder (0.2.0)

    public static interface IrregularRhythmNotification.AlertWindowOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getCivilEndTime()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.CivilDateTime` | The civilEndTime. |

### getCivilEndTimeOrBuilder()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.CivilDateTimeOrBuilder` |   |

### getCivilStartTime()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.CivilDateTime` | The civilStartTime. |

### getCivilStartTimeOrBuilder()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.CivilDateTimeOrBuilder` |   |

### getEndTime()

    public abstract Timestamp getEndTime()

Required. The end time of the analysis window.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The endTime. |

### getEndTimeOrBuilder()

    public abstract TimestampOrBuilder getEndTimeOrBuilder()

Required. The end time of the analysis window.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getEndUtcOffset()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The endUtcOffset. |

### getEndUtcOffsetOrBuilder()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### getHeartBeats(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat` |   |

### getHeartBeatsCount()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getHeartBeatsList()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeat>` |   |

### getHeartBeatsOrBuilder(int index)

    public abstract 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` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeatOrBuilder` |   |

### getHeartBeatsOrBuilderList()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.devicesandservices.health.v4.IrregularRhythmNotification.HeartBeatOrBuilder>` |   |

### getPositive()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The positive. |

### getStartTime()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Timestamp.html` | The startTime. |

### getStartTimeOrBuilder()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.TimestampOrBuilder.html` |   |

### getStartUtcOffset()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Duration.html` | The startUtcOffset. |

### getStartUtcOffsetOrBuilder()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.DurationOrBuilder.html` |   |

### hasCivilEndTime()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the civilEndTime field is set. |

### hasCivilStartTime()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the civilStartTime field is set. |

### hasEndTime()

    public abstract boolean hasEndTime()

Required. The end time of the analysis window.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the endTime field is set. |

### hasEndUtcOffset()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the endUtcOffset field is set. |

### hasStartTime()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the startTime field is set. |

### hasStartUtcOffset()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the startUtcOffset field is set. |