|
2 | 2 |
|
3 | 3 | import com.google.gson.GsonBuilder; |
4 | 4 | import com.google.gson.annotations.SerializedName; |
5 | | -import com.ibm.watson.developer_cloud.language_translation.v2.LanguageTranslation; |
6 | 5 |
|
7 | 6 | /** |
8 | | - * Language Model used by the {@link LanguageTranslation}. |
| 7 | + * Language Model used by the {@link TranslationModel}. |
9 | 8 | * |
10 | 9 | * @author German Attanasio Ruiz germanatt@us.ibm.com |
11 | 10 | */ |
12 | | -public class LanguageModel { |
| 11 | +public class TranslationModel { |
13 | 12 |
|
14 | 13 | /** The model id. */ |
15 | 14 | @SerializedName("model_id") |
@@ -70,7 +69,7 @@ public void setModelId(final String modelId) { |
70 | 69 | * the model id |
71 | 70 | * @return the language model set |
72 | 71 | */ |
73 | | - public LanguageModel withModelId(final String modelId) { |
| 72 | + public TranslationModel withModelId(final String modelId) { |
74 | 73 | this.modelId = modelId; |
75 | 74 | return this; |
76 | 75 | } |
@@ -101,7 +100,7 @@ public void setSource(final String source) { |
101 | 100 | * the source |
102 | 101 | * @return the language model set |
103 | 102 | */ |
104 | | - public LanguageModel withSource(final String source) { |
| 103 | + public TranslationModel withSource(final String source) { |
105 | 104 | this.source = source; |
106 | 105 | return this; |
107 | 106 | } |
@@ -132,7 +131,7 @@ public void setTarget(final String target) { |
132 | 131 | * the target |
133 | 132 | * @return the language model set |
134 | 133 | */ |
135 | | - public LanguageModel withTarget(final String target) { |
| 134 | + public TranslationModel withTarget(final String target) { |
136 | 135 | this.target = target; |
137 | 136 | return this; |
138 | 137 | } |
@@ -163,7 +162,7 @@ public void setBaseModelId(final String baseModelId) { |
163 | 162 | * the base model id |
164 | 163 | * @return the language model set |
165 | 164 | */ |
166 | | - public LanguageModel withBaseModelId(final String baseModelId) { |
| 165 | + public TranslationModel withBaseModelId(final String baseModelId) { |
167 | 166 | this.baseModelId = baseModelId; |
168 | 167 | return this; |
169 | 168 | } |
@@ -194,7 +193,7 @@ public void setDomain(final String domain) { |
194 | 193 | * the domain |
195 | 194 | * @return the language model set |
196 | 195 | */ |
197 | | - public LanguageModel withDomain(final String domain) { |
| 196 | + public TranslationModel withDomain(final String domain) { |
198 | 197 | this.domain = domain; |
199 | 198 | return this; |
200 | 199 | } |
@@ -225,7 +224,7 @@ public void setCustomizable(final boolean customizable) { |
225 | 224 | * the customizable |
226 | 225 | * @return the language model set |
227 | 226 | */ |
228 | | - public LanguageModel withCustomizable(final boolean customizable) { |
| 227 | + public TranslationModel withCustomizable(final boolean customizable) { |
229 | 228 | this.customizable = customizable; |
230 | 229 | return this; |
231 | 230 | } |
@@ -256,7 +255,7 @@ public void setDefaultModel(final boolean defaultModel) { |
256 | 255 | * the default model |
257 | 256 | * @return the language model set |
258 | 257 | */ |
259 | | - public LanguageModel withDefaultModel(final boolean defaultModel) { |
| 258 | + public TranslationModel withDefaultModel(final boolean defaultModel) { |
260 | 259 | this.defaultModel = defaultModel; |
261 | 260 | return this; |
262 | 261 | } |
@@ -287,7 +286,7 @@ public void setOwner(final String owner) { |
287 | 286 | * the owner |
288 | 287 | * @return the language model set |
289 | 288 | */ |
290 | | - public LanguageModel withOwner(final String owner) { |
| 289 | + public TranslationModel withOwner(final String owner) { |
291 | 290 | this.owner = owner; |
292 | 291 | return this; |
293 | 292 | } |
@@ -318,7 +317,7 @@ public void setStatus(final String status) { |
318 | 317 | * the status |
319 | 318 | * @return the language model set |
320 | 319 | */ |
321 | | - public LanguageModel withStatus(final String status) { |
| 320 | + public TranslationModel withStatus(final String status) { |
322 | 321 | this.status = status; |
323 | 322 | return this; |
324 | 323 | } |
@@ -349,7 +348,7 @@ public void setName(final String name) { |
349 | 348 | * the name |
350 | 349 | * @return the language model set |
351 | 350 | */ |
352 | | - public LanguageModel withName(final String name) { |
| 351 | + public TranslationModel withName(final String name) { |
353 | 352 | this.name = name; |
354 | 353 | return this; |
355 | 354 | } |
|
0 commit comments