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

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

The pet policy of the property.

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

Namespace

Google \ Shopping \ Merchant \ Products \ V1 \ ProductAttributes

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ pets_allowed bool

Whether pets are allowed.

↳ pet_types int[]

The pet types allowed.

getPetsAllowed

Whether pets are allowed.

Returns
Type Description
bool

setPetsAllowed

Whether pets are allowed.

Parameter
Name Description
var bool
Returns
Type Description
$this

getPetTypes

The pet types allowed.

Returns
Type Description
Google\Protobuf\RepeatedField<int>

setPetTypes

The pet types allowed.

Parameter
Name Description
var int[]
Returns
Type Description
$this