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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<SessionTimeInterval.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<SessionTimeInterval.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<SessionTimeInterval.Builder>
    • getDefaultInstanceForType

      public SessionTimeInterval getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public SessionTimeInterval build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public SessionTimeInterval buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public SessionTimeInterval.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<SessionTimeInterval.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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:
      hasStartTime in interface SessionTimeIntervalOrBuilder
      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:
      getStartTime in interface SessionTimeIntervalOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public SessionTimeInterval.Builder setStartTime(com.google.protobuf.Timestamp value)
       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

      public SessionTimeInterval.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Required. The start time of the observed session.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearStartTime

      public SessionTimeInterval.Builder 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:
      getStartTimeOrBuilder in interface SessionTimeIntervalOrBuilder
    • 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:
      hasStartUtcOffset in interface SessionTimeIntervalOrBuilder
      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:
      getStartUtcOffset in interface SessionTimeIntervalOrBuilder
      Returns:
      The startUtcOffset.
    • setStartUtcOffset

      public SessionTimeInterval.Builder setStartUtcOffset(com.google.protobuf.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];
    • 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

      public SessionTimeInterval.Builder mergeStartUtcOffset(com.google.protobuf.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];
    • 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];
    • 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:
      getStartUtcOffsetOrBuilder in interface SessionTimeIntervalOrBuilder
    • 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:
      hasEndTime in interface SessionTimeIntervalOrBuilder
      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:
      getEndTime in interface SessionTimeIntervalOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public SessionTimeInterval.Builder setEndTime(com.google.protobuf.Timestamp value)
       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

      public SessionTimeInterval.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       Required. The end time of the observed session.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearEndTime

      public SessionTimeInterval.Builder 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:
      getEndTimeOrBuilder in interface SessionTimeIntervalOrBuilder
    • 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:
      hasEndUtcOffset in interface SessionTimeIntervalOrBuilder
      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:
      getEndUtcOffset in interface SessionTimeIntervalOrBuilder
      Returns:
      The endUtcOffset.
    • setEndUtcOffset

      public SessionTimeInterval.Builder setEndUtcOffset(com.google.protobuf.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];
    • 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

      public SessionTimeInterval.Builder mergeEndUtcOffset(com.google.protobuf.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];
    • 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];
    • 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:
      getEndUtcOffsetOrBuilder in interface SessionTimeIntervalOrBuilder
    • 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:
      hasCivilStartTime in interface SessionTimeIntervalOrBuilder
      Returns:
      Whether the civilStartTime field is set.
    • 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];
      Specified by:
      getCivilStartTime in interface SessionTimeIntervalOrBuilder
      Returns:
      The civilStartTime.
    • setCivilStartTime

      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];
    • setCivilStartTime

      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];
    • mergeCivilStartTime

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getCivilStartTimeOrBuilder in interface SessionTimeIntervalOrBuilder
    • 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:
      hasCivilEndTime in interface SessionTimeIntervalOrBuilder
      Returns:
      Whether the civilEndTime field is set.
    • 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];
      Specified by:
      getCivilEndTime in interface SessionTimeIntervalOrBuilder
      Returns:
      The civilEndTime.
    • setCivilEndTime

      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];
    • setCivilEndTime

      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];
    • mergeCivilEndTime

      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];
    • 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];
    • 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];
    • 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];
      Specified by:
      getCivilEndTimeOrBuilder in interface SessionTimeIntervalOrBuilder