# Google Cloud Storage Insights V1 Client - Class Identity (1.4.0)

1.4.0 (latest) 1.3.3 1.2.1 1.1.0 1.0.3 0.3.5 0.2.3 0.1.1 Reference documentation and code samples for the Google Cloud Storage Insights V1 Client class Identity.

Identity lets the user provide the type of identity to use, and outputs
the identity string that can be used for IAM policy changes.

Generated from protobuf message `google.cloud.storageinsights.v1.Identity`

## Namespace

Google \\ Cloud \\ StorageInsights \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. Name of the identity. |
| `↳ type` | `int` Type of identity to use for the datasetConfig. |

### getName

Output only. Name of the identity.

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

### setName

Output only. Name of the identity.

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

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

### getType

Type of identity to use for the datasetConfig.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [IdentityType](https://docs.cloud.google.com/php/docs/reference/cloud-storageinsights/latest/V1.Identity.IdentityType). |

### setType

Type of identity to use for the datasetConfig.

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

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