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
RestApiException
current()
RevisionApi revision(String id) throws RestApiException
RestApiException
current()
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
RestApiException
void abandon(AbandonInput in) throws RestApiException
RestApiException
void restore() throws RestApiException
RestApiException
void restore(RestoreInput in) throws RestApiException
RestApiException
void move(String destination) throws RestApiException
RestApiException
void move(MoveInput in) throws RestApiException
RestApiException
ChangeApi revert() throws RestApiException
RestApiException
Changes.id(int)
ChangeApi revert(RevertInput in) throws RestApiException
RestApiException
Changes.id(int)
ChangeInfo createMergePatchSet(MergePatchSetInput in) throws RestApiException
RestApiException
List<ChangeInfo> submittedTogether() throws RestApiException
RestApiException
SubmittedTogetherInfo submittedTogether(EnumSet<SubmittedTogetherOption> options) throws RestApiException
RestApiException
SubmittedTogetherInfo submittedTogether(EnumSet<ListChangesOption> listOptions, EnumSet<SubmittedTogetherOption> submitOptions) throws RestApiException
RestApiException
void publish() throws RestApiException
RestApiException
void rebase() throws RestApiException
RestApiException
void rebase(RebaseInput in) throws RestApiException
RestApiException
void delete() throws RestApiException
RestApiException
String topic() throws RestApiException
RestApiException
void topic(String topic) throws RestApiException
RestApiException
IncludedInInfo includedIn() throws RestApiException
RestApiException
void addReviewer(AddReviewerInput in) throws RestApiException
RestApiException
void addReviewer(String in) throws RestApiException
RestApiException
ChangeApi.SuggestedReviewersRequest suggestReviewers() throws RestApiException
RestApiException
ChangeApi.SuggestedReviewersRequest suggestReviewers(String query) throws RestApiException
RestApiException
ChangeInfo get(EnumSet<ListChangesOption> options) throws RestApiException
RestApiException
ChangeInfo get() throws RestApiException
get
with ListChangesOption
set to all except CHECK.RestApiException
ChangeInfo info() throws RestApiException
get
with ListChangesOption
set to none.RestApiException
@Deprecated EditInfo getEdit() throws RestApiException
edit()
in combination with ChangeEditApi.get()
.RestApiException
ChangeEditApi edit() throws RestApiException
ChangeEditApi
for the change edit of this changeRestApiException
- if the API isn't accessiblevoid setHashtags(HashtagsInput input) throws RestApiException
RestApiException
Set<String> getHashtags() throws RestApiException
RestApiException
AccountInfo setAssignee(AssigneeInput input) throws RestApiException
RestApiException
AccountInfo getAssignee() throws RestApiException
RestApiException
List<AccountInfo> getPastAssignees() throws RestApiException
RestApiException
AccountInfo deleteAssignee() throws RestApiException
RestApiException
Map<String,List<CommentInfo>> comments() throws RestApiException
revision
field set to
indicate their patch set.RestApiException
Map<String,List<RobotCommentInfo>> robotComments() throws RestApiException
revision
field
set to indicate their patch set.RestApiException
Map<String,List<CommentInfo>> drafts() throws RestApiException
revision
field set to indicate
their patch set.RestApiException
ChangeInfo check() throws RestApiException
RestApiException
ChangeInfo check(FixInput fix) throws RestApiException
RestApiException
void index() throws RestApiException
RestApiException