class Google::Apis::PubsubV1beta2::PullRequest
Request for the `Pull` method.
Attributes
The maximum number of messages returned for this request. The Pub/Sub system may return fewer than the number specified. Corresponds to the JSON property `maxMessages` @return [Fixnum]
If this is specified as true the system will respond immediately even if it is not able to return a message in the `Pull` response. Otherwise the system is allowed to wait until at least one message is available rather than returning no messages. The client may cancel the request if it does not wish to wait any longer for the response. Corresponds to the JSON property `returnImmediately` @return [Boolean]
If this is specified as true the system will respond immediately even if it is not able to return a message in the `Pull` response. Otherwise the system is allowed to wait until at least one message is available rather than returning no messages. The client may cancel the request if it does not wish to wait any longer for the response. Corresponds to the JSON property `returnImmediately` @return [Boolean]
Public Class Methods
# File generated/google/apis/pubsub_v1beta2/classes.rb, line 541 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File generated/google/apis/pubsub_v1beta2/classes.rb, line 546 def update!(**args) @return_immediately = args[:return_immediately] unless args[:return_immediately].nil? @max_messages = args[:max_messages] unless args[:max_messages].nil? end