# Google Cloud Asset V1 Client - Class AccessSelector (2.3.3)

2.3.3 (latest) 2.3.2 2.2.3 2.1.3 2.0.1 1.16.4 1.14.1 1.13.2 1.12.2 1.11.3 1.10.2 1.9.2 Reference documentation and code samples for the Google Cloud Asset V1 Client class AccessSelector.

Specifies roles and/or permissions to analyze, to determine both the
identities possessing them and the resources they control. If multiple
values are specified, results will include roles or permissions matching
any of them. The total number of roles and permissions should be equal or
less than 10.

Generated from protobuf message `google.cloud.asset.v1.IamPolicyAnalysisQuery.AccessSelector`

## Namespace

Google \\ Cloud \\ Asset \\ V1 \\ IamPolicyAnalysisQuery

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ roles` | `string[]` Optional. The roles to appear in result. |
| `↳ permissions` | `string[]` Optional. The permissions to appear in result. |

### getRoles

Optional. The roles to appear in result.

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

### setRoles

Optional. The roles to appear in result.

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

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

### getPermissions

Optional. The permissions to appear in result.

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

### setPermissions

Optional. The permissions to appear in result.

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

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