From 8ed321ae8cb2cd5a72c01b770312387983c7a39d Mon Sep 17 00:00:00 2001 From: Jonathan Lui Date: Mon, 28 Jan 2019 11:02:35 -0800 Subject: [PATCH] fix(docs): properly show how to require this module (#263) --- packages/google-cloud-dialogflow/src/index.js | 6 ++--- .../src/v2/agents_client.js | 14 ++++++------ .../src/v2/contexts_client.js | 14 ++++++------ .../src/v2/entity_types_client.js | 22 +++++++++---------- .../src/v2/intents_client.js | 16 +++++++------- .../src/v2/session_entity_types_client.js | 12 +++++----- .../src/v2/sessions_client.js | 4 ++-- .../src/v2beta1/agents_client.js | 14 ++++++------ .../src/v2beta1/contexts_client.js | 14 ++++++------ .../src/v2beta1/documents_client.js | 10 ++++----- .../src/v2beta1/entity_types_client.js | 22 +++++++++---------- .../src/v2beta1/intents_client.js | 16 +++++++------- .../src/v2beta1/knowledge_bases_client.js | 10 ++++----- .../v2beta1/session_entity_types_client.js | 12 +++++----- .../src/v2beta1/sessions_client.js | 4 ++-- .../google-cloud-dialogflow/synth.metadata | 10 ++++----- 16 files changed, 100 insertions(+), 100 deletions(-) diff --git a/packages/google-cloud-dialogflow/src/index.js b/packages/google-cloud-dialogflow/src/index.js index 2d462e902f0..b616ec54436 100644 --- a/packages/google-cloud-dialogflow/src/index.js +++ b/packages/google-cloud-dialogflow/src/index.js @@ -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 Install the client library with npm: - * npm install --save dialogflow + * npm install --save @google-cloud/dialogflow * * @example Import the client library: - * const dialogflow = require('dialogflow'); + * const dialogflow = require('@google-cloud/dialogflow'); * * @example Create a client that uses Application Default Credentials (ADC): * const client = new dialogflow.AgentsClient(); diff --git a/packages/google-cloud-dialogflow/src/v2/agents_client.js b/packages/google-cloud-dialogflow/src/v2/agents_client.js index c8068d3c4ac..75e70582c97 100644 --- a/packages/google-cloud-dialogflow/src/v2/agents_client.js +++ b/packages/google-cloud-dialogflow/src/v2/agents_client.js @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. diff --git a/packages/google-cloud-dialogflow/src/v2/contexts_client.js b/packages/google-cloud-dialogflow/src/v2/contexts_client.js index 06ad9c8ad51..3a22cd47588 100644 --- a/packages/google-cloud-dialogflow/src/v2/contexts_client.js +++ b/packages/google-cloud-dialogflow/src/v2/contexts_client.js @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. diff --git a/packages/google-cloud-dialogflow/src/v2/entity_types_client.js b/packages/google-cloud-dialogflow/src/v2/entity_types_client.js index d925ebf17cc..cf1821d3966 100644 --- a/packages/google-cloud-dialogflow/src/v2/entity_types_client.js +++ b/packages/google-cloud-dialogflow/src/v2/entity_types_client.js @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. diff --git a/packages/google-cloud-dialogflow/src/v2/intents_client.js b/packages/google-cloud-dialogflow/src/v2/intents_client.js index 445b23ad5a9..df52db2484f 100644 --- a/packages/google-cloud-dialogflow/src/v2/intents_client.js +++ b/packages/google-cloud-dialogflow/src/v2/intents_client.js @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. diff --git a/packages/google-cloud-dialogflow/src/v2/session_entity_types_client.js b/packages/google-cloud-dialogflow/src/v2/session_entity_types_client.js index 50fcecc9090..508b3f5330a 100644 --- a/packages/google-cloud-dialogflow/src/v2/session_entity_types_client.js +++ b/packages/google-cloud-dialogflow/src/v2/session_entity_types_client.js @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. @@ -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. diff --git a/packages/google-cloud-dialogflow/src/v2/sessions_client.js b/packages/google-cloud-dialogflow/src/v2/sessions_client.js index f09dd77b5c7..d1c4690d98e 100644 --- a/packages/google-cloud-dialogflow/src/v2/sessions_client.js +++ b/packages/google-cloud-dialogflow/src/v2/sessions_client.js @@ -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. @@ -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. diff --git a/packages/google-cloud-dialogflow/src/v2beta1/agents_client.js b/packages/google-cloud-dialogflow/src/v2beta1/agents_client.js index db9685fd8f9..05eb33a5f1c 100644 --- a/packages/google-cloud-dialogflow/src/v2beta1/agents_client.js +++ b/packages/google-cloud-dialogflow/src/v2beta1/agents_client.js @@ -297,7 +297,7 @@ class AgentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.AgentsClient({ * // optional auth parameters. @@ -368,7 +368,7 @@ class AgentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.AgentsClient({ * // optional auth parameters. @@ -456,7 +456,7 @@ class AgentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.AgentsClient({ * // optional auth parameters. @@ -505,7 +505,7 @@ class AgentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.AgentsClient({ * // optional auth parameters. @@ -606,7 +606,7 @@ class AgentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.AgentsClient({ * // optional auth parameters. @@ -723,7 +723,7 @@ class AgentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.AgentsClient({ * // optional auth parameters. @@ -839,7 +839,7 @@ class AgentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.AgentsClient({ * // optional auth parameters. diff --git a/packages/google-cloud-dialogflow/src/v2beta1/contexts_client.js b/packages/google-cloud-dialogflow/src/v2beta1/contexts_client.js index ce159414817..9683b1c3648 100644 --- a/packages/google-cloud-dialogflow/src/v2beta1/contexts_client.js +++ b/packages/google-cloud-dialogflow/src/v2beta1/contexts_client.js @@ -264,7 +264,7 @@ class ContextsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.ContextsClient({ * // optional auth parameters. @@ -356,7 +356,7 @@ class ContextsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.ContextsClient({ * // optional auth parameters. @@ -405,7 +405,7 @@ class ContextsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.ContextsClient({ * // optional auth parameters. @@ -460,7 +460,7 @@ class ContextsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.ContextsClient({ * // optional auth parameters. @@ -517,7 +517,7 @@ class ContextsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.ContextsClient({ * // optional auth parameters. @@ -565,7 +565,7 @@ class ContextsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.ContextsClient({ * // optional auth parameters. @@ -607,7 +607,7 @@ class ContextsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.ContextsClient({ * // optional auth parameters. diff --git a/packages/google-cloud-dialogflow/src/v2beta1/documents_client.js b/packages/google-cloud-dialogflow/src/v2beta1/documents_client.js index 12965a99223..d33e213d2d0 100644 --- a/packages/google-cloud-dialogflow/src/v2beta1/documents_client.js +++ b/packages/google-cloud-dialogflow/src/v2beta1/documents_client.js @@ -283,7 +283,7 @@ class DocumentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.DocumentsClient({ * // optional auth parameters. @@ -371,7 +371,7 @@ class DocumentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.DocumentsClient({ * // optional auth parameters. @@ -417,7 +417,7 @@ class DocumentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.DocumentsClient({ * // optional auth parameters. @@ -471,7 +471,7 @@ class DocumentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.DocumentsClient({ * // optional auth parameters. @@ -576,7 +576,7 @@ class DocumentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.DocumentsClient({ * // optional auth parameters. diff --git a/packages/google-cloud-dialogflow/src/v2beta1/entity_types_client.js b/packages/google-cloud-dialogflow/src/v2beta1/entity_types_client.js index 98f5ad46756..fcf54e95747 100644 --- a/packages/google-cloud-dialogflow/src/v2beta1/entity_types_client.js +++ b/packages/google-cloud-dialogflow/src/v2beta1/entity_types_client.js @@ -362,7 +362,7 @@ class EntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.EntityTypesClient({ * // optional auth parameters. @@ -456,7 +456,7 @@ class EntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.EntityTypesClient({ * // optional auth parameters. @@ -507,7 +507,7 @@ class EntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.EntityTypesClient({ * // optional auth parameters. @@ -564,7 +564,7 @@ class EntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.EntityTypesClient({ * // optional auth parameters. @@ -628,7 +628,7 @@ class EntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.EntityTypesClient({ * // optional auth parameters. @@ -672,7 +672,7 @@ class EntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.EntityTypesClient({ * // optional auth parameters. @@ -736,7 +736,7 @@ class EntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.EntityTypesClient({ * // optional auth parameters. @@ -837,7 +837,7 @@ class EntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.EntityTypesClient({ * // optional auth parameters. @@ -955,7 +955,7 @@ class EntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.EntityTypesClient({ * // optional auth parameters. @@ -1074,7 +1074,7 @@ class EntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.EntityTypesClient({ * // optional auth parameters. @@ -1188,7 +1188,7 @@ class EntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.EntityTypesClient({ * // optional auth parameters. diff --git a/packages/google-cloud-dialogflow/src/v2beta1/intents_client.js b/packages/google-cloud-dialogflow/src/v2beta1/intents_client.js index 664d24e831d..76742aa5220 100644 --- a/packages/google-cloud-dialogflow/src/v2beta1/intents_client.js +++ b/packages/google-cloud-dialogflow/src/v2beta1/intents_client.js @@ -326,7 +326,7 @@ class IntentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.IntentsClient({ * // optional auth parameters. @@ -424,7 +424,7 @@ class IntentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.IntentsClient({ * // optional auth parameters. @@ -479,7 +479,7 @@ class IntentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.IntentsClient({ * // optional auth parameters. @@ -540,7 +540,7 @@ class IntentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.IntentsClient({ * // optional auth parameters. @@ -608,7 +608,7 @@ class IntentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.IntentsClient({ * // optional auth parameters. @@ -657,7 +657,7 @@ class IntentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.IntentsClient({ * // optional auth parameters. @@ -723,7 +723,7 @@ class IntentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.IntentsClient({ * // optional auth parameters. @@ -831,7 +831,7 @@ class IntentsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.IntentsClient({ * // optional auth parameters. diff --git a/packages/google-cloud-dialogflow/src/v2beta1/knowledge_bases_client.js b/packages/google-cloud-dialogflow/src/v2beta1/knowledge_bases_client.js index 3429b151f9c..753ba700586 100644 --- a/packages/google-cloud-dialogflow/src/v2beta1/knowledge_bases_client.js +++ b/packages/google-cloud-dialogflow/src/v2beta1/knowledge_bases_client.js @@ -236,7 +236,7 @@ class KnowledgeBasesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.KnowledgeBasesClient({ * // optional auth parameters. @@ -324,7 +324,7 @@ class KnowledgeBasesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.KnowledgeBasesClient({ * // optional auth parameters. @@ -369,7 +369,7 @@ class KnowledgeBasesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.KnowledgeBasesClient({ * // optional auth parameters. @@ -420,7 +420,7 @@ class KnowledgeBasesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.KnowledgeBasesClient({ * // optional auth parameters. @@ -472,7 +472,7 @@ class KnowledgeBasesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.KnowledgeBasesClient({ * // optional auth parameters. diff --git a/packages/google-cloud-dialogflow/src/v2beta1/session_entity_types_client.js b/packages/google-cloud-dialogflow/src/v2beta1/session_entity_types_client.js index fea632c111a..74fbc0cf510 100644 --- a/packages/google-cloud-dialogflow/src/v2beta1/session_entity_types_client.js +++ b/packages/google-cloud-dialogflow/src/v2beta1/session_entity_types_client.js @@ -258,7 +258,7 @@ class SessionEntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.SessionEntityTypesClient({ * // optional auth parameters. @@ -354,7 +354,7 @@ class SessionEntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.SessionEntityTypesClient({ * // optional auth parameters. @@ -403,7 +403,7 @@ class SessionEntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.SessionEntityTypesClient({ * // optional auth parameters. @@ -458,7 +458,7 @@ class SessionEntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.SessionEntityTypesClient({ * // optional auth parameters. @@ -524,7 +524,7 @@ class SessionEntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.SessionEntityTypesClient({ * // optional auth parameters. @@ -576,7 +576,7 @@ class SessionEntityTypesClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.SessionEntityTypesClient({ * // optional auth parameters. diff --git a/packages/google-cloud-dialogflow/src/v2beta1/sessions_client.js b/packages/google-cloud-dialogflow/src/v2beta1/sessions_client.js index 5baeb72ee43..bc5e4bd4af8 100644 --- a/packages/google-cloud-dialogflow/src/v2beta1/sessions_client.js +++ b/packages/google-cloud-dialogflow/src/v2beta1/sessions_client.js @@ -248,7 +248,7 @@ class SessionsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.SessionsClient({ * // optional auth parameters. @@ -294,7 +294,7 @@ class SessionsClient { * * @example * - * const dialogflow = require('dialogflow.v2beta1'); + * const dialogflow = require('@google-cloud/dialogflow'); * * const client = new dialogflow.v2beta1.SessionsClient({ * // optional auth parameters. diff --git a/packages/google-cloud-dialogflow/synth.metadata b/packages/google-cloud-dialogflow/synth.metadata index 9378596107e..09a4b77b695 100644 --- a/packages/google-cloud-dialogflow/synth.metadata +++ b/packages/google-cloud-dialogflow/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-01-17T12:56:01.387828Z", + "updateTime": "2019-01-28T18:41:31.978491Z", "sources": [ { "generator": { "name": "artman", - "version": "0.16.6", - "dockerImage": "googleapis/artman@sha256:12722f2ca3fbc3b53cc6aa5f0e569d7d221b46bd876a2136497089dec5e3634e" + "version": "0.16.7", + "dockerImage": "googleapis/artman@sha256:d6c8ced606eb49973ca95d2af7c55a681acc042db0f87d135968349e7bf6dd80" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "0ac60e21a1aa86c07c1836865b35308ba8178b05", - "internalRef": "229626798" + "sha": "3cdb7227019524e7963071cf80a9624bf055b284", + "internalRef": "231246006" } }, {