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 for query().
See Also:
  • Constructor Details

    • QueryRequest

      public QueryRequest()
  • Method Details

    • 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()