Class ActiveZoneMinutes.Builder (0.2.0)

public static final class ActiveZoneMinutes.Builder extends GeneratedMessage.Builder<ActiveZoneMinutes.Builder> implements ActiveZoneMinutesOrBuilder

Record of active zone minutes in a given time interval.

Protobuf type google.devicesandservices.health.v4.ActiveZoneMinutes

Static Methods

getDescriptor()

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

Methods

build()

public ActiveZoneMinutes build()
Returns
Type Description
ActiveZoneMinutes

buildPartial()

public ActiveZoneMinutes buildPartial()
Returns
Type Description
ActiveZoneMinutes

clear()

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

clearActiveZoneMinutes()

public ActiveZoneMinutes.Builder clearActiveZoneMinutes()

Required. Number of Active Zone Minutes earned in the given time interval. Note: active_zone_minutes equals to 1 for low intensity (fat burn) zones or 2 for high intensity zones (cardio, peak).

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

Returns
Type Description
ActiveZoneMinutes.Builder

This builder for chaining.

clearHeartRateZone()

public ActiveZoneMinutes.Builder clearHeartRateZone()

Required. Heart rate zone in which the active zone minutes have been earned, in the given time interval.

.google.devicesandservices.health.v4.ActiveZoneMinutes.HeartRateZone heart_rate_zone = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ActiveZoneMinutes.Builder

This builder for chaining.

clearInterval()

public ActiveZoneMinutes.Builder clearInterval()

Required. Observed interval.

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

Returns
Type Description
ActiveZoneMinutes.Builder

getActiveZoneMinutes()

public long getActiveZoneMinutes()

Required. Number of Active Zone Minutes earned in the given time interval. Note: active_zone_minutes equals to 1 for low intensity (fat burn) zones or 2 for high intensity zones (cardio, peak).

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

Returns
Type Description
long

The activeZoneMinutes.

getDefaultInstanceForType()

public ActiveZoneMinutes getDefaultInstanceForType()
Returns
Type Description
ActiveZoneMinutes

getDescriptorForType()

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

getHeartRateZone()

public ActiveZoneMinutes.HeartRateZone getHeartRateZone()

Required. Heart rate zone in which the active zone minutes have been earned, in the given time interval.

.google.devicesandservices.health.v4.ActiveZoneMinutes.HeartRateZone heart_rate_zone = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ActiveZoneMinutes.HeartRateZone

The heartRateZone.

getHeartRateZoneValue()

public int getHeartRateZoneValue()

Required. Heart rate zone in which the active zone minutes have been earned, in the given time interval.

.google.devicesandservices.health.v4.ActiveZoneMinutes.HeartRateZone heart_rate_zone = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
int

The enum numeric value on the wire for heartRateZone.

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

hasActiveZoneMinutes()

public boolean hasActiveZoneMinutes()

Required. Number of Active Zone Minutes earned in the given time interval. Note: active_zone_minutes equals to 1 for low intensity (fat burn) zones or 2 for high intensity zones (cardio, peak).

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

Returns
Type Description
boolean

Whether the activeZoneMinutes field is set.

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
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ActiveZoneMinutes other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInterval(ObservationTimeInterval value)

public ActiveZoneMinutes.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
ActiveZoneMinutes.Builder

setActiveZoneMinutes(long value)

public ActiveZoneMinutes.Builder setActiveZoneMinutes(long value)

Required. Number of Active Zone Minutes earned in the given time interval. Note: active_zone_minutes equals to 1 for low intensity (fat burn) zones or 2 for high intensity zones (cardio, peak).

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

Parameter
Name Description
value long

The activeZoneMinutes to set.

Returns
Type Description
ActiveZoneMinutes.Builder

This builder for chaining.

setHeartRateZone(ActiveZoneMinutes.HeartRateZone value)

public ActiveZoneMinutes.Builder setHeartRateZone(ActiveZoneMinutes.HeartRateZone value)

Required. Heart rate zone in which the active zone minutes have been earned, in the given time interval.

.google.devicesandservices.health.v4.ActiveZoneMinutes.HeartRateZone heart_rate_zone = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ActiveZoneMinutes.HeartRateZone

The heartRateZone to set.

Returns
Type Description
ActiveZoneMinutes.Builder

This builder for chaining.

setHeartRateZoneValue(int value)

public ActiveZoneMinutes.Builder setHeartRateZoneValue(int value)

Required. Heart rate zone in which the active zone minutes have been earned, in the given time interval.

.google.devicesandservices.health.v4.ActiveZoneMinutes.HeartRateZone heart_rate_zone = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value int

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

Returns
Type Description
ActiveZoneMinutes.Builder

This builder for chaining.

setInterval(ObservationTimeInterval value)

public ActiveZoneMinutes.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
ActiveZoneMinutes.Builder

setInterval(ObservationTimeInterval.Builder builderForValue)

public ActiveZoneMinutes.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
ActiveZoneMinutes.Builder