Interface VolumeQuantityOrBuilder (0.2.0)

public interface VolumeQuantityOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMilliliters()

public abstract double getMilliliters()

Required. Value representing the volume in milliliters.

optional double milliliters = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
double

The milliliters.

getUserProvidedUnit()

public abstract VolumeUnit getUserProvidedUnit()

Optional. Value representing the user provided unit, used only for user-facing input and display purposes. In the API format, all volume quantities are converted to milliliters.

.google.devicesandservices.health.v4.VolumeUnit user_provided_unit = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
VolumeUnit

The userProvidedUnit.

getUserProvidedUnitValue()

public abstract int getUserProvidedUnitValue()

Optional. Value representing the user provided unit, used only for user-facing input and display purposes. In the API format, all volume quantities are converted to milliliters.

.google.devicesandservices.health.v4.VolumeUnit user_provided_unit = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The enum numeric value on the wire for userProvidedUnit.

hasMilliliters()

public abstract boolean hasMilliliters()

Required. Value representing the volume in milliliters.

optional double milliliters = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the milliliters field is set.