Class Sleep.SleepMetadata (0.2.0)

public static final class Sleep.SleepMetadata extends GeneratedMessage implements Sleep.SleepMetadataOrBuilder

Additional information about how the sleep was processed.

Protobuf type google.devicesandservices.health.v4.Sleep.SleepMetadata

Static Fields

EXTERNAL_ID_FIELD_NUMBER

public static final int EXTERNAL_ID_FIELD_NUMBER
Field Value
Type Description
int

MANUALLY_EDITED_FIELD_NUMBER

public static final int MANUALLY_EDITED_FIELD_NUMBER
Field Value
Type Description
int

NAP_FIELD_NUMBER

public static final int NAP_FIELD_NUMBER
Field Value
Type Description
int

PROCESSED_FIELD_NUMBER

public static final int PROCESSED_FIELD_NUMBER
Field Value
Type Description
int

STAGES_STATUS_FIELD_NUMBER

public static final int STAGES_STATUS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Sleep.SleepMetadata getDefaultInstance()
Returns
Type Description
Sleep.SleepMetadata

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Sleep.SleepMetadata.Builder newBuilder()
Returns
Type Description
Sleep.SleepMetadata.Builder

newBuilder(Sleep.SleepMetadata prototype)

public static Sleep.SleepMetadata.Builder newBuilder(Sleep.SleepMetadata prototype)
Parameter
Name Description
prototype Sleep.SleepMetadata
Returns
Type Description
Sleep.SleepMetadata.Builder

parseDelimitedFrom(InputStream input)

public static Sleep.SleepMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Sleep.SleepMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Sleep.SleepMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Sleep.SleepMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Sleep.SleepMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Sleep.SleepMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Sleep.SleepMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Sleep.SleepMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Sleep.SleepMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Sleep.SleepMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Sleep.SleepMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Sleep.SleepMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Sleep.SleepMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Sleep.SleepMetadata> parser()
Returns
Type Description
Parser<SleepMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Sleep.SleepMetadata getDefaultInstanceForType()
Returns
Type Description
Sleep.SleepMetadata

getExternalId()

public String getExternalId()

Optional. Sleep identifier relevant in the context of the data source.

string external_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The externalId.

getExternalIdBytes()

public ByteString getExternalIdBytes()

Optional. Sleep identifier relevant in the context of the data source.

string external_id = 7 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for externalId.

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];

Returns
Type Description
boolean

The manuallyEdited.

getNap()

public boolean getNap()

Output only. Naps are sleeps without stages and relatively short durations.

bool nap = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The nap.

getParserForType()

public Parser<Sleep.SleepMetadata> getParserForType()
Returns
Type Description
Parser<SleepMetadata>
Overrides

getProcessed()

public boolean getProcessed()

Output only. Sleep and sleep stages algorithms finished processing.

bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The processed.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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];

Returns
Type Description
Sleep.SleepMetadata.StagesState

The stagesStatus.

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];

Returns
Type Description
int

The enum numeric value on the wire for stagesStatus.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Sleep.SleepMetadata.Builder newBuilderForType()
Returns
Type Description
Sleep.SleepMetadata.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Sleep.SleepMetadata.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Sleep.SleepMetadata.Builder
Overrides

toBuilder()

public Sleep.SleepMetadata.Builder toBuilder()
Returns
Type Description
Sleep.SleepMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException