Google Shopping Merchant Products V1 Client - Class Warranty (1.7.0)

Reference documentation and code samples for the Google Shopping Merchant Products V1 Client class Warranty.

The warranty of the vehicle.

Generated from protobuf message google.shopping.merchant.products.v1.ProductAttributes.Warranty

Namespace

Google \ Shopping \ Merchant \ Products \ V1 \ ProductAttributes

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ duration int|string

The warranty duration in months.

↳ mileage Mileage

The warranty mileage.

getDuration

The warranty duration in months.

Returns
Type Description
int|string

setDuration

The warranty duration in months.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getMileage

The warranty mileage.

Returns
Type Description
Mileage|null

hasMileage

clearMileage

setMileage

The warranty mileage.

Parameter
Name Description
var Mileage
Returns
Type Description
$this