maxMessages = $maxMessages; } /** * @return int */ public function getMaxMessages() { return $this->maxMessages; } /** * Optional. If this field set to true, the system will respond immediately * even if it there are no messages available to return in the `Pull` * response. Otherwise, the system may wait (for a bounded amount of time) * until at least one message is available, rather than returning no messages. * Warning: setting this field to `true` is discouraged because it adversely * impacts the performance of `Pull` operations. We recommend that users do * not set this field. * * @deprecated * @param bool $returnImmediately */ public function setReturnImmediately($returnImmediately) { $this->returnImmediately = $returnImmediately; } /** * @deprecated * @return bool */ public function getReturnImmediately() { return $this->returnImmediately; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(PullRequest::class, 'Google_Service_Pubsub_PullRequest');