Class SessionTimeInterval.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SessionTimeInterval.Builder>
com.google.devicesandservices.health.v4.SessionTimeInterval.Builder
- All Implemented Interfaces:
SessionTimeIntervalOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SessionTimeInterval
public static final class SessionTimeInterval.Builder
extends com.google.protobuf.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Output only.Required.Required.Required.Required.Output only.Output only.Output only.Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampRequired.com.google.protobuf.Timestamp.BuilderRequired.com.google.protobuf.TimestampOrBuilderRequired.com.google.protobuf.DurationRequired.com.google.protobuf.Duration.BuilderRequired.com.google.protobuf.DurationOrBuilderRequired.com.google.protobuf.TimestampRequired.com.google.protobuf.Timestamp.BuilderRequired.com.google.protobuf.TimestampOrBuilderRequired.com.google.protobuf.DurationRequired.com.google.protobuf.Duration.BuilderRequired.com.google.protobuf.DurationOrBuilderRequired.booleanOutput only.booleanOutput only.booleanRequired.booleanRequired.booleanRequired.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCivilEndTime(CivilDateTime value) Output only.mergeCivilStartTime(CivilDateTime value) Output only.mergeEndTime(com.google.protobuf.Timestamp value) Required.mergeEndUtcOffset(com.google.protobuf.Duration value) Required.mergeFrom(SessionTimeInterval other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTime(com.google.protobuf.Timestamp value) Required.mergeStartUtcOffset(com.google.protobuf.Duration value) Required.setCivilEndTime(CivilDateTime value) Output only.setCivilEndTime(CivilDateTime.Builder builderForValue) Output only.setCivilStartTime(CivilDateTime value) Output only.setCivilStartTime(CivilDateTime.Builder builderForValue) Output only.setEndTime(com.google.protobuf.Timestamp value) Required.setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) Required.setEndUtcOffset(com.google.protobuf.Duration value) Required.setEndUtcOffset(com.google.protobuf.Duration.Builder builderForValue) Required.setStartTime(com.google.protobuf.Timestamp value) Required.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Required.setStartUtcOffset(com.google.protobuf.Duration value) Required.setStartUtcOffset(com.google.protobuf.Duration.Builder builderForValue) Required.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SessionTimeInterval.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SessionTimeInterval.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SessionTimeInterval.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SessionTimeInterval.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SessionTimeInterval.Builder>
-
mergeFrom
public SessionTimeInterval.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SessionTimeInterval.Builder>- Throws:
IOException
-
hasStartTime
public boolean hasStartTime()Required. The start time of the observed session.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasStartTimein interfaceSessionTimeIntervalOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()Required. The start time of the observed session.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStartTimein interfaceSessionTimeIntervalOrBuilder- Returns:
- The startTime.
-
setStartTime
Required. The start time of the observed session.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
setStartTime
public SessionTimeInterval.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Required. The start time of the observed session.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
mergeStartTime
Required. The start time of the observed session.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
clearStartTime
Required. The start time of the observed session.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()Required. The start time of the observed session.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED]; -
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()Required. The start time of the observed session.
.google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStartTimeOrBuilderin interfaceSessionTimeIntervalOrBuilder
-
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];- Specified by:
hasStartUtcOffsetin interfaceSessionTimeIntervalOrBuilder- Returns:
- Whether the startUtcOffset field is set.
-
getStartUtcOffset
public com.google.protobuf.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];- Specified by:
getStartUtcOffsetin interfaceSessionTimeIntervalOrBuilder- Returns:
- The startUtcOffset.
-
setStartUtcOffset
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]; -
setStartUtcOffset
public SessionTimeInterval.Builder setStartUtcOffset(com.google.protobuf.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]; -
mergeStartUtcOffset
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]; -
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]; -
getStartUtcOffsetBuilder
public com.google.protobuf.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]; -
getStartUtcOffsetOrBuilder
public com.google.protobuf.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];- Specified by:
getStartUtcOffsetOrBuilderin interfaceSessionTimeIntervalOrBuilder
-
hasEndTime
public boolean hasEndTime()Required. The end time of the observed session.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasEndTimein interfaceSessionTimeIntervalOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()Required. The end time of the observed session.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEndTimein interfaceSessionTimeIntervalOrBuilder- Returns:
- The endTime.
-
setEndTime
Required. The end time of the observed session.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
setEndTime
public SessionTimeInterval.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) Required. The end time of the observed session.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
mergeEndTime
Required. The end time of the observed session.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
clearEndTime
Required. The end time of the observed session.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
getEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()Required. The end time of the observed session.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()Required. The end time of the observed session.
.google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEndTimeOrBuilderin interfaceSessionTimeIntervalOrBuilder
-
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];- Specified by:
hasEndUtcOffsetin interfaceSessionTimeIntervalOrBuilder- Returns:
- Whether the endUtcOffset field is set.
-
getEndUtcOffset
public com.google.protobuf.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];- Specified by:
getEndUtcOffsetin interfaceSessionTimeIntervalOrBuilder- Returns:
- The endUtcOffset.
-
setEndUtcOffset
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]; -
setEndUtcOffset
public SessionTimeInterval.Builder setEndUtcOffset(com.google.protobuf.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]; -
mergeEndUtcOffset
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]; -
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]; -
getEndUtcOffsetBuilder
public com.google.protobuf.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]; -
getEndUtcOffsetOrBuilder
public com.google.protobuf.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];- Specified by:
getEndUtcOffsetOrBuilderin interfaceSessionTimeIntervalOrBuilder
-
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];- Specified by:
hasCivilStartTimein interfaceSessionTimeIntervalOrBuilder- Returns:
- Whether the civilStartTime field is set.
-
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];- Specified by:
getCivilStartTimein interfaceSessionTimeIntervalOrBuilder- Returns:
- The civilStartTime.
-
setCivilStartTime
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]; -
setCivilStartTime
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]; -
mergeCivilStartTime
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]; -
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]; -
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]; -
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];- Specified by:
getCivilStartTimeOrBuilderin interfaceSessionTimeIntervalOrBuilder
-
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];- Specified by:
hasCivilEndTimein interfaceSessionTimeIntervalOrBuilder- Returns:
- Whether the civilEndTime field is set.
-
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];- Specified by:
getCivilEndTimein interfaceSessionTimeIntervalOrBuilder- Returns:
- The civilEndTime.
-
setCivilEndTime
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]; -
setCivilEndTime
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]; -
mergeCivilEndTime
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]; -
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]; -
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]; -
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];- Specified by:
getCivilEndTimeOrBuilderin interfaceSessionTimeIntervalOrBuilder
-