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 SummaryConstructors Constructor Description QueryRequest()
 - 
Method SummaryAll 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.intgetLimit()StringgetQuery()intgetStart()Projects.QueryRequestwithLimit(int limit)Set limit for returned list of projects.Projects.QueryRequestwithQuery(String query)Set query.Projects.QueryRequestwithStart(int start)Set number of projects to skip.
 
- 
- 
- 
Method Detail- 
getpublic abstract List<ProjectInfo> get() throws RestApiException Execute query and returns the matched projects as list.- Throws:
- RestApiException
 
 - 
withQuerypublic Projects.QueryRequest withQuery(String query) Set query.- Parameters:
- query- needs to be in human-readable form.
 
 - 
withLimitpublic Projects.QueryRequest withLimit(int limit) Set limit for returned list of projects. Optional; server-default is used when not provided.
 - 
withStartpublic Projects.QueryRequest withStart(int start) Set number of projects to skip. Optional; no projects are skipped when not provided.
 - 
getQuerypublic String getQuery() 
 - 
getLimitpublic int getLimit() 
 - 
getStartpublic int getStart() 
 
- 
 
-