From 423744460a42d81b36a2b77107f34ad3b017a521 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Mon, 9 May 2022 20:30:31 +0000 Subject: [PATCH] docs: update the doc on diagnostic info (#477) - [ ] Regenerate this pull request now. PiperOrigin-RevId: 446890999 Source-Link: https://github.com/googleapis/googleapis/commit/044c5184ee9bf69c54294ba8ff844fe037d2d9d0 Source-Link: https://github.com/googleapis/googleapis-gen/commit/770df39bd68400a84c0bb256c3c2fb7d65d649d5 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiNzcwZGYzOWJkNjg0MDBhODRjMGJiMjU2YzNjMmZiN2Q2NWQ2NDlkNSJ9 --- .../cloud/dialogflow/cx/v3/QueryResult.java | 192 +++++++++++++++--- .../cx/v3/QueryResultOrBuilder.java | 48 ++++- .../cloud/dialogflow/cx/v3/session.proto | 18 +- 3 files changed, 226 insertions(+), 32 deletions(-) diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java index a13dfdaa1..c36c55cdb 100644 --- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java +++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResult.java @@ -1269,8 +1269,20 @@ public com.google.cloud.dialogflow.cx.v3.MatchOrBuilder getMatchOrBuilder() { * *
* The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -1286,8 +1298,20 @@ public boolean hasDiagnosticInfo() {
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -1305,8 +1329,20 @@ public com.google.protobuf.Struct getDiagnosticInfo() {
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -5205,8 +5241,20 @@ public com.google.cloud.dialogflow.cx.v3.MatchOrBuilder getMatchOrBuilder() {
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -5221,8 +5269,20 @@ public boolean hasDiagnosticInfo() {
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -5243,8 +5303,20 @@ public com.google.protobuf.Struct getDiagnosticInfo() {
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -5267,8 +5339,20 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct value) {
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -5288,8 +5372,20 @@ public Builder setDiagnosticInfo(com.google.protobuf.Struct.Builder builderForVa
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -5316,8 +5412,20 @@ public Builder mergeDiagnosticInfo(com.google.protobuf.Struct value) {
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -5338,8 +5446,20 @@ public Builder clearDiagnosticInfo() {
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -5354,8 +5474,20 @@ public com.google.protobuf.Struct.Builder getDiagnosticInfoBuilder() {
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -5374,8 +5506,20 @@ public com.google.protobuf.StructOrBuilder getDiagnosticInfoOrBuilder() {
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java
index ee3ef306e..68ac525e4 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/java/com/google/cloud/dialogflow/cx/v3/QueryResultOrBuilder.java
@@ -652,8 +652,20 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -666,8 +678,20 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
@@ -680,8 +704,20 @@ com.google.cloud.dialogflow.cx.v3.ResponseMessageOrBuilder getResponseMessagesOr
*
* * The free-form diagnostic info. For example, this field could contain - * webhook call latency. The string keys of the Struct's fields map can change - * without notice. + * webhook call latency. The fields of this data can change without notice, + * so you should not write code that depends on its structure. + * One of the fields is called "Alternative Matched Intents", which may + * aid with debugging. The following describes these intent results: + * - The list is empty if no intent was matched to end-user input. + * - Only intents that are referenced in the currently active flow are + * included. + * - The matched intent is included. + * - Other intents that could have matched end-user input, but did not match + * because they are referenced by intent routes that are out of + * [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope), + * are included. + * - Other intents referenced by intent routes in scope that matched end-user + * input, but had a lower confidence score. ** *
.google.protobuf.Struct diagnostic_info = 10;
diff --git a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto
index 7b88afdf4..6b408e9b2 100644
--- a/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto
+++ b/proto-google-cloud-dialogflow-cx-v3/src/main/proto/google/cloud/dialogflow/cx/v3/session.proto
@@ -617,8 +617,22 @@ message QueryResult {
Match match = 15;
// The free-form diagnostic info. For example, this field could contain
- // webhook call latency. The string keys of the Struct's fields map can change
- // without notice.
+ // webhook call latency. The fields of this data can change without notice,
+ // so you should not write code that depends on its structure.
+ //
+ // One of the fields is called "Alternative Matched Intents", which may
+ // aid with debugging. The following describes these intent results:
+ //
+ // - The list is empty if no intent was matched to end-user input.
+ // - Only intents that are referenced in the currently active flow are
+ // included.
+ // - The matched intent is included.
+ // - Other intents that could have matched end-user input, but did not match
+ // because they are referenced by intent routes that are out of
+ // [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope),
+ // are included.
+ // - Other intents referenced by intent routes in scope that matched end-user
+ // input, but had a lower confidence score.
google.protobuf.Struct diagnostic_info = 10;
// The sentiment analyss result, which depends on