# Common Protos for Google Cloud APIs Client - Class FirstPartyPrincipal (1.0.0)

1.0.0 (latest) 0.8.3 0.7.0 0.6.0 0.5.2 0.4.2 0.3.8 Reference documentation and code samples for the Common Protos for Google Cloud APIs Client class FirstPartyPrincipal.

First party identity principal.

Generated from protobuf message `google.cloud.audit.ServiceAccountDelegationInfo.FirstPartyPrincipal`

## Namespace

Google \\ Cloud \\ Audit \\ ServiceAccountDelegationInfo

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ principal_email` | `string` The email address of a Google account. |
| `↳ service_metadata` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` Metadata about the service that uses the service account. |

### getPrincipalEmail

The email address of a Google account.

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

### setPrincipalEmail

The email address of a Google account.

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

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

### getServiceMetadata

Metadata about the service that uses the service account.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct|null` |   |

### hasServiceMetadata

### clearServiceMetadata

### setServiceMetadata

Metadata about the service that uses the service account.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Struct` |

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