# Data Loss Prevention V2 Client - Class ListConnectionsRequest (2.13.0)

2.13.0 (latest) 2.12.0 2.11.0 2.10.0 2.9.2 2.8.1 2.7.0 2.6.1 2.4.1 2.3.0 2.2.3 2.1.0 2.0.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.1 1.14.0 1.13.2 1.12.0 1.11.0 1.10.2 1.9.0 1.8.6 Reference documentation and code samples for the Data Loss Prevention V2 Client class ListConnectionsRequest.

Request message for ListConnections.

Generated from protobuf message `google.privacy.dlp.v2.ListConnectionsRequest`

## Namespace

Google \\ Cloud \\ Dlp \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Resource name of the organization or project, for example, `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. |
| `↳ page_size` | `int` Optional. Number of results per page, max 1000. |
| `↳ page_token` | `string` Optional. Page token from a previous page to return the next set of results. If set, all other request fields must match the original request. |
| `↳ filter` | `string` Optional. Supported field/value: `state` - MISSING\|AVAILABLE\|ERROR The syntax is based on <https://google.aip.dev/160>. |

### getParent

Required. Resource name of the organization or project, for
example, `organizations/433245324/locations/europe` or
`projects/project-id/locations/asia`.

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

### setParent

Required. Resource name of the organization or project, for
example, `organizations/433245324/locations/europe` or
`projects/project-id/locations/asia`.

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

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

### getPageSize

Optional. Number of results per page, max 1000.

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

### setPageSize

Optional. Number of results per page, max 1000.

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

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

### getPageToken

Optional. Page token from a previous page to return the next set of
results. If set, all other request fields must match the original request.

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

### setPageToken

Optional. Page token from a previous page to return the next set of
results. If set, all other request fields must match the original request.

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

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

### getFilter

Optional. Supported field/value: `state` - MISSING\|AVAILABLE\|ERROR
The syntax is based on <https://google.aip.dev/160>.

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

### setFilter

Optional. Supported field/value: `state` - MISSING\|AVAILABLE\|ERROR
The syntax is based on <https://google.aip.dev/160>.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Resource name of the organization or project, for example, `organizations/433245324/locations/europe` or `projects/project-id/locations/asia`. Please see DlpServiceClient::organizationLocationName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-dlp/latest/V2.ListConnectionsRequest` |   |