# Print output for @column tags ?> AppSearchSchema.Builder - Android SDK | Android Developers

Most visited

Recently visited

AppSearchSchema.Builder

public static final class AppSearchSchema.Builder
extends Object

java.lang.Object
   ↳ android.app.appsearch.AppSearchSchema.Builder


Builder for objects.

Summary

Public constructors

Builder(String schemaType)

Creates a new AppSearchSchema.Builder.

Public methods

AppSearchSchema.Builder addProperty(AppSearchSchema.PropertyConfig propertyConfig)

Adds a property to the given type.

AppSearchSchema build()

Constructs a new AppSearchSchema from the contents of this builder.

Inherited methods

Public constructors

Builder

public Builder (String schemaType)

Creates a new AppSearchSchema.Builder.

Parameters
schemaType String: This value cannot be null.

Public methods

addProperty

public AppSearchSchema.Builder addProperty (AppSearchSchema.PropertyConfig propertyConfig)

Adds a property to the given type.

Parameters
propertyConfig AppSearchSchema.PropertyConfig: This value cannot be null.

Returns
AppSearchSchema.Builder This value cannot be null.

build

public AppSearchSchema build ()

Constructs a new AppSearchSchema from the contents of this builder.

Returns
AppSearchSchema This value cannot be null.