# Google Cloud Dataform V1 Client - Class UncommittedFileChange (0.11.0)

0.11.0 (latest) 0.10.1 0.9.2 0.8.1 0.7.0 0.6.0 0.5.1 0.4.7 0.3.0 0.2.3 0.1.6 Reference documentation and code samples for the Google Cloud Dataform V1 Client class UncommittedFileChange.

Represents the Git state of a file with uncommitted changes.

Generated from protobuf message `google.cloud.dataform.v1.FetchFileGitStatusesResponse.UncommittedFileChange`

## Namespace

Google \\ Cloud \\ Dataform \\ V1 \\ FetchFileGitStatusesResponse

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ path` | `string` The file's full path including filename, relative to the workspace root. |
| `↳ state` | `int` Output only. Indicates the status of the file. |

### getPath

The file's full path including filename, relative to the workspace root.

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

### setPath

The file's full path including filename, relative to the workspace root.

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

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

### getState

Output only. Indicates the status of the file.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.FetchFileGitStatusesResponse.UncommittedFileChange.State). |

### setState

Output only. Indicates the status of the file.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.FetchFileGitStatusesResponse.UncommittedFileChange.State). |

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