public static enum Model.Rule.Type extends Enum<Model.Rule.Type>
| Enum Constant and Description |
|---|
CONFIRMATION
A rule specifying that the system needs extra confirmation from
the user before leaving the current conversation state (if the
rule is attached to a node) or executing the associated feature.
|
INTENT_OVERRIDE
A rule that transforms the intent specified by its
Model.Rule.key
into the one specified by its Model.Rule.value. |
REDIRECT_NEGATIVE
A rule that redirects to a specified node ID if its
Model.Rule.key
does not match its Model.Rule.value. |
REDIRECT_POSITIVE
A rule that redirects to a specified node ID if its
Model.Rule.key
matches its Model.Rule.value. |
SLOT
A rule typically attached to features that requires the slot
stored in
Model.Rule.key be present before the feature can be
executed. |
SLOT_ONE_OF
A rule typically attached to features that requires one of the
slots stored in
Model.Rule.keys be present before the feature can
be executed. |
UNKNOWN
An unknown rule type, used to avoid errors during
deserialization.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
isRedirect() |
static Model.Rule.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Model.Rule.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
@SerializedName(value="slot") public static final Model.Rule.Type SLOT
Model.Rule.key be present before the feature can be
executed.@SerializedName(value="slot_one_of") public static final Model.Rule.Type SLOT_ONE_OF
Model.Rule.keys be present before the feature can
be executed.@SerializedName(value="confirmation") public static final Model.Rule.Type CONFIRMATION
@SerializedName(value="intent_override") public static final Model.Rule.Type INTENT_OVERRIDE
Model.Rule.key
into the one specified by its Model.Rule.value.@SerializedName(value="redirect_positive") public static final Model.Rule.Type REDIRECT_POSITIVE
Model.Rule.key
matches its Model.Rule.value.@SerializedName(value="redirect_negative") public static final Model.Rule.Type REDIRECT_NEGATIVE
Model.Rule.key
does not match its Model.Rule.value.public static final Model.Rule.Type UNKNOWN
public static Model.Rule.Type[] values()
for (Model.Rule.Type c : Model.Rule.Type.values()) System.out.println(c);
public static Model.Rule.Type valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic boolean isRedirect()
true if this rule redirects to a new conversation
node when triggered; false otherwise.Copyright © 2021. All rights reserved.