Interface Sleep.SleepSummary.StageSummaryOrBuilder (0.2.0)

public static interface Sleep.SleepSummary.StageSummaryOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getCount()

public abstract long getCount()

Output only. Number of sleep stages segments.

optional int64 count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The count.

getMinutes()

public abstract long getMinutes()

Output only. Total duration in minutes of a sleep stage.

optional int64 minutes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
long

The minutes.

getType()

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

Returns
Type Description
Sleep.SleepStageType

The type.

getTypeValue()

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

Returns
Type Description
int

The enum numeric value on the wire for type.

hasCount()

public abstract boolean hasCount()

Output only. Number of sleep stages segments.

optional int64 count = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the count field is set.

hasMinutes()

public abstract boolean hasMinutes()

Output only. Total duration in minutes of a sleep stage.

optional int64 minutes = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the minutes field is set.