public final class

AppSearchSchema.DoublePropertyConfig.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.app.AppSearchSchema.DoublePropertyConfig.Builder

Overview

Builder for AppSearchSchema.DoublePropertyConfig.

Summary

Constructors
publicBuilder(java.lang.String propertyName)

Creates a new AppSearchSchema.DoublePropertyConfig.Builder.

Methods
public AppSearchSchema.DoublePropertyConfigbuild()

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

public AppSearchSchema.DoublePropertyConfig.BuildersetCardinality(int cardinality)

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

public AppSearchSchema.DoublePropertyConfig.BuildersetDescription(java.lang.String description)

Sets a natural language description of this property.

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.DoublePropertyConfig.Builder.

Methods

public AppSearchSchema.DoublePropertyConfig.Builder setDescription(java.lang.String description)

Sets a natural language description of this property.

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

public AppSearchSchema.DoublePropertyConfig.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.

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