diff --git a/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel b/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel index 7a804b20..6276951b 100644 --- a/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel +++ b/google/cloud/dialogflow/cx/v3beta1/BUILD.bazel @@ -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", ], diff --git a/google/cloud/dialogflow/cx/v3beta1/agent.proto b/google/cloud/dialogflow/cx/v3beta1/agent.proto index c6ffbca7..473475d6 100644 --- a/google/cloud/dialogflow/cx/v3beta1/agent.proto +++ b/google/cloud/dialogflow/cx/v3beta1/agent.proto @@ -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//locations//agents/`. - string agent = 1 [(google.api.resource_reference) = { - type: "dialogflow.googleapis.com/Agent" - }]; -} diff --git a/google/cloud/dialogflow/cx/v3beta1/dialogflow_v3beta1.yaml b/google/cloud/dialogflow/cx/v3beta1/dialogflow_v3beta1.yaml index db1bdf9c..42a8c13d 100644 --- a/google/cloud/dialogflow/cx/v3beta1/dialogflow_v3beta1.yaml +++ b/google/cloud/dialogflow/cx/v3beta1/dialogflow_v3beta1.yaml @@ -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 diff --git a/google/cloud/dialogflow/cx/v3beta1/intent.proto b/google/cloud/dialogflow/cx/v3beta1/intent.proto index b6057720..53b74fae 100644 --- a/google/cloud/dialogflow/cx/v3beta1/intent.proto +++ b/google/cloud/dialogflow/cx/v3beta1/intent.proto @@ -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 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]. diff --git a/google/cloud/dialogflow/cx/v3beta1/response_message.proto b/google/cloud/dialogflow/cx/v3beta1/response_message.proto index 1627520e..7a9f9650 100644 --- a/google/cloud/dialogflow/cx/v3beta1/response_message.proto +++ b/google/cloud/dialogflow/cx/v3beta1/response_message.proto @@ -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. diff --git a/google/cloud/dialogflow/cx/v3beta1/session.proto b/google/cloud/dialogflow/cx/v3beta1/session.proto index 27fdeb15..397c2078 100644 --- a/google/cloud/dialogflow/cx/v3beta1/session.proto +++ b/google/cloud/dialogflow/cx/v3beta1/session.proto @@ -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.