Interface RevisionApi
- All Known Implementing Classes:
RevisionApi.NotImplemented
public interface RevisionApi
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic classstatic classA default implementation which allows source compatibility when adding new methods to the interface. -
Method Summary
Modifier and TypeMethodDescriptionactions()applyFix(ApplyProvidedFixInput applyProvidedFixInput) Applies fix similar toapplyFixmethod.Applies the indicated fix by creating a new change edit or integrating the fix with the existing change edit.booleancomments()commit(boolean addLinks) voiddescription(String description) drafts()etag()files()files(int parentNum) getArchive(ArchiveFormat format) Retrieves the revision as an archive.getFixPreview(ApplyProvidedFixInput applyProvidedFixInput) getFixPreview(String fixId) patch()Returns patch of revision.queryFiles(String query) default ChangeApirebase()rebase(RebaseInput in) related()related(EnumSet<GetRelatedOption> listOptions) review(ReviewInput in) reviewed()robotComment(String id) voidsetReviewed(String path, boolean reviewed) default ChangeInfosubmit()submit(SubmitInput in) com.google.common.collect.ListMultimap<String,ApprovalInfo> votes()Returns votes on the revision.
-
Method Details
-
description
- Throws:
RestApiException
-
description
- Throws:
RestApiException
-
review
- Throws:
RestApiException
-
submit
- Throws:
RestApiException
-
submit
- Throws:
RestApiException
-
cherryPick
- Throws:
RestApiException
-
cherryPickAsInfo
- Throws:
RestApiException
-
rebase
- Throws:
RestApiException
-
rebase
- Throws:
RestApiException
-
rebaseAsInfo
- Throws:
RestApiException
-
canRebase
- Throws:
RestApiException
-
reviewer
- Throws:
RestApiException
-
setReviewed
- Throws:
RestApiException
-
reviewed
- Throws:
RestApiException
-
files
- Throws:
RestApiException
-
files
- Throws:
RestApiException
-
files
- Throws:
RestApiException
-
queryFiles
- Throws:
RestApiException
-
file
-
commit
- Throws:
RestApiException
-
mergeable
- Throws:
RestApiException
-
mergeableOtherBranches
- Throws:
RestApiException
-
comments
- Throws:
RestApiException
-
robotComments
- Throws:
RestApiException
-
drafts
- Throws:
RestApiException
-
commentsAsList
- Throws:
RestApiException
-
draftsAsList
- Throws:
RestApiException
-
robotCommentsAsList
- Throws:
RestApiException
-
portedComments
- Throws:
RestApiException
-
portedDrafts
- Throws:
RestApiException
-
applyFix
Applies the indicated fix by creating a new change edit or integrating the fix with the existing change edit. If no change edit exists before this call, the fix must refer to the current patch set. If a change edit exists, the fix must refer to the patch set on which the change edit is based.- Parameters:
fixId- the ID of the fix which should be applied- Throws:
RestApiException- if the fix couldn't be applied
-
applyFix
Applies fix similar toapplyFixmethod. Instead of using a fix stored in the server, this applies the fix provided inApplyProvidedFixInput- Parameters:
applyProvidedFixInput- The fix(es) to apply to a new change edit.- Throws:
RestApiException- if the fix couldn't be applied.
-
getFixPreview
- Throws:
RestApiException
-
getFixPreview
Map<String,DiffInfo> getFixPreview(ApplyProvidedFixInput applyProvidedFixInput) throws RestApiException - Throws:
RestApiException
-
createDraft
- Throws:
RestApiException
-
draft
- Throws:
RestApiException
-
comment
- Throws:
RestApiException
-
robotComment
- Throws:
RestApiException
-
etag
- Throws:
RestApiException
-
patch
Returns patch of revision.- Throws:
RestApiException
-
patch
- Throws:
RestApiException
-
actions
- Throws:
RestApiException
-
submitType
- Throws:
RestApiException
-
testSubmitType
- Throws:
RestApiException
-
testSubmitRule
- Throws:
RestApiException
-
getMergeList
- Throws:
RestApiException
-
votes
Returns votes on the revision.- Throws:
RestApiException
-
getArchive
Retrieves the revision as an archive.- Parameters:
format- the format of the archive- Returns:
- the archive as
BinaryResult - Throws:
RestApiException
-