Class ReviewInput
- java.lang.Object
- 
- com.google.gerrit.extensions.api.changes.ReviewInput
 
- 
 public class ReviewInput extends Object Input passed toPOST /changes/[id]/revisions/[id]/review.
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classReviewInput.CommentInputstatic classReviewInput.DraftHandlingstatic classReviewInput.RobotCommentInput
 - 
Field SummaryFields Modifier and Type Field Description List<AttentionSetInput>addToAttentionSetUsers that should be added to the attention set of this change.Map<String,List<ReviewInput.CommentInput>>commentsReviewInput.DraftHandlingdraftsHow to process draft comments already in the database that were not also described in this input request.booleanignoreAutomaticAttentionSetRulesUsers in the attention set will only be added and removed based onaddToAttentionSetandremoveFromAttentionSet.Map<String,Short>labelsStringmessageNotifyHandlingnotifyWho to send email notifications to after review is stored.Map<RecipientType,NotifyInfo>notifyDetailsbooleanomitDuplicateCommentsIf true check to make sure that the comments being posted aren't already present.StringonBehalfOfAccount ID, name, email address or username of another user.booleanreadyIf true mark the change as ready for review.List<AttentionSetInput>removeFromAttentionSetUsers that should be removed from the attention set of this change.List<AddReviewerInput>reviewersReviewers that should be added to this change.Map<String,List<ReviewInput.RobotCommentInput>>robotCommentsStringtagbooleanworkInProgressIf true mark the change as work in progress.
 - 
Constructor SummaryConstructors Constructor Description ReviewInput()
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ReviewInputaddUserToAttentionSet(String user, String reason)static ReviewInputapprove()ReviewInputblockAutomaticAttentionSetRules()static ReviewInputcreate()static ReviewInputdislike()ReviewInputlabel(String name)ReviewInputlabel(String name, int value)ReviewInputlabel(String name, short value)ReviewInputmessage(String msg)static ReviewInputnoScore()ReviewInputpatchSetLevelComment(String message)static ReviewInputrecommend()static ReviewInputreject()ReviewInputremoveUserFromAttentionSet(String user, String reason)ReviewInputreviewer(String reviewer)ReviewInputreviewer(String reviewer, ReviewerState state, boolean confirmed)ReviewInputsetReady(boolean ready)ReviewInputsetWorkInProgress(boolean workInProgress)
 
- 
- 
- 
Field Detail- 
messagepublic String message 
 - 
tagpublic String tag 
 - 
commentspublic Map<String,List<ReviewInput.CommentInput>> comments 
 - 
robotCommentspublic Map<String,List<ReviewInput.RobotCommentInput>> robotComments 
 - 
draftspublic ReviewInput.DraftHandling 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. IfonBehalfOfis set, then no other value besidesKEEPis allowed.
 - 
notifypublic NotifyHandling notify Who to send email notifications to after review is stored.
 - 
notifyDetailspublic Map<RecipientType,NotifyInfo> notifyDetails 
 - 
omitDuplicateCommentspublic boolean omitDuplicateComments If true check to make sure that the comments being posted aren't already present.
 - 
onBehalfOfpublic 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 inlabels. This is in addition to the named user also needing to have permission to use the labels.
 - 
reviewerspublic List<AddReviewerInput> reviewers Reviewers that should be added to this change.
 - 
workInProgresspublic boolean workInProgress If true mark the change as work in progress. It is an error for bothworkInProgressandreadyto be true.
 - 
readypublic boolean ready If true mark the change as ready for review. It is an error for bothworkInProgressandreadyto be true.
 - 
addToAttentionSetpublic List<AttentionSetInput> addToAttentionSet Users that should be added to the attention set of this change.
 - 
removeFromAttentionSetpublic List<AttentionSetInput> removeFromAttentionSet Users that should be removed from the attention set of this change.
 - 
ignoreAutomaticAttentionSetRulespublic boolean ignoreAutomaticAttentionSetRules Users 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.
 
- 
 - 
Method Detail- 
messagepublic ReviewInput message(String msg) 
 - 
patchSetLevelCommentpublic ReviewInput patchSetLevelComment(String message) 
 - 
labelpublic ReviewInput label(String name, short value) 
 - 
labelpublic ReviewInput label(String name, int value) 
 - 
labelpublic ReviewInput label(String name) 
 - 
reviewerpublic ReviewInput reviewer(String reviewer) 
 - 
reviewerpublic ReviewInput reviewer(String reviewer, ReviewerState state, boolean confirmed) 
 - 
addUserToAttentionSetpublic ReviewInput addUserToAttentionSet(String user, String reason) 
 - 
removeUserFromAttentionSetpublic ReviewInput removeUserFromAttentionSet(String user, String reason) 
 - 
blockAutomaticAttentionSetRulespublic ReviewInput blockAutomaticAttentionSetRules() 
 - 
setWorkInProgresspublic ReviewInput setWorkInProgress(boolean workInProgress) 
 - 
setReadypublic ReviewInput setReady(boolean ready) 
 - 
recommendpublic static ReviewInput recommend() 
 - 
dislikepublic static ReviewInput dislike() 
 - 
noScorepublic static ReviewInput noScore() 
 - 
approvepublic static ReviewInput approve() 
 - 
rejectpublic static ReviewInput reject() 
 - 
createpublic static ReviewInput create() 
 
- 
 
-