0.9.0 (latest) 0.8.0 0.7.2 0.5.0 0.4.0 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle Client class Role.

System role for resource access and modification.

Generated from protobuf message `google.backstory.Role`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` System role name for user. |
| `↳ description` | `string` System role description for user. |
| `↳ type` | `int` System role type for well known roles. |

### getName

System role name for user.

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

### setName

System role name for user.

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

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

### getDescription

System role description for user.

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

### setDescription

System role description for user.

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

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

### getType

System role type for well known roles.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Role.Type.md.txt). |

### setType

System role type for well known roles.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [Type](https://docs.cloud.google.com/php/docs/reference/cloud-chronicle/latest/Backstory.Role.Type.md.txt). |

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