Interface ProductDimensionOrBuilder (0.4.0)

public interface ProductDimensionOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getUnit()

public abstract String getUnit()

Required. The dimension units. Acceptable values are:

  • "in"
  • "cm"

string unit = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The unit.

getUnitBytes()

public abstract ByteString getUnitBytes()

Required. The dimension units. Acceptable values are:

  • "in"
  • "cm"

string unit = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for unit.

getValue()

public abstract double getValue()

Required. The dimension value represented as a number. The value can have a maximum precision of four decimal places.

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

Returns
TypeDescription
double

The value.