# Google Analytics Admin V1beta Client - Class ChangeHistoryResource (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 V1beta Client class ChangeHistoryResource.

A snapshot of a resource as before or after the result of a change in
change history.

Generated from protobuf message `google.analytics.admin.v1beta.ChangeHistoryChange.ChangeHistoryResource`

## Namespace

Google \\ Analytics \\ Admin \\ V1beta \\ ChangeHistoryChange

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ account` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.Account` A snapshot of an Account resource in change history. |
| `↳ property` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.Property` A snapshot of a Property resource in change history. |
| `↳ firebase_link` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.FirebaseLink` A snapshot of a FirebaseLink resource in change history. |
| `↳ google_ads_link` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.GoogleAdsLink` A snapshot of a GoogleAdsLink resource in change history. |
| `↳ conversion_event` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.ConversionEvent` A snapshot of a ConversionEvent resource in change history. |
| `↳ measurement_protocol_secret` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.MeasurementProtocolSecret` A snapshot of a MeasurementProtocolSecret resource in change history. |
| `↳ data_retention_settings` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.DataRetentionSettings` A snapshot of a data retention settings resource in change history. |
| `↳ data_stream` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.DataStream` A snapshot of a DataStream resource in change history. |

### getAccount

A snapshot of an Account resource in change history.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.Account|null` |   |

### hasAccount

### setAccount

A snapshot of an Account resource in change history.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.Account` |

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

### getProperty

A snapshot of a Property resource in change history.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.Property|null` |   |

### hasProperty

### setProperty

A snapshot of a Property resource in change history.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.Property` |

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

### getFirebaseLink

A snapshot of a FirebaseLink resource in change history.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.FirebaseLink|null` |   |

### hasFirebaseLink

### setFirebaseLink

A snapshot of a FirebaseLink resource in change history.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.FirebaseLink` |

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

### getGoogleAdsLink

A snapshot of a GoogleAdsLink resource in change history.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.GoogleAdsLink|null` |   |

### hasGoogleAdsLink

### setGoogleAdsLink

A snapshot of a GoogleAdsLink resource in change history.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.GoogleAdsLink` |

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

### getConversionEvent

A snapshot of a ConversionEvent resource in change history.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.ConversionEvent|null` |   |

### hasConversionEvent

### setConversionEvent

A snapshot of a ConversionEvent resource in change history.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.ConversionEvent` |

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

### getMeasurementProtocolSecret

A snapshot of a MeasurementProtocolSecret resource in change history.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.MeasurementProtocolSecret|null` |   |

### hasMeasurementProtocolSecret

### setMeasurementProtocolSecret

A snapshot of a MeasurementProtocolSecret resource in change history.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.MeasurementProtocolSecret` |

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

### getDataRetentionSettings

A snapshot of a data retention settings resource in change history.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.DataRetentionSettings|null` |   |

### hasDataRetentionSettings

### setDataRetentionSettings

A snapshot of a data retention settings resource in change history.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.DataRetentionSettings` |

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

### getDataStream

A snapshot of a DataStream resource in change history.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.DataStream|null` |   |

### hasDataStream

### setDataStream

A snapshot of a DataStream resource in change history.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/analytics-admin/latest/V1beta.DataStream` |

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

### getResource

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