Class ReviewInput

java.lang.Object
com.google.gerrit.extensions.api.changes.ReviewInput

public class ReviewInput extends Object
Input passed to POST /changes/[id]/revisions/[id]/review.
  • Field Details

    • message

      public String message
    • tag

      public String tag
    • labels

      public Map<String,Short> labels
    • comments

    • robotComments

      Deprecated.
    • drafts

      How to process draft comments already in the database that were not also described in this input request.

      If not set, the default is ReviewInput.DraftHandling.KEEP. If onBehalfOf is set, then no other value besides KEEP is allowed.

    • draftIdsToPublish

      public List<String> draftIdsToPublish
      A list of draft IDs that should be published.
    • notify

      public NotifyHandling notify
      Who to send email notifications to after review is stored.
    • notifyDetails

      public Map<RecipientType,NotifyInfo> notifyDetails
    • omitDuplicateComments

      public boolean omitDuplicateComments
      If true check to make sure that the comments being posted aren't already present.
    • onBehalfOf

      public String onBehalfOf
      Account ID, name, email address or username of another user. The review will be posted/updated on behalf of this named user instead of the caller. Caller must have the labelAs-$NAME permission granted for each label that appears in labels. This is in addition to the named user also needing to have permission to use the labels.
    • reviewers

      public List<ReviewerInput> reviewers
      Reviewers that should be added to this change or removed from it.
    • workInProgress

      public boolean workInProgress
      If true mark the change as work in progress. It is an error for both workInProgress and ready to be true.
    • ready

      public boolean ready
      If true mark the change as ready for review. It is an error for both workInProgress and ready to be true.
    • addToAttentionSet

      public List<AttentionSetInput> addToAttentionSet
      Users that should be added to the attention set of this change.
    • removeFromAttentionSet

      public List<AttentionSetInput> removeFromAttentionSet
      Users that should be removed from the attention set of this change.
    • ignoreAutomaticAttentionSetRules

      public boolean ignoreAutomaticAttentionSetRules
      Users in the attention set will only be added and removed based on addToAttentionSet and removeFromAttentionSet. Normally, they are also added and removed when some events occur. E.g, adding/removing reviewers, marking a change ready for review or work in progress, and replying on changes.
    • responseFormatOptions

      public List<ListChangesOption> responseFormatOptions
  • Constructor Details

    • ReviewInput

      public ReviewInput()
  • Method Details

    • message

      @CanIgnoreReturnValue public ReviewInput message(String msg)
    • patchSetLevelComment

      @CanIgnoreReturnValue public ReviewInput patchSetLevelComment(String message)
    • label

      @CanIgnoreReturnValue public ReviewInput label(String name, short value)
    • label

      @CanIgnoreReturnValue public ReviewInput label(String name, int value)
    • label

      @CanIgnoreReturnValue public ReviewInput label(String name)
    • reviewer

      @CanIgnoreReturnValue public ReviewInput reviewer(String reviewer)
    • cc

      @CanIgnoreReturnValue public ReviewInput cc(String cc)
    • reviewer

      @CanIgnoreReturnValue public ReviewInput reviewer(String reviewer, ReviewerState state, boolean confirmed)
    • addUserToAttentionSet

      @CanIgnoreReturnValue public ReviewInput addUserToAttentionSet(String user, String reason)
    • removeUserFromAttentionSet

      @CanIgnoreReturnValue public ReviewInput removeUserFromAttentionSet(String user, String reason)
    • blockAutomaticAttentionSetRules

      @CanIgnoreReturnValue public ReviewInput blockAutomaticAttentionSetRules()
    • setWorkInProgress

      @CanIgnoreReturnValue public ReviewInput setWorkInProgress(boolean workInProgress)
    • setReady

      @CanIgnoreReturnValue public ReviewInput setReady(boolean ready)
    • recommend

      public static ReviewInput recommend()
    • dislike

      public static ReviewInput dislike()
    • noScore

      public static ReviewInput noScore()
    • approve

      public static ReviewInput approve()
    • reject

      public static ReviewInput reject()
    • create

      public static ReviewInput create()