public class

RemoveStats.Builder

extends java.lang.Object

 java.lang.Object

↳androidx.appsearch.localstorage.stats.RemoveStats.Builder

Overview

Builder for RemoveStats.

Summary

Constructors
publicBuilder(java.lang.String packageName, java.lang.String database)

Constructor for the RemoveStats.Builder.

Methods
public RemoveStatsbuild()

Creates a RemoveStats.

public RemoveStats.BuildersetDeletedDocumentCount(int nativeNumDocumentsDeleted)

Sets how many documents get deleted for this call.

public RemoveStats.BuildersetDeleteType(int nativeDeleteType)

Sets delete type for this call.

public RemoveStats.BuildersetNativeLatencyMillis(int nativeLatencyMillis)

Sets native latency in millis.

public RemoveStats.BuildersetStatusCode(int statusCode)

Sets the status code.

public RemoveStats.BuildersetTotalLatencyMillis(int totalLatencyMillis)

Sets total latency in millis.

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

Constructors

public Builder(java.lang.String packageName, java.lang.String database)

Constructor for the RemoveStats.Builder.

Methods

public RemoveStats.Builder setStatusCode(int statusCode)

Sets the status code.

public RemoveStats.Builder setTotalLatencyMillis(int totalLatencyMillis)

Sets total latency in millis.

public RemoveStats.Builder setNativeLatencyMillis(int nativeLatencyMillis)

Sets native latency in millis.

public RemoveStats.Builder setDeleteType(int nativeDeleteType)

Sets delete type for this call.

public RemoveStats.Builder setDeletedDocumentCount(int nativeNumDocumentsDeleted)

Sets how many documents get deleted for this call.

public RemoveStats build()

Creates a RemoveStats.