Class Utterance
java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.tone_analyzer.v3.model.Utterance
- All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel
public class Utterance
extends com.ibm.cloud.sdk.core.service.model.GenericModel
An utterance for the input of the general-purpose endpoint.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Utterance.Builder
Builder. -
Method Summary
Modifier and Type Method Description Utterance.Builder
newBuilder()
New builder.String
text()
Gets the text.String
user()
Gets the user.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a Utterance builder
-
text
Gets the text.An utterance contributed by a user in the conversation that is to be analyzed. The utterance can contain multiple sentences.
- Returns:
- the text
-
user
Gets the user.A string that identifies the user who contributed the utterance specified by the `text` parameter.
- Returns:
- the user
-