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::Message]
Public Class Methods
new(**args)
click to toggle source
# File generated/google/apis/pubsub_v1beta2/classes.rb, line 589 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File generated/google/apis/pubsub_v1beta2/classes.rb, line 594 def update!(**args) @ack_id = args[:ack_id] unless args[:ack_id].nil? @message = args[:message] unless args[:message].nil? end