# Cloud Vision V1 Client - Class ListProductSetsRequest (2.2.1)

2.2.1 (latest) 2.2.0 2.1.3 2.0.3 1.10.3 1.9.4 1.8.0 1.7.6 1.6.8 Reference documentation and code samples for the Cloud Vision V1 Client class ListProductSetsRequest.

Request message for the `ListProductSets` method.

Generated from protobuf message `google.cloud.vision.v1.ListProductSetsRequest`

## Namespace

Google \\ Cloud \\ Vision \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The project from which ProductSets should be listed. Format is `projects/PROJECT_ID/locations/LOC_ID`. |
| `↳ page_size` | `int` The maximum number of items to return. Default 10, maximum 100. |
| `↳ page_token` | `string` The next_page_token returned from a previous List request, if any. |

### getParent

Required. The project from which ProductSets should be listed.

Format is `projects/PROJECT_ID/locations/LOC_ID`.

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

### setParent

Required. The project from which ProductSets should be listed.

Format is `projects/PROJECT_ID/locations/LOC_ID`.

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

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

### getPageSize

The maximum number of items to return. Default 10, maximum 100.

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

### setPageSize

The maximum number of items to return. Default 10, maximum 100.

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

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

### getPageToken

The next_page_token returned from a previous List request, if any.

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

### setPageToken

The next_page_token returned from a previous List request, if any.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The project from which ProductSets should be listed. Format is `projects/PROJECT_ID/locations/LOC_ID`. Please see ProductSearchClient::locationName() for help formatting this field. |

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