Class Sleep.SleepSummary.StageSummary.Builder

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

public static final class Sleep.SleepSummary.StageSummary.Builder extends com.google.protobuf.GeneratedMessage.Builder<Sleep.SleepSummary.StageSummary.Builder> implements Sleep.SleepSummary.StageSummaryOrBuilder
 Total duration and segment count for a stage.
 
Protobuf type google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary
  • 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.SleepSummary.StageSummary.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.SleepSummary.StageSummary.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.SleepSummary.StageSummary.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

      public Sleep.SleepSummary.StageSummary.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.SleepSummary.StageSummary.Builder>
      Throws:
      IOException
    • getTypeValue

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

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

      public Sleep.SleepStageType getType()
       Output only. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
       
      .google.devicesandservices.health.v4.Sleep.SleepStageType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getType in interface Sleep.SleepSummary.StageSummaryOrBuilder
      Returns:
      The type.
    • setType

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

       Output only. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
       
      .google.devicesandservices.health.v4.Sleep.SleepStageType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getMinutes

      public long getMinutes()
       Output only. Total duration in minutes of a sleep stage.
       
      int64 minutes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getMinutes in interface Sleep.SleepSummary.StageSummaryOrBuilder
      Returns:
      The minutes.
    • setMinutes

      public Sleep.SleepSummary.StageSummary.Builder setMinutes(long value)
       Output only. Total duration in minutes of a sleep stage.
       
      int64 minutes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The minutes to set.
      Returns:
      This builder for chaining.
    • clearMinutes

       Output only. Total duration in minutes of a sleep stage.
       
      int64 minutes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getCount

      public long getCount()
       Output only. Number of sleep stages segments.
       
      int64 count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getCount in interface Sleep.SleepSummary.StageSummaryOrBuilder
      Returns:
      The count.
    • setCount

      public Sleep.SleepSummary.StageSummary.Builder setCount(long value)
       Output only. Number of sleep stages segments.
       
      int64 count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The count to set.
      Returns:
      This builder for chaining.
    • clearCount

       Output only. Number of sleep stages segments.
       
      int64 count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.