diff --git a/google/cloud/dialogflow_v2beta1/services/intents/async_client.py b/google/cloud/dialogflow_v2beta1/services/intents/async_client.py index c071ce136..8ea2a6bdc 100644 --- a/google/cloud/dialogflow_v2beta1/services/intents/async_client.py +++ b/google/cloud/dialogflow_v2beta1/services/intents/async_client.py @@ -183,7 +183,16 @@ async def list_intents( [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents]. parent (:class:`str`): Required. The agent to list all intents from. Format: - ``projects//agent``. + ``projects//agent`` or + ``projects//locations//agent``. + + Alternatively, you can specify the environment to list + intents for. Format: + ``projects//agent/environments/`` + or + ``projects//locations//agent/environments/``. + Note: training phrases of the intents will not be + returned for non-draft environment. This corresponds to the ``parent`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/google/cloud/dialogflow_v2beta1/services/intents/client.py b/google/cloud/dialogflow_v2beta1/services/intents/client.py index eaddb5108..41cb6ba4a 100644 --- a/google/cloud/dialogflow_v2beta1/services/intents/client.py +++ b/google/cloud/dialogflow_v2beta1/services/intents/client.py @@ -385,7 +385,16 @@ def list_intents( [Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents]. parent (str): Required. The agent to list all intents from. Format: - ``projects//agent``. + ``projects//agent`` or + ``projects//locations//agent``. + + Alternatively, you can specify the environment to list + intents for. Format: + ``projects//agent/environments/`` + or + ``projects//locations//agent/environments/``. + Note: training phrases of the intents will not be + returned for non-draft environment. This corresponds to the ``parent`` field on the ``request`` instance; if ``request`` is provided, this diff --git a/google/cloud/dialogflow_v2beta1/types/intent.py b/google/cloud/dialogflow_v2beta1/types/intent.py index 3a1e868ec..8d3245bd1 100644 --- a/google/cloud/dialogflow_v2beta1/types/intent.py +++ b/google/cloud/dialogflow_v2beta1/types/intent.py @@ -1445,7 +1445,16 @@ class ListIntentsRequest(proto.Message): Attributes: parent (str): Required. The agent to list all intents from. Format: - ``projects//agent``. + ``projects//agent`` or + ``projects//locations//agent``. + + Alternatively, you can specify the environment to list + intents for. Format: + ``projects//agent/environments/`` + or + ``projects//locations//agent/environments/``. + Note: training phrases of the intents will not be returned + for non-draft environment. language_code (str): Optional. The language used to access language-specific data. If not specified, the agent's default language is diff --git a/google/cloud/dialogflow_v2beta1/types/participant.py b/google/cloud/dialogflow_v2beta1/types/participant.py index b38c7e8a9..caba6e7a3 100644 --- a/google/cloud/dialogflow_v2beta1/types/participant.py +++ b/google/cloud/dialogflow_v2beta1/types/participant.py @@ -297,9 +297,23 @@ class AutomatedAgentReply(proto.Message): event (str): Event name if an event is triggered for the query. + match_confidence (float): + The confidence of the match. Values range + from 0.0 (completely uncertain) to 1.0 + (completely certain). This value is for + informational purpose only and is only used to + help match the best intent within the + classification threshold. This value may change + for the same end-user expression at any time due + to a model retraining or change in + implementation. + parameters (google.protobuf.struct_pb2.Struct): + The collection of current parameters at the + time of this response. cx_session_parameters (google.protobuf.struct_pb2.Struct): - The collection of current Dialogflow CX agent - session parameters at the time of this response. + The collection of current Dialogflow CX agent session + parameters at the time of this response. Deprecated: Use + ``parameters`` instead. """ detect_intent_response = proto.Field( @@ -310,6 +324,8 @@ class AutomatedAgentReply(proto.Message): ) intent = proto.Field(proto.STRING, number=4, oneof="match",) event = proto.Field(proto.STRING, number=5, oneof="match",) + match_confidence = proto.Field(proto.FLOAT, number=9,) + parameters = proto.Field(proto.MESSAGE, number=10, message=struct_pb2.Struct,) cx_session_parameters = proto.Field( proto.MESSAGE, number=6, message=struct_pb2.Struct, ) diff --git a/google/cloud/dialogflow_v2beta1/types/session.py b/google/cloud/dialogflow_v2beta1/types/session.py index 6423b5774..90fd28ec9 100644 --- a/google/cloud/dialogflow_v2beta1/types/session.py +++ b/google/cloud/dialogflow_v2beta1/types/session.py @@ -777,7 +777,9 @@ class MessageType(proto.Enum): r"""Type of the response message.""" MESSAGE_TYPE_UNSPECIFIED = 0 TRANSCRIPT = 1 + DTMF_DIGITS = 3 END_OF_SINGLE_UTTERANCE = 2 + PARTIAL_DTMF_DIGITS = 4 message_type = proto.Field(proto.ENUM, number=1, enum=MessageType,) transcript = proto.Field(proto.STRING, number=2,)