# Google Cloud Notebooks V2 Client - Class ServiceAccount (1.1.3)

1.1.3 (latest) 1.1.2 1.0.5 0.7.5 0.6.2 0.5.0 0.4.1 0.3.6 Reference documentation and code samples for the Google Cloud Notebooks V2 Client class ServiceAccount.

A service account that acts as an identity.

Generated from protobuf message `google.cloud.notebooks.v2.ServiceAccount`

## Namespace

Google \\ Cloud \\ Notebooks \\ V2

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ email` | `string` Optional. Email address of the service account. |
| `↳ scopes` | `string[]` Output only. The list of scopes to be made available for this service account. Set by the CLH to <https://www.googleapis.com/auth/cloud-platform> |

### getEmail

Optional. Email address of the service account.

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

### setEmail

Optional. Email address of the service account.

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

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

### getScopes

Output only. The list of scopes to be made available for this service
account. Set by the CLH to <https://www.googleapis.com/auth/cloud-platform>

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

### setScopes

Output only. The list of scopes to be made available for this service
account. Set by the CLH to <https://www.googleapis.com/auth/cloud-platform>

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

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