# Print output for @column tags ?> GetSchemaResponse - Android SDK | Android Developers

Most visited

Recently visited

GetSchemaResponse

public final class GetSchemaResponse
extends Object

java.lang.Object
   ↳ android.app.appsearch.GetSchemaResponse


The response class of AppSearchSession#getSchema

Summary

Nested classes

class GetSchemaResponse.Builder

Builder for GetSchemaResponse objects. 

Public methods

Set<AppSearchSchema> getSchemas()

Return the schemas most recently successfully provided to AppSearchSession#setSchema.

int getVersion()

Returns the overall database schema version.

Inherited methods

Public methods

getSchemas

public Set<AppSearchSchema> getSchemas ()

Return the schemas most recently successfully provided to AppSearchSession#setSchema.

It is inefficient to call this method repeatedly.

Returns
Set<AppSearchSchema> This value cannot be null.

getVersion

public int getVersion ()

Returns the overall database schema version.

If the database is empty, 0 will be returned.

Returns
int Value is 0 or greater