ReportSystemUsageRequest.Builder

public static final class ReportSystemUsageRequest.Builder extends Object

Builder for ReportSystemUsageRequest objects.

Public Constructor Summary

Builder(String packageName, String databaseName, String namespace, String documentId)

Public Method Summary

ReportSystemUsageRequest
ReportSystemUsageRequest.Builder
setUsageTimestampMillis(long usageTimestampMillis)
Sets the timestamp in milliseconds of the usage report (the time at which the document was used).

Inherited Method Summary

Public Constructors

public Builder (String packageName, String databaseName, String namespace, String documentId)

Parameters
packageName The package name of the app which owns the document that was used (such as from SearchResult.getPackageName()).
databaseName The database in which the document that was used resides (such as from SearchResult.getDatabaseName()).
namespace The namespace of the document that was used (such as from GenericDocument.getNamespace().
documentId The ID of document that was used (such as from GenericDocument.getId().

Public Methods

public ReportSystemUsageRequest build ()

Builds a new ReportSystemUsageRequest.

public ReportSystemUsageRequest.Builder setUsageTimestampMillis (long usageTimestampMillis)

Sets the timestamp in milliseconds of the usage report (the time at which the document was used).

The value is in the System.currentTimeMillis() time base.

If unset, this defaults to the current timestamp at the time that the ReportSystemUsageRequest is constructed.