public class TranslationModel
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Modifier and Type | Class and Description |
---|---|
static interface |
TranslationModel.Status
Availability of a model.
|
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
baseModelId |
protected java.lang.Boolean |
customizable |
protected java.lang.Boolean |
defaultModel |
protected java.lang.String |
domain |
protected java.lang.String |
modelId |
protected java.lang.String |
name |
protected java.lang.String |
owner |
protected java.lang.String |
source |
protected java.lang.String |
status |
protected java.lang.String |
target |
Constructor and Description |
---|
TranslationModel() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBaseModelId()
Gets the baseModelId.
|
java.lang.String |
getDomain()
Gets the domain.
|
java.lang.String |
getModelId()
Gets the modelId.
|
java.lang.String |
getName()
Gets the name.
|
java.lang.String |
getOwner()
Gets the owner.
|
java.lang.String |
getSource()
Gets the source.
|
java.lang.String |
getStatus()
Gets the status.
|
java.lang.String |
getTarget()
Gets the target.
|
java.lang.Boolean |
isCustomizable()
Gets the customizable.
|
java.lang.Boolean |
isDefaultModel()
Gets the defaultModel.
|
@SerializedName(value="model_id") protected java.lang.String modelId
protected java.lang.String name
protected java.lang.String source
protected java.lang.String target
@SerializedName(value="base_model_id") protected java.lang.String baseModelId
protected java.lang.String domain
protected java.lang.Boolean customizable
@SerializedName(value="default_model") protected java.lang.Boolean defaultModel
protected java.lang.String owner
protected java.lang.String status
public java.lang.String getModelId()
A globally unique string that identifies the underlying model that is used for translation.
public java.lang.String getName()
Optional name that can be specified when the model is created.
public java.lang.String getSource()
Translation source language code.
public java.lang.String getTarget()
Translation target language code.
public java.lang.String getBaseModelId()
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.
public java.lang.String getDomain()
The domain of the translation model.
public java.lang.Boolean isCustomizable()
Whether this model can be used as a base for customization. Customized models are not further customizable, and some base models are not customizable.
public java.lang.Boolean isDefaultModel()
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.
public java.lang.String getOwner()
Either an empty string, indicating the model is not a custom model, or the ID of the service instance that created the model.
public java.lang.String getStatus()
Availability of a model.