Skip to content

Commit f91419c

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: 569217741
1 parent 96ded9f commit f91419c

9 files changed

Lines changed: 329 additions & 56 deletions

File tree

google/cloud/dialogflow/cx/v3beta1/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",
@@ -402,7 +403,6 @@ load(
402403

403404
csharp_proto_library(
404405
name = "cx_csharp_proto",
405-
extra_opts = [],
406406
deps = [":cx_proto"],
407407
)
408408

google/cloud/dialogflow/cx/v3beta1/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::V3beta1";
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/v3beta1/dialogflow_v3beta1.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.v3beta1.DeployFlowResponse
3232
- name: google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse
3333
- name: google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse
34+
- name: google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata
35+
- name: google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse
3436
- name: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata
3537
- name: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse
3638
- name: google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse
39+
- name: google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata
40+
- name: google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
3741
- name: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesMetadata
3842
- name: google.cloud.dialogflow.cx.v3beta1.ImportTestCasesResponse
3943
- name: google.cloud.dialogflow.cx.v3beta1.RunContinuousTestMetadata
@@ -70,61 +74,6 @@ documentation:
7074
- selector: google.cloud.location.Locations.ListLocations
7175
description: Lists information about the supported locations for this service.
7276

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

google/cloud/dialogflow/cx/v3beta1/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/v3beta1/advanced_settings.proto";
2324
import "google/cloud/dialogflow/cx/v3beta1/import_strategy.proto";
2425
import "google/cloud/dialogflow/cx/v3beta1/page.proto";
2526
import "google/cloud/dialogflow/cx/v3beta1/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/v3beta1/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.v3beta1;
1818

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

@@ -126,4 +127,15 @@ message Fulfillment {
126127

127128
// Conditional cases for this fulfillment.
128129
repeated ConditionalCases conditional_cases = 5;
130+
131+
// Hierarchical advanced settings for this fulfillment. The settings exposed
132+
// at the lower level overrides the settings exposed at the higher level.
133+
AdvancedSettings advanced_settings = 7;
134+
135+
// If the flag is true, the agent will utilize LLM to generate a text
136+
// response. If LLM generation fails, the defined
137+
// [responses][google.cloud.dialogflow.cx.v3beta1.Fulfillment.messages] in the
138+
// fulfillment will be respected. This flag is only useful for fulfillments
139+
// associated with no-match event handlers.
140+
bool enable_generative_fallback = 12;
129141
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
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.v3beta1;
18+
19+
import "google/api/field_behavior.proto";
20+
21+
option cc_enable_arenas = true;
22+
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
23+
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
24+
option java_multiple_files = true;
25+
option java_outer_classname = "InlineProto";
26+
option java_package = "com.google.cloud.dialogflow.cx.v3beta1";
27+
option objc_class_prefix = "DF";
28+
option ruby_package = "Google::Cloud::Dialogflow::CX::V3beta1";
29+
30+
// Inline destination for a Dialogflow operation that writes or exports objects
31+
// (e.g. [intents][google.cloud.dialogflow.cx.v3beta1.Intent]) outside of
32+
// Dialogflow.
33+
message InlineDestination {
34+
// Output only. The uncompressed byte content for the objects.
35+
// Only populated in responses.
36+
bytes content = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
37+
}
38+
39+
// Inline source for a Dialogflow operation that reads or imports objects
40+
// (e.g. [intents][google.cloud.dialogflow.cx.v3beta1.Intent]) into Dialogflow.
41+
message InlineSource {
42+
// The uncompressed byte content for the objects.
43+
bytes content = 1;
44+
}

0 commit comments

Comments
 (0)