Class: Google::Apis::PubsubV1beta1a::PullBatchResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/pubsub_v1beta1a/classes.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb

Overview

Response for the PullBatch method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PullBatchResponse

Returns a new instance of PullBatchResponse.



434
435
436
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 434

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#pull_responsesArray<Google::Apis::PubsubV1beta1a::PullResponse>

Received Pub/Sub messages or status events. The Pub/Sub system will return zero messages if there are no more messages available in the backlog. The Pub/ Sub system may return fewer than the max_events requested even if there are more messages available in the backlog. Corresponds to the JSON property pullResponses



432
433
434
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 432

def pull_responses
  @pull_responses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



439
440
441
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 439

def update!(**args)
  @pull_responses = args[:pull_responses] if args.key?(:pull_responses)
end