ReportUsageRequest


public final class ReportUsageRequest


A request to report usage of a document.

See reportUsageAsync for a detailed description of usage reporting.

See also
reportUsageAsync

Summary

Nested types

public final class ReportUsageRequest.Builder

Builder for ReportUsageRequest objects.

Public methods

@NonNull String

Returns the ID of document that was used.

@NonNull String

Returns the namespace of the document that was used.

long

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

Public methods

getDocumentId

Added in 1.1.0-alpha07
public @NonNull String getDocumentId()

Returns the ID of document that was used.

getNamespace

Added in 1.1.0-alpha07
public @NonNull String getNamespace()

Returns the namespace of the document that was used.

getUsageTimestampMillis

Added in 1.1.0-alpha07
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 currentTimeMillis time base.