From 47e23e44af8a2e190dfe259ef50442dd1775cd81 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 5 Dec 2022 17:42:42 -0500 Subject: [PATCH] feat: added cx_current_page field to AutomatedAgentReply (#3671) feat: added cx_current_page field to AutomatedAgentReply docs: clarified docs for Sentiment PiperOrigin-RevId: 489494136 Source-Link: https://github.com/googleapis/googleapis/commit/813e2fa430c3e13227529573cfe3f5c852abb559 Source-Link: https://github.com/googleapis/googleapis-gen/commit/dcf495943f59026b392927c19c652f61bd1f9869 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6ImRjZjQ5NTk0M2Y1OTAyNmIzOTI5MjdjMTljNjUyZjYxYmQxZjk4NjkifQ== feat: added cx_current_page field to AutomatedAgentReply docs: clarified docs for Sentiment PiperOrigin-RevId: 490103678 Source-Link: https://github.com/googleapis/googleapis/commit/8f95a5f2d5032f040d93874bf8e63b33d135d11d Source-Link: https://github.com/googleapis/googleapis-gen/commit/fed1c108dbe9291c14f7f305ca1e8bf2830c9c60 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLWRpYWxvZ2Zsb3cvLk93bEJvdC55YW1sIiwiaCI6ImZlZDFjMTA4ZGJlOTI5MWMxNGY3ZjMwNWNhMWU4YmYyODMwYzljNjAifQ== See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md Co-authored-by: Owl Bot Co-authored-by: Benjamin E. Coe --- .../cloud/dialogflow/v2/participant.proto | 5 ++ .../google/cloud/dialogflow/v2/session.proto | 4 +- .../dialogflow/v2beta1/participant.proto | 5 ++ .../cloud/dialogflow/v2beta1/session.proto | 4 +- .../protos/protos.d.ts | 12 +++++ .../google-cloud-dialogflow/protos/protos.js | 46 +++++++++++++++++++ .../protos/protos.json | 8 ++++ 7 files changed, 82 insertions(+), 2 deletions(-) diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/participant.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/participant.proto index a39d49fb527..f6b385077de 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/participant.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/participant.proto @@ -836,6 +836,11 @@ message AutomatedAgentReply { // later reply message arrives. e.g. if the agent specified some music as // partial response, it can be cancelled. bool allow_cancellation = 8; + + // The unique identifier of the current Dialogflow CX conversation page. + // Format: `projects//locations//agents//flows//pages/`. + string cx_current_page = 11; } // Represents article answer. diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/session.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/session.proto index 107e02060a3..85119ecc531 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/session.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2/session.proto @@ -689,7 +689,9 @@ message SentimentAnalysisResult { } // The sentiment, such as positive/negative feeling or association, for a unit -// of analysis, such as the query text. +// of analysis, such as the query text. See: +// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values +// for how to interpret the result. message Sentiment { // Sentiment score between -1.0 (negative sentiment) and 1.0 (positive // sentiment). diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto index 1f7309b6e3a..887a84015ce 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/participant.proto @@ -494,6 +494,11 @@ message AutomatedAgentReply { // later reply message arrives. e.g. if the agent specified some music as // partial response, it can be cancelled. bool allow_cancellation = 8; + + // The unique identifier of the current Dialogflow CX conversation page. + // Format: `projects//locations//agents//flows//pages/`. + string cx_current_page = 11; } // The type of Human Agent Assistant API suggestion to perform, and the maximum diff --git a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto index ac64e712789..4f45bce45bb 100644 --- a/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto +++ b/packages/google-cloud-dialogflow/protos/google/cloud/dialogflow/v2beta1/session.proto @@ -827,7 +827,9 @@ message SentimentAnalysisResult { } // The sentiment, such as positive/negative feeling or association, for a unit -// of analysis, such as the query text. +// of analysis, such as the query text. See: +// https://cloud.google.com/natural-language/docs/basics#interpreting_sentiment_analysis_values +// for how to interpret the result. message Sentiment { // Sentiment score between -1.0 (negative sentiment) and 1.0 (positive // sentiment). diff --git a/packages/google-cloud-dialogflow/protos/protos.d.ts b/packages/google-cloud-dialogflow/protos/protos.d.ts index e01ea55f797..e21db5f1761 100644 --- a/packages/google-cloud-dialogflow/protos/protos.d.ts +++ b/packages/google-cloud-dialogflow/protos/protos.d.ts @@ -5132,6 +5132,9 @@ export namespace google { /** AutomatedAgentReply allowCancellation */ allowCancellation?: (boolean|null); + + /** AutomatedAgentReply cxCurrentPage */ + cxCurrentPage?: (string|null); } /** Represents an AutomatedAgentReply. */ @@ -5152,6 +5155,9 @@ export namespace google { /** AutomatedAgentReply allowCancellation. */ public allowCancellation: boolean; + /** AutomatedAgentReply cxCurrentPage. */ + public cxCurrentPage: string; + /** * Creates a new AutomatedAgentReply instance using the specified properties. * @param [properties] Properties to set @@ -37195,6 +37201,9 @@ export namespace google { /** AutomatedAgentReply allowCancellation */ allowCancellation?: (boolean|null); + + /** AutomatedAgentReply cxCurrentPage */ + cxCurrentPage?: (string|null); } /** Represents an AutomatedAgentReply. */ @@ -37233,6 +37242,9 @@ export namespace google { /** AutomatedAgentReply allowCancellation. */ public allowCancellation: boolean; + /** AutomatedAgentReply cxCurrentPage. */ + public cxCurrentPage: string; + /** AutomatedAgentReply response. */ public response?: "detectIntentResponse"; diff --git a/packages/google-cloud-dialogflow/protos/protos.js b/packages/google-cloud-dialogflow/protos/protos.js index 3bfb1ff4e73..54dce9988df 100644 --- a/packages/google-cloud-dialogflow/protos/protos.js +++ b/packages/google-cloud-dialogflow/protos/protos.js @@ -12538,6 +12538,7 @@ * @property {google.cloud.dialogflow.v2.IDetectIntentResponse|null} [detectIntentResponse] AutomatedAgentReply detectIntentResponse * @property {google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType|null} [automatedAgentReplyType] AutomatedAgentReply automatedAgentReplyType * @property {boolean|null} [allowCancellation] AutomatedAgentReply allowCancellation + * @property {string|null} [cxCurrentPage] AutomatedAgentReply cxCurrentPage */ /** @@ -12579,6 +12580,14 @@ */ AutomatedAgentReply.prototype.allowCancellation = false; + /** + * AutomatedAgentReply cxCurrentPage. + * @member {string} cxCurrentPage + * @memberof google.cloud.dialogflow.v2.AutomatedAgentReply + * @instance + */ + AutomatedAgentReply.prototype.cxCurrentPage = ""; + /** * Creates a new AutomatedAgentReply instance using the specified properties. * @function create @@ -12609,6 +12618,8 @@ writer.uint32(/* id 7, wireType 0 =*/56).int32(message.automatedAgentReplyType); if (message.allowCancellation != null && Object.hasOwnProperty.call(message, "allowCancellation")) writer.uint32(/* id 8, wireType 0 =*/64).bool(message.allowCancellation); + if (message.cxCurrentPage != null && Object.hasOwnProperty.call(message, "cxCurrentPage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.cxCurrentPage); return writer; }; @@ -12655,6 +12666,10 @@ message.allowCancellation = reader.bool(); break; } + case 11: { + message.cxCurrentPage = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -12707,6 +12722,9 @@ if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) if (typeof message.allowCancellation !== "boolean") return "allowCancellation: boolean expected"; + if (message.cxCurrentPage != null && message.hasOwnProperty("cxCurrentPage")) + if (!$util.isString(message.cxCurrentPage)) + return "cxCurrentPage: string expected"; return null; }; @@ -12749,6 +12767,8 @@ } if (object.allowCancellation != null) message.allowCancellation = Boolean(object.allowCancellation); + if (object.cxCurrentPage != null) + message.cxCurrentPage = String(object.cxCurrentPage); return message; }; @@ -12769,6 +12789,7 @@ object.detectIntentResponse = null; object.automatedAgentReplyType = options.enums === String ? "AUTOMATED_AGENT_REPLY_TYPE_UNSPECIFIED" : 0; object.allowCancellation = false; + object.cxCurrentPage = ""; } if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) object.detectIntentResponse = $root.google.cloud.dialogflow.v2.DetectIntentResponse.toObject(message.detectIntentResponse, options); @@ -12776,6 +12797,8 @@ object.automatedAgentReplyType = options.enums === String ? $root.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType[message.automatedAgentReplyType] === undefined ? message.automatedAgentReplyType : $root.google.cloud.dialogflow.v2.AutomatedAgentReply.AutomatedAgentReplyType[message.automatedAgentReplyType] : message.automatedAgentReplyType; if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) object.allowCancellation = message.allowCancellation; + if (message.cxCurrentPage != null && message.hasOwnProperty("cxCurrentPage")) + object.cxCurrentPage = message.cxCurrentPage; return object; }; @@ -89045,6 +89068,7 @@ * @property {google.protobuf.IStruct|null} [cxSessionParameters] AutomatedAgentReply cxSessionParameters * @property {google.cloud.dialogflow.v2beta1.AutomatedAgentReply.AutomatedAgentReplyType|null} [automatedAgentReplyType] AutomatedAgentReply automatedAgentReplyType * @property {boolean|null} [allowCancellation] AutomatedAgentReply allowCancellation + * @property {string|null} [cxCurrentPage] AutomatedAgentReply cxCurrentPage */ /** @@ -89135,6 +89159,14 @@ */ AutomatedAgentReply.prototype.allowCancellation = false; + /** + * AutomatedAgentReply cxCurrentPage. + * @member {string} cxCurrentPage + * @memberof google.cloud.dialogflow.v2beta1.AutomatedAgentReply + * @instance + */ + AutomatedAgentReply.prototype.cxCurrentPage = ""; + // OneOf field names bound to virtual getters and setters var $oneOfFields; @@ -89203,6 +89235,8 @@ writer.uint32(/* id 9, wireType 5 =*/77).float(message.matchConfidence); if (message.parameters != null && Object.hasOwnProperty.call(message, "parameters")) $root.google.protobuf.Struct.encode(message.parameters, writer.uint32(/* id 10, wireType 2 =*/82).fork()).ldelim(); + if (message.cxCurrentPage != null && Object.hasOwnProperty.call(message, "cxCurrentPage")) + writer.uint32(/* id 11, wireType 2 =*/90).string(message.cxCurrentPage); return writer; }; @@ -89275,6 +89309,10 @@ message.allowCancellation = reader.bool(); break; } + case 11: { + message.cxCurrentPage = reader.string(); + break; + } default: reader.skipType(tag & 7); break; @@ -89365,6 +89403,9 @@ if (message.allowCancellation != null && message.hasOwnProperty("allowCancellation")) if (typeof message.allowCancellation !== "boolean") return "allowCancellation: boolean expected"; + if (message.cxCurrentPage != null && message.hasOwnProperty("cxCurrentPage")) + if (!$util.isString(message.cxCurrentPage)) + return "cxCurrentPage: string expected"; return null; }; @@ -89433,6 +89474,8 @@ } if (object.allowCancellation != null) message.allowCancellation = Boolean(object.allowCancellation); + if (object.cxCurrentPage != null) + message.cxCurrentPage = String(object.cxCurrentPage); return message; }; @@ -89457,6 +89500,7 @@ object.allowCancellation = false; object.matchConfidence = 0; object.parameters = null; + object.cxCurrentPage = ""; } if (message.detectIntentResponse != null && message.hasOwnProperty("detectIntentResponse")) { object.detectIntentResponse = $root.google.cloud.dialogflow.v2beta1.DetectIntentResponse.toObject(message.detectIntentResponse, options); @@ -89488,6 +89532,8 @@ object.matchConfidence = options.json && !isFinite(message.matchConfidence) ? String(message.matchConfidence) : message.matchConfidence; if (message.parameters != null && message.hasOwnProperty("parameters")) object.parameters = $root.google.protobuf.Struct.toObject(message.parameters, options); + if (message.cxCurrentPage != null && message.hasOwnProperty("cxCurrentPage")) + object.cxCurrentPage = message.cxCurrentPage; return object; }; diff --git a/packages/google-cloud-dialogflow/protos/protos.json b/packages/google-cloud-dialogflow/protos/protos.json index fbdc8f8342a..1b17762459d 100644 --- a/packages/google-cloud-dialogflow/protos/protos.json +++ b/packages/google-cloud-dialogflow/protos/protos.json @@ -1700,6 +1700,10 @@ "allowCancellation": { "type": "bool", "id": 8 + }, + "cxCurrentPage": { + "type": "string", + "id": 11 } }, "nested": { @@ -11040,6 +11044,10 @@ "allowCancellation": { "type": "bool", "id": 8 + }, + "cxCurrentPage": { + "type": "string", + "id": 11 } }, "nested": {