# Google Cloud Document Ai V1 Client - Class ListProcessorVersionsRequest (2.7.0)

2.7.0 (latest) 2.6.1 2.5.1 2.4.1 2.3.0 2.2.2 2.1.3 2.0.0 1.14.0 1.13.1 1.12.2 1.9.0 1.8.2 1.7.0 1.6.0 1.5.0 1.4.0 1.3.0 1.2.2 1.1.1 1.0.1 Reference documentation and code samples for the Google Cloud Document Ai V1 Client class ListProcessorVersionsRequest.

Request message for list all processor versions belongs to a processor.

Generated from protobuf message `google.cloud.documentai.v1.ListProcessorVersionsRequest`

## Namespace

Google \\ Cloud \\ DocumentAI \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The parent (project, location and processor) to list all versions. Format: `projects/{project}/locations/{location}/processors/{processor}` |
| `↳ page_size` | `int` The maximum number of processor versions to return. If unspecified, at most `10` processor versions will be returned. The maximum value is `20`. Values above `20` will be coerced to `20`. |
| `↳ page_token` | `string` We will return the processor versions sorted by creation time. The page token will point to the next processor version. |

### getParent

Required. The parent (project, location and processor) to list all
versions. Format:
`projects/{project}/locations/{location}/processors/{processor}`

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

### setParent

Required. The parent (project, location and processor) to list all
versions. Format:
`projects/{project}/locations/{location}/processors/{processor}`

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

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

### getPageSize

The maximum number of processor versions to return.

If unspecified, at most `10` processor versions will be returned.
The maximum value is `20`. Values above `20` will be coerced to `20`.

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

### setPageSize

The maximum number of processor versions to return.

If unspecified, at most `10` processor versions will be returned.
The maximum value is `20`. Values above `20` will be coerced to `20`.

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

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

### getPageToken

We will return the processor versions sorted by creation time. The page
token will point to the next processor version.

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

### setPageToken

We will return the processor versions sorted by creation time. The page
token will point to the next processor version.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The parent (project, location and processor) to list all versions. Format: `projects/{project}/locations/{location}/processors/{processor}` Please see DocumentProcessorServiceClient::processorName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-document-ai/latest/V1.ListProcessorVersionsRequest` |   |