Class DailyHeartRateZones.HeartRateZone.Builder (0.2.0)

public static final class DailyHeartRateZones.HeartRateZone.Builder extends GeneratedMessage.Builder<DailyHeartRateZones.HeartRateZone.Builder> implements DailyHeartRateZones.HeartRateZoneOrBuilder

The heart rate zone.

Protobuf type google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone

Static Methods

getDescriptor()

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

Methods

build()

public DailyHeartRateZones.HeartRateZone build()
Returns
Type Description
DailyHeartRateZones.HeartRateZone

buildPartial()

public DailyHeartRateZones.HeartRateZone buildPartial()
Returns
Type Description
DailyHeartRateZones.HeartRateZone

clear()

public DailyHeartRateZones.HeartRateZone.Builder clear()
Returns
Type Description
DailyHeartRateZones.HeartRateZone.Builder
Overrides

clearHeartRateZoneType()

public DailyHeartRateZones.HeartRateZone.Builder clearHeartRateZoneType()

Required. The heart rate zone type.

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

Returns
Type Description
DailyHeartRateZones.HeartRateZone.Builder

This builder for chaining.

clearMaxBeatsPerMinute()

public DailyHeartRateZones.HeartRateZone.Builder clearMaxBeatsPerMinute()

Required. Maximum heart rate for this zone in beats per minute.

optional int64 max_beats_per_minute = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DailyHeartRateZones.HeartRateZone.Builder

This builder for chaining.

clearMinBeatsPerMinute()

public DailyHeartRateZones.HeartRateZone.Builder clearMinBeatsPerMinute()

Required. Minimum heart rate for this zone in beats per minute.

optional int64 min_beats_per_minute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DailyHeartRateZones.HeartRateZone.Builder

This builder for chaining.

getDefaultInstanceForType()

public DailyHeartRateZones.HeartRateZone getDefaultInstanceForType()
Returns
Type Description
DailyHeartRateZones.HeartRateZone

getDescriptorForType()

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

getHeartRateZoneType()

public HeartRateZoneType getHeartRateZoneType()

Required. The heart rate zone type.

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

Returns
Type Description
HeartRateZoneType

The heartRateZoneType.

getHeartRateZoneTypeValue()

public int getHeartRateZoneTypeValue()

Required. The heart rate zone type.

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

Returns
Type Description
int

The enum numeric value on the wire for heartRateZoneType.

getMaxBeatsPerMinute()

public long getMaxBeatsPerMinute()

Required. Maximum heart rate for this zone in beats per minute.

optional int64 max_beats_per_minute = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The maxBeatsPerMinute.

getMinBeatsPerMinute()

public long getMinBeatsPerMinute()

Required. Minimum heart rate for this zone in beats per minute.

optional int64 min_beats_per_minute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The minBeatsPerMinute.

hasMaxBeatsPerMinute()

public boolean hasMaxBeatsPerMinute()

Required. Maximum heart rate for this zone in beats per minute.

optional int64 max_beats_per_minute = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the maxBeatsPerMinute field is set.

hasMinBeatsPerMinute()

public boolean hasMinBeatsPerMinute()

Required. Minimum heart rate for this zone in beats per minute.

optional int64 min_beats_per_minute = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the minBeatsPerMinute field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(DailyHeartRateZones.HeartRateZone other)

public DailyHeartRateZones.HeartRateZone.Builder mergeFrom(DailyHeartRateZones.HeartRateZone other)
Parameter
Name Description
other DailyHeartRateZones.HeartRateZone
Returns
Type Description
DailyHeartRateZones.HeartRateZone.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public DailyHeartRateZones.HeartRateZone.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
DailyHeartRateZones.HeartRateZone.Builder
Overrides

setHeartRateZoneType(HeartRateZoneType value)

public DailyHeartRateZones.HeartRateZone.Builder setHeartRateZoneType(HeartRateZoneType value)

Required. The heart rate zone type.

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

Parameter
Name Description
value HeartRateZoneType

The heartRateZoneType to set.

Returns
Type Description
DailyHeartRateZones.HeartRateZone.Builder

This builder for chaining.

setHeartRateZoneTypeValue(int value)

public DailyHeartRateZones.HeartRateZone.Builder setHeartRateZoneTypeValue(int value)

Required. The heart rate zone type.

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

Parameter
Name Description
value int

The enum numeric value on the wire for heartRateZoneType to set.

Returns
Type Description
DailyHeartRateZones.HeartRateZone.Builder

This builder for chaining.

setMaxBeatsPerMinute(long value)

public DailyHeartRateZones.HeartRateZone.Builder setMaxBeatsPerMinute(long value)

Required. Maximum heart rate for this zone in beats per minute.

optional int64 max_beats_per_minute = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The maxBeatsPerMinute to set.

Returns
Type Description
DailyHeartRateZones.HeartRateZone.Builder

This builder for chaining.

setMinBeatsPerMinute(long value)

public DailyHeartRateZones.HeartRateZone.Builder setMinBeatsPerMinute(long value)

Required. Minimum heart rate for this zone in beats per minute.

optional int64 min_beats_per_minute = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The minBeatsPerMinute to set.

Returns
Type Description
DailyHeartRateZones.HeartRateZone.Builder

This builder for chaining.