AppSearchSchema.LongPropertyConfig.Builder

public static final class AppSearchSchema.LongPropertyConfig.Builder
extends Object

java.lang.Object
   ↳ androidx.appsearch.app.AppSearchSchema.LongPropertyConfig.Builder


Builder for AppSearchSchema.LongPropertyConfig.

Summary

Public constructors

Builder(String propertyName)

Creates a new AppSearchSchema.LongPropertyConfig.Builder.

Public methods

AppSearchSchema.LongPropertyConfig build()

Constructs a new AppSearchSchema.LongPropertyConfig from the contents of this builder.

AppSearchSchema.LongPropertyConfig.Builder setCardinality(int cardinality)

The cardinality of the property (whether it is optional, required or repeated).

Inherited methods

Public constructors

Builder

public Builder (String propertyName)

Creates a new AppSearchSchema.LongPropertyConfig.Builder.

Parameters
propertyName String

Public methods

build

public AppSearchSchema.LongPropertyConfig build ()

Constructs a new AppSearchSchema.LongPropertyConfig from the contents of this builder.

Returns
AppSearchSchema.LongPropertyConfig

setCardinality

public AppSearchSchema.LongPropertyConfig.Builder setCardinality (int cardinality)

The cardinality of the property (whether it is optional, required or repeated).

If this method is not called, the default cardinality is AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL.

Parameters
cardinality int

Returns
AppSearchSchema.LongPropertyConfig.Builder