# Cloud AutoML V1 Client - Class ListDatasetsRequest (2.1.3)

2.1.3 (latest) 2.1.2 2.0.5 1.6.5 1.5.4 1.4.17 Reference documentation and code samples for the Cloud AutoML V1 Client class ListDatasetsRequest.

Request message for [AutoMl.ListDatasets](https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.Client.AutoMlClient#_Google_Cloud_AutoMl_V1_Client_AutoMlClient__listDatasets__).

Generated from protobuf message `google.cloud.automl.v1.ListDatasetsRequest`

## Namespace

Google \\ Cloud \\ AutoMl \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The resource name of the project from which to list datasets. |
| `↳ filter` | `string` An expression for filtering the results of the request. \* \* `dataset_metadata` - for existence of the case (e.g. `image_classification_dataset_metadata:*`). Some examples of using the filter are: \* \* `translation_dataset_metadata:*` --\> The dataset has `translation_dataset_metadata`. |
| `↳ page_size` | `int` Requested page size. Server may return fewer results than requested. If unspecified, server will pick a default size. |
| `↳ page_token` | `string` A token identifying a page of results for the server to return Typically obtained via [ListDatasetsResponse.next_page_token](https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.ListDatasetsResponse#_Google_Cloud_AutoMl_V1_ListDatasetsResponse__getNextPageToken__) of the previous [AutoMl.ListDatasets](https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.Client.AutoMlClient#_Google_Cloud_AutoMl_V1_Client_AutoMlClient__listDatasets__) call. |

### getParent

Required. The resource name of the project from which to list datasets.

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

### setParent

Required. The resource name of the project from which to list datasets.

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

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

### getFilter

An expression for filtering the results of the request.

- `dataset_metadata` - for existence of the case (e.g. `image_classification_dataset_metadata:*`). Some examples of using the filter are:
  - `translation_dataset_metadata:*` --\> The dataset has `translation_dataset_metadata`.

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

### setFilter

An expression for filtering the results of the request.

- `dataset_metadata` - for existence of the case (e.g. `image_classification_dataset_metadata:*`). Some examples of using the filter are:
  - `translation_dataset_metadata:*` --\> The dataset has `translation_dataset_metadata`.

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

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

### getPageSize

Requested page size. Server may return fewer results than requested.

If unspecified, server will pick a default size.

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

### setPageSize

Requested page size. Server may return fewer results than requested.

If unspecified, server will pick a default size.

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

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

### getPageToken

A token identifying a page of results for the server to return
Typically obtained via
[ListDatasetsResponse.next_page_token](https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.ListDatasetsResponse#_Google_Cloud_AutoMl_V1_ListDatasetsResponse__getNextPageToken__) of the previous
[AutoMl.ListDatasets](https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.Client.AutoMlClient#_Google_Cloud_AutoMl_V1_Client_AutoMlClient__listDatasets__) call.

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

### setPageToken

A token identifying a page of results for the server to return
Typically obtained via
[ListDatasetsResponse.next_page_token](https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.ListDatasetsResponse#_Google_Cloud_AutoMl_V1_ListDatasetsResponse__getNextPageToken__) of the previous
[AutoMl.ListDatasets](https://docs.cloud.google.com/php/docs/reference/cloud-automl/latest/V1.Client.AutoMlClient#_Google_Cloud_AutoMl_V1_Client_AutoMlClient__listDatasets__) call.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The resource name of the project from which to list datasets. Please see AutoMlClient::locationName() for help formatting this field. |

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