# Interface TimeInHeartRateZoneOrBuilder (0.2.0)

    public interface TimeInHeartRateZoneOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getHeartRateZoneType()

    public abstract HeartRateZoneType getHeartRateZoneType()

Required. Heart rate zone type.

`
.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone_type = 2 [(.google.api.field_behavior) = REQUIRED];
`

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

### getHeartRateZoneTypeValue()

    public abstract int getHeartRateZoneTypeValue()

Required. Heart rate zone type.

`
.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone_type = 2 [(.google.api.field_behavior) = REQUIRED];
`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for heartRateZoneType. |

### getInterval()

    public abstract ObservationTimeInterval getInterval()

Required. Observed interval.

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

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

### getIntervalOrBuilder()

    public abstract ObservationTimeIntervalOrBuilder getIntervalOrBuilder()

Required. Observed interval.

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

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

### hasInterval()

    public abstract boolean hasInterval()

Required. Observed interval.

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

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