| Constructor and Description |
|---|
Builder(String promptId,
String textReply)
Create a new prompt builder with the minimal set of required data.
|
| Modifier and Type | Method and Description |
|---|---|
Prompt |
build() |
Prompt.Builder |
endsConversation()
Signals that the prompt to be built should end the conversation with
the user.
|
Prompt.Builder |
withProposal(Proposal prop)
Add a proposal to the current prompt.
|
Prompt.Builder |
withReprompts(List<Prompt> prompts)
Specify reprompts for the current prompt.
|
Prompt.Builder |
withVoice(String voiceReply)
Add a reply template formatted for TTS synthesis to the current
prompt.
|
public Prompt.Builder endsConversation()
public Prompt.Builder withVoice(@NonNull String voiceReply)
voiceReply - The voice prompt to be added.public Prompt.Builder withProposal(@NonNull Proposal prop)
prop - The proposal to be added.public Prompt.Builder withReprompts(@NonNull List<Prompt> prompts)
prompts - The reprompts to attach.public Prompt build()
Copyright © 2021. All rights reserved.