public final class

StorageInfo.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.app.StorageInfo.Builder

Overview

Builder for StorageInfo objects.

Summary

Constructors
publicBuilder()

Methods
public StorageInfobuild()

Builds a StorageInfo object.

public StorageInfo.BuildersetAliveDocumentsCount(int aliveDocumentsCount)

Sets the number of alive documents.

public StorageInfo.BuildersetAliveNamespacesCount(int aliveNamespacesCount)

Sets the number of alive namespaces.

public StorageInfo.BuildersetSizeBytes(long sizeBytes)

Sets the size in bytes.

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructors

public Builder()

Methods

public StorageInfo.Builder setSizeBytes(long sizeBytes)

Sets the size in bytes.

public StorageInfo.Builder setAliveDocumentsCount(int aliveDocumentsCount)

Sets the number of alive documents.

public StorageInfo.Builder setAliveNamespacesCount(int aliveNamespacesCount)

Sets the number of alive namespaces.

public StorageInfo build()

Builds a StorageInfo object.