# Google Analytics Admin V1alpha Client - Class ChangeHistoryEvent (0.32.0)

0.32.0 (latest) 0.31.3 0.30.0 0.29.1 0.28.1 0.27.0 0.26.0 0.25.2 0.24.2 0.23.0 0.22.5 0.20.0 0.19.0 0.18.1 0.17.0 0.16.0 0.15.1 0.14.0 0.13.0 0.12.0 0.11.1 0.10.0 0.9.0 0.8.2

> [!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 Analytics Admin V1alpha Client class ChangeHistoryEvent.

A set of changes within a Google Analytics account or its child properties
that resulted from the same cause. Common causes would be updates made in the
Google Analytics UI, changes from customer support, or automatic Google
Analytics system changes.

Generated from protobuf message `google.analytics.admin.v1alpha.ChangeHistoryEvent`

## Namespace

Google \\ Analytics \\ Admin \\ V1alpha

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ id` | `string` ID of this change history event. This ID is unique across Google Analytics. |
| `↳ change_time` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` Time when change was made. |
| `↳ actor_type` | `int` The type of actor that made this change. |
| `↳ user_actor_email` | `string` Email address of the Google account that made the change. This will be a valid email address if the actor field is set to USER, and empty otherwise. Google accounts that have been deleted will cause an error. |
| `↳ changes_filtered` | `bool` If true, then the list of changes returned was filtered, and does not represent all changes that occurred in this event. |
| `↳ changes` | `array<https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.ChangeHistoryChange>` A list of changes made in this change history event that fit the filters specified in SearchChangeHistoryEventsRequest. |

### getId

ID of this change history event. This ID is unique across Google Analytics.

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

### setId

ID of this change history event. This ID is unique across Google Analytics.

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

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

### getChangeTime

Time when change was made.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp|null` |   |

### hasChangeTime

### clearChangeTime

### setChangeTime

Time when change was made.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Timestamp` |

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

### getActorType

The type of actor that made this change.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ActorType](https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.ActorType). |

### setActorType

The type of actor that made this change.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ActorType](https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.ActorType). |

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

### getUserActorEmail

Email address of the Google account that made the change. This will be a
valid email address if the actor field is set to USER, and empty otherwise.

Google accounts that have been deleted will cause an error.

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

### setUserActorEmail

Email address of the Google account that made the change. This will be a
valid email address if the actor field is set to USER, and empty otherwise.

Google accounts that have been deleted will cause an error.

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

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

### getChangesFiltered

If true, then the list of changes returned was filtered, and does not
represent all changes that occurred in this event.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setChangesFiltered

If true, then the list of changes returned was filtered, and does not
represent all changes that occurred in this event.

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

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

### getChanges

A list of changes made in this change history event that fit the filters
specified in SearchChangeHistoryEventsRequest.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.ChangeHistoryChange>` |   |

### setChanges

A list of changes made in this change history event that fit the filters
specified in SearchChangeHistoryEventsRequest.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1alpha.ChangeHistoryChange>` |

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