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-08-14 UTC."],[[["\u003cp\u003eThis webpage provides C++ documentation for the \u003ccode\u003eMessage\u003c/code\u003e class in Google Cloud Pub/Sub, covering a range of versions from 2.11.0 to the latest release candidate, 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMessage\u003c/code\u003e class represents a Cloud Pub/Sub message, which requires at least data or attributes for communication between applications.\u003c/p\u003e\n"],["\u003cp\u003eYou can use the \u003ccode\u003eMessageBuilder\u003c/code\u003e class to construct \u003ccode\u003eMessage\u003c/code\u003e instances and it includes copy and move constructors and operators for flexible object manipulation.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers functions like \u003ccode\u003edata()\u003c/code\u003e, \u003ccode\u003emessage_id()\u003c/code\u003e, \u003ccode\u003eordering_key()\u003c/code\u003e, \u003ccode\u003epublish_time()\u003c/code\u003e, and \u003ccode\u003eattributes()\u003c/code\u003e for accessing various parts of a Pub/Sub message.\u003c/p\u003e\n"],["\u003cp\u003eAccessors provide read only, constant access, to the message data, allowing for safe retrieval of message information without altering the object.\u003c/p\u003e\n"]]],[],null,[]]