Class Groups.QueryRequest
java.lang.Object
com.google.gerrit.extensions.api.groups.Groups.QueryRequest
- Enclosing interface:
- Groups
API for setting parameters and getting result. Used for
query()
.- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionget()
Execute query and returns the matched groups as list.int
getLimit()
getQuery()
int
getStart()
withLimit
(int limit) Set limit for returned list of groups.withOption
(ListGroupsOption options) Set an option on the request, appending to existing options.withOptions
(ListGroupsOption... options) Set options on the request, appending to existing options.withOptions
(Set<ListGroupsOption> options) Set options on the request, replacing existing options.Set query.withStart
(int start) Set number of groups to skip.
-
Constructor Details
-
QueryRequest
public QueryRequest()
-
-
Method Details
-
get
Execute query and returns the matched groups as list.- Throws:
RestApiException
-
withQuery
Set query.- Parameters:
query
- needs to be in human-readable form.
-
withLimit
Set limit for returned list of groups. Optional; server-default is used when not provided. -
withStart
Set number of groups to skip. Optional; no groups are skipped when not provided. -
withOption
Set an option on the request, appending to existing options. -
withOptions
Set options on the request, appending to existing options. -
withOptions
Set options on the request, replacing existing options. -
getQuery
-
getLimit
public int getLimit() -
getStart
public int getStart() -
getOptions
-