Class MessageInput.Builder

java.lang.Object
com.ibm.watson.assistant.v2.model.MessageInput.Builder
Enclosing class:
MessageInput

public static class MessageInput.Builder
extends Object
Builder.
  • Constructor Details

    • Builder

      public Builder()
      Instantiates a new builder.
  • Method Details

    • build

      public MessageInput build()
      Builds a MessageInput.
      Returns:
      the new MessageInput instance
    • addIntent

      public MessageInput.Builder addIntent​(RuntimeIntent intent)
      Adds an intent to intents.
      Parameters:
      intent - the new intent
      Returns:
      the MessageInput builder
    • addEntity

      public MessageInput.Builder addEntity​(RuntimeEntity entity)
      Adds an entity to entities.
      Parameters:
      entity - the new entity
      Returns:
      the MessageInput builder
    • messageType

      public MessageInput.Builder messageType​(String messageType)
      Set the messageType.
      Parameters:
      messageType - the messageType
      Returns:
      the MessageInput builder
    • text

      public MessageInput.Builder text​(String text)
      Set the text.
      Parameters:
      text - the text
      Returns:
      the MessageInput builder
    • intents

      public MessageInput.Builder intents​(List<RuntimeIntent> intents)
      Set the intents. Existing intents will be replaced.
      Parameters:
      intents - the intents
      Returns:
      the MessageInput builder
    • entities

      public MessageInput.Builder entities​(List<RuntimeEntity> entities)
      Set the entities. Existing entities will be replaced.
      Parameters:
      entities - the entities
      Returns:
      the MessageInput builder
    • suggestionId

      public MessageInput.Builder suggestionId​(String suggestionId)
      Set the suggestionId.
      Parameters:
      suggestionId - the suggestionId
      Returns:
      the MessageInput builder
    • options

      public MessageInput.Builder options​(MessageInputOptions options)
      Set the options.
      Parameters:
      options - the options
      Returns:
      the MessageInput builder