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

Commit

Permalink
feat(v3beta1): added TelephonyTransferCall in response message (#217)
Browse files Browse the repository at this point in the history
- [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
  • Loading branch information
gcf-owl-bot[bot] authored Dec 8, 2021
1 parent 76dae8b commit e24bdfd
Showing 1 changed file with 26 additions and 0 deletions.
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))

0 comments on commit e24bdfd

Please sign in to comment.