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 details the C++ \u003ccode\u003eMessage\u003c/code\u003e class used in Cloud Pub/Sub, which facilitates communication between applications via messages.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version available is \u003ccode\u003e2.37.0-rc\u003c/code\u003e, and it lists past versions of the \u003ccode\u003eMessage\u003c/code\u003e class documentation back to \u003ccode\u003e2.11.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eMessages in Cloud Pub/Sub must contain at least data or attributes and can be created using the \u003ccode\u003eMessageBuilder\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe document provides information on how to copy, move, access data, and modify attributes using Constructors, operators, and accessors.\u003c/p\u003e\n"],["\u003cp\u003eFunctions listed include \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, all of which are used for accessing message details.\u003c/p\u003e\n"]]],[],null,[]]