Class ReviewerResult
- java.lang.Object
- 
- com.google.gerrit.extensions.api.changes.ReviewerResult
 
- 
 public class ReviewerResult extends Object Result object representing the outcome of a request to add/remove a reviewer.
- 
- 
Field SummaryFields Modifier and Type Field Description List<AccountInfo>ccsList of new accounts CCed on the change.BooleanconfirmNon-null and true if the reviewer cannot be added without explicit confirmation.StringerrorIf non-null, a string describing why the reviewer could not be added/removed.StringinputThe identifier of an account or group that was to be added/removed as a reviewer.AccountInforemovedAn account removed from the change.List<ReviewerInfo>reviewersList of individual reviewers added to the change.
 - 
Constructor SummaryConstructors Constructor Description ReviewerResult(String input)Constructs a partially initialized result for the given reviewer.ReviewerResult(String reviewer, boolean confirm)Constructs a needs-confirmation result for the given account.ReviewerResult(String reviewer, String error)Constructs an error result for the given account.
 
- 
- 
- 
Field Detail- 
inputpublic String input The identifier of an account or group that was to be added/removed as a reviewer.
 - 
errorpublic String error If non-null, a string describing why the reviewer could not be added/removed.
 - 
confirmpublic Boolean confirm Non-null and true if the reviewer cannot be added without explicit confirmation. This may be the case for groups of a certain size. For removals, it's always false.
 - 
reviewerspublic List<ReviewerInfo> reviewers List of individual reviewers added to the change. The size of this list may be greater than one (e.g. when a group is added). Null if no reviewers were added.
 - 
ccspublic List<AccountInfo> ccs List of new accounts CCed on the change. The size of this list may be greater than one (e.g. when a group is CCed). Null if no accounts were CCed.
 - 
removedpublic AccountInfo removed An account removed from the change. Null if no accounts were removed.
 
- 
 - 
Constructor Detail- 
ReviewerResultpublic ReviewerResult(String input) Constructs a partially initialized result for the given reviewer.- Parameters:
- input- String identifier of an account or group, from user request
 
 - 
ReviewerResultpublic ReviewerResult(String reviewer, String error) Constructs an error result for the given account.- Parameters:
- reviewer- String identifier of an account or group
- error- Error message
 
 - 
ReviewerResultpublic ReviewerResult(String reviewer, boolean confirm) Constructs a needs-confirmation result for the given account.- Parameters:
- confirm- Whether confirmation is needed.
 
 
- 
 
-