public final class

AppSearchSchema.EmbeddingPropertyConfig.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.app.AppSearchSchema.EmbeddingPropertyConfig.Builder

Overview

Builder for AppSearchSchema.EmbeddingPropertyConfig.

Summary

Constructors
publicBuilder(java.lang.String propertyName)

Creates a new AppSearchSchema.EmbeddingPropertyConfig.Builder.

Methods
public AppSearchSchema.EmbeddingPropertyConfigbuild()

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

public AppSearchSchema.EmbeddingPropertyConfig.BuildersetCardinality(int cardinality)

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

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

Sets a natural language description of this property.

public AppSearchSchema.EmbeddingPropertyConfig.BuildersetIndexingType(int indexingType)

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

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

Methods

public AppSearchSchema.EmbeddingPropertyConfig.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.EmbeddingPropertyConfig.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.EmbeddingPropertyConfig.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.EmbeddingPropertyConfig.INDEXING_TYPE_NONE, so that it will not be indexed and cannot be matched by queries.

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