firebase_functions.pubsub_fn module
Stay organized with collections
Save and categorize content based on your preferences.
Functions to handle events from Google Cloud Pub/Sub.
Classes
Messageclass firebase_functions.pubsub_fn.Message(message_id: str, publish_time: str, attributes: dict[str, str], data: str, ordering_key: str) |
---|
Bases: Generic [T ]
Interface representing a Google Cloud Pub/Sub message.
-
attributes: dict[str, str]
User-defined attributes published with the message, if any.
-
data: str
The data payload of this message object as a base64-encoded string.
-
message_id: str
Autogenerated ID that uniquely identifies this message.
-
ordering_key: str
User-defined key used to ensure ordering amongst messages with the same key.
-
publish_time: str
Time the message was published.
|
MessagePublishedDataclass firebase_functions.pubsub_fn.MessagePublishedData(message: Message[T], subscription: str) |
---|
Bases: Generic [T ]
The interface published in a Pub/Sub publish subscription.
'T' Type representing Message.data's JSON format.
-
message: Message[T]
Google Cloud Pub/Sub message.
-
subscription: str
A subscription resource.
|
Functions
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2023-11-06 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2023-11-06 UTC."}