public class ReviewInput
extends java.lang.Object
POST /changes/[id]/revisions/[id]/review
.Modifier and Type | Class and Description |
---|---|
static class |
ReviewInput.CommentInput |
static class |
ReviewInput.DraftHandling |
static class |
ReviewInput.RobotCommentInput |
Modifier and Type | Field and Description |
---|---|
java.util.Map<java.lang.String,java.util.List<ReviewInput.CommentInput>> |
comments |
ReviewInput.DraftHandling |
drafts
How to process draft comments already in the database that were not also described in this
input request.
|
java.util.Map<java.lang.String,java.lang.Short> |
labels |
java.lang.String |
message |
NotifyHandling |
notify
Who to send email notifications to after review is stored.
|
java.util.Map<RecipientType,NotifyInfo> |
notifyDetails |
boolean |
omitDuplicateComments
If true check to make sure that the comments being posted aren't already present.
|
java.lang.String |
onBehalfOf
Account ID, name, email address or username of another user.
|
java.util.List<AddReviewerInput> |
reviewers
Reviewers that should be added to this change.
|
java.util.Map<java.lang.String,java.util.List<ReviewInput.RobotCommentInput>> |
robotComments |
boolean |
strictLabels
If true require all labels to be within the user's permitted ranges based on access controls,
attempting to use a label not granted to the user will fail the entire modify operation early.
|
java.lang.String |
tag |
Constructor and Description |
---|
ReviewInput() |
Modifier and Type | Method and Description |
---|---|
static ReviewInput |
approve() |
static ReviewInput |
dislike() |
ReviewInput |
label(java.lang.String name) |
ReviewInput |
label(java.lang.String name,
int value) |
ReviewInput |
label(java.lang.String name,
short value) |
ReviewInput |
message(java.lang.String msg) |
static ReviewInput |
noScore() |
static ReviewInput |
recommend() |
static ReviewInput |
reject() |
ReviewInput |
reviewer(java.lang.String reviewer) |
ReviewInput |
reviewer(java.lang.String reviewer,
ReviewerState state,
boolean confirmed) |
public java.lang.String message
public java.lang.String tag
public java.util.Map<java.lang.String,java.lang.Short> labels
public java.util.Map<java.lang.String,java.util.List<ReviewInput.CommentInput>> comments
public java.util.Map<java.lang.String,java.util.List<ReviewInput.RobotCommentInput>> robotComments
public boolean strictLabels
public ReviewInput.DraftHandling drafts
Defaults to DELETE, unless onBehalfOf
is set, in which case it defaults to KEEP and
any other value is disallowed.
public NotifyHandling notify
public java.util.Map<RecipientType,NotifyInfo> notifyDetails
public boolean omitDuplicateComments
public java.lang.String onBehalfOf
labels
. This is in addition to the
named user also needing to have permission to use the labels.
strictLabels
impacts how labels is processed for the named user, not the caller.
public java.util.List<AddReviewerInput> reviewers
public ReviewInput message(java.lang.String msg)
public ReviewInput label(java.lang.String name, short value)
public ReviewInput label(java.lang.String name, int value)
public ReviewInput label(java.lang.String name)
public ReviewInput reviewer(java.lang.String reviewer)
public ReviewInput reviewer(java.lang.String reviewer, ReviewerState state, boolean confirmed)
public static ReviewInput recommend()
public static ReviewInput dislike()
public static ReviewInput noScore()
public static ReviewInput approve()
public static ReviewInput reject()