Class DailyRestingHeartRate.Builder (0.2.0)

public static final class DailyRestingHeartRate.Builder extends GeneratedMessage.Builder<DailyRestingHeartRate.Builder> implements DailyRestingHeartRateOrBuilder

Measures the daily resting heart rate for a user, calculated using the all day heart rate measurements.

Protobuf type google.devicesandservices.health.v4.DailyRestingHeartRate

Static Methods

getDescriptor()

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

Methods

build()

public DailyRestingHeartRate build()
Returns
Type Description
DailyRestingHeartRate

buildPartial()

public DailyRestingHeartRate buildPartial()
Returns
Type Description
DailyRestingHeartRate

clear()

public DailyRestingHeartRate.Builder clear()
Returns
Type Description
DailyRestingHeartRate.Builder
Overrides

clearBeatsPerMinute()

public DailyRestingHeartRate.Builder clearBeatsPerMinute()

Required. The resting heart rate value in beats per minute.

optional int64 beats_per_minute = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DailyRestingHeartRate.Builder

This builder for chaining.

clearDailyRestingHeartRateMetadata()

public DailyRestingHeartRate.Builder clearDailyRestingHeartRateMetadata()

Optional. Metadata for the daily resting heart rate.

.google.devicesandservices.health.v4.DailyRestingHeartRate.DailyRestingHeartRateMetadata daily_resting_heart_rate_metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DailyRestingHeartRate.Builder

clearDate()

public DailyRestingHeartRate.Builder clearDate()

Required. Date (in the user's timezone) of the resting heart rate measurement.

.google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DailyRestingHeartRate.Builder

getBeatsPerMinute()

public long getBeatsPerMinute()

Required. The resting heart rate value in beats per minute.

optional int64 beats_per_minute = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
long

The beatsPerMinute.

getDailyRestingHeartRateMetadata()

public DailyRestingHeartRate.DailyRestingHeartRateMetadata getDailyRestingHeartRateMetadata()

Optional. Metadata for the daily resting heart rate.

.google.devicesandservices.health.v4.DailyRestingHeartRate.DailyRestingHeartRateMetadata daily_resting_heart_rate_metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DailyRestingHeartRate.DailyRestingHeartRateMetadata

The dailyRestingHeartRateMetadata.

getDailyRestingHeartRateMetadataBuilder()

public DailyRestingHeartRate.DailyRestingHeartRateMetadata.Builder getDailyRestingHeartRateMetadataBuilder()

Optional. Metadata for the daily resting heart rate.

.google.devicesandservices.health.v4.DailyRestingHeartRate.DailyRestingHeartRateMetadata daily_resting_heart_rate_metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DailyRestingHeartRate.DailyRestingHeartRateMetadata.Builder

getDailyRestingHeartRateMetadataOrBuilder()

public DailyRestingHeartRate.DailyRestingHeartRateMetadataOrBuilder getDailyRestingHeartRateMetadataOrBuilder()

Optional. Metadata for the daily resting heart rate.

.google.devicesandservices.health.v4.DailyRestingHeartRate.DailyRestingHeartRateMetadata daily_resting_heart_rate_metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
DailyRestingHeartRate.DailyRestingHeartRateMetadataOrBuilder

getDate()

public Date getDate()

Required. Date (in the user's timezone) of the resting heart rate measurement.

.google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Date

The date.

getDateBuilder()

public Date.Builder getDateBuilder()

Required. Date (in the user's timezone) of the resting heart rate measurement.

.google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.Date.Builder

getDateOrBuilder()

public DateOrBuilder getDateOrBuilder()

Required. Date (in the user's timezone) of the resting heart rate measurement.

.google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
com.google.type.DateOrBuilder

getDefaultInstanceForType()

public DailyRestingHeartRate getDefaultInstanceForType()
Returns
Type Description
DailyRestingHeartRate

getDescriptorForType()

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

hasBeatsPerMinute()

public boolean hasBeatsPerMinute()

Required. The resting heart rate value in beats per minute.

optional int64 beats_per_minute = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the beatsPerMinute field is set.

hasDailyRestingHeartRateMetadata()

public boolean hasDailyRestingHeartRateMetadata()

Optional. Metadata for the daily resting heart rate.

.google.devicesandservices.health.v4.DailyRestingHeartRate.DailyRestingHeartRateMetadata daily_resting_heart_rate_metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the dailyRestingHeartRateMetadata field is set.

hasDate()

public boolean hasDate()

Required. Date (in the user's timezone) of the resting heart rate measurement.

.google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the date field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDailyRestingHeartRateMetadata(DailyRestingHeartRate.DailyRestingHeartRateMetadata value)

public DailyRestingHeartRate.Builder mergeDailyRestingHeartRateMetadata(DailyRestingHeartRate.DailyRestingHeartRateMetadata value)

Optional. Metadata for the daily resting heart rate.

.google.devicesandservices.health.v4.DailyRestingHeartRate.DailyRestingHeartRateMetadata daily_resting_heart_rate_metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DailyRestingHeartRate.DailyRestingHeartRateMetadata
Returns
Type Description
DailyRestingHeartRate.Builder

mergeDate(Date value)

public DailyRestingHeartRate.Builder mergeDate(Date value)

Required. Date (in the user's timezone) of the resting heart rate measurement.

.google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
DailyRestingHeartRate.Builder

mergeFrom(DailyRestingHeartRate other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBeatsPerMinute(long value)

public DailyRestingHeartRate.Builder setBeatsPerMinute(long value)

Required. The resting heart rate value in beats per minute.

optional int64 beats_per_minute = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value long

The beatsPerMinute to set.

Returns
Type Description
DailyRestingHeartRate.Builder

This builder for chaining.

setDailyRestingHeartRateMetadata(DailyRestingHeartRate.DailyRestingHeartRateMetadata value)

public DailyRestingHeartRate.Builder setDailyRestingHeartRateMetadata(DailyRestingHeartRate.DailyRestingHeartRateMetadata value)

Optional. Metadata for the daily resting heart rate.

.google.devicesandservices.health.v4.DailyRestingHeartRate.DailyRestingHeartRateMetadata daily_resting_heart_rate_metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value DailyRestingHeartRate.DailyRestingHeartRateMetadata
Returns
Type Description
DailyRestingHeartRate.Builder

setDailyRestingHeartRateMetadata(DailyRestingHeartRate.DailyRestingHeartRateMetadata.Builder builderForValue)

public DailyRestingHeartRate.Builder setDailyRestingHeartRateMetadata(DailyRestingHeartRate.DailyRestingHeartRateMetadata.Builder builderForValue)

Optional. Metadata for the daily resting heart rate.

.google.devicesandservices.health.v4.DailyRestingHeartRate.DailyRestingHeartRateMetadata daily_resting_heart_rate_metadata = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue DailyRestingHeartRate.DailyRestingHeartRateMetadata.Builder
Returns
Type Description
DailyRestingHeartRate.Builder

setDate(Date value)

public DailyRestingHeartRate.Builder setDate(Date value)

Required. Date (in the user's timezone) of the resting heart rate measurement.

.google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value com.google.type.Date
Returns
Type Description
DailyRestingHeartRate.Builder

setDate(Date.Builder builderForValue)

public DailyRestingHeartRate.Builder setDate(Date.Builder builderForValue)

Required. Date (in the user's timezone) of the resting heart rate measurement.

.google.type.Date date = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue com.google.type.Date.Builder
Returns
Type Description
DailyRestingHeartRate.Builder