Class Changes.NotImplemented
- java.lang.Object
-
- com.google.gerrit.extensions.api.changes.Changes.NotImplemented
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.gerrit.extensions.api.changes.Changes
Changes.NotImplemented, Changes.QueryRequest
-
-
Constructor Summary
Constructors Constructor Description NotImplemented()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ChangeApi
create(ChangeInput in)
ChangeInfo
createAsInfo(ChangeInput in)
ChangeApi
id(int id)
Look up a change by numeric ID.ChangeApi
id(String triplet)
Look up a change by string ID.ChangeApi
id(String project, int id)
Look up a change by project and numeric ID.ChangeApi
id(String project, String branch, String id)
Look up a change by project, branch, and change ID.Changes.QueryRequest
query()
Changes.QueryRequest
query(String query)
-
-
-
Method Detail
-
id
public ChangeApi id(int id) throws RestApiException
Description copied from interface:Changes
Look up a change by numeric ID.Note: This method eagerly reads the change. Methods that mutate the change do not necessarily re-read the change. 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
ChangeApi
instances.- Specified by:
id
in interfaceChanges
- Parameters:
id
- change number.- Returns:
- API for accessing the change.
- Throws:
RestApiException
- if an error occurred.
-
id
public ChangeApi id(String triplet) throws RestApiException
Description copied from interface:Changes
Look up a change by string ID.- Specified by:
id
in interfaceChanges
- Parameters:
triplet
- any identifier supported by the REST API, including change number, Change-Id, or project~branch~Change-Id triplet.- Returns:
- API for accessing the change.
- Throws:
RestApiException
- if an error occurred.- See Also:
Changes.id(int)
-
id
public ChangeApi id(String project, String branch, String id) throws RestApiException
Description copied from interface:Changes
Look up a change by project, branch, and change ID.- Specified by:
id
in interfaceChanges
- Throws:
RestApiException
- See Also:
Changes.id(int)
-
id
public ChangeApi id(String project, int id) throws RestApiException
Description copied from interface:Changes
Look up a change by project and numeric ID.- Specified by:
id
in interfaceChanges
- Parameters:
project
- project name.id
- change number.- Throws:
RestApiException
- See Also:
Changes.id(int)
-
create
public ChangeApi create(ChangeInput in) throws RestApiException
- Specified by:
create
in interfaceChanges
- Throws:
RestApiException
-
createAsInfo
public ChangeInfo createAsInfo(ChangeInput in) throws RestApiException
- Specified by:
createAsInfo
in interfaceChanges
- Throws:
RestApiException
-
query
public Changes.QueryRequest query()
-
query
public Changes.QueryRequest query(String query)
-
-