AppSearchAccount.Builder
public
static
final
class
AppSearchAccount.Builder
extends Builder<AppSearchAccount.Builder>
| java.lang.Object | ||
| ↳ | android.app.appsearch.GenericDocument.Builder<android.app.appsearch.AppSearchAccount.Builder> | |
| ↳ | android.app.appsearch.AppSearchAccount.Builder | |
The builder class for AppSearchAccount.
Summary
Public constructors | |
|---|---|
Builder(String namespace, String id)
Creates a new |
|
Public methods | |
|---|---|
AppSearchAccount
|
build()
Builds the |
AppSearchAccount.Builder
|
setAccountId(String accountId)
Sets the account id of |
AppSearchAccount.Builder
|
setAccountName(String accountName)
Sets the name of |
AppSearchAccount.Builder
|
setAccountType(String accountType)
Sets the type of |
Inherited methods | |
|---|---|
Public constructors
Builder
public Builder (String namespace, String id)
Creates a new AppSearchAccount.Builder
| Parameters | |
|---|---|
namespace |
String: The namespace of the account.
This value cannot be null. |
id |
String: The document ID of the account.
This value cannot be null. |
Public methods
build
public AppSearchAccount build ()
Builds the AppSearchAccount object.
| Returns | |
|---|---|
AppSearchAccount |
This value cannot be null. |
setAccountId
public AppSearchAccount.Builder setAccountId (String accountId)
Sets the account id of AppSearchAccount.
| Parameters | |
|---|---|
accountId |
String: A non-null, permanent identifier for the account. |
| Returns | |
|---|---|
AppSearchAccount.Builder |
This value cannot be null. |
setAccountName
public AppSearchAccount.Builder setAccountName (String accountName)
Sets the name of AppSearchAccount.
| Parameters | |
|---|---|
accountName |
String: The non-null name for the specific user account. |
| Returns | |
|---|---|
AppSearchAccount.Builder |
This value cannot be null. |
setAccountType
public AppSearchAccount.Builder setAccountType (String accountType)
Sets the type of AppSearchAccount.
| Parameters | |
|---|---|
accountType |
String: The non-null, unique identifier for the account service. This must
correspond to a registered Authenticator type on the system. |
| Returns | |
|---|---|
AppSearchAccount.Builder |
This value cannot be null. |