Class OutputData.Builder
java.lang.Object
com.ibm.watson.assistant.v1.model.OutputData.Builder
- Enclosing class:
- OutputData
public static class OutputData.Builder extends Object
Builder.
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description OutputData.Builder
add(String name, Object value)
Add an arbitrary property.OutputData.Builder
addGeneric(RuntimeResponseGeneric generic)
Adds an generic to generic.OutputData.Builder
addLogMessages(LogMessage logMessages)
Adds an logMessages to logMessages.OutputData.Builder
addNodesVisited(String nodesVisited)
Adds an nodesVisited to nodesVisited.OutputData.Builder
addNodesVisitedDetails(DialogNodeVisitedDetails nodesVisitedDetails)
Adds an nodesVisitedDetails to nodesVisitedDetails.OutputData.Builder
addText(String text)
Adds an text to text.OutputData
build()
Builds a OutputData.OutputData.Builder
generic(List<RuntimeResponseGeneric> generic)
Set the generic.OutputData.Builder
logMessages(List<LogMessage> logMessages)
Set the logMessages.OutputData.Builder
nodesVisited(List<String> nodesVisited)
Set the nodesVisited.OutputData.Builder
nodesVisitedDetails(List<DialogNodeVisitedDetails> nodesVisitedDetails)
Set the nodesVisitedDetails.OutputData.Builder
text(List<String> text)
Set the text.
-
Constructor Details
-
Builder
public Builder()Instantiates a new builder. -
Builder
Instantiates a new builder with required properties.- Parameters:
logMessages
- the logMessagestext
- the text
-
-
Method Details
-
build
Builds a OutputData.- Returns:
- the new OutputData instance
-
addNodesVisited
Adds an nodesVisited to nodesVisited.- Parameters:
nodesVisited
- the new nodesVisited- Returns:
- the OutputData builder
-
addNodesVisitedDetails
Adds an nodesVisitedDetails to nodesVisitedDetails.- Parameters:
nodesVisitedDetails
- the new nodesVisitedDetails- Returns:
- the OutputData builder
-
addLogMessages
Adds an logMessages to logMessages.- Parameters:
logMessages
- the new logMessages- Returns:
- the OutputData builder
-
addText
Adds an text to text.- Parameters:
text
- the new text- Returns:
- the OutputData builder
-
addGeneric
Adds an generic to generic.- Parameters:
generic
- the new generic- Returns:
- the OutputData builder
-
nodesVisited
Set the nodesVisited. Existing nodesVisited will be replaced.- Parameters:
nodesVisited
- the nodesVisited- Returns:
- the OutputData builder
-
nodesVisitedDetails
Set the nodesVisitedDetails. Existing nodesVisitedDetails will be replaced.- Parameters:
nodesVisitedDetails
- the nodesVisitedDetails- Returns:
- the OutputData builder
-
logMessages
Set the logMessages. Existing logMessages will be replaced.- Parameters:
logMessages
- the logMessages- Returns:
- the OutputData builder
-
text
Set the text. Existing text will be replaced.- Parameters:
text
- the text- Returns:
- the OutputData builder
-
generic
Set the generic. Existing generic will be replaced.- Parameters:
generic
- the generic- Returns:
- the OutputData builder
-
add
Add an arbitrary property.- Parameters:
name
- the name of the property to addvalue
- the value of the property to add- Returns:
- the OutputData builder
-