public class LanguageTranslator
extends com.ibm.cloud.sdk.core.service.BaseService
| Constructor and Description |
|---|
LanguageTranslator(java.lang.String versionDate)
Deprecated.
Use LanguageTranslator(String versionDate, AuthenticatorConfig authenticatorConfig) instead
|
LanguageTranslator(java.lang.String versionDate,
com.ibm.cloud.sdk.core.security.AuthenticatorConfig authenticatorConfig)
Instantiates a new `LanguageTranslator` with the specified authentication configuration.
|
LanguageTranslator(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
Deprecated.
Use LanguageTranslator(String versionDate, AuthenticatorConfig authenticatorConfig) instead
|
| Modifier and Type | Method and Description |
|---|---|
com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModel> |
createModel(CreateModelOptions createModelOptions)
Create model.
|
com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> |
deleteDocument(DeleteDocumentOptions deleteDocumentOptions)
Delete document.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DeleteModelResult> |
deleteModel(DeleteModelOptions deleteModelOptions)
Delete model.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DocumentStatus> |
getDocumentStatus(GetDocumentStatusOptions getDocumentStatusOptions)
Get document status.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModel> |
getModel(GetModelOptions getModelOptions)
Get model details.
|
com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> |
getTranslatedDocument(GetTranslatedDocumentOptions getTranslatedDocumentOptions)
Get translated document.
|
com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiedLanguages> |
identify(IdentifyOptions identifyOptions)
Identify language.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DocumentList> |
listDocuments()
List documents.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DocumentList> |
listDocuments(ListDocumentsOptions listDocumentsOptions)
List documents.
|
com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiableLanguages> |
listIdentifiableLanguages()
List identifiable languages.
|
com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiableLanguages> |
listIdentifiableLanguages(ListIdentifiableLanguagesOptions listIdentifiableLanguagesOptions)
List identifiable languages.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModels> |
listModels()
List models.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModels> |
listModels(ListModelsOptions listModelsOptions)
List models.
|
com.ibm.cloud.sdk.core.http.ServiceCall<TranslationResult> |
translate(TranslateOptions translateOptions)
Translate.
|
com.ibm.cloud.sdk.core.http.ServiceCall<DocumentStatus> |
translateDocument(TranslateDocumentOptions translateDocumentOptions)
Translate document.
|
configureClient, configureHttpClient, createServiceCall, getApiKey, getAuthenticator, getClient, getEndPoint, getName, getPassword, getUsername, isJsonMimeType, isJsonPatchMimeType, isSkipAuthentication, isTokenManagerSet, processServiceCall, setApiKey, setAuthentication, setAuthenticator, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setIamCredentials, setSkipAuthentication, setUsernameAndPassword, toString@Deprecated public LanguageTranslator(java.lang.String versionDate)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.@Deprecated
public LanguageTranslator(java.lang.String versionDate,
java.lang.String username,
java.lang.String password)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.username - the usernamepassword - the passwordpublic LanguageTranslator(java.lang.String versionDate,
com.ibm.cloud.sdk.core.security.AuthenticatorConfig authenticatorConfig)
versionDate - The version date (yyyy-MM-dd) of the REST API to use. Specifying this value will keep your API
calls from failing when the service introduces breaking changes.authenticatorConfig - the authentication configuration for this servicepublic com.ibm.cloud.sdk.core.http.ServiceCall<TranslationResult> translate(TranslateOptions translateOptions)
translateOptions - the TranslateOptions containing the options for the callServiceCall with a response type of TranslationResultpublic com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiableLanguages> listIdentifiableLanguages(ListIdentifiableLanguagesOptions listIdentifiableLanguagesOptions)
listIdentifiableLanguagesOptions - the ListIdentifiableLanguagesOptions containing the options for the
callServiceCall with a response type of IdentifiableLanguagespublic com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiableLanguages> listIdentifiableLanguages()
ServiceCall with a response type of IdentifiableLanguagespublic com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiedLanguages> identify(IdentifyOptions identifyOptions)
identifyOptions - the IdentifyOptions containing the options for the callServiceCall with a response type of IdentifiedLanguagespublic com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModels> listModels(ListModelsOptions listModelsOptions)
listModelsOptions - the ListModelsOptions containing the options for the callServiceCall with a response type of TranslationModelspublic com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModels> listModels()
ServiceCall with a response type of TranslationModelspublic com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModel> createModel(CreateModelOptions createModelOptions)
createModelOptions - the CreateModelOptions containing the options for the callServiceCall with a response type of TranslationModelpublic com.ibm.cloud.sdk.core.http.ServiceCall<DeleteModelResult> deleteModel(DeleteModelOptions deleteModelOptions)
deleteModelOptions - the DeleteModelOptions containing the options for the callServiceCall with a response type of DeleteModelResultpublic com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModel> getModel(GetModelOptions getModelOptions)
getModelOptions - the GetModelOptions containing the options for the callServiceCall with a response type of TranslationModelpublic com.ibm.cloud.sdk.core.http.ServiceCall<DocumentList> listDocuments(ListDocumentsOptions listDocumentsOptions)
listDocumentsOptions - the ListDocumentsOptions containing the options for the callServiceCall with a response type of DocumentListpublic com.ibm.cloud.sdk.core.http.ServiceCall<DocumentList> listDocuments()
ServiceCall with a response type of DocumentListpublic com.ibm.cloud.sdk.core.http.ServiceCall<DocumentStatus> translateDocument(TranslateDocumentOptions translateDocumentOptions)
translateDocumentOptions - the TranslateDocumentOptions containing the options for the callServiceCall with a response type of DocumentStatuspublic com.ibm.cloud.sdk.core.http.ServiceCall<DocumentStatus> getDocumentStatus(GetDocumentStatusOptions getDocumentStatusOptions)
getDocumentStatusOptions - the GetDocumentStatusOptions containing the options for the callServiceCall with a response type of DocumentStatuspublic com.ibm.cloud.sdk.core.http.ServiceCall<java.lang.Void> deleteDocument(DeleteDocumentOptions deleteDocumentOptions)
deleteDocumentOptions - the DeleteDocumentOptions containing the options for the callServiceCall with a response type of Voidpublic com.ibm.cloud.sdk.core.http.ServiceCall<java.io.InputStream> getTranslatedDocument(GetTranslatedDocumentOptions getTranslatedDocumentOptions)
getTranslatedDocumentOptions - the GetTranslatedDocumentOptions containing the options for the callServiceCall with a response type of InputStream