public final class

SetSchemaResponse.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.app.SetSchemaResponse.Builder

Overview

Builder for SetSchemaResponse objects.

Summary

Constructors
publicBuilder()

Methods
public SetSchemaResponse.BuilderaddDeletedType(java.lang.String deletedType)

Adds one deletedType to the list of deleted schema types.

public SetSchemaResponse.BuilderaddDeletedTypes(java.util.Collection<java.lang.String> deletedTypes)

Adds deletedTypes to the list of deleted schema types.

public SetSchemaResponse.BuilderaddIncompatibleType(java.lang.String incompatibleType)

Adds one incompatibleType to the list of incompatible schema types.

public SetSchemaResponse.BuilderaddIncompatibleTypes(java.util.Collection<java.lang.String> incompatibleTypes)

Adds incompatibleTypes to the list of incompatible schema types.

public SetSchemaResponse.BuilderaddMigratedType(java.lang.String migratedType)

Adds one migratedType to the list of migrated schema types.

public SetSchemaResponse.BuilderaddMigratedTypes(java.util.Collection<java.lang.String> migratedTypes)

Adds migratedTypes to the list of migrated schema types.

public SetSchemaResponse.BuilderaddMigrationFailure(SetSchemaResponse.MigrationFailure migrationFailure)

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

public SetSchemaResponse.BuilderaddMigrationFailures(java.util.Collection<SetSchemaResponse.MigrationFailure> migrationFailures)

Adds SetSchemaResponse.MigrationFailures to the list of migration failures.

public SetSchemaResponsebuild()

Builds a SetSchemaResponse object.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

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

Adds SetSchemaResponse.MigrationFailures to the list of migration failures.

public SetSchemaResponse.Builder addMigrationFailure(SetSchemaResponse.MigrationFailure migrationFailure)

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

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

Adds deletedTypes to the list of deleted schema types.

public SetSchemaResponse.Builder addDeletedType(java.lang.String deletedType)

Adds one deletedType to the list of deleted schema types.

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

Adds incompatibleTypes to the list of incompatible schema types.

public SetSchemaResponse.Builder addIncompatibleType(java.lang.String incompatibleType)

Adds one incompatibleType to the list of incompatible schema types.

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

Adds migratedTypes to the list of migrated schema types.

public SetSchemaResponse.Builder addMigratedType(java.lang.String migratedType)

Adds one migratedType to the list of migrated schema types.

public SetSchemaResponse build()

Builds a SetSchemaResponse object.