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.Builderadd(String name, Object value)Add an arbitrary property.OutputData.BuilderaddGeneric(RuntimeResponseGeneric generic)Adds an generic to generic.OutputData.BuilderaddLogMessages(LogMessage logMessages)Adds an logMessages to logMessages.OutputData.BuilderaddNodesVisited(String nodesVisited)Adds an nodesVisited to nodesVisited.OutputData.BuilderaddNodesVisitedDetails(DialogNodeVisitedDetails nodesVisitedDetails)Adds an nodesVisitedDetails to nodesVisitedDetails.OutputData.BuilderaddText(String text)Adds an text to text.OutputDatabuild()Builds a OutputData.OutputData.Buildergeneric(List<RuntimeResponseGeneric> generic)Set the generic.OutputData.BuilderlogMessages(List<LogMessage> logMessages)Set the logMessages.OutputData.BuildernodesVisited(List<String> nodesVisited)Set the nodesVisited.OutputData.BuildernodesVisitedDetails(List<DialogNodeVisitedDetails> nodesVisitedDetails)Set the nodesVisitedDetails.OutputData.Buildertext(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
-