Interface DistanceOrBuilder (0.5.0)

public interface DistanceOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getUnit()

public abstract Distance.Unit getUnit()

Unit can differ based on country, it is parameterized to include miles and kilometers.

optional .google.shopping.merchant.accounts.v1beta.Distance.Unit unit = 2;

Returns
Type Description
Distance.Unit

The unit.

getUnitValue()

public abstract int getUnitValue()

Unit can differ based on country, it is parameterized to include miles and kilometers.

optional .google.shopping.merchant.accounts.v1beta.Distance.Unit unit = 2;

Returns
Type Description
int

The enum numeric value on the wire for unit.

getValue()

public abstract long getValue()

Integer value of distance.

optional int64 value = 1;

Returns
Type Description
long

The value.

hasUnit()

public abstract boolean hasUnit()

Unit can differ based on country, it is parameterized to include miles and kilometers.

optional .google.shopping.merchant.accounts.v1beta.Distance.Unit unit = 2;

Returns
Type Description
boolean

Whether the unit field is set.

hasValue()

public abstract boolean hasValue()

Integer value of distance.

optional int64 value = 1;

Returns
Type Description
boolean

Whether the value field is set.