Skip to content

Commit 791be5a

Browse files
Google APIscopybara-github
authored andcommitted
feat: added Telephony Gateway DTMF events
doc: added locations in resource name formats doc: wording updates for tiers PiperOrigin-RevId: 331627223
1 parent ba5a928 commit 791be5a

10 files changed

Lines changed: 410 additions & 152 deletions

google/cloud/dialogflow/v2beta1/agent.proto

Lines changed: 23 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,9 @@ service Agents {
194194
rpc GetValidationResult(GetValidationResultRequest) returns (ValidationResult) {
195195
option (google.api.http) = {
196196
get: "/v2beta1/{parent=projects/*}/agent/validationResult"
197+
additional_bindings {
198+
get: "/v2beta1/{parent=projects/*/locations/*}/agent/validationResult"
199+
}
197200
};
198201
}
199202
}
@@ -259,7 +262,8 @@ message Agent {
259262
}
260263

261264
// Required. The project of this agent.
262-
// Format: `projects/<Project ID>`.
265+
// Format: `projects/<Project ID>` or
266+
// `projects/<Project ID>/locations/<Location ID>`
263267
string parent = 1;
264268

265269
// Required. The name of this agent.
@@ -320,7 +324,8 @@ message Agent {
320324
// The request message for [Agents.GetAgent][google.cloud.dialogflow.v2beta1.Agents.GetAgent].
321325
message GetAgentRequest {
322326
// Required. The project that the agent to fetch is associated with.
323-
// Format: `projects/<Project ID>`.
327+
// Format: `projects/<Project ID>` or
328+
// `projects/<Project ID>/locations/<Location ID>`.
324329
string parent = 1 [
325330
(google.api.field_behavior) = REQUIRED,
326331
(google.api.resource_reference) = {
@@ -341,7 +346,8 @@ message SetAgentRequest {
341346
// The request message for [Agents.DeleteAgent][google.cloud.dialogflow.v2beta1.Agents.DeleteAgent].
342347
message DeleteAgentRequest {
343348
// Required. The project that the agent to delete is associated with.
344-
// Format: `projects/<Project ID>`.
349+
// Format: `projects/<Project ID>` or
350+
// `projects/<Project ID>/locations/<Location ID>`.
345351
string parent = 1 [
346352
(google.api.field_behavior) = REQUIRED,
347353
(google.api.resource_reference) = {
@@ -353,7 +359,8 @@ message DeleteAgentRequest {
353359
// Contains basic configuration for a sub-agent.
354360
message SubAgent {
355361
// Required. The project of this agent.
356-
// Format: `projects/<Project ID>`.
362+
// Format: `projects/<Project ID>` or
363+
// `projects/<Project ID>/locations/<Location ID>`.
357364
string project = 1;
358365

359366
// Optional. The unique identifier (`environment name` in dialogflow console)
@@ -365,7 +372,8 @@ message SubAgent {
365372
// The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
366373
message SearchAgentsRequest {
367374
// Required. The project to list agents from.
368-
// Format: `projects/<Project ID or '-'>`.
375+
// Format: `projects/<Project ID or '-'>` or
376+
// `projects/<Project ID or '-'>/locations/<Location ID>`.
369377
string parent = 1 [
370378
(google.api.field_behavior) = REQUIRED,
371379
(google.api.resource_reference) = {
@@ -395,7 +403,8 @@ message SearchAgentsResponse {
395403
// The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent].
396404
message TrainAgentRequest {
397405
// Required. The project that the agent to train is associated with.
398-
// Format: `projects/<Project ID>`.
406+
// Format: `projects/<Project ID>` or
407+
// `projects/<Project ID>/locations/<Location ID>`.
399408
string parent = 1 [
400409
(google.api.field_behavior) = REQUIRED,
401410
(google.api.resource_reference) = {
@@ -407,7 +416,8 @@ message TrainAgentRequest {
407416
// The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
408417
message ExportAgentRequest {
409418
// Required. The project that the agent to export is associated with.
410-
// Format: `projects/<Project ID>`.
419+
// Format: `projects/<Project ID>` or
420+
// `projects/<Project ID>/locations/<Location ID>`.
411421
string parent = 1 [
412422
(google.api.field_behavior) = REQUIRED,
413423
(google.api.resource_reference) = {
@@ -439,7 +449,8 @@ message ExportAgentResponse {
439449
// The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent].
440450
message ImportAgentRequest {
441451
// Required. The project that the agent to import is associated with.
442-
// Format: `projects/<Project ID>`.
452+
// Format: `projects/<Project ID>` or
453+
// `projects/<Project ID>/locations/<Location ID>`.
443454
string parent = 1 [
444455
(google.api.field_behavior) = REQUIRED,
445456
(google.api.resource_reference) = {
@@ -461,7 +472,8 @@ message ImportAgentRequest {
461472
// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2beta1.Agents.RestoreAgent].
462473
message RestoreAgentRequest {
463474
// Required. The project that the agent to restore is associated with.
464-
// Format: `projects/<Project ID>`.
475+
// Format: `projects/<Project ID>` or
476+
// `projects/<Project ID>/locations/<Location ID>`.
465477
string parent = 1 [
466478
(google.api.field_behavior) = REQUIRED,
467479
(google.api.resource_reference) = {
@@ -483,7 +495,8 @@ message RestoreAgentRequest {
483495
// The request message for [Agents.GetValidationResult][google.cloud.dialogflow.v2beta1.Agents.GetValidationResult].
484496
message GetValidationResultRequest {
485497
// Required. The project that the agent is associated with.
486-
// Format: `projects/<Project ID>`.
498+
// Format: `projects/<Project ID>` or
499+
// `projects/<Project ID>/locations/<Location ID>`.
487500
string parent = 1 [
488501
(google.api.field_behavior) = REQUIRED,
489502
(google.api.resource_reference) = {

google/cloud/dialogflow/v2beta1/audio_config.proto

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

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

82+
// Hints for the speech recognizer to help with recognition in a specific
83+
// conversation state.
84+
message SpeechContext {
85+
// Optional. A list of strings containing words and phrases that the speech
86+
// recognizer should recognize with higher likelihood.
87+
//
88+
// This list can be used to:
89+
//
90+
// * improve accuracy for words and phrases you expect the user to say,
91+
// e.g. typical commands for your Dialogflow agent
92+
// * add additional words to the speech recognizer vocabulary
93+
// * ...
94+
//
95+
// See the [Cloud Speech
96+
// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
97+
// limits.
98+
repeated string phrases = 1;
99+
100+
// Optional. Boost for this context compared to other contexts:
101+
//
102+
// * If the boost is positive, Dialogflow will increase the probability that
103+
// the phrases in this context are recognized over similar sounding phrases.
104+
// * If the boost is unspecified or non-positive, Dialogflow will not apply
105+
// any boost.
106+
//
107+
// Dialogflow recommends that you use boosts in the range (0, 20] and that you
108+
// find a value that fits your use case with binary search.
109+
float boost = 2;
110+
}
111+
112112
// Information for a word recognized by the speech recognizer.
113113
message SpeechWordInfo {
114114
// The word this info is for.
@@ -350,3 +350,64 @@ enum OutputAudioEncoding {
350350
// than MP3 while using approximately the same bitrate.
351351
OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3;
352352
}
353+
354+
// A wrapper of repeated TelephonyDtmf digits.
355+
message TelephonyDtmfEvents {
356+
// A sequence of TelephonyDtmf digits.
357+
repeated TelephonyDtmf dtmf_events = 1;
358+
}
359+
360+
// [DTMF](https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling)
361+
// digit in Telephony Gateway.
362+
enum TelephonyDtmf {
363+
// Not specified. This value may be used to indicate an absent digit.
364+
TELEPHONY_DTMF_UNSPECIFIED = 0;
365+
366+
// Number: '1'.
367+
DTMF_ONE = 1;
368+
369+
// Number: '2'.
370+
DTMF_TWO = 2;
371+
372+
// Number: '3'.
373+
DTMF_THREE = 3;
374+
375+
// Number: '4'.
376+
DTMF_FOUR = 4;
377+
378+
// Number: '5'.
379+
DTMF_FIVE = 5;
380+
381+
// Number: '6'.
382+
DTMF_SIX = 6;
383+
384+
// Number: '7'.
385+
DTMF_SEVEN = 7;
386+
387+
// Number: '8'.
388+
DTMF_EIGHT = 8;
389+
390+
// Number: '9'.
391+
DTMF_NINE = 9;
392+
393+
// Number: '0'.
394+
DTMF_ZERO = 10;
395+
396+
// Letter: 'A'.
397+
DTMF_A = 11;
398+
399+
// Letter: 'B'.
400+
DTMF_B = 12;
401+
402+
// Letter: 'C'.
403+
DTMF_C = 13;
404+
405+
// Letter: 'D'.
406+
DTMF_D = 14;
407+
408+
// Asterisk/star: '*'.
409+
DTMF_STAR = 15;
410+
411+
// Pound/diamond/hash/square/gate/octothorpe: '#'.
412+
DTMF_POUND = 16;
413+
}

0 commit comments

Comments
 (0)