Class BasalEnergyBurned.Builder (0.2.0)

public static final class BasalEnergyBurned.Builder extends GeneratedMessage.Builder<BasalEnergyBurned.Builder> implements BasalEnergyBurnedOrBuilder

Number of calories burned due to basal metabolic rate (BMR) over a period of time.

Protobuf type google.devicesandservices.health.v4.BasalEnergyBurned

Static Methods

getDescriptor()

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

Methods

build()

public BasalEnergyBurned build()
Returns
Type Description
BasalEnergyBurned

buildPartial()

public BasalEnergyBurned buildPartial()
Returns
Type Description
BasalEnergyBurned

clear()

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

clearInterval()

public BasalEnergyBurned.Builder clearInterval()

Required. Observed interval.

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

Returns
Type Description
BasalEnergyBurned.Builder

clearKcal()

public BasalEnergyBurned.Builder clearKcal()

Required. Number of calories burned due to basal metabolic rate in kilocalories over the observed interval.

optional double kcal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
BasalEnergyBurned.Builder

This builder for chaining.

getDefaultInstanceForType()

public BasalEnergyBurned getDefaultInstanceForType()
Returns
Type Description
BasalEnergyBurned

getDescriptorForType()

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

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

getKcal()

public double getKcal()

Required. Number of calories burned due to basal metabolic rate in kilocalories over the observed interval.

optional double kcal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The kcal.

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.

hasKcal()

public boolean hasKcal()

Required. Number of calories burned due to basal metabolic rate in kilocalories over the observed interval.

optional double kcal = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the kcal field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BasalEnergyBurned other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInterval(ObservationTimeInterval value)

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

setInterval(ObservationTimeInterval value)

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

setInterval(ObservationTimeInterval.Builder builderForValue)

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

setKcal(double value)

public BasalEnergyBurned.Builder setKcal(double value)

Required. Number of calories burned due to basal metabolic rate in kilocalories over the observed interval.

optional double kcal = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value double

The kcal to set.

Returns
Type Description
BasalEnergyBurned.Builder

This builder for chaining.