public static class MessageRequest.Builder extends Object
Constructor and Description |
---|
Builder()
Instantiates a new builder.
|
Modifier and Type | Method and Description |
---|---|
MessageRequest.Builder |
addEntity(RuntimeEntity entity)
Adds an entity to entities.
|
MessageRequest.Builder |
addIntent(RuntimeIntent intent)
Adds an intent to intents.
|
MessageRequest.Builder |
alternateIntents(Boolean alternateIntents)
Set the alternateIntents.
|
MessageRequest |
build()
Builds a MessageRequest.
|
MessageRequest.Builder |
context(Context context)
Set the context.
|
MessageRequest.Builder |
entities(List<RuntimeEntity> entities)
Set the entities.
|
MessageRequest.Builder |
input(MessageInput input)
Set the input.
|
MessageRequest.Builder |
intents(List<RuntimeIntent> intents)
Set the intents.
|
MessageRequest.Builder |
output(OutputData output)
Set the output.
|
MessageRequest.Builder |
userId(String userId)
Set the userId.
|
public MessageRequest build()
public MessageRequest.Builder addIntent(RuntimeIntent intent)
intent
- the new intentpublic MessageRequest.Builder addEntity(RuntimeEntity entity)
entity
- the new entitypublic MessageRequest.Builder input(MessageInput input)
input
- the inputpublic MessageRequest.Builder intents(List<RuntimeIntent> intents)
intents
- the intentspublic MessageRequest.Builder entities(List<RuntimeEntity> entities)
entities
- the entitiespublic MessageRequest.Builder alternateIntents(Boolean alternateIntents)
alternateIntents
- the alternateIntentspublic MessageRequest.Builder context(Context context)
context
- the contextpublic MessageRequest.Builder output(OutputData output)
output
- the outputpublic MessageRequest.Builder userId(String userId)
userId
- the userIdCopyright © 2023 IBM Cloud. All rights reserved.