From 05be0196ff2998278f174ba076498327180a63f9 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 16:03:28 -0600 Subject: [PATCH] feat(v2beta1): add a field to indicate whether slot filling is cancelled (#306) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat: added a field in the query result to indicate whether slot filling is cancelled. PiperOrigin-RevId: 375741797 Source-Link: https://github.com/googleapis/googleapis/commit/5e797ab6ee046efd2baeef6a7b1aeddab6718074 Source-Link: https://github.com/googleapis/googleapis-gen/commit/45498d9cadeca0484a3b2a14fa6edbbaf165ac9b * 🦉 Updates from OwlBot Co-authored-by: Owl Bot --- google/cloud/dialogflow_v2beta1/types/session.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/google/cloud/dialogflow_v2beta1/types/session.py b/google/cloud/dialogflow_v2beta1/types/session.py index 90fd28ec9..f4ac7a1fb 100644 --- a/google/cloud/dialogflow_v2beta1/types/session.py +++ b/google/cloud/dialogflow_v2beta1/types/session.py @@ -353,6 +353,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, @@ -414,6 +417,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,