# AccountProfile

# AccountProfile

*** ** * ** ***

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

<br />

```
class AccountProfile
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                                               ### Public functions                                                                                |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Optional](https://guava.dev/releases/21.0/api/docs/com/google/common/base/Optional.html)`<`[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!` | [getLocale](https://developer.android.com/reference/kotlin/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://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!>!` | [getProfileId](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/AccountProfile#getProfileId())`()` Returns the profile id. |

|                                ### Public properties                                |
|-------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)`!` | [accountId](https://developer.android.com/reference/kotlin/com/google/android/engage/common/datamodel/AccountProfile#accountId()) |

## Public functions

### getLocale

```
fun getLocale(): Optional<String!>!
```

Returns the locale.  

### getProfileId

```
fun getProfileId(): Optional<String!>!
```

Returns the profile id.  

## Public properties

### accountId

```
val accountId: String!
```