public class ProfileOptions
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
ProfileOptions.AcceptLanguage
The desired language of the response.
|
static class |
ProfileOptions.Builder
Builder.
|
static interface |
ProfileOptions.ContentLanguage
The language of the input text for the request: Arabic, English, Japanese, Korean, or Spanish.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
acceptLanguage |
protected java.lang.String |
body |
protected java.lang.Boolean |
consumptionPreferences |
protected Content |
content |
protected java.lang.String |
contentLanguage |
protected java.lang.String |
contentType |
protected java.lang.Boolean |
csvHeaders |
protected java.lang.Boolean |
rawScores |
Modifier | Constructor and Description |
---|---|
protected |
ProfileOptions(ProfileOptions.Builder builder) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
acceptLanguage()
Gets the acceptLanguage.
|
java.lang.String |
body()
Gets the body.
|
java.lang.Boolean |
consumptionPreferences()
Gets the consumptionPreferences.
|
Content |
content()
Gets the content.
|
java.lang.String |
contentLanguage()
Gets the contentLanguage.
|
java.lang.String |
contentType()
Gets the contentType.
|
java.lang.Boolean |
csvHeaders()
Gets the csvHeaders.
|
ProfileOptions.Builder |
newBuilder()
New builder.
|
java.lang.Boolean |
rawScores()
Gets the rawScores.
|
protected Content content
protected java.lang.String body
protected java.lang.String contentType
protected java.lang.String contentLanguage
protected java.lang.String acceptLanguage
protected java.lang.Boolean rawScores
protected java.lang.Boolean csvHeaders
protected java.lang.Boolean consumptionPreferences
protected ProfileOptions(ProfileOptions.Builder builder)
public ProfileOptions.Builder newBuilder()
public Content content()
A maximum of 20 MB of content to analyze, though the service requires much less text; for more information, see [Providing sufficient input](https://cloud.ibm.com/docs/personality-insights?topic=personality-insights-input#sufficient). For JSON input, provide an object of type `Content`.
public java.lang.String body()
A maximum of 20 MB of content to analyze, though the service requires much less text; for more information, see [Providing sufficient input](https://cloud.ibm.com/docs/personality-insights?topic=personality-insights-input#sufficient). For JSON input, provide an object of type `Content`.
public java.lang.String contentType()
The type of the input. For more information, see **Content types** in the method description.
public java.lang.String contentLanguage()
The language of the input text for the request: Arabic, English, Japanese, Korean, or Spanish. Regional variants are treated as their parent language; for example, `en-US` is interpreted as `en`.
The effect of the **Content-Language** parameter depends on the **Content-Type** parameter. When **Content-Type** is `text/plain` or `text/html`, **Content-Language** is the only way to specify the language. When **Content-Type** is `application/json`, **Content-Language** overrides a language specified with the `language` parameter of a `ContentItem` object, and content items that specify a different language are ignored; omit this parameter to base the language on the specification of the content items. You can specify any combination of languages for **Content-Language** and **Accept-Language**.
public java.lang.String 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 specify any combination of languages for the input and response content.
public java.lang.Boolean rawScores()
Indicates whether a raw score in addition to a normalized percentile is returned for each characteristic; raw scores are not compared with a sample population. By default, only normalized percentiles are returned.
public java.lang.Boolean csvHeaders()
Indicates whether column labels are returned with a CSV response. By default, no column labels are returned. Applies only when the response type is CSV (`text/csv`).
public java.lang.Boolean consumptionPreferences()
Indicates whether consumption preferences are returned with the results. By default, no consumption preferences are returned.