Skip to content

Commit 545250e

Browse files
committed
Add newest generated Language Translator code
1 parent 202ef1f commit 545250e

19 files changed

Lines changed: 33 additions & 32 deletions

‎language-translator/src/main/java/com/ibm/watson/developer_cloud/language_translator/v2/LanguageTranslator.java‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 IBM Corp. All Rights Reserved.
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -12,9 +12,6 @@
1212
*/
1313
package com.ibm.watson.developer_cloud.language_translator.v2;
1414

15-
import okhttp3.MultipartBody;
16-
import okhttp3.RequestBody;
17-
import com.ibm.watson.developer_cloud.util.RequestUtils;
1815
import com.google.gson.JsonObject;
1916
import com.ibm.watson.developer_cloud.http.RequestBuilder;
2017
import com.ibm.watson.developer_cloud.http.ServiceCall;
@@ -32,8 +29,11 @@
3229
import com.ibm.watson.developer_cloud.language_translator.v2.model.TranslationResult;
3330
import com.ibm.watson.developer_cloud.service.WatsonService;
3431
import com.ibm.watson.developer_cloud.util.GsonSingleton;
32+
import com.ibm.watson.developer_cloud.util.RequestUtils;
3533
import com.ibm.watson.developer_cloud.util.ResponseConverterUtils;
3634
import com.ibm.watson.developer_cloud.util.Validator;
35+
import okhttp3.MultipartBody;
36+
import okhttp3.RequestBody;
3737

3838
/**
3939
* Language Translator translates text from one language to another. The service offers multiple domain-specific models
@@ -140,6 +140,10 @@ public ServiceCall<IdentifiableLanguages> listIdentifiableLanguages() {
140140
/**
141141
* Uploads a TMX glossary file on top of a domain to customize a translation model.
142142
*
143+
* Depending on the size of the file, training can range from minutes for a glossary to several hours for a large
144+
* parallel corpus. Glossary files must be less than 10 MB. The cumulative file size of all uploaded glossary and
145+
* corpus files is limited to 250 MB.
146+
*
143147
* @param createModelOptions the {@link CreateModelOptions} containing the options for the call
144148
* @return a {@link ServiceCall} with a response type of {@link TranslationModel}
145149
*/

‎language-translator/src/main/java/com/ibm/watson/developer_cloud/language_translator/v2/model/CreateModelOptions.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 IBM Corp. All Rights Reserved.
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

‎language-translator/src/main/java/com/ibm/watson/developer_cloud/language_translator/v2/model/DeleteModelOptions.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 IBM Corp. All Rights Reserved.
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

‎language-translator/src/main/java/com/ibm/watson/developer_cloud/language_translator/v2/model/GetModelOptions.java‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 IBM Corp. All Rights Reserved.
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at
@@ -85,7 +85,7 @@ public Builder newBuilder() {
8585
/**
8686
* Gets the modelId.
8787
*
88-
* Model ID to use
88+
* Model ID to use.
8989
*
9090
* @return the modelId
9191
*/

‎language-translator/src/main/java/com/ibm/watson/developer_cloud/language_translator/v2/model/IdentifiableLanguage.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 IBM Corp. All Rights Reserved.
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

‎language-translator/src/main/java/com/ibm/watson/developer_cloud/language_translator/v2/model/IdentifiableLanguages.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 IBM Corp. All Rights Reserved.
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

‎language-translator/src/main/java/com/ibm/watson/developer_cloud/language_translator/v2/model/IdentifiedLanguage.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 IBM Corp. All Rights Reserved.
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

‎language-translator/src/main/java/com/ibm/watson/developer_cloud/language_translator/v2/model/IdentifiedLanguages.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 IBM Corp. All Rights Reserved.
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

‎language-translator/src/main/java/com/ibm/watson/developer_cloud/language_translator/v2/model/IdentifyOptions.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 IBM Corp. All Rights Reserved.
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

‎language-translator/src/main/java/com/ibm/watson/developer_cloud/language_translator/v2/model/ListIdentifiableLanguagesOptions.java‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2017 IBM Corp. All Rights Reserved.
2+
* Copyright 2018 IBM Corp. All Rights Reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with
55
* the License. You may obtain a copy of the License at

0 commit comments

Comments
 (0)