public class ConsumptionPreferences
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
consumptionPreferenceId |
protected java.lang.String |
name |
protected java.lang.Double |
score |
Constructor and Description |
---|
ConsumptionPreferences() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getConsumptionPreferenceId()
Gets the consumptionPreferenceId.
|
java.lang.String |
getName()
Gets the name.
|
java.lang.Double |
getScore()
Gets the score.
|
@SerializedName(value="consumption_preference_id") protected java.lang.String consumptionPreferenceId
protected java.lang.String name
protected java.lang.Double score
public java.lang.String getConsumptionPreferenceId()
The unique, non-localized identifier of the consumption preference to which the results pertain. IDs have the form `consumption_preferences_{preference}`.
public java.lang.String getName()
The user-visible, localized name of the consumption preference.
public java.lang.Double getScore()
The score for the consumption preference: * `0.0`: Unlikely * `0.5`: Neutral * `1.0`: Likely
The scores for some preferences are binary and do not allow a neutral value. The score is an indication of preference based on the results inferred from the input text, not a normalized percentile.