# Google Cloud Security Command Center V2 Client - Class ListSourcesRequest (2.5.1)

2.5.1 (latest) 2.5.0 2.4.2 2.3.0 2.2.1 2.1.1 2.0.4 1.32.0 1.31.0 1.30.0 1.29.0 1.28.2 1.21.0 1.20.2 1.19.1 1.18.0 1.17.0 1.16.0 1.15.1 1.14.2 1.13.1 Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class ListSourcesRequest.

Request message for listing sources.

Generated from protobuf message `google.cloud.securitycenter.v2.ListSourcesRequest`

## Namespace

Google \\ Cloud \\ SecurityCenter \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Resource name of the parent of sources to list. Its format should be `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`. |
| `↳ page_token` | `string` The value returned by the last `ListSourcesResponse`; indicates that this is a continuation of a prior `ListSources` call, and that the system should return the next page of data. |
| `↳ page_size` | `int` The maximum number of results to return in a single response. Default is 10, minimum is 1, maximum is 1000. |

### getParent

Required. Resource name of the parent of sources to list. Its format should
be `organizations/[organization_id]`, `folders/[folder_id]`, or
`projects/[project_id]`.

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

### setParent

Required. Resource name of the parent of sources to list. Its format should
be `organizations/[organization_id]`, `folders/[folder_id]`, or
`projects/[project_id]`.

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

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

### getPageToken

The value returned by the last `ListSourcesResponse`; indicates
that this is a continuation of a prior `ListSources` call, and
that the system should return the next page of data.

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

### setPageToken

The value returned by the last `ListSourcesResponse`; indicates
that this is a continuation of a prior `ListSources` call, and
that the system should return the next page of data.

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

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

### getPageSize

The maximum number of results to return in a single response. Default is
10, minimum is 1, maximum is 1000.

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

### setPageSize

The maximum number of results to return in a single response. Default is
10, minimum is 1, maximum is 1000.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Resource name of the parent of sources to list. Its format should be `organizations/[organization_id]`, `folders/[folder_id]`, or `projects/[project_id]`. Please see SecurityCenterClient::projectName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-security-center/latest/V2.ListSourcesRequest` |   |