AI-generated Key Takeaways
-
ReportUsageRequest is a class used to report the usage of a document, implementing the Parcelable interface.
-
It includes a Builder class to create ReportUsageRequest objects.
-
Key methods allow retrieving the document's ID, namespace, and the usage timestamp in milliseconds.
-
The class also provides a CREATOR field for Parcelable implementation and a writeToParcel method.
A request to report usage of a document.
See AppSearchClient.reportUsage(ReportUsageRequest, String)
for a detailed description
of usage reporting.
Nested Class Summary
Inherited Constant Summary
Field Summary
| public static final Creator < ReportUsageRequest > | CREATOR |
Public Method Summary
| String | |
| String | |
| long | getUsageTimestampMillis
()
Returns the timestamp in milliseconds of the usage report (the time at which
the document was used).
|
| void |
Inherited Method Summary
Fields
public static final Creator < ReportUsageRequest > CREATOR
Public Methods
public String getDocumentId ()
Returns the ID of document that was used.
public String getNamespace ()
Returns the namespace of the document that was used.
public long getUsageTimestampMillis ()
Returns 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.

