# StorageInfo.Builder

Artifact: [androidx.appsearch:appsearch](https://developer.android.com/jetpack/androidx/releases/appsearch) [View Source](https://cs.android.com/search?q=file:androidx/appsearch/app/StorageInfo.java+class:androidx.appsearch.app.StorageInfo.Builder) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

*** ** * ** ***


```
class StorageInfo.Builder
```

<br />

*** ** * ** ***

Builder for `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo` objects.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder#Builder()()` |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo` | `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder#build()()` Builds a `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo` object. |
| `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder` | `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder#setAliveDocumentsCount(int)(aliveDocumentsCount: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the number of alive documents. |
| `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder` | `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder#setAliveNamespacesCount(int)(aliveNamespacesCount: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the number of alive namespaces. |
| `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder` | `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder#setBlobsCount(int)(blobsCount: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Sets the number of stored blobs. |
| `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder` | `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder#setBlobsSizeBytes(long)(blobsSizeBytes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the size of stored blobs in bytes. |
| `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder` | `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo.Builder#setSizeBytes(long)(sizeBytes: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Sets the size in bytes. |

## Public constructors

### Builder

Added in 1.1.0

```
Builder()
```

## Public functions

### build

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
fun build(): StorageInfo
```

Builds a `https://developer.android.com/reference/kotlin/androidx/appsearch/app/StorageInfo` object.

### setAliveDocumentsCount

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
fun setAliveDocumentsCount(aliveDocumentsCount: Int): StorageInfo.Builder
```

Sets the number of alive documents.

### setAliveNamespacesCount

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
fun setAliveNamespacesCount(aliveNamespacesCount: Int): StorageInfo.Builder
```

Sets the number of alive namespaces.

### setBlobsCount

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
fun setBlobsCount(blobsCount: Int): StorageInfo.Builder
```

Sets the number of stored blobs.

### setBlobsSizeBytes

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
fun setBlobsSizeBytes(blobsSizeBytes: Long): StorageInfo.Builder
```

Sets the size of stored blobs in bytes.

### setSizeBytes

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/appsearch#1.1.0)

```
fun setSizeBytes(sizeBytes: Long): StorageInfo.Builder
```

Sets the size in bytes.