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 Summary
Constructors - 
Method Summary
Modifier 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
- 
QueryRequest
public QueryRequest() 
 - 
 - 
Method Details
- 
get
Execute query and return a list of accounts.- Throws:
 RestApiException
 - 
withQuery
Set query.- Parameters:
 query- needs to be in human-readable form.
 - 
withLimit
Set limit for returned list of accounts. Optional; server-default is used when not provided. - 
withStart
Set number of accounts to skip. Optional; no accounts are skipped when not provided. - 
withSuggest
 - 
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() - 
getSuggest
public boolean getSuggest() - 
getOptions
 
 -