fix!: removed ImportAgentResponse which was not ready for use yet.

feat: added labels field and description field into Intent and Dtmf input to QueryInput

PiperOrigin-RevId: 339485389
This commit is contained in:
Google APIs 2020-10-28 10:20:50 -07:00 committed by Copybara-Service
parent f4f491879f
commit 52eaab5357
6 changed files with 50 additions and 30 deletions

View File

@ -161,9 +161,9 @@ go_gapic_library(
service_yaml = "dialogflow_v3beta1.yaml",
deps = [
":cx_go_proto",
"@com_google_cloud_go//longrunning/autogen:go_default_library",
"//google/longrunning:longrunning_go_proto",
"@com_google_cloud_go//longrunning:go_default_library",
"@com_google_cloud_go//longrunning/autogen:go_default_library",
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
"@io_bazel_rules_go//proto/wkt:struct_go_proto",
],

View File

@ -316,12 +316,3 @@ message RestoreAgentRequest {
bytes agent_content = 3;
}
}
// The response message for [Agents.ImportAgent][google.cloud.dialogflow.cx.v3beta1.Agents.ImportAgent].
message ImportAgentResponse {
// The unique identifier of the new agent.
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
string agent = 1 [(google.api.resource_reference) = {
type: "dialogflow.googleapis.com/Agent"
}];
}

View File

@ -19,7 +19,6 @@ apis:
types:
- name: google.cloud.dialogflow.cx.v3beta1.CreateVersionOperationMetadata
- name: google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse
- name: google.cloud.dialogflow.cx.v3beta1.ImportAgentResponse
- name: google.cloud.dialogflow.cx.v3beta1.WebhookRequest
- name: google.cloud.dialogflow.cx.v3beta1.WebhookResponse

View File

@ -195,6 +195,24 @@ message Intent {
// requests that are mistakenly matched, since training phrases assigned to
// fallback intents act as negative examples that triggers no-match event.
bool is_fallback = 6;
// Optional. The key/value metadata to label an intent. Labels can contain
// lowercase letters, digits and the symbols '-' and '_'. International
// characters are allowed, including letters from unicase alphabets. Keys must
// start with a letter. Keys and values can be no longer than 63 characters
// and no more than 128 bytes.
//
// Prefix "sys-" is reserved for Dialogflow defined labels. Currently allowed
// Dialogflow defined labels include:
// * sys-head
// * sys-contextual
// The above labels do not require value. "sys-head" means the intent is a
// head intent. "sys-contextual" means the intent is a contextual intent.
map<string, string> labels = 7 [(google.api.field_behavior) = OPTIONAL];
// Optional. Human readable description for better understanding an intent like its
// scope, content, result etc. Maximum character limit: 140 characters.
string description = 8 [(google.api.field_behavior) = OPTIONAL];
}
// The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3beta1.Intents.ListIntents].

View File

@ -113,25 +113,6 @@ message ResponseMessage {
bool allow_playback_interruption = 3 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Indicates that interaction with the Dialogflow agent has ended.
// This message is generated by Dialogflow only and not supposed to be
// defined by the user.
message EndInteraction {
}
// Specifies an audio clip to be played by the client as part of the response.
message PlayAudio {
// Required. URI of the audio clip. Dialogflow does not impose any validation on this
// value. It is specific to the client that reads it.
string audio_uri = 1 [(google.api.field_behavior) = REQUIRED];
// Output only. Whether the playback of this message can be interrupted by the end
// user's speech and the client can then starts the next Dialogflow
// request.
bool allow_playback_interruption = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Represents an audio message that is composed of both segments
// synthesized from the Dialogflow agent prompts and ones hosted externally
// at the specified URIs.
@ -163,6 +144,25 @@ message ResponseMessage {
repeated Segment segments = 1;
}
// Indicates that interaction with the Dialogflow agent has ended.
// This message is generated by Dialogflow only and not supposed to be
// defined by the user.
message EndInteraction {
}
// Specifies an audio clip to be played by the client as part of the response.
message PlayAudio {
// Required. URI of the audio clip. Dialogflow does not impose any validation on this
// value. It is specific to the client that reads it.
string audio_uri = 1 [(google.api.field_behavior) = REQUIRED];
// Output only. Whether the playback of this message can be interrupted by the end
// user's speech and the client can then starts the next Dialogflow
// request.
bool allow_playback_interruption = 2 [(google.api.field_behavior) = OUTPUT_ONLY];
}
// Required. The rich response message.
oneof message {
// Returns a text response.

View File

@ -400,6 +400,9 @@ message QueryInput {
// The event to be triggered.
EventInput event = 6;
// The DTMF event to be handled.
DtmfInput dtmf = 7;
}
// Required. The language of the input. See [Language
@ -543,6 +546,15 @@ message EventInput {
string event = 1;
}
// Represents the input for dtmf event.
message DtmfInput {
// The dtmf digits.
string digits = 1;
// The finish digit (if any).
string finish_digit = 2;
}
// Represents one match result of [MatchIntent][].
message Match {
// Type of a Match.