Class: Google::Apis::PubsubV1beta2::ReceivedMessage
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1beta2::ReceivedMessage
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pubsub_v1beta2/classes.rb,
generated/google/apis/pubsub_v1beta2/representations.rb,
generated/google/apis/pubsub_v1beta2/representations.rb
Overview
A message and its corresponding acknowledgment ID.
Instance Attribute Summary collapse
-
#ack_id ⇒ String
This ID can be used to acknowledge the received message.
-
#message ⇒ Google::Apis::PubsubV1beta2::PubsubMessage
A message data and its attributes.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ReceivedMessage
constructor
A new instance of ReceivedMessage.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ReceivedMessage
Returns a new instance of ReceivedMessage.
639 640 641 |
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 639 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ack_id ⇒ String
This ID can be used to acknowledge the received message.
Corresponds to the JSON property ackId
631 632 633 |
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 631 def ack_id @ack_id end |
#message ⇒ Google::Apis::PubsubV1beta2::PubsubMessage
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
637 638 639 |
# File 'generated/google/apis/pubsub_v1beta2/classes.rb', line 637 def @message end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
644 645 646 647 |
# File 'generated/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 |