GetSchemaResponse.Builder

public static final class GetSchemaResponse.Builder
extends Object

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


Builder for GetSchemaResponse objects.

Summary

Public constructors

Builder()

Public methods

GetSchemaResponse.Builder addSchema(AppSearchSchema schema)

Adds one AppSearchSchema to the schema list.

GetSchemaResponse build()

Builds a GetSchemaResponse object.

GetSchemaResponse.Builder setVersion(int version)

Sets the database overall schema version.

Inherited methods

Public constructors

Builder

public Builder ()

Public methods

addSchema

public GetSchemaResponse.Builder addSchema (AppSearchSchema schema)

Adds one AppSearchSchema to the schema list.

Parameters
schema AppSearchSchema

Returns
GetSchemaResponse.Builder

build

public GetSchemaResponse build ()

Builds a GetSchemaResponse object.

Returns
GetSchemaResponse

setVersion

public GetSchemaResponse.Builder setVersion (int version)

Sets the database overall schema version.

Default version is 0

Parameters
version int

Returns
GetSchemaResponse.Builder