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 document outlines the C++ \u003ccode\u003eMessage\u003c/code\u003e class, which is a core component for Cloud Pub/Sub communication, requiring either data or attributes to be present in each message.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is 2.37.0-rc, with a variety of other stable releases ranging from 2.36.0 down to 2.11.0 also listed for reference.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMessage\u003c/code\u003e class facilitates copying and moving through provided constructors and assignment operators, and instances of this class should be made using the \u003ccode\u003eMessageBuilder\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMessage\u003c/code\u003e class includes accessor functions to retrieve message details such as \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.\u003c/p\u003e\n"],["\u003cp\u003eEach version listed in the document has a corresponding link to its specific class details, showing the changes made throughout the different versions of this class.\u003c/p\u003e\n"]]],[],null,[]]