public static class Moment.Builder extends Object

Public Constructors

public Moment.Builder ()

Constructs a new Builder.

Public Methods

public Moment build ()

Constructs a Moment with the current properties.

public Moment.Builder setId (String id)

The moment ID.

public Moment.Builder setResult (ItemScope result)

The object generated by performing the action on the target. For example, a user writes a review of a restaurant, the target is the restaurant and the result is the review.

public Moment.Builder setStartDate (String startDate)

Time stamp of when the action occurred in RFC3339 format.

public Moment.Builder setTarget (ItemScope target)

The object on which the action was performed.

public Moment.Builder setType (String type)

The Google schema for the type of moment to write. For example,