public class ToneCategory
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
categoryId |
protected java.lang.String |
categoryName |
protected java.util.List<ToneScore> |
tones |
Constructor and Description |
---|
ToneCategory() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCategoryId()
Gets the categoryId.
|
java.lang.String |
getCategoryName()
Gets the categoryName.
|
java.util.List<ToneScore> |
getTones()
Gets the tones.
|
protected java.util.List<ToneScore> tones
@SerializedName(value="category_id") protected java.lang.String categoryId
@SerializedName(value="category_name") protected java.lang.String categoryName
public java.util.List<ToneScore> getTones()
An array of `ToneScore` objects that provides the results for the tones of the category.
public java.lang.String getCategoryId()
The unique, non-localized identifier of the category for the results. The service can return results for the following category IDs: `emotion_tone`, `language_tone`, and `social_tone`.
public java.lang.String getCategoryName()
The user-visible, localized name of the category.