SetSchemaResponse.Builder
public
static
final
class
SetSchemaResponse.Builder
extends Object
| java.lang.Object | |
| ↳ | android.app.appsearch.SetSchemaResponse.Builder |
Builder for SetSchemaResponse objects.
Summary
Public constructors | |
|---|---|
Builder()
Create a |
|
Public methods | |
|---|---|
SetSchemaResponse.Builder
|
addDeletedType(String deletedType)
Adds one |
SetSchemaResponse.Builder
|
addDeletedTypes(Collection<String> deletedTypes)
Adds |
SetSchemaResponse.Builder
|
addIncompatibleType(String incompatibleType)
Adds one |
SetSchemaResponse.Builder
|
addIncompatibleTypes(Collection<String> incompatibleTypes)
Adds |
SetSchemaResponse.Builder
|
addMigratedType(String migratedType)
Adds one |
SetSchemaResponse.Builder
|
addMigratedTypes(Collection<String> migratedTypes)
Adds |
SetSchemaResponse.Builder
|
addMigrationFailure(SetSchemaResponse.MigrationFailure migrationFailure)
Adds a |
SetSchemaResponse.Builder
|
addMigrationFailures(Collection<SetSchemaResponse.MigrationFailure> migrationFailures)
Adds |
SetSchemaResponse
|
build()
Builds a |
Inherited methods | |
|---|---|
Public constructors
Public methods
addDeletedType
public SetSchemaResponse.Builder addDeletedType (String deletedType)
Adds one deletedType to the list of deleted schema types.
| Parameters | |
|---|---|
deletedType |
String: This value cannot be null. |
| Returns | |
|---|---|
SetSchemaResponse.Builder |
This value cannot be null. |
addDeletedTypes
public SetSchemaResponse.Builder addDeletedTypes (Collection<String> deletedTypes)
Adds deletedTypes to the list of deleted schema types.
| Parameters | |
|---|---|
deletedTypes |
Collection: This value cannot be null. |
| Returns | |
|---|---|
SetSchemaResponse.Builder |
This value cannot be null. |
addIncompatibleType
public SetSchemaResponse.Builder addIncompatibleType (String incompatibleType)
Adds one incompatibleType to the list of incompatible schema types.
| Parameters | |
|---|---|
incompatibleType |
String: This value cannot be null. |
| Returns | |
|---|---|
SetSchemaResponse.Builder |
This value cannot be null. |
addIncompatibleTypes
public SetSchemaResponse.Builder addIncompatibleTypes (Collection<String> incompatibleTypes)
Adds incompatibleTypes to the list of incompatible schema types.
| Parameters | |
|---|---|
incompatibleTypes |
Collection: This value cannot be null. |
| Returns | |
|---|---|
SetSchemaResponse.Builder |
This value cannot be null. |
addMigratedType
public SetSchemaResponse.Builder addMigratedType (String migratedType)
Adds one migratedType to the list of migrated schema types.
| Parameters | |
|---|---|
migratedType |
String: This value cannot be null. |
| Returns | |
|---|---|
SetSchemaResponse.Builder |
This value cannot be null. |
addMigratedTypes
public SetSchemaResponse.Builder addMigratedTypes (Collection<String> migratedTypes)
Adds migratedTypes to the list of migrated schema types.
| Parameters | |
|---|---|
migratedTypes |
Collection: This value cannot be null. |
| Returns | |
|---|---|
SetSchemaResponse.Builder |
This value cannot be null. |
addMigrationFailure
public SetSchemaResponse.Builder addMigrationFailure (SetSchemaResponse.MigrationFailure migrationFailure)
Adds a MigrationFailure to the list of migration failures.
| Parameters | |
|---|---|
migrationFailure |
SetSchemaResponse.MigrationFailure: This value cannot be null. |
| Returns | |
|---|---|
SetSchemaResponse.Builder |
This value cannot be null. |
addMigrationFailures
public SetSchemaResponse.Builder addMigrationFailures (Collection<SetSchemaResponse.MigrationFailure> migrationFailures)
Adds MigrationFailures to the list of migration failures.
| Parameters | |
|---|---|
migrationFailures |
Collection: This value cannot be null. |
| Returns | |
|---|---|
SetSchemaResponse.Builder |
This value cannot be null. |
build
public SetSchemaResponse build ()
Builds a SetSchemaResponse object.
| Returns | |
|---|---|
SetSchemaResponse |
This value cannot be null. |