We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e88d3fa commit d85c65fCopy full SHA for d85c65f
pubsub/cloud-client/publisher.py
@@ -64,6 +64,7 @@ def delete_topic(project, topic_name):
64
def publish_messages(project, topic_name):
65
"""Publishes multiple messages to a Pub/Sub topic."""
66
# [START pubsub_quickstart_publisher]
67
+ # [START pubsub_publish]
68
publisher = pubsub_v1.PublisherClient()
69
topic_path = publisher.topic_path(project, topic_name)
70
@@ -75,6 +76,7 @@ def publish_messages(project, topic_name):
75
76
77
print('Published messages.')
78
# [END pubsub_quickstart_publisher]
79
+ # [END pubsub_publish]
80
81
82
def publish_messages_with_custom_attributes(project, topic_name):
0 commit comments