# Google Cloud Config V1 Client - Class PropertyDrift (1.8.0)

1.8.0 (latest) 1.7.2 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.5.2 0.2.0 0.1.3 Reference documentation and code samples for the Google Cloud Config V1 Client class PropertyDrift.

A property drift represents a drift to a property in the state file.

Generated from protobuf message `google.cloud.config.v1.PropertyDrift`

## Namespace

Google \\ Cloud \\ Config \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ path` | `string` Output only. The path of the property drift. |
| `↳ before_sensitive_paths` | `string[]` Output only. The paths of sensitive fields in `before`. Paths are relative to `path`. |
| `↳ before` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value` Output only. Representations of the object value before the actions. |
| `↳ after_sensitive_paths` | `string[]` Output only. The paths of sensitive fields in `after`. Paths are relative to `path`. |
| `↳ after` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Value` Output only. Representations of the object value after the actions. |

### getPath

Output only. The path of the property drift.

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

### setPath

Output only. The path of the property drift.

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

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

### getBeforeSensitivePaths

Output only. The paths of sensitive fields in `before`. Paths are relative
to `path`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setBeforeSensitivePaths

Output only. The paths of sensitive fields in `before`. Paths are relative
to `path`.

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

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

### getBefore

Output only. Representations of the object value before the actions.

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

### hasBefore

### clearBefore

### setBefore

Output only. Representations of the object value before the actions.

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

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

### getAfterSensitivePaths

Output only. The paths of sensitive fields in `after`. Paths are relative
to `path`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setAfterSensitivePaths

Output only. The paths of sensitive fields in `after`. Paths are relative
to `path`.

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

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

### getAfter

Output only. Representations of the object value after the actions.

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

### hasAfter

### clearAfter

### setAfter

Output only. Representations of the object value after the actions.

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

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