Class TotalCaloriesRollupValue.Builder (0.2.0)

public static final class TotalCaloriesRollupValue.Builder extends GeneratedMessage.Builder<TotalCaloriesRollupValue.Builder> implements TotalCaloriesRollupValueOrBuilder

Represents the result of the rollup of the user's total calories.

Protobuf type google.devicesandservices.health.v4.TotalCaloriesRollupValue

Static Methods

getDescriptor()

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

Methods

build()

public TotalCaloriesRollupValue build()
Returns
Type Description
TotalCaloriesRollupValue

buildPartial()

public TotalCaloriesRollupValue buildPartial()
Returns
Type Description
TotalCaloriesRollupValue

clear()

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

clearKcalSum()

public TotalCaloriesRollupValue.Builder clearKcalSum()

Sum of the total calories in kilocalories.

optional double kcal_sum = 1;

Returns
Type Description
TotalCaloriesRollupValue.Builder

This builder for chaining.

getDefaultInstanceForType()

public TotalCaloriesRollupValue getDefaultInstanceForType()
Returns
Type Description
TotalCaloriesRollupValue

getDescriptorForType()

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

getKcalSum()

public double getKcalSum()

Sum of the total calories in kilocalories.

optional double kcal_sum = 1;

Returns
Type Description
double

The kcalSum.

hasKcalSum()

public boolean hasKcalSum()

Sum of the total calories in kilocalories.

optional double kcal_sum = 1;

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(TotalCaloriesRollupValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setKcalSum(double value)

public TotalCaloriesRollupValue.Builder setKcalSum(double value)

Sum of the total calories in kilocalories.

optional double kcal_sum = 1;

Parameter
Name Description
value double

The kcalSum to set.

Returns
Type Description
TotalCaloriesRollupValue.Builder

This builder for chaining.