public class MessageRequest extends GenericModel
ConversationService.message(String, MessageRequest) method| Modifier and Type | Class and Description | 
|---|---|
static class  | 
MessageRequest.Builder
The Class Builder. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
Boolean | 
alternateIntents()
Whether to return more than one intent. 
 | 
Map<String,Object> | 
context()
Returns a map used to store context/state for the message API. 
 | 
List<Entity> | 
entities()
Returns the entity list. 
 | 
Map<String,Object> | 
input()
Returns a map storing the input which is to be sent to the service as a part of the API request. 
 | 
String | 
inputText()
Convenience method which allows the developer to quickly retrieve the 'text' property from the input object. 
 | 
List<Intent> | 
intents()
Returns the intent list. 
 | 
MessageRequest.Builder | 
newBuilder()
New builder. 
 | 
equals, hashCode, toStringpublic Boolean alternateIntents()
public Map<String,Object> context()
public Map<String,Object> input()
public String inputText()
 Map<String, Object> input = request.getInput();
 String text = null;
 if (input != null) {
   text = input.get("text");
 }
 input.text propertypublic MessageRequest.Builder newBuilder()
Copyright © 2015–2016 IBM Watson. All rights reserved.