public sealed class ReceivedMessage : IMessage<ReceivedMessage>, IEquatable<ReceivedMessage>, IDeepCloneable<ReceivedMessage>, IBufferMessage, IMessage
A message and its corresponding acknowledgment ID.
The approximate number of times that Cloud Pub/Sub has attempted to deliver
the associated message to a subscriber.
More precisely, this is 1 + (number of NACKs) +
(number of ack_deadline exceeds) for this message.
A NACK is any call to ModifyAckDeadline with a 0 deadline. An ack_deadline
exceeds event is whenever a message is not acknowledged within
ack_deadline. Note that ack_deadline is initially
Subscription.ackDeadlineSeconds, but may get extended automatically by
the client library.
Upon the first delivery of a given message, delivery_attempt will have a
value of 1. The value is calculated at best effort and is approximate.
If a DeadLetterPolicy is not set on the subscription, this will be 0.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis webpage details the \u003ccode\u003eReceivedMessage\u003c/code\u003e class within the \u003ccode\u003eGoogle.Cloud.PubSub.V1\u003c/code\u003e namespace, offering a comprehensive overview of its properties, constructors, and inherited members across multiple versions.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of \u003ccode\u003eReceivedMessage\u003c/code\u003e is 3.23.0, and the page provides links to the documentation for versions spanning from 3.23.0 back to 2.3.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eReceivedMessage\u003c/code\u003e class represents a message and its acknowledgment ID, implementing interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and it inherits from \u003ccode\u003eObject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eKey properties of \u003ccode\u003eReceivedMessage\u003c/code\u003e include \u003ccode\u003eAckId\u003c/code\u003e, \u003ccode\u003eDeliveryAttempt\u003c/code\u003e, and \u003ccode\u003eMessage\u003c/code\u003e, with \u003ccode\u003eAckId\u003c/code\u003e being a string used for message acknowledgment, \u003ccode\u003eDeliveryAttempt\u003c/code\u003e an integer indicating delivery attempts, and \u003ccode\u003eMessage\u003c/code\u003e being a \u003ccode\u003ePubsubMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eIt has two constructors, a parameterless constructor and another accepting another \u003ccode\u003eReceivedMessage\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]