AppSearchSchema.LongPropertyConfig.Builder

public static final class AppSearchSchema.LongPropertyConfig.Builder extends Object

Public Constructor Summary

Public Method Summary

AppSearchSchema.LongPropertyConfig
build()
Constructs a new AppSearchSchema.LongPropertyConfig from the contents of this builder.
AppSearchSchema.LongPropertyConfig.Builder
setCardinality(int cardinality)
Sets the cardinality of the property (whether it is optional, required or repeated).
AppSearchSchema.LongPropertyConfig.Builder
setDescription(String description)
Sets a natural language description of this property.
AppSearchSchema.LongPropertyConfig.Builder
setIndexingType(int indexingType)
Configures how a property should be indexed so that it can be retrieved by queries.

Inherited Method Summary

Public Constructors

public Builder (String propertyName)

Public Methods

public AppSearchSchema.LongPropertyConfig build ()

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

public AppSearchSchema.LongPropertyConfig.Builder setCardinality (int cardinality)

Sets 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.

public AppSearchSchema.LongPropertyConfig.Builder setDescription (String description)

Sets a natural language description of this property.

For more details about the description field, see AppSearchSchema.PropertyConfig.getDescription().

public AppSearchSchema.LongPropertyConfig.Builder setIndexingType (int indexingType)

Configures how a property should be indexed so that it can be retrieved by queries.

If this method is not called, the default indexing type is AppSearchSchema.LongPropertyConfig.INDEXING_TYPE_NONE, so that it will not be indexed and cannot be matched by queries.