Class HydrationLogRollupValue.VolumeQuantityRollup.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<HydrationLogRollupValue.VolumeQuantityRollup.Builder>
com.google.devicesandservices.health.v4.HydrationLogRollupValue.VolumeQuantityRollup.Builder
- All Implemented Interfaces:
HydrationLogRollupValue.VolumeQuantityRollupOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- HydrationLogRollupValue.VolumeQuantityRollup
public static final class HydrationLogRollupValue.VolumeQuantityRollup.Builder
extends com.google.protobuf.GeneratedMessage.Builder<HydrationLogRollupValue.VolumeQuantityRollup.Builder>
implements HydrationLogRollupValue.VolumeQuantityRollupOrBuilder
Rollup for volume quantity.Protobuf type
google.devicesandservices.health.v4.HydrationLogRollupValue.VolumeQuantityRollup-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.Optional.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptordoubleRequired.Optional.intOptional.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setMillilitersSum(double value) Required.Optional.setUserProvidedUnitLastValue(int value) Optional.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<HydrationLogRollupValue.VolumeQuantityRollup.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<HydrationLogRollupValue.VolumeQuantityRollup.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<HydrationLogRollupValue.VolumeQuantityRollup.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public HydrationLogRollupValue.VolumeQuantityRollup.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HydrationLogRollupValue.VolumeQuantityRollup.Builder>
-
mergeFrom
public HydrationLogRollupValue.VolumeQuantityRollup.Builder mergeFrom(HydrationLogRollupValue.VolumeQuantityRollup other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<HydrationLogRollupValue.VolumeQuantityRollup.Builder>
-
mergeFrom
public HydrationLogRollupValue.VolumeQuantityRollup.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<HydrationLogRollupValue.VolumeQuantityRollup.Builder>- Throws:
IOException
-
getMillilitersSum
public double getMillilitersSum()Required. The sum of volume in milliliters.
double milliliters_sum = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getMillilitersSumin interfaceHydrationLogRollupValue.VolumeQuantityRollupOrBuilder- Returns:
- The millilitersSum.
-
setMillilitersSum
Required. The sum of volume in milliliters.
double milliliters_sum = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The millilitersSum to set.- Returns:
- This builder for chaining.
-
clearMillilitersSum
Required. The sum of volume in milliliters.
double milliliters_sum = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
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];- Specified by:
getUserProvidedUnitLastValuein interfaceHydrationLogRollupValue.VolumeQuantityRollupOrBuilder- Returns:
- The enum numeric value on the wire for userProvidedUnitLast.
-
setUserProvidedUnitLastValue
Optional. The user provided unit on the last element.
.google.devicesandservices.health.v4.VolumeUnit user_provided_unit_last = 2 [(.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The enum numeric value on the wire for userProvidedUnitLast to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getUserProvidedUnitLastin interfaceHydrationLogRollupValue.VolumeQuantityRollupOrBuilder- Returns:
- The userProvidedUnitLast.
-
setUserProvidedUnitLast
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];- Parameters:
value- The userProvidedUnitLast to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-