[[["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 2019-12-03 UTC."],[],[],null,["# Namespace: pubsub\n\n[test](/docs/reference/functions/test/test).pubsub\n==================================================\n\nnamespace static\n\nNamespace for testing Pubsub functions using the Cloud Functions for Firebase Test SDK.\n\nMethods\n-------\n\n### exampleMessage\n\nstatic\n\nexampleMessage() returns functions.pubsub.Message\n\nFetch an example Message already populated with data.\n\nReturns\n\n: `non-null functions.pubsub.Message`\n\n### makeMessage\n\nstatic\n\nmakeMessage(encodedString, attributes) returns functions.pubsub.Message\n\nFunction to create a Pubsub event for a message with data payload in the form of a base64-encoded string.\n\n| #### Parameter ||\n|---------------|------------------------------------------------------------------------------|\n| encodedString | string Base64-encoded string for the content of a `pubsubMessage`. |\n| attributes | Optional Object Attributes of `pubsubMessage` to specify. Value may be null. |\n\nReturns\n\n: `non-null functions.pubsub.Message`\n\n### makeMessage\n\nstatic\n\nmakeMessage(json, attributes) returns functions.pubsub.Message\n\nFunction to create a Pubsub event for a message with JSON payload.\n\n| #### Parameter ||\n|------------|------------------------------------------------------------------------------|\n| json | Object Content of `pubsubMessage` as a JSON payload. Value must not be null. |\n| attributes | Optional Object Attributes of `pubsubMessage` to specify. Value may be null. |\n\nReturns\n\n: `non-null functions.pubsub.Message`"]]