# Google Cloud Channel V1 Client - Class Constraints (2.4.1)

2.4.1 (latest) 2.4.0 2.3.1 2.2.1 2.1.4 2.0.0 1.9.5 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.1 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Channel V1 Client class Constraints.

Represents the constraints for buying the Offer.

Generated from protobuf message `google.cloud.channel.v1.Constraints`

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ customer_constraints` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CustomerConstraints` Represents constraints required to purchase the Offer for a customer. |

### getCustomerConstraints

Represents constraints required to purchase the Offer for a customer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CustomerConstraints|null` |   |

### hasCustomerConstraints

### clearCustomerConstraints

### setCustomerConstraints

Represents constraints required to purchase the Offer for a customer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CustomerConstraints` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |