Class Sleep.SleepStage.Builder

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

public static final class Sleep.SleepStage.Builder extends com.google.protobuf.GeneratedMessage.Builder<Sleep.SleepStage.Builder> implements Sleep.SleepStageOrBuilder
 Sleep stage segment.
 
Protobuf type google.devicesandservices.health.v4.Sleep.SleepStage
  • 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<Sleep.SleepStage.Builder>
    • clear

      public Sleep.SleepStage.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<Sleep.SleepStage.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<Sleep.SleepStage.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public Sleep.SleepStage.Builder mergeFrom(Sleep.SleepStage other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<Sleep.SleepStage.Builder>
    • mergeFrom

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

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

      public com.google.protobuf.Timestamp getStartTime()
       Required. Sleep stage start time.
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartTime in interface Sleep.SleepStageOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public Sleep.SleepStage.Builder setStartTime(com.google.protobuf.Timestamp value)
       Required. Sleep stage start time.
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • setStartTime

      public Sleep.SleepStage.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Sleep stage start time.
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeStartTime

      public Sleep.SleepStage.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       Required. Sleep stage start time.
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearStartTime

      public Sleep.SleepStage.Builder clearStartTime()
       Required. Sleep stage start time.
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       Required. Sleep stage start time.
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       Required. Sleep stage start time.
       
      .google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartTimeOrBuilder in interface Sleep.SleepStageOrBuilder
    • hasStartUtcOffset

      public boolean hasStartUtcOffset()
       Required. The offset of the user's local time at the start of the sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasStartUtcOffset in interface Sleep.SleepStageOrBuilder
      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 sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartUtcOffset in interface Sleep.SleepStageOrBuilder
      Returns:
      The startUtcOffset.
    • setStartUtcOffset

      public Sleep.SleepStage.Builder setStartUtcOffset(com.google.protobuf.Duration value)
       Required. The offset of the user's local time at the start of the sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
    • setStartUtcOffset

      public Sleep.SleepStage.Builder setStartUtcOffset(com.google.protobuf.Duration.Builder builderForValue)
       Required. The offset of the user's local time at the start of the sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
    • mergeStartUtcOffset

      public Sleep.SleepStage.Builder mergeStartUtcOffset(com.google.protobuf.Duration value)
       Required. The offset of the user's local time at the start of the sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
    • clearStartUtcOffset

      public Sleep.SleepStage.Builder clearStartUtcOffset()
       Required. The offset of the user's local time at the start of the sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration start_utc_offset = 4 [(.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 sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration start_utc_offset = 4 [(.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 sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getStartUtcOffsetOrBuilder in interface Sleep.SleepStageOrBuilder
    • hasEndTime

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

      public com.google.protobuf.Timestamp getEndTime()
       Required. Sleep stage end time.
       
      .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndTime in interface Sleep.SleepStageOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public Sleep.SleepStage.Builder setEndTime(com.google.protobuf.Timestamp value)
       Required. Sleep stage end time.
       
      .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];
    • setEndTime

      public Sleep.SleepStage.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Required. Sleep stage end time.
       
      .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];
    • mergeEndTime

      public Sleep.SleepStage.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       Required. Sleep stage end time.
       
      .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];
    • clearEndTime

      public Sleep.SleepStage.Builder clearEndTime()
       Required. Sleep stage end time.
       
      .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       Required. Sleep stage end time.
       
      .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       Required. Sleep stage end time.
       
      .google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndTimeOrBuilder in interface Sleep.SleepStageOrBuilder
    • hasEndUtcOffset

      public boolean hasEndUtcOffset()
       Required. The offset of the user's local time at the end of the sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasEndUtcOffset in interface Sleep.SleepStageOrBuilder
      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 sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndUtcOffset in interface Sleep.SleepStageOrBuilder
      Returns:
      The endUtcOffset.
    • setEndUtcOffset

      public Sleep.SleepStage.Builder setEndUtcOffset(com.google.protobuf.Duration value)
       Required. The offset of the user's local time at the end of the sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED];
    • setEndUtcOffset

      public Sleep.SleepStage.Builder setEndUtcOffset(com.google.protobuf.Duration.Builder builderForValue)
       Required. The offset of the user's local time at the end of the sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED];
    • mergeEndUtcOffset

      public Sleep.SleepStage.Builder mergeEndUtcOffset(com.google.protobuf.Duration value)
       Required. The offset of the user's local time at the end of the sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED];
    • clearEndUtcOffset

      public Sleep.SleepStage.Builder clearEndUtcOffset()
       Required. The offset of the user's local time at the end of the sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration end_utc_offset = 6 [(.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 sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration end_utc_offset = 6 [(.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 sleep
       stage relative to the Coordinated Universal Time (UTC).
       
      .google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getEndUtcOffsetOrBuilder in interface Sleep.SleepStageOrBuilder
    • getTypeValue

      public int getTypeValue()
       Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
       
      .google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getTypeValue in interface Sleep.SleepStageOrBuilder
      Returns:
      The enum numeric value on the wire for type.
    • setTypeValue

      public Sleep.SleepStage.Builder setTypeValue(int value)
       Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
       
      .google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The enum numeric value on the wire for type to set.
      Returns:
      This builder for chaining.
    • getType

      public Sleep.SleepStageType getType()
       Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
       
      .google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getType in interface Sleep.SleepStageOrBuilder
      Returns:
      The type.
    • setType

       Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
       
      .google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

      public Sleep.SleepStage.Builder clearType()
       Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
       
      .google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Output only. Creation time of this sleep stages segment.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasCreateTime in interface Sleep.SleepStageOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Output only. Creation time of this sleep stages segment.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTime in interface Sleep.SleepStageOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public Sleep.SleepStage.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time of this sleep stages segment.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setCreateTime

      public Sleep.SleepStage.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Creation time of this sleep stages segment.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeCreateTime

      public Sleep.SleepStage.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Output only. Creation time of this sleep stages segment.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearCreateTime

      public Sleep.SleepStage.Builder clearCreateTime()
       Output only. Creation time of this sleep stages segment.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Output only. Creation time of this sleep stages segment.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Output only. Creation time of this sleep stages segment.
       
      .google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCreateTimeOrBuilder in interface Sleep.SleepStageOrBuilder
    • hasUpdateTime

      public boolean hasUpdateTime()
       Output only. Last update time of this sleep stages segment.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasUpdateTime in interface Sleep.SleepStageOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       Output only. Last update time of this sleep stages segment.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTime in interface Sleep.SleepStageOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Sleep.SleepStage.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last update time of this sleep stages segment.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setUpdateTime

      public Sleep.SleepStage.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. Last update time of this sleep stages segment.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeUpdateTime

      public Sleep.SleepStage.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       Output only. Last update time of this sleep stages segment.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearUpdateTime

      public Sleep.SleepStage.Builder clearUpdateTime()
       Output only. Last update time of this sleep stages segment.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       Output only. Last update time of this sleep stages segment.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       Output only. Last update time of this sleep stages segment.
       
      .google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getUpdateTimeOrBuilder in interface Sleep.SleepStageOrBuilder