class Google::Apis::PubsubV1::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::PubsubV1::Message]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/pubsub_v1/classes.rb, line 591
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_v1/classes.rb, line 596
def update!(**args)
  @ack_id = args[:ack_id] if args.key?(:ack_id)
  @message = args[:message] if args.key?(:message)
end