# Google Cloud Policy Simulator V1 Client - Class ReplayDiff (1.3.4)

1.3.4 (latest) 1.3.3 1.2.0 1.1.1 1.0.3 0.2.5 0.1.1 Reference documentation and code samples for the Google Cloud Policy Simulator V1 Client class ReplayDiff.

The difference between the results of evaluating an access tuple under
the current (baseline) policies and under the proposed (simulated) policies.

This difference explains how a principal's access could change if the
proposed policies were applied.

Generated from protobuf message `google.cloud.policysimulator.v1.ReplayDiff`

## Namespace

Google \\ Cloud \\ PolicySimulator \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ access_diff` | `https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.AccessStateDiff` A summary and comparison of the principal's access under the current (baseline) policies and the proposed (simulated) policies for a single access tuple. The evaluation of the principal's access is reported in the [AccessState](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.AccessState) field. |

### getAccessDiff

A summary and comparison of the principal's access under the current
(baseline) policies and the proposed (simulated) policies for a single
access tuple.

The evaluation of the principal's access is reported in the
[AccessState](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.AccessState) field.

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

### hasAccessDiff

### clearAccessDiff

### setAccessDiff

A summary and comparison of the principal's access under the current
(baseline) policies and the proposed (simulated) policies for a single
access tuple.

The evaluation of the principal's access is reported in the
[AccessState](https://docs.cloud.google.com/php/docs/reference/cloud-policysimulator/latest/V1.AccessState) field.

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

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