0.6.2 (latest) 0.6.1 0.5.3 0.4.1 0.3.0 0.2.2 0.1.2 Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class FetchGitRefsRequest.

Request for fetching git refs.

Generated from protobuf message `google.cloud.developerconnect.v1.FetchGitRefsRequest`

## Namespace

Google \\ Cloud \\ DeveloperConnect \\ V1

## Methods

### __construct

Constructor.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `data` | `mixed` |

### getGitRepositoryLink

Required. The resource name of GitRepositoryLink in the format
`projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

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

### setGitRepositoryLink

Required. The resource name of GitRepositoryLink in the format
`projects/*/locations/*/connections/*/gitRepositoryLinks/*`.

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

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

### getRefType

Required. Type of refs to fetch.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [RefType](https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.FetchGitRefsRequest.RefType). |

### setRefType

Required. Type of refs to fetch.

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

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

### getPageSize

Optional. Number of results to return in the list. Default to 20.

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

### setPageSize

Optional. Number of results to return in the list. Default to 20.

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

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

### getPageToken

Optional. Page start.

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

### setPageToken

Optional. Page start.

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

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `gitRepositoryLink` | `string` Required. The resource name of GitRepositoryLink in the format `projects/*/locations/*/connections/*/gitRepositoryLinks/*`. Please see DeveloperConnectClient::gitRepositoryLinkName() for help formatting this field. |
| `refType` | `int` Required. Type of refs to fetch. For allowed values, use constants defined on [FetchGitRefsRequest\\RefType](https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.FetchGitRefsRequest.RefType) |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-developerconnect/latest/V1.FetchGitRefsRequest` |   |