1.3.0 (latest) 1.2.4 1.1.3 1.0.4 0.5.5 0.4.5 0.3.5 Reference documentation and code samples for the Access Context Manager V1 Client class GetAccessLevelRequest.

A request to get a particular `AccessLevel`.

Generated from protobuf message `google.identity.accesscontextmanager.v1.GetAccessLevelRequest`

## Namespace

Google \\ Identity \\ AccessContextManager \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Resource name for the \[Access Level\] \[google.identity.accesscontextmanager.v1.AccessLevel\]. Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` |
| `↳ access_level_format` | `int` Whether to return `BasicLevels` in the Cloud Common Expression Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where [Access Levels](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel) are returned as `BasicLevels` or `CustomLevels` based on how they were created. If set to CEL, all \[Access Levels\] \[google.identity.accesscontextmanager.v1.AccessLevel\] are returned as `CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent `CustomLevels`. |

### getName

Required. Resource name for the [Access Level](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel).

Format:
`accessPolicies/{policy_id}/accessLevels/{access_level_id}`

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

### setName

Required. Resource name for the [Access Level](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel).

Format:
`accessPolicies/{policy_id}/accessLevels/{access_level_id}`

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

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

### getAccessLevelFormat

Whether to return `BasicLevels` in the Cloud Common Expression
Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where
[Access Levels](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel)
are returned as `BasicLevels` or `CustomLevels` based on how they were
created. If set to CEL, all [Access Levels](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel) are returned as
`CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent
`CustomLevels`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [LevelFormat](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.LevelFormat). |

### setAccessLevelFormat

Whether to return `BasicLevels` in the Cloud Common Expression
Language rather than as `BasicLevels`. Defaults to AS_DEFINED, where
[Access Levels](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel)
are returned as `BasicLevels` or `CustomLevels` based on how they were
created. If set to CEL, all [Access Levels](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel) are returned as
`CustomLevels`. In the CEL case, `BasicLevels` are translated to equivalent
`CustomLevels`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [LevelFormat](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.LevelFormat). |

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Resource name for the [Access Level](https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.AccessLevel). Format: `accessPolicies/{policy_id}/accessLevels/{access_level_id}` Please see AccessContextManagerClient::accessLevelName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/access-context-manager/latest/V1.GetAccessLevelRequest` |   |