public final class

AppSearchSchema.BooleanPropertyConfig.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.app.AppSearchSchema.BooleanPropertyConfig.Builder

Overview

Builder for AppSearchSchema.BooleanPropertyConfig.

Summary

Constructors
publicBuilder(java.lang.String propertyName)

Creates a new AppSearchSchema.BooleanPropertyConfig.Builder.

Methods
public AppSearchSchema.BooleanPropertyConfigbuild()

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

public AppSearchSchema.BooleanPropertyConfig.BuildersetCardinality(int cardinality)

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

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder(java.lang.String propertyName)

Creates a new AppSearchSchema.BooleanPropertyConfig.Builder.

Methods

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.

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