Class SessionTimeInterval.Builder (0.2.0)

public static final class SessionTimeInterval.Builder extends GeneratedMessage.Builder<SessionTimeInterval.Builder> implements SessionTimeIntervalOrBuilder

Represents a time interval of session data point, which bundles multiple observed metrics together.

Protobuf type google.devicesandservices.health.v4.SessionTimeInterval

Static Methods

getDescriptor()

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

Methods

build()

public SessionTimeInterval build()
Returns
Type Description
SessionTimeInterval

buildPartial()

public SessionTimeInterval buildPartial()
Returns
Type Description
SessionTimeInterval

clear()

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

clearCivilEndTime()

public SessionTimeInterval.Builder clearCivilEndTime()

Output only. Session end time in civil time in the timezone the subject is in at the end of the session.

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

Returns
Type Description
SessionTimeInterval.Builder

clearCivilStartTime()

public SessionTimeInterval.Builder clearCivilStartTime()

Output only. Session start time in civil time in the timezone the subject is in at the start of the session.

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

Returns
Type Description
SessionTimeInterval.Builder

clearEndTime()

public SessionTimeInterval.Builder clearEndTime()

Required. The end time of the observed session.

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

Returns
Type Description
SessionTimeInterval.Builder

clearEndUtcOffset()

public SessionTimeInterval.Builder clearEndUtcOffset()

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

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

Returns
Type Description
SessionTimeInterval.Builder

clearStartTime()

public SessionTimeInterval.Builder clearStartTime()

Required. The start time of the observed session.

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

Returns
Type Description
SessionTimeInterval.Builder

clearStartUtcOffset()

public SessionTimeInterval.Builder clearStartUtcOffset()

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

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

Returns
Type Description
SessionTimeInterval.Builder

getCivilEndTime()

public CivilDateTime getCivilEndTime()

Output only. Session end time in civil time in the timezone the subject is in at the end of the session.

.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. Session end time in civil time in the timezone the subject is in at the end of the session.

.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. Session end time in civil time in the timezone the subject is in at the end of the session.

.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. Session start time in civil time in the timezone the subject is in at the start of the session.

.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. Session start time in civil time in the timezone the subject is in at the start of the session.

.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. Session start time in civil time in the timezone the subject is in at the start of the session.

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

Returns
Type Description
CivilDateTimeOrBuilder

getDefaultInstanceForType()

public SessionTimeInterval getDefaultInstanceForType()
Returns
Type Description
SessionTimeInterval

getDescriptorForType()

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

getEndTime()

public Timestamp getEndTime()

Required. The end time of the observed session.

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

Returns
Type Description
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

Required. The end time of the observed session.

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

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

Required. The end time of the observed session.

.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 session 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 session 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 session 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. The start time of the observed session.

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

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

Required. The start time of the observed session.

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

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

Required. The start time of the observed session.

.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 session 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 session 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 session 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. Session end time in civil time in the timezone the subject is in at the end of the session.

.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. Session start time in civil time in the timezone the subject is in at the start of the session.

.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. The end time of the observed session.

.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 session 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. The start time of the observed session.

.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 session 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 SessionTimeInterval.Builder mergeCivilEndTime(CivilDateTime value)

Output only. Session end time in civil time in the timezone the subject is in at the end of the session.

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

Parameter
Name Description
value CivilDateTime
Returns
Type Description
SessionTimeInterval.Builder

mergeCivilStartTime(CivilDateTime value)

public SessionTimeInterval.Builder mergeCivilStartTime(CivilDateTime value)

Output only. Session start time in civil time in the timezone the subject is in at the start of the session.

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

Parameter
Name Description
value CivilDateTime
Returns
Type Description
SessionTimeInterval.Builder

mergeEndTime(Timestamp value)

public SessionTimeInterval.Builder mergeEndTime(Timestamp value)

Required. The end time of the observed session.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SessionTimeInterval.Builder

mergeEndUtcOffset(Duration value)

public SessionTimeInterval.Builder mergeEndUtcOffset(Duration value)

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

mergeFrom(SessionTimeInterval other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartTime(Timestamp value)

public SessionTimeInterval.Builder mergeStartTime(Timestamp value)

Required. The start time of the observed session.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SessionTimeInterval.Builder

mergeStartUtcOffset(Duration value)

public SessionTimeInterval.Builder mergeStartUtcOffset(Duration value)

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

setCivilEndTime(CivilDateTime value)

public SessionTimeInterval.Builder setCivilEndTime(CivilDateTime value)

Output only. Session end time in civil time in the timezone the subject is in at the end of the session.

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

Parameter
Name Description
value CivilDateTime
Returns
Type Description
SessionTimeInterval.Builder

setCivilEndTime(CivilDateTime.Builder builderForValue)

public SessionTimeInterval.Builder setCivilEndTime(CivilDateTime.Builder builderForValue)

Output only. Session end time in civil time in the timezone the subject is in at the end of the session.

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

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

setCivilStartTime(CivilDateTime value)

public SessionTimeInterval.Builder setCivilStartTime(CivilDateTime value)

Output only. Session start time in civil time in the timezone the subject is in at the start of the session.

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

Parameter
Name Description
value CivilDateTime
Returns
Type Description
SessionTimeInterval.Builder

setCivilStartTime(CivilDateTime.Builder builderForValue)

public SessionTimeInterval.Builder setCivilStartTime(CivilDateTime.Builder builderForValue)

Output only. Session start time in civil time in the timezone the subject is in at the start of the session.

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

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

setEndTime(Timestamp value)

public SessionTimeInterval.Builder setEndTime(Timestamp value)

Required. The end time of the observed session.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SessionTimeInterval.Builder

setEndTime(Timestamp.Builder builderForValue)

public SessionTimeInterval.Builder setEndTime(Timestamp.Builder builderForValue)

Required. The end time of the observed session.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SessionTimeInterval.Builder

setEndUtcOffset(Duration value)

public SessionTimeInterval.Builder setEndUtcOffset(Duration value)

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

setEndUtcOffset(Duration.Builder builderForValue)

public SessionTimeInterval.Builder setEndUtcOffset(Duration.Builder builderForValue)

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

setStartTime(Timestamp value)

public SessionTimeInterval.Builder setStartTime(Timestamp value)

Required. The start time of the observed session.

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

Parameter
Name Description
value Timestamp
Returns
Type Description
SessionTimeInterval.Builder

setStartTime(Timestamp.Builder builderForValue)

public SessionTimeInterval.Builder setStartTime(Timestamp.Builder builderForValue)

Required. The start time of the observed session.

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

Parameter
Name Description
builderForValue Builder
Returns
Type Description
SessionTimeInterval.Builder

setStartUtcOffset(Duration value)

public SessionTimeInterval.Builder setStartUtcOffset(Duration value)

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

setStartUtcOffset(Duration.Builder builderForValue)

public SessionTimeInterval.Builder setStartUtcOffset(Duration.Builder builderForValue)

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