[[["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-02-14 UTC."],[],[],null,["# pubsub.Message class\n\nInterface representing a Google Cloud Pub/Sub message.\n\n**Signature:** \n\n export declare class Message\u003cT\u003e \n\nConstructors\n------------\n\n| Constructor | Modifiers | Description |\n|----------------------------------------------------------------------------------------|-----------|--------------------------------------------------|\n| [(constructor)(data)](./firebase-functions.pubsub.message.md#pubsubmessageconstructor) | | Constructs a new instance of the `Message` class |\n\nProperties\n----------\n\n| Property | Modifiers | Type | Description |\n|--------------------------------------------------------------------------------|-----------|------------------------------|------------------------------------------------------------------------------|\n| [attributes](./firebase-functions.pubsub.message.md#pubsubmessageattributes) | | { \\[key: string\\]: string; } | User-defined attributes published with the message, if any. |\n| [data](./firebase-functions.pubsub.message.md#pubsubmessagedata) | | string | The data payload of this message object as a base64-encoded string. |\n| [json](./firebase-functions.pubsub.message.md#pubsubmessagejson) | | T | The JSON data payload of this message object, if any. |\n| [messageId](./firebase-functions.pubsub.message.md#pubsubmessagemessageid) | | string | Autogenerated ID that uniquely identifies this message. |\n| [orderingKey](./firebase-functions.pubsub.message.md#pubsubmessageorderingkey) | | string | User-defined key used to ensure ordering amongst messages with the same key. |\n| [publishTime](./firebase-functions.pubsub.message.md#pubsubmessagepublishtime) | | string | Time the message was published |\n\nMethods\n-------\n\n| Method | Modifiers | Description |\n|------------------------------------------------------------------------|-----------|------------------------------------------------------------|\n| [toJSON()](./firebase-functions.pubsub.message.md#pubsubmessagetojson) | | Returns a JSON-serializable representation of this object. |\n\npubsub.Message.(constructor)\n----------------------------\n\nConstructs a new instance of the `Message` class\n\n**Signature:** \n\n constructor(data: any);\n\n### Parameters\n\n| Parameter | Type | Description |\n|-----------|------|-------------|\n| data | any | |\n\npubsub.Message.attributes\n-------------------------\n\nUser-defined attributes published with the message, if any.\n\n**Signature:** \n\n readonly attributes: {\n [key: string]: string;\n };\n\npubsub.Message.data\n-------------------\n\nThe data payload of this message object as a base64-encoded string.\n\n**Signature:** \n\n readonly data: string;\n\npubsub.Message.json\n-------------------\n\nThe JSON data payload of this message object, if any.\n\n**Signature:** \n\n get json(): T;\n\npubsub.Message.messageId\n------------------------\n\nAutogenerated ID that uniquely identifies this message.\n\n**Signature:** \n\n readonly messageId: string;\n\npubsub.Message.orderingKey\n--------------------------\n\nUser-defined key used to ensure ordering amongst messages with the same key.\n\n**Signature:** \n\n readonly orderingKey: string;\n\npubsub.Message.publishTime\n--------------------------\n\nTime the message was published\n\n**Signature:** \n\n readonly publishTime: string;\n\npubsub.Message.toJSON()\n-----------------------\n\nReturns a JSON-serializable representation of this object.\n\n**Signature:** \n\n toJSON(): any;\n\n**Returns:**\n\nany\n\nA JSON-serializable representation of this object."]]