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.
  • Method Details

    • newBuilder

      public Utterance.Builder newBuilder()
      New builder.
      Returns:
      a Utterance builder
    • text

      public String 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

      public String user()
      Gets the user.

      A string that identifies the user who contributed the utterance specified by the `text` parameter.

      Returns:
      the user