public class MessageInput extends com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
Modifier and Type | Class and Description |
---|---|
static class |
MessageInput.Builder
Builder.
|
Constructor and Description |
---|
MessageInput() |
Modifier and Type | Method and Description |
---|---|
String |
getOriginalText()
Gets the originalText.
|
String |
getSuggestedText()
Gets the suggestedText.
|
String |
getText()
Gets the text.
|
Boolean |
isSpellingAutoCorrect()
Gets the spellingAutoCorrect.
|
Boolean |
isSpellingSuggestions()
Gets the spellingSuggestions.
|
MessageInput.Builder |
newBuilder()
New builder.
|
void |
setSpellingAutoCorrect(Boolean spellingAutoCorrect)
Sets the spellingAutoCorrect.
|
void |
setSpellingSuggestions(Boolean spellingSuggestions)
Sets the spellingSuggestions.
|
void |
setText(String text)
Sets the text.
|
public MessageInput.Builder newBuilder()
public String getText()
The text of the user input. This string cannot contain carriage return, newline, or tab characters.
public void setText(String text)
text
- the new textpublic Boolean isSpellingSuggestions()
Whether to use spelling correction when processing the input. This property overrides the value of the **spelling_suggestions** property in the workspace settings.
public void setSpellingSuggestions(Boolean spellingSuggestions)
spellingSuggestions
- the new spellingSuggestionspublic Boolean isSpellingAutoCorrect()
Whether to use autocorrection when processing the input. If spelling correction is used and this property is `false`, any suggested corrections are returned in the **suggested_text** property of the message response. If this property is `true`, any corrections are automatically applied to the user input, and the original text is returned in the **original_text** property of the message response. This property overrides the value of the **spelling_auto_correct** property in the workspace settings.
public void setSpellingAutoCorrect(Boolean spellingAutoCorrect)
spellingAutoCorrect
- the new spellingAutoCorrectpublic String getSuggestedText()
Any suggested corrections of the input text. This property is returned only if spelling correction is enabled and autocorrection is disabled.
public String getOriginalText()
The original user input text. This property is returned only if autocorrection is enabled and the user input was corrected.
Copyright © 2021 IBM Cloud. All rights reserved.