Skip to content
This repository was archived by the owner on Jul 20, 2023. It is now read-only.

Commit 53f1e21

Browse files
feat: support setting current_page to resume sessions; expose transition_route_groups in flows and language_code in webhook (#90)
PiperOrigin-RevId: 367042726 Source-Link: googleapis/googleapis@163ed6c Source-Link: https://github.com/googleapis/googleapis-gen/commit/3e5eb0f5399b760ea4b3003cbfb89c4e5db8f70e
1 parent ef36938 commit 53f1e21

File tree

7 files changed

+158
-12
lines changed

7 files changed

+158
-12
lines changed

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

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,20 @@ message Flow {
225225
// get executed, with the rest being ignored.
226226
repeated EventHandler event_handlers = 10;
227227

228+
// A flow's transition route group serve two purposes:
229+
//
230+
// * They are responsible for matching the user's first utterances in the
231+
// flow.
232+
// * They are inherited by every page's [transition
233+
// route groups][Page.transition_route_groups]. Transition route groups
234+
// defined in the page have higher priority than those defined in the flow.
235+
//
236+
// Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
237+
// ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
238+
repeated string transition_route_groups = 15 [(google.api.resource_reference) = {
239+
type: "dialogflow.googleapis.com/TransitionRouteGroup"
240+
}];
241+
228242
// NLU related settings of the flow.
229243
NluSettings nlu_settings = 11;
230244
}

protos/google/cloud/dialogflow/cx/v3/intent.proto

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ message Intent {
199199
// fallback intents act as negative examples that triggers no-match event.
200200
bool is_fallback = 6;
201201

202-
// Optional. The key/value metadata to label an intent. Labels can contain
202+
// The key/value metadata to label an intent. Labels can contain
203203
// lowercase letters, digits and the symbols '-' and '_'. International
204204
// characters are allowed, including letters from unicase alphabets. Keys must
205205
// start with a letter. Keys and values can be no longer than 63 characters
@@ -211,11 +211,11 @@ message Intent {
211211
// * sys.contextual
212212
// The above labels do not require value. "sys.head" means the intent is a
213213
// head intent. "sys.contextual" means the intent is a contextual intent.
214-
map<string, string> labels = 7 [(google.api.field_behavior) = OPTIONAL];
214+
map<string, string> labels = 7;
215215

216-
// Optional. Human readable description for better understanding an intent like its
216+
// Human readable description for better understanding an intent like its
217217
// scope, content, result etc. Maximum character limit: 140 characters.
218-
string description = 8 [(google.api.field_behavior) = OPTIONAL];
218+
string description = 8;
219219
}
220220

221221
// The request message for [Intents.ListIntents][google.cloud.dialogflow.cx.v3.Intents.ListIntents].

protos/google/cloud/dialogflow/cx/v3/session.proto

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,21 @@ message QueryParameters {
388388
// - Else: parameter value
389389
google.protobuf.Struct parameters = 5;
390390

391+
// The unique identifier of the [page][google.cloud.dialogflow.cx.v3.Page] to override the [current
392+
// page][QueryResult.current_page] in the session. Format: `projects/<Project
393+
// ID>/locations/<Location ID>/agents/<Agent ID>/pages/<page ID>`.
394+
//
395+
// If `current_page` is specified, the previous state of the session will be
396+
// ignored by Dialogflow, including the [previous
397+
// page][QueryResult.current_page] and the [previous session
398+
// parameters][QueryResult.parameters].
399+
// In most cases, [current_page][google.cloud.dialogflow.cx.v3.QueryParameters.current_page] and
400+
// [parameters][google.cloud.dialogflow.cx.v3.QueryParameters.parameters] should be configured together to
401+
// direct a session to a specific state.
402+
string current_page = 6 [(google.api.resource_reference) = {
403+
type: "dialogflow.googleapis.com/Page"
404+
}];
405+
391406
// Whether to disable webhook calls for this request.
392407
bool disable_webhook = 7;
393408

protos/google/cloud/dialogflow/cx/v3/webhook.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,10 @@ message WebhookRequest {
314314
string trigger_event = 14;
315315
}
316316

317+
// The language code specified in the [original
318+
// request][QueryInput.language_code].
319+
string language_code = 15;
320+
317321
// Always present. Information about the fulfillment that triggered this
318322
// webhook call.
319323
FulfillmentInfo fulfillment_info = 6;

protos/protos.d.ts

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)