public class LanguageTranslator
extends com.ibm.cloud.sdk.core.service.BaseService
Constructor and Description |
---|
LanguageTranslator(java.lang.String versionDate)
Constructs a new `LanguageTranslator` client using the DEFAULT_SERVICE_NAME.
|
LanguageTranslator(java.lang.String versionDate,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs a new `LanguageTranslator` client with the DEFAULT_SERVICE_NAME
and the specified Authenticator.
|
LanguageTranslator(java.lang.String versionDate,
java.lang.String serviceName)
Constructs a new `LanguageTranslator` client with the specified serviceName.
|
LanguageTranslator(java.lang.String versionDate,
java.lang.String serviceName,
com.ibm.cloud.sdk.core.security.Authenticator authenticator)
Constructs a new `LanguageTranslator` client with the specified Authenticator
and serviceName.
|
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, configureService, createServiceCall, getAuthenticator, getClient, getEndPoint, getName, getServiceUrl, isJsonMimeType, isJsonPatchMimeType, processServiceCall, setAuthentication, setClient, setDefaultHeaders, setDefaultHeaders, setEndPoint, setServiceUrl, toString
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.public LanguageTranslator(java.lang.String versionDate, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
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.authenticator
- the Authenticator instance to be configured for this servicepublic LanguageTranslator(java.lang.String versionDate, java.lang.String serviceName)
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.serviceName
- The name of the service to configure.public LanguageTranslator(java.lang.String versionDate, java.lang.String serviceName, com.ibm.cloud.sdk.core.security.Authenticator authenticator)
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.serviceName
- The name of the service to configure.authenticator
- the Authenticator instance to be configured 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 TranslationResult
public 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 IdentifiableLanguages
public com.ibm.cloud.sdk.core.http.ServiceCall<IdentifiableLanguages> listIdentifiableLanguages()
ServiceCall
with a response type of IdentifiableLanguages
public 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 IdentifiedLanguages
public 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 TranslationModels
public com.ibm.cloud.sdk.core.http.ServiceCall<TranslationModels> listModels()
ServiceCall
with a response type of TranslationModels
public 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 TranslationModel
public 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 DeleteModelResult
public 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 TranslationModel
public 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 DocumentList
public com.ibm.cloud.sdk.core.http.ServiceCall<DocumentList> listDocuments()
ServiceCall
with a response type of DocumentList
public 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 DocumentStatus
public 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 DocumentStatus
public 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