Class ReviewInput
java.lang.Object
com.google.gerrit.extensions.api.changes.ReviewInput
Input passed to
POST /changes/[id]/revisions/[id]/review
.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static enum
static class
Deprecated. -
Field Summary
FieldsModifier 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.boolean
Users in the attention set will only be added and removed based onaddToAttentionSet
andremoveFromAttentionSet
.Who to send email notifications to after review is stored.boolean
If true check to make sure that the comments being posted aren't already present.Account ID, name, email address or username of another user.boolean
If 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.boolean
If true mark the change as work in progress. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddUserToAttentionSet
(String user, String reason) static ReviewInput
approve()
static ReviewInput
create()
static ReviewInput
dislike()
static ReviewInput
noScore()
patchSetLevelComment
(String message) static ReviewInput
static ReviewInput
reject()
removeUserFromAttentionSet
(String user, String reason) reviewer
(String reviewer, ReviewerState state, boolean confirmed) setReady
(boolean ready) setWorkInProgress
(boolean workInProgress)
-
Field Details
-
message
-
tag
-
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
. IfonBehalfOf
is set, then no other value besidesKEEP
is allowed. -
draftIdsToPublish
A list of draft IDs that should be published. -
notify
Who to send email notifications to after review is stored. -
notifyDetails
-
omitDuplicateComments
public boolean omitDuplicateCommentsIf true check to make sure that the comments being posted aren't already present. -
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. -
reviewers
Reviewers that should be added to this change or removed from it. -
workInProgress
public boolean workInProgressIf true mark the change as work in progress. It is an error for bothworkInProgress
andready
to be true. -
ready
public boolean readyIf true mark the change as ready for review. It is an error for bothworkInProgress
andready
to be true. -
addToAttentionSet
Users that should be added to the attention set of this change. -
removeFromAttentionSet
Users that should be removed from the attention set of this change. -
ignoreAutomaticAttentionSetRules
public boolean ignoreAutomaticAttentionSetRulesUsers in the attention set will only be added and removed based onaddToAttentionSet
andremoveFromAttentionSet
. 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
-
ReviewInput
public 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
-