AppSearchSchema.BlobHandlePropertyConfig.Builder


class AppSearchSchema.BlobHandlePropertyConfig.Builder


Builder for BlobHandlePropertyConfig.

Summary

Public constructors

Builder(propertyName: String)

Creates a new BlobHandlePropertyConfig.Builder.

Public functions

AppSearchSchema.BlobHandlePropertyConfig

Constructs a new BlobHandlePropertyConfig from the contents of this builder.

AppSearchSchema.BlobHandlePropertyConfig.Builder
setCardinality(cardinality: Int)

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

AppSearchSchema.BlobHandlePropertyConfig.Builder
@RequiresFeature(enforcement = "androidx.appsearch.app.Features#isFeatureSupported", name = Features.SCHEMA_SET_DESCRIPTION)
setDescription(description: String)

Sets a natural language description of this property.

Public constructors

Builder

Added in 1.1.0-alpha07
Builder(propertyName: String)

Creates a new BlobHandlePropertyConfig.Builder.

Public functions

build

Added in 1.1.0-alpha07
fun build(): AppSearchSchema.BlobHandlePropertyConfig

Constructs a new BlobHandlePropertyConfig from the contents of this builder.

setCardinality

Added in 1.1.0-alpha07
fun setCardinality(cardinality: Int): AppSearchSchema.BlobHandlePropertyConfig.Builder

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

If this method is not called, the default cardinality is CARDINALITY_OPTIONAL.

setDescription

Added in 1.1.0-alpha07
@RequiresFeature(enforcement = "androidx.appsearch.app.Features#isFeatureSupported", name = Features.SCHEMA_SET_DESCRIPTION)
fun setDescription(description: String): AppSearchSchema.BlobHandlePropertyConfig.Builder

Sets a natural language description of this property.

For more details about the description field, see getDescription.