public static final class TimeInHeartRateZone.Builder extends GeneratedMessage.Builder<TimeInHeartRateZone.Builder> implements TimeInHeartRateZoneOrBuilderTime in heart rate zone record. It's an interval spent in specific heart rate zone.
Protobuf type google.devicesandservices.health.v4.TimeInHeartRateZone
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TimeInHeartRateZone.BuilderImplements
TimeInHeartRateZoneOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public TimeInHeartRateZone build()| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone |
|
buildPartial()
public TimeInHeartRateZone buildPartial()| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone |
|
clear()
public TimeInHeartRateZone.Builder clear()| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone.Builder |
|
clearHeartRateZoneType()
public TimeInHeartRateZone.Builder clearHeartRateZoneType()Required. Heart rate zone type.
.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone.Builder |
This builder for chaining. |
clearInterval()
public TimeInHeartRateZone.Builder clearInterval()Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone.Builder |
|
getDefaultInstanceForType()
public TimeInHeartRateZone getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHeartRateZoneType()
public 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 |
HeartRateZoneType |
The heartRateZoneType. |
getHeartRateZoneTypeValue()
public 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 |
int |
The enum numeric value on the wire for heartRateZoneType. |
getInterval()
public ObservationTimeInterval getInterval()Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ObservationTimeInterval |
The interval. |
getIntervalBuilder()
public ObservationTimeInterval.Builder getIntervalBuilder()Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ObservationTimeInterval.Builder |
|
getIntervalOrBuilder()
public ObservationTimeIntervalOrBuilder getIntervalOrBuilder()Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ObservationTimeIntervalOrBuilder |
|
hasInterval()
public boolean hasInterval()Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the interval field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(TimeInHeartRateZone other)
public TimeInHeartRateZone.Builder mergeFrom(TimeInHeartRateZone other)| Parameter | |
|---|---|
| Name | Description |
other |
TimeInHeartRateZone |
| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public TimeInHeartRateZone.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public TimeInHeartRateZone.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone.Builder |
|
mergeInterval(ObservationTimeInterval value)
public TimeInHeartRateZone.Builder mergeInterval(ObservationTimeInterval value)Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ObservationTimeInterval |
| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone.Builder |
|
setHeartRateZoneType(HeartRateZoneType value)
public TimeInHeartRateZone.Builder setHeartRateZoneType(HeartRateZoneType value)Required. Heart rate zone type.
.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
HeartRateZoneTypeThe heartRateZoneType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone.Builder |
This builder for chaining. |
setHeartRateZoneTypeValue(int value)
public TimeInHeartRateZone.Builder setHeartRateZoneTypeValue(int value)Required. Heart rate zone type.
.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone_type = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for heartRateZoneType to set. |
| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone.Builder |
This builder for chaining. |
setInterval(ObservationTimeInterval value)
public TimeInHeartRateZone.Builder setInterval(ObservationTimeInterval value)Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ObservationTimeInterval |
| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone.Builder |
|
setInterval(ObservationTimeInterval.Builder builderForValue)
public TimeInHeartRateZone.Builder setInterval(ObservationTimeInterval.Builder builderForValue)Required. Observed interval.
.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
ObservationTimeInterval.Builder |
| Returns | |
|---|---|
| Type | Description |
TimeInHeartRateZone.Builder |
|