diff --git a/packages/google-cloud-dialogflow/.nycrc b/packages/google-cloud-dialogflow/.nycrc index 23e322204ec..367688844eb 100644 --- a/packages/google-cloud-dialogflow/.nycrc +++ b/packages/google-cloud-dialogflow/.nycrc @@ -10,7 +10,6 @@ "**/docs", "**/samples", "**/scripts", - "**/src/**/v*/**/*.js", "**/protos", "**/test", ".jsdoc.js", diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/intent.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/intent.proto index 9f402c500bf..a4919dbfb4e 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/intent.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/intent.proto @@ -429,6 +429,9 @@ message Intent { // Required. List items. repeated Item items = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Subtitle of the list. + string subtitle = 3 [(google.api.field_behavior) = OPTIONAL]; } // The card for presenting a carousel of options to select from. @@ -636,10 +639,13 @@ message Intent { WebhookState webhook_state = 6 [(google.api.field_behavior) = OPTIONAL]; // Optional. The priority of this intent. Higher numbers represent higher - // priorities. If this is zero or unspecified, we use the default - // priority 500000. + // priorities. // - // Negative numbers mean that the intent is disabled. + // - If the supplied value is unspecified or 0, the service + // translates the value to 500,000, which corresponds to the + // `Normal` priority in the console. + // - If the supplied value is negative, the intent is ignored + // in runtime detect intent requests. int32 priority = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. Indicates whether this is a fallback intent. diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/intent.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/intent.proto index 9d298677d16..ca27b84c67f 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/intent.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/intent.proto @@ -437,6 +437,9 @@ message Intent { // Required. List items. repeated Item items = 2; + + // Optional. Subtitle of the list. + string subtitle = 3 [(google.api.field_behavior) = OPTIONAL]; } // The card for presenting a carousel of options to select from. @@ -1139,11 +1142,14 @@ message Intent { // Optional. Indicates whether webhooks are enabled for the intent. WebhookState webhook_state = 6; - // Optional. The priority of this intent. Higher numbers represent higher - // priorities. If this is zero or unspecified, we use the default - // priority 500000. + // The priority of this intent. Higher numbers represent higher + // priorities. // - // Negative numbers mean that the intent is disabled. + // - If the supplied value is unspecified or 0, the service + // translates the value to 500,000, which corresponds to the + // `Normal` priority in the console. + // - If the supplied value is negative, the intent is ignored + // in runtime detect intent requests. int32 priority = 3; // Optional. Indicates whether this is a fallback intent. diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto index a8adc396173..4bbc7452d5b 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/knowledge_base.proto @@ -126,7 +126,7 @@ message KnowledgeBase { // Language which represents the KnowledgeBase. When the KnowledgeBase is // created/updated, this is populated for all non en-us languages. If not // populated, the default language en-us applies. - string language_code = 3; + string language_code = 4; } // Request message for [KnowledgeBases.ListKnowledgeBases][google.cloud.dialogflow.v2beta1.KnowledgeBases.ListKnowledgeBases]. diff --git a/packages/google-cloud-dialogflow/protos/protos.d.ts b/packages/google-cloud-dialogflow/protos/protos.d.ts index 7457821529a..e73665aaa24 100644 --- a/packages/google-cloud-dialogflow/protos/protos.d.ts +++ b/packages/google-cloud-dialogflow/protos/protos.d.ts @@ -6187,6 +6187,9 @@ export namespace google { /** ListSelect items */ items?: (google.cloud.dialogflow.v2.Intent.Message.ListSelect.IItem[]|null); + + /** ListSelect subtitle */ + subtitle?: (string|null); } /** Represents a ListSelect. */ @@ -6204,6 +6207,9 @@ export namespace google { /** ListSelect items. */ public items: google.cloud.dialogflow.v2.Intent.Message.ListSelect.IItem[]; + /** ListSelect subtitle. */ + public subtitle: string; + /** * Creates a new ListSelect instance using the specified properties. * @param [properties] Properties to set @@ -18351,6 +18357,9 @@ export namespace google { /** ListSelect items */ items?: (google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.IItem[]|null); + + /** ListSelect subtitle */ + subtitle?: (string|null); } /** Represents a ListSelect. */ @@ -18368,6 +18377,9 @@ export namespace google { /** ListSelect items. */ public items: google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.IItem[]; + /** ListSelect subtitle. */ + public subtitle: string; + /** * Creates a new ListSelect instance using the specified properties. * @param [properties] Properties to set diff --git a/packages/google-cloud-dialogflow/protos/protos.js b/packages/google-cloud-dialogflow/protos/protos.js index e233e60b2b8..e5a2924009f 100644 --- a/packages/google-cloud-dialogflow/protos/protos.js +++ b/packages/google-cloud-dialogflow/protos/protos.js @@ -14620,6 +14620,7 @@ * @interface IListSelect * @property {string|null} [title] ListSelect title * @property {Array.|null} [items] ListSelect items + * @property {string|null} [subtitle] ListSelect subtitle */ /** @@ -14654,6 +14655,14 @@ */ ListSelect.prototype.items = $util.emptyArray; + /** + * ListSelect subtitle. + * @member {string} subtitle + * @memberof google.cloud.dialogflow.v2.Intent.Message.ListSelect + * @instance + */ + ListSelect.prototype.subtitle = ""; + /** * Creates a new ListSelect instance using the specified properties. * @function create @@ -14683,6 +14692,8 @@ if (message.items != null && message.items.length) for (var i = 0; i < message.items.length; ++i) $root.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item.encode(message.items[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.subtitle != null && message.hasOwnProperty("subtitle")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subtitle); return writer; }; @@ -14725,6 +14736,9 @@ message.items = []; message.items.push($root.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item.decode(reader, reader.uint32())); break; + case 3: + message.subtitle = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -14772,6 +14786,9 @@ return "items." + error; } } + if (message.subtitle != null && message.hasOwnProperty("subtitle")) + if (!$util.isString(message.subtitle)) + return "subtitle: string expected"; return null; }; @@ -14799,6 +14816,8 @@ message.items[i] = $root.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item.fromObject(object.items[i]); } } + if (object.subtitle != null) + message.subtitle = String(object.subtitle); return message; }; @@ -14817,8 +14836,10 @@ var object = {}; if (options.arrays || options.defaults) object.items = []; - if (options.defaults) + if (options.defaults) { object.title = ""; + object.subtitle = ""; + } if (message.title != null && message.hasOwnProperty("title")) object.title = message.title; if (message.items && message.items.length) { @@ -14826,6 +14847,8 @@ for (var j = 0; j < message.items.length; ++j) object.items[j] = $root.google.cloud.dialogflow.v2.Intent.Message.ListSelect.Item.toObject(message.items[j], options); } + if (message.subtitle != null && message.hasOwnProperty("subtitle")) + object.subtitle = message.subtitle; return object; }; @@ -43742,6 +43765,7 @@ * @interface IListSelect * @property {string|null} [title] ListSelect title * @property {Array.|null} [items] ListSelect items + * @property {string|null} [subtitle] ListSelect subtitle */ /** @@ -43776,6 +43800,14 @@ */ ListSelect.prototype.items = $util.emptyArray; + /** + * ListSelect subtitle. + * @member {string} subtitle + * @memberof google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect + * @instance + */ + ListSelect.prototype.subtitle = ""; + /** * Creates a new ListSelect instance using the specified properties. * @function create @@ -43805,6 +43837,8 @@ if (message.items != null && message.items.length) for (var i = 0; i < message.items.length; ++i) $root.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.encode(message.items[i], writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim(); + if (message.subtitle != null && message.hasOwnProperty("subtitle")) + writer.uint32(/* id 3, wireType 2 =*/26).string(message.subtitle); return writer; }; @@ -43847,6 +43881,9 @@ message.items = []; message.items.push($root.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.decode(reader, reader.uint32())); break; + case 3: + message.subtitle = reader.string(); + break; default: reader.skipType(tag & 7); break; @@ -43894,6 +43931,9 @@ return "items." + error; } } + if (message.subtitle != null && message.hasOwnProperty("subtitle")) + if (!$util.isString(message.subtitle)) + return "subtitle: string expected"; return null; }; @@ -43921,6 +43961,8 @@ message.items[i] = $root.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.fromObject(object.items[i]); } } + if (object.subtitle != null) + message.subtitle = String(object.subtitle); return message; }; @@ -43939,8 +43981,10 @@ var object = {}; if (options.arrays || options.defaults) object.items = []; - if (options.defaults) + if (options.defaults) { object.title = ""; + object.subtitle = ""; + } if (message.title != null && message.hasOwnProperty("title")) object.title = message.title; if (message.items && message.items.length) { @@ -43948,6 +43992,8 @@ for (var j = 0; j < message.items.length; ++j) object.items[j] = $root.google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect.Item.toObject(message.items[j], options); } + if (message.subtitle != null && message.hasOwnProperty("subtitle")) + object.subtitle = message.subtitle; return object; }; @@ -55502,7 +55548,7 @@ if (message.displayName != null && message.hasOwnProperty("displayName")) writer.uint32(/* id 2, wireType 2 =*/18).string(message.displayName); if (message.languageCode != null && message.hasOwnProperty("languageCode")) - writer.uint32(/* id 3, wireType 2 =*/26).string(message.languageCode); + writer.uint32(/* id 4, wireType 2 =*/34).string(message.languageCode); return writer; }; @@ -55543,7 +55589,7 @@ case 2: message.displayName = reader.string(); break; - case 3: + case 4: message.languageCode = reader.string(); break; default: diff --git a/packages/google-cloud-dialogflow/protos/protos.json b/packages/google-cloud-dialogflow/protos/protos.json index 754e7fe7252..4dfd7c99884 100644 --- a/packages/google-cloud-dialogflow/protos/protos.json +++ b/packages/google-cloud-dialogflow/protos/protos.json @@ -1719,6 +1719,13 @@ "options": { "(google.api.field_behavior)": "REQUIRED" } + }, + "subtitle": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -4498,6 +4505,13 @@ "rule": "repeated", "type": "Item", "id": 2 + }, + "subtitle": { + "type": "string", + "id": 3, + "options": { + "(google.api.field_behavior)": "OPTIONAL" + } } }, "nested": { @@ -5443,7 +5457,7 @@ }, "languageCode": { "type": "string", - "id": 3 + "id": 4 } } }, diff --git a/packages/google-cloud-dialogflow/src/v2/doc/google/cloud/dialogflow/v2/doc_intent.js b/packages/google-cloud-dialogflow/src/v2/doc/google/cloud/dialogflow/v2/doc_intent.js index 2f52f0931b4..0dbe455f49c 100644 --- a/packages/google-cloud-dialogflow/src/v2/doc/google/cloud/dialogflow/v2/doc_intent.js +++ b/packages/google-cloud-dialogflow/src/v2/doc/google/cloud/dialogflow/v2/doc_intent.js @@ -36,10 +36,13 @@ * * @property {number} priority * Optional. The priority of this intent. Higher numbers represent higher - * priorities. If this is zero or unspecified, we use the default - * priority 500000. + * priorities. * - * Negative numbers mean that the intent is disabled. + * - If the supplied value is unspecified or 0, the service + * translates the value to 500,000, which corresponds to the + * `Normal` priority in the console. + * - If the supplied value is negative, the intent is ignored + * in runtime detect intent requests. * * @property {boolean} isFallback * Optional. Indicates whether this is a fallback intent. @@ -613,6 +616,9 @@ const Intent = { * * This object should have the same structure as [Item]{@link google.cloud.dialogflow.v2.Item} * + * @property {string} subtitle + * Optional. Subtitle of the list. + * * @typedef ListSelect * @memberof google.cloud.dialogflow.v2 * @see [google.cloud.dialogflow.v2.Intent.Message.ListSelect definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2/intent.proto} diff --git a/packages/google-cloud-dialogflow/src/v2beta1/doc/google/cloud/dialogflow/v2beta1/doc_intent.js b/packages/google-cloud-dialogflow/src/v2beta1/doc/google/cloud/dialogflow/v2beta1/doc_intent.js index c4e892482be..d12cce6740f 100644 --- a/packages/google-cloud-dialogflow/src/v2beta1/doc/google/cloud/dialogflow/v2beta1/doc_intent.js +++ b/packages/google-cloud-dialogflow/src/v2beta1/doc/google/cloud/dialogflow/v2beta1/doc_intent.js @@ -35,11 +35,14 @@ * The number should be among the values of [WebhookState]{@link google.cloud.dialogflow.v2beta1.WebhookState} * * @property {number} priority - * Optional. The priority of this intent. Higher numbers represent higher - * priorities. If this is zero or unspecified, we use the default - * priority 500000. + * The priority of this intent. Higher numbers represent higher + * priorities. * - * Negative numbers mean that the intent is disabled. + * - If the supplied value is unspecified or 0, the service + * translates the value to 500,000, which corresponds to the + * `Normal` priority in the console. + * - If the supplied value is negative, the intent is ignored + * in runtime detect intent requests. * * @property {boolean} isFallback * Optional. Indicates whether this is a fallback intent. @@ -679,6 +682,9 @@ const Intent = { * * This object should have the same structure as [Item]{@link google.cloud.dialogflow.v2beta1.Item} * + * @property {string} subtitle + * Optional. Subtitle of the list. + * * @typedef ListSelect * @memberof google.cloud.dialogflow.v2beta1 * @see [google.cloud.dialogflow.v2beta1.Intent.Message.ListSelect definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/cloud/dialogflow/v2beta1/intent.proto} diff --git a/packages/google-cloud-dialogflow/synth.metadata b/packages/google-cloud-dialogflow/synth.metadata index 2dc104071f7..f3074e7576c 100644 --- a/packages/google-cloud-dialogflow/synth.metadata +++ b/packages/google-cloud-dialogflow/synth.metadata @@ -1,19 +1,19 @@ { - "updateTime": "2019-10-25T11:14:42.506788Z", + "updateTime": "2019-11-05T12:13:05.802362Z", "sources": [ { "generator": { "name": "artman", - "version": "0.40.2", - "dockerImage": "googleapis/artman@sha256:3b8f7d9b4c206843ce08053474f5c64ae4d388ff7d995e68b59fb65edf73eeb9" + "version": "0.41.0", + "dockerImage": "googleapis/artman@sha256:75b38a3b073a7b243545f2332463096624c802bb1e56b8cb6f22ba1ecd325fa9" } }, { "git": { "name": "googleapis", "remote": "https://github.com/googleapis/googleapis.git", - "sha": "d0324cf604ecbf0503519ffbd8861efc6a0eb4f5", - "internalRef": "276503595" + "sha": "8c6569ced063c08a48272de2e887860d0c40d388", + "internalRef": "278552094" } }, {