Class TranslationModel

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.language_translator.v3.model.TranslationModel
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class TranslationModel
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Response payload for models.
  • Constructor Details

    • TranslationModel

      public TranslationModel()
  • Method Details

    • getModelId

      public String getModelId()
      Gets the modelId.

      A globally unique string that identifies the underlying model that is used for translation.

      Returns:
      the modelId
    • getName

      public String getName()
      Gets the name.

      Optional name that can be specified when the model is created.

      Returns:
      the name
    • getSource

      public String getSource()
      Gets the source.

      Translation source language code.

      Returns:
      the source
    • getTarget

      public String getTarget()
      Gets the target.

      Translation target language code.

      Returns:
      the target
    • getBaseModelId

      public String getBaseModelId()
      Gets the baseModelId.

      Model ID of the base model that was used to customize the model. If the model is not a custom model, this will be an empty string.

      Returns:
      the baseModelId
    • getDomain

      public String getDomain()
      Gets the domain.

      The domain of the translation model.

      Returns:
      the domain
    • isCustomizable

      public Boolean isCustomizable()
      Gets the customizable.

      Whether this model can be used as a base for customization. Customized models are not further customizable, and some base models are not customizable.

      Returns:
      the customizable
    • isDefaultModel

      public Boolean isDefaultModel()
      Gets the defaultModel.

      Whether or not the model is a default model. A default model is the model for a given language pair that will be used when that language pair is specified in the source and target parameters.

      Returns:
      the defaultModel
    • getOwner

      public String getOwner()
      Gets the owner.

      Either an empty string, indicating the model is not a custom model, or the ID of the service instance that created the model.

      Returns:
      the owner
    • getStatus

      public String getStatus()
      Gets the status.

      Availability of a model.

      Returns:
      the status