Google Cloud Channel V1 Client - Class CustomerConstraints (1.6.0)

Reference documentation and code samples for the Google Cloud Channel V1 Client class CustomerConstraints.

Represents constraints required to purchase the Offer for a customer.

Generated from protobuf message google.cloud.channel.v1.CustomerConstraints

Namespace

Google \ Cloud \ Channel \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ allowed_regions array

Allowed geographical regions of the customer.

↳ allowed_customer_types array

Allowed Customer Type.

↳ promotional_order_types array

Allowed Promotional Order Type. Present for Promotional offers.

getAllowedRegions

Allowed geographical regions of the customer.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAllowedRegions

Allowed geographical regions of the customer.

Parameter
NameDescription
var string[]
Returns
TypeDescription
$this

getAllowedCustomerTypes

Allowed Customer Type.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setAllowedCustomerTypes

Allowed Customer Type.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this

getPromotionalOrderTypes

Allowed Promotional Order Type. Present for Promotional offers.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setPromotionalOrderTypes

Allowed Promotional Order Type. Present for Promotional offers.

Parameter
NameDescription
var int[]
Returns
TypeDescription
$this