public static interface ProductAttributes.WarrantyOrBuilder extends MessageOrBuilderImplements
MessageOrBuilderMethods
getDuration()
public abstract long getDuration() The warranty duration in units. Default is in months, can be overridden
by the duration_unit field.
int64 duration = 1;
| Returns | |
|---|---|
| Type | Description |
long |
The duration. |
getDurationUnit()
public abstract ProductAttributes.Warranty.WarrantyDurationUnit getDurationUnit() The unit for the warranty duration. Assumed to be MONTH if
equal to WARRANTY_DURATION_UNIT_UNSPECIFIED.
.google.shopping.merchant.products.v1.ProductAttributes.Warranty.WarrantyDurationUnit duration_unit = 3;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Warranty.WarrantyDurationUnit |
The durationUnit. |
getDurationUnitValue()
public abstract int getDurationUnitValue() The unit for the warranty duration. Assumed to be MONTH if
equal to WARRANTY_DURATION_UNIT_UNSPECIFIED.
.google.shopping.merchant.products.v1.ProductAttributes.Warranty.WarrantyDurationUnit duration_unit = 3;
| Returns | |
|---|---|
| Type | Description |
int |
The enum numeric value on the wire for durationUnit. |
getMileage()
public abstract ProductAttributes.Mileage getMileage()The warranty mileage (only applies to vehicles).
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.Mileage |
The mileage. |
getMileageOrBuilder()
public abstract ProductAttributes.MileageOrBuilder getMileageOrBuilder()The warranty mileage (only applies to vehicles).
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Returns | |
|---|---|
| Type | Description |
ProductAttributes.MileageOrBuilder |
|
hasMileage()
public abstract boolean hasMileage()The warranty mileage (only applies to vehicles).
.google.shopping.merchant.products.v1.ProductAttributes.Mileage mileage = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the mileage field is set. |