# 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)

*** ** * ** ***


```
public final class StorageInfo.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public methods |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appsearch/app/StorageInfo` | `https://developer.android.com/reference/androidx/appsearch/app/StorageInfo.Builder#build()()` Builds a `https://developer.android.com/reference/androidx/appsearch/app/StorageInfo` object. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appsearch/app/StorageInfo.Builder` | `https://developer.android.com/reference/androidx/appsearch/app/StorageInfo.Builder#setAliveDocumentsCount(int)(int aliveDocumentsCount)` Sets the number of alive documents. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appsearch/app/StorageInfo.Builder` | `https://developer.android.com/reference/androidx/appsearch/app/StorageInfo.Builder#setAliveNamespacesCount(int)(int aliveNamespacesCount)` Sets the number of alive namespaces. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appsearch/app/StorageInfo.Builder` | `https://developer.android.com/reference/androidx/appsearch/app/StorageInfo.Builder#setBlobsCount(int)(int blobsCount)` Sets the number of stored blobs. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appsearch/app/StorageInfo.Builder` | `https://developer.android.com/reference/androidx/appsearch/app/StorageInfo.Builder#setBlobsSizeBytes(long)(long blobsSizeBytes)` Sets the size of stored blobs in bytes. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/appsearch/app/StorageInfo.Builder` | `https://developer.android.com/reference/androidx/appsearch/app/StorageInfo.Builder#setSizeBytes(long)(long sizeBytes)` Sets the size in bytes. |

## Public constructors

### Builder

Added in 1.1.0

```
public Builder()
```

## Public methods

### build

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

```
public @NonNull StorageInfo build()
```

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

### setAliveDocumentsCount

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

```
public @NonNull StorageInfo.Builder setAliveDocumentsCount(int aliveDocumentsCount)
```

Sets the number of alive documents.

### setAliveNamespacesCount

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

```
public @NonNull StorageInfo.Builder setAliveNamespacesCount(int aliveNamespacesCount)
```

Sets the number of alive namespaces.

### setBlobsCount

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

```
public @NonNull StorageInfo.Builder setBlobsCount(int blobsCount)
```

Sets the number of stored blobs.

### setBlobsSizeBytes

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

```
public @NonNull StorageInfo.Builder setBlobsSizeBytes(long blobsSizeBytes)
```

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)

```
public @NonNull StorageInfo.Builder setSizeBytes(long sizeBytes)
```

Sets the size in bytes.