Class WeightRollupValue.Builder (0.2.0)

public static final class WeightRollupValue.Builder extends GeneratedMessage.Builder<WeightRollupValue.Builder> implements WeightRollupValueOrBuilder

Represents the result of the rollup of the weight data type.

Protobuf type google.devicesandservices.health.v4.WeightRollupValue

Static Methods

getDescriptor()

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

Methods

build()

public WeightRollupValue build()
Returns
Type Description
WeightRollupValue

buildPartial()

public WeightRollupValue buildPartial()
Returns
Type Description
WeightRollupValue

clear()

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

clearWeightGramsAvg()

public WeightRollupValue.Builder clearWeightGramsAvg()

Average weight in grams.

optional double weight_grams_avg = 1;

Returns
Type Description
WeightRollupValue.Builder

This builder for chaining.

getDefaultInstanceForType()

public WeightRollupValue getDefaultInstanceForType()
Returns
Type Description
WeightRollupValue

getDescriptorForType()

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

getWeightGramsAvg()

public double getWeightGramsAvg()

Average weight in grams.

optional double weight_grams_avg = 1;

Returns
Type Description
double

The weightGramsAvg.

hasWeightGramsAvg()

public boolean hasWeightGramsAvg()

Average weight in grams.

optional double weight_grams_avg = 1;

Returns
Type Description
boolean

Whether the weightGramsAvg field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(WeightRollupValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setWeightGramsAvg(double value)

public WeightRollupValue.Builder setWeightGramsAvg(double value)

Average weight in grams.

optional double weight_grams_avg = 1;

Parameter
Name Description
value double

The weightGramsAvg to set.

Returns
Type Description
WeightRollupValue.Builder

This builder for chaining.