public class MessageInput
extends com.ibm.cloud.sdk.core.service.model.DynamicModel<java.lang.Object>
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
originalText |
protected java.lang.Boolean |
spellingAutoCorrect |
protected java.lang.Boolean |
spellingSuggestions |
protected java.lang.String |
suggestedText |
protected java.lang.String |
text |
Constructor and Description |
---|
MessageInput() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getOriginalText()
Gets the originalText.
|
java.lang.String |
getSuggestedText()
Gets the suggestedText.
|
java.lang.String |
getText()
Gets the text.
|
java.lang.Boolean |
isSpellingAutoCorrect()
Gets the spellingAutoCorrect.
|
java.lang.Boolean |
isSpellingSuggestions()
Gets the spellingSuggestions.
|
void |
setOriginalText(java.lang.String originalText)
Sets the originalText.
|
void |
setSpellingAutoCorrect(java.lang.Boolean spellingAutoCorrect)
Sets the spellingAutoCorrect.
|
void |
setSpellingSuggestions(java.lang.Boolean spellingSuggestions)
Sets the spellingSuggestions.
|
void |
setSuggestedText(java.lang.String suggestedText)
Sets the suggestedText.
|
void |
setText(java.lang.String text)
Sets the text.
|
@SerializedName(value="text") protected java.lang.String text
@SerializedName(value="spelling_suggestions") protected java.lang.Boolean spellingSuggestions
@SerializedName(value="spelling_auto_correct") protected java.lang.Boolean spellingAutoCorrect
@SerializedName(value="suggested_text") protected java.lang.String suggestedText
@SerializedName(value="original_text") protected java.lang.String originalText
public java.lang.String getText()
The text of the user input. This string cannot contain carriage return, newline, or tab characters.
public void setText(java.lang.String text)
text
- the new textpublic java.lang.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(java.lang.Boolean spellingSuggestions)
spellingSuggestions
- the new spellingSuggestionspublic java.lang.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(java.lang.Boolean spellingAutoCorrect)
spellingAutoCorrect
- the new spellingAutoCorrectpublic java.lang.String getSuggestedText()
Any suggested corrections of the input text. This property is returned only if spelling correction is enabled and autocorrection is disabled.
public void setSuggestedText(java.lang.String suggestedText)
suggestedText
- the new suggestedTextpublic java.lang.String getOriginalText()
The original user input text. This property is returned only if autocorrection is enabled and the user input was corrected.
public void setOriginalText(java.lang.String originalText)
originalText
- the new originalText