public PubsubFuture<List<ReceivedMessage>> pull(final String project, final String subscription) {
    return pull(project, subscription, DEFAULT_PULL_RETURN_IMMEDIATELY, DEFAULT_PULL_MAX_MESSAGES);
  }
public PubsubFuture < List < ReceivedMessage > > pull ( final String project , final String subscription ) { return pull ( project , subscription , DEFAULT_PULL_RETURN_IMMEDIATELY , DEFAULT_PULL_MAX_MESSAGES ) ; }
Pull a batch of messages.

@param project      The Google Cloud project.
@param subscription The subscription to pull from.
@return a future that is completed with a list of received messages.