The C++ representation for a Cloud Pub/Sub messages.
Cloud Pub/Sub applications communicate to each other using messages. Note that messages must provide at least some data or some attributes. Use MessageBuilder to create instances of this class.
[[["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-07-02 UTC."],[[["This webpage provides C++ documentation for the `Message` class in Google Cloud Pub/Sub, covering a range of versions from 2.11.0 to the latest release candidate, 2.37.0-rc."],["The `Message` class represents a Cloud Pub/Sub message, which requires at least data or attributes for communication between applications."],["You can use the `MessageBuilder` class to construct `Message` instances and it includes copy and move constructors and operators for flexible object manipulation."],["The class offers functions like `data()`, `message_id()`, `ordering_key()`, `publish_time()`, and `attributes()` for accessing various parts of a Pub/Sub message."],["Accessors provide read only, constant access, to the message data, allowing for safe retrieval of message information without altering the object."]]],[]]