public final class DailyRespiratoryRate extends GeneratedMessage implements DailyRespiratoryRateOrBuilderA daily average respiratory rate (breaths per minute) for a day of the year. One data point per day calculated for the main sleep.
Protobuf type google.devicesandservices.health.v4.DailyRespiratoryRate
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > DailyRespiratoryRateImplements
DailyRespiratoryRateOrBuilderStatic Fields
BREATHS_PER_MINUTE_FIELD_NUMBER
public static final int BREATHS_PER_MINUTE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
DATE_FIELD_NUMBER
public static final int DATE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static DailyRespiratoryRate getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static DailyRespiratoryRate.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate.Builder |
|
newBuilder(DailyRespiratoryRate prototype)
public static DailyRespiratoryRate.Builder newBuilder(DailyRespiratoryRate prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
DailyRespiratoryRate |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate.Builder |
|
parseDelimitedFrom(InputStream input)
public static DailyRespiratoryRate parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DailyRespiratoryRate parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static DailyRespiratoryRate parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DailyRespiratoryRate parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static DailyRespiratoryRate parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DailyRespiratoryRate parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static DailyRespiratoryRate parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DailyRespiratoryRate parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static DailyRespiratoryRate parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DailyRespiratoryRate parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static DailyRespiratoryRate parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DailyRespiratoryRate parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<DailyRespiratoryRate> parser()| Returns | |
|---|---|
| Type | Description |
Parser<DailyRespiratoryRate> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getBreathsPerMinute()
public double getBreathsPerMinute()Required. The average number of breaths taken per minute.
optional double breaths_per_minute = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
double |
The breathsPerMinute. |
getDate()
public Date getDate()Required. The date on which the respiratory rate was measured.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The date. |
getDateOrBuilder()
public DateOrBuilder getDateOrBuilder()Required. The date on which the respiratory rate was measured.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getDefaultInstanceForType()
public DailyRespiratoryRate getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate |
|
getParserForType()
public Parser<DailyRespiratoryRate> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<DailyRespiratoryRate> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasBreathsPerMinute()
public boolean hasBreathsPerMinute()Required. The average number of breaths taken per minute.
optional double breaths_per_minute = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the breathsPerMinute field is set. |
hasDate()
public boolean hasDate()Required. The date on which the respiratory rate was measured.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the date field is set. |
hashCode()
public int hashCode()| Returns | |
|---|---|
| Type | Description |
int |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public DailyRespiratoryRate.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected DailyRespiratoryRate.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate.Builder |
|
toBuilder()
public DailyRespiratoryRate.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
DailyRespiratoryRate.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|