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.
  • Constructor Details

    • OutputData

      public OutputData()
  • Method Details

    • newBuilder

      public OutputData.Builder newBuilder()
      New builder.
      Returns:
      a OutputData builder
    • getNodesVisited

      public List<String> 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

      public void setNodesVisited​(List<String> nodesVisited)
      Sets the nodesVisited.
      Parameters:
      nodesVisited - the new nodesVisited
    • getNodesVisitedDetails

      public List<DialogNodeVisitedDetails> 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

      public void setNodesVisitedDetails​(List<DialogNodeVisitedDetails> nodesVisitedDetails)
      Sets the nodesVisitedDetails.
      Parameters:
      nodesVisitedDetails - the new nodesVisitedDetails
    • getLogMessages

      public List<LogMessage> getLogMessages()
      Gets the logMessages.

      An array of up to 50 messages logged with the request.

      Returns:
      the logMessages
    • setLogMessages

      public void setLogMessages​(List<LogMessage> logMessages)
      Sets the logMessages.
      Parameters:
      logMessages - the new logMessages
    • getText

      public List<String> getText()
      Gets the text.

      An array of responses to the user.

      Returns:
      the text
    • setText

      public void setText​(List<String> text)
      Sets the text.
      Parameters:
      text - the new text
    • getGeneric

      public List<RuntimeResponseGeneric> 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

      public void setGeneric​(List<RuntimeResponseGeneric> generic)
      Sets the generic.
      Parameters:
      generic - the new generic