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

Represents information which resellers will get as part of notification from
Pub/Sub.

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

## Namespace

Google \\ Cloud \\ Channel \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ customer_event` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.CustomerEvent` Customer event sent as part of Pub/Sub event to partners. |
| `↳ entitlement_event` | `https://docs.cloud.google.com/php/docs/reference/cloud-channel/latest/V1.EntitlementEvent` Entitlement event sent as part of Pub/Sub event to partners. |

### getCustomerEvent

Customer event sent as part of Pub/Sub event to partners.

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

### hasCustomerEvent

### setCustomerEvent

Customer event sent as part of Pub/Sub event to partners.

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

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

### getEntitlementEvent

Entitlement event sent as part of Pub/Sub event to partners.

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

### hasEntitlementEvent

### setEntitlementEvent

Entitlement event sent as part of Pub/Sub event to partners.

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

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

### getEvent

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