# Print output for @column tags ?> AppSearchSchema.BytesPropertyConfig.Builder - Android SDK | Android Developers

Most visited


Recently visited


AppSearchSchema.BytesPropertyConfig.Builder

public static final class AppSearchSchema.BytesPropertyConfig.Builder
extends Object

java.lang.Object
   ↳ android.app.appsearch.AppSearchSchema.BytesPropertyConfig.Builder


Builder for BytesPropertyConfig.

Summary


Public constructors

Builder(String propertyName)

Creates a new BytesPropertyConfig.Builder.

Public methods

AppSearchSchema.BytesPropertyConfig build()

Constructs a new BytesPropertyConfig from the contents of this builder.

AppSearchSchema.BytesPropertyConfig.Builder setCardinality(int cardinality)

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

Inherited methods

Public constructors


Builder

public Builder (String propertyName)

Creates a new BytesPropertyConfig.Builder.

Parameters
propertyName String: This value cannot be null.

Public methods


build

public AppSearchSchema.BytesPropertyConfig build ()

Constructs a new BytesPropertyConfig from the contents of this builder.

Returns
AppSearchSchema.BytesPropertyConfig This value cannot be null.

setCardinality

public AppSearchSchema.BytesPropertyConfig.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.BytesPropertyConfig.Builder This value cannot be null.

Browse this site in English?

You requested a page in English, but your language preference for this site is English.

Would you like to change your language preference and browse this site in English? If you want to change your language preference later, use the language menu at the bottom of each page.