AppSearchSchema.Builder

public static final class AppSearchSchema.Builder
extends Object

java.lang.Object
   ↳ androidx.appsearch.app.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

Public methods

addProperty

public AppSearchSchema.Builder addProperty (AppSearchSchema.PropertyConfig propertyConfig)

Adds a property to the given type.

Parameters
propertyConfig AppSearchSchema.PropertyConfig

Returns
AppSearchSchema.Builder

build

public AppSearchSchema build ()

Constructs a new AppSearchSchema from the contents of this builder.

After calling this method, the builder must no longer be used.

Returns
AppSearchSchema