Class: Google::Apis::PubsubV1::PullResponse

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

Overview

Response for the Pull 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) ⇒ PullResponse

Returns a new instance of PullResponse



621
622
623
# File 'generated/google/apis/pubsub_v1/classes.rb', line 621

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

Instance Attribute Details

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

Received Pub/Sub messages. The list will be empty if there are no more messages available in the backlog. For JSON, the response can be entirely empty. 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



619
620
621
# File 'generated/google/apis/pubsub_v1/classes.rb', line 619

def received_messages
  @received_messages
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



626
627
628
# File 'generated/google/apis/pubsub_v1/classes.rb', line 626

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