Class: Google::Pubsub::V1::PullRequest
- Inherits:
-
Object
- Object
- Google::Pubsub::V1::PullRequest
- Defined in:
- lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb
Overview
Request for the +Pull+ method.
Instance Attribute Summary collapse
-
#max_messages ⇒ Integer
The maximum number of messages returned for this request.
-
#return_immediately ⇒ true, false
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.
-
#subscription ⇒ String
The subscription from which messages should be pulled.
Instance Attribute Details
#max_messages ⇒ Integer
Returns The maximum number of messages returned for this request. The Pub/Sub system may return fewer than the number specified.
311 |
# File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 311 class PullRequest; end |
#return_immediately ⇒ true, false
Returns 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. The client may cancel the request if it does not wish to wait any longer for the response.
311 |
# File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 311 class PullRequest; end |
#subscription ⇒ String
Returns The subscription from which messages should be pulled. Format is +projects/project/subscriptions/sub+.
311 |
# File 'lib/google/cloud/pubsub/v1/doc/google/pubsub/v1/pubsub.rb', line 311 class PullRequest; end |