# Google Cloud KMS Inventory V1 Client - Class SearchProtectedResourcesResponse (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 SearchProtectedResourcesResponse.

Response message for
[KeyTrackingService.SearchProtectedResources](https://docs.cloud.google.com/php/docs/reference/cloud-kms-inventory/latest/V1.Client.KeyTrackingServiceClient#_Google_Cloud_Kms_Inventory_V1_Client_KeyTrackingServiceClient__searchProtectedResources__).

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

## Namespace

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

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ protected_resources` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-kms-inventory/latest/V1.ProtectedResource>` Protected resources for this page. |
| `↳ next_page_token` | `string` A token that can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages. |

### getProtectedResources

Protected resources for this page.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-kms-inventory/latest/V1.ProtectedResource>` |   |

### setProtectedResources

Protected resources for this page.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-kms-inventory/latest/V1.ProtectedResource>` |

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

### getNextPageToken

A token that can be sent as `page_token` to retrieve the next page.

If this field is omitted, there are no subsequent pages.

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

### setNextPageToken

A token that can be sent as `page_token` to retrieve the next page.

If this field is omitted, there are no subsequent pages.

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

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