public static final class NutritionLogRollupValue.EnergyQuantityRollup.Builder extends GeneratedMessage.Builder<NutritionLogRollupValue.EnergyQuantityRollup.Builder> implements NutritionLogRollupValue.EnergyQuantityRollupOrBuilderRollup for the energy quantity.
Protobuf type
google.devicesandservices.health.v4.NutritionLogRollupValue.EnergyQuantityRollup
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > NutritionLogRollupValue.EnergyQuantityRollup.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public NutritionLogRollupValue.EnergyQuantityRollup build()| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup |
|
buildPartial()
public NutritionLogRollupValue.EnergyQuantityRollup buildPartial()| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup |
|
clear()
public NutritionLogRollupValue.EnergyQuantityRollup.Builder clear()| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup.Builder |
|
clearKcalSum()
public NutritionLogRollupValue.EnergyQuantityRollup.Builder clearKcalSum()Required. The sum of the energy in kilocalories.
optional double kcal_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup.Builder |
This builder for chaining. |
clearUserProvidedUnitLast()
public NutritionLogRollupValue.EnergyQuantityRollup.Builder clearUserProvidedUnitLast()Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.EnergyUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public NutritionLogRollupValue.EnergyQuantityRollup getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getKcalSum()
public double getKcalSum()Required. The sum of the energy in kilocalories.
optional double kcal_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
double |
The kcalSum. |
getUserProvidedUnitLast()
public EnergyUnit getUserProvidedUnitLast()Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.EnergyUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
EnergyUnit |
The userProvidedUnitLast. |
getUserProvidedUnitLastValue()
public int getUserProvidedUnitLastValue()Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.EnergyUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for userProvidedUnitLast. |
hasKcalSum()
public boolean hasKcalSum()Required. The sum of the energy in kilocalories.
optional double kcal_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the kcalSum field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(NutritionLogRollupValue.EnergyQuantityRollup other)
public NutritionLogRollupValue.EnergyQuantityRollup.Builder mergeFrom(NutritionLogRollupValue.EnergyQuantityRollup other)| Parameter | |
|---|---|
| Name | Description |
other |
NutritionLogRollupValue.EnergyQuantityRollup |
| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public NutritionLogRollupValue.EnergyQuantityRollup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public NutritionLogRollupValue.EnergyQuantityRollup.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup.Builder |
|
setKcalSum(double value)
public NutritionLogRollupValue.EnergyQuantityRollup.Builder setKcalSum(double value)Required. The sum of the energy in kilocalories.
optional double kcal_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe kcalSum to set. |
| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup.Builder |
This builder for chaining. |
setUserProvidedUnitLast(EnergyUnit value)
public NutritionLogRollupValue.EnergyQuantityRollup.Builder setUserProvidedUnitLast(EnergyUnit value)Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.EnergyUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
EnergyUnitThe userProvidedUnitLast to set. |
| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup.Builder |
This builder for chaining. |
setUserProvidedUnitLastValue(int value)
public NutritionLogRollupValue.EnergyQuantityRollup.Builder setUserProvidedUnitLastValue(int value)Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.EnergyUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
intThe enum numeric value on the wire for userProvidedUnitLast to set. |
| Returns | |
|---|---|
| Type | Description |
NutritionLogRollupValue.EnergyQuantityRollup.Builder |
This builder for chaining. |