public class MessageInput
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static class |
MessageInput.Builder
Builder.
|
static interface |
MessageInput.MessageType
The type of user input.
|
Modifier and Type | Field and Description |
---|---|
protected java.util.List<RuntimeEntity> |
entities |
protected java.util.List<RuntimeIntent> |
intents |
protected java.lang.String |
messageType |
protected MessageInputOptions |
options |
protected java.lang.String |
suggestionId |
protected java.lang.String |
text |
Modifier | Constructor and Description |
---|---|
protected |
MessageInput(MessageInput.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.util.List<RuntimeEntity> |
entities()
Gets the entities.
|
java.util.List<RuntimeIntent> |
intents()
Gets the intents.
|
java.lang.String |
messageType()
Gets the messageType.
|
MessageInput.Builder |
newBuilder()
New builder.
|
MessageInputOptions |
options()
Gets the options.
|
java.lang.String |
suggestionId()
Gets the suggestionId.
|
java.lang.String |
text()
Gets the text.
|
@SerializedName(value="message_type") protected java.lang.String messageType
protected java.lang.String text
protected java.util.List<RuntimeIntent> intents
protected java.util.List<RuntimeEntity> entities
@SerializedName(value="suggestion_id") protected java.lang.String suggestionId
protected MessageInputOptions options
protected MessageInput(MessageInput.Builder builder)
public MessageInput.Builder newBuilder()
public java.lang.String messageType()
The type of user input. Currently, only text input is supported.
public java.lang.String text()
The text of the user input. This string cannot contain carriage return, newline, or tab characters.
public java.util.List<RuntimeIntent> intents()
Intents to use when evaluating the user input. Include intents from the previous response to continue using those intents rather than trying to recognize intents in the new input.
public java.util.List<RuntimeEntity> entities()
Entities to use when evaluating the message. Include entities from the previous response to continue using those entities rather than detecting entities in the new input.
public java.lang.String suggestionId()
For internal use only.
public MessageInputOptions options()
Optional properties that control how the assistant responds.