Codota Logo
Gmail$Users$Messages$List.setMaxResults
Code IndexAdd Codota to your IDE (free)

How to use
setMaxResults
method
in
com.google.api.services.gmail.Gmail$Users$Messages$List

Best Java code snippets using com.google.api.services.gmail.Gmail$Users$Messages$List.setMaxResults (Showing top 3 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
ArrayList a =
  • Codota Iconnew ArrayList<String>()
  • Codota Iconnew ArrayList()
  • Codota Iconnew ArrayList<Object>()
  • Smart code suggestions by Codota
}
origin: google/data-transfer-project

@Before
public void setup() throws IOException {
 googleMailExporter = new GoogleMailExporter(googleCredentialFactory, gmail);
 when(gmail.users()).thenReturn(users);
 when(users.messages()).thenReturn(messages);
 when(messages.list(Matchers.anyString())).thenReturn(messageListRequest);
 when(messageListRequest.setMaxResults(Matchers.anyLong())).thenReturn(messageListRequest);
 when(messages.get(Matchers.anyString(), Matchers.anyString())).thenReturn(get);
 when(get.setFormat(Matchers.anyString())).thenReturn(get);
 verifyZeroInteractions(googleCredentialFactory);
}
origin: google/data-transfer-project

inOrder.verify(messageListRequest).setMaxResults(GoogleMailExporter.PAGE_SIZE);
verify(messageListRequest, never()).setPageToken(Matchers.anyString());
origin: google/data-transfer-project

 request = gmail.users().messages().list(USER).setMaxResults(PAGE_SIZE);
} catch (IOException e) {
 return new ExportResult<>(e);
com.google.api.services.gmailGmail$Users$Messages$ListsetMaxResults

Javadoc

Maximum number of messages to return.

Popular methods of Gmail$Users$Messages$List

  • execute
  • setQ
    Only return messages matching the specified query. Supports the same query format as the Gmail searc
  • setPageToken
    Page token to retrieve a specific page of results in the list.
  • <init>
    Lists the messages in the user's mailbox. Create a request for the method "messages.list". This requ
  • queue
  • setFields

Popular in Java

  • Reading from database using SQL prepared statement
  • getSystemService (Context)
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • Window (java.awt)
    A Window object is a top-level window with no borders and no menubar. The default layout for a windo
  • Comparator (java.util)
    A Comparator is used to compare two objects to determine their ordering with respect to each other.
  • GregorianCalendar (java.util)
    GregorianCalendar is a concrete subclass of Calendarand provides the standard calendar used by most
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • SortedSet (java.util)
    A Set that further provides a total ordering on its elements. The elements are ordered using their C
  • DataSource (javax.sql)
    A factory for connections to the physical data source that this DataSource object represents. An alt
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now