public static class DialogRuntimeResponseGeneric.Builder
extends java.lang.Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Builder(java.lang.String responseType)
Instantiates a new builder with required properties.
|
public Builder()
public Builder(java.lang.String responseType)
responseType
- the responseTypepublic DialogRuntimeResponseGeneric build()
public DialogRuntimeResponseGeneric.Builder addOptions(DialogNodeOutputOptionsElement options)
options
- the new optionspublic DialogRuntimeResponseGeneric.Builder addSuggestions(DialogSuggestion suggestions)
suggestions
- the new suggestionspublic DialogRuntimeResponseGeneric.Builder addResults(SearchResult results)
results
- the new resultspublic DialogRuntimeResponseGeneric.Builder responseType(java.lang.String responseType)
responseType
- the responseTypepublic DialogRuntimeResponseGeneric.Builder text(java.lang.String text)
text
- the textpublic DialogRuntimeResponseGeneric.Builder time(long time)
time
- the timepublic DialogRuntimeResponseGeneric.Builder typing(java.lang.Boolean typing)
typing
- the typingpublic DialogRuntimeResponseGeneric.Builder source(java.lang.String source)
source
- the sourcepublic DialogRuntimeResponseGeneric.Builder title(java.lang.String title)
title
- the titlepublic DialogRuntimeResponseGeneric.Builder description(java.lang.String description)
description
- the descriptionpublic DialogRuntimeResponseGeneric.Builder preference(java.lang.String preference)
preference
- the preferencepublic DialogRuntimeResponseGeneric.Builder options(java.util.List<DialogNodeOutputOptionsElement> options)
options
- the optionspublic DialogRuntimeResponseGeneric.Builder messageToHumanAgent(java.lang.String messageToHumanAgent)
messageToHumanAgent
- the messageToHumanAgentpublic DialogRuntimeResponseGeneric.Builder topic(java.lang.String topic)
topic
- the topicpublic DialogRuntimeResponseGeneric.Builder suggestions(java.util.List<DialogSuggestion> suggestions)
suggestions
- the suggestionspublic DialogRuntimeResponseGeneric.Builder header(java.lang.String header)
header
- the headerpublic DialogRuntimeResponseGeneric.Builder results(java.util.List<SearchResult> results)
results
- the results