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