# Google Cloud Privileged Access Manager V1 Client - Class SearchGrantsResponse (0.4.4)

0.4.4 (latest) 0.4.3 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Privileged Access Manager V1 Client class SearchGrantsResponse.

Response message for `SearchGrants` method.

Generated from protobuf message `google.cloud.privilegedaccessmanager.v1.SearchGrantsResponse`

## Namespace

Google \\ Cloud \\ PrivilegedAccessManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ grants` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-privilegedaccessmanager/latest/V1.Grant>` The list of grants. |
| `↳ next_page_token` | `string` A token identifying a page of results the server should return. |

### getGrants

The list of grants.

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

### setGrants

The list of grants.

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

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

### getNextPageToken

A token identifying a page of results the server should return.

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

### setNextPageToken

A token identifying a page of results the server should return.

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

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