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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PullBatchResponse

Returns a new instance of PullBatchResponse



446
447
448
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 446

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



444
445
446
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 444

def pull_responses
  @pull_responses
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



451
452
453
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 451

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