# Account

Artifact: [androidx.appsearch:appsearch-builtin-types](https://developer.android.com/jetpack/androidx/releases/appsearch) [View Source](https://cs.android.com/search?q=file:androidx/appsearch/builtintypes/Account.java+class:androidx.appsearch.builtintypes.Account) Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

*** ** * ** ***


```
@Document(name = "builtin:Account")
@ExperimentalAppSearchApi
public class Account
```

<br />

*** ** * ** ***

Represents an account entity within the document property.

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/androidx/appsearch/annotation/Document.BuilderProducer public final class https://developer.android.com/reference/androidx/appsearch/builtintypes/Account.Builder` Builder for `https://developer.android.com/reference/androidx/appsearch/builtintypes/Account`. |

| ### Public methods |
|---|---|
| `boolean` | `https://developer.android.com/reference/androidx/appsearch/builtintypes/Account#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html o)` |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appsearch/builtintypes/Account#getAccountId()()` Returns the account identifier. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appsearch/builtintypes/Account#getAccountName()()` Returns the human-readable name of this account. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appsearch/builtintypes/Account#getAccountType()()` Returns the type of this account. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appsearch/builtintypes/Account#getId()()` Returns the appsearch document id for this item. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/appsearch/builtintypes/Account#getNamespace()()` Returns the namespace (or logical grouping) for this item. |
| `int` | `https://developer.android.com/reference/androidx/appsearch/builtintypes/Account#hashCode()()` |

## Public methods

### equals

```
public boolean equals(Object o)
```

### getAccountId

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
public @NonNull String getAccountId()
```

Returns the account identifier.

### getAccountName

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
public @NonNull String getAccountName()
```

Returns the human-readable name of this account.

### getAccountType

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
public @NonNull String getAccountType()
```

Returns the type of this account.

### getId

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
public @NonNull String getId()
```

Returns the appsearch document id for this item.

### getNamespace

Added in [1.2.0-alpha02](https://developer.android.com/jetpack/androidx/releases/appsearch#1.2.0-alpha02)

```
public @NonNull String getNamespace()
```

Returns the namespace (or logical grouping) for this item.

### hashCode

```
public int hashCode()
```