Cloud Pub/Sub V1 API - Class Google::Cloud::PubSub::V1::PullResponse (v0.14.0)

Reference documentation and code samples for the Cloud Pub/Sub V1 API class Google::Cloud::PubSub::V1::PullResponse.

Response for the Pull method.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#received_messages

def received_messages() -> ::Array<::Google::Cloud::PubSub::V1::ReceivedMessage>
Returns
  • (::Array<::Google::Cloud::PubSub::V1::ReceivedMessage>) — Received Pub/Sub messages. The list will be empty if there are no more messages available in the backlog, or if no messages could be returned before the request timeout. 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.

#received_messages=

def received_messages=(value) -> ::Array<::Google::Cloud::PubSub::V1::ReceivedMessage>
Parameter
  • value (::Array<::Google::Cloud::PubSub::V1::ReceivedMessage>) — Received Pub/Sub messages. The list will be empty if there are no more messages available in the backlog, or if no messages could be returned before the request timeout. 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.
Returns
  • (::Array<::Google::Cloud::PubSub::V1::ReceivedMessage>) — Received Pub/Sub messages. The list will be empty if there are no more messages available in the backlog, or if no messages could be returned before the request timeout. 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.