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 FetchGitAheadBehindResponse.

`FetchGitAheadBehind` response message.

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

## Namespace

Google \\ Cloud \\ Dataform \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ commits_ahead` | `int` The number of commits in the remote branch that are not in the workspace. |
| `↳ commits_behind` | `int` The number of commits in the workspace that are not in the remote branch. |

### getCommitsAhead

The number of commits in the remote branch that are not in the workspace.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setCommitsAhead

The number of commits in the remote branch that are not in the workspace.

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

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

### getCommitsBehind

The number of commits in the workspace that are not in the remote branch.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setCommitsBehind

The number of commits in the workspace that are not in the remote branch.

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

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