1.3.0 (latest) 1.2.3 1.1.4 1.0.5 0.4.5 0.3.2 0.2.2 0.1.6 Reference documentation and code samples for the Google Cloud BeyondCorp AppConnectors V1 Client class PrincipalInfo.

PrincipalInfo represents an Identity oneof.

Generated from protobuf message `google.cloud.beyondcorp.appconnectors.v1.AppConnector.PrincipalInfo`

## Namespace

Google \\ Cloud \\ BeyondCorp \\ AppConnectors \\ V1 \\ AppConnector

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service_account` | `https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.AppConnector.PrincipalInfo.ServiceAccount` A GCP service account. |

### getServiceAccount

A GCP service account.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.AppConnector.PrincipalInfo.ServiceAccount|null` |   |

### hasServiceAccount

### setServiceAccount

A GCP service account.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-beyondcorp-appconnectors/latest/V1.AppConnector.PrincipalInfo.ServiceAccount` |

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

### getType

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