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

feat(v3beta1): added TelephonyTransferCall in response message #217

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions google/cloud/dialogflowcx_v3beta1/types/response_message.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,12 @@ class ResponseMessage(proto.Message):
This message is generated by Dialogflow only and not
supposed to be defined by the user.

This field is a member of `oneof`_ ``message``.
telephony_transfer_call (google.cloud.dialogflowcx_v3beta1.types.ResponseMessage.TelephonyTransferCall):
A signal that the client should transfer the
phone call connected to this agent to a third-
party endpoint.

This field is a member of `oneof`_ ``message``.
"""

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

class TelephonyTransferCall(proto.Message):
r"""Represents the signal that telles the client to transfer the
phone call connected to the agent to a third-party endpoint.


.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes:
phone_number (str):
Transfer the call to a phone number in `E.164
format <https://en.wikipedia.org/wiki/E.164>`__.

This field is a member of `oneof`_ ``endpoint``.
"""

phone_number = proto.Field(proto.STRING, number=1, oneof="endpoint",)

text = proto.Field(proto.MESSAGE, number=1, oneof="message", message=Text,)
payload = proto.Field(
proto.MESSAGE, number=2, oneof="message", message=struct_pb2.Struct,
Expand All @@ -310,6 +333,9 @@ class Segment(proto.Message):
mixed_audio = proto.Field(
proto.MESSAGE, number=13, oneof="message", message=MixedAudio,
)
telephony_transfer_call = proto.Field(
proto.MESSAGE, number=18, oneof="message", message=TelephonyTransferCall,
)


__all__ = tuple(sorted(__protobuf__.manifest))