Class SwimLengthsDataRollupValue.Builder (0.2.0)

public static final class SwimLengthsDataRollupValue.Builder extends GeneratedMessage.Builder<SwimLengthsDataRollupValue.Builder> implements SwimLengthsDataRollupValueOrBuilder

Represents the result of the rollup of the swim lengths data type.

Protobuf type google.devicesandservices.health.v4.SwimLengthsDataRollupValue

Static Methods

getDescriptor()

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

Methods

build()

public SwimLengthsDataRollupValue build()
Returns
Type Description
SwimLengthsDataRollupValue

buildPartial()

public SwimLengthsDataRollupValue buildPartial()
Returns
Type Description
SwimLengthsDataRollupValue

clear()

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

clearStrokeCountSum()

public SwimLengthsDataRollupValue.Builder clearStrokeCountSum()

Total number of swim strokes in the interval.

optional int64 stroke_count_sum = 1;

Returns
Type Description
SwimLengthsDataRollupValue.Builder

This builder for chaining.

getDefaultInstanceForType()

public SwimLengthsDataRollupValue getDefaultInstanceForType()
Returns
Type Description
SwimLengthsDataRollupValue

getDescriptorForType()

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

getStrokeCountSum()

public long getStrokeCountSum()

Total number of swim strokes in the interval.

optional int64 stroke_count_sum = 1;

Returns
Type Description
long

The strokeCountSum.

hasStrokeCountSum()

public boolean hasStrokeCountSum()

Total number of swim strokes in the interval.

optional int64 stroke_count_sum = 1;

Returns
Type Description
boolean

Whether the strokeCountSum field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SwimLengthsDataRollupValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setStrokeCountSum(long value)

public SwimLengthsDataRollupValue.Builder setStrokeCountSum(long value)

Total number of swim strokes in the interval.

optional int64 stroke_count_sum = 1;

Parameter
Name Description
value long

The strokeCountSum to set.

Returns
Type Description
SwimLengthsDataRollupValue.Builder

This builder for chaining.