Class Projects.QueryRequest
- java.lang.Object
-
- com.google.gerrit.extensions.api.projects.Projects.QueryRequest
-
- Enclosing interface:
- Projects
public abstract static class Projects.QueryRequest extends Object
API for setting parameters and getting result. Used forquery()
.- See Also:
Projects.query()
-
-
Constructor Summary
Constructors Constructor Description QueryRequest()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description abstract List<ProjectInfo>
get()
Execute query and returns the matched projects as list.int
getLimit()
String
getQuery()
int
getStart()
Projects.QueryRequest
withLimit(int limit)
Set limit for returned list of projects.Projects.QueryRequest
withQuery(String query)
Set query.Projects.QueryRequest
withStart(int start)
Set number of projects to skip.
-
-
-
Method Detail
-
get
public abstract List<ProjectInfo> get() throws RestApiException
Execute query and returns the matched projects as list.- Throws:
RestApiException
-
withQuery
public Projects.QueryRequest withQuery(String query)
Set query.- Parameters:
query
- needs to be in human-readable form.
-
withLimit
public Projects.QueryRequest withLimit(int limit)
Set limit for returned list of projects. Optional; server-default is used when not provided.
-
withStart
public Projects.QueryRequest withStart(int start)
Set number of projects to skip. Optional; no projects are skipped when not provided.
-
getQuery
public String getQuery()
-
getLimit
public int getLimit()
-
getStart
public int getStart()
-
-