functions.pubsub. Message
interface static
Interface representing a Google Cloud Pub/Sub message.
Properties
attributes
non-null Object
User-defined attributes published with the message, if any.
data
string
The data payload of this message object as a base64-encoded string.
json
any type
The JSON data payload of this message object, if any.
Method
toJSON
toJSON() returns Object
Returns a JSON-serializable representation of this object.
- Returns
-
non-null ObjectA JSON-serializable representation of this object.


