ReportUsageRequest.Builder


class ReportUsageRequest.Builder


Builder for ReportUsageRequest objects.

Summary

Public constructors

Builder(namespace: String, documentId: String)

Creates a new ReportUsageRequest.Builder instance.

Public functions

ReportUsageRequest

Builds a new ReportUsageRequest.

ReportUsageRequest.Builder
setUsageTimestampMillis(usageTimestampMillis: Long)

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

Public constructors

Builder

Added in 1.1.0-alpha07
Builder(namespace: String, documentId: String)

Creates a new ReportUsageRequest.Builder instance.

Parameters
namespace: String

The namespace of the document that was used (such as from getNamespace.

documentId: String

The ID of document that was used (such as from getId.

Public functions

build

Added in 1.1.0-alpha07
fun build(): ReportUsageRequest

Builds a new ReportUsageRequest.

setUsageTimestampMillis

Added in 1.1.0-alpha07
fun setUsageTimestampMillis(usageTimestampMillis: Long): ReportUsageRequest.Builder

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

The value is in the currentTimeMillis time base.

If unset, this defaults to the current timestamp at the time that the ReportUsageRequest is constructed.