-
Notifications
You must be signed in to change notification settings - Fork 62
/
zz_page_types.go
executable file
·666 lines (505 loc) · 34.3 KB
/
zz_page_types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
/*
Copyright 2021 The Crossplane Authors.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
// Code generated by upjet. DO NOT EDIT.
package v1beta1
import (
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1"
"k8s.io/apimachinery/pkg/runtime/schema"
v1 "github.com/crossplane/crossplane-runtime/apis/common/v1"
)
type EntryFulfillmentMessagesObservation struct {
// A collection of text responses.
Text []EntryFulfillmentMessagesTextObservation `json:"text,omitempty" tf:"text,omitempty"`
}
type EntryFulfillmentMessagesParameters struct {
// A collection of text responses.
// +kubebuilder:validation:Optional
Text []EntryFulfillmentMessagesTextParameters `json:"text,omitempty" tf:"text,omitempty"`
}
type EntryFulfillmentMessagesTextObservation struct {
// (Output)
// 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.
AllowPlaybackInterruption *bool `json:"allowPlaybackInterruption,omitempty" tf:"allow_playback_interruption,omitempty"`
// A collection of text responses.
Text []*string `json:"text,omitempty" tf:"text,omitempty"`
}
type EntryFulfillmentMessagesTextParameters struct {
// A collection of text responses.
// +kubebuilder:validation:Optional
Text []*string `json:"text,omitempty" tf:"text,omitempty"`
}
type EntryFulfillmentObservation struct {
// The list of rich message responses to present to the user.
// Structure is documented below.
Messages []EntryFulfillmentMessagesObservation `json:"messages,omitempty" tf:"messages,omitempty"`
// Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
ReturnPartialResponses *bool `json:"returnPartialResponses,omitempty" tf:"return_partial_responses,omitempty"`
// The tag used by the webhook to identify which fulfillment is being called. This field is required if webhook is specified.
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
// The webhook to call. Format: projects//locations//agents//webhooks/.
Webhook *string `json:"webhook,omitempty" tf:"webhook,omitempty"`
}
type EntryFulfillmentParameters struct {
// The list of rich message responses to present to the user.
// Structure is documented below.
// +kubebuilder:validation:Optional
Messages []EntryFulfillmentMessagesParameters `json:"messages,omitempty" tf:"messages,omitempty"`
// Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
// +kubebuilder:validation:Optional
ReturnPartialResponses *bool `json:"returnPartialResponses,omitempty" tf:"return_partial_responses,omitempty"`
// The tag used by the webhook to identify which fulfillment is being called. This field is required if webhook is specified.
// +kubebuilder:validation:Optional
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
// The webhook to call. Format: projects//locations//agents//webhooks/.
// +kubebuilder:validation:Optional
Webhook *string `json:"webhook,omitempty" tf:"webhook,omitempty"`
}
type EventHandlersTriggerFulfillmentMessagesObservation struct {
// A collection of text responses.
Text []TriggerFulfillmentMessagesTextObservation `json:"text,omitempty" tf:"text,omitempty"`
}
type EventHandlersTriggerFulfillmentMessagesParameters struct {
// A collection of text responses.
// +kubebuilder:validation:Optional
Text []TriggerFulfillmentMessagesTextParameters `json:"text,omitempty" tf:"text,omitempty"`
}
type EventHandlersTriggerFulfillmentObservation struct {
// The list of rich message responses to present to the user.
// Structure is documented below.
Messages []EventHandlersTriggerFulfillmentMessagesObservation `json:"messages,omitempty" tf:"messages,omitempty"`
// Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
ReturnPartialResponses *bool `json:"returnPartialResponses,omitempty" tf:"return_partial_responses,omitempty"`
// The tag used by the webhook to identify which fulfillment is being called. This field is required if webhook is specified.
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
// The webhook to call. Format: projects//locations//agents//webhooks/.
Webhook *string `json:"webhook,omitempty" tf:"webhook,omitempty"`
}
type EventHandlersTriggerFulfillmentParameters struct {
// The list of rich message responses to present to the user.
// Structure is documented below.
// +kubebuilder:validation:Optional
Messages []EventHandlersTriggerFulfillmentMessagesParameters `json:"messages,omitempty" tf:"messages,omitempty"`
// Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
// +kubebuilder:validation:Optional
ReturnPartialResponses *bool `json:"returnPartialResponses,omitempty" tf:"return_partial_responses,omitempty"`
// The tag used by the webhook to identify which fulfillment is being called. This field is required if webhook is specified.
// +kubebuilder:validation:Optional
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
// The webhook to call. Format: projects//locations//agents//webhooks/.
// +kubebuilder:validation:Optional
Webhook *string `json:"webhook,omitempty" tf:"webhook,omitempty"`
}
type FillBehaviorObservation struct {
// The fulfillment to provide the initial prompt that the agent can present to the user in order to fill the parameter.
// Structure is documented below.
InitialPromptFulfillment []InitialPromptFulfillmentObservation `json:"initialPromptFulfillment,omitempty" tf:"initial_prompt_fulfillment,omitempty"`
}
type FillBehaviorParameters struct {
// The fulfillment to provide the initial prompt that the agent can present to the user in order to fill the parameter.
// Structure is documented below.
// +kubebuilder:validation:Optional
InitialPromptFulfillment []InitialPromptFulfillmentParameters `json:"initialPromptFulfillment,omitempty" tf:"initial_prompt_fulfillment,omitempty"`
}
type FormObservation struct {
// Parameters to collect from the user.
// Structure is documented below.
Parameters []FormParametersObservation `json:"parameters,omitempty" tf:"parameters,omitempty"`
}
type FormParameters struct {
// Parameters to collect from the user.
// Structure is documented below.
// +kubebuilder:validation:Optional
Parameters []FormParametersParameters `json:"parameters,omitempty" tf:"parameters,omitempty"`
}
type FormParametersObservation struct {
// The human-readable name of the parameter, unique within the form.
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// The entity type of the parameter.
// Format: projects/-/locations/-/agents/-/entityTypes/ for system entity types (for example, projects/-/locations/-/agents/-/entityTypes/sys.date), or projects//locations//agents//entityTypes/ for developer entity types.
EntityType *string `json:"entityType,omitempty" tf:"entity_type,omitempty"`
// Defines fill behavior for the parameter.
// Structure is documented below.
FillBehavior []FillBehaviorObservation `json:"fillBehavior,omitempty" tf:"fill_behavior,omitempty"`
// Indicates whether the parameter represents a list of values.
IsList *bool `json:"isList,omitempty" tf:"is_list,omitempty"`
// Indicates whether the parameter content should be redacted in log.
// If redaction is enabled, the parameter content will be replaced by parameter name during logging. Note: the parameter content is subject to redaction if either parameter level redaction or entity type level redaction is enabled.
Redact *bool `json:"redact,omitempty" tf:"redact,omitempty"`
// Indicates whether the parameter is required. Optional parameters will not trigger prompts; however, they are filled if the user specifies them.
// Required parameters must be filled before form filling concludes.
Required *bool `json:"required,omitempty" tf:"required,omitempty"`
}
type FormParametersParameters struct {
// The human-readable name of the parameter, unique within the form.
// +kubebuilder:validation:Optional
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// The entity type of the parameter.
// Format: projects/-/locations/-/agents/-/entityTypes/ for system entity types (for example, projects/-/locations/-/agents/-/entityTypes/sys.date), or projects//locations//agents//entityTypes/ for developer entity types.
// +kubebuilder:validation:Optional
EntityType *string `json:"entityType,omitempty" tf:"entity_type,omitempty"`
// Defines fill behavior for the parameter.
// Structure is documented below.
// +kubebuilder:validation:Optional
FillBehavior []FillBehaviorParameters `json:"fillBehavior,omitempty" tf:"fill_behavior,omitempty"`
// Indicates whether the parameter represents a list of values.
// +kubebuilder:validation:Optional
IsList *bool `json:"isList,omitempty" tf:"is_list,omitempty"`
// Indicates whether the parameter content should be redacted in log.
// If redaction is enabled, the parameter content will be replaced by parameter name during logging. Note: the parameter content is subject to redaction if either parameter level redaction or entity type level redaction is enabled.
// +kubebuilder:validation:Optional
Redact *bool `json:"redact,omitempty" tf:"redact,omitempty"`
// Indicates whether the parameter is required. Optional parameters will not trigger prompts; however, they are filled if the user specifies them.
// Required parameters must be filled before form filling concludes.
// +kubebuilder:validation:Optional
Required *bool `json:"required,omitempty" tf:"required,omitempty"`
}
type InitialPromptFulfillmentMessagesObservation struct {
// A collection of text responses.
Text []InitialPromptFulfillmentMessagesTextObservation `json:"text,omitempty" tf:"text,omitempty"`
}
type InitialPromptFulfillmentMessagesParameters struct {
// A collection of text responses.
// +kubebuilder:validation:Optional
Text []InitialPromptFulfillmentMessagesTextParameters `json:"text,omitempty" tf:"text,omitempty"`
}
type InitialPromptFulfillmentMessagesTextObservation struct {
// (Output)
// 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.
AllowPlaybackInterruption *bool `json:"allowPlaybackInterruption,omitempty" tf:"allow_playback_interruption,omitempty"`
// A collection of text responses.
Text []*string `json:"text,omitempty" tf:"text,omitempty"`
}
type InitialPromptFulfillmentMessagesTextParameters struct {
// A collection of text responses.
// +kubebuilder:validation:Optional
Text []*string `json:"text,omitempty" tf:"text,omitempty"`
}
type InitialPromptFulfillmentObservation struct {
// The list of rich message responses to present to the user.
// Structure is documented below.
Messages []InitialPromptFulfillmentMessagesObservation `json:"messages,omitempty" tf:"messages,omitempty"`
// Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
ReturnPartialResponses *bool `json:"returnPartialResponses,omitempty" tf:"return_partial_responses,omitempty"`
// The tag used by the webhook to identify which fulfillment is being called. This field is required if webhook is specified.
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
// The webhook to call. Format: projects//locations//agents//webhooks/.
Webhook *string `json:"webhook,omitempty" tf:"webhook,omitempty"`
}
type InitialPromptFulfillmentParameters struct {
// The list of rich message responses to present to the user.
// Structure is documented below.
// +kubebuilder:validation:Optional
Messages []InitialPromptFulfillmentMessagesParameters `json:"messages,omitempty" tf:"messages,omitempty"`
// Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
// +kubebuilder:validation:Optional
ReturnPartialResponses *bool `json:"returnPartialResponses,omitempty" tf:"return_partial_responses,omitempty"`
// The tag used by the webhook to identify which fulfillment is being called. This field is required if webhook is specified.
// +kubebuilder:validation:Optional
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
// The webhook to call. Format: projects//locations//agents//webhooks/.
// +kubebuilder:validation:Optional
Webhook *string `json:"webhook,omitempty" tf:"webhook,omitempty"`
}
type PageEventHandlersObservation struct {
// The name of the event to handle.
Event *string `json:"event,omitempty" tf:"event,omitempty"`
// (Output)
// The unique identifier of this event handler.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The target flow to transition to.
// Format: projects//locations//agents//flows/.
TargetFlow *string `json:"targetFlow,omitempty" tf:"target_flow,omitempty"`
// The target page to transition to.
// Format: projects//locations//agents//flows//pages/.
TargetPage *string `json:"targetPage,omitempty" tf:"target_page,omitempty"`
// The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
// Structure is documented below.
TriggerFulfillment []EventHandlersTriggerFulfillmentObservation `json:"triggerFulfillment,omitempty" tf:"trigger_fulfillment,omitempty"`
}
type PageEventHandlersParameters struct {
// The name of the event to handle.
// +kubebuilder:validation:Optional
Event *string `json:"event,omitempty" tf:"event,omitempty"`
// The target flow to transition to.
// Format: projects//locations//agents//flows/.
// +kubebuilder:validation:Optional
TargetFlow *string `json:"targetFlow,omitempty" tf:"target_flow,omitempty"`
// The target page to transition to.
// Format: projects//locations//agents//flows//pages/.
// +kubebuilder:validation:Optional
TargetPage *string `json:"targetPage,omitempty" tf:"target_page,omitempty"`
// The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
// Structure is documented below.
// +kubebuilder:validation:Optional
TriggerFulfillment []EventHandlersTriggerFulfillmentParameters `json:"triggerFulfillment,omitempty" tf:"trigger_fulfillment,omitempty"`
}
type PageObservation struct {
// The human-readable name of the page, unique within the agent.
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// The fulfillment to call when the session is entering the page.
// Structure is documented below.
EntryFulfillment []EntryFulfillmentObservation `json:"entryFulfillment,omitempty" tf:"entry_fulfillment,omitempty"`
// Handlers associated with the page to handle events such as webhook errors, no match or no input.
// Structure is documented below.
EventHandlers []PageEventHandlersObservation `json:"eventHandlers,omitempty" tf:"event_handlers,omitempty"`
// The form associated with the page, used for collecting parameters relevant to the page.
// Structure is documented below.
Form []FormObservation `json:"form,omitempty" tf:"form,omitempty"`
// an identifier for the resource with format {{parent}}/pages/{{name}}
ID *string `json:"id,omitempty" tf:"id,omitempty"`
// The language of the following fields in page:
// Page.entry_fulfillment.messages
// Page.entry_fulfillment.conditional_cases
// Page.event_handlers.trigger_fulfillment.messages
// Page.event_handlers.trigger_fulfillment.conditional_cases
// Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages
// Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases
// Page.form.parameters.fill_behavior.reprompt_event_handlers.messages
// Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases
// Page.transition_routes.trigger_fulfillment.messages
// Page.transition_routes.trigger_fulfillment.conditional_cases
// If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.
LanguageCode *string `json:"languageCode,omitempty" tf:"language_code,omitempty"`
// The unique identifier of the page.
// Format: projects//locations//agents//flows//pages/.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The flow to create a page for.
// Format: projects//locations//agents//flows/.
Parent *string `json:"parent,omitempty" tf:"parent,omitempty"`
// Ordered list of TransitionRouteGroups associated with the page. Transition route groups must be unique within a page.
// If multiple transition routes within a page scope refer to the same intent, then the precedence order is: page's transition route -> page's transition route group -> flow's transition routes.
// If multiple transition route groups within a page contain the same intent, then the first group in the ordered list takes precedence.
// Format:projects//locations//agents//flows//transitionRouteGroups/.
TransitionRouteGroups []*string `json:"transitionRouteGroups,omitempty" tf:"transition_route_groups,omitempty"`
// A list of transitions for the transition rules of this page. They route the conversation to another page in the same flow, or another flow.
// When we are in a certain page, the TransitionRoutes are evalauted in the following order:
// TransitionRoutes defined in the page with intent specified.
// TransitionRoutes defined in the transition route groups with intent specified.
// TransitionRoutes defined in flow with intent specified.
// TransitionRoutes defined in the transition route groups with intent specified.
// TransitionRoutes defined in the page with only condition specified.
// TransitionRoutes defined in the transition route groups with only condition specified.
// Structure is documented below.
TransitionRoutes []PageTransitionRoutesObservation `json:"transitionRoutes,omitempty" tf:"transition_routes,omitempty"`
}
type PageParameters struct {
// The human-readable name of the page, unique within the agent.
// +kubebuilder:validation:Optional
DisplayName *string `json:"displayName,omitempty" tf:"display_name,omitempty"`
// The fulfillment to call when the session is entering the page.
// Structure is documented below.
// +kubebuilder:validation:Optional
EntryFulfillment []EntryFulfillmentParameters `json:"entryFulfillment,omitempty" tf:"entry_fulfillment,omitempty"`
// Handlers associated with the page to handle events such as webhook errors, no match or no input.
// Structure is documented below.
// +kubebuilder:validation:Optional
EventHandlers []PageEventHandlersParameters `json:"eventHandlers,omitempty" tf:"event_handlers,omitempty"`
// The form associated with the page, used for collecting parameters relevant to the page.
// Structure is documented below.
// +kubebuilder:validation:Optional
Form []FormParameters `json:"form,omitempty" tf:"form,omitempty"`
// The language of the following fields in page:
// Page.entry_fulfillment.messages
// Page.entry_fulfillment.conditional_cases
// Page.event_handlers.trigger_fulfillment.messages
// Page.event_handlers.trigger_fulfillment.conditional_cases
// Page.form.parameters.fill_behavior.initial_prompt_fulfillment.messages
// Page.form.parameters.fill_behavior.initial_prompt_fulfillment.conditional_cases
// Page.form.parameters.fill_behavior.reprompt_event_handlers.messages
// Page.form.parameters.fill_behavior.reprompt_event_handlers.conditional_cases
// Page.transition_routes.trigger_fulfillment.messages
// Page.transition_routes.trigger_fulfillment.conditional_cases
// If not specified, the agent's default language is used. Many languages are supported. Note: languages must be enabled in the agent before they can be used.
// +kubebuilder:validation:Optional
LanguageCode *string `json:"languageCode,omitempty" tf:"language_code,omitempty"`
// The flow to create a page for.
// Format: projects//locations//agents//flows/.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/dialogflowcx/v1beta1.Agent
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractParamPath("start_flow",true)
// +kubebuilder:validation:Optional
Parent *string `json:"parent,omitempty" tf:"parent,omitempty"`
// Reference to a Agent in dialogflowcx to populate parent.
// +kubebuilder:validation:Optional
ParentRef *v1.Reference `json:"parentRef,omitempty" tf:"-"`
// Selector for a Agent in dialogflowcx to populate parent.
// +kubebuilder:validation:Optional
ParentSelector *v1.Selector `json:"parentSelector,omitempty" tf:"-"`
// Ordered list of TransitionRouteGroups associated with the page. Transition route groups must be unique within a page.
// If multiple transition routes within a page scope refer to the same intent, then the precedence order is: page's transition route -> page's transition route group -> flow's transition routes.
// If multiple transition route groups within a page contain the same intent, then the first group in the ordered list takes precedence.
// Format:projects//locations//agents//flows//transitionRouteGroups/.
// +kubebuilder:validation:Optional
TransitionRouteGroups []*string `json:"transitionRouteGroups,omitempty" tf:"transition_route_groups,omitempty"`
// A list of transitions for the transition rules of this page. They route the conversation to another page in the same flow, or another flow.
// When we are in a certain page, the TransitionRoutes are evalauted in the following order:
// TransitionRoutes defined in the page with intent specified.
// TransitionRoutes defined in the transition route groups with intent specified.
// TransitionRoutes defined in flow with intent specified.
// TransitionRoutes defined in the transition route groups with intent specified.
// TransitionRoutes defined in the page with only condition specified.
// TransitionRoutes defined in the transition route groups with only condition specified.
// Structure is documented below.
// +kubebuilder:validation:Optional
TransitionRoutes []PageTransitionRoutesParameters `json:"transitionRoutes,omitempty" tf:"transition_routes,omitempty"`
}
type PageTransitionRoutesObservation struct {
// The condition to evaluate against form parameters or session parameters.
// At least one of intent or condition must be specified. When both intent and condition are specified, the transition can only happen when both are fulfilled.
Condition *string `json:"condition,omitempty" tf:"condition,omitempty"`
// The unique identifier of an Intent.
// Format: projects//locations//agents//intents/. Indicates that the transition can only happen when the given intent is matched. At least one of intent or condition must be specified. When both intent and condition are specified, the transition can only happen when both are fulfilled.
Intent *string `json:"intent,omitempty" tf:"intent,omitempty"`
// (Output)
// The unique identifier of this transition route.
Name *string `json:"name,omitempty" tf:"name,omitempty"`
// The target flow to transition to.
// Format: projects//locations//agents//flows/.
TargetFlow *string `json:"targetFlow,omitempty" tf:"target_flow,omitempty"`
// The target page to transition to.
// Format: projects//locations//agents//flows//pages/.
TargetPage *string `json:"targetPage,omitempty" tf:"target_page,omitempty"`
// The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
// Structure is documented below.
TriggerFulfillment []PageTransitionRoutesTriggerFulfillmentObservation `json:"triggerFulfillment,omitempty" tf:"trigger_fulfillment,omitempty"`
}
type PageTransitionRoutesParameters struct {
// The condition to evaluate against form parameters or session parameters.
// At least one of intent or condition must be specified. When both intent and condition are specified, the transition can only happen when both are fulfilled.
// +kubebuilder:validation:Optional
Condition *string `json:"condition,omitempty" tf:"condition,omitempty"`
// The unique identifier of an Intent.
// Format: projects//locations//agents//intents/. Indicates that the transition can only happen when the given intent is matched. At least one of intent or condition must be specified. When both intent and condition are specified, the transition can only happen when both are fulfilled.
// +kubebuilder:validation:Optional
Intent *string `json:"intent,omitempty" tf:"intent,omitempty"`
// The target flow to transition to.
// Format: projects//locations//agents//flows/.
// +kubebuilder:validation:Optional
TargetFlow *string `json:"targetFlow,omitempty" tf:"target_flow,omitempty"`
// The target page to transition to.
// Format: projects//locations//agents//flows//pages/.
// +crossplane:generate:reference:type=github.com/upbound/provider-gcp/apis/dialogflowcx/v1beta1.Page
// +crossplane:generate:reference:extractor=github.com/upbound/upjet/pkg/resource.ExtractResourceID()
// +kubebuilder:validation:Optional
TargetPage *string `json:"targetPage,omitempty" tf:"target_page,omitempty"`
// Reference to a Page in dialogflowcx to populate targetPage.
// +kubebuilder:validation:Optional
TargetPageRef *v1.Reference `json:"targetPageRef,omitempty" tf:"-"`
// Selector for a Page in dialogflowcx to populate targetPage.
// +kubebuilder:validation:Optional
TargetPageSelector *v1.Selector `json:"targetPageSelector,omitempty" tf:"-"`
// The fulfillment to call when the event occurs. Handling webhook errors with a fulfillment enabled with webhook could cause infinite loop. It is invalid to specify such fulfillment for a handler handling webhooks.
// Structure is documented below.
// +kubebuilder:validation:Optional
TriggerFulfillment []PageTransitionRoutesTriggerFulfillmentParameters `json:"triggerFulfillment,omitempty" tf:"trigger_fulfillment,omitempty"`
}
type PageTransitionRoutesTriggerFulfillmentObservation struct {
// The list of rich message responses to present to the user.
// Structure is documented below.
Messages []TransitionRoutesTriggerFulfillmentMessagesObservation `json:"messages,omitempty" tf:"messages,omitempty"`
// Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
ReturnPartialResponses *bool `json:"returnPartialResponses,omitempty" tf:"return_partial_responses,omitempty"`
// The tag used by the webhook to identify which fulfillment is being called. This field is required if webhook is specified.
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
// The webhook to call. Format: projects//locations//agents//webhooks/.
Webhook *string `json:"webhook,omitempty" tf:"webhook,omitempty"`
}
type PageTransitionRoutesTriggerFulfillmentParameters struct {
// The list of rich message responses to present to the user.
// Structure is documented below.
// +kubebuilder:validation:Optional
Messages []TransitionRoutesTriggerFulfillmentMessagesParameters `json:"messages,omitempty" tf:"messages,omitempty"`
// Whether Dialogflow should return currently queued fulfillment response messages in streaming APIs. If a webhook is specified, it happens before Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API. Responses are still queued and returned once in non-streaming API. 2) The flag can be enabled in any fulfillment but only the first 3 partial responses will be returned. You may only want to apply it to fulfillments that have slow webhooks.
// +kubebuilder:validation:Optional
ReturnPartialResponses *bool `json:"returnPartialResponses,omitempty" tf:"return_partial_responses,omitempty"`
// The tag used by the webhook to identify which fulfillment is being called. This field is required if webhook is specified.
// +kubebuilder:validation:Optional
Tag *string `json:"tag,omitempty" tf:"tag,omitempty"`
// The webhook to call. Format: projects//locations//agents//webhooks/.
// +kubebuilder:validation:Optional
Webhook *string `json:"webhook,omitempty" tf:"webhook,omitempty"`
}
type TransitionRoutesTriggerFulfillmentMessagesObservation struct {
// A collection of text responses.
Text []TransitionRoutesTriggerFulfillmentMessagesTextObservation `json:"text,omitempty" tf:"text,omitempty"`
}
type TransitionRoutesTriggerFulfillmentMessagesParameters struct {
// A collection of text responses.
// +kubebuilder:validation:Optional
Text []TransitionRoutesTriggerFulfillmentMessagesTextParameters `json:"text,omitempty" tf:"text,omitempty"`
}
type TransitionRoutesTriggerFulfillmentMessagesTextObservation struct {
// (Output)
// 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.
AllowPlaybackInterruption *bool `json:"allowPlaybackInterruption,omitempty" tf:"allow_playback_interruption,omitempty"`
// A collection of text responses.
Text []*string `json:"text,omitempty" tf:"text,omitempty"`
}
type TransitionRoutesTriggerFulfillmentMessagesTextParameters struct {
// A collection of text responses.
// +kubebuilder:validation:Optional
Text []*string `json:"text,omitempty" tf:"text,omitempty"`
}
type TriggerFulfillmentMessagesTextObservation struct {
// (Output)
// 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.
AllowPlaybackInterruption *bool `json:"allowPlaybackInterruption,omitempty" tf:"allow_playback_interruption,omitempty"`
// A collection of text responses.
Text []*string `json:"text,omitempty" tf:"text,omitempty"`
}
type TriggerFulfillmentMessagesTextParameters struct {
// A collection of text responses.
// +kubebuilder:validation:Optional
Text []*string `json:"text,omitempty" tf:"text,omitempty"`
}
// PageSpec defines the desired state of Page
type PageSpec struct {
v1.ResourceSpec `json:",inline"`
ForProvider PageParameters `json:"forProvider"`
}
// PageStatus defines the observed state of Page.
type PageStatus struct {
v1.ResourceStatus `json:",inline"`
AtProvider PageObservation `json:"atProvider,omitempty"`
}
// +kubebuilder:object:root=true
// Page is the Schema for the Pages API. A Dialogflow CX conversation (session) can be described and visualized as a state machine.
// +kubebuilder:printcolumn:name="READY",type="string",JSONPath=".status.conditions[?(@.type=='Ready')].status"
// +kubebuilder:printcolumn:name="SYNCED",type="string",JSONPath=".status.conditions[?(@.type=='Synced')].status"
// +kubebuilder:printcolumn:name="EXTERNAL-NAME",type="string",JSONPath=".metadata.annotations.crossplane\\.io/external-name"
// +kubebuilder:printcolumn:name="AGE",type="date",JSONPath=".metadata.creationTimestamp"
// +kubebuilder:subresource:status
// +kubebuilder:resource:scope=Cluster,categories={crossplane,managed,gcp}
type Page struct {
metav1.TypeMeta `json:",inline"`
metav1.ObjectMeta `json:"metadata,omitempty"`
// +kubebuilder:validation:XValidation:rule="self.managementPolicy == 'ObserveOnly' || has(self.forProvider.displayName)",message="displayName is a required parameter"
Spec PageSpec `json:"spec"`
Status PageStatus `json:"status,omitempty"`
}
// +kubebuilder:object:root=true
// PageList contains a list of Pages
type PageList struct {
metav1.TypeMeta `json:",inline"`
metav1.ListMeta `json:"metadata,omitempty"`
Items []Page `json:"items"`
}
// Repository type metadata.
var (
Page_Kind = "Page"
Page_GroupKind = schema.GroupKind{Group: CRDGroup, Kind: Page_Kind}.String()
Page_KindAPIVersion = Page_Kind + "." + CRDGroupVersion.String()
Page_GroupVersionKind = CRDGroupVersion.WithKind(Page_Kind)
)
func init() {
SchemeBuilder.Register(&Page{}, &PageList{})
}