Tabnine Logo
Gmail$Users$Messages$List.setQ
Code IndexAdd Tabnine to your IDE (free)

How to use
setQ
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.setQ (Showing top 3 results out of 315)

origin: TEAMMATES/teammates

/**
 * Returns an empty list if there is no unread email of the user.
 */
private List<Message> getListOfUnreadEmailOfUser() throws IOException {
  List<Message> messageStubs = service.users().messages().list(username).setQ("is:UNREAD").execute().getMessages();
  return messageStubs == null ? new ArrayList<>() : messageStubs;
}
origin: kebernet/shortyz

    .messages()
    .list("me")
    .setQ(query)
    .execute();
LOGGER.fine("==Found "+ neverNull(response.getMessages()).size()+" messages.");
origin: google/mail-importer

for (LocalMessage localMessage : localMessages) {
 gmail.users().messages().list(user.getEmailAddress())
   .setQ("rfc822msgid:" + localMessage.getMessageId())
   .setFields("messages(id)")
   .queue(batch, new JsonBatchCallback<ListMessagesResponse>() {
com.google.api.services.gmailGmail$Users$Messages$ListsetQ

Javadoc

Only return messages matching the specified query. Supports the same query format as the Gmail search box. For example, "from:someuser@example.com rfc822msgid: is:unread". Parameter cannot be used when accessing the api using the gmail.metadata scope.

Popular methods of Gmail$Users$Messages$List

  • execute
  • setMaxResults
    Maximum number of messages to return.
  • 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

  • Finding current android device location
  • getContentResolver (Context)
  • getExternalFilesDir (Context)
  • scheduleAtFixedRate (ScheduledExecutorService)
  • Container (java.awt)
    A generic Abstract Window Toolkit(AWT) container object is a component that can contain other AWT co
  • String (java.lang)
  • URLEncoder (java.net)
    This class is used to encode a string using the format required by application/x-www-form-urlencoded
  • JFileChooser (javax.swing)
  • LogFactory (org.apache.commons.logging)
    Factory for creating Log instances, with discovery and configuration features similar to that employ
  • Table (org.hibernate.mapping)
    A relational table
  • From CI to AI: The AI layer in your organization
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now