Skip to content

Commit ee3c7eb

Browse files
Google APIscopybara-github
authored andcommitted
feat: added support for TelephonyTransferCall in Participant ResponseMessage
PiperOrigin-RevId: 399792725
1 parent 410c184 commit ee3c7eb

3 files changed

Lines changed: 49 additions & 30 deletions

File tree

google/cloud/dialogflow/v2beta1/BUILD.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ java_grpc_library(
9494
java_gapic_library(
9595
name = "dialogflow_java_gapic",
9696
srcs = [":dialogflow_proto_with_info"],
97+
gapic_yaml = None,
9798
grpc_service_config = "dialogflow_grpc_service_config.json",
9899
service_yaml = "dialogflow_v2beta1.yaml",
99100
test_deps = [

google/cloud/dialogflow/v2beta1/audio_config.proto

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -31,36 +31,6 @@ option java_outer_classname = "AudioConfigProto";
3131
option java_package = "com.google.cloud.dialogflow.v2beta1";
3232
option objc_class_prefix = "DF";
3333

34-
// Hints for the speech recognizer to help with recognition in a specific
35-
// conversation state.
36-
message SpeechContext {
37-
// Optional. A list of strings containing words and phrases that the speech
38-
// recognizer should recognize with higher likelihood.
39-
//
40-
// This list can be used to:
41-
//
42-
// * improve accuracy for words and phrases you expect the user to say,
43-
// e.g. typical commands for your Dialogflow agent
44-
// * add additional words to the speech recognizer vocabulary
45-
// * ...
46-
//
47-
// See the [Cloud Speech
48-
// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
49-
// limits.
50-
repeated string phrases = 1;
51-
52-
// Optional. Boost for this context compared to other contexts:
53-
//
54-
// * If the boost is positive, Dialogflow will increase the probability that
55-
// the phrases in this context are recognized over similar sounding phrases.
56-
// * If the boost is unspecified or non-positive, Dialogflow will not apply
57-
// any boost.
58-
//
59-
// Dialogflow recommends that you use boosts in the range (0, 20] and that you
60-
// find a value that fits your use case with binary search.
61-
float boost = 2;
62-
}
63-
6434
// Audio encoding of the audio content sent in the conversational query request.
6535
// Refer to the
6636
// [Cloud Speech API
@@ -110,6 +80,36 @@ enum AudioEncoding {
11080
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
11181
}
11282

83+
// Hints for the speech recognizer to help with recognition in a specific
84+
// conversation state.
85+
message SpeechContext {
86+
// Optional. A list of strings containing words and phrases that the speech
87+
// recognizer should recognize with higher likelihood.
88+
//
89+
// This list can be used to:
90+
//
91+
// * improve accuracy for words and phrases you expect the user to say,
92+
// e.g. typical commands for your Dialogflow agent
93+
// * add additional words to the speech recognizer vocabulary
94+
// * ...
95+
//
96+
// See the [Cloud Speech
97+
// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
98+
// limits.
99+
repeated string phrases = 1;
100+
101+
// Optional. Boost for this context compared to other contexts:
102+
//
103+
// * If the boost is positive, Dialogflow will increase the probability that
104+
// the phrases in this context are recognized over similar sounding phrases.
105+
// * If the boost is unspecified or non-positive, Dialogflow will not apply
106+
// any boost.
107+
//
108+
// Dialogflow recommends that you use boosts in the range (0, 20] and that you
109+
// find a value that fits your use case with binary search.
110+
float boost = 2;
111+
}
112+
113113
// Information for a word recognized by the speech recognizer.
114114
message SpeechWordInfo {
115115
// The word this info is for.

google/cloud/dialogflow/v2beta1/participant.proto

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1044,6 +1044,20 @@ message ResponseMessage {
10441044

10451045
}
10461046

1047+
// Represents the signal that telles the client to transfer the phone call
1048+
// connected to the agent to a third-party endpoint.
1049+
message TelephonyTransferCall {
1050+
// Endpoint to transfer the call to.
1051+
oneof endpoint {
1052+
// Transfer the call to a phone number
1053+
// in [E.164 format](https://en.wikipedia.org/wiki/E.164).
1054+
string phone_number = 1;
1055+
1056+
// Transfer the call to a SIP endpoint.
1057+
string sip_uri = 2;
1058+
}
1059+
}
1060+
10471061
// Required. The rich response message.
10481062
oneof message {
10491063
// Returns a text response.
@@ -1058,5 +1072,9 @@ message ResponseMessage {
10581072
// A signal that indicates the interaction with the Dialogflow agent has
10591073
// ended.
10601074
EndInteraction end_interaction = 4;
1075+
1076+
// A signal that the client should transfer the phone call connected to
1077+
// this agent to a third-party endpoint.
1078+
TelephonyTransferCall telephony_transfer_call = 6;
10611079
}
10621080
}

0 commit comments

Comments
 (0)