Class TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder (0.2.0)

public static final class TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder extends GeneratedMessage.Builder<TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder> implements TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValueOrBuilder

Represents the total time spent in a specific heart rate zone.

Protobuf type google.devicesandservices.health.v4.TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder

Static Methods

getDescriptor()

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

Methods

build()

public TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue build()
Returns
Type Description
TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue

buildPartial()

public TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue buildPartial()
Returns
Type Description
TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue

clear()

public TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder clear()
Returns
Type Description
TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder
Overrides

clearDuration()

public TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder clearDuration()

The total time spent in the specified heart rate zone.

.google.protobuf.Duration duration = 2;

Returns
Type Description
TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder

clearHeartRateZone()

public TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder clearHeartRateZone()

The heart rate zone.

.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone = 1;

Returns
Type Description
TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder

This builder for chaining.

getDefaultInstanceForType()

public TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue getDefaultInstanceForType()
Returns
Type Description
TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue

getDescriptorForType()

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

getDuration()

public Duration getDuration()

The total time spent in the specified heart rate zone.

.google.protobuf.Duration duration = 2;

Returns
Type Description
Duration

The duration.

getDurationBuilder()

public Duration.Builder getDurationBuilder()

The total time spent in the specified heart rate zone.

.google.protobuf.Duration duration = 2;

Returns
Type Description
Builder

getDurationOrBuilder()

public DurationOrBuilder getDurationOrBuilder()

The total time spent in the specified heart rate zone.

.google.protobuf.Duration duration = 2;

Returns
Type Description
DurationOrBuilder

getHeartRateZone()

public HeartRateZoneType getHeartRateZone()

The heart rate zone.

.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone = 1;

Returns
Type Description
HeartRateZoneType

The heartRateZone.

getHeartRateZoneValue()

public int getHeartRateZoneValue()

The heart rate zone.

.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone = 1;

Returns
Type Description
int

The enum numeric value on the wire for heartRateZone.

hasDuration()

public boolean hasDuration()

The total time spent in the specified heart rate zone.

.google.protobuf.Duration duration = 2;

Returns
Type Description
boolean

Whether the duration field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDuration(Duration value)

public TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder mergeDuration(Duration value)

The total time spent in the specified heart rate zone.

.google.protobuf.Duration duration = 2;

Parameter
Name Description
value Duration
Returns
Type Description
TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder

mergeFrom(TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDuration(Duration value)

public TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder setDuration(Duration value)

The total time spent in the specified heart rate zone.

.google.protobuf.Duration duration = 2;

Parameter
Name Description
value Duration
Returns
Type Description
TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder

setDuration(Duration.Builder builderForValue)

public TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder setDuration(Duration.Builder builderForValue)

The total time spent in the specified heart rate zone.

.google.protobuf.Duration duration = 2;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder

setHeartRateZone(HeartRateZoneType value)

public TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder setHeartRateZone(HeartRateZoneType value)

The heart rate zone.

.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone = 1;

Parameter
Name Description
value HeartRateZoneType

The heartRateZone to set.

Returns
Type Description
TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder

This builder for chaining.

setHeartRateZoneValue(int value)

public TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder setHeartRateZoneValue(int value)

The heart rate zone.

.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone = 1;

Parameter
Name Description
value int

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

Returns
Type Description
TimeInHeartRateZoneRollupValue.TimeInHeartRateZoneValue.Builder

This builder for chaining.