# Google Cloud Vmware Engine V1 Client - Class Principal (1.3.0)

1.3.0 (latest) 1.2.2 1.1.4 1.0.0 0.5.6 0.4.0 0.3.3 0.2.1 0.1.4 Reference documentation and code samples for the Google Cloud Vmware Engine V1 Client class Principal.

Users/Service accounts which have access for DNS binding on the intranet
VPC corresponding to the consumer project.

Generated from protobuf message `google.cloud.vmwareengine.v1.Principal`

## Namespace

Google \\ Cloud \\ VmwareEngine \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ user` | `string` The user who needs to be granted permission. |
| `↳ service_account` | `string` The service account which needs to be granted the permission. |

### getUser

The user who needs to be granted permission.

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

### hasUser

### setUser

The user who needs to be granted permission.

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

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

### getServiceAccount

The service account which needs to be granted the permission.

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

### hasServiceAccount

### setServiceAccount

The service account which needs to be granted the permission.

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

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

### getPrincipal

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