Skip to content

Commit

Permalink
samples: add a region tag for docs (#352)
Browse files Browse the repository at this point in the history
* samples: add a region tag for docs

* add a region tag
  • Loading branch information
anguillanneuf committed Sep 28, 2020
1 parent a988b19 commit 68ad21d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
3 changes: 3 additions & 0 deletions samples/snippets/src/main/java/pubsub/CreateTopicExample.java
Expand Up @@ -17,6 +17,7 @@
package pubsub;

// [START pubsub_create_topic]
// [START pubsub_quickstart_create_topic]

import com.google.cloud.pubsub.v1.TopicAdminClient;
import com.google.pubsub.v1.Topic;
Expand All @@ -41,3 +42,5 @@ public static void createTopicExample(String projectId, String topicId) throws I
}
}
// [END pubsub_create_topic]
// [END pubsub_quickstart_create_topic]

2 changes: 2 additions & 0 deletions samples/snippets/src/main/java/pubsub/PublisherExample.java
Expand Up @@ -17,6 +17,7 @@
package pubsub;

// [START pubsub_quickstart_publisher]
// [START pubsub_publish]

import com.google.api.core.ApiFuture;
import com.google.cloud.pubsub.v1.Publisher;
Expand Down Expand Up @@ -63,3 +64,4 @@ public static void publisherExample(String projectId, String topicId)
}
}
// [END pubsub_quickstart_publisher]
// [END pubsub_publish]

0 comments on commit 68ad21d

Please sign in to comment.