Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [T Extensions 17](https://developer.android.com/sdkExtensions)

# Builder

*** ** * ** ***

Kotlin \|[Java](https://developer.android.com/reference/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder "View this page in Java")

```
class Builder
```

|---|---|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html) ||
| ↳ | [android.app.appsearch.AppSearchSchema.BlobHandlePropertyConfig.Builder](https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder#) |

Builder for `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig`.

## Summary

| Public constructors ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder#Builder(kotlin.String)(propertyName: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Creates a new `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder#`. |

| Public methods ||
|---|---|
| [AppSearchSchema.BlobHandlePropertyConfig](https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig) | `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder#build()()` Constructs a new `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig` from the contents of this builder. |
| [AppSearchSchema.BlobHandlePropertyConfig.Builder](https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder#) | `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder#setCardinality(kotlin.Int)(cardinality: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)` Sets the cardinality of the property (whether it is optional, required or repeated). |
| [AppSearchSchema.BlobHandlePropertyConfig.Builder](https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder#) | `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder#setDescription(kotlin.String)(description: https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)` Sets a natural language description of this property. |

## Public constructors

### Builder

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [T Extensions 17](https://developer.android.com/sdkExtensions)

```
Builder(propertyName: String)
```

Creates a new `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder#`.

| Parameters ||
|---|---|
| `propertyName` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |

## Public methods

### build

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [T Extensions 17](https://developer.android.com/sdkExtensions)

```
fun build(): AppSearchSchema.BlobHandlePropertyConfig
```

Constructs a new `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig` from the contents of this builder.

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig` | This value cannot be `null`. |

### setCardinality

Added in [API level 36](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [T Extensions 17](https://developer.android.com/sdkExtensions)

```
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 `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.PropertyConfig#CARDINALITY_OPTIONAL:kotlin.Int`.

| Parameters ||
|---|---|
| `cardinality` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html): Value is one of the following: - `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.PropertyConfig#CARDINALITY_REPEATED:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.PropertyConfig#CARDINALITY_OPTIONAL:kotlin.Int` - `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.PropertyConfig#CARDINALITY_REQUIRED:kotlin.Int` |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder#` | This value cannot be `null`. |

### setDescription

Added in [API level 36.1](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  
Also in [T Extensions 18](https://developer.android.com/sdkExtensions)

```
fun setDescription(description: String): AppSearchSchema.BlobHandlePropertyConfig.Builder
```

Sets a natural language description of this property.

For more details about the description field, see `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.PropertyConfig#getDescription()`.

| Parameters ||
|---|---|
| `description` | [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html): This value cannot be `null`. |

| Return ||
|---|---|
| `https://developer.android.com/reference/kotlin/android/app/appsearch/AppSearchSchema.BlobHandlePropertyConfig.Builder#` | This value cannot be `null`. |