Skip to content

Commit

Permalink
fix!: removed ImportAgentResponse which was not ready for use yet.
Browse files Browse the repository at this point in the history
feat: added labels field and description field into Intent and Dtmf input to QueryInput

PiperOrigin-RevId: 339485389
  • Loading branch information
Google APIs authored and Copybara-Service committed Oct 28, 2020
1 parent f4f4918 commit 52eaab5
Show file tree
Hide file tree
Showing 6 changed files with 50 additions and 30 deletions.
2 changes: 1 addition & 1 deletion google/cloud/dialogflow/cx/v3beta1/BUILD.bazel
Expand Up @@ -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",
],
Expand Down
9 changes: 0 additions & 9 deletions google/cloud/dialogflow/cx/v3beta1/agent.proto
Expand Up @@ -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"
}];
}
1 change: 0 additions & 1 deletion google/cloud/dialogflow/cx/v3beta1/dialogflow_v3beta1.yaml
Expand Up @@ -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

Expand Down
18 changes: 18 additions & 0 deletions google/cloud/dialogflow/cx/v3beta1/intent.proto
Expand Up @@ -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].
Expand Down
38 changes: 19 additions & 19 deletions google/cloud/dialogflow/cx/v3beta1/response_message.proto
Expand Up @@ -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.
Expand Down Expand Up @@ -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.
Expand Down
12 changes: 12 additions & 0 deletions google/cloud/dialogflow/cx/v3beta1/session.proto
Expand Up @@ -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
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 52eaab5

Please sign in to comment.