From 33435048c05a8897297032415ccfefd171140529 Mon Sep 17 00:00:00 2001 From: "gcf-owl-bot[bot]" <78513119+gcf-owl-bot[bot]@users.noreply.github.com> Date: Tue, 25 May 2021 11:30:02 +0000 Subject: [PATCH] feat: add a field to indicate whether slot filling is cancelled (#304) PiperOrigin-RevId: 375489925 Source-Link: https://github.com/googleapis/googleapis/commit/a185afb98265e13f1310e428ea5798470b24882a Source-Link: https://github.com/googleapis/googleapis-gen/commit/c3b8415dc4496a8718d13434eff5da75d6e20dcc --- google/cloud/dialogflow_v2/types/session.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/google/cloud/dialogflow_v2/types/session.py b/google/cloud/dialogflow_v2/types/session.py index e48ead899..752a6fc06 100644 --- a/google/cloud/dialogflow_v2/types/session.py +++ b/google/cloud/dialogflow_v2/types/session.py @@ -310,6 +310,9 @@ class QueryResult(proto.Message): - ``true`` if all required parameter values have been collected, or if the matched intent doesn't contain any required parameters. + cancels_slot_filling (bool): + Indicates whether the conversational query + triggers a cancellation for slot filling. fulfillment_text (str): The text to be pronounced to the user or shown on the screen. Note: This is a legacy field, @@ -368,6 +371,7 @@ class QueryResult(proto.Message): action = proto.Field(proto.STRING, number=3,) parameters = proto.Field(proto.MESSAGE, number=4, message=struct_pb2.Struct,) all_required_params_present = proto.Field(proto.BOOL, number=5,) + cancels_slot_filling = proto.Field(proto.BOOL, number=21,) fulfillment_text = proto.Field(proto.STRING, number=6,) fulfillment_messages = proto.RepeatedField( proto.MESSAGE, number=7, message=gcd_intent.Intent.Message,