You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 17, 2026. It is now read-only.
Copy file name to clipboardExpand all lines: src/index.ts
+12-4Lines changed: 12 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -31,21 +31,29 @@
31
31
* @module {PubSub} @google-cloud/pubsub
32
32
* @alias nodejs-pubsub
33
33
*
34
-
* @example <caption>Install the client library with <a href="https://www.npmjs.com/">npm</a>:</caption>
34
+
* @example Install the client library with <a href="https://www.npmjs.com/">npm</a>:
35
+
* ```
35
36
* npm install @google-cloud/pubsub
36
37
*
37
-
* @example <caption>Import the client library</caption>
* @example <caption>Create a client that uses <a href="https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application">Application Default Credentials (ADC)</a>:</caption>
43
+
* ```
44
+
* @example Create a client that uses <a href="https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application">Application Default Credentials (ADC)</a>:
45
+
* ```
41
46
* const pubsub = new PubSub();
42
47
*
43
-
* @example <caption>Create a client with <a href="https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually">explicit credentials</a>:</caption>
48
+
* ```
49
+
* @example Create a client with <a href="https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually">explicit credentials</a>:
* @example <caption>Create a client that uses <a href="https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application">Application Default Credentials (ADC)</a>:</caption>
234
+
* ```
235
+
* @example Create a client that uses <a href="https://cloud.google.com/docs/authentication/production#providing_credentials_to_your_application">Application Default Credentials (ADC)</a>:
236
+
* ```
234
237
* const pubsub = new PubSub();
235
238
*
236
-
* @example <caption>Create a client with <a href="https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually">explicit credentials</a>:</caption>
239
+
* ```
240
+
* @example Create a client with <a href="https://cloud.google.com/docs/authentication/production#obtaining_and_providing_service_account_credentials_manually">explicit credentials</a>:
0 commit comments