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 Reference documentation and code samples for the Google Cloud Dataform V1 Client class CommitRepositoryChangesRequest.

`CommitRepositoryChanges` request message.

Generated from protobuf message `google.cloud.dataform.v1.CommitRepositoryChangesRequest`

## Namespace

Google \\ Cloud \\ Dataform \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The repository's name. |
| `↳ commit_metadata` | `https://docs.cloud.google.com/php/docs/reference/cloud-dataform/latest/V1.CommitMetadata` Required. The changes to commit to the repository. |
| `↳ required_head_commit_sha` | `string` Optional. The commit SHA which must be the repository's current HEAD before applying this commit; otherwise this request will fail. If unset, no validation on the current HEAD commit SHA is performed. |
| `↳ file_operations` | `array|Google\Protobuf\Internal\MapField` Optional. A map to the path of the file to the operation. The path is the full file path including filename, from repository root. |

### getName

Required. The repository's name.

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

### setName

Required. The repository's name.

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

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

### getCommitMetadata

Required. The changes to commit to the repository.

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

### hasCommitMetadata

### clearCommitMetadata

### setCommitMetadata

Required. The changes to commit to the repository.

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

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

### getRequiredHeadCommitSha

Optional. The commit SHA which must be the repository's current HEAD before
applying this commit; otherwise this request will fail. If unset, no
validation on the current HEAD commit SHA is performed.

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

### setRequiredHeadCommitSha

Optional. The commit SHA which must be the repository's current HEAD before
applying this commit; otherwise this request will fail. If unset, no
validation on the current HEAD commit SHA is performed.

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

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

### getFileOperations

Optional. A map to the path of the file to the operation. The path is the
full file path including filename, from repository root.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Internal\MapField` |   |

### setFileOperations

Optional. A map to the path of the file to the operation. The path is the
full file path including filename, from repository root.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|Google\Protobuf\Internal\MapField` |

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