public static class BatchLanguageTranslationDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
BatchLanguageTranslationDetails.Builder |
alias(String alias)
Unique name to identify an endpoint to be used for inferencing
|
BatchLanguageTranslationDetails |
build() |
BatchLanguageTranslationDetails.Builder |
compartmentId(String compartmentId)
The OCID of the
compartment that calls the API, inference will be served from pre trained model
|
BatchLanguageTranslationDetails.Builder |
copy(BatchLanguageTranslationDetails model) |
BatchLanguageTranslationDetails.Builder |
documents(List<TextDocument> documents)
List of documents for translation.
|
BatchLanguageTranslationDetails.Builder |
endpointId(String endpointId)
The endpoint that has to be used for inferencing.
|
BatchLanguageTranslationDetails.Builder |
noTranslate(List<String> noTranslate)
List of words not to be translated
|
BatchLanguageTranslationDetails.Builder |
targetLanguageCode(String targetLanguageCode)
Language code supported Arabic - ar Brazilian Portuguese - pt-BR Canadian French - fr-CA
Croatian - hr Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr
German - de Greek - el Hebrew - he Hungarian - hu Italian - it Japanese - ja Korean - ko
Norwegian - no Polish - pl Portuguese - pt Romanian - ro Russian - ru Simplified Chinese
|
public BatchLanguageTranslationDetails.Builder alias(String alias)
Unique name to identify an endpoint to be used for inferencing
alias
- the value to setpublic BatchLanguageTranslationDetails.Builder endpointId(String endpointId)
The endpoint that has to be used for inferencing.
endpointId
- the value to setpublic BatchLanguageTranslationDetails.Builder noTranslate(List<String> noTranslate)
List of words not to be translated
noTranslate
- the value to setpublic BatchLanguageTranslationDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment that calls the API, inference will be served from pre trained model
compartmentId
- the value to setpublic BatchLanguageTranslationDetails.Builder targetLanguageCode(String targetLanguageCode)
Language code supported Arabic - ar Brazilian Portuguese - pt-BR Canadian French - fr-CA Croatian - hr Czech - cs Danish - da Dutch - nl English - en Finnish - fi French - fr German - de Greek - el Hebrew - he Hungarian - hu Italian - it Japanese - ja Korean - ko Norwegian - no Polish - pl Portuguese - pt Romanian - ro Russian - ru Simplified Chinese
targetLanguageCode
- the value to setpublic BatchLanguageTranslationDetails.Builder documents(List<TextDocument> documents)
List of documents for translation.
documents
- the value to setpublic BatchLanguageTranslationDetails build()
public BatchLanguageTranslationDetails.Builder copy(BatchLanguageTranslationDetails model)
Copyright © 2016–2024. All rights reserved.