You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: language-translator/v2-generated.ts
+20-20Lines changed: 20 additions & 20 deletions
Original file line number
Diff line number
Diff line change
@@ -61,14 +61,14 @@ class LanguageTranslatorV2 extends BaseService {
61
61
* @param {string} [params.source] - Used in combination with target as an alternative way to select the model for translation. When target and source are set, and model_id is not set, the system chooses a default model with the right language pair to translate (usually the model based on the news domain).
62
62
* @param {string} [params.target] - Used in combination with source as an alternative way to select the model for translation. When target and source are set, and model_id is not set, the system chooses a default model with the right language pair to translate (usually the model based on the news domain).
63
63
* @param {Function} [callback] - The callback that handles the response.
64
-
* @returns {ReadableStream|void}
64
+
* @returns {NodeJS.ReadableStream|void}
65
65
*/
66
66
translate(
67
67
params: LanguageTranslatorV2.TranslateParams,
68
68
callback?: LanguageTranslatorV2.Callback<
69
69
LanguageTranslatorV2.TranslationResult
70
70
>
71
-
): ReadableStream|void{
71
+
): NodeJS.ReadableStream|void{
72
72
const_params=extend({},params);
73
73
const_callback=callback ? callback : ()=>{};
74
74
constrequiredParams=['text'];
@@ -109,14 +109,14 @@ class LanguageTranslatorV2 extends BaseService {
109
109
* @param {Object} params - The parameters to send to the service.
110
110
* @param {string} params.text - Input text in UTF-8 format.
111
111
* @param {Function} [callback] - The callback that handles the response.
112
-
* @returns {ReadableStream|void}
112
+
* @returns {NodeJS.ReadableStream|void}
113
113
*/
114
114
identify(
115
115
params: LanguageTranslatorV2.IdentifyParams,
116
116
callback?: LanguageTranslatorV2.Callback<
117
117
LanguageTranslatorV2.IdentifiedLanguages
118
118
>
119
-
): ReadableStream|void{
119
+
): NodeJS.ReadableStream|void{
120
120
const_params=extend({},params);
121
121
const_callback=callback ? callback : ()=>{};
122
122
constrequiredParams=['text'];
@@ -149,14 +149,14 @@ class LanguageTranslatorV2 extends BaseService {
149
149
*
150
150
* @param {Object} [params] - The parameters to send to the service.
151
151
* @param {Function} [callback] - The callback that handles the response.
@@ -187,18 +187,18 @@ class LanguageTranslatorV2 extends BaseService {
187
187
* @param {Object} params - The parameters to send to the service.
188
188
* @param {string} params.base_model_id - Specifies the domain model that is used as the base for the training. To see current supported domain models, use the GET /v2/models parameter.
189
189
* @param {string} [params.name] - The model name. Valid characters are letters, numbers, -, and _. No spaces.
190
-
* @param {ReadableStream|FileObject|Buffer} [params.forced_glossary] - A TMX file with your customizations. The customizations in the file completely overwrite the domain data translation, including high frequency or high confidence phrase translations. You can upload only one glossary with a file size less than 10 MB per call.
191
-
* @param {ReadableStream|FileObject|Buffer} [params.parallel_corpus] - A TMX file that contains entries that are treated as a parallel corpus instead of a glossary.
192
-
* @param {ReadableStream|FileObject|Buffer} [params.monolingual_corpus] - A UTF-8 encoded plain text file that is used to customize the target language model.
190
+
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.forced_glossary] - A TMX file with your customizations. The customizations in the file completely overwrite the domain data translation, including high frequency or high confidence phrase translations. You can upload only one glossary with a file size less than 10 MB per call.
191
+
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.parallel_corpus] - A TMX file that contains entries that are treated as a parallel corpus instead of a glossary.
192
+
* @param {NodeJS.ReadableStream|FileObject|Buffer} [params.monolingual_corpus] - A UTF-8 encoded plain text file that is used to customize the target language model.
193
193
* @param {Function} [callback] - The callback that handles the response.
194
-
* @returns {ReadableStream|void}
194
+
* @returns {NodeJS.ReadableStream|void}
195
195
*/
196
196
createModel(
197
197
params: LanguageTranslatorV2.CreateModelParams,
198
198
callback?: LanguageTranslatorV2.Callback<
199
199
LanguageTranslatorV2.TranslationModel
200
200
>
201
-
): ReadableStream|void{
201
+
): NodeJS.ReadableStream|void{
202
202
const_params=extend({},params);
203
203
const_callback=callback ? callback : ()=>{};
204
204
constrequiredParams=['base_model_id'];
@@ -247,14 +247,14 @@ class LanguageTranslatorV2 extends BaseService {
247
247
* @param {Object} params - The parameters to send to the service.
248
248
* @param {string} params.model_id - The model identifier.
249
249
* @param {Function} [callback] - The callback that handles the response.
250
-
* @returns {ReadableStream|void}
250
+
* @returns {NodeJS.ReadableStream|void}
251
251
*/
252
252
deleteModel(
253
253
params: LanguageTranslatorV2.DeleteModelParams,
254
254
callback?: LanguageTranslatorV2.Callback<
255
255
LanguageTranslatorV2.DeleteModelResult
256
256
>
257
-
): ReadableStream|void{
257
+
): NodeJS.ReadableStream|void{
258
258
const_params=extend({},params);
259
259
const_callback=callback ? callback : ()=>{};
260
260
constrequiredParams=['model_id'];
@@ -286,14 +286,14 @@ class LanguageTranslatorV2 extends BaseService {
286
286
* @param {Object} params - The parameters to send to the service.
287
287
* @param {string} params.model_id - Model ID to use.
288
288
* @param {Function} [callback] - The callback that handles the response.
289
-
* @returns {ReadableStream|void}
289
+
* @returns {NodeJS.ReadableStream|void}
290
290
*/
291
291
getModel(
292
292
params: LanguageTranslatorV2.GetModelParams,
293
293
callback?: LanguageTranslatorV2.Callback<
294
294
LanguageTranslatorV2.TranslationModel
295
295
>
296
-
): ReadableStream|void{
296
+
): NodeJS.ReadableStream|void{
297
297
const_params=extend({},params);
298
298
const_callback=callback ? callback : ()=>{};
299
299
constrequiredParams=['model_id'];
@@ -327,14 +327,14 @@ class LanguageTranslatorV2 extends BaseService {
327
327
* @param {string} [params.target] - Filter models by target language.
328
328
* @param {boolean} [params.default_models] - Valid values are leaving it unset, `true`, and `false`. When `true`, it filters models to return the default_models model or models. When `false`, it returns the non-default_models model or models. If not set, it returns all models, default_models and non-default_models.
329
329
* @param {Function} [callback] - The callback that handles the response.
/** The model name. Valid characters are letters, numbers, -, and _. No spaces. **/
423
423
name?: string;
424
424
/** A TMX file with your customizations. The customizations in the file completely overwrite the domain data translation, including high frequency or high confidence phrase translations. You can upload only one glossary with a file size less than 10 MB per call. **/
0 commit comments