Class MessageInput
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class MessageInput extends com.ibm.cloud.sdk.core.service.model.DynamicModel<Object>
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMessageInput.BuilderBuilder. -
Constructor Summary
Constructors Constructor Description MessageInput() -
Method Summary
Modifier and Type Method Description StringgetOriginalText()Gets the originalText.StringgetSuggestedText()Gets the suggestedText.StringgetText()Gets the text.BooleanisSpellingAutoCorrect()Gets the spellingAutoCorrect.BooleanisSpellingSuggestions()Gets the spellingSuggestions.MessageInput.BuildernewBuilder()New builder.voidsetSpellingAutoCorrect(Boolean spellingAutoCorrect)Sets the spellingAutoCorrect.voidsetSpellingSuggestions(Boolean spellingSuggestions)Sets the spellingSuggestions.voidsetText(String text)Sets the text.Methods inherited from class com.ibm.cloud.sdk.core.service.model.DynamicModel
equals, get, getAdditionalPropertyTypeToken, getProperties, getPropertyNames, hashCode, put, removeProperties, removeProperty, setProperties, toString
-
Constructor Details
-
MessageInput
public MessageInput()
-
-
Method Details
-
newBuilder
New builder.- Returns:
- a MessageInput builder
-
getText
Gets the text.The text of the user input. This string cannot contain carriage return, newline, or tab characters.
- Returns:
- the text
-
setText
Sets the text.- Parameters:
text- the new text
-
isSpellingSuggestions
Gets the spellingSuggestions.Whether to use spelling correction when processing the input. This property overrides the value of the **spelling_suggestions** property in the workspace settings.
- Returns:
- the spellingSuggestions
-
setSpellingSuggestions
Sets the spellingSuggestions.- Parameters:
spellingSuggestions- the new spellingSuggestions
-
isSpellingAutoCorrect
Gets the spellingAutoCorrect.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.
- Returns:
- the spellingAutoCorrect
-
setSpellingAutoCorrect
Sets the spellingAutoCorrect.- Parameters:
spellingAutoCorrect- the new spellingAutoCorrect
-
getSuggestedText
Gets the suggestedText.Any suggested corrections of the input text. This property is returned only if spelling correction is enabled and autocorrection is disabled.
- Returns:
- the suggestedText
-
getOriginalText
Gets the originalText.The original user input text. This property is returned only if autocorrection is enabled and the user input was corrected.
- Returns:
- the originalText
-