Class Sleep.SleepMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Sleep.SleepMetadata.Builder>
com.google.devicesandservices.health.v4.Sleep.SleepMetadata.Builder
- All Implemented Interfaces:
Sleep.SleepMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Sleep.SleepMetadata
public static final class Sleep.SleepMetadata.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Sleep.SleepMetadata.Builder>
implements Sleep.SleepMetadataOrBuilder
Additional information about how the sleep was processed.Protobuf type
google.devicesandservices.health.v4.Sleep.SleepMetadata-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Optional.Output only.clearNap()Output only.Output only.Output only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorOptional.com.google.protobuf.ByteStringOptional.booleanOutput only.booleangetNap()Output only.booleanOutput only.Output only.intOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(Sleep.SleepMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setExternalId(String value) Optional.setExternalIdBytes(com.google.protobuf.ByteString value) Optional.setManuallyEdited(boolean value) Output only.setNap(boolean value) Output only.setProcessed(boolean value) Output only.Output only.setStagesStatusValue(int value) Output only.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<Sleep.SleepMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<Sleep.SleepMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<Sleep.SleepMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Sleep.SleepMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Sleep.SleepMetadata.Builder>
-
mergeFrom
public Sleep.SleepMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<Sleep.SleepMetadata.Builder>- Throws:
IOException
-
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:
getStagesStatusValuein interfaceSleep.SleepMetadataOrBuilder- Returns:
- The enum numeric value on the wire for stagesStatus.
-
setStagesStatusValue
Output only. Sleep stages algorithm processing status.
.google.devicesandservices.health.v4.Sleep.SleepMetadata.StagesState stages_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for stagesStatus to set.- Returns:
- This builder for chaining.
-
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:
getStagesStatusin interfaceSleep.SleepMetadataOrBuilder- Returns:
- The stagesStatus.
-
setStagesStatus
Output only. Sleep stages algorithm processing status.
.google.devicesandservices.health.v4.Sleep.SleepMetadata.StagesState stages_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The stagesStatus to set.- Returns:
- This builder for chaining.
-
clearStagesStatus
Output only. Sleep stages algorithm processing status.
.google.devicesandservices.health.v4.Sleep.SleepMetadata.StagesState stages_status = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getProcessed
public boolean getProcessed()Output only. Sleep and sleep stages algorithms finished processing.
bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getProcessedin interfaceSleep.SleepMetadataOrBuilder- Returns:
- The processed.
-
setProcessed
Output only. Sleep and sleep stages algorithms finished processing.
bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The processed to set.- Returns:
- This builder for chaining.
-
clearProcessed
Output only. Sleep and sleep stages algorithms finished processing.
bool processed = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
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:
getNapin interfaceSleep.SleepMetadataOrBuilder- Returns:
- The nap.
-
setNap
Output only. Naps are sleeps without stages and relatively short durations.
bool nap = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The nap to set.- Returns:
- This builder for chaining.
-
clearNap
Output only. Naps are sleeps without stages and relatively short durations.
bool nap = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
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:
getManuallyEditedin interfaceSleep.SleepMetadataOrBuilder- Returns:
- The manuallyEdited.
-
setManuallyEdited
Output only. Some sleeps autodetected by algorithms can be manually edited by users.
bool manually_edited = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The manuallyEdited to set.- Returns:
- This builder for chaining.
-
clearManuallyEdited
Output only. Some sleeps autodetected by algorithms can be manually edited by users.
bool manually_edited = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getExternalId
Optional. Sleep identifier relevant in the context of the data source.
string external_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExternalIdin interfaceSleep.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:
getExternalIdBytesin interfaceSleep.SleepMetadataOrBuilder- Returns:
- The bytes for externalId.
-
setExternalId
Optional. Sleep identifier relevant in the context of the data source.
string external_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The externalId to set.- Returns:
- This builder for chaining.
-
clearExternalId
Optional. Sleep identifier relevant in the context of the data source.
string external_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
setExternalIdBytes
Optional. Sleep identifier relevant in the context of the data source.
string external_id = 7 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The bytes for externalId to set.- Returns:
- This builder for chaining.
-