# Google API Common Protos V1 Client - Class TestIamPermissionsResponse (4.14.0)

4.14.0 (latest) 4.13.0 4.12.5 4.11.0 4.10.0 4.9.0 4.8.3 Reference documentation and code samples for the Google API Common Protos V1 Client class TestIamPermissionsResponse.

Response message for `TestIamPermissions` method.

Generated from protobuf message `google.iam.v1.TestIamPermissionsResponse`

## Namespace

Google \\ Cloud \\ Iam \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ permissions` | `string[]` A subset of `TestPermissionsRequest.permissions` that the caller is allowed. |

### getPermissions

A subset of `TestPermissionsRequest.permissions` that the caller is
allowed.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setPermissions

A subset of `TestPermissionsRequest.permissions` that the caller is
allowed.

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

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