Skip to content

Commit b00c429

Browse files
Google APIscopybara-github
authored andcommitted
feat: add support for AdvancedSettings
feat: add Intent import/export APIs feat: add Inline destination chore: remove the extraneous backend config PiperOrigin-RevId: 568902363
1 parent 60a3b87 commit b00c429

9 files changed

Lines changed: 328 additions & 56 deletions

File tree

google/cloud/dialogflow/cx/v3/BUILD.bazel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ proto_library(
3535
"gcs.proto",
3636
"generative_settings.proto",
3737
"import_strategy.proto",
38+
"inline.proto",
3839
"intent.proto",
3940
"page.proto",
4041
"response_message.proto",
@@ -403,7 +404,6 @@ load(
403404

404405
csharp_proto_library(
405406
name = "cx_csharp_proto",
406-
extra_opts = [],
407407
deps = [":cx_proto"],
408408
)
409409

google/cloud/dialogflow/cx/v3/advanced_settings.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,23 @@ option ruby_package = "Google::Cloud::Dialogflow::CX::V3";
4040
//
4141
// Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
4242
message AdvancedSettings {
43+
// Define behaviors for DTMF (dual tone multi frequency).
44+
message DtmfSettings {
45+
// If true, incoming audio is processed for DTMF (dual tone multi frequency)
46+
// events. For example, if the caller presses a button on their telephone
47+
// keypad and DTMF processing is enabled, Dialogflow will detect the
48+
// event (e.g. a "3" was pressed) in the incoming audio and pass the event
49+
// to the bot to drive business logic (e.g. when 3 is pressed, return the
50+
// account balance).
51+
bool enabled = 1;
52+
53+
// Max length of DTMF digits.
54+
int32 max_digits = 2;
55+
56+
// The digit that terminates a DTMF digit sequence.
57+
string finish_digit = 3;
58+
}
59+
4360
// Define behaviors on logging.
4461
message LoggingSettings {
4562
// If true, StackDriver logging is currently enabled.
@@ -56,6 +73,14 @@ message AdvancedSettings {
5673
// - Flow level
5774
GcsDestination audio_export_gcs_destination = 2;
5875

76+
// Settings for DTMF.
77+
// Exposed at the following levels:
78+
// - Agent level
79+
// - Flow level
80+
// - Page level
81+
// - Parameter level.
82+
DtmfSettings dtmf_settings = 5;
83+
5984
// Settings for logging.
6085
// Settings for Dialogflow History, Contact Center messages, StackDriver logs,
6186
// and speech logging.

google/cloud/dialogflow/cx/v3/dialogflow_v3.yaml

Lines changed: 4 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,13 @@ types:
3131
- name: google.cloud.dialogflow.cx.v3.DeployFlowResponse
3232
- name: google.cloud.dialogflow.cx.v3.ExportAgentResponse
3333
- name: google.cloud.dialogflow.cx.v3.ExportFlowResponse
34+
- name: google.cloud.dialogflow.cx.v3.ExportIntentsMetadata
35+
- name: google.cloud.dialogflow.cx.v3.ExportIntentsResponse
3436
- name: google.cloud.dialogflow.cx.v3.ExportTestCasesMetadata
3537
- name: google.cloud.dialogflow.cx.v3.ExportTestCasesResponse
3638
- name: google.cloud.dialogflow.cx.v3.ImportFlowResponse
39+
- name: google.cloud.dialogflow.cx.v3.ImportIntentsMetadata
40+
- name: google.cloud.dialogflow.cx.v3.ImportIntentsResponse
3741
- name: google.cloud.dialogflow.cx.v3.ImportTestCasesMetadata
3842
- name: google.cloud.dialogflow.cx.v3.ImportTestCasesResponse
3943
- name: google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata
@@ -69,61 +73,6 @@ documentation:
6973
- selector: google.cloud.location.Locations.ListLocations
7074
description: Lists information about the supported locations for this service.
7175

72-
backend:
73-
rules:
74-
- selector: 'google.cloud.dialogflow.cx.v3.Agents.*'
75-
deadline: 60.0
76-
- selector: google.cloud.dialogflow.cx.v3.Agents.CreateAgent
77-
deadline: 180.0
78-
- selector: google.cloud.dialogflow.cx.v3.Changelogs.GetChangelog
79-
deadline: 60.0
80-
- selector: google.cloud.dialogflow.cx.v3.Changelogs.ListChangelogs
81-
deadline: 60.0
82-
- selector: google.cloud.dialogflow.cx.v3.Deployments.GetDeployment
83-
deadline: 60.0
84-
- selector: google.cloud.dialogflow.cx.v3.Deployments.ListDeployments
85-
deadline: 60.0
86-
- selector: 'google.cloud.dialogflow.cx.v3.EntityTypes.*'
87-
deadline: 60.0
88-
- selector: 'google.cloud.dialogflow.cx.v3.Environments.*'
89-
deadline: 60.0
90-
- selector: 'google.cloud.dialogflow.cx.v3.Experiments.*'
91-
deadline: 60.0
92-
- selector: 'google.cloud.dialogflow.cx.v3.Flows.*'
93-
deadline: 60.0
94-
- selector: 'google.cloud.dialogflow.cx.v3.Intents.*'
95-
deadline: 60.0
96-
- selector: 'google.cloud.dialogflow.cx.v3.Pages.*'
97-
deadline: 60.0
98-
- selector: 'google.cloud.dialogflow.cx.v3.SecuritySettingsService.*'
99-
deadline: 60.0
100-
- selector: 'google.cloud.dialogflow.cx.v3.SessionEntityTypes.*'
101-
deadline: 60.0
102-
- selector: google.cloud.dialogflow.cx.v3.Sessions.DetectIntent
103-
deadline: 220.0
104-
- selector: google.cloud.dialogflow.cx.v3.Sessions.FulfillIntent
105-
deadline: 60.0
106-
- selector: google.cloud.dialogflow.cx.v3.Sessions.MatchIntent
107-
deadline: 60.0
108-
- selector: google.cloud.dialogflow.cx.v3.Sessions.StreamingDetectIntent
109-
deadline: 220.0
110-
- selector: 'google.cloud.dialogflow.cx.v3.TestCases.*'
111-
deadline: 60.0
112-
- selector: 'google.cloud.dialogflow.cx.v3.TransitionRouteGroups.*'
113-
deadline: 60.0
114-
- selector: 'google.cloud.dialogflow.cx.v3.Versions.*'
115-
deadline: 60.0
116-
- selector: 'google.cloud.dialogflow.cx.v3.Webhooks.*'
117-
deadline: 60.0
118-
- selector: google.cloud.location.Locations.GetLocation
119-
deadline: 60.0
120-
- selector: google.cloud.location.Locations.ListLocations
121-
deadline: 60.0
122-
- selector: 'google.longrunning.Operations.*'
123-
deadline: 60.0
124-
- selector: google.longrunning.Operations.ListOperations
125-
deadline: 180.0
126-
12776
http:
12877
rules:
12978
- selector: google.cloud.location.Locations.GetLocation

google/cloud/dialogflow/cx/v3/flow.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import "google/api/annotations.proto";
2020
import "google/api/client.proto";
2121
import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
23+
import "google/cloud/dialogflow/cx/v3/advanced_settings.proto";
2324
import "google/cloud/dialogflow/cx/v3/import_strategy.proto";
2425
import "google/cloud/dialogflow/cx/v3/page.proto";
2526
import "google/cloud/dialogflow/cx/v3/validation_message.proto";
@@ -321,6 +322,10 @@ message Flow {
321322
// NLU related settings of the flow.
322323
NluSettings nlu_settings = 11;
323324

325+
// Hierarchical advanced settings for this flow. The settings exposed at the
326+
// lower level overrides the settings exposed at the higher level.
327+
AdvancedSettings advanced_settings = 14;
328+
324329
// Optional. Knowledge connector configuration.
325330
KnowledgeConnectorSettings knowledge_connector_settings = 18
326331
[(google.api.field_behavior) = OPTIONAL];

google/cloud/dialogflow/cx/v3/fulfillment.proto

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ syntax = "proto3";
1717
package google.cloud.dialogflow.cx.v3;
1818

1919
import "google/api/resource.proto";
20+
import "google/cloud/dialogflow/cx/v3/advanced_settings.proto";
2021
import "google/cloud/dialogflow/cx/v3/response_message.proto";
2122
import "google/protobuf/struct.proto";
2223

@@ -124,4 +125,15 @@ message Fulfillment {
124125

125126
// Conditional cases for this fulfillment.
126127
repeated ConditionalCases conditional_cases = 5;
128+
129+
// Hierarchical advanced settings for this fulfillment. The settings exposed
130+
// at the lower level overrides the settings exposed at the higher level.
131+
AdvancedSettings advanced_settings = 7;
132+
133+
// If the flag is true, the agent will utilize LLM to generate a text
134+
// response. If LLM generation fails, the defined
135+
// [responses][google.cloud.dialogflow.cx.v3.Fulfillment.messages] in the
136+
// fulfillment will be respected. This flag is only useful for fulfillments
137+
// associated with no-match event handlers.
138+
bool enable_generative_fallback = 12;
127139
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Copyright 2023 Google LLC
2+
//
3+
// Licensed under the Apache License, Version 2.0 (the "License");
4+
// you may not use this file except in compliance with the License.
5+
// You may obtain a copy of the License at
6+
//
7+
// http://www.apache.org/licenses/LICENSE-2.0
8+
//
9+
// Unless required by applicable law or agreed to in writing, software
10+
// distributed under the License is distributed on an "AS IS" BASIS,
11+
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12+
// See the License for the specific language governing permissions and
13+
// limitations under the License.
14+
15+
syntax = "proto3";
16+
17+
package google.cloud.dialogflow.cx.v3;
18+
19+
import "google/api/field_behavior.proto";
20+
21+
option cc_enable_arenas = true;
22+
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3";
23+
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "InlineProto";
26+
option java_package = "com.google.cloud.dialogflow.cx.v3";
27+
option objc_class_prefix = "DF";
28+
option ruby_package = "Google::Cloud::Dialogflow::CX::V3";
29+
30+
// Inline destination for a Dialogflow operation that writes or exports objects
31+
// (e.g. [intents][google.cloud.dialogflow.cx.v3.Intent]) outside of Dialogflow.
32+
message InlineDestination {
33+
// Output only. The uncompressed byte content for the objects.
34+
// Only populated in responses.
35+
bytes content = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
36+
}
37+
38+
// Inline source for a Dialogflow operation that reads or imports objects
39+
// (e.g. [intents][google.cloud.dialogflow.cx.v3.Intent]) into Dialogflow.
40+
message InlineSource {
41+
// The uncompressed byte content for the objects.
42+
bytes content = 1;
43+
}

0 commit comments

Comments
 (0)