# Print output for @column tags ?>
public
static
final
class
AppSearchSchema.BooleanPropertyConfig.Builder
extends Object
| java.lang.Object | |
| ↳ | android.app.appsearch.AppSearchSchema.BooleanPropertyConfig.Builder |
Builder for BooleanPropertyConfig.
Public constructors | |
|---|---|
Builder(String propertyName)
Creates a new |
|
Public methods | |
|---|---|
AppSearchSchema.BooleanPropertyConfig
|
build()
Constructs a new |
AppSearchSchema.BooleanPropertyConfig.Builder
|
setCardinality(int cardinality)
The cardinality of the property (whether it is optional, required or repeated). |
Inherited methods | |
|---|---|
public Builder (String propertyName)
Creates a new BooleanPropertyConfig.Builder.
| Parameters | |
|---|---|
propertyName |
String: This value cannot be null. |
public AppSearchSchema.BooleanPropertyConfig build ()
Constructs a new BooleanPropertyConfig from the contents of this builder.
| Returns | |
|---|---|
AppSearchSchema.BooleanPropertyConfig |
This value cannot be null. |
public AppSearchSchema.BooleanPropertyConfig.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: Value is AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED, AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL, or AppSearchSchema.PropertyConfig.CARDINALITY_REQUIRED |
| Returns | |
|---|---|
AppSearchSchema.BooleanPropertyConfig.Builder |
This value cannot be null. |