Class OutputData
java.lang.Object
com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
com.ibm.watson.assistant.v1.model.OutputData
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class OutputData extends com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
An output object that includes the response to the user, the dialog nodes that were triggered,
and messages from the log.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
OutputData.Builder
Builder. -
Constructor Summary
Constructors Constructor Description OutputData()
-
Method Summary
Modifier and Type Method Description List<RuntimeResponseGeneric>
getGeneric()
Gets the generic.List<LogMessage>
getLogMessages()
Gets the logMessages.List<String>
getNodesVisited()
Gets the nodesVisited.List<DialogNodeVisitedDetails>
getNodesVisitedDetails()
Gets the nodesVisitedDetails.List<String>
getText()
Gets the text.OutputData.Builder
newBuilder()
New builder.void
setGeneric(List<RuntimeResponseGeneric> generic)
Sets the generic.void
setLogMessages(List<LogMessage> logMessages)
Sets the logMessages.void
setNodesVisited(List<String> nodesVisited)
Sets the nodesVisited.void
setNodesVisitedDetails(List<DialogNodeVisitedDetails> nodesVisitedDetails)
Sets the nodesVisitedDetails.void
setText(List<String> text)
Sets the text.Methods inherited from class com.ibm.cloud.sdk.core.service.model.DynamicModel
equals, get, getAdditionalPropertyTypeToken, getProperties, getPropertyNames, hashCode, put, removeProperties, removeProperty, setProperties, toString
-
Constructor Details
-
OutputData
public OutputData()
-
-
Method Details
-
newBuilder
New builder.- Returns:
- a OutputData builder
-
getNodesVisited
Gets the nodesVisited.An array of the nodes that were triggered to create the response, in the order in which they were visited. This information is useful for debugging and for tracing the path taken through the node tree.
- Returns:
- the nodesVisited
-
setNodesVisited
Sets the nodesVisited.- Parameters:
nodesVisited
- the new nodesVisited
-
getNodesVisitedDetails
Gets the nodesVisitedDetails.An array of objects containing detailed diagnostic information about the nodes that were triggered during processing of the input message. Included only if **nodes_visited_details** is set to `true` in the message request.
- Returns:
- the nodesVisitedDetails
-
setNodesVisitedDetails
Sets the nodesVisitedDetails.- Parameters:
nodesVisitedDetails
- the new nodesVisitedDetails
-
getLogMessages
Gets the logMessages.An array of up to 50 messages logged with the request.
- Returns:
- the logMessages
-
setLogMessages
Sets the logMessages.- Parameters:
logMessages
- the new logMessages
-
getText
Gets the text.An array of responses to the user.
- Returns:
- the text
-
setText
Sets the text.- Parameters:
text
- the new text
-
getGeneric
Gets the generic.Output intended for any channel. It is the responsibility of the client application to implement the supported response types.
- Returns:
- the generic
-
setGeneric
Sets the generic.- Parameters:
generic
- the new generic
-