Send feedback
pubsub namespace
Stay organized with collections
Save and categorize content based on your preferences.
Functions
Function
Description
schedule(schedule)
Registers a Cloud Function to run at specified times.
topic(topic)
Registers a Cloud Function triggered when a Google Cloud Pub/Sub message is sent to a specified topic.
Classes
Class
Description
Message
Interface representing a Google Cloud Pub/Sub message.
ScheduleBuilder
The builder for scheduled functions, which are powered by Google Pub/Sub and Cloud Scheduler. Describes the Cloud Scheduler job that is deployed to trigger a scheduled function at the provided frequency. For more information, see [Schedule functions](/docs/functions/schedule-functions).Access via functions.pubsub.schedule()
.
TopicBuilder
The Google Cloud Pub/Sub topic builder.Access via functions.pubsub.topic()
.
pubsub.schedule()
Registers a Cloud Function to run at specified times.
Signature:
export declare function schedule ( schedule : string ) : ScheduleBuilder ;
Parameters
Parameter
Type
Description
schedule
string
The schedule, in Unix Crontab or AppEngine syntax.
Returns:
ScheduleBuilder
ScheduleBuilder interface.
pubsub.topic()
Registers a Cloud Function triggered when a Google Cloud Pub/Sub message is sent to a specified topic.
Signature:
export declare function topic ( topic : string ) : TopicBuilder ;
Parameters
Parameter
Type
Description
topic
string
The Pub/Sub topic to watch for message events.
Returns:
TopicBuilder
Pub/Sub topic builder interface.
Send feedback
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-04-24 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"
}]
Need to tell us more?
{"lastModified": "Last updated 2023-04-24 UTC."}
[[["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 2023-04-24 UTC."]]