public static final class ReportUsageRequest.Builder extends Object
Builder for ReportUsageRequest
objects.
Public Constructor Summary
Public Method Summary
ReportUsageRequest |
build()
Builds a new
ReportUsageRequest .
|
ReportUsageRequest.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 namespace, String documentId)
Creates a new ReportUsageRequest.Builder
instance.
Parameters
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 ReportUsageRequest build ()
Builds a new ReportUsageRequest
.
public ReportUsageRequest.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 ReportUsageRequest
is constructed.