public interface ChangeApi
| Modifier and Type | Interface and Description |
|---|---|
static class |
ChangeApi.NotImplemented
A default implementation which allows source compatibility when adding new methods to the
interface.
|
static class |
ChangeApi.SuggestedReviewersRequest |
| Modifier and Type | Method and Description |
|---|---|
void |
abandon() |
void |
abandon(AbandonInput in) |
void |
addReviewer(AddReviewerInput in) |
void |
addReviewer(String in) |
ChangeInfo |
check() |
ChangeInfo |
check(FixInput fix) |
Map<String,List<CommentInfo>> |
comments()
Get all published comments on a change.
|
ChangeInfo |
createMergePatchSet(MergePatchSetInput in)
Create a merge patch set for the change.
|
RevisionApi |
current()
Look up the current revision for the change.
|
void |
delete()
Deletes a change.
|
AccountInfo |
deleteAssignee()
Delete the assignee of a change.
|
Map<String,List<CommentInfo>> |
drafts()
Get all draft comments for the current user on a change.
|
ChangeEditApi |
edit()
Provides access to an API regarding the change edit of this change.
|
ChangeInfo |
get()
get with ListChangesOption set to all except CHECK. |
ChangeInfo |
get(EnumSet<ListChangesOption> options) |
AccountInfo |
getAssignee()
Get the assignee of a change.
|
EditInfo |
getEdit()
Deprecated.
Replaced by
edit() in combination with ChangeEditApi.get(). |
Set<String> |
getHashtags()
Get hashtags on a change.
|
List<AccountInfo> |
getPastAssignees()
Get all past assignees.
|
String |
id() |
IncludedInInfo |
includedIn() |
void |
index() |
ChangeInfo |
info()
get with ListChangesOption set to none. |
void |
move(MoveInput in) |
void |
move(String destination) |
void |
publish()
Publishes a draft change.
|
void |
rebase()
Rebase the current revision of a change using default options.
|
void |
rebase(RebaseInput in)
Rebase the current revision of a change.
|
void |
restore() |
void |
restore(RestoreInput in) |
ChangeApi |
revert()
Create a new change that reverts this change.
|
ChangeApi |
revert(RevertInput in)
Create a new change that reverts this change.
|
ReviewerApi |
reviewer(String id)
Look up the reviewer of the change.
|
RevisionApi |
revision(int id)
Look up a revision of a change by number.
|
RevisionApi |
revision(String id)
Look up a revision of a change by commit SHA-1.
|
Map<String,List<RobotCommentInfo>> |
robotComments()
Get all robot comments on a change.
|
AccountInfo |
setAssignee(AssigneeInput input)
Set the assignee of a change.
|
void |
setHashtags(HashtagsInput input)
Set hashtags on a change
|
List<ChangeInfo> |
submittedTogether() |
SubmittedTogetherInfo |
submittedTogether(EnumSet<ListChangesOption> listOptions,
EnumSet<SubmittedTogetherOption> submitOptions) |
SubmittedTogetherInfo |
submittedTogether(EnumSet<SubmittedTogetherOption> options) |
ChangeApi.SuggestedReviewersRequest |
suggestReviewers() |
ChangeApi.SuggestedReviewersRequest |
suggestReviewers(String query) |
String |
topic() |
void |
topic(String topic) |
String id()
RevisionApi current() throws RestApiException
Note: This method eagerly reads the revision. Methods that mutate the
revision do not necessarily re-read the revision. Therefore, calling a getter method on an
instance after calling a mutation method on that same instance is not guaranteed to reflect the
mutation. It is not recommended to store references to RevisionApi instances.
RestApiException - if an error occurred.RevisionApi revision(int id) throws RestApiException
RestApiExceptioncurrent()RevisionApi revision(String id) throws RestApiException
RestApiExceptioncurrent()ReviewerApi reviewer(String id) throws RestApiException
id - ID of the account, can be a string of the format "Full Name
<[email protected]>", just the email address, a full name if it is unique, an account
ID, a user name or 'self' for the calling user.RestApiException - if id is not account ID or is a user that isn't known to be a reviewer
for this change.void abandon()
throws RestApiException
RestApiExceptionvoid abandon(AbandonInput in) throws RestApiException
RestApiExceptionvoid restore()
throws RestApiException
RestApiExceptionvoid restore(RestoreInput in) throws RestApiException
RestApiExceptionvoid move(String destination) throws RestApiException
RestApiExceptionvoid move(MoveInput in) throws RestApiException
RestApiExceptionChangeApi revert() throws RestApiException
RestApiExceptionChanges.id(int)ChangeApi revert(RevertInput in) throws RestApiException
RestApiExceptionChanges.id(int)ChangeInfo createMergePatchSet(MergePatchSetInput in) throws RestApiException
RestApiExceptionList<ChangeInfo> submittedTogether() throws RestApiException
RestApiExceptionSubmittedTogetherInfo submittedTogether(EnumSet<SubmittedTogetherOption> options) throws RestApiException
RestApiExceptionSubmittedTogetherInfo submittedTogether(EnumSet<ListChangesOption> listOptions, EnumSet<SubmittedTogetherOption> submitOptions) throws RestApiException
RestApiExceptionvoid publish()
throws RestApiException
RestApiExceptionvoid rebase()
throws RestApiException
RestApiExceptionvoid rebase(RebaseInput in) throws RestApiException
RestApiExceptionvoid delete()
throws RestApiException
RestApiExceptionString topic() throws RestApiException
RestApiExceptionvoid topic(String topic) throws RestApiException
RestApiExceptionIncludedInInfo includedIn() throws RestApiException
RestApiExceptionvoid addReviewer(AddReviewerInput in) throws RestApiException
RestApiExceptionvoid addReviewer(String in) throws RestApiException
RestApiExceptionChangeApi.SuggestedReviewersRequest suggestReviewers() throws RestApiException
RestApiExceptionChangeApi.SuggestedReviewersRequest suggestReviewers(String query) throws RestApiException
RestApiExceptionChangeInfo get(EnumSet<ListChangesOption> options) throws RestApiException
RestApiExceptionChangeInfo get() throws RestApiException
get with ListChangesOption set to all except CHECK.RestApiExceptionChangeInfo info() throws RestApiException
get with ListChangesOption set to none.RestApiException@Deprecated EditInfo getEdit() throws RestApiException
edit() in combination with ChangeEditApi.get().RestApiExceptionChangeEditApi edit() throws RestApiException
ChangeEditApi for the change edit of this changeRestApiException - if the API isn't accessiblevoid setHashtags(HashtagsInput input) throws RestApiException
RestApiExceptionSet<String> getHashtags() throws RestApiException
RestApiExceptionAccountInfo setAssignee(AssigneeInput input) throws RestApiException
RestApiExceptionAccountInfo getAssignee() throws RestApiException
RestApiExceptionList<AccountInfo> getPastAssignees() throws RestApiException
RestApiExceptionAccountInfo deleteAssignee() throws RestApiException
RestApiExceptionMap<String,List<CommentInfo>> comments() throws RestApiException
revision field set to
indicate their patch set.RestApiExceptionMap<String,List<RobotCommentInfo>> robotComments() throws RestApiException
revision field
set to indicate their patch set.RestApiExceptionMap<String,List<CommentInfo>> drafts() throws RestApiException
revision field set to indicate
their patch set.RestApiExceptionChangeInfo check() throws RestApiException
RestApiExceptionChangeInfo check(FixInput fix) throws RestApiException
RestApiExceptionvoid index()
throws RestApiException
RestApiException