Class ToneChatOptions

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.tone_analyzer.v3.model.ToneChatOptions
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class ToneChatOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
The toneChat options.
  • Method Details

    • newBuilder

      public ToneChatOptions.Builder newBuilder()
      New builder.
      Returns:
      a ToneChatOptions builder
    • utterances

      public List<Utterance> utterances()
      Gets the utterances.

      An array of `Utterance` objects that provides the input content that the service is to analyze.

      Returns:
      the utterances
    • contentLanguage

      public String contentLanguage()
      Gets the contentLanguage.

      The language of the input text for the request: English or French. Regional variants are treated as their parent language; for example, `en-US` is interpreted as `en`. The input content must match the specified language. Do not submit content that contains both languages. You can use different languages for **Content-Language** and **Accept-Language**. * **`2017-09-21`:** Accepts `en` or `fr`. * **`2016-05-19`:** Accepts only `en`.

      Returns:
      the contentLanguage
    • acceptLanguage

      public String acceptLanguage()
      Gets the acceptLanguage.

      The desired language of the response. For two-character arguments, regional variants are treated as their parent language; for example, `en-US` is interpreted as `en`. You can use different languages for **Content-Language** and **Accept-Language**.

      Returns:
      the acceptLanguage