public static interface ProductAttributes.Co2EmissionsOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getUnit()
public abstract ProductAttributes.Co2Emissions.Unit getUnit()The unit of the co2 emission.
.google.shopping.merchant.products.v1.ProductAttributes.Co2Emissions.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Co2Emissions.Unit |
The unit. |
getUnitValue()
public abstract int getUnitValue()The unit of the co2 emission.
.google.shopping.merchant.products.v1.ProductAttributes.Co2Emissions.Unit unit = 2;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for unit. |
getValue()
public abstract long getValue()The co2 emission value.
optional int64 value = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The value. |
hasValue()
public abstract boolean hasValue()The co2 emission value.
optional int64 value = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the value field is set. |