Class ActiveEnergyBurnedRollupValue.Builder (0.2.0)

public static final class ActiveEnergyBurnedRollupValue.Builder extends GeneratedMessage.Builder<ActiveEnergyBurnedRollupValue.Builder> implements ActiveEnergyBurnedRollupValueOrBuilder

Represents the result of the rollup of active energy burned.

Protobuf type google.devicesandservices.health.v4.ActiveEnergyBurnedRollupValue

Static Methods

getDescriptor()

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

Methods

build()

public ActiveEnergyBurnedRollupValue build()
Returns
Type Description
ActiveEnergyBurnedRollupValue

buildPartial()

public ActiveEnergyBurnedRollupValue buildPartial()
Returns
Type Description
ActiveEnergyBurnedRollupValue

clear()

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

clearKcalSum()

public ActiveEnergyBurnedRollupValue.Builder clearKcalSum()

Output only. Sum of the active energy burned in kilocalories.

optional double kcal_sum = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ActiveEnergyBurnedRollupValue.Builder

This builder for chaining.

getDefaultInstanceForType()

public ActiveEnergyBurnedRollupValue getDefaultInstanceForType()
Returns
Type Description
ActiveEnergyBurnedRollupValue

getDescriptorForType()

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

getKcalSum()

public double getKcalSum()

Output only. Sum of the active energy burned in kilocalories.

optional double kcal_sum = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
double

The kcalSum.

hasKcalSum()

public boolean hasKcalSum()

Output only. Sum of the active energy burned in kilocalories.

optional double kcal_sum = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the kcalSum field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ActiveEnergyBurnedRollupValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKcalSum(double value)

public ActiveEnergyBurnedRollupValue.Builder setKcalSum(double value)

Output only. Sum of the active energy burned in kilocalories.

optional double kcal_sum = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value double

The kcalSum to set.

Returns
Type Description
ActiveEnergyBurnedRollupValue.Builder

This builder for chaining.