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 documentation for the C++ \u003ccode\u003eMessage\u003c/code\u003e class used in Cloud Pub/Sub, with links to various versions of the documentation, including the latest release candidate and past versions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMessage\u003c/code\u003e class facilitates communication between Cloud Pub/Sub applications, requiring at least some data or attributes to be present within each message.\u003c/p\u003e\n"],["\u003cp\u003eInstances of the \u003ccode\u003eMessage\u003c/code\u003e class should be constructed using the \u003ccode\u003eMessageBuilder\u003c/code\u003e class, which is available to help ensure the correct creation of new message objects.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMessage\u003c/code\u003e class offers several constructors and operators for copying and moving messages, along with functions to access message components such as data, message ID, ordering key, publish time, and attributes.\u003c/p\u003e\n"],["\u003cp\u003eThe most current stable version of the Pub/Sub message class is \u003ccode\u003e2.36.0\u003c/code\u003e, and the latest release candidate is \u003ccode\u003e2.37.0-rc\u003c/code\u003e, with additional information on the class in other versions ranging from \u003ccode\u003e2.11.0\u003c/code\u003e to \u003ccode\u003e2.35.0\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]