Class ObservationSampleTime.Builder

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

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

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

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

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

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

      public ObservationSampleTime.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<ObservationSampleTime.Builder>
      Throws:
      IOException
    • hasPhysicalTime

      public boolean hasPhysicalTime()
       Required. The time of the observation.
       
      .google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasPhysicalTime in interface ObservationSampleTimeOrBuilder
      Returns:
      Whether the physicalTime field is set.
    • getPhysicalTime

      public com.google.protobuf.Timestamp getPhysicalTime()
       Required. The time of the observation.
       
      .google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhysicalTime in interface ObservationSampleTimeOrBuilder
      Returns:
      The physicalTime.
    • setPhysicalTime

      public ObservationSampleTime.Builder setPhysicalTime(com.google.protobuf.Timestamp value)
       Required. The time of the observation.
       
      .google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • setPhysicalTime

      public ObservationSampleTime.Builder setPhysicalTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. The time of the observation.
       
      .google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • mergePhysicalTime

      public ObservationSampleTime.Builder mergePhysicalTime(com.google.protobuf.Timestamp value)
       Required. The time of the observation.
       
      .google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • clearPhysicalTime

      public ObservationSampleTime.Builder clearPhysicalTime()
       Required. The time of the observation.
       
      .google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • getPhysicalTimeBuilder

      public com.google.protobuf.Timestamp.Builder getPhysicalTimeBuilder()
       Required. The time of the observation.
       
      .google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
    • getPhysicalTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getPhysicalTimeOrBuilder()
       Required. The time of the observation.
       
      .google.protobuf.Timestamp physical_time = 1 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getPhysicalTimeOrBuilder in interface ObservationSampleTimeOrBuilder
    • hasUtcOffset

      public boolean hasUtcOffset()
       Required. The offset of the user's local time during the observation
       relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasUtcOffset in interface ObservationSampleTimeOrBuilder
      Returns:
      Whether the utcOffset field is set.
    • getUtcOffset

      public com.google.protobuf.Duration getUtcOffset()
       Required. The offset of the user's local time during the observation
       relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUtcOffset in interface ObservationSampleTimeOrBuilder
      Returns:
      The utcOffset.
    • setUtcOffset

      public ObservationSampleTime.Builder setUtcOffset(com.google.protobuf.Duration value)
       Required. The offset of the user's local time during the observation
       relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • setUtcOffset

      public ObservationSampleTime.Builder setUtcOffset(com.google.protobuf.Duration.Builder builderForValue)
       Required. The offset of the user's local time during the observation
       relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • mergeUtcOffset

      public ObservationSampleTime.Builder mergeUtcOffset(com.google.protobuf.Duration value)
       Required. The offset of the user's local time during the observation
       relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • clearUtcOffset

      public ObservationSampleTime.Builder clearUtcOffset()
       Required. The offset of the user's local time during the observation
       relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • getUtcOffsetBuilder

      public com.google.protobuf.Duration.Builder getUtcOffsetBuilder()
       Required. The offset of the user's local time during the observation
       relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
    • getUtcOffsetOrBuilder

      public com.google.protobuf.DurationOrBuilder getUtcOffsetOrBuilder()
       Required. The offset of the user's local time during the observation
       relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration utc_offset = 2 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getUtcOffsetOrBuilder in interface ObservationSampleTimeOrBuilder
    • hasCivilTime

      public boolean hasCivilTime()
       Output only. The civil time in the timezone the subject is in
       at the time of the observation.
       
      .google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCivilTime in interface ObservationSampleTimeOrBuilder
      Returns:
      Whether the civilTime field is set.
    • getCivilTime

      public CivilDateTime getCivilTime()
       Output only. The civil time in the timezone the subject is in
       at the time of the observation.
       
      .google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCivilTime in interface ObservationSampleTimeOrBuilder
      Returns:
      The civilTime.
    • setCivilTime

      public ObservationSampleTime.Builder setCivilTime(CivilDateTime value)
       Output only. The civil time in the timezone the subject is in
       at the time of the observation.
       
      .google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCivilTime

      public ObservationSampleTime.Builder setCivilTime(CivilDateTime.Builder builderForValue)
       Output only. The civil time in the timezone the subject is in
       at the time of the observation.
       
      .google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCivilTime

      public ObservationSampleTime.Builder mergeCivilTime(CivilDateTime value)
       Output only. The civil time in the timezone the subject is in
       at the time of the observation.
       
      .google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCivilTime

      public ObservationSampleTime.Builder clearCivilTime()
       Output only. The civil time in the timezone the subject is in
       at the time of the observation.
       
      .google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCivilTimeBuilder

      public CivilDateTime.Builder getCivilTimeBuilder()
       Output only. The civil time in the timezone the subject is in
       at the time of the observation.
       
      .google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCivilTimeOrBuilder

      public CivilDateTimeOrBuilder getCivilTimeOrBuilder()
       Output only. The civil time in the timezone the subject is in
       at the time of the observation.
       
      .google.devicesandservices.health.v4.CivilDateTime civil_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCivilTimeOrBuilder in interface ObservationSampleTimeOrBuilder