Class StepsRollupValue.Builder (0.2.0)

public static final class StepsRollupValue.Builder extends GeneratedMessage.Builder<StepsRollupValue.Builder> implements StepsRollupValueOrBuilder

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

Protobuf type google.devicesandservices.health.v4.StepsRollupValue

Static Methods

getDescriptor()

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

Methods

build()

public StepsRollupValue build()
Returns
Type Description
StepsRollupValue

buildPartial()

public StepsRollupValue buildPartial()
Returns
Type Description
StepsRollupValue

clear()

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

clearCountSum()

public StepsRollupValue.Builder clearCountSum()

Total number of steps in the interval.

optional int64 count_sum = 1;

Returns
Type Description
StepsRollupValue.Builder

This builder for chaining.

getCountSum()

public long getCountSum()

Total number of steps in the interval.

optional int64 count_sum = 1;

Returns
Type Description
long

The countSum.

getDefaultInstanceForType()

public StepsRollupValue getDefaultInstanceForType()
Returns
Type Description
StepsRollupValue

getDescriptorForType()

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

hasCountSum()

public boolean hasCountSum()

Total number of steps in the interval.

optional int64 count_sum = 1;

Returns
Type Description
boolean

Whether the countSum field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(StepsRollupValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setCountSum(long value)

public StepsRollupValue.Builder setCountSum(long value)

Total number of steps in the interval.

optional int64 count_sum = 1;

Parameter
Name Description
value long

The countSum to set.

Returns
Type Description
StepsRollupValue.Builder

This builder for chaining.