Summary: Ctors | Methods | Inherited Methods
public
static
final
class
ReportUsageRequest.Builder
extends Object
Builder for ReportUsageRequest objects.
Summary
Public constructors | |
|---|---|
Builder(String namespace, String documentId)
Creates a new |
|
Public methods | |
|---|---|
ReportUsageRequest
|
build()
Builds a new |
ReportUsageRequest.Builder
|
setUsageTimestampMillis(long usageTimestampMillis)
Sets the timestamp in milliseconds of the usage report (the time at which the document was used). |
Inherited methods | |||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
From class
| |||||||||||||||||||||||
Public constructors
Public methods
setUsageTimestampMillis
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.
| Parameters | |
|---|---|
usageTimestampMillis |
long: Value is a non-negative timestamp measured as the number of
milliseconds since 1970-01-01T00:00:00Z. |
| Returns | |
|---|---|
ReportUsageRequest.Builder |
This value cannot be null. |