From d6d7684692ec3790ec5a4284cb206a4c26f4a1ab Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Thu, 17 Jun 2021 22:22:04 +0000 Subject: [PATCH] feat(v3): support sentiment analysis in bot testing (#125) PiperOrigin-RevId: 377915759 Source-Link: https://github.com/googleapis/googleapis/commit/e3fcbabc7bca1124be828a4ce7140b28bf3d93fc Source-Link: https://github.com/googleapis/googleapis-gen/commit/29b972d9a4e8a2ce30b9325e60e9d08e7a3e6bcd --- .../cloud/dialogflow/cx/v3/test_case.proto | 3 +++ protos/protos.d.ts | 6 +++++ protos/protos.js | 22 +++++++++++++++++++ protos/protos.json | 4 ++++ 4 files changed, 35 insertions(+) diff --git a/protos/google/cloud/dialogflow/cx/v3/test_case.proto b/protos/google/cloud/dialogflow/cx/v3/test_case.proto index f7b94222..94e69aae 100644 --- a/protos/google/cloud/dialogflow/cx/v3/test_case.proto +++ b/protos/google/cloud/dialogflow/cx/v3/test_case.proto @@ -266,6 +266,9 @@ message ConversationTurn { // utterance. Often if parameters are injected, webhooks should not be // enabled. bool is_webhook_enabled = 3; + + // Whether sentiment analysis is enabled. + bool enable_sentiment_analysis = 7; } // The output from the virtual agent. diff --git a/protos/protos.d.ts b/protos/protos.d.ts index 34a118d3..f189daf7 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -11573,6 +11573,9 @@ export namespace google { /** UserInput isWebhookEnabled */ isWebhookEnabled?: (boolean|null); + + /** UserInput enableSentimentAnalysis */ + enableSentimentAnalysis?: (boolean|null); } /** Represents a UserInput. */ @@ -11593,6 +11596,9 @@ export namespace google { /** UserInput isWebhookEnabled. */ public isWebhookEnabled: boolean; + /** UserInput enableSentimentAnalysis. */ + public enableSentimentAnalysis: boolean; + /** * Creates a new UserInput instance using the specified properties. * @param [properties] Properties to set diff --git a/protos/protos.js b/protos/protos.js index 73dea47b..55eef9a8 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -26881,6 +26881,7 @@ * @property {google.cloud.dialogflow.cx.v3.IQueryInput|null} [input] UserInput input * @property {google.protobuf.IStruct|null} [injectedParameters] UserInput injectedParameters * @property {boolean|null} [isWebhookEnabled] UserInput isWebhookEnabled + * @property {boolean|null} [enableSentimentAnalysis] UserInput enableSentimentAnalysis */ /** @@ -26922,6 +26923,14 @@ */ UserInput.prototype.isWebhookEnabled = false; + /** + * UserInput enableSentimentAnalysis. + * @member {boolean} enableSentimentAnalysis + * @memberof google.cloud.dialogflow.cx.v3.ConversationTurn.UserInput + * @instance + */ + UserInput.prototype.enableSentimentAnalysis = false; + /** * Creates a new UserInput instance using the specified properties. * @function create @@ -26952,6 +26961,8 @@ writer.uint32(/* id 3, wireType 0 =*/24).bool(message.isWebhookEnabled); if (message.input != null && Object.hasOwnProperty.call(message, "input")) $root.google.cloud.dialogflow.cx.v3.QueryInput.encode(message.input, writer.uint32(/* id 5, wireType 2 =*/42).fork()).ldelim(); + if (message.enableSentimentAnalysis != null && Object.hasOwnProperty.call(message, "enableSentimentAnalysis")) + writer.uint32(/* id 7, wireType 0 =*/56).bool(message.enableSentimentAnalysis); return writer; }; @@ -26995,6 +27006,9 @@ case 3: message.isWebhookEnabled = reader.bool(); break; + case 7: + message.enableSentimentAnalysis = reader.bool(); + break; default: reader.skipType(tag & 7); break; @@ -27043,6 +27057,9 @@ if (message.isWebhookEnabled != null && message.hasOwnProperty("isWebhookEnabled")) if (typeof message.isWebhookEnabled !== "boolean") return "isWebhookEnabled: boolean expected"; + if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) + if (typeof message.enableSentimentAnalysis !== "boolean") + return "enableSentimentAnalysis: boolean expected"; return null; }; @@ -27070,6 +27087,8 @@ } if (object.isWebhookEnabled != null) message.isWebhookEnabled = Boolean(object.isWebhookEnabled); + if (object.enableSentimentAnalysis != null) + message.enableSentimentAnalysis = Boolean(object.enableSentimentAnalysis); return message; }; @@ -27090,6 +27109,7 @@ object.injectedParameters = null; object.isWebhookEnabled = false; object.input = null; + object.enableSentimentAnalysis = false; } if (message.injectedParameters != null && message.hasOwnProperty("injectedParameters")) object.injectedParameters = $root.google.protobuf.Struct.toObject(message.injectedParameters, options); @@ -27097,6 +27117,8 @@ object.isWebhookEnabled = message.isWebhookEnabled; if (message.input != null && message.hasOwnProperty("input")) object.input = $root.google.cloud.dialogflow.cx.v3.QueryInput.toObject(message.input, options); + if (message.enableSentimentAnalysis != null && message.hasOwnProperty("enableSentimentAnalysis")) + object.enableSentimentAnalysis = message.enableSentimentAnalysis; return object; }; diff --git a/protos/protos.json b/protos/protos.json index f83697a0..c4f06759 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -3389,6 +3389,10 @@ "isWebhookEnabled": { "type": "bool", "id": 3 + }, + "enableSentimentAnalysis": { + "type": "bool", + "id": 7 } } },