Added in API level 31
Builder
class Builder
| kotlin.Any | |
| ↳ | android.app.appsearch.StorageInfo.Builder |
Builder for StorageInfo objects.
Summary
| Public constructors | |
|---|---|
Builder() |
|
| Public methods | |
|---|---|
| StorageInfo |
build()Builds a |
| StorageInfo.Builder |
setAliveDocumentsCount(aliveDocumentsCount: Int)Sets the number of alive documents. |
| StorageInfo.Builder |
setAliveNamespacesCount(aliveNamespacesCount: Int)Sets the number of alive namespaces. |
| StorageInfo.Builder |
setBlobsCount(blobsCount: Int)Sets the number of stored blobs. |
| StorageInfo.Builder |
setBlobsSizeBytes(blobsSizeBytes: Long)Sets the size of stored blobs in bytes. |
| StorageInfo.Builder |
setSizeBytes(sizeBytes: Long)Sets the size in bytes. |
Public constructors
Public methods
build
Added in API level 31
fun build(): StorageInfo
Builds a StorageInfo object.
| Return | |
|---|---|
StorageInfo |
This value cannot be null. |
setAliveDocumentsCount
Added in API level 31
fun setAliveDocumentsCount(aliveDocumentsCount: Int): StorageInfo.Builder
Sets the number of alive documents.
| Return | |
|---|---|
StorageInfo.Builder |
This value cannot be null. |
setAliveNamespacesCount
Added in API level 31
fun setAliveNamespacesCount(aliveNamespacesCount: Int): StorageInfo.Builder
Sets the number of alive namespaces.
| Return | |
|---|---|
StorageInfo.Builder |
This value cannot be null. |
setBlobsCount
fun setBlobsCount(blobsCount: Int): StorageInfo.Builder
Sets the number of stored blobs.
| Return | |
|---|---|
StorageInfo.Builder |
This value cannot be null. |
setBlobsSizeBytes
fun setBlobsSizeBytes(blobsSizeBytes: Long): StorageInfo.Builder
Sets the size of stored blobs in bytes.
| Return | |
|---|---|
StorageInfo.Builder |
This value cannot be null. |
setSizeBytes
Added in API level 31
fun setSizeBytes(sizeBytes: Long): StorageInfo.Builder
Sets the size in bytes.
| Return | |
|---|---|
StorageInfo.Builder |
This value cannot be null. |