Class Accounts.QueryRequest
java.lang.Object
com.google.gerrit.extensions.api.accounts.Accounts.QueryRequest
- Enclosing interface:
- Accounts
API for setting parameters and getting result. Used for 
query().- See Also:
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionabstract List<AccountInfo>get()Execute query and return a list of accounts.intgetLimit()getQuery()intgetStart()booleanwithLimit(int limit) Set limit for returned list of accounts.withOption(ListAccountsOption options) Set an option on the request, appending to existing options.withOptions(ListAccountsOption... options) Set options on the request, appending to existing options.withOptions(Set<ListAccountsOption> options) Set options on the request, replacing existing options.Set query.withStart(int start) Set number of accounts to skip.withSuggest(boolean suggest) 
- 
Constructor Details- 
QueryRequestpublic QueryRequest()
 
- 
- 
Method Details- 
getExecute query and return a list of accounts.- Throws:
- RestApiException
 
- 
withQuerySet query.- Parameters:
- query- needs to be in human-readable form.
 
- 
withLimitSet limit for returned list of accounts. Optional; server-default is used when not provided.
- 
withStartSet number of accounts to skip. Optional; no accounts are skipped when not provided.
- 
withSuggest
- 
withOptionSet an option on the request, appending to existing options.
- 
withOptionsSet options on the request, appending to existing options.
- 
withOptionsSet options on the request, replacing existing options.
- 
getQuery
- 
getLimitpublic int getLimit()
- 
getStartpublic int getStart()
- 
getSuggestpublic boolean getSuggest()
- 
getOptions
 
-