# Interface AuthEventDataOrBuilder (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.firebase.auth.v1.AuthEventDataOrBuilder)
- [0.15.0](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.firebase.auth.v1.AuthEventDataOrBuilder)
- [0.14.1](https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.firebase.auth.v1.AuthEventDataOrBuilder)

    public interface AuthEventDataOrBuilder extends MessageOrBuilder

## Implements

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

## Methods

### getCustomClaims()

    public abstract Struct getCustomClaims()

User's custom claims, typically used to define user roles and propagated
to an authenticated user's ID token.

`.google.protobuf.Struct custom_claims = 10;`

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

### getCustomClaimsOrBuilder()

    public abstract StructOrBuilder getCustomClaimsOrBuilder()

User's custom claims, typically used to define user roles and propagated
to an authenticated user's ID token.

`.google.protobuf.Struct custom_claims = 10;`

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

### getDisabled()

    public abstract boolean getDisabled()

Whether the user is disabled.

`bool disabled = 6;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The disabled. |

### getDisplayName()

    public abstract String getDisplayName()

The user's display name.

`string display_name = 4;`

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

### getDisplayNameBytes()

    public abstract ByteString getDisplayNameBytes()

The user's display name.

`string display_name = 4;`

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

### getEmail()

    public abstract String getEmail()

The user's primary email, if set.

`string email = 2;`

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

### getEmailBytes()

    public abstract ByteString getEmailBytes()

The user's primary email, if set.

`string email = 2;`

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

### getEmailVerified()

    public abstract boolean getEmailVerified()

Whether or not the user's primary email is verified.

`bool email_verified = 3;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` | The emailVerified. |

### getMetadata()

    public abstract UserMetadata getMetadata()

Additional metadata about the user.

`.google.events.firebase.auth.v1.UserMetadata metadata = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.auth.v1.UserMetadata` | The metadata. |

### getMetadataOrBuilder()

    public abstract UserMetadataOrBuilder getMetadataOrBuilder()

Additional metadata about the user.

`.google.events.firebase.auth.v1.UserMetadata metadata = 7;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.auth.v1.UserMetadataOrBuilder` |   |

### getPhoneNumber()

    public abstract String getPhoneNumber()

The user's phone number.

`string phone_number = 9;`

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

### getPhoneNumberBytes()

    public abstract ByteString getPhoneNumberBytes()

The user's phone number.

`string phone_number = 9;`

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

### getPhotoURL()

    public abstract String getPhotoURL()

The user's photo URL.

`string photo_URL = 5;`

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

### getPhotoURLBytes()

    public abstract ByteString getPhotoURLBytes()

The user's photo URL.

`string photo_URL = 5;`

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

### getProviderData(int index)

    public abstract UserInfo getProviderData(int index)

User's info at the providers

`repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.auth.v1.UserInfo` |   |

### getProviderDataCount()

    public abstract int getProviderDataCount()

User's info at the providers

`repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |   |

### getProviderDataList()

    public abstract List<UserInfo> getProviderDataList()

User's info at the providers

`repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.auth.v1.UserInfo>` |   |

### getProviderDataOrBuilder(int index)

    public abstract UserInfoOrBuilder getProviderDataOrBuilder(int index)

User's info at the providers

`repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `index` | `https://docs.oracle.com/javase/tutorial/java/nutsandbolts/datatypes.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/java/docs/reference/google-cloudevent-types/latest/com.google.events.firebase.auth.v1.UserInfoOrBuilder` |   |

### getProviderDataOrBuilderList()

    public abstract List<? extends UserInfoOrBuilder> getProviderDataOrBuilderList()

User's info at the providers

`repeated .google.events.firebase.auth.v1.UserInfo provider_data = 8;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.oracle.com/javase/8/docs/api/java/util/List.html<? extends com.google.events.firebase.auth.v1.UserInfoOrBuilder>` |   |

### getUid()

    public abstract String getUid()

The user identifier in the Firebase app.

`string uid = 1;`

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

### getUidBytes()

    public abstract ByteString getUidBytes()

The user identifier in the Firebase app.

`string uid = 1;`

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

### hasCustomClaims()

    public abstract boolean hasCustomClaims()

User's custom claims, typically used to define user roles and propagated
to an authenticated user's ID token.

`.google.protobuf.Struct custom_claims = 10;`

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

### hasMetadata()

    public abstract boolean hasMetadata()

Additional metadata about the user.

`.google.events.firebase.auth.v1.UserMetadata metadata = 7;`

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