@Deprecated public class LanguageTranslator extends WatsonService
defaultHeaders, JSON_MIME_PATTERN, JSON_PATCH_MIME_PATTERN, MESSAGE_CODE, MESSAGE_ERROR, skipAuthentication, VERSION| Constructor and Description |
|---|
LanguageTranslator()
Deprecated.
Instantiates a new `LanguageTranslator`.
|
LanguageTranslator(IamOptions iamOptions)
Deprecated.
Instantiates a new `LanguageTranslator` with IAM.
|
LanguageTranslator(java.lang.String username,
java.lang.String password)
Deprecated.
Instantiates a new `LanguageTranslator` with username and password.
|
configureHttpClient, createServiceCall, getApiKey, getEndPoint, getName, getPassword, getToken, getUsername, isJsonMimeType, isJsonPatchMimeType, isTokenManagerSet, processServiceCall, setApiKey, setAuthentication, setDefaultHeaders, setDefaultHeaders, setEndPoint, setIamCredentials, setSkipAuthentication, setUsernameAndPassword, toStringpublic LanguageTranslator()
public LanguageTranslator(java.lang.String username,
java.lang.String password)
username - the usernamepassword - the passwordpublic LanguageTranslator(IamOptions iamOptions)
iamOptions - the options for authenticating through IAMpublic ServiceCall<TranslationResult> translate(TranslateOptions translateOptions)
translateOptions - the TranslateOptions containing the options for the callServiceCall with a response type of TranslationResultpublic ServiceCall<IdentifiedLanguages> identify(IdentifyOptions identifyOptions)
identifyOptions - the IdentifyOptions containing the options for the callServiceCall with a response type of IdentifiedLanguagespublic ServiceCall<IdentifiableLanguages> listIdentifiableLanguages(ListIdentifiableLanguagesOptions listIdentifiableLanguagesOptions)
listIdentifiableLanguagesOptions - the ListIdentifiableLanguagesOptions containing the options for the
callServiceCall with a response type of IdentifiableLanguagespublic ServiceCall<IdentifiableLanguages> listIdentifiableLanguages()
ServiceCall with a response type of IdentifiableLanguagespublic ServiceCall<TranslationModel> createModel(CreateModelOptions createModelOptions)
createModelOptions - the CreateModelOptions containing the options for the callServiceCall with a response type of TranslationModelpublic ServiceCall<java.lang.Void> deleteModel(DeleteModelOptions deleteModelOptions)
deleteModelOptions - the DeleteModelOptions containing the options for the callServiceCall with a response type of Voidpublic ServiceCall<TranslationModel> getModel(GetModelOptions getModelOptions)
getModelOptions - the GetModelOptions containing the options for the callServiceCall with a response type of TranslationModelpublic ServiceCall<TranslationModels> listModels(ListModelsOptions listModelsOptions)
listModelsOptions - the ListModelsOptions containing the options for the callServiceCall with a response type of TranslationModelspublic ServiceCall<TranslationModels> listModels()
ServiceCall with a response type of TranslationModels