Class: Google::Apis::PubsubV1beta2::PullResponse

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

Overview

Response for the Pull method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PullResponse

Returns a new instance of PullResponse



564
565
566
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 564

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

Instance Attribute Details

#received_messagesArray<Google::Apis::PubsubV1beta2::ReceivedMessage>

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



562
563
564
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 562

def received_messages
  @received_messages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



569
570
571
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 569

def update!(**args)
  @received_messages = args[:received_messages] unless args[:received_messages].nil?
end