Class SedentaryPeriodRollupValue.Builder (0.2.0)

public static final class SedentaryPeriodRollupValue.Builder extends GeneratedMessage.Builder<SedentaryPeriodRollupValue.Builder> implements SedentaryPeriodRollupValueOrBuilder

Represents the result of the rollup of the user's sedentary periods.

Protobuf type google.devicesandservices.health.v4.SedentaryPeriodRollupValue

Static Methods

getDescriptor()

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

Methods

build()

public SedentaryPeriodRollupValue build()
Returns
Type Description
SedentaryPeriodRollupValue

buildPartial()

public SedentaryPeriodRollupValue buildPartial()
Returns
Type Description
SedentaryPeriodRollupValue

clear()

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

clearDurationSum()

public SedentaryPeriodRollupValue.Builder clearDurationSum()

The total time user spent sedentary during the interval.

.google.protobuf.Duration duration_sum = 1;

Returns
Type Description
SedentaryPeriodRollupValue.Builder

getDefaultInstanceForType()

public SedentaryPeriodRollupValue getDefaultInstanceForType()
Returns
Type Description
SedentaryPeriodRollupValue

getDescriptorForType()

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

getDurationSum()

public Duration getDurationSum()

The total time user spent sedentary during the interval.

.google.protobuf.Duration duration_sum = 1;

Returns
Type Description
Duration

The durationSum.

getDurationSumBuilder()

public Duration.Builder getDurationSumBuilder()

The total time user spent sedentary during the interval.

.google.protobuf.Duration duration_sum = 1;

Returns
Type Description
Builder

getDurationSumOrBuilder()

public DurationOrBuilder getDurationSumOrBuilder()

The total time user spent sedentary during the interval.

.google.protobuf.Duration duration_sum = 1;

Returns
Type Description
DurationOrBuilder

hasDurationSum()

public boolean hasDurationSum()

The total time user spent sedentary during the interval.

.google.protobuf.Duration duration_sum = 1;

Returns
Type Description
boolean

Whether the durationSum field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDurationSum(Duration value)

public SedentaryPeriodRollupValue.Builder mergeDurationSum(Duration value)

The total time user spent sedentary during the interval.

.google.protobuf.Duration duration_sum = 1;

Parameter
Name Description
value Duration
Returns
Type Description
SedentaryPeriodRollupValue.Builder

mergeFrom(SedentaryPeriodRollupValue other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setDurationSum(Duration value)

public SedentaryPeriodRollupValue.Builder setDurationSum(Duration value)

The total time user spent sedentary during the interval.

.google.protobuf.Duration duration_sum = 1;

Parameter
Name Description
value Duration
Returns
Type Description
SedentaryPeriodRollupValue.Builder

setDurationSum(Duration.Builder builderForValue)

public SedentaryPeriodRollupValue.Builder setDurationSum(Duration.Builder builderForValue)

The total time user spent sedentary during the interval.

.google.protobuf.Duration duration_sum = 1;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SedentaryPeriodRollupValue.Builder