命名空间:pubsub
bookmark_borderbookmark
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
方法
示例消息
静止的
exampleMessage() 返回functions.pubsub.Message
获取已填充数据的示例消息。
- 退货
non-null functions.pubsub.Message
发送消息
静止的
makeMessage(encodedString,attributes)返回functions.pubsub.Message
为具有 Base64 编码字符串形式的数据负载的消息创建 Pubsub 事件的函数。
范围 |
---|
编码字符串 | 细绳 pubsubMessage 内容的 Base64 编码字符串。
|
属性 | 选修的 目的 要指定的pubsubMessage 的属性。 值可能为空。 |
- 退货
non-null functions.pubsub.Message
发送消息
静止的
makeMessage(json, attribute) 返回functions.pubsub.Message
为带有 JSON 负载的消息创建 Pubsub 事件的函数。
范围 |
---|
json | 目的 pubsubMessage 的内容作为 JSON 负载。
值不能为空。 |
属性 | 选修的 目的 要指定的pubsubMessage 的属性。 值可能为空。 |
- 退货
non-null functions.pubsub.Message
为您推荐
关于这些推荐文档页面
这些推荐文档页面可以帮助您找到要查找的内容。它们可能基于您当前正在查看的页面以及您的账号保存的页面。 网络与应用活动记录.
了解详情Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.
更新于 Mar 24, 2022
Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.
更新于 Mar 24, 2022
Firebase gives you the tools and infrastructure you need to build better mobile and web apps, improve app quality, and grow your business.
更新于 Mar 24, 2022
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2023-12-01。
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["没有我需要的信息","missingTheInformationINeed","thumb-down"],["太复杂/步骤太多","tooComplicatedTooManySteps","thumb-down"],["内容需要更新","outOfDate","thumb-down"],["翻译问题","translationIssue","thumb-down"],["示例/代码问题","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2023-12-01。"],[],[]]