public interface RevisionApi
Modifier and Type | Interface and Description |
---|---|
static class |
RevisionApi.MergeListRequest |
static class |
RevisionApi.NotImplemented
A default implementation which allows source compatibility when adding new methods to the
interface.
|
Modifier and Type | Method and Description |
---|---|
java.util.Map<java.lang.String,ActionInfo> |
actions() |
EditInfo |
applyFix(java.lang.String fixId)
Applies the indicated fix by creating a new change edit or integrating the fix with the
existing change edit.
|
boolean |
canRebase() |
ChangeApi |
cherryPick(CherryPickInput in) |
CherryPickChangeInfo |
cherryPickAsInfo(CherryPickInput in) |
CommentApi |
comment(java.lang.String id) |
java.util.Map<java.lang.String,java.util.List<CommentInfo>> |
comments() |
java.util.List<CommentInfo> |
commentsAsList() |
CommitInfo |
commit(boolean addLinks) |
DraftApi |
createDraft(DraftInput in) |
java.lang.String |
description() |
void |
description(java.lang.String description) |
DraftApi |
draft(java.lang.String id) |
java.util.Map<java.lang.String,java.util.List<CommentInfo>> |
drafts() |
java.util.List<CommentInfo> |
draftsAsList() |
java.lang.String |
etag() |
FileApi |
file(java.lang.String path) |
default java.util.Map<java.lang.String,FileInfo> |
files() |
java.util.Map<java.lang.String,FileInfo> |
files(int parentNum) |
java.util.Map<java.lang.String,FileInfo> |
files(java.lang.String base) |
RevisionApi.MergeListRequest |
getMergeList() |
MergeableInfo |
mergeable() |
MergeableInfo |
mergeableOtherBranches() |
BinaryResult |
patch()
Returns patch of revision.
|
BinaryResult |
patch(java.lang.String path) |
java.util.List<java.lang.String> |
queryFiles(java.lang.String query) |
default ChangeApi |
rebase() |
ChangeApi |
rebase(RebaseInput in) |
RelatedChangesInfo |
related() |
ReviewResult |
review(ReviewInput in) |
java.util.Set<java.lang.String> |
reviewed() |
RevisionReviewerApi |
reviewer(java.lang.String id) |
RobotCommentApi |
robotComment(java.lang.String id) |
java.util.Map<java.lang.String,java.util.List<RobotCommentInfo>> |
robotComments() |
java.util.List<RobotCommentInfo> |
robotCommentsAsList() |
void |
setReviewed(java.lang.String path,
boolean reviewed) |
default void |
submit() |
void |
submit(SubmitInput in) |
default BinaryResult |
submitPreview() |
BinaryResult |
submitPreview(java.lang.String format) |
SubmitType |
submitType() |
java.util.List<TestSubmitRuleInfo> |
testSubmitRule(TestSubmitRuleInput in) |
SubmitType |
testSubmitType(TestSubmitRuleInput in) |
com.google.common.collect.ListMultimap<java.lang.String,ApprovalInfo> |
votes()
Returns votes on the revision.
|
java.lang.String description() throws RestApiException
RestApiException
void description(java.lang.String description) throws RestApiException
RestApiException
ReviewResult review(ReviewInput in) throws RestApiException
RestApiException
default void submit() throws RestApiException
RestApiException
void submit(SubmitInput in) throws RestApiException
RestApiException
default BinaryResult submitPreview() throws RestApiException
RestApiException
BinaryResult submitPreview(java.lang.String format) throws RestApiException
RestApiException
ChangeApi cherryPick(CherryPickInput in) throws RestApiException
RestApiException
CherryPickChangeInfo cherryPickAsInfo(CherryPickInput in) throws RestApiException
RestApiException
default ChangeApi rebase() throws RestApiException
RestApiException
ChangeApi rebase(RebaseInput in) throws RestApiException
RestApiException
boolean canRebase() throws RestApiException
RestApiException
RevisionReviewerApi reviewer(java.lang.String id) throws RestApiException
RestApiException
void setReviewed(java.lang.String path, boolean reviewed) throws RestApiException
RestApiException
java.util.Set<java.lang.String> reviewed() throws RestApiException
RestApiException
default java.util.Map<java.lang.String,FileInfo> files() throws RestApiException
RestApiException
java.util.Map<java.lang.String,FileInfo> files(java.lang.String base) throws RestApiException
RestApiException
java.util.Map<java.lang.String,FileInfo> files(int parentNum) throws RestApiException
RestApiException
java.util.List<java.lang.String> queryFiles(java.lang.String query) throws RestApiException
RestApiException
FileApi file(java.lang.String path)
CommitInfo commit(boolean addLinks) throws RestApiException
RestApiException
MergeableInfo mergeable() throws RestApiException
RestApiException
MergeableInfo mergeableOtherBranches() throws RestApiException
RestApiException
java.util.Map<java.lang.String,java.util.List<CommentInfo>> comments() throws RestApiException
RestApiException
java.util.Map<java.lang.String,java.util.List<RobotCommentInfo>> robotComments() throws RestApiException
RestApiException
java.util.Map<java.lang.String,java.util.List<CommentInfo>> drafts() throws RestApiException
RestApiException
java.util.List<CommentInfo> commentsAsList() throws RestApiException
RestApiException
java.util.List<CommentInfo> draftsAsList() throws RestApiException
RestApiException
java.util.List<RobotCommentInfo> robotCommentsAsList() throws RestApiException
RestApiException
EditInfo applyFix(java.lang.String fixId) throws RestApiException
fixId
- the ID of the fix which should be appliedRestApiException
- if the fix couldn't be appliedDraftApi createDraft(DraftInput in) throws RestApiException
RestApiException
DraftApi draft(java.lang.String id) throws RestApiException
RestApiException
CommentApi comment(java.lang.String id) throws RestApiException
RestApiException
RobotCommentApi robotComment(java.lang.String id) throws RestApiException
RestApiException
java.lang.String etag() throws RestApiException
RestApiException
BinaryResult patch() throws RestApiException
RestApiException
BinaryResult patch(java.lang.String path) throws RestApiException
RestApiException
java.util.Map<java.lang.String,ActionInfo> actions() throws RestApiException
RestApiException
SubmitType submitType() throws RestApiException
RestApiException
SubmitType testSubmitType(TestSubmitRuleInput in) throws RestApiException
RestApiException
java.util.List<TestSubmitRuleInfo> testSubmitRule(TestSubmitRuleInput in) throws RestApiException
RestApiException
RevisionApi.MergeListRequest getMergeList() throws RestApiException
RestApiException
RelatedChangesInfo related() throws RestApiException
RestApiException
com.google.common.collect.ListMultimap<java.lang.String,ApprovalInfo> votes() throws RestApiException
RestApiException