Class Sleep.SleepMetadata.Builder

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

public static final class Sleep.SleepMetadata.Builder extends com.google.protobuf.GeneratedMessage.Builder<Sleep.SleepMetadata.Builder> implements Sleep.SleepMetadataOrBuilder
 Additional information about how the sleep was processed.
 
Protobuf type google.devicesandservices.health.v4.Sleep.SleepMetadata
  • 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.SleepMetadata.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.SleepMetadata.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.SleepMetadata.Builder>
    • getDefaultInstanceForType

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

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

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

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

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

      public int getStagesStatusValue()
       Output only. Sleep stages algorithm processing status.
       
      .google.devicesandservices.health.v4.Sleep.SleepMetadata.StagesState stages_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStagesStatusValue in interface Sleep.SleepMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for stagesStatus.
    • setStagesStatusValue

      public Sleep.SleepMetadata.Builder setStagesStatusValue(int value)
       Output only. Sleep stages algorithm processing status.
       
      .google.devicesandservices.health.v4.Sleep.SleepMetadata.StagesState stages_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The enum numeric value on the wire for stagesStatus to set.
      Returns:
      This builder for chaining.
    • getStagesStatus

      public Sleep.SleepMetadata.StagesState getStagesStatus()
       Output only. Sleep stages algorithm processing status.
       
      .google.devicesandservices.health.v4.Sleep.SleepMetadata.StagesState stages_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getStagesStatus in interface Sleep.SleepMetadataOrBuilder
      Returns:
      The stagesStatus.
    • setStagesStatus

       Output only. Sleep stages algorithm processing status.
       
      .google.devicesandservices.health.v4.Sleep.SleepMetadata.StagesState stages_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The stagesStatus to set.
      Returns:
      This builder for chaining.
    • clearStagesStatus

      public Sleep.SleepMetadata.Builder clearStagesStatus()
       Output only. Sleep stages algorithm processing status.
       
      .google.devicesandservices.health.v4.Sleep.SleepMetadata.StagesState stages_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getProcessed

      public boolean getProcessed()
       Output only. Sleep and sleep stages algorithms finished processing.
       
      bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getProcessed in interface Sleep.SleepMetadataOrBuilder
      Returns:
      The processed.
    • setProcessed

      public Sleep.SleepMetadata.Builder setProcessed(boolean value)
       Output only. Sleep and sleep stages algorithms finished processing.
       
      bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The processed to set.
      Returns:
      This builder for chaining.
    • clearProcessed

      public Sleep.SleepMetadata.Builder clearProcessed()
       Output only. Sleep and sleep stages algorithms finished processing.
       
      bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getNap

      public boolean getNap()
       Output only. Naps are sleeps without stages and relatively short
       durations.
       
      bool nap = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getNap in interface Sleep.SleepMetadataOrBuilder
      Returns:
      The nap.
    • setNap

      public Sleep.SleepMetadata.Builder setNap(boolean value)
       Output only. Naps are sleeps without stages and relatively short
       durations.
       
      bool nap = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The nap to set.
      Returns:
      This builder for chaining.
    • clearNap

      public Sleep.SleepMetadata.Builder clearNap()
       Output only. Naps are sleeps without stages and relatively short
       durations.
       
      bool nap = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getManuallyEdited

      public boolean getManuallyEdited()
       Output only. Some sleeps autodetected by algorithms can be manually
       edited by users.
       
      bool manually_edited = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getManuallyEdited in interface Sleep.SleepMetadataOrBuilder
      Returns:
      The manuallyEdited.
    • setManuallyEdited

      public Sleep.SleepMetadata.Builder setManuallyEdited(boolean value)
       Output only. Some sleeps autodetected by algorithms can be manually
       edited by users.
       
      bool manually_edited = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The manuallyEdited to set.
      Returns:
      This builder for chaining.
    • clearManuallyEdited

      public Sleep.SleepMetadata.Builder clearManuallyEdited()
       Output only. Some sleeps autodetected by algorithms can be manually
       edited by users.
       
      bool manually_edited = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • getExternalId

      public String getExternalId()
       Optional. Sleep identifier relevant in the context of the data source.
       
      string external_id = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExternalId in interface Sleep.SleepMetadataOrBuilder
      Returns:
      The externalId.
    • getExternalIdBytes

      public com.google.protobuf.ByteString getExternalIdBytes()
       Optional. Sleep identifier relevant in the context of the data source.
       
      string external_id = 7 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getExternalIdBytes in interface Sleep.SleepMetadataOrBuilder
      Returns:
      The bytes for externalId.
    • setExternalId

      public Sleep.SleepMetadata.Builder setExternalId(String value)
       Optional. Sleep identifier relevant in the context of the data source.
       
      string external_id = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The externalId to set.
      Returns:
      This builder for chaining.
    • clearExternalId

      public Sleep.SleepMetadata.Builder clearExternalId()
       Optional. Sleep identifier relevant in the context of the data source.
       
      string external_id = 7 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setExternalIdBytes

      public Sleep.SleepMetadata.Builder setExternalIdBytes(com.google.protobuf.ByteString value)
       Optional. Sleep identifier relevant in the context of the data source.
       
      string external_id = 7 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for externalId to set.
      Returns:
      This builder for chaining.