Skip to content

Commit

Permalink
fix(docs): properly show how to require this module (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
jkwlui authored and JustinBeckwith committed Jan 28, 2019
1 parent afd2620 commit 8ed321a
Show file tree
Hide file tree
Showing 16 changed files with 100 additions and 100 deletions.
6 changes: 3 additions & 3 deletions packages/google-cloud-dialogflow/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,14 +78,14 @@ const gapic = Object.freeze({
* - `SessionsClient` - Reference to
* {@link v2.SessionsClient}
*
* @module {object} dialogflow
* @module {object} @google-cloud/dialogflow
* @alias nodejs-dialogflow
*
* @example <caption>Install the client library with <a href="https://www.npmjs.com/">npm</a>:</caption>
* npm install --save dialogflow
* npm install --save @google-cloud/dialogflow
*
* @example <caption>Import the client library:</caption>
* const dialogflow = require('dialogflow');
* const dialogflow = require('@google-cloud/dialogflow');
*
* @example <caption>Create a client that uses <a href="https://goo.gl/64dyYX">Application Default Credentials (ADC)</a>:</caption>
* const client = new dialogflow.AgentsClient();
Expand Down
14 changes: 7 additions & 7 deletions packages/google-cloud-dialogflow/src/v2/agents_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ class AgentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.AgentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -367,7 +367,7 @@ class AgentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.AgentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -455,7 +455,7 @@ class AgentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.AgentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -503,7 +503,7 @@ class AgentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.AgentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -601,7 +601,7 @@ class AgentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.AgentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -717,7 +717,7 @@ class AgentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.AgentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -832,7 +832,7 @@ class AgentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.AgentsClient({
* // optional auth parameters.
Expand Down
14 changes: 7 additions & 7 deletions packages/google-cloud-dialogflow/src/v2/contexts_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ class ContextsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.ContextsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -342,7 +342,7 @@ class ContextsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.ContextsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -387,7 +387,7 @@ class ContextsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.ContextsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -438,7 +438,7 @@ class ContextsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.ContextsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -495,7 +495,7 @@ class ContextsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.ContextsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -539,7 +539,7 @@ class ContextsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.ContextsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -578,7 +578,7 @@ class ContextsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.ContextsClient({
* // optional auth parameters.
Expand Down
22 changes: 11 additions & 11 deletions packages/google-cloud-dialogflow/src/v2/entity_types_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,7 +362,7 @@ class EntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.EntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -456,7 +456,7 @@ class EntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.EntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -507,7 +507,7 @@ class EntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.EntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -564,7 +564,7 @@ class EntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.EntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -628,7 +628,7 @@ class EntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.EntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -672,7 +672,7 @@ class EntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.EntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -736,7 +736,7 @@ class EntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.EntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -837,7 +837,7 @@ class EntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.EntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -955,7 +955,7 @@ class EntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.EntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -1074,7 +1074,7 @@ class EntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.EntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -1188,7 +1188,7 @@ class EntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.EntityTypesClient({
* // optional auth parameters.
Expand Down
16 changes: 8 additions & 8 deletions packages/google-cloud-dialogflow/src/v2/intents_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ class IntentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.IntentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -427,7 +427,7 @@ class IntentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.IntentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -482,7 +482,7 @@ class IntentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.IntentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -543,7 +543,7 @@ class IntentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.IntentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -611,7 +611,7 @@ class IntentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.IntentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -660,7 +660,7 @@ class IntentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.IntentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -726,7 +726,7 @@ class IntentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.IntentsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -834,7 +834,7 @@ class IntentsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.IntentsClient({
* // optional auth parameters.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ class SessionEntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.SessionEntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -340,7 +340,7 @@ class SessionEntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.SessionEntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -386,7 +386,7 @@ class SessionEntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.SessionEntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -437,7 +437,7 @@ class SessionEntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.SessionEntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -500,7 +500,7 @@ class SessionEntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.SessionEntityTypesClient({
* // optional auth parameters.
Expand Down Expand Up @@ -549,7 +549,7 @@ class SessionEntityTypesClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.SessionEntityTypesClient({
* // optional auth parameters.
Expand Down
4 changes: 2 additions & 2 deletions packages/google-cloud-dialogflow/src/v2/sessions_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ class SessionsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.SessionsClient({
* // optional auth parameters.
Expand Down Expand Up @@ -281,7 +281,7 @@ class SessionsClient {
*
* @example
*
* const dialogflow = require('dialogflow.v2');
* const dialogflow = require('@google-cloud/dialogflow');
*
* const client = new dialogflow.v2.SessionsClient({
* // optional auth parameters.
Expand Down
Loading

0 comments on commit 8ed321a

Please sign in to comment.