Class ObservationTimeInterval.Builder (0.2.0)

public static final class ObservationTimeInterval.Builder extends GeneratedMessage.Builder<ObservationTimeInterval.Builder> implements ObservationTimeIntervalOrBuilder

Represents a time interval of an observed data point.

Protobuf type google.devicesandservices.health.v4.ObservationTimeInterval

Static Methods

getDescriptor()

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

Methods

build()

public ObservationTimeInterval build()
Returns
Type Description
ObservationTimeInterval

buildPartial()

public ObservationTimeInterval buildPartial()
Returns
Type Description
ObservationTimeInterval

clear()

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

clearCivilEndTime()

public ObservationTimeInterval.Builder clearCivilEndTime()

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ObservationTimeInterval.Builder

clearCivilStartTime()

public ObservationTimeInterval.Builder clearCivilStartTime()

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ObservationTimeInterval.Builder

clearEndTime()

public ObservationTimeInterval.Builder clearEndTime()

Required. Observed interval end time.

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

Returns
Type Description
ObservationTimeInterval.Builder

clearEndUtcOffset()

public ObservationTimeInterval.Builder clearEndUtcOffset()

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

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

Returns
Type Description
ObservationTimeInterval.Builder

clearStartTime()

public ObservationTimeInterval.Builder clearStartTime()

Required. Observed interval start time.

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

Returns
Type Description
ObservationTimeInterval.Builder

clearStartUtcOffset()

public ObservationTimeInterval.Builder clearStartUtcOffset()

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

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

Returns
Type Description
ObservationTimeInterval.Builder

getCivilEndTime()

public CivilDateTime getCivilEndTime()

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTime

The civilEndTime.

getCivilEndTimeBuilder()

public CivilDateTime.Builder getCivilEndTimeBuilder()

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTime.Builder

getCivilEndTimeOrBuilder()

public CivilDateTimeOrBuilder getCivilEndTimeOrBuilder()

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTimeOrBuilder

getCivilStartTime()

public CivilDateTime getCivilStartTime()

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTime

The civilStartTime.

getCivilStartTimeBuilder()

public CivilDateTime.Builder getCivilStartTimeBuilder()

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTime.Builder

getCivilStartTimeOrBuilder()

public CivilDateTimeOrBuilder getCivilStartTimeOrBuilder()

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
CivilDateTimeOrBuilder

getDefaultInstanceForType()

public ObservationTimeInterval getDefaultInstanceForType()
Returns
Type Description
ObservationTimeInterval

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

Required. Observed interval 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. Observed interval end time.

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

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Required. Observed interval 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 observation 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 observation 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 observation 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. Observed interval start time.

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

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Required. Observed interval start time.

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

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Required. Observed interval start 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 observation 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 observation 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 observation relative to the Coordinated Universal Time (UTC).

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

Returns
Type Description
DurationOrBuilder

hasCivilEndTime()

public boolean hasCivilEndTime()

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the civilEndTime field is set.

hasCivilStartTime()

public boolean hasCivilStartTime()

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the civilStartTime field is set.

hasEndTime()

public boolean hasEndTime()

Required. Observed interval 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 observation 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. Observed interval start 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 observation 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

mergeCivilEndTime(CivilDateTime value)

public ObservationTimeInterval.Builder mergeCivilEndTime(CivilDateTime value)

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
ObservationTimeInterval.Builder

mergeCivilStartTime(CivilDateTime value)

public ObservationTimeInterval.Builder mergeCivilStartTime(CivilDateTime value)

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
ObservationTimeInterval.Builder

mergeEndTime(Timestamp value)

public ObservationTimeInterval.Builder mergeEndTime(Timestamp value)

Required. Observed interval end time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ObservationTimeInterval.Builder

mergeEndUtcOffset(Duration value)

public ObservationTimeInterval.Builder mergeEndUtcOffset(Duration value)

Required. The offset of the user's local time at the end of the observation 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
ObservationTimeInterval.Builder

mergeFrom(ObservationTimeInterval other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public ObservationTimeInterval.Builder mergeStartTime(Timestamp value)

Required. Observed interval start time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ObservationTimeInterval.Builder

mergeStartUtcOffset(Duration value)

public ObservationTimeInterval.Builder mergeStartUtcOffset(Duration value)

Required. The offset of the user's local time at the start of the observation 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
ObservationTimeInterval.Builder

setCivilEndTime(CivilDateTime value)

public ObservationTimeInterval.Builder setCivilEndTime(CivilDateTime value)

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
ObservationTimeInterval.Builder

setCivilEndTime(CivilDateTime.Builder builderForValue)

public ObservationTimeInterval.Builder setCivilEndTime(CivilDateTime.Builder builderForValue)

Output only. Observed interval end time in civil time in the timezone the subject is in at the end of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_end_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setCivilStartTime(CivilDateTime value)

public ObservationTimeInterval.Builder setCivilStartTime(CivilDateTime value)

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value CivilDateTime
Returns
Type Description
ObservationTimeInterval.Builder

setCivilStartTime(CivilDateTime.Builder builderForValue)

public ObservationTimeInterval.Builder setCivilStartTime(CivilDateTime.Builder builderForValue)

Output only. Observed interval start time in civil time in the timezone the subject is in at the start of the observed interval

.google.devicesandservices.health.v4.CivilDateTime civil_start_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

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

setEndTime(Timestamp value)

public ObservationTimeInterval.Builder setEndTime(Timestamp value)

Required. Observed interval end time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ObservationTimeInterval.Builder

setEndTime(Timestamp.Builder builderForValue)

public ObservationTimeInterval.Builder setEndTime(Timestamp.Builder builderForValue)

Required. Observed interval end time.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ObservationTimeInterval.Builder

setEndUtcOffset(Duration value)

public ObservationTimeInterval.Builder setEndUtcOffset(Duration value)

Required. The offset of the user's local time at the end of the observation 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
ObservationTimeInterval.Builder

setEndUtcOffset(Duration.Builder builderForValue)

public ObservationTimeInterval.Builder setEndUtcOffset(Duration.Builder builderForValue)

Required. The offset of the user's local time at the end of the observation 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
ObservationTimeInterval.Builder

setStartTime(Timestamp value)

public ObservationTimeInterval.Builder setStartTime(Timestamp value)

Required. Observed interval start time.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
ObservationTimeInterval.Builder

setStartTime(Timestamp.Builder builderForValue)

public ObservationTimeInterval.Builder setStartTime(Timestamp.Builder builderForValue)

Required. Observed interval start time.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
ObservationTimeInterval.Builder

setStartUtcOffset(Duration value)

public ObservationTimeInterval.Builder setStartUtcOffset(Duration value)

Required. The offset of the user's local time at the start of the observation 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
ObservationTimeInterval.Builder

setStartUtcOffset(Duration.Builder builderForValue)

public ObservationTimeInterval.Builder setStartUtcOffset(Duration.Builder builderForValue)

Required. The offset of the user's local time at the start of the observation 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
ObservationTimeInterval.Builder