Class Sleep.SleepSummary.StageSummary (0.2.0)

public static final class Sleep.SleepSummary.StageSummary extends GeneratedMessage implements Sleep.SleepSummary.StageSummaryOrBuilder

Total duration and segment count for a stage.

Protobuf type google.devicesandservices.health.v4.Sleep.SleepSummary.StageSummary

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > Sleep.SleepSummary.StageSummary

Static Fields

COUNT_FIELD_NUMBER

public static final int COUNT_FIELD_NUMBER
Field Value
Type Description
int

MINUTES_FIELD_NUMBER

public static final int MINUTES_FIELD_NUMBER
Field Value
Type Description
int

TYPE_FIELD_NUMBER

public static final int TYPE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Sleep.SleepSummary.StageSummary getDefaultInstance()
Returns
Type Description
Sleep.SleepSummary.StageSummary

getDescriptor()

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

newBuilder()

public static Sleep.SleepSummary.StageSummary.Builder newBuilder()
Returns
Type Description
Sleep.SleepSummary.StageSummary.Builder

newBuilder(Sleep.SleepSummary.StageSummary prototype)

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

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCount()

public 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.

getDefaultInstanceForType()

public Sleep.SleepSummary.StageSummary getDefaultInstanceForType()
Returns
Type Description
Sleep.SleepSummary.StageSummary

getMinutes()

public 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.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getType()

public 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 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 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 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.

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.SleepSummary.StageSummary.Builder newBuilderForType()
Returns
Type Description
Sleep.SleepSummary.StageSummary.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

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

toBuilder()

public Sleep.SleepSummary.StageSummary.Builder toBuilder()
Returns
Type Description
Sleep.SleepSummary.StageSummary.Builder

writeTo(CodedOutputStream output)

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