Class DialogNodeOutputGeneric

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.assistant.v1.model.DialogNodeOutputGeneric
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
Direct Known Subclasses:
DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer, DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent, DialogNodeOutputGenericDialogNodeOutputResponseTypeImage, DialogNodeOutputGenericDialogNodeOutputResponseTypeOption, DialogNodeOutputGenericDialogNodeOutputResponseTypePause, DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill, DialogNodeOutputGenericDialogNodeOutputResponseTypeText, DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined

public class DialogNodeOutputGeneric
extends com.ibm.cloud.sdk.core.service.model.GenericModel
DialogNodeOutputGeneric.

Classes which extend this class: - DialogNodeOutputGenericDialogNodeOutputResponseTypeText - DialogNodeOutputGenericDialogNodeOutputResponseTypePause - DialogNodeOutputGenericDialogNodeOutputResponseTypeImage - DialogNodeOutputGenericDialogNodeOutputResponseTypeOption - DialogNodeOutputGenericDialogNodeOutputResponseTypeConnectToAgent - DialogNodeOutputGenericDialogNodeOutputResponseTypeSearchSkill - DialogNodeOutputGenericDialogNodeOutputResponseTypeChannelTransfer - DialogNodeOutputGenericDialogNodeOutputResponseTypeUserDefined

  • Method Details

    • responseType

      public String responseType()
      Gets the responseType.

      The type of response returned by the dialog node. The specified response type must be supported by the client application or channel.

      Returns:
      the responseType
    • values

      Gets the values.

      A list of one or more objects defining text responses.

      Returns:
      the values
    • selectionPolicy

      public String selectionPolicy()
      Gets the selectionPolicy.

      How a response is selected from the list, if more than one response is specified.

      Returns:
      the selectionPolicy
    • delimiter

      public String delimiter()
      Gets the delimiter.

      The delimiter to use as a separator between responses when `selection_policy`=`multiline`.

      Returns:
      the delimiter
    • channels

      public List<ResponseGenericChannel> channels()
      Gets the channels.

      An array of objects specifying channels for which the response is intended.

      Returns:
      the channels
    • time

      public Long time()
      Gets the time.

      How long to pause, in milliseconds. The valid values are from 0 to 10000.

      Returns:
      the time
    • typing

      public Boolean typing()
      Gets the typing.

      Whether to send a "user is typing" event during the pause. Ignored if the channel does not support this event.

      Returns:
      the typing
    • source

      public String source()
      Gets the source.

      The URL of the image.

      Returns:
      the source
    • title

      public String title()
      Gets the title.

      An optional title to show before the response.

      Returns:
      the title
    • description

      public String description()
      Gets the description.

      An optional description to show with the response.

      Returns:
      the description
    • preference

      public String preference()
      Gets the preference.

      The preferred type of control to display, if supported by the channel.

      Returns:
      the preference
    • options

      Gets the options.

      An array of objects describing the options from which the user can choose. You can include up to 20 options.

      Returns:
      the options
    • messageToHumanAgent

      public String messageToHumanAgent()
      Gets the messageToHumanAgent.

      An optional message to be sent to the human agent who will be taking over the conversation.

      Returns:
      the messageToHumanAgent
    • agentAvailable

      public AgentAvailabilityMessage agentAvailable()
      Gets the agentAvailable.

      An optional message to be displayed to the user to indicate that the conversation will be transferred to the next available agent.

      Returns:
      the agentAvailable
    • agentUnavailable

      public AgentAvailabilityMessage agentUnavailable()
      Gets the agentUnavailable.

      An optional message to be displayed to the user to indicate that no online agent is available to take over the conversation.

      Returns:
      the agentUnavailable
    • query

      public String query()
      Gets the query.

      The text of the search query. This can be either a natural-language query or a query that uses the Discovery query language syntax, depending on the value of the **query_type** property. For more information, see the [Discovery service documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-operators#query-operators).

      Returns:
      the query
    • queryType

      public String queryType()
      Gets the queryType.

      The type of the search query.

      Returns:
      the queryType
    • filter

      public String filter()
      Gets the filter.

      An optional filter that narrows the set of documents to be searched. For more information, see the [Discovery service documentation]([Discovery service documentation](https://cloud.ibm.com/docs/discovery?topic=discovery-query-parameters#filter).

      Returns:
      the filter
    • discoveryVersion

      public String discoveryVersion()
      Gets the discoveryVersion.

      The version of the Discovery service API to use for the query.

      Returns:
      the discoveryVersion
    • messageToUser

      public String messageToUser()
      Gets the messageToUser.

      The message to display to the user when initiating a channel transfer.

      Returns:
      the messageToUser
    • userDefined

      public Map<String,​Object> userDefined()
      Gets the userDefined.

      An object containing any properties for the user-defined response type. The total size of this object cannot exceed 5000 bytes.

      Returns:
      the userDefined