Class BodyFatRollupValue.Builder (0.2.0)

public static final class BodyFatRollupValue.Builder extends GeneratedMessage.Builder<BodyFatRollupValue.Builder> implements BodyFatRollupValueOrBuilder

Represents the result of the rollup of the body fat data type.

Protobuf type google.devicesandservices.health.v4.BodyFatRollupValue

Static Methods

getDescriptor()

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

Methods

build()

public BodyFatRollupValue build()
Returns
Type Description
BodyFatRollupValue

buildPartial()

public BodyFatRollupValue buildPartial()
Returns
Type Description
BodyFatRollupValue

clear()

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

clearBodyFatPercentageAvg()

public BodyFatRollupValue.Builder clearBodyFatPercentageAvg()

Average body fat percentage.

optional double body_fat_percentage_avg = 1;

Returns
Type Description
BodyFatRollupValue.Builder

This builder for chaining.

getBodyFatPercentageAvg()

public double getBodyFatPercentageAvg()

Average body fat percentage.

optional double body_fat_percentage_avg = 1;

Returns
Type Description
double

The bodyFatPercentageAvg.

getDefaultInstanceForType()

public BodyFatRollupValue getDefaultInstanceForType()
Returns
Type Description
BodyFatRollupValue

getDescriptorForType()

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

hasBodyFatPercentageAvg()

public boolean hasBodyFatPercentageAvg()

Average body fat percentage.

optional double body_fat_percentage_avg = 1;

Returns
Type Description
boolean

Whether the bodyFatPercentageAvg field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(BodyFatRollupValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setBodyFatPercentageAvg(double value)

public BodyFatRollupValue.Builder setBodyFatPercentageAvg(double value)

Average body fat percentage.

optional double body_fat_percentage_avg = 1;

Parameter
Name Description
value double

The bodyFatPercentageAvg to set.

Returns
Type Description
BodyFatRollupValue.Builder

This builder for chaining.