@@ -39,6 +39,8 @@ public interface NodeType {
3939 String SLOT = "slot" ;
4040 /** response_condition. */
4141 String RESPONSE_CONDITION = "response_condition" ;
42+ /** folder. */
43+ String FOLDER = "folder" ;
4244 }
4345
4446 /**
@@ -63,6 +65,42 @@ public interface EventName {
6365 String NOMATCH_RESPONSES_DEPLETED = "nomatch_responses_depleted" ;
6466 }
6567
68+ /**
69+ * Whether this top-level dialog node can be digressed into.
70+ */
71+ public interface DigressIn {
72+ /** not_available. */
73+ String NOT_AVAILABLE = "not_available" ;
74+ /** returns. */
75+ String RETURNS = "returns" ;
76+ /** does_not_return. */
77+ String DOES_NOT_RETURN = "does_not_return" ;
78+ }
79+
80+ /**
81+ * Whether this dialog node can be returned to after a digression.
82+ */
83+ public interface DigressOut {
84+ /** allow_returning. */
85+ String ALLOW_RETURNING = "allow_returning" ;
86+ /** allow_all. */
87+ String ALLOW_ALL = "allow_all" ;
88+ /** allow_all_never_return. */
89+ String ALLOW_ALL_NEVER_RETURN = "allow_all_never_return" ;
90+ }
91+
92+ /**
93+ * Whether the user can digress to top-level nodes while filling out slots.
94+ */
95+ public interface DigressOutSlots {
96+ /** not_allowed. */
97+ String NOT_ALLOWED = "not_allowed" ;
98+ /** allow_returning. */
99+ String ALLOW_RETURNING = "allow_returning" ;
100+ /** allow_all. */
101+ String ALLOW_ALL = "allow_all" ;
102+ }
103+
66104 @ SerializedName ("dialog_node" )
67105 private String dialogNode ;
68106 private String description ;
@@ -82,6 +120,12 @@ public interface EventName {
82120 @ SerializedName ("event_name" )
83121 private String eventName ;
84122 private String variable ;
123+ @ SerializedName ("digress_in" )
124+ private String digressIn ;
125+ @ SerializedName ("digress_out" )
126+ private String digressOut ;
127+ @ SerializedName ("digress_out_slots" )
128+ private String digressOutSlots ;
85129
86130 /**
87131 * Builder.
@@ -101,6 +145,9 @@ public static class Builder {
101145 private String nodeType ;
102146 private String eventName ;
103147 private String variable ;
148+ private String digressIn ;
149+ private String digressOut ;
150+ private String digressOutSlots ;
104151
105152 private Builder (CreateDialogNode createDialogNode ) {
106153 dialogNode = createDialogNode .dialogNode ;
@@ -117,6 +164,9 @@ private Builder(CreateDialogNode createDialogNode) {
117164 nodeType = createDialogNode .nodeType ;
118165 eventName = createDialogNode .eventName ;
119166 variable = createDialogNode .variable ;
167+ digressIn = createDialogNode .digressIn ;
168+ digressOut = createDialogNode .digressOut ;
169+ digressOutSlots = createDialogNode .digressOutSlots ;
120170 }
121171
122172 /**
@@ -312,6 +362,39 @@ public Builder variable(String variable) {
312362 this .variable = variable ;
313363 return this ;
314364 }
365+
366+ /**
367+ * Set the digressIn.
368+ *
369+ * @param digressIn the digressIn
370+ * @return the CreateDialogNode builder
371+ */
372+ public Builder digressIn (String digressIn ) {
373+ this .digressIn = digressIn ;
374+ return this ;
375+ }
376+
377+ /**
378+ * Set the digressOut.
379+ *
380+ * @param digressOut the digressOut
381+ * @return the CreateDialogNode builder
382+ */
383+ public Builder digressOut (String digressOut ) {
384+ this .digressOut = digressOut ;
385+ return this ;
386+ }
387+
388+ /**
389+ * Set the digressOutSlots.
390+ *
391+ * @param digressOutSlots the digressOutSlots
392+ * @return the CreateDialogNode builder
393+ */
394+ public Builder digressOutSlots (String digressOutSlots ) {
395+ this .digressOutSlots = digressOutSlots ;
396+ return this ;
397+ }
315398 }
316399
317400 private CreateDialogNode (Builder builder ) {
@@ -330,6 +413,9 @@ private CreateDialogNode(Builder builder) {
330413 nodeType = builder .nodeType ;
331414 eventName = builder .eventName ;
332415 variable = builder .variable ;
416+ digressIn = builder .digressIn ;
417+ digressOut = builder .digressOut ;
418+ digressOutSlots = builder .digressOutSlots ;
333419 }
334420
335421 /**
@@ -344,7 +430,8 @@ public Builder newBuilder() {
344430 /**
345431 * Gets the dialogNode.
346432 *
347- * The dialog node ID.
433+ * The dialog node ID. This string must conform to the following restrictions: - It can contain only Unicode
434+ * alphanumeric, space, underscore, hyphen, and dot characters. - It must be no longer than 1024 characters.
348435 *
349436 * @return the dialogNode
350437 */
@@ -355,7 +442,8 @@ public String dialogNode() {
355442 /**
356443 * Gets the description.
357444 *
358- * The description of the dialog node.
445+ * The description of the dialog node. This string cannot contain carriage return, newline, or tab characters, and it
446+ * must be no longer than 128 characters.
359447 *
360448 * @return the description
361449 */
@@ -366,7 +454,8 @@ public String description() {
366454 /**
367455 * Gets the conditions.
368456 *
369- * The condition that will trigger the dialog node.
457+ * The condition that will trigger the dialog node. This string cannot contain carriage return, newline, or tab
458+ * characters, and it must be no longer than 2048 characters.
370459 *
371460 * @return the conditions
372461 */
@@ -377,7 +466,7 @@ public String conditions() {
377466 /**
378467 * Gets the parent.
379468 *
380- * The ID of the parent dialog node (if any) .
469+ * The ID of the parent dialog node.
381470 *
382471 * @return the parent
383472 */
@@ -388,7 +477,7 @@ public String parent() {
388477 /**
389478 * Gets the previousSibling.
390479 *
391- * The previous dialog node.
480+ * The ID of the previous dialog node.
392481 *
393482 * @return the previousSibling
394483 */
@@ -399,7 +488,8 @@ public String previousSibling() {
399488 /**
400489 * Gets the output.
401490 *
402- * The output of the dialog node.
491+ * The output of the dialog node. For more information about how to specify dialog node output, see the
492+ * [documentation](https://console.bluemix.net/docs/services/conversation/dialog-overview.html#complex).
403493 *
404494 * @return the output
405495 */
@@ -432,7 +522,7 @@ public Map metadata() {
432522 /**
433523 * Gets the nextStep.
434524 *
435- * The next step to execute following this dialog node .
525+ * The next step to be executed in dialog processing .
436526 *
437527 * @return the nextStep
438528 */
@@ -443,7 +533,7 @@ public DialogNodeNextStep nextStep() {
443533 /**
444534 * Gets the actions.
445535 *
446- * The actions for the dialog node.
536+ * An array of objects describing any actions to be invoked by the dialog node.
447537 *
448538 * @return the actions
449539 */
@@ -454,7 +544,9 @@ public List<DialogNodeAction> actions() {
454544 /**
455545 * Gets the title.
456546 *
457- * The alias used to identify the dialog node.
547+ * The alias used to identify the dialog node. This string must conform to the following restrictions: - It can
548+ * contain only Unicode alphanumeric, space, underscore, hyphen, and dot characters. - It must be no longer than 64
549+ * characters.
458550 *
459551 * @return the title
460552 */
@@ -494,4 +586,37 @@ public String eventName() {
494586 public String variable () {
495587 return variable ;
496588 }
589+
590+ /**
591+ * Gets the digressIn.
592+ *
593+ * Whether this top-level dialog node can be digressed into.
594+ *
595+ * @return the digressIn
596+ */
597+ public String digressIn () {
598+ return digressIn ;
599+ }
600+
601+ /**
602+ * Gets the digressOut.
603+ *
604+ * Whether this dialog node can be returned to after a digression.
605+ *
606+ * @return the digressOut
607+ */
608+ public String digressOut () {
609+ return digressOut ;
610+ }
611+
612+ /**
613+ * Gets the digressOutSlots.
614+ *
615+ * Whether the user can digress to top-level nodes while filling out slots.
616+ *
617+ * @return the digressOutSlots
618+ */
619+ public String digressOutSlots () {
620+ return digressOutSlots ;
621+ }
497622}
0 commit comments