/** * Lists the messages in the user's mailbox. * * Create a request for the method "messages.list". * * This request holds the parameters needed by the gmail server. After setting any optional * parameters, call the {@link List#execute()} method to invoke the remote operation. * * @param userId The user's email address. The special value me can be used to indicate the authenticated user. * [default: me] * @return the request */ public List list(java.lang.String userId) throws java.io.IOException { List result = new List(userId); initialize(result); return result; }