Interface Sleep.SleepStageOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Sleep.SleepStage,Sleep.SleepStage.Builder
- Enclosing class:
- Sleep
public static interface Sleep.SleepStageOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptioncom.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.com.google.protobuf.TimestampRequired.com.google.protobuf.TimestampOrBuilderRequired.com.google.protobuf.DurationRequired.com.google.protobuf.DurationOrBuilderRequired.com.google.protobuf.TimestampRequired.com.google.protobuf.TimestampOrBuilderRequired.com.google.protobuf.DurationRequired.com.google.protobuf.DurationOrBuilderRequired.getType()Required.intRequired.com.google.protobuf.TimestampOutput only.com.google.protobuf.TimestampOrBuilderOutput only.booleanOutput only.booleanRequired.booleanRequired.booleanRequired.booleanRequired.booleanOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasStartTime
boolean hasStartTime()Required. Sleep stage start time.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the startTime field is set.
-
getStartTime
com.google.protobuf.Timestamp getStartTime()Required. Sleep stage start time.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The startTime.
-
getStartTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()Required. Sleep stage start time.
.google.protobuf.Timestamp start_time = 3 [(.google.api.field_behavior) = REQUIRED]; -
hasStartUtcOffset
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];- Returns:
- Whether the startUtcOffset field is set.
-
getStartUtcOffset
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];- Returns:
- The startUtcOffset.
-
getStartUtcOffsetOrBuilder
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]; -
hasEndTime
boolean hasEndTime()Required. Sleep stage end time.
.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- Whether the endTime field is set.
-
getEndTime
com.google.protobuf.Timestamp getEndTime()Required. Sleep stage end time.
.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The endTime.
-
getEndTimeOrBuilder
com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()Required. Sleep stage end time.
.google.protobuf.Timestamp end_time = 5 [(.google.api.field_behavior) = REQUIRED]; -
hasEndUtcOffset
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];- Returns:
- Whether the endUtcOffset field is set.
-
getEndUtcOffset
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];- Returns:
- The endUtcOffset.
-
getEndUtcOffsetOrBuilder
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]; -
getTypeValue
int getTypeValue()Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
.google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The enum numeric value on the wire for type.
-
getType
Sleep.SleepStageType getType()Required. Sleep stage type: AWAKE, DEEP, REM, LIGHT etc.
.google.devicesandservices.health.v4.Sleep.SleepStageType type = 7 [(.google.api.field_behavior) = REQUIRED];- Returns:
- The type.
-
hasCreateTime
boolean hasCreateTime()Output only. Creation time of this sleep stages segment.
.google.protobuf.Timestamp create_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the createTime field is set.
-
getCreateTime
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];- Returns:
- The createTime.
-
getCreateTimeOrBuilder
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]; -
hasUpdateTime
boolean hasUpdateTime()Output only. Last update time of this sleep stages segment.
.google.protobuf.Timestamp update_time = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- Whether the updateTime field is set.
-
getUpdateTime
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];- Returns:
- The updateTime.
-
getUpdateTimeOrBuilder
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];
-