public static final class HydrationLogRollupValue.VolumeQuantityRollup.Builder extends GeneratedMessage.Builder<HydrationLogRollupValue.VolumeQuantityRollup.Builder> implements HydrationLogRollupValue.VolumeQuantityRollupOrBuilderRollup for volume quantity.
Protobuf type
google.devicesandservices.health.v4.HydrationLogRollupValue.VolumeQuantityRollup
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > HydrationLogRollupValue.VolumeQuantityRollup.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public HydrationLogRollupValue.VolumeQuantityRollup build()| Returns | |
|---|---|
| Type | Description |
HydrationLogRollupValue.VolumeQuantityRollup |
|
buildPartial()
public HydrationLogRollupValue.VolumeQuantityRollup buildPartial()| Returns | |
|---|---|
| Type | Description |
HydrationLogRollupValue.VolumeQuantityRollup |
|
clear()
public HydrationLogRollupValue.VolumeQuantityRollup.Builder clear()| Returns | |
|---|---|
| Type | Description |
HydrationLogRollupValue.VolumeQuantityRollup.Builder |
|
clearMillilitersSum()
public HydrationLogRollupValue.VolumeQuantityRollup.Builder clearMillilitersSum()Required. The sum of volume in milliliters.
optional double milliliters_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
HydrationLogRollupValue.VolumeQuantityRollup.Builder |
This builder for chaining. |
clearUserProvidedUnitLast()
public HydrationLogRollupValue.VolumeQuantityRollup.Builder clearUserProvidedUnitLast()Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.VolumeUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
HydrationLogRollupValue.VolumeQuantityRollup.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public HydrationLogRollupValue.VolumeQuantityRollup getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
HydrationLogRollupValue.VolumeQuantityRollup |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getMillilitersSum()
public double getMillilitersSum()Required. The sum of volume in milliliters.
optional double milliliters_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
double |
The millilitersSum. |
getUserProvidedUnitLast()
public VolumeUnit getUserProvidedUnitLast()Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.VolumeUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
VolumeUnit |
The userProvidedUnitLast. |
getUserProvidedUnitLastValue()
public int getUserProvidedUnitLastValue()Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.VolumeUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for userProvidedUnitLast. |
hasMillilitersSum()
public boolean hasMillilitersSum()Required. The sum of volume in milliliters.
optional double milliliters_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the millilitersSum field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(HydrationLogRollupValue.VolumeQuantityRollup other)
public HydrationLogRollupValue.VolumeQuantityRollup.Builder mergeFrom(HydrationLogRollupValue.VolumeQuantityRollup other)| Parameter | |
|---|---|
| Name | Description |
other |
HydrationLogRollupValue.VolumeQuantityRollup |
| Returns | |
|---|---|
| Type | Description |
HydrationLogRollupValue.VolumeQuantityRollup.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public HydrationLogRollupValue.VolumeQuantityRollup.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
HydrationLogRollupValue.VolumeQuantityRollup.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public HydrationLogRollupValue.VolumeQuantityRollup.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
HydrationLogRollupValue.VolumeQuantityRollup.Builder |
|
setMillilitersSum(double value)
public HydrationLogRollupValue.VolumeQuantityRollup.Builder setMillilitersSum(double value)Required. The sum of volume in milliliters.
optional double milliliters_sum = 1 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
doubleThe millilitersSum to set. |
| Returns | |
|---|---|
| Type | Description |
HydrationLogRollupValue.VolumeQuantityRollup.Builder |
This builder for chaining. |
setUserProvidedUnitLast(VolumeUnit value)
public HydrationLogRollupValue.VolumeQuantityRollup.Builder setUserProvidedUnitLast(VolumeUnit value)Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.VolumeUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
VolumeUnitThe userProvidedUnitLast to set. |
| Returns | |
|---|---|
| Type | Description |
HydrationLogRollupValue.VolumeQuantityRollup.Builder |
This builder for chaining. |
setUserProvidedUnitLastValue(int value)
public HydrationLogRollupValue.VolumeQuantityRollup.Builder setUserProvidedUnitLastValue(int value)Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.VolumeUnit 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 |
HydrationLogRollupValue.VolumeQuantityRollup.Builder |
This builder for chaining. |