Skip to content
This repository was archived by the owner on Dec 17, 2023. It is now read-only.

Commit e52e9c0

Browse files
feat: added location-aware HTTP path binding for ListIntents feat: exposed match confidence and parameter in AnalyzeContentResponse feat: added DTMF and PARTIAL DTMF type in recognition result (#298)
PiperOrigin-RevId: 374460003 Source-Link: googleapis/googleapis@1309578 Source-Link: https://github.com/googleapis/googleapis-gen/commit/be22498ce258bf2d5fe12fd696d3ad9a2b6c430e
1 parent 4c33ad8 commit e52e9c0

File tree

5 files changed

+50
-5
lines changed

5 files changed

+50
-5
lines changed

google/cloud/dialogflow_v2beta1/services/intents/async_client.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,16 @@ async def list_intents(
183183
[Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents].
184184
parent (:class:`str`):
185185
Required. The agent to list all intents from. Format:
186-
``projects/<Project ID>/agent``.
186+
``projects/<Project ID>/agent`` or
187+
``projects/<Project ID>/locations/<Location ID>/agent``.
188+
189+
Alternatively, you can specify the environment to list
190+
intents for. Format:
191+
``projects/<Project ID>/agent/environments/<Environment ID>``
192+
or
193+
``projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>``.
194+
Note: training phrases of the intents will not be
195+
returned for non-draft environment.
187196
188197
This corresponds to the ``parent`` field
189198
on the ``request`` instance; if ``request`` is provided, this

google/cloud/dialogflow_v2beta1/services/intents/client.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,16 @@ def list_intents(
385385
[Intents.ListIntents][google.cloud.dialogflow.v2beta1.Intents.ListIntents].
386386
parent (str):
387387
Required. The agent to list all intents from. Format:
388-
``projects/<Project ID>/agent``.
388+
``projects/<Project ID>/agent`` or
389+
``projects/<Project ID>/locations/<Location ID>/agent``.
390+
391+
Alternatively, you can specify the environment to list
392+
intents for. Format:
393+
``projects/<Project ID>/agent/environments/<Environment ID>``
394+
or
395+
``projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>``.
396+
Note: training phrases of the intents will not be
397+
returned for non-draft environment.
389398
390399
This corresponds to the ``parent`` field
391400
on the ``request`` instance; if ``request`` is provided, this

google/cloud/dialogflow_v2beta1/types/intent.py

+10-1
Original file line numberDiff line numberDiff line change
@@ -1445,7 +1445,16 @@ class ListIntentsRequest(proto.Message):
14451445
Attributes:
14461446
parent (str):
14471447
Required. The agent to list all intents from. Format:
1448-
``projects/<Project ID>/agent``.
1448+
``projects/<Project ID>/agent`` or
1449+
``projects/<Project ID>/locations/<Location ID>/agent``.
1450+
1451+
Alternatively, you can specify the environment to list
1452+
intents for. Format:
1453+
``projects/<Project ID>/agent/environments/<Environment ID>``
1454+
or
1455+
``projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>``.
1456+
Note: training phrases of the intents will not be returned
1457+
for non-draft environment.
14491458
language_code (str):
14501459
Optional. The language used to access language-specific
14511460
data. If not specified, the agent's default language is

google/cloud/dialogflow_v2beta1/types/participant.py

+18-2
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,23 @@ class AutomatedAgentReply(proto.Message):
297297
event (str):
298298
Event name if an event is triggered for the
299299
query.
300+
match_confidence (float):
301+
The confidence of the match. Values range
302+
from 0.0 (completely uncertain) to 1.0
303+
(completely certain). This value is for
304+
informational purpose only and is only used to
305+
help match the best intent within the
306+
classification threshold. This value may change
307+
for the same end-user expression at any time due
308+
to a model retraining or change in
309+
implementation.
310+
parameters (google.protobuf.struct_pb2.Struct):
311+
The collection of current parameters at the
312+
time of this response.
300313
cx_session_parameters (google.protobuf.struct_pb2.Struct):
301-
The collection of current Dialogflow CX agent
302-
session parameters at the time of this response.
314+
The collection of current Dialogflow CX agent session
315+
parameters at the time of this response. Deprecated: Use
316+
``parameters`` instead.
303317
"""
304318

305319
detect_intent_response = proto.Field(
@@ -310,6 +324,8 @@ class AutomatedAgentReply(proto.Message):
310324
)
311325
intent = proto.Field(proto.STRING, number=4, oneof="match",)
312326
event = proto.Field(proto.STRING, number=5, oneof="match",)
327+
match_confidence = proto.Field(proto.FLOAT, number=9,)
328+
parameters = proto.Field(proto.MESSAGE, number=10, message=struct_pb2.Struct,)
313329
cx_session_parameters = proto.Field(
314330
proto.MESSAGE, number=6, message=struct_pb2.Struct,
315331
)

google/cloud/dialogflow_v2beta1/types/session.py

+2
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,9 @@ class MessageType(proto.Enum):
777777
r"""Type of the response message."""
778778
MESSAGE_TYPE_UNSPECIFIED = 0
779779
TRANSCRIPT = 1
780+
DTMF_DIGITS = 3
780781
END_OF_SINGLE_UTTERANCE = 2
782+
PARTIAL_DTMF_DIGITS = 4
781783

782784
message_type = proto.Field(proto.ENUM, number=1, enum=MessageType,)
783785
transcript = proto.Field(proto.STRING, number=2,)

0 commit comments

Comments
 (0)