Class AltitudeRollupValue.Builder (0.2.0)

public static final class AltitudeRollupValue.Builder extends GeneratedMessage.Builder<AltitudeRollupValue.Builder> implements AltitudeRollupValueOrBuilder

Represents the result of the rollup of the user's altitude.

Protobuf type google.devicesandservices.health.v4.AltitudeRollupValue

Static Methods

getDescriptor()

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

Methods

build()

public AltitudeRollupValue build()
Returns
Type Description
AltitudeRollupValue

buildPartial()

public AltitudeRollupValue buildPartial()
Returns
Type Description
AltitudeRollupValue

clear()

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

clearGainMillimetersSum()

public AltitudeRollupValue.Builder clearGainMillimetersSum()

Sum of the altitude gain in millimeters.

optional int64 gain_millimeters_sum = 1;

Returns
Type Description
AltitudeRollupValue.Builder

This builder for chaining.

getDefaultInstanceForType()

public AltitudeRollupValue getDefaultInstanceForType()
Returns
Type Description
AltitudeRollupValue

getDescriptorForType()

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

getGainMillimetersSum()

public long getGainMillimetersSum()

Sum of the altitude gain in millimeters.

optional int64 gain_millimeters_sum = 1;

Returns
Type Description
long

The gainMillimetersSum.

hasGainMillimetersSum()

public boolean hasGainMillimetersSum()

Sum of the altitude gain in millimeters.

optional int64 gain_millimeters_sum = 1;

Returns
Type Description
boolean

Whether the gainMillimetersSum field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(AltitudeRollupValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setGainMillimetersSum(long value)

public AltitudeRollupValue.Builder setGainMillimetersSum(long value)

Sum of the altitude gain in millimeters.

optional int64 gain_millimeters_sum = 1;

Parameter
Name Description
value long

The gainMillimetersSum to set.

Returns
Type Description
AltitudeRollupValue.Builder

This builder for chaining.