Skip to content
This repository was archived by the owner on Jan 6, 2024. It is now read-only.

Commit e24bdfd

Browse files
feat(v3beta1): added TelephonyTransferCall in response message (#217)
- [x] Regenerate this pull request now. PiperOrigin-RevId: 414081404 Source-Link: googleapis/googleapis@0015848 Source-Link: https://github.com/googleapis/googleapis-gen/commit/31e432677be61ddf23eb394731dd33850cf8f62d Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMzFlNDMyNjc3YmU2MWRkZjIzZWIzOTQ3MzFkZDMzODUwY2Y4ZjYyZCJ9
1 parent 76dae8b commit e24bdfd

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

google/cloud/dialogflowcx_v3beta1/types/response_message.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,12 @@ class ResponseMessage(proto.Message):
104104
This message is generated by Dialogflow only and not
105105
supposed to be defined by the user.
106106
107+
This field is a member of `oneof`_ ``message``.
108+
telephony_transfer_call (google.cloud.dialogflowcx_v3beta1.types.ResponseMessage.TelephonyTransferCall):
109+
A signal that the client should transfer the
110+
phone call connected to this agent to a third-
111+
party endpoint.
112+
107113
This field is a member of `oneof`_ ``message``.
108114
"""
109115

@@ -288,6 +294,23 @@ class Segment(proto.Message):
288294
proto.MESSAGE, number=1, message="ResponseMessage.MixedAudio.Segment",
289295
)
290296

297+
class TelephonyTransferCall(proto.Message):
298+
r"""Represents the signal that telles the client to transfer the
299+
phone call connected to the agent to a third-party endpoint.
300+
301+
302+
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
303+
304+
Attributes:
305+
phone_number (str):
306+
Transfer the call to a phone number in `E.164
307+
format <https://en.wikipedia.org/wiki/E.164>`__.
308+
309+
This field is a member of `oneof`_ ``endpoint``.
310+
"""
311+
312+
phone_number = proto.Field(proto.STRING, number=1, oneof="endpoint",)
313+
291314
text = proto.Field(proto.MESSAGE, number=1, oneof="message", message=Text,)
292315
payload = proto.Field(
293316
proto.MESSAGE, number=2, oneof="message", message=struct_pb2.Struct,
@@ -310,6 +333,9 @@ class Segment(proto.Message):
310333
mixed_audio = proto.Field(
311334
proto.MESSAGE, number=13, oneof="message", message=MixedAudio,
312335
)
336+
telephony_transfer_call = proto.Field(
337+
proto.MESSAGE, number=18, oneof="message", message=TelephonyTransferCall,
338+
)
313339

314340

315341
__all__ = tuple(sorted(__protobuf__.manifest))

0 commit comments

Comments
 (0)