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 a new element to entities.
|
MessageRequest.Builder |
addIntent(RuntimeIntent intent)
Adds a new element 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 element to be addedpublic MessageRequest.Builder addEntity(RuntimeEntity entity)
entity
- the new element to be addedpublic 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 © 2024 IBM Cloud. All rights reserved.