GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Pubsub: Add missing region tag [(#1498)](https://github.com/GoogleClo… · busunkim96/python-pubsub@915f209

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • samples/snippets
    • publisher.py
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎samples/snippets/publisher.py‎

Copy file name to clipboardExpand all lines: samples/snippets/publisher.py
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def delete_topic(project, topic_name):
6464
def publish_messages(project, topic_name):
6565
"""Publishes multiple messages to a Pub/Sub topic."""
6666
# [START pubsub_quickstart_publisher]
67+
# [START pubsub_publish]
6768
publisher = pubsub_v1.PublisherClient()
6869
topic_path = publisher.topic_path(project, topic_name)
6970

@@ -75,6 +76,7 @@ def publish_messages(project, topic_name):
7576

7677
print('Published messages.')
7778
# [END pubsub_quickstart_publisher]
79+
# [END pubsub_publish]
7880

7981

8082
def publish_messages_with_custom_attributes(project, topic_name):

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.