# Interface ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder (0.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [0.16.0 (latest)](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.audit.v1.ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder)

    public static interface ServiceAccountDelegationInfo.FirstPartyPrincipalOrBuilder extends MessageOrBuilder

## Implements

[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)

## Methods

### getPrincipalEmail()

    public abstract String getPrincipalEmail()

The email address of a Google account.

`string principal_email = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/lang/String.html` | The principalEmail. |

### getPrincipalEmailBytes()

    public abstract ByteString getPrincipalEmailBytes()

The email address of a Google account.

`string principal_email = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.ByteString.html` | The bytes for principalEmail. |

### getServiceMetadata()

    public abstract Struct getServiceMetadata()

Metadata about the service that uses the service account.

`.google.protobuf.Struct service_metadata = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.Struct.html` | The serviceMetadata. |

### getServiceMetadataOrBuilder()

    public abstract StructOrBuilder getServiceMetadataOrBuilder()

Metadata about the service that uses the service account.

`.google.protobuf.Struct service_metadata = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.StructOrBuilder.html` |   |

### hasServiceMetadata()

    public abstract boolean hasServiceMetadata()

Metadata about the service that uses the service account.

`.google.protobuf.Struct service_metadata = 2;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | Whether the serviceMetadata field is set. |