SetSchemaResponse.Builder

public static final class SetSchemaResponse.Builder
extends Object

java.lang.Object
   ↳ androidx.appsearch.app.SetSchemaResponse.Builder


Builder for SetSchemaResponse objects.

Summary

Public constructors

Builder()

Public methods

SetSchemaResponse.Builder addDeletedType(String deletedType)

Adds one deletedType to the list of deleted schema types.

SetSchemaResponse.Builder addDeletedTypes(Collection<String> deletedTypes)

Adds deletedTypes to the list of deleted schema types.

SetSchemaResponse.Builder addIncompatibleType(String incompatibleType)

Adds one incompatibleType to the list of incompatible schema types.

SetSchemaResponse.Builder addIncompatibleTypes(Collection<String> incompatibleTypes)

Adds incompatibleTypes to the list of incompatible schema types.

SetSchemaResponse.Builder addMigratedType(String migratedType)

Adds one migratedType to the list of migrated schema types.

SetSchemaResponse.Builder addMigratedTypes(Collection<String> migratedTypes)

Adds migratedTypes to the list of migrated schema types.

SetSchemaResponse.Builder addMigrationFailure(SetSchemaResponse.MigrationFailure migrationFailure)

Adds a SetSchemaResponse.MigrationFailure to the list of migration failures.

SetSchemaResponse.Builder addMigrationFailures(Collection<SetSchemaResponse.MigrationFailure> migrationFailures)

Adds SetSchemaResponse.MigrationFailures to the list of migration failures.

SetSchemaResponse build()

Builds a SetSchemaResponse object.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

addDeletedType

public SetSchemaResponse.Builder addDeletedType (String deletedType)

Adds one deletedType to the list of deleted schema types.

Parameters
deletedType String

Returns
SetSchemaResponse.Builder

addDeletedTypes

public SetSchemaResponse.Builder addDeletedTypes (Collection<String> deletedTypes)

Adds deletedTypes to the list of deleted schema types.

Parameters
deletedTypes Collection

Returns
SetSchemaResponse.Builder

addIncompatibleType

public SetSchemaResponse.Builder addIncompatibleType (String incompatibleType)

Adds one incompatibleType to the list of incompatible schema types.

Parameters
incompatibleType String

Returns
SetSchemaResponse.Builder

addIncompatibleTypes

public SetSchemaResponse.Builder addIncompatibleTypes (Collection<String> incompatibleTypes)

Adds incompatibleTypes to the list of incompatible schema types.

Parameters
incompatibleTypes Collection

Returns
SetSchemaResponse.Builder

addMigratedType

public SetSchemaResponse.Builder addMigratedType (String migratedType)

Adds one migratedType to the list of migrated schema types.

Parameters
migratedType String

Returns
SetSchemaResponse.Builder

addMigratedTypes

public SetSchemaResponse.Builder addMigratedTypes (Collection<String> migratedTypes)

Adds migratedTypes to the list of migrated schema types.

Parameters
migratedTypes Collection

Returns
SetSchemaResponse.Builder

addMigrationFailure

public SetSchemaResponse.Builder addMigrationFailure (SetSchemaResponse.MigrationFailure migrationFailure)

Adds a SetSchemaResponse.MigrationFailure to the list of migration failures.

Parameters
migrationFailure SetSchemaResponse.MigrationFailure

Returns
SetSchemaResponse.Builder

addMigrationFailures

public SetSchemaResponse.Builder addMigrationFailures (Collection<SetSchemaResponse.MigrationFailure> migrationFailures)

Adds SetSchemaResponse.MigrationFailures to the list of migration failures.

Parameters
migrationFailures Collection

Returns
SetSchemaResponse.Builder

build

public SetSchemaResponse build ()

Builds a SetSchemaResponse object.

Returns
SetSchemaResponse