Class SedentaryPeriod.Builder (0.2.0)

public static final class SedentaryPeriod.Builder extends GeneratedMessage.Builder<SedentaryPeriod.Builder> implements SedentaryPeriodOrBuilder

SedentaryPeriod

SedentaryPeriod data represents the periods of time that the user was sedentary (i.e. not moving while wearing the device).

Protobuf type google.devicesandservices.health.v4.SedentaryPeriod

Static Methods

getDescriptor()

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

Methods

build()

public SedentaryPeriod build()
Returns
Type Description
SedentaryPeriod

buildPartial()

public SedentaryPeriod buildPartial()
Returns
Type Description
SedentaryPeriod

clear()

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

clearInterval()

public SedentaryPeriod.Builder clearInterval()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
SedentaryPeriod.Builder

getDefaultInstanceForType()

public SedentaryPeriod getDefaultInstanceForType()
Returns
Type Description
SedentaryPeriod

getDescriptorForType()

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

getInterval()

public ObservationTimeInterval getInterval()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationTimeInterval

The interval.

getIntervalBuilder()

public ObservationTimeInterval.Builder getIntervalBuilder()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationTimeInterval.Builder

getIntervalOrBuilder()

public ObservationTimeIntervalOrBuilder getIntervalOrBuilder()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ObservationTimeIntervalOrBuilder

hasInterval()

public boolean hasInterval()

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the interval field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(SedentaryPeriod other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeInterval(ObservationTimeInterval value)

public SedentaryPeriod.Builder mergeInterval(ObservationTimeInterval value)

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ObservationTimeInterval
Returns
Type Description
SedentaryPeriod.Builder

setInterval(ObservationTimeInterval value)

public SedentaryPeriod.Builder setInterval(ObservationTimeInterval value)

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value ObservationTimeInterval
Returns
Type Description
SedentaryPeriod.Builder

setInterval(ObservationTimeInterval.Builder builderForValue)

public SedentaryPeriod.Builder setInterval(ObservationTimeInterval.Builder builderForValue)

Required. Observed interval.

.google.devicesandservices.health.v4.ObservationTimeInterval interval = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue ObservationTimeInterval.Builder
Returns
Type Description
SedentaryPeriod.Builder