# Google Cloud Channel V1 Client - Class CustomerEvent (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 CustomerEvent.

Represents Pub/Sub message content describing customer update.

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

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ customer` | `string` Resource name of the customer. Format: accounts/{account_id}/customers/{customer_id} |
| `↳ event_type` | `int` Type of event which happened for the customer. |

### getCustomer

Resource name of the customer.

Format: accounts/{account_id}/customers/{customer_id}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCustomer

Resource name of the customer.

Format: accounts/{account_id}/customers/{customer_id}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

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

### getEventType

Type of event which happened for the customer.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CustomerEvent.Type). |

### setEventType

Type of event which happened for the customer.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CustomerEvent.Type). |

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