# AccountProfile

# AccountProfile

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/AccountProfile "View this page in Kotlin")\|Java  

<br />

```
public final class AccountProfile
```

<br />

*** ** * ** ***

An object to represent a user's account and profile within the account.

## Summary

|                                                                                                                                        ### Nested types                                                                                                                                        |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `public final class `[AccountProfile.Builder](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AccountProfile.Builder) Builder class for[AccountProfile](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AccountProfile). |

|                                ### Public fields                                |
|---------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------|
| `final `[String](https://developer.android.com/reference/java/lang/String.html) | [accountId](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AccountProfile#accountId()) |

|                                                                           ### Public methods                                                                           |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [String](https://developer.android.com/reference/java/lang/String.html)                                                                                                | [getAccountId](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AccountProfile#getAccountId())`()` Returns the account id. |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>` | [getLocale](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AccountProfile#getLocale())`()` Returns the locale.           |
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://developer.android.com/reference/java/lang/String.html)`>` | [getProfileId](https://developer.android.com/reference/com/google/android/engage/common/datamodel/AccountProfile#getProfileId())`()` Returns the profile id. |

## Public fields

### accountId

```
public final String accountId
```  

## Public methods

### getAccountId

```
public String getAccountId()
```

Returns the account id.  

### getLocale

```
public Optional<String> getLocale()
```

Returns the locale.  

### getProfileId

```
public Optional<String> getProfileId()
```

Returns the profile id.