# Google Cloud Workflows V1 Client - Class ListWorkflowsRequest (1.3.0)

1.3.0 (latest) 1.2.1 1.1.1 1.0.3 0.5.5 0.4.2 0.3.0 0.2.17 Reference documentation and code samples for the Google Cloud Workflows V1 Client class ListWorkflowsRequest.

Request for the
[ListWorkflows](https://docs.cloud.google.com/php/docs/reference/cloud-workflows/latest/V1.Client.WorkflowsClient#_Google_Cloud_Workflows_V1_Client_WorkflowsClient__listWorkflows__)
method.

Generated from protobuf message `google.cloud.workflows.v1.ListWorkflowsRequest`

## Namespace

Google \\ Cloud \\ Workflows \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. Project and location from which the workflows should be listed. Format: projects/{project}/locations/{location} |
| `↳ page_size` | `int` Maximum number of workflows to return per call. The service might return fewer than this value even if not at the end of the collection. If a value is not specified, a default value of 500 is used. The maximum permitted value is 1000 and values greater than 1000 are coerced down to 1000. |
| `↳ page_token` | `string` A page token, received from a previous `ListWorkflows` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListWorkflows` must match the call that provided the page token. |
| `↳ filter` | `string` Filter to restrict results to specific workflows. For details, see [AIP-160](https://google.aip.dev/160). For example, if you are using the Google APIs Explorer: `state="SUCCEEDED"` or `createTime>"2023-08-01" AND state="FAILED"` |
| `↳ order_by` | `string` Comma-separated list of fields that specify the order of the results. Default sorting order for a field is ascending. To specify descending order for a field, append a "desc" suffix. If not specified, the results are returned in an unspecified order. |

### getParent

Required. Project and location from which the workflows should be listed.

Format: projects/{project}/locations/{location}

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

### setParent

Required. Project and location from which the workflows should be listed.

Format: projects/{project}/locations/{location}

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

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

### getPageSize

Maximum number of workflows to return per call. The service might return
fewer than this value even if not at the end of the collection. If a value
is not specified, a default value of 500 is used. The maximum permitted
value is 1000 and values greater than 1000 are coerced down to 1000.

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

### setPageSize

Maximum number of workflows to return per call. The service might return
fewer than this value even if not at the end of the collection. If a value
is not specified, a default value of 500 is used. The maximum permitted
value is 1000 and values greater than 1000 are coerced down to 1000.

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

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

### getPageToken

A page token, received from a previous `ListWorkflows` call.

Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListWorkflows` must
match the call that provided the page token.

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

### setPageToken

A page token, received from a previous `ListWorkflows` call.

Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to `ListWorkflows` must
match the call that provided the page token.

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

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

### getFilter

Filter to restrict results to specific workflows.

For details, see [AIP-160](https://google.aip.dev/160).
For example, if you are using the Google APIs Explorer:
`state="SUCCEEDED"`
or
`createTime>"2023-08-01" AND state="FAILED"`

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

### setFilter

Filter to restrict results to specific workflows.

For details, see [AIP-160](https://google.aip.dev/160).
For example, if you are using the Google APIs Explorer:
`state="SUCCEEDED"`
or
`createTime>"2023-08-01" AND state="FAILED"`

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

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

### getOrderBy

Comma-separated list of fields that specify the order of the results.

Default sorting order for a field is ascending. To specify descending order
for a field, append a "desc" suffix.
If not specified, the results are returned in an unspecified order.

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

### setOrderBy

Comma-separated list of fields that specify the order of the results.

Default sorting order for a field is ascending. To specify descending order
for a field, append a "desc" suffix.
If not specified, the results are returned in an unspecified order.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. Project and location from which the workflows should be listed. Format: projects/{project}/locations/{location} Please see WorkflowsClient::locationName() for help formatting this field. |

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