public class StoryDefinitionConfigurationStep
A interface StoryStep configuration in a class StoryDefinitionConfiguration.
public StoryDefinitionConfigurationStep(@NotNull
java.lang.String name,
@Nullable
IntentWithoutNamespace intent,
@Nullable
IntentWithoutNamespace targetIntent,
@NotNull
java.util.List<? extends ai.tock.bot.admin.answer.AnswerConfiguration> answers,
@NotNull
AnswerConfigurationType currentType,
@NotNull
java.lang.String userSentence,
@Nullable
ai.tock.translator.I18nLabelValue userSentenceLabel,
@NotNull
java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> children,
int level,
@Nullable
EntityStepSelection entity)
A interface StoryStep configuration in a class StoryDefinitionConfiguration.
name - The name of the step.intent - The intent used to reach the step - mandatory if an answer is set, or if there is a targetIntenttargetIntent - The optional intent to switch to when the step is reached.answers - The answers available.currentType - The type of answer configuration.userSentence - The user sentence sample.children - The children of the stepslevel - The level of the step.entity - Entity selection.interface StoryStep,
class StoryDefinitionConfigurationpublic StoryDefinitionConfigurationStep(@NotNull
StoryStep<?> step)
@NotNull public StoryStep<ai.tock.bot.definition.StoryHandlerDefinition> toStoryStep(@NotNull StoryDefinitionConfiguration story)
@NotNull
public java.util.List<java.lang.CharSequence> findNextSteps(@NotNull
BotBus bus,
@NotNull
StoryDefinitionConfiguration story)
@NotNull public java.lang.String getName()
The name of the step.
@Nullable public IntentWithoutNamespace getIntent()
The intent used to reach the step
- mandatory if an answer is set, or if there is a targetIntent
@Nullable public IntentWithoutNamespace getTargetIntent()
The optional intent to switch to when the step is reached.
@NotNull public java.util.List<ai.tock.bot.admin.answer.AnswerConfiguration> getAnswers()
The answers available.
@NotNull public AnswerConfigurationType getCurrentType()
The type of answer configuration.
@NotNull public java.lang.String getUserSentence()
The user sentence sample.
@Nullable public ai.tock.translator.I18nLabelValue getUserSentenceLabel()
@NotNull public java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> getChildren()
The children of the steps
public int getLevel()
The level of the step.
@Nullable public EntityStepSelection getEntity()
Entity selection.
@NotNull public java.lang.String component1()
The name of the step.
@Nullable public IntentWithoutNamespace component2()
The intent used to reach the step
- mandatory if an answer is set, or if there is a targetIntent
@Nullable public IntentWithoutNamespace component3()
The optional intent to switch to when the step is reached.
@NotNull public java.util.List<ai.tock.bot.admin.answer.AnswerConfiguration> component4()
The answers available.
@NotNull public AnswerConfigurationType component5()
The type of answer configuration.
@NotNull public java.lang.String component6()
The user sentence sample.
@Nullable public ai.tock.translator.I18nLabelValue component7()
@NotNull public java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> component8()
The children of the steps
public int component9()
The level of the step.
@Nullable public EntityStepSelection component10()
Entity selection.
@NotNull public StoryDefinitionConfigurationStep copy(@NotNull java.lang.String name, @Nullable IntentWithoutNamespace intent, @Nullable IntentWithoutNamespace targetIntent, @NotNull java.util.List<? extends ai.tock.bot.admin.answer.AnswerConfiguration> answers, @NotNull AnswerConfigurationType currentType, @NotNull java.lang.String userSentence, @Nullable ai.tock.translator.I18nLabelValue userSentenceLabel, @NotNull java.util.List<ai.tock.bot.admin.story.StoryDefinitionConfigurationStep> children, int level, @Nullable EntityStepSelection entity)
A interface StoryStep configuration in a class StoryDefinitionConfiguration.
@NotNull public java.lang.String toString()
A interface StoryStep configuration in a class StoryDefinitionConfiguration.
public int hashCode()
A interface StoryStep configuration in a class StoryDefinitionConfiguration.
public boolean equals(@Nullable
java.lang.Object p)
A interface StoryStep configuration in a class StoryDefinitionConfiguration.