# Google Cloud Recommendation Engine V1beta1 Client - Class PurgeUserEventsResponse (0.9.3)

0.9.3 (latest) 0.9.2 0.8.2 0.7.7 0.6.4 0.5.0 0.4.12

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Google Cloud Recommendation Engine V1beta1 Client class PurgeUserEventsResponse.

Response of the PurgeUserEventsRequest. If the long running operation is
successfully done, then this message is returned by the
google.longrunning.Operations.response field.

Generated from protobuf message `google.cloud.recommendationengine.v1beta1.PurgeUserEventsResponse`

## Namespace

Google \\ Cloud \\ RecommendationEngine \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ purged_events_count` | `int|string` The total count of events purged as a result of the operation. |
| `↳ user_events_sample` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-recommendations-ai/latest/V1beta1.UserEvent>` A sampling of events deleted (or will be deleted) depending on the `force` property in the request. Max of 500 items will be returned. |

### getPurgedEventsCount

The total count of events purged as a result of the operation.

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

### setPurgedEventsCount

The total count of events purged as a result of the operation.

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

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

### getUserEventsSample

A sampling of events deleted (or will be deleted) depending on the `force`
property in the request. Max of 500 items will be returned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-recommendations-ai/latest/V1beta1.UserEvent>` |   |

### setUserEventsSample

A sampling of events deleted (or will be deleted) depending on the `force`
property in the request. Max of 500 items will be returned.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-recommendations-ai/latest/V1beta1.UserEvent>` |

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