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

Commit

Permalink
feat: added location-aware HTTP path binding for ListIntents feat: ex…
Browse files Browse the repository at this point in the history
…posed 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: googleapis/googleapis-gen@be22498
  • Loading branch information
gcf-owl-bot[bot] committed May 19, 2021
1 parent 4c33ad8 commit e52e9c0
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 5 deletions.
11 changes: 10 additions & 1 deletion google/cloud/dialogflow_v2beta1/services/intents/async_client.py
Expand Up @@ -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/<Project ID>/agent``.
``projects/<Project ID>/agent`` or
``projects/<Project ID>/locations/<Location ID>/agent``.
Alternatively, you can specify the environment to list
intents for. Format:
``projects/<Project ID>/agent/environments/<Environment ID>``
or
``projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>``.
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
Expand Down
11 changes: 10 additions & 1 deletion google/cloud/dialogflow_v2beta1/services/intents/client.py
Expand Up @@ -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/<Project ID>/agent``.
``projects/<Project ID>/agent`` or
``projects/<Project ID>/locations/<Location ID>/agent``.
Alternatively, you can specify the environment to list
intents for. Format:
``projects/<Project ID>/agent/environments/<Environment ID>``
or
``projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>``.
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
Expand Down
11 changes: 10 additions & 1 deletion google/cloud/dialogflow_v2beta1/types/intent.py
Expand Up @@ -1445,7 +1445,16 @@ class ListIntentsRequest(proto.Message):
Attributes:
parent (str):
Required. The agent to list all intents from. Format:
``projects/<Project ID>/agent``.
``projects/<Project ID>/agent`` or
``projects/<Project ID>/locations/<Location ID>/agent``.
Alternatively, you can specify the environment to list
intents for. Format:
``projects/<Project ID>/agent/environments/<Environment ID>``
or
``projects/<Project ID>/locations/<Location ID>/agent/environments/<Environment ID>``.
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
Expand Down
20 changes: 18 additions & 2 deletions google/cloud/dialogflow_v2beta1/types/participant.py
Expand Up @@ -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(
Expand All @@ -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,
)
Expand Down
2 changes: 2 additions & 0 deletions google/cloud/dialogflow_v2beta1/types/session.py
Expand Up @@ -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,)
Expand Down

0 comments on commit e52e9c0

Please sign in to comment.