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 | Method and Description |
---|---|
String |
acceptLanguage()
Gets the acceptLanguage.
|
String |
body()
Gets the body.
|
Boolean |
consumptionPreferences()
Gets the consumptionPreferences.
|
Content |
content()
Gets the content.
|
String |
contentLanguage()
Gets the contentLanguage.
|
String |
contentType()
Gets the contentType.
|
Boolean |
csvHeaders()
Gets the csvHeaders.
|
ProfileOptions.Builder |
newBuilder()
New builder.
|
Boolean |
rawScores()
Gets the rawScores.
|
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 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 String contentType()
The type of the input. For more information, see **Content types** in the method description.
public 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 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 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 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 Boolean consumptionPreferences()
Indicates whether consumption preferences are returned with the results. By default, no consumption preferences are returned.
Copyright © 2021 IBM Cloud. All rights reserved.