Class Sleep.OutOfBedSegment.Builder (0.2.0)

public static final class Sleep.OutOfBedSegment.Builder extends GeneratedMessage.Builder<Sleep.OutOfBedSegment.Builder> implements Sleep.OutOfBedSegmentOrBuilder

A time interval to represent an out-of-bed segment.

Protobuf type google.devicesandservices.health.v4.Sleep.OutOfBedSegment

Static Methods

getDescriptor()

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

Methods

build()

public Sleep.OutOfBedSegment build()
Returns
Type Description
Sleep.OutOfBedSegment

buildPartial()

public Sleep.OutOfBedSegment buildPartial()
Returns
Type Description
Sleep.OutOfBedSegment

clear()

public Sleep.OutOfBedSegment.Builder clear()
Returns
Type Description
Sleep.OutOfBedSegment.Builder
Overrides

clearEndTime()

public Sleep.OutOfBedSegment.Builder clearEndTime()

Required. Segment end time.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Sleep.OutOfBedSegment.Builder

clearEndUtcOffset()

public Sleep.OutOfBedSegment.Builder clearEndUtcOffset()

Required. The offset of the user's local time at the end of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Sleep.OutOfBedSegment.Builder

clearStartTime()

public Sleep.OutOfBedSegment.Builder clearStartTime()

Required. Segment tart time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Sleep.OutOfBedSegment.Builder

clearStartUtcOffset()

public Sleep.OutOfBedSegment.Builder clearStartUtcOffset()

Required. The offset of the user's local time at the start of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Sleep.OutOfBedSegment.Builder

getDefaultInstanceForType()

public Sleep.OutOfBedSegment getDefaultInstanceForType()
Returns
Type Description
Sleep.OutOfBedSegment

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

Required. Segment end time.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Required. Segment end time.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Required. Segment end time.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getEndUtcOffset()

public Duration getEndUtcOffset()

Required. The offset of the user's local time at the end of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The endUtcOffset.

getEndUtcOffsetBuilder()

public Duration.Builder getEndUtcOffsetBuilder()

Required. The offset of the user's local time at the end of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getEndUtcOffsetOrBuilder()

public DurationOrBuilder getEndUtcOffsetOrBuilder()

Required. The offset of the user's local time at the end of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

getStartTime()

public Timestamp getStartTime()

Required. Segment tart time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Required. Segment tart time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Required. Segment tart time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
TimestampOrBuilder

getStartUtcOffset()

public Duration getStartUtcOffset()

Required. The offset of the user's local time at the start of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Duration

The startUtcOffset.

getStartUtcOffsetBuilder()

public Duration.Builder getStartUtcOffsetBuilder()

Required. The offset of the user's local time at the start of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
Builder

getStartUtcOffsetOrBuilder()

public DurationOrBuilder getStartUtcOffsetOrBuilder()

Required. The offset of the user's local time at the start of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
DurationOrBuilder

hasEndTime()

public boolean hasEndTime()

Required. Segment end time.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endTime field is set.

hasEndUtcOffset()

public boolean hasEndUtcOffset()

Required. The offset of the user's local time at the end of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the endUtcOffset field is set.

hasStartTime()

public boolean hasStartTime()

Required. Segment tart time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startTime field is set.

hasStartUtcOffset()

public boolean hasStartUtcOffset()

Required. The offset of the user's local time at the start of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the startUtcOffset field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public Sleep.OutOfBedSegment.Builder mergeEndTime(Timestamp value)

Required. Segment end time.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
Sleep.OutOfBedSegment.Builder

mergeEndUtcOffset(Duration value)

public Sleep.OutOfBedSegment.Builder mergeEndUtcOffset(Duration value)

Required. The offset of the user's local time at the end of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
Sleep.OutOfBedSegment.Builder

mergeFrom(Sleep.OutOfBedSegment other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public Sleep.OutOfBedSegment.Builder mergeStartTime(Timestamp value)

Required. Segment tart time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
Sleep.OutOfBedSegment.Builder

mergeStartUtcOffset(Duration value)

public Sleep.OutOfBedSegment.Builder mergeStartUtcOffset(Duration value)

Required. The offset of the user's local time at the start of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
Sleep.OutOfBedSegment.Builder

setEndTime(Timestamp value)

public Sleep.OutOfBedSegment.Builder setEndTime(Timestamp value)

Required. Segment end time.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
Sleep.OutOfBedSegment.Builder

setEndTime(Timestamp.Builder builderForValue)

public Sleep.OutOfBedSegment.Builder setEndTime(Timestamp.Builder builderForValue)

Required. Segment end time.

.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Sleep.OutOfBedSegment.Builder

setEndUtcOffset(Duration value)

public Sleep.OutOfBedSegment.Builder setEndUtcOffset(Duration value)

Required. The offset of the user's local time at the end of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
Sleep.OutOfBedSegment.Builder

setEndUtcOffset(Duration.Builder builderForValue)

public Sleep.OutOfBedSegment.Builder setEndUtcOffset(Duration.Builder builderForValue)

Required. The offset of the user's local time at the end of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Sleep.OutOfBedSegment.Builder

setStartTime(Timestamp value)

public Sleep.OutOfBedSegment.Builder setStartTime(Timestamp value)

Required. Segment tart time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Timestamp
Returns
Type Description
Sleep.OutOfBedSegment.Builder

setStartTime(Timestamp.Builder builderForValue)

public Sleep.OutOfBedSegment.Builder setStartTime(Timestamp.Builder builderForValue)

Required. Segment tart time.

.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Sleep.OutOfBedSegment.Builder

setStartUtcOffset(Duration value)

public Sleep.OutOfBedSegment.Builder setStartUtcOffset(Duration value)

Required. The offset of the user's local time at the start of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
value Duration
Returns
Type Description
Sleep.OutOfBedSegment.Builder

setStartUtcOffset(Duration.Builder builderForValue)

public Sleep.OutOfBedSegment.Builder setStartUtcOffset(Duration.Builder builderForValue)

Required. The offset of the user's local time at the start of the segment relative to the Coordinated Universal Time (UTC).

.google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
Sleep.OutOfBedSegment.Builder