Class Sleep.SleepMetadata

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

public static final class Sleep.SleepMetadata extends com.google.protobuf.GeneratedMessage implements Sleep.SleepMetadataOrBuilder
 Additional information about how the sleep was processed.
 
Protobuf type google.devicesandservices.health.v4.Sleep.SleepMetadata
See Also:
  • Field Details

    • STAGES_STATUS_FIELD_NUMBER

      public static final int STAGES_STATUS_FIELD_NUMBER
      See Also:
    • PROCESSED_FIELD_NUMBER

      public static final int PROCESSED_FIELD_NUMBER
      See Also:
    • NAP_FIELD_NUMBER

      public static final int NAP_FIELD_NUMBER
      See Also:
    • MANUALLY_EDITED_FIELD_NUMBER

      public static final int MANUALLY_EDITED_FIELD_NUMBER
      See Also:
    • EXTERNAL_ID_FIELD_NUMBER

      public static final int EXTERNAL_ID_FIELD_NUMBER
      See Also:
  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static Sleep.SleepMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sleep.SleepMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sleep.SleepMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sleep.SleepMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sleep.SleepMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sleep.SleepMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static Sleep.SleepMetadata parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Sleep.SleepMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Sleep.SleepMetadata parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static Sleep.SleepMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Sleep.SleepMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static Sleep.SleepMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static Sleep.SleepMetadata.Builder newBuilder()
    • newBuilder

      public static Sleep.SleepMetadata.Builder newBuilder(Sleep.SleepMetadata prototype)
    • toBuilder

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

      protected Sleep.SleepMetadata.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static Sleep.SleepMetadata getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<Sleep.SleepMetadata> parser()
    • getParserForType

      public com.google.protobuf.Parser<Sleep.SleepMetadata> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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