Added in API level 31

Builder

class Builder
kotlin.Any
   ↳ android.app.appsearch.SetSchemaResponse.Builder

Builder for SetSchemaResponse objects.

Summary

Public constructors

Create a Builder object}

Public methods
SetSchemaResponse.Builder
addDeletedType(deletedType: String)

Adds one deletedType to the list of deleted schema types.

SetSchemaResponse.Builder

Adds deletedTypes to the list of deleted schema types.

SetSchemaResponse.Builder
addIncompatibleType(incompatibleType: String)

Adds one incompatibleType to the list of incompatible schema types.

SetSchemaResponse.Builder

Adds incompatibleTypes to the list of incompatible schema types.

SetSchemaResponse.Builder
addMigratedType(migratedType: String)

Adds one migratedType to the list of migrated schema types.

SetSchemaResponse.Builder

Adds migratedTypes to the list of migrated schema types.

SetSchemaResponse.Builder

Adds a MigrationFailure to the list of migration failures.

SetSchemaResponse.Builder

Adds MigrationFailures to the list of migration failures.

SetSchemaResponse

Builds a SetSchemaResponse object.

Public constructors

Builder

Added in API level 31
Builder()

Create a Builder object}

Public methods

addDeletedType

Added in API level 31
fun addDeletedType(deletedType: String): SetSchemaResponse.Builder

Adds one deletedType to the list of deleted schema types.

Parameters
deletedType String: This value cannot be null.
Return
SetSchemaResponse.Builder This value cannot be null.

addDeletedTypes

Added in API level 31
fun addDeletedTypes(deletedTypes: MutableCollection<String!>): SetSchemaResponse.Builder

Adds deletedTypes to the list of deleted schema types.

Parameters
deletedTypes MutableCollection<String!>: This value cannot be null.
Return
SetSchemaResponse.Builder This value cannot be null.

addIncompatibleType

Added in API level 31
fun addIncompatibleType(incompatibleType: String): SetSchemaResponse.Builder

Adds one incompatibleType to the list of incompatible schema types.

Parameters
incompatibleType String: This value cannot be null.
Return
SetSchemaResponse.Builder This value cannot be null.

addIncompatibleTypes

Added in API level 31
fun addIncompatibleTypes(incompatibleTypes: MutableCollection<String!>): SetSchemaResponse.Builder

Adds incompatibleTypes to the list of incompatible schema types.

Parameters
incompatibleTypes MutableCollection<String!>: This value cannot be null.
Return
SetSchemaResponse.Builder This value cannot be null.

addMigratedType

Added in API level 31
fun addMigratedType(migratedType: String): SetSchemaResponse.Builder

Adds one migratedType to the list of migrated schema types.

Parameters
migratedType String: This value cannot be null.
Return
SetSchemaResponse.Builder This value cannot be null.

addMigratedTypes

Added in API level 31
fun addMigratedTypes(migratedTypes: MutableCollection<String!>): SetSchemaResponse.Builder

Adds migratedTypes to the list of migrated schema types.

Parameters
migratedTypes MutableCollection<String!>: This value cannot be null.
Return
SetSchemaResponse.Builder This value cannot be null.

addMigrationFailure

Added in API level 31
fun addMigrationFailure(migrationFailure: SetSchemaResponse.MigrationFailure): SetSchemaResponse.Builder

Adds a MigrationFailure to the list of migration failures.

Parameters
migrationFailure SetSchemaResponse.MigrationFailure: This value cannot be null.
Return
SetSchemaResponse.Builder This value cannot be null.

addMigrationFailures

Added in API level 31
fun addMigrationFailures(migrationFailures: MutableCollection<SetSchemaResponse.MigrationFailure!>): SetSchemaResponse.Builder

Adds MigrationFailures to the list of migration failures.

Parameters
migrationFailures MutableCollection<SetSchemaResponse.MigrationFailure!>: This value cannot be null.
Return
SetSchemaResponse.Builder This value cannot be null.

build

Added in API level 31
fun build(): SetSchemaResponse

Builds a SetSchemaResponse object.

Return
SetSchemaResponse This value cannot be null.