ReportUsageRequest

public final classReportUsageRequestextendsObject
implementsParcelable

A request to report usage of a document.

See AppSearchClient.reportUsage(ReportUsageRequest, String)for a detailed description of usage reporting.

Nested Class Summary

class ReportUsageRequest.Builder Builder forReportUsageRequest objects.

Inherited Constant Summary

Field Summary

public static finalCreator<ReportUsageRequest> CREATOR

Public Method Summary

String
getDocumentId()
Returns the ID of document that was used.
String
getNamespace()
Returns the namespace of the document that was used.
long
getUsageTimestampMillis()
Returns the timestamp in milliseconds of the usage report (the time at which the document was used).
void
writeToParcel(Parceldest, int flags)

Inherited Method Summary

Fields

public static finalCreator<ReportUsageRequest> CREATOR

Public Methods

publicStringgetDocumentId()

Returns the ID of document that was used.

publicStringgetNamespace()

Returns the namespace of the document that was used.

public longgetUsageTimestampMillis()

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

The value is in theSystem.currentTimeMillis() time base.

public voidwriteToParcel(Parceldest, int flags)