Class ObservationTimeInterval.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ObservationTimeInterval.Builder>
com.google.devicesandservices.health.v4.ObservationTimeInterval.Builder
All Implemented Interfaces:
ObservationTimeIntervalOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ObservationTimeInterval

public static final class ObservationTimeInterval.Builder extends com.google.protobuf.GeneratedMessage.Builder<ObservationTimeInterval.Builder> implements ObservationTimeIntervalOrBuilder
 Represents a time interval of an observed data point.
 
Protobuf type google.devicesandservices.health.v4.ObservationTimeInterval
  • 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<ObservationTimeInterval.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<ObservationTimeInterval.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<ObservationTimeInterval.Builder>
    • getDefaultInstanceForType

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

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

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

      public ObservationTimeInterval.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<ObservationTimeInterval.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<ObservationTimeInterval.Builder>
    • mergeFrom

      public ObservationTimeInterval.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<ObservationTimeInterval.Builder>
      Throws:
      IOException
    • hasStartTime

      public boolean hasStartTime()
       Required. Observed interval start time.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasStartTime in interface ObservationTimeIntervalOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       Required. Observed interval start time.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartTime in interface ObservationTimeIntervalOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public ObservationTimeInterval.Builder setStartTime(com.google.protobuf.Timestamp value)
       Required. Observed interval start time.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • setStartTime

      public ObservationTimeInterval.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Observed interval start time.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergeStartTime

      public ObservationTimeInterval.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Required. Observed interval start time.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearStartTime

      public ObservationTimeInterval.Builder clearStartTime()
       Required. Observed interval start time.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Required. Observed interval start time.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Required. Observed interval start time.
       
      .google.protobuf.Timestamp start_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartTimeOrBuilder in interface ObservationTimeIntervalOrBuilder
    • 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];
      Specified by:
      hasStartUtcOffset in interface ObservationTimeIntervalOrBuilder
      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
       observation relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration start_utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartUtcOffset in interface ObservationTimeIntervalOrBuilder
      Returns:
      The startUtcOffset.
    • setStartUtcOffset

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

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

      public ObservationTimeInterval.Builder mergeStartUtcOffset(com.google.protobuf.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];
    • 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];
    • getStartUtcOffsetBuilder

      public com.google.protobuf.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];
    • getStartUtcOffsetOrBuilder

      public com.google.protobuf.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];
      Specified by:
      getStartUtcOffsetOrBuilder in interface ObservationTimeIntervalOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       Required. Observed interval end time.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEndTime in interface ObservationTimeIntervalOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       Required. Observed interval end time.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndTime in interface ObservationTimeIntervalOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public ObservationTimeInterval.Builder setEndTime(com.google.protobuf.Timestamp value)
       Required. Observed interval end time.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • setEndTime

      public ObservationTimeInterval.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Observed interval end time.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeEndTime

      public ObservationTimeInterval.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       Required. Observed interval end time.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearEndTime

      public ObservationTimeInterval.Builder clearEndTime()
       Required. Observed interval end time.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       Required. Observed interval end time.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       Required. Observed interval end time.
       
      .google.protobuf.Timestamp end_time = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndTimeOrBuilder in interface ObservationTimeIntervalOrBuilder
    • 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];
      Specified by:
      hasEndUtcOffset in interface ObservationTimeIntervalOrBuilder
      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 observation
       relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration end_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndUtcOffset in interface ObservationTimeIntervalOrBuilder
      Returns:
      The endUtcOffset.
    • setEndUtcOffset

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

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

      public ObservationTimeInterval.Builder mergeEndUtcOffset(com.google.protobuf.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];
    • 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];
    • getEndUtcOffsetBuilder

      public com.google.protobuf.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];
    • getEndUtcOffsetOrBuilder

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

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

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

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

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

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

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