class Google::Apis::PubsubV1beta2::ReceivedMessage
A message and its corresponding acknowledgment ID.
Attributes
ack_id[RW]
This ID can be used to acknowledge the received message. Corresponds to the JSON property `ackId` @return [String]
message[RW]
A message data and its attributes. The message payload must not be empty; it must contain either a non-empty data field, or at least one attribute. Corresponds to the JSON property `message` @return [Google::Apis::PubsubV1beta2::PubsubMessage]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/pubsub_v1beta2/classes.rb, line 639 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/pubsub_v1beta2/classes.rb, line 644 def update!(**args) @ack_id = args[:ack_id] if args.key?(:ack_id) @message = args[:message] if args.key?(:message) end