Class Sleep.SleepStage.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Sleep.SleepStage.Builder>
com.google.devicesandservices.health.v4.Sleep.SleepStage.Builder
- All Implemented Interfaces:
Sleep.SleepStageOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- Sleep.SleepStage
public static final class Sleep.SleepStage.Builder
extends com.google.protobuf.GeneratedMessage.Builder<Sleep.SleepStage.Builder>
implements Sleep.SleepStageOrBuilder
Sleep stage segment.Protobuf type
google.devicesandservices.health.v4.Sleep.SleepStage-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Output only.Required.Required.Required.Required.Required.Output only.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampRequired.com.google.protobuf.Timestamp.BuilderRequired.com.google.protobuf.TimestampOrBuilderRequired.com.google.protobuf.DurationRequired.com.google.protobuf.Duration.BuilderRequired.com.google.protobuf.DurationOrBuilderRequired.com.google.protobuf.TimestampRequired.com.google.protobuf.Timestamp.BuilderRequired.com.google.protobuf.TimestampOrBuilderRequired.com.google.protobuf.DurationRequired.com.google.protobuf.Duration.BuilderRequired.com.google.protobuf.DurationOrBuilderRequired.getType()Required.intRequired.com.google.protobuf.TimestampOutput only.com.google.protobuf.Timestamp.BuilderOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanRequired.booleanRequired.booleanRequired.booleanRequired.booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCreateTime(com.google.protobuf.Timestamp value) Output only.mergeEndTime(com.google.protobuf.Timestamp value) Required.mergeEndUtcOffset(com.google.protobuf.Duration value) Required.mergeFrom(Sleep.SleepStage other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTime(com.google.protobuf.Timestamp value) Required.mergeStartUtcOffset(com.google.protobuf.Duration value) Required.mergeUpdateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp value) Output only.setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only.setEndTime(com.google.protobuf.Timestamp value) Required.setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) Required.setEndUtcOffset(com.google.protobuf.Duration value) Required.setEndUtcOffset(com.google.protobuf.Duration.Builder builderForValue) Required.setStartTime(com.google.protobuf.Timestamp value) Required.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) Required.setStartUtcOffset(com.google.protobuf.Duration value) Required.setStartUtcOffset(com.google.protobuf.Duration.Builder builderForValue) Required.setType(Sleep.SleepStageType value) Required.setTypeValue(int value) Required.setUpdateTime(com.google.protobuf.Timestamp value) Output only.setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) 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.SleepStage.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.SleepStage.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.SleepStage.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.SleepStage.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<Sleep.SleepStage.Builder>
-
mergeFrom
public Sleep.SleepStage.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.SleepStage.Builder>- Throws:
IOException
-
hasStartTime
public boolean hasStartTime()Required. Sleep stage start time.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasStartTimein interfaceSleep.SleepStageOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()Required. Sleep stage start time.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStartTimein interfaceSleep.SleepStageOrBuilder- Returns:
- The startTime.
-
setStartTime
Required. Sleep stage start time.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
setStartTime
Required. Sleep stage start time.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
mergeStartTime
Required. Sleep stage start time.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
clearStartTime
Required. Sleep stage start time.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()Required. Sleep stage start time.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()Required. Sleep stage start time.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStartTimeOrBuilderin interfaceSleep.SleepStageOrBuilder
-
hasStartUtcOffset
public boolean hasStartUtcOffset()Required. The offset of the user's local time at the start of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasStartUtcOffsetin interfaceSleep.SleepStageOrBuilder- Returns:
- Whether the startUtcOffset field is set.
-
getStartUtcOffset
public com.google.protobuf.Duration getStartUtcOffset()Required. The offset of the user's local time at the start of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStartUtcOffsetin interfaceSleep.SleepStageOrBuilder- Returns:
- The startUtcOffset.
-
setStartUtcOffset
Required. The offset of the user's local time at the start of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED]; -
setStartUtcOffset
public Sleep.SleepStage.Builder setStartUtcOffset(com.google.protobuf.Duration.Builder builderForValue) Required. The offset of the user's local time at the start of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED]; -
mergeStartUtcOffset
Required. The offset of the user's local time at the start of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED]; -
clearStartUtcOffset
Required. The offset of the user's local time at the start of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED]; -
getStartUtcOffsetBuilder
public com.google.protobuf.Duration.Builder getStartUtcOffsetBuilder()Required. The offset of the user's local time at the start of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED]; -
getStartUtcOffsetOrBuilder
public com.google.protobuf.DurationOrBuilder getStartUtcOffsetOrBuilder()Required. The offset of the user's local time at the start of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration start_utc_offset = 4 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getStartUtcOffsetOrBuilderin interfaceSleep.SleepStageOrBuilder
-
hasEndTime
public boolean hasEndTime()Required. Sleep stage end time.
.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasEndTimein interfaceSleep.SleepStageOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()Required. Sleep stage end time.
.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEndTimein interfaceSleep.SleepStageOrBuilder- Returns:
- The endTime.
-
setEndTime
Required. Sleep stage end time.
.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED]; -
setEndTime
Required. Sleep stage end time.
.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED]; -
mergeEndTime
Required. Sleep stage end time.
.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED]; -
clearEndTime
Required. Sleep stage end time.
.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED]; -
getEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()Required. Sleep stage end time.
.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED]; -
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()Required. Sleep stage end time.
.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEndTimeOrBuilderin interfaceSleep.SleepStageOrBuilder
-
hasEndUtcOffset
public boolean hasEndUtcOffset()Required. The offset of the user's local time at the end of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
hasEndUtcOffsetin interfaceSleep.SleepStageOrBuilder- Returns:
- Whether the endUtcOffset field is set.
-
getEndUtcOffset
public com.google.protobuf.Duration getEndUtcOffset()Required. The offset of the user's local time at the end of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEndUtcOffsetin interfaceSleep.SleepStageOrBuilder- Returns:
- The endUtcOffset.
-
setEndUtcOffset
Required. The offset of the user's local time at the end of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED]; -
setEndUtcOffset
public Sleep.SleepStage.Builder setEndUtcOffset(com.google.protobuf.Duration.Builder builderForValue) Required. The offset of the user's local time at the end of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED]; -
mergeEndUtcOffset
Required. The offset of the user's local time at the end of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED]; -
clearEndUtcOffset
Required. The offset of the user's local time at the end of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED]; -
getEndUtcOffsetBuilder
public com.google.protobuf.Duration.Builder getEndUtcOffsetBuilder()Required. The offset of the user's local time at the end of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED]; -
getEndUtcOffsetOrBuilder
public com.google.protobuf.DurationOrBuilder getEndUtcOffsetOrBuilder()Required. The offset of the user's local time at the end of the sleep stage relative to the Coordinated Universal Time (UTC).
.google.protobuf.Duration end_utc_offset = 6 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getEndUtcOffsetOrBuilderin interfaceSleep.SleepStageOrBuilder
-
getTypeValue
public int getTypeValue()Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
.google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypeValuein interfaceSleep.SleepStageOrBuilder- Returns:
- The enum numeric value on the wire for type.
-
setTypeValue
Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
.google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for type to set.- Returns:
- This builder for chaining.
-
getType
Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
.google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getTypein interfaceSleep.SleepStageOrBuilder- Returns:
- The type.
-
setType
Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
.google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The type to set.- Returns:
- This builder for chaining.
-
clearType
Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
.google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
hasCreateTime
public boolean hasCreateTime()Output only. Creation time of this sleep stages segment.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasCreateTimein interfaceSleep.SleepStageOrBuilder- Returns:
- Whether the createTime field is set.
-
getCreateTime
public com.google.protobuf.Timestamp getCreateTime()Output only. Creation time of this sleep stages segment.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimein interfaceSleep.SleepStageOrBuilder- Returns:
- The createTime.
-
setCreateTime
Output only. Creation time of this sleep stages segment.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setCreateTime
public Sleep.SleepStage.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Creation time of this sleep stages segment.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeCreateTime
Output only. Creation time of this sleep stages segment.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearCreateTime
Output only. Creation time of this sleep stages segment.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeBuilder
public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()Output only. Creation time of this sleep stages segment.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCreateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()Output only. Creation time of this sleep stages segment.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCreateTimeOrBuilderin interfaceSleep.SleepStageOrBuilder
-
hasUpdateTime
public boolean hasUpdateTime()Output only. Last update time of this sleep stages segment.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasUpdateTimein interfaceSleep.SleepStageOrBuilder- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
public com.google.protobuf.Timestamp getUpdateTime()Output only. Last update time of this sleep stages segment.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimein interfaceSleep.SleepStageOrBuilder- Returns:
- The updateTime.
-
setUpdateTime
Output only. Last update time of this sleep stages segment.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
setUpdateTime
public Sleep.SleepStage.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) Output only. Last update time of this sleep stages segment.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
mergeUpdateTime
Output only. Last update time of this sleep stages segment.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
clearUpdateTime
Output only. Last update time of this sleep stages segment.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeBuilder
public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()Output only. Last update time of this sleep stages segment.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getUpdateTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()Output only. Last update time of this sleep stages segment.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getUpdateTimeOrBuilderin interfaceSleep.SleepStageOrBuilder
-