# Google Cloud KMS Inventory V1 Client - Class ListCryptoKeysRequest (1.4.0)

1.4.0 (latest) 1.3.0 1.2.3 1.1.1 1.0.4 0.4.5 0.3.1 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud KMS Inventory V1 Client class ListCryptoKeysRequest.

Request message for
[KeyDashboardService.ListCryptoKeys](https://docs.cloud.google.com/php/docs/reference/cloud-kms-inventory/latest/V1.Client.KeyDashboardServiceClient#_Google_Cloud_Kms_Inventory_V1_Client_KeyDashboardServiceClient__listCryptoKeys__).

Generated from protobuf message `google.cloud.kms.inventory.v1.ListCryptoKeysRequest`

## Namespace

Google \\ Cloud \\ Kms \\ Inventory \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ parent` | `string` Required. The Google Cloud project for which to retrieve key metadata, in the format `projects/*` |
| `↳ page_size` | `int` Optional. The maximum number of keys to return. The service may return fewer than this value. If unspecified, at most 1000 keys will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000. |
| `↳ page_token` | `string` Optional. Pass this into a subsequent request in order to receive the next page of results. |

### getParent

Required. The Google Cloud project for which to retrieve key metadata, in
the format `projects/*`

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

### setParent

Required. The Google Cloud project for which to retrieve key metadata, in
the format `projects/*`

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

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

### getPageSize

Optional. The maximum number of keys to return. The service may return
fewer than this value. If unspecified, at most 1000 keys will be returned.

The maximum value is 1000; values above 1000 will be coerced to 1000.

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

### setPageSize

Optional. The maximum number of keys to return. The service may return
fewer than this value. If unspecified, at most 1000 keys will be returned.

The maximum value is 1000; values above 1000 will be coerced to 1000.

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

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

### getPageToken

Optional. Pass this into a subsequent request in order to receive the next
page of results.

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

### setPageToken

Optional. Pass this into a subsequent request in order to receive the next
page of results.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `parent` | `string` Required. The Google Cloud project for which to retrieve key metadata, in the format `projects/*` Please see KeyDashboardServiceClient::projectName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-kms-inventory/latest/V1.ListCryptoKeysRequest` |   |