Interfaces

Method

topic

static

topic(topic) returns functions.pubsub.TopicBuilder

Registers a Cloud Function triggered when a Google Cloud Pub/Sub message is sent to a specified topic.

Parameter

topic

string

The Pub/Sub topic to watch for message events.

Returns

non-null functions.pubsub.TopicBuilder Pub/Sub topic builder interface.