Class ReviewInput
java.lang.Object
com.google.gerrit.extensions.api.changes.ReviewInput
Input passed to 
POST /changes/[id]/revisions/[id]/review.- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classstatic enumstatic classDeprecated.
- 
Field SummaryFieldsModifier and TypeFieldDescriptionUsers that should be added to the attention set of this change.A list of draft IDs that should be published.How to process draft comments already in the database that were not also described in this input request.booleanUsers in the attention set will only be added and removed based onaddToAttentionSetandremoveFromAttentionSet.Who to send email notifications to after review is stored.booleanIf true check to make sure that the comments being posted aren't already present.Account ID, name, email address or username of another user.booleanIf true mark the change as ready for review.Users that should be removed from the attention set of this change.Reviewers that should be added to this change or removed from it.Deprecated.booleanIf true mark the change as work in progress.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionaddUserToAttentionSet(String user, String reason) static ReviewInputapprove()static ReviewInputcreate()static ReviewInputdislike()static ReviewInputnoScore()patchSetLevelComment(String message) static ReviewInputstatic ReviewInputreject()removeUserFromAttentionSet(String user, String reason) reviewer(String reviewer, ReviewerState state, boolean confirmed) setReady(boolean ready) setWorkInProgress(boolean workInProgress) 
- 
Field Details- 
message
- 
tag
- 
labels
- 
comments
- 
robotCommentsDeprecated.
- 
draftsHow 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. IfonBehalfOfis set, then no other value besidesKEEPis allowed.
- 
draftIdsToPublishA list of draft IDs that should be published.
- 
notifyWho to send email notifications to after review is stored.
- 
notifyDetails
- 
omitDuplicateCommentspublic boolean omitDuplicateCommentsIf true check to make sure that the comments being posted aren't already present.
- 
onBehalfOfAccount 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 inlabels. This is in addition to the named user also needing to have permission to use the labels.
- 
reviewersReviewers that should be added to this change or removed from it.
- 
workInProgresspublic boolean workInProgressIf true mark the change as work in progress. It is an error for bothworkInProgressandreadyto be true.
- 
readypublic boolean readyIf true mark the change as ready for review. It is an error for bothworkInProgressandreadyto be true.
- 
addToAttentionSetUsers that should be added to the attention set of this change.
- 
removeFromAttentionSetUsers that should be removed from the attention set of this change.
- 
ignoreAutomaticAttentionSetRulespublic boolean ignoreAutomaticAttentionSetRulesUsers in the attention set will only be added and removed based onaddToAttentionSetandremoveFromAttentionSet. 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
 
- 
- 
Constructor Details- 
ReviewInputpublic ReviewInput()
 
- 
- 
Method Details- 
message
- 
patchSetLevelComment
- 
label
- 
label
- 
label
- 
reviewer
- 
cc
- 
reviewer@CanIgnoreReturnValue public ReviewInput reviewer(String reviewer, ReviewerState state, boolean confirmed) 
- 
addUserToAttentionSet
- 
removeUserFromAttentionSet
- 
blockAutomaticAttentionSetRules
- 
setWorkInProgress
- 
setReady
- 
recommend
- 
dislike
- 
noScore
- 
approve
- 
reject
- 
create
 
-