public static final class DailyHeartRateZones.Builder extends GeneratedMessage.Builder<DailyHeartRateZones.Builder> implements DailyHeartRateZonesOrBuilderUser's heart rate zone thresholds based on the Karvonen algorithm for a specific day.
Protobuf type google.devicesandservices.health.v4.DailyHeartRateZones
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > DailyHeartRateZones.BuilderImplements
DailyHeartRateZonesOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllHeartRateZones(Iterable<? extends DailyHeartRateZones.HeartRateZone> values)
public DailyHeartRateZones.Builder addAllHeartRateZones(Iterable<? extends DailyHeartRateZones.HeartRateZone> values)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone> |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
addHeartRateZones(DailyHeartRateZones.HeartRateZone value)
public DailyHeartRateZones.Builder addHeartRateZones(DailyHeartRateZones.HeartRateZone value)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
DailyHeartRateZones.HeartRateZone |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
addHeartRateZones(DailyHeartRateZones.HeartRateZone.Builder builderForValue)
public DailyHeartRateZones.Builder addHeartRateZones(DailyHeartRateZones.HeartRateZone.Builder builderForValue)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
DailyHeartRateZones.HeartRateZone.Builder |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
addHeartRateZones(int index, DailyHeartRateZones.HeartRateZone value)
public DailyHeartRateZones.Builder addHeartRateZones(int index, DailyHeartRateZones.HeartRateZone value)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DailyHeartRateZones.HeartRateZone |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
addHeartRateZones(int index, DailyHeartRateZones.HeartRateZone.Builder builderForValue)
public DailyHeartRateZones.Builder addHeartRateZones(int index, DailyHeartRateZones.HeartRateZone.Builder builderForValue)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DailyHeartRateZones.HeartRateZone.Builder |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
addHeartRateZonesBuilder()
public DailyHeartRateZones.HeartRateZone.Builder addHeartRateZonesBuilder()Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone.Builder |
|
addHeartRateZonesBuilder(int index)
public DailyHeartRateZones.HeartRateZone.Builder addHeartRateZonesBuilder(int index)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone.Builder |
|
build()
public DailyHeartRateZones build()| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones |
|
buildPartial()
public DailyHeartRateZones buildPartial()| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones |
|
clear()
public DailyHeartRateZones.Builder clear()| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
clearDate()
public DailyHeartRateZones.Builder clearDate()Required. Date (in user's timezone) of the heart rate zones record.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
clearHeartRateZones()
public DailyHeartRateZones.Builder clearHeartRateZones()Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
getDate()
public Date getDate()Required. Date (in user's timezone) of the heart rate zones record.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date |
The date. |
getDateBuilder()
public Date.Builder getDateBuilder()Required. Date (in user's timezone) of the heart rate zones record.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.Date.Builder |
|
getDateOrBuilder()
public DateOrBuilder getDateOrBuilder()Required. Date (in user's timezone) of the heart rate zones record.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
com.google.type.DateOrBuilder |
|
getDefaultInstanceForType()
public DailyHeartRateZones getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getHeartRateZones(int index)
public DailyHeartRateZones.HeartRateZone getHeartRateZones(int index)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone |
|
getHeartRateZonesBuilder(int index)
public DailyHeartRateZones.HeartRateZone.Builder getHeartRateZonesBuilder(int index)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZone.Builder |
|
getHeartRateZonesBuilderList()
public List<DailyHeartRateZones.HeartRateZone.Builder> getHeartRateZonesBuilderList()Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getHeartRateZonesCount()
public int getHeartRateZonesCount()Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
int |
|
getHeartRateZonesList()
public List<DailyHeartRateZones.HeartRateZone> getHeartRateZonesList()Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<HeartRateZone> |
|
getHeartRateZonesOrBuilder(int index)
public DailyHeartRateZones.HeartRateZoneOrBuilder getHeartRateZonesOrBuilder(int index)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.HeartRateZoneOrBuilder |
|
getHeartRateZonesOrBuilderList()
public List<? extends DailyHeartRateZones.HeartRateZoneOrBuilder> getHeartRateZonesOrBuilderList()Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZoneOrBuilder> |
|
hasDate()
public boolean hasDate()Required. Date (in user's timezone) of the heart rate zones record.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the date field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeDate(Date value)
public DailyHeartRateZones.Builder mergeDate(Date value)Required. Date (in user's timezone) of the heart rate zones record.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
mergeFrom(DailyHeartRateZones other)
public DailyHeartRateZones.Builder mergeFrom(DailyHeartRateZones other)| Parameter | |
|---|---|
| Name | Description |
other |
DailyHeartRateZones |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public DailyHeartRateZones.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public DailyHeartRateZones.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
removeHeartRateZones(int index)
public DailyHeartRateZones.Builder removeHeartRateZones(int index)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
setDate(Date value)
public DailyHeartRateZones.Builder setDate(Date value)Required. Date (in user's timezone) of the heart rate zones record.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
com.google.type.Date |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
setDate(Date.Builder builderForValue)
public DailyHeartRateZones.Builder setDate(Date.Builder builderForValue)Required. Date (in user's timezone) of the heart rate zones record.
.google.type.Date date = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
com.google.type.Date.Builder |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
setHeartRateZones(int index, DailyHeartRateZones.HeartRateZone value)
public DailyHeartRateZones.Builder setHeartRateZones(int index, DailyHeartRateZones.HeartRateZone value)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
DailyHeartRateZones.HeartRateZone |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|
setHeartRateZones(int index, DailyHeartRateZones.HeartRateZone.Builder builderForValue)
public DailyHeartRateZones.Builder setHeartRateZones(int index, DailyHeartRateZones.HeartRateZone.Builder builderForValue)Required. The heart rate zones.
repeated .google.devicesandservices.health.v4.DailyHeartRateZones.HeartRateZone heart_rate_zones = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
DailyHeartRateZones.HeartRateZone.Builder |
| Returns | |
|---|---|
| Type | Description |
DailyHeartRateZones.Builder |
|