public static final class DailyHeartRateZones.HeartRateZone extends GeneratedMessage implements DailyHeartRateZones.HeartRateZoneOrBuilderThe heart rate zone.
Protobuf type google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > DailyHeartRateZones.HeartRateZoneImplements
DailyHeartRateZones.HeartRateZoneOrBuilderStatic Fields
HEART_RATE_ZONE_TYPE_FIELD_NUMBER
public static final int HEART_RATE_ZONE_TYPE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MAX_BEATS_PER_MINUTE_FIELD_NUMBER
public static final int MAX_BEATS_PER_MINUTE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
MIN_BEATS_PER_MINUTE_FIELD_NUMBER
public static final int MIN_BEATS_PER_MINUTE_FIELD_NUMBER| Field Value | |
|---|---|
| Type | Description |
int |
|
Static Methods
getDefaultInstance()
public static DailyHeartRateZones.HeartRateZone getDefaultInstance()| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
newBuilder()
public static DailyHeartRateZones.HeartRateZone.Builder newBuilder()| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone.Builder |
|
newBuilder(DailyHeartRateZones.HeartRateZone prototype)
public static DailyHeartRateZones.HeartRateZone.Builder newBuilder(DailyHeartRateZones.HeartRateZone prototype)| Parameter | |
|---|---|
| Name | Description |
prototype |
DailyHeartRateZones.HeartRateZone |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone.Builder |
|
parseDelimitedFrom(InputStream input)
public static DailyHeartRateZones.HeartRateZone parseDelimitedFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DailyHeartRateZones.HeartRateZone parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(byte[] data)
public static DailyHeartRateZones.HeartRateZone parseFrom(byte[] data)| Parameter | |
|---|---|
| Name | Description |
data |
byte[] |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static DailyHeartRateZones.HeartRateZone parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
byte[] |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data)
public static DailyHeartRateZones.HeartRateZone parseFrom(ByteString data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteString |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static DailyHeartRateZones.HeartRateZone parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteString |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(CodedInputStream input)
public static DailyHeartRateZones.HeartRateZone parseFrom(CodedInputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
CodedInputStream |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static DailyHeartRateZones.HeartRateZone parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input)
public static DailyHeartRateZones.HeartRateZone parseFrom(InputStream input)| Parameter | |
|---|---|
| Name | Description |
input |
InputStream |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static DailyHeartRateZones.HeartRateZone parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
InputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
parseFrom(ByteBuffer data)
public static DailyHeartRateZones.HeartRateZone parseFrom(ByteBuffer data)| Parameter | |
|---|---|
| Name | Description |
data |
ByteBuffer |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static DailyHeartRateZones.HeartRateZone parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
data |
ByteBuffer |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
| Exceptions | |
|---|---|
| Type | Description |
InvalidProtocolBufferException |
|
parser()
public static Parser<DailyHeartRateZones.HeartRateZone> parser()| Returns | |
|---|---|
| Type | Description |
Parser<HeartRateZone> |
|
Methods
equals(Object obj)
public boolean equals(Object obj)| Parameter | |
|---|---|
| Name | Description |
obj |
Object |
| Returns | |
|---|---|
| Type | Description |
boolean |
|
getDefaultInstanceForType()
public DailyHeartRateZones.HeartRateZone getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
getHeartRateZoneType()
public HeartRateZoneType getHeartRateZoneType()Required. The heart rate zone type.
.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
HeartRateZoneType |
The heartRateZoneType. |
getHeartRateZoneTypeValue()
public int getHeartRateZoneTypeValue()Required. The heart rate zone type.
.google.devicesandservices.health.v4.HeartRateZoneType heart_rate_zone_type = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for heartRateZoneType. |
getMaxBeatsPerMinute()
public long getMaxBeatsPerMinute()Required. Maximum heart rate for this zone in beats per minute.
optional int64 max_beats_per_minute = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The maxBeatsPerMinute. |
getMinBeatsPerMinute()
public long getMinBeatsPerMinute()Required. Minimum heart rate for this zone in beats per minute.
optional int64 min_beats_per_minute = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
long |
The minBeatsPerMinute. |
getParserForType()
public Parser<DailyHeartRateZones.HeartRateZone> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<HeartRateZone> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
hasMaxBeatsPerMinute()
public boolean hasMaxBeatsPerMinute()Required. Maximum heart rate for this zone in beats per minute.
optional int64 max_beats_per_minute = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the maxBeatsPerMinute field is set. |
hasMinBeatsPerMinute()
public boolean hasMinBeatsPerMinute()Required. Minimum heart rate for this zone in beats per minute.
optional int64 min_beats_per_minute = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the minBeatsPerMinute 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 DailyHeartRateZones.HeartRateZone.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected DailyHeartRateZones.HeartRateZone.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone.Builder |
|
toBuilder()
public DailyHeartRateZones.HeartRateZone.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|