# Interface Sleep.SleepMetadataOrBuilder (0.2.0)

    public static interface Sleep.SleepMetadataOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getExternalId()

    public abstract 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** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The externalId. |

### getExternalIdBytes()

    public abstract 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** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for externalId. |

### getManuallyEdited()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The manuallyEdited. |

### getNap()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The nap. |

### getProcessed()

    public abstract boolean getProcessed()

Output only. Sleep and sleep stages algorithms finished processing.

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The processed. |

### getStagesStatus()

    public abstract 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** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloud-health/latest/com.google.devicesandservices.health.v4.Sleep.SleepMetadata.StagesState` | The stagesStatus. |

### getStagesStatusValue()

    public abstract 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** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The enum numeric value on the wire for stagesStatus. |