Skip to content

Commit

Permalink
meta: multiple commits (#792)
Browse files Browse the repository at this point in the history
fix: remove resource_reference for invisible resources.
Committer: @sheimi
PiperOrigin-RevId: 362967283
Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Mar 15 10:09:15 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: a1ba4568e228b25124f9a6689cfe3bcab75498a6
Source-Link: googleapis/googleapis@a1ba456
fix: remove rpc or fields that are unintended to release
fix: remove StreamingAnalyzeContent, CreateCallMatcher, ListCallMatchers, DeleteCallMatcher rpc from v2/v2beta1
fix: remove `input_audio` field from AnalyzeContentRequest from v2/v2beta1
fix: remove proto message CreateCallMatcherRequest, CreateCallMatcherResponse, ListCallMatchersRequest, ListCallMatchersResponse, DeleteCallMatcherRequest, DeleteCallMatcherResponse, CallMatcher, StreamingAnalyzeContentRequest, StreamingAnalyzeContentResponse, AudioInput from v2/v2beta1, TelephonyDtmfEvents, TelephonyDtmf from v2
Committer: @sheimi
PiperOrigin-RevId: 363762006
Source-Author: Google APIs <noreply@google.com>
Source-Date: Thu Mar 18 15:37:05 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 8d17d8fafbb87ac64bb3179b99ac34ed41375a51
Source-Link: googleapis/googleapis@8d17d8f
fix: Remove resource_reference from UpdateAnswerRecord.
Committer: @sheimi
PiperOrigin-RevId: 363947872
Source-Author: Google APIs <noreply@google.com>
Source-Date: Fri Mar 19 12:36:25 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 5da78db589d423db6bcd6a35637c923fe1a7665c
Source-Link: googleapis/googleapis@5da78db
docs: fix link for version and environment in participant doc.
fix: Add all missing regional HTTP bindings in DF API.
PiperOrigin-RevId: 364356707
Source-Author: Google APIs <noreply@google.com>
Source-Date: Mon Mar 22 10:50:15 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 5ef92c3f11395a59f55ced317423b992e61d5cfe
Source-Link: googleapis/googleapis@5ef92c3
feat: expose MP3_64_KBPS and MULAW for output audio encodings.
PiperOrigin-RevId: 364696134
Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Mar 23 18:45:59 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: c2bdbfa6f7423369da902a5faaa86bfd213b5169
Source-Link: googleapis/googleapis@c2bdbfa
feat: expose MP3_64_KBPS and MULAW for output audio encodings.
PiperOrigin-RevId: 364697203
Source-Author: Google APIs <noreply@google.com>
Source-Date: Tue Mar 23 18:52:05 2021 -0700
Source-Repo: googleapis/googleapis
Source-Sha: 80c3d0da03afdb09a194341087fe666743d694a0
Source-Link: googleapis/googleapis@80c3d0d
  • Loading branch information
yoshi-automation authored Apr 6, 2021
1 parent 538fd48 commit a48453c
Show file tree
Hide file tree
Showing 82 changed files with 11,346 additions and 31,273 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ service Agents {
rpc GetAgent(GetAgentRequest) returns (Agent) {
option (google.api.http) = {
get: "/v2/{parent=projects/*}/agent"
additional_bindings {
get: "/v2/{parent=projects/*/locations/*}/agent"
}
};
option (google.api.method_signature) = "parent";
}
Expand All @@ -53,6 +56,10 @@ service Agents {
option (google.api.http) = {
post: "/v2/{agent.parent=projects/*}/agent"
body: "agent"
additional_bindings {
post: "/v2/{agent.parent=projects/*/locations/*}/agent"
body: "agent"
}
};
option (google.api.method_signature) = "agent";
}
Expand All @@ -61,6 +68,9 @@ service Agents {
rpc DeleteAgent(DeleteAgentRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v2/{parent=projects/*}/agent"
additional_bindings {
delete: "/v2/{parent=projects/*/locations/*}/agent"
}
};
option (google.api.method_signature) = "parent";
}
Expand All @@ -75,6 +85,9 @@ service Agents {
rpc SearchAgents(SearchAgentsRequest) returns (SearchAgentsResponse) {
option (google.api.http) = {
get: "/v2/{parent=projects/*}/agent:search"
additional_bindings {
get: "/v2/{parent=projects/*/locations/*}/agent:search"
}
};
option (google.api.method_signature) = "parent";
}
Expand All @@ -86,6 +99,10 @@ service Agents {
option (google.api.http) = {
post: "/v2/{parent=projects/*}/agent:train"
body: "*"
additional_bindings {
post: "/v2/{parent=projects/*/locations/*}/agent:train"
body: "*"
}
};
option (google.api.method_signature) = "parent";
option (google.longrunning.operation_info) = {
Expand All @@ -101,6 +118,10 @@ service Agents {
option (google.api.http) = {
post: "/v2/{parent=projects/*}/agent:export"
body: "*"
additional_bindings {
post: "/v2/{parent=projects/*/locations/*}/agent:export"
body: "*"
}
};
option (google.api.method_signature) = "parent";
option (google.longrunning.operation_info) = {
Expand All @@ -126,6 +147,10 @@ service Agents {
option (google.api.http) = {
post: "/v2/{parent=projects/*}/agent:import"
body: "*"
additional_bindings {
post: "/v2/{parent=projects/*/locations/*}/agent:import"
body: "*"
}
};
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
Expand All @@ -149,6 +174,10 @@ service Agents {
option (google.api.http) = {
post: "/v2/{parent=projects/*}/agent:restore"
body: "*"
additional_bindings {
post: "/v2/{parent=projects/*/locations/*}/agent:restore"
body: "*"
}
};
option (google.longrunning.operation_info) = {
response_type: "google.protobuf.Empty"
Expand All @@ -161,6 +190,9 @@ service Agents {
rpc GetValidationResult(GetValidationResultRequest) returns (ValidationResult) {
option (google.api.http) = {
get: "/v2/{parent=projects/*}/agent/validationResult"
additional_bindings {
get: "/v2/{parent=projects/*/locations/*}/agent/validationResult"
}
};
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ option java_outer_classname = "AnswerRecordsProto";
option java_package = "com.google.cloud.dialogflow.v2";
option objc_class_prefix = "DF";

// Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
// Service for managing
// [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
service AnswerRecords {
option (google.api.default_host) = "dialogflow.googleapis.com";
option (google.api.oauth_scopes) =
Expand All @@ -42,7 +43,8 @@ service AnswerRecords {

// Returns the list of all answer records in the specified project in reverse
// chronological order.
rpc ListAnswerRecords(ListAnswerRecordsRequest) returns (ListAnswerRecordsResponse) {
rpc ListAnswerRecords(ListAnswerRecordsRequest)
returns (ListAnswerRecordsResponse) {
option (google.api.http) = {
get: "/v2/{parent=projects/*}/answerRecords"
additional_bindings {
Expand Down Expand Up @@ -87,9 +89,11 @@ service AnswerRecords {
// A typical workflow for customers provide feedback to an answer is:
//
// 1. For human agent assistant, customers get suggestion via ListSuggestions
// API. Together with the answers, [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] are returned to the
// customers.
// 2. The customer uses the [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] to call the
// API. Together with the answers,
// [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] are
// returned to the customers.
// 2. The customer uses the
// [AnswerRecord.name][google.cloud.dialogflow.v2.AnswerRecord.name] to call the
// [UpdateAnswerRecord][] method to send feedback about a specific answer
// that they believe is wrong.
message AnswerRecord {
Expand All @@ -105,18 +109,20 @@ message AnswerRecord {
string name = 1;

// Required. The AnswerFeedback for this record. You can set this with
// [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord] in order to give us feedback about
// this answer.
// [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord]
// in order to give us feedback about this answer.
AnswerFeedback answer_feedback = 2 [(google.api.field_behavior) = REQUIRED];

// The record for this answer.
oneof record {
// Output only. The record for human agent assistant.
AgentAssistantRecord agent_assistant_record = 4 [(google.api.field_behavior) = OUTPUT_ONLY];
AgentAssistantRecord agent_assistant_record = 4
[(google.api.field_behavior) = OUTPUT_ONLY];
}
}

// Request message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords].
// Request message for
// [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords].
message ListAnswerRecordsRequest {
// Required. The project to list all answer records for in reverse
// chronological order. Format: `projects/<Project ID>/locations/<Location
Expand Down Expand Up @@ -148,7 +154,8 @@ message ListAnswerRecordsRequest {
string page_token = 4 [(google.api.field_behavior) = OPTIONAL];
}

// Response message for [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords].
// Response message for
// [AnswerRecords.ListAnswerRecords][google.cloud.dialogflow.v2.AnswerRecords.ListAnswerRecords].
message ListAnswerRecordsResponse {
// The list of answer records.
repeated AnswerRecord answer_records = 1;
Expand All @@ -162,18 +169,15 @@ message ListAnswerRecordsResponse {
string next_page_token = 2;
}

// Request message for [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord].
// Request message for
// [AnswerRecords.UpdateAnswerRecord][google.cloud.dialogflow.v2.AnswerRecords.UpdateAnswerRecord].
message UpdateAnswerRecordRequest {
// Required. Answer record to update.
AnswerRecord answer_record = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
type: "dialogflow.googleapis.com/AnswerRecord"
}
];
AnswerRecord answer_record = 1 [(google.api.field_behavior) = REQUIRED];

// Required. The mask to control which fields get updated.
google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED];
google.protobuf.FieldMask update_mask = 2
[(google.api.field_behavior) = REQUIRED];
}

// Represents feedback the customer has about the quality & correctness of a
Expand Down Expand Up @@ -275,21 +279,26 @@ message AgentAssistantFeedback {
// days of the purchase date."
// * Ground truth: "No return or exchange is allowed."
// * [document_correctness]: INCORRECT
DocumentCorrectness document_correctness = 2 [(google.api.field_behavior) = OPTIONAL];
DocumentCorrectness document_correctness = 2
[(google.api.field_behavior) = OPTIONAL];

// Optional. Whether or not the suggested document is efficient. For example,
// if the document is poorly written, hard to understand, hard to use or
// too long to find useful information, [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency] is
// too long to find useful information,
// [document_efficiency][google.cloud.dialogflow.v2.AgentAssistantFeedback.document_efficiency]
// is
// [DocumentEfficiency.INEFFICIENT][google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiency.INEFFICIENT].
DocumentEfficiency document_efficiency = 3 [(google.api.field_behavior) = OPTIONAL];
DocumentEfficiency document_efficiency = 3
[(google.api.field_behavior) = OPTIONAL];
}

// Represents a record of a human agent assist answer.
message AgentAssistantRecord {
// Output only. The agent assist answer.
oneof answer {
// Output only. The article suggestion answer.
ArticleAnswer article_suggestion_answer = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
ArticleAnswer article_suggestion_answer = 5
[(google.api.field_behavior) = OUTPUT_ONLY];

// Output only. The FAQ answer.
FaqAnswer faq_answer = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -337,10 +337,13 @@ message OutputAudioConfig {
SynthesizeSpeechConfig synthesize_speech_config = 3;
}

// A wrapper of repeated TelephonyDtmf digits.
message TelephonyDtmfEvents {
// A sequence of TelephonyDtmf digits.
repeated TelephonyDtmf dtmf_events = 1;
// Configures speech transcription for [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile].
message SpeechToTextConfig {
// Optional. The speech model used in speech to text.
// `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
// `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and
// [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request.
SpeechModelVariant speech_model_variant = 1 [(google.api.field_behavior) = OPTIONAL];
}

// Audio encoding of the output audio format in Text-To-Speech.
Expand All @@ -355,73 +358,15 @@ enum OutputAudioEncoding {
// MP3 audio at 32kbps.
OUTPUT_AUDIO_ENCODING_MP3 = 2;

// MP3 audio at 64kbps.
OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4;

// Opus encoded audio wrapped in an ogg container. The result will be a
// file which can be played natively on Android, and in browsers (at least
// Chrome and Firefox). The quality of the encoding is considerably higher
// than MP3 while using approximately the same bitrate.
OUTPUT_AUDIO_ENCODING_OGG_OPUS = 3;
}

// Configures speech transcription for [ConversationProfile][google.cloud.dialogflow.v2.ConversationProfile].
message SpeechToTextConfig {
// Optional. The speech model used in speech to text.
// `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as
// `USE_ENHANCED`. It can be overridden in [AnalyzeContentRequest][google.cloud.dialogflow.v2.AnalyzeContentRequest] and
// [StreamingAnalyzeContentRequest][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest] request.
SpeechModelVariant speech_model_variant = 1 [(google.api.field_behavior) = OPTIONAL];
}

// [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;
// 8-bit samples that compand 14-bit audio samples using G.711 PCMU/mu-law.
OUTPUT_AUDIO_ENCODING_MULAW = 5;
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,12 @@ service Contexts {
additional_bindings {
get: "/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contexts"
}
additional_bindings {
get: "/v2/{parent=projects/*/locations/*/agent/sessions/*}/contexts"
}
additional_bindings {
get: "/v2/{parent=projects/*/locations/*/agent/environments/*/users/*/sessions/*}/contexts"
}
};
option (google.api.method_signature) = "parent";
}
Expand All @@ -57,6 +63,12 @@ service Contexts {
additional_bindings {
get: "/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}"
}
additional_bindings {
get: "/v2/{name=projects/*/locations/*/agent/sessions/*/contexts/*}"
}
additional_bindings {
get: "/v2/{name=projects/*/locations/*/agent/environments/*/users/*/sessions/*/contexts/*}"
}
};
option (google.api.method_signature) = "name";
}
Expand All @@ -72,6 +84,14 @@ service Contexts {
post: "/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contexts"
body: "context"
}
additional_bindings {
post: "/v2/{parent=projects/*/locations/*/agent/sessions/*}/contexts"
body: "context"
}
additional_bindings {
post: "/v2/{parent=projects/*/locations/*/agent/environments/*/users/*/sessions/*}/contexts"
body: "context"
}
};
option (google.api.method_signature) = "parent,context";
}
Expand All @@ -85,6 +105,14 @@ service Contexts {
patch: "/v2/{context.name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}"
body: "context"
}
additional_bindings {
patch: "/v2/{context.name=projects/*/locations/*/agent/sessions/*/contexts/*}"
body: "context"
}
additional_bindings {
patch: "/v2/{context.name=projects/*/locations/*/agent/environments/*/users/*/sessions/*/contexts/*}"
body: "context"
}
};
option (google.api.method_signature) = "context,update_mask";
}
Expand All @@ -96,6 +124,12 @@ service Contexts {
additional_bindings {
delete: "/v2/{name=projects/*/agent/environments/*/users/*/sessions/*/contexts/*}"
}
additional_bindings {
delete: "/v2/{name=projects/*/locations/*/agent/sessions/*/contexts/*}"
}
additional_bindings {
delete: "/v2/{name=projects/*/locations/*/agent/environments/*/users/*/sessions/*/contexts/*}"
}
};
option (google.api.method_signature) = "name";
}
Expand All @@ -107,6 +141,12 @@ service Contexts {
additional_bindings {
delete: "/v2/{parent=projects/*/agent/environments/*/users/*/sessions/*}/contexts"
}
additional_bindings {
delete: "/v2/{parent=projects/*/locations/*/agent/sessions/*}/contexts"
}
additional_bindings {
delete: "/v2/{parent=projects/*/locations/*/agent/environments/*/users/*/sessions/*}/contexts"
}
};
option (google.api.method_signature) = "parent";
}
Expand Down
Loading

0 comments on commit a48453c

Please sign in to comment.