Skip to content

Commit

Permalink
feat: added Telephony Gateway DTMF events doc: added locations in res…
Browse files Browse the repository at this point in the history
…ource name formats doc: wording updates for tiers (#683)

PiperOrigin-RevId: 331627223

Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Sep 14 14:16:43 2020 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 791be5a40033c18034afed50232daad6bdc8cf3e
Source-Link: googleapis/googleapis@791be5a
  • Loading branch information
yoshi-automation authored Sep 15, 2020
1 parent d5c540e commit 16ac3cd
Show file tree
Hide file tree
Showing 20 changed files with 1,236 additions and 332 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,9 @@ service Agents {
rpc GetValidationResult(GetValidationResultRequest) returns (ValidationResult) {
option (google.api.http) = {
get: "/v2beta1/{parent=projects/*}/agent/validationResult"
additional_bindings {
get: "/v2beta1/{parent=projects/*/locations/*}/agent/validationResult"
}
};
}
}
Expand Down Expand Up @@ -259,7 +262,8 @@ message Agent {
}

// Required. The project of this agent.
// Format: `projects/<Project ID>`.
// Format: `projects/<Project ID>` or
// `projects/<Project ID>/locations/<Location ID>`
string parent = 1;

// Required. The name of this agent.
Expand Down Expand Up @@ -320,7 +324,8 @@ message Agent {
// The request message for [Agents.GetAgent][google.cloud.dialogflow.v2beta1.Agents.GetAgent].
message GetAgentRequest {
// Required. The project that the agent to fetch is associated with.
// Format: `projects/<Project ID>`.
// Format: `projects/<Project ID>` or
// `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -341,7 +346,8 @@ message SetAgentRequest {
// The request message for [Agents.DeleteAgent][google.cloud.dialogflow.v2beta1.Agents.DeleteAgent].
message DeleteAgentRequest {
// Required. The project that the agent to delete is associated with.
// Format: `projects/<Project ID>`.
// Format: `projects/<Project ID>` or
// `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -353,7 +359,8 @@ message DeleteAgentRequest {
// Contains basic configuration for a sub-agent.
message SubAgent {
// Required. The project of this agent.
// Format: `projects/<Project ID>`.
// Format: `projects/<Project ID>` or
// `projects/<Project ID>/locations/<Location ID>`.
string project = 1;

// Optional. The unique identifier (`environment name` in dialogflow console)
Expand All @@ -365,7 +372,8 @@ message SubAgent {
// The request message for [Agents.SearchAgents][google.cloud.dialogflow.v2beta1.Agents.SearchAgents].
message SearchAgentsRequest {
// Required. The project to list agents from.
// Format: `projects/<Project ID or '-'>`.
// Format: `projects/<Project ID or '-'>` or
// `projects/<Project ID or '-'>/locations/<Location ID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -395,7 +403,8 @@ message SearchAgentsResponse {
// The request message for [Agents.TrainAgent][google.cloud.dialogflow.v2beta1.Agents.TrainAgent].
message TrainAgentRequest {
// Required. The project that the agent to train is associated with.
// Format: `projects/<Project ID>`.
// Format: `projects/<Project ID>` or
// `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -407,7 +416,8 @@ message TrainAgentRequest {
// The request message for [Agents.ExportAgent][google.cloud.dialogflow.v2beta1.Agents.ExportAgent].
message ExportAgentRequest {
// Required. The project that the agent to export is associated with.
// Format: `projects/<Project ID>`.
// Format: `projects/<Project ID>` or
// `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down Expand Up @@ -439,7 +449,8 @@ message ExportAgentResponse {
// The request message for [Agents.ImportAgent][google.cloud.dialogflow.v2beta1.Agents.ImportAgent].
message ImportAgentRequest {
// Required. The project that the agent to import is associated with.
// Format: `projects/<Project ID>`.
// Format: `projects/<Project ID>` or
// `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -461,7 +472,8 @@ message ImportAgentRequest {
// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.v2beta1.Agents.RestoreAgent].
message RestoreAgentRequest {
// Required. The project that the agent to restore is associated with.
// Format: `projects/<Project ID>`.
// Format: `projects/<Project ID>` or
// `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand All @@ -483,7 +495,8 @@ message RestoreAgentRequest {
// The request message for [Agents.GetValidationResult][google.cloud.dialogflow.v2beta1.Agents.GetValidationResult].
message GetValidationResultRequest {
// Required. The project that the agent is associated with.
// Format: `projects/<Project ID>`.
// Format: `projects/<Project ID>` or
// `projects/<Project ID>/locations/<Location ID>`.
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,36 +30,6 @@ option java_outer_classname = "AudioConfigProto";
option java_package = "com.google.cloud.dialogflow.v2beta1";
option objc_class_prefix = "DF";

// Hints for the speech recognizer to help with recognition in a specific
// conversation state.
message SpeechContext {
// Optional. A list of strings containing words and phrases that the speech
// recognizer should recognize with higher likelihood.
//
// This list can be used to:
//
// * improve accuracy for words and phrases you expect the user to say,
// e.g. typical commands for your Dialogflow agent
// * add additional words to the speech recognizer vocabulary
// * ...
//
// See the [Cloud Speech
// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
// limits.
repeated string phrases = 1;

// Optional. Boost for this context compared to other contexts:
//
// * If the boost is positive, Dialogflow will increase the probability that
// the phrases in this context are recognized over similar sounding phrases.
// * If the boost is unspecified or non-positive, Dialogflow will not apply
// any boost.
//
// Dialogflow recommends that you use boosts in the range (0, 20] and that you
// find a value that fits your use case with binary search.
float boost = 2;
}

// Audio encoding of the audio content sent in the conversational query request.
// Refer to the
// [Cloud Speech API
Expand Down Expand Up @@ -109,6 +79,36 @@ enum AudioEncoding {
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
}

// Hints for the speech recognizer to help with recognition in a specific
// conversation state.
message SpeechContext {
// Optional. A list of strings containing words and phrases that the speech
// recognizer should recognize with higher likelihood.
//
// This list can be used to:
//
// * improve accuracy for words and phrases you expect the user to say,
// e.g. typical commands for your Dialogflow agent
// * add additional words to the speech recognizer vocabulary
// * ...
//
// See the [Cloud Speech
// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
// limits.
repeated string phrases = 1;

// Optional. Boost for this context compared to other contexts:
//
// * If the boost is positive, Dialogflow will increase the probability that
// the phrases in this context are recognized over similar sounding phrases.
// * If the boost is unspecified or non-positive, Dialogflow will not apply
// any boost.
//
// Dialogflow recommends that you use boosts in the range (0, 20] and that you
// find a value that fits your use case with binary search.
float boost = 2;
}

// Information for a word recognized by the speech recognizer.
message SpeechWordInfo {
// The word this info is for.
Expand Down Expand Up @@ -350,3 +350,64 @@ enum OutputAudioEncoding {
// than MP3 while using approximately the same bitrate.
OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3;
}

// A wrapper of repeated TelephonyDtmf digits.
message TelephonyDtmfEvents {
// A sequence of TelephonyDtmf digits.
repeated TelephonyDtmf dtmf_events = 1;
}

// [DTMF](https://en.wikipedia.org/wiki/Dual-tone_multi-frequency_signaling)
// digit in Telephony Gateway.
enum TelephonyDtmf {
// Not specified. This value may be used to indicate an absent digit.
TELEPHONY_DTMF_UNSPECIFIED = 0;

// Number: '1'.
DTMF_ONE = 1;

// Number: '2'.
DTMF_TWO = 2;

// Number: '3'.
DTMF_THREE = 3;

// Number: '4'.
DTMF_FOUR = 4;

// Number: '5'.
DTMF_FIVE = 5;

// Number: '6'.
DTMF_SIX = 6;

// Number: '7'.
DTMF_SEVEN = 7;

// Number: '8'.
DTMF_EIGHT = 8;

// Number: '9'.
DTMF_NINE = 9;

// Number: '0'.
DTMF_ZERO = 10;

// Letter: 'A'.
DTMF_A = 11;

// Letter: 'B'.
DTMF_B = 12;

// Letter: 'C'.
DTMF_C = 13;

// Letter: 'D'.
DTMF_D = 14;

// Asterisk/star: '*'.
DTMF_STAR = 15;

// Pound/diamond/hash/square/gate/octothorpe: '#'.
DTMF_POUND = 16;
}
Loading

0 comments on commit 16ac3cd

Please sign in to comment.