AppSearchSchema.BlobHandlePropertyConfig.Builder
public
static
final
class
AppSearchSchema.BlobHandlePropertyConfig.Builder
extends Object
| java.lang.Object | |
| ↳ | android.app.appsearch.AppSearchSchema.BlobHandlePropertyConfig.Builder |
Builder for BlobHandlePropertyConfig.
Summary
Public constructors | |
|---|---|
Builder(String propertyName)
Creates a new |
|
Public methods | |
|---|---|
AppSearchSchema.BlobHandlePropertyConfig
|
build()
Constructs a new |
AppSearchSchema.BlobHandlePropertyConfig.Builder
|
setCardinality(int cardinality)
Sets the cardinality of the property (whether it is optional, required or repeated). |
AppSearchSchema.BlobHandlePropertyConfig.Builder
|
setDescription(String description)
Sets a natural language description of this property. |
Inherited methods | |
|---|---|
Public constructors
Builder
public Builder (String propertyName)
Creates a new BlobHandlePropertyConfig.Builder.
| Parameters | |
|---|---|
propertyName |
String: This value cannot be null. |
Public methods
build
public AppSearchSchema.BlobHandlePropertyConfig build ()
Constructs a new BlobHandlePropertyConfig from the contents of this builder.
| Returns | |
|---|---|
AppSearchSchema.BlobHandlePropertyConfig |
This value cannot be null. |
setCardinality
public AppSearchSchema.BlobHandlePropertyConfig.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.
| Parameters | |
|---|---|
cardinality |
int: Value is AppSearchSchema.PropertyConfig.CARDINALITY_REPEATED, AppSearchSchema.PropertyConfig.CARDINALITY_OPTIONAL, or AppSearchSchema.PropertyConfig.CARDINALITY_REQUIRED |
| Returns | |
|---|---|
AppSearchSchema.BlobHandlePropertyConfig.Builder |
This value cannot be null. |
setDescription
public AppSearchSchema.BlobHandlePropertyConfig.Builder setDescription (String description)
Sets a natural language description of this property.
For more details about the description field, see AppSearchSchema.PropertyConfig.getDescription().
| Parameters | |
|---|---|
description |
String: This value cannot be null. |
| Returns | |
|---|---|
AppSearchSchema.BlobHandlePropertyConfig.Builder |
This value cannot be null. |