0.18.0 (latest) 0.17.1 0.16.0 0.15.3 0.12.0 0.11.0 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

> [!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 Cloud Dataform V1beta1 Client class FileOperation.

Represents a single file operation to the repository.

Generated from protobuf message `google.cloud.dataform.v1beta1.CommitRepositoryChangesRequest.FileOperation`

## Namespace

Google \\ Cloud \\ Dataform \\ V1beta1 \\ CommitRepositoryChangesRequest

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ write_file` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile` Represents the write operation. |
| `↳ delete_file` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile` Represents the delete operation. |

### getWriteFile

Represents the write operation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile|null` |   |

### hasWriteFile

### setWriteFile

Represents the write operation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.CommitRepositoryChangesRequest.FileOperation.WriteFile` |

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

### getDeleteFile

Represents the delete operation.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile|null` |   |

### hasDeleteFile

### setDeleteFile

Represents the delete operation.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1beta1.CommitRepositoryChangesRequest.FileOperation.DeleteFile` |

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

### getOperation

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