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 used for Cloud Pub/Sub communication, which requires either data or attributes to be present in messages.\u003c/p\u003e\n"],["\u003cp\u003eThe document provides links to the \u003ccode\u003eMessage\u003c/code\u003e class across different versions, ranging from version 2.11.0 to the latest release candidate 2.37.0-rc.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMessage\u003c/code\u003e class includes constructors, copy and move operators, and functions for accessing message data, message ID, ordering key, publish time, and attributes.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMessageBuilder\u003c/code\u003e class can be used to create instances of the \u003ccode\u003eMessage\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThere are also versions of the functions \u003ccode\u003edata()\u003c/code\u003e, and \u003ccode\u003eoperator=()\u003c/code\u003e to support copy and move functionality.\u003c/p\u003e\n"]]],[],null,[]]