@maxim_mazurok/gapi.client.translate-v3 0.0.20230414 → 0.0.20230511

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/index.d.ts +1703 -852
  2. package/package.json +1 -1
  3. package/tests.ts +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://translation.googleapis.com/$discovery/rest?version=v3
12
- // Revision: 20230414
12
+ // Revision: 20230511
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -30,7 +30,8 @@ declare namespace gapi.client {
30
30
  * application/vnd.openxmlformats-officedocument.spreadsheetml.sheet The max file size to support for `.docx`, `.pptx` and `.xlsx` is 100MB. The max file size to support for `.pdf` is
31
31
  * 1GB and the max page limit is 1000 pages. The max file size to support for all input documents is 1GB.
32
32
  */
33
- gcsSource?: GcsSource;
33
+ gcsSource?:
34
+ GcsSource;
34
35
  }
35
36
  interface BatchDocumentOutputConfig {
36
37
  /**
@@ -49,144 +50,183 @@ declare namespace gapi.client {
49
50
  * gs://translation_test/a_b_c_[trg]_errors.txt `glossary_error_output`: gs://translation_test/a_b_c_[trg]_glossary_translation.txt The error output is a txt file containing error
50
51
  * details.
51
52
  */
52
- gcsDestination?: GcsDestination;
53
+ gcsDestination?:
54
+ GcsDestination;
53
55
  }
54
56
  interface BatchTranslateDocumentRequest {
55
57
  /**
56
58
  * Optional. This flag is to support user customized attribution. If not provided, the default is `Machine Translated by Google`. Customized attribution should follow rules in
57
59
  * https://cloud.google.com/translate/attribution#attribution_and_logos
58
60
  */
59
- customizedAttribution?: string;
61
+ customizedAttribution?:
62
+ string;
60
63
  /**
61
64
  * Optional. If true, use the text removal server to remove the shadow text on background image for native pdf translation. Shadow removal feature can only be enabled when
62
65
  * is_translate_native_pdf_only: false && pdf_native_only: false
63
66
  */
64
- enableShadowRemovalNativePdf?: boolean;
67
+ enableShadowRemovalNativePdf?:
68
+ boolean;
65
69
  /** Optional. */
66
- formatConversions?: { [P in string]: string };
70
+ formatConversions?:
71
+ { [P in string]: string };
67
72
  /** Optional. Glossaries to be applied. It's keyed by target language code. */
68
- glossaries?: { [P in string]: TranslateTextGlossaryConfig };
73
+ glossaries?:
74
+ { [P in string]: TranslateTextGlossaryConfig };
69
75
  /**
70
76
  * Required. Input configurations. The total number of files matched should be <= 100. The total content size to translate should be <= 100M Unicode codepoints. The files must use
71
77
  * UTF-8 encoding.
72
78
  */
73
- inputConfigs?: BatchDocumentInputConfig[];
79
+ inputConfigs?:
80
+ BatchDocumentInputConfig[];
74
81
  /**
75
82
  * Optional. The models to use for translation. Map's key is target language code. Map's value is the model name. Value can be a built-in general model, or an AutoML Translation model.
76
83
  * The value format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models:
77
84
  * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If the map is empty or a specific model is not requested for a language pair, then default google model
78
85
  * (nmt) is used.
79
86
  */
80
- models?: { [P in string]: string };
87
+ models?:
88
+ { [P in string]: string };
81
89
  /** Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs. */
82
- outputConfig?: BatchDocumentOutputConfig;
90
+ outputConfig?:
91
+ BatchDocumentOutputConfig;
83
92
  /**
84
93
  * Required. The ISO-639 language code of the input document if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in [Language
85
94
  * Support](https://cloud.google.com/translate/docs/languages).
86
95
  */
87
- sourceLanguageCode?: string;
96
+ sourceLanguageCode?:
97
+ string;
88
98
  /** Required. The ISO-639 language code to use for translation of the input document. Specify up to 10 language codes here. */
89
- targetLanguageCodes?: string[];
99
+ targetLanguageCodes?:
100
+ string[];
90
101
  }
91
102
  interface BatchTranslateTextRequest {
92
103
  /** Optional. Glossaries to be applied for translation. It's keyed by target language code. */
93
- glossaries?: { [P in string]: TranslateTextGlossaryConfig };
104
+ glossaries?:
105
+ { [P in string]: TranslateTextGlossaryConfig };
94
106
  /** Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding. */
95
- inputConfigs?: InputConfig[];
107
+ inputConfigs?:
108
+ InputConfig[];
96
109
  /**
97
110
  * Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters,
98
111
  * numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See
99
112
  * https://cloud.google.com/translate/docs/advanced/labels for more information.
100
113
  */
101
- labels?: { [P in string]: string };
114
+ labels?:
115
+ { [P in string]: string };
102
116
  /**
103
117
  * Optional. The models to use for translation. Map's key is target language code. Map's value is model name. Value can be a built-in general model, or an AutoML Translation model. The
104
118
  * value format depends on model type: - AutoML Translation models: `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models:
105
119
  * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If the map is empty or a specific model is not requested for a language pair, then default google model
106
120
  * (nmt) is used.
107
121
  */
108
- models?: { [P in string]: string };
122
+ models?:
123
+ { [P in string]: string };
109
124
  /** Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don't generate output for duplicate inputs. */
110
- outputConfig?: OutputConfig;
125
+ outputConfig?:
126
+ OutputConfig;
111
127
  /** Required. Source language code. */
112
- sourceLanguageCode?: string;
128
+ sourceLanguageCode?:
129
+ string;
113
130
  /** Required. Specify up to 10 language codes here. */
114
- targetLanguageCodes?: string[];
131
+ targetLanguageCodes?:
132
+ string[];
115
133
  }
116
134
  // tslint:disable-next-line:no-empty-interface
117
135
  interface CancelOperationRequest {
118
136
  }
119
137
  interface Dataset {
120
138
  /** Output only. Timestamp when this dataset was created. */
121
- createTime?: string;
139
+ createTime?:
140
+ string;
122
141
  /**
123
142
  * The name of the dataset to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits
124
143
  * 0-9.
125
144
  */
126
- displayName?: string;
145
+ displayName?:
146
+ string;
127
147
  /** Output only. The number of examples in the dataset. */
128
- exampleCount?: number;
148
+ exampleCount?:
149
+ number;
129
150
  /** The resource name of the dataset, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}` */
130
- name?: string;
151
+ name?:
152
+ string;
131
153
  /** The BCP-47 language code of the source language. */
132
- sourceLanguageCode?: string;
154
+ sourceLanguageCode?:
155
+ string;
133
156
  /** The BCP-47 language code of the target language. */
134
- targetLanguageCode?: string;
157
+ targetLanguageCode?:
158
+ string;
135
159
  /** Output only. Number of test examples (sentence pairs). */
136
- testExampleCount?: number;
160
+ testExampleCount?:
161
+ number;
137
162
  /** Output only. Number of training examples (sentence pairs). */
138
- trainExampleCount?: number;
163
+ trainExampleCount?:
164
+ number;
139
165
  /** Output only. Timestamp when this dataset was last updated. */
140
- updateTime?: string;
166
+ updateTime?:
167
+ string;
141
168
  /** Output only. Number of validation examples (sentence pairs). */
142
- validateExampleCount?: number;
169
+ validateExampleCount?:
170
+ number;
143
171
  }
144
172
  interface DatasetInputConfig {
145
173
  /** Files containing the sentence pairs to be imported to the dataset. */
146
- inputFiles?: InputFile[];
174
+ inputFiles?:
175
+ InputFile[];
147
176
  }
148
177
  interface DatasetOutputConfig {
149
178
  /** Google Cloud Storage destination to write the output. */
150
- gcsDestination?: GcsOutputDestination;
179
+ gcsDestination?:
180
+ GcsOutputDestination;
151
181
  }
152
182
  interface DetectedLanguage {
153
183
  /** The confidence of the detection result for this language. */
154
- confidence?: number;
184
+ confidence?:
185
+ number;
155
186
  /** The ISO-639 language code of the source content in the request, detected automatically. */
156
- languageCode?: string;
187
+ languageCode?:
188
+ string;
157
189
  }
158
190
  interface DetectLanguageRequest {
159
191
  /** The content of the input stored as a string. */
160
- content?: string;
192
+ content?:
193
+ string;
161
194
  /**
162
195
  * Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters,
163
196
  * numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See
164
197
  * https://cloud.google.com/translate/docs/advanced/labels for more information.
165
198
  */
166
- labels?: { [P in string]: string };
199
+ labels?:
200
+ { [P in string]: string };
167
201
  /** Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html". */
168
- mimeType?: string;
202
+ mimeType?:
203
+ string;
169
204
  /**
170
205
  * Optional. The language detection model to be used. Format: `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/{model-id}` Only one language detection
171
206
  * model is currently supported: `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. If not specified, the default model is used.
172
207
  */
173
- model?: string;
208
+ model?:
209
+ string;
174
210
  }
175
211
  interface DetectLanguageResponse {
176
212
  /** The most probable language detected by the Translation API. For each request, the Translation API will always return only one result. */
177
- languages?: DetectedLanguage[];
213
+ languages?:
214
+ DetectedLanguage[];
178
215
  }
179
216
  interface DocumentInputConfig {
180
217
  /** Document's content represented as a stream of bytes. */
181
- content?: string;
218
+ content?:
219
+ string;
182
220
  /** Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf */
183
- gcsSource?: GcsSource;
221
+ gcsSource?:
222
+ GcsSource;
184
223
  /**
185
224
  * Specifies the input document's mime_type. If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content
186
225
  * the mime_type must be provided. Currently supported mime types are: - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document -
187
226
  * application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
188
227
  */
189
- mimeType?: string;
228
+ mimeType?:
229
+ string;
190
230
  }
191
231
  interface DocumentOutputConfig {
192
232
  /**
@@ -202,91 +242,117 @@ declare namespace gapi.client {
202
242
  * "gs://my_bucket/a_b_c_[trg]_glossary_translations.[ext]". Thus the max number of output files will be 2 (Translated document, Glossary translated document). Callers should expect no
203
243
  * partial outputs. If there is any error during document translation, no output will be stored in the Cloud Storage bucket.
204
244
  */
205
- gcsDestination?: GcsDestination;
245
+ gcsDestination?:
246
+ GcsDestination;
206
247
  /**
207
248
  * Optional. Specifies the translated document's mime_type. If not specified, the translated file's mime type will be the same as the input file's mime type. Currently only support the
208
249
  * output mime type to be the same as input mime type. - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document -
209
250
  * application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
210
251
  */
211
- mimeType?: string;
252
+ mimeType?:
253
+ string;
212
254
  }
213
255
  interface DocumentTranslation {
214
256
  /** The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats. */
215
- byteStreamOutputs?: string[];
257
+ byteStreamOutputs?:
258
+ string[];
216
259
  /**
217
260
  * The detected language for the input document. If the user did not provide the source language for the input document, this field will have the language code automatically detected.
218
261
  * If the source language was passed, auto-detection of the language does not occur and this field is empty.
219
262
  */
220
- detectedLanguageCode?: string;
263
+ detectedLanguageCode?:
264
+ string;
221
265
  /** The translated document's mime type. */
222
- mimeType?: string;
266
+ mimeType?:
267
+ string;
223
268
  }
224
269
  // tslint:disable-next-line:no-empty-interface
225
270
  interface Empty {
226
271
  }
227
272
  interface Example {
228
273
  /** Output only. The resource name of the example, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}/examples/{example_id}' */
229
- name?: string;
274
+ name?:
275
+ string;
230
276
  /** Sentence in source language. */
231
- sourceText?: string;
277
+ sourceText?:
278
+ string;
232
279
  /** Sentence in target language. */
233
- targetText?: string;
280
+ targetText?:
281
+ string;
234
282
  /** Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST. */
235
- usage?: string;
283
+ usage?:
284
+ string;
236
285
  }
237
286
  interface ExportDataRequest {
238
287
  /** Required. The config for the output content. */
239
- outputConfig?: DatasetOutputConfig;
288
+ outputConfig?:
289
+ DatasetOutputConfig;
240
290
  }
241
291
  interface GcsDestination {
242
292
  /**
243
293
  * Required. The bucket used in 'output_uri_prefix' must exist and there must be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with "/" and start with "gs://". One
244
294
  * 'output_uri_prefix' can only be used by one batch translation job at a time. Otherwise an INVALID_ARGUMENT (400) error is returned.
245
295
  */
246
- outputUriPrefix?: string;
296
+ outputUriPrefix?:
297
+ string;
247
298
  }
248
299
  interface GcsInputSource {
249
300
  /** Required. Source data URI. For example, `gs://my_bucket/my_object`. */
250
- inputUri?: string;
301
+ inputUri?:
302
+ string;
251
303
  }
252
304
  interface GcsOutputDestination {
253
305
  /**
254
306
  * Required. Google Cloud Storage URI to output directory. For example, `gs://bucket/directory`. The requesting user must have write permission to the bucket. The directory will be
255
307
  * created if it doesn't exist.
256
308
  */
257
- outputUriPrefix?: string;
309
+ outputUriPrefix?:
310
+ string;
258
311
  }
259
312
  interface GcsSource {
260
313
  /** Required. Source data URI. For example, `gs://my_bucket/my_object`. */
261
- inputUri?: string;
314
+ inputUri?:
315
+ string;
262
316
  }
263
317
  interface Glossary {
264
318
  /** Optional. The display name of the glossary. */
265
- displayName?: string;
319
+ displayName?:
320
+ string;
266
321
  /** Output only. When the glossary creation was finished. */
267
- endTime?: string;
322
+ endTime?:
323
+ string;
268
324
  /** Output only. The number of entries defined in the glossary. */
269
- entryCount?: number;
325
+ entryCount?:
326
+ number;
270
327
  /** Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints. */
271
- inputConfig?: GlossaryInputConfig;
328
+ inputConfig?:
329
+ GlossaryInputConfig;
272
330
  /** Used with equivalent term set glossaries. */
273
- languageCodesSet?: LanguageCodesSet;
331
+ languageCodesSet?:
332
+ LanguageCodesSet;
274
333
  /** Used with unidirectional glossaries. */
275
- languagePair?: LanguageCodePair;
334
+ languagePair?:
335
+ LanguageCodePair;
276
336
  /** Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`. */
277
- name?: string;
337
+ name?:
338
+ string;
278
339
  /** Output only. When CreateGlossary was called. */
279
- submitTime?: string;
340
+ submitTime?:
341
+ string;
280
342
  }
281
343
  interface GlossaryEntry {
282
344
  /** Describes the glossary entry. */
283
- description?: string;
345
+ description?:
346
+ string;
284
347
  /** Required. The resource name of the entry. Format: "projects/*‍/locations/*‍/glossaries/*‍/glossaryEntries/*" */
285
- name?: string;
348
+ name?:
349
+ string;
286
350
  /** Used for an unidirectional glossary. */
287
- termsPair?: GlossaryTermsPair;
351
+ termsPair?:
352
+ GlossaryTermsPair;
288
353
  /** Used for an equivalent term sets glossary. */
289
- termsSet?: GlossaryTermsSet;
354
+ termsSet?:
355
+ GlossaryTermsSet;
290
356
  }
291
357
  interface GlossaryInputConfig {
292
358
  /**
@@ -296,27 +362,34 @@ declare namespace gapi.client {
296
362
  * (`.tmx`): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (`.csv`): Multi-column CSV file defining equivalent glossary
297
363
  * terms in multiple languages. See documentation for more information - [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
298
364
  */
299
- gcsSource?: GcsSource;
365
+ gcsSource?:
366
+ GcsSource;
300
367
  }
301
368
  interface GlossaryTerm {
302
369
  /** The language for this glossary term. */
303
- languageCode?: string;
370
+ languageCode?:
371
+ string;
304
372
  /** The text for the glossary term. */
305
- text?: string;
373
+ text?:
374
+ string;
306
375
  }
307
376
  interface GlossaryTermsPair {
308
377
  /** The source term is the term that will get match in the text, */
309
- sourceTerm?: GlossaryTerm;
378
+ sourceTerm?:
379
+ GlossaryTerm;
310
380
  /** The term that will replace the match source term. */
311
- targetTerm?: GlossaryTerm;
381
+ targetTerm?:
382
+ GlossaryTerm;
312
383
  }
313
384
  interface GlossaryTermsSet {
314
385
  /** Each term in the set represents a term that can be replaced by the other terms. */
315
- terms?: GlossaryTerm[];
386
+ terms?:
387
+ GlossaryTerm[];
316
388
  }
317
389
  interface ImportDataRequest {
318
390
  /** Required. The config for the input content. */
319
- inputConfig?: DatasetInputConfig;
391
+ inputConfig?:
392
+ DatasetInputConfig;
320
393
  }
321
394
  interface InputConfig {
322
395
  /**
@@ -327,135 +400,176 @@ declare namespace gapi.client {
327
400
  * formatting errors in your tsv file. csvlint --delimiter='\t' your_input_file.tsv The other supported file extensions are `.txt` or `.html`, which is treated as a single large chunk
328
401
  * of text.
329
402
  */
330
- gcsSource?: GcsSource;
403
+ gcsSource?:
404
+ GcsSource;
331
405
  /**
332
406
  * Optional. Can be "text/plain" or "text/html". For `.tsv`, "text/html" is used if mime_type is missing. For `.html`, this field must be "text/html" or empty. For `.txt`, this field
333
407
  * must be "text/plain" or empty.
334
408
  */
335
- mimeType?: string;
409
+ mimeType?:
410
+ string;
336
411
  }
337
412
  interface InputFile {
338
413
  /** Google Cloud Storage file source. */
339
- gcsSource?: GcsInputSource;
414
+ gcsSource?:
415
+ GcsInputSource;
340
416
  /** Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST, or UNASSIGNED (by default) for auto split. */
341
- usage?: string;
417
+ usage?:
418
+ string;
342
419
  }
343
420
  interface LanguageCodePair {
344
421
  /** Required. The ISO-639 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code. */
345
- sourceLanguageCode?: string;
422
+ sourceLanguageCode?:
423
+ string;
346
424
  /** Required. The ISO-639 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. */
347
- targetLanguageCode?: string;
425
+ targetLanguageCode?:
426
+ string;
348
427
  }
349
428
  interface LanguageCodesSet {
350
429
  /**
351
430
  * The ISO-639 language code(s) for terms defined in the glossary. All entries are unique. The list contains at least two entries. Expected to be an exact match for
352
431
  * GlossaryTerm.language_code.
353
432
  */
354
- languageCodes?: string[];
433
+ languageCodes?:
434
+ string[];
355
435
  }
356
436
  interface ListDatasetsResponse {
357
437
  /** The datasets read. */
358
- datasets?: Dataset[];
438
+ datasets?:
439
+ Dataset[];
359
440
  /** A token to retrieve next page of results. Pass this token to the page_token field in the ListDatasetsRequest to obtain the corresponding page. */
360
- nextPageToken?: string;
441
+ nextPageToken?:
442
+ string;
361
443
  }
362
444
  interface ListExamplesResponse {
363
445
  /** The sentence pairs. */
364
- examples?: Example[];
446
+ examples?:
447
+ Example[];
365
448
  /** A token to retrieve next page of results. Pass this token to the page_token field in the ListExamplesRequest to obtain the corresponding page. */
366
- nextPageToken?: string;
449
+ nextPageToken?:
450
+ string;
367
451
  }
368
452
  interface ListGlossariesResponse {
369
453
  /** The list of glossaries for a project. */
370
- glossaries?: Glossary[];
454
+ glossaries?:
455
+ Glossary[];
371
456
  /**
372
457
  * A token to retrieve a page of results. Pass this value in the [ListGlossariesRequest.page_token] field in the subsequent call to `ListGlossaries` method to retrieve the next page of
373
458
  * results.
374
459
  */
375
- nextPageToken?: string;
460
+ nextPageToken?:
461
+ string;
376
462
  }
377
463
  interface ListGlossaryEntriesResponse {
378
464
  /** Optional. The Glossary Entries */
379
- glossaryEntries?: GlossaryEntry[];
465
+ glossaryEntries?:
466
+ GlossaryEntry[];
380
467
  /** Optional. A token to retrieve a page of results. Pass this value in the [ListGLossaryEntriesRequest.page_token] field in the subsequent calls. */
381
- nextPageToken?: string;
468
+ nextPageToken?:
469
+ string;
382
470
  }
383
471
  interface ListLocationsResponse {
384
472
  /** A list of locations that matches the specified filter in the request. */
385
- locations?: Location[];
473
+ locations?:
474
+ Location[];
386
475
  /** The standard List next-page token. */
387
- nextPageToken?: string;
476
+ nextPageToken?:
477
+ string;
388
478
  }
389
479
  interface ListModelsResponse {
390
480
  /** The models read. */
391
- models?: Model[];
481
+ models?:
482
+ Model[];
392
483
  /** A token to retrieve next page of results. Pass this token to the page_token field in the ListModelsRequest to obtain the corresponding page. */
393
- nextPageToken?: string;
484
+ nextPageToken?:
485
+ string;
394
486
  }
395
487
  interface ListOperationsResponse {
396
488
  /** The standard List next-page token. */
397
- nextPageToken?: string;
489
+ nextPageToken?:
490
+ string;
398
491
  /** A list of operations that matches the specified filter in the request. */
399
- operations?: Operation[];
492
+ operations?:
493
+ Operation[];
400
494
  }
401
495
  interface Location {
402
496
  /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
403
- displayName?: string;
497
+ displayName?:
498
+ string;
404
499
  /** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
405
- labels?: { [P in string]: string };
500
+ labels?:
501
+ { [P in string]: string };
406
502
  /** The canonical id for this location. For example: `"us-east1"`. */
407
- locationId?: string;
503
+ locationId?:
504
+ string;
408
505
  /** Service-specific metadata. For example the available capacity at the given location. */
409
- metadata?: { [P in string]: any };
506
+ metadata?:
507
+ { [P in string]: any };
410
508
  /** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
411
- name?: string;
509
+ name?:
510
+ string;
412
511
  }
413
512
  interface Model {
414
513
  /** Output only. Timestamp when the model resource was created, which is also when the training started. */
415
- createTime?: string;
514
+ createTime?:
515
+ string;
416
516
  /** The dataset from which the model is trained, in form of `projects/{project-number-or-id}/locations/{location_id}/datasets/{dataset_id}` */
417
- dataset?: string;
517
+ dataset?:
518
+ string;
418
519
  /**
419
520
  * The name of the model to show in the interface. The name can be up to 32 characters long and can consist only of ASCII Latin letters A-Z and a-z, underscores (_), and ASCII digits
420
521
  * 0-9.
421
522
  */
422
- displayName?: string;
523
+ displayName?:
524
+ string;
423
525
  /** The resource name of the model, in form of `projects/{project-number-or-id}/locations/{location_id}/models/{model_id}` */
424
- name?: string;
526
+ name?:
527
+ string;
425
528
  /** Output only. The BCP-47 language code of the source language. */
426
- sourceLanguageCode?: string;
529
+ sourceLanguageCode?:
530
+ string;
427
531
  /** Output only. The BCP-47 language code of the target language. */
428
- targetLanguageCode?: string;
532
+ targetLanguageCode?:
533
+ string;
429
534
  /** Output only. Number of examples (sentence pairs) used to test the model. */
430
- testExampleCount?: number;
535
+ testExampleCount?:
536
+ number;
431
537
  /** Output only. Number of examples (sentence pairs) used to train the model. */
432
- trainExampleCount?: number;
538
+ trainExampleCount?:
539
+ number;
433
540
  /** Output only. Timestamp when this model was last updated. */
434
- updateTime?: string;
541
+ updateTime?:
542
+ string;
435
543
  /** Output only. Number of examples (sentence pairs) used to validate the model. */
436
- validateExampleCount?: number;
544
+ validateExampleCount?:
545
+ number;
437
546
  }
438
547
  interface Operation {
439
548
  /** If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available. */
440
- done?: boolean;
549
+ done?:
550
+ boolean;
441
551
  /** The error result of the operation in case of failure or cancellation. */
442
- error?: Status;
552
+ error?:
553
+ Status;
443
554
  /**
444
555
  * Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such
445
556
  * metadata. Any method that returns a long-running operation should document the metadata type, if any.
446
557
  */
447
- metadata?: { [P in string]: any };
558
+ metadata?:
559
+ { [P in string]: any };
448
560
  /**
449
561
  * The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending
450
562
  * with `operations/{unique_id}`.
451
563
  */
452
- name?: string;
564
+ name?:
565
+ string;
453
566
  /**
454
567
  * The normal response of the operation in case of success. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the
455
568
  * original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the
456
569
  * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
457
570
  */
458
- response?: { [P in string]: any };
571
+ response?:
572
+ { [P in string]: any };
459
573
  }
460
574
  interface OutputConfig {
461
575
  /**
@@ -479,653 +593,910 @@ declare namespace gapi.client {
479
593
  * Could be empty. Column 4 (only present if a glossary is provided in the request): Error when applying the glossary. If the input file extension is txt or html, glossary_error_file
480
594
  * will be generated that contains error details. glossary_error_file has format of gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
481
595
  */
482
- gcsDestination?: GcsDestination;
596
+ gcsDestination?:
597
+ GcsDestination;
483
598
  }
484
599
  interface Status {
485
600
  /** The status code, which should be an enum value of google.rpc.Code. */
486
- code?: number;
601
+ code?:
602
+ number;
487
603
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
488
- details?: Array<{ [P in string]: any }>;
604
+ details?:
605
+ Array<{ [P in string]: any }>;
489
606
  /**
490
607
  * A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the
491
608
  * client.
492
609
  */
493
- message?: string;
610
+ message?:
611
+ string;
494
612
  }
495
613
  interface SupportedLanguage {
496
614
  /** Human-readable name of the language localized in the display language specified in the request. */
497
- displayName?: string;
615
+ displayName?:
616
+ string;
498
617
  /**
499
618
  * Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, ISO-639 codes including language and region identifiers are
500
619
  * returned (for example, 'zh-TW' and 'zh-CN').
501
620
  */
502
- languageCode?: string;
621
+ languageCode?:
622
+ string;
503
623
  /** Can be used as a source language. */
504
- supportSource?: boolean;
624
+ supportSource?:
625
+ boolean;
505
626
  /** Can be used as a target language. */
506
- supportTarget?: boolean;
627
+ supportTarget?:
628
+ boolean;
507
629
  }
508
630
  interface SupportedLanguages {
509
631
  /** A list of supported language responses. This list contains an entry for each language the Translation API supports. */
510
- languages?: SupportedLanguage[];
632
+ languages?:
633
+ SupportedLanguage[];
511
634
  }
512
635
  interface TranslateDocumentRequest {
513
636
  /**
514
637
  * Optional. This flag is to support user customized attribution. If not provided, the default is `Machine Translated by Google`. Customized attribution should follow rules in
515
638
  * https://cloud.google.com/translate/attribution#attribution_and_logos
516
639
  */
517
- customizedAttribution?: string;
640
+ customizedAttribution?:
641
+ string;
518
642
  /** Required. Input configurations. */
519
- documentInputConfig?: DocumentInputConfig;
643
+ documentInputConfig?:
644
+ DocumentInputConfig;
520
645
  /**
521
646
  * Optional. Output configurations. Defines if the output file should be stored within Cloud Storage as well as the desired output format. If not provided the translated file will only
522
647
  * be returned through a byte-stream and its output mime type will be the same as the input file's mime type.
523
648
  */
524
- documentOutputConfig?: DocumentOutputConfig;
649
+ documentOutputConfig?:
650
+ DocumentOutputConfig;
525
651
  /** Optional. If true, enable auto rotation correction in DVS. */
526
- enableRotationCorrection?: boolean;
652
+ enableRotationCorrection?:
653
+ boolean;
527
654
  /**
528
655
  * Optional. If true, use the text removal server to remove the shadow text on background image for native pdf translation. Shadow removal feature can only be enabled when
529
656
  * is_translate_native_pdf_only: false && pdf_native_only: false
530
657
  */
531
- enableShadowRemovalNativePdf?: boolean;
658
+ enableShadowRemovalNativePdf?:
659
+ boolean;
532
660
  /** Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned. */
533
- glossaryConfig?: TranslateTextGlossaryConfig;
661
+ glossaryConfig?:
662
+ TranslateTextGlossaryConfig;
534
663
  /** Optional. is_translate_native_pdf_only field for external customers. If true, the page limit of online native pdf translation is 300 and only native pdf pages will be translated. */
535
- isTranslateNativePdfOnly?: boolean;
664
+ isTranslateNativePdfOnly?:
665
+ boolean;
536
666
  /**
537
667
  * Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters,
538
668
  * numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See
539
669
  * https://cloud.google.com/translate/docs/advanced/labels for more information.
540
670
  */
541
- labels?: { [P in string]: string };
671
+ labels?:
672
+ { [P in string]: string };
542
673
  /**
543
674
  * Optional. The `model` type requested for this translation. The format depends on model type: - AutoML Translation models:
544
675
  * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models:
545
676
  * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If not provided, the default Google model (NMT) will be used for translation.
546
677
  */
547
- model?: string;
678
+ model?:
679
+ string;
548
680
  /**
549
681
  * Optional. The ISO-639 language code of the input document if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If the source
550
682
  * language isn't specified, the API attempts to identify the source language automatically and returns the source language within the response. Source language must be specified if
551
683
  * the request contains a glossary or a custom model.
552
684
  */
553
- sourceLanguageCode?: string;
685
+ sourceLanguageCode?:
686
+ string;
554
687
  /** Required. The ISO-639 language code to use for translation of the input document, set to one of the language codes listed in Language Support. */
555
- targetLanguageCode?: string;
688
+ targetLanguageCode?:
689
+ string;
556
690
  }
557
691
  interface TranslateDocumentResponse {
558
692
  /** Translated document. */
559
- documentTranslation?: DocumentTranslation;
693
+ documentTranslation?:
694
+ DocumentTranslation;
560
695
  /** The `glossary_config` used for this translation. */
561
- glossaryConfig?: TranslateTextGlossaryConfig;
696
+ glossaryConfig?:
697
+ TranslateTextGlossaryConfig;
562
698
  /** The document's translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply. */
563
- glossaryDocumentTranslation?: DocumentTranslation;
699
+ glossaryDocumentTranslation?:
700
+ DocumentTranslation;
564
701
  /**
565
702
  * Only present when 'model' is present in the request. 'model' is normalized to have a project number. For example: If the 'model' field in TranslateDocumentRequest is:
566
703
  * `projects/{project-id}/locations/{location-id}/models/general/nmt` then `model` here would be normalized to `projects/{project-number}/locations/{location-id}/models/general/nmt`.
567
704
  */
568
- model?: string;
705
+ model?:
706
+ string;
569
707
  }
570
708
  interface TranslateTextGlossaryConfig {
571
709
  /**
572
710
  * Required. The `glossary` to be applied for this translation. The format depends on the glossary: - User-provided custom glossary:
573
711
  * `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`
574
712
  */
575
- glossary?: string;
713
+ glossary?:
714
+ string;
576
715
  /** Optional. Indicates match is case insensitive. The default value is `false` if missing. */
577
- ignoreCase?: boolean;
716
+ ignoreCase?:
717
+ boolean;
578
718
  }
579
719
  interface TranslateTextRequest {
580
720
  /**
581
721
  * Required. The content of the input in string format. We recommend the total content be less than 30,000 codepoints. The max length of this field is 1024. Use BatchTranslateText for
582
722
  * larger text.
583
723
  */
584
- contents?: string[];
724
+ contents?:
725
+ string[];
585
726
  /** Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned. */
586
- glossaryConfig?: TranslateTextGlossaryConfig;
727
+ glossaryConfig?:
728
+ TranslateTextGlossaryConfig;
587
729
  /**
588
730
  * Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters,
589
731
  * numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See
590
732
  * https://cloud.google.com/translate/docs/advanced/labels for more information.
591
733
  */
592
- labels?: { [P in string]: string };
734
+ labels?:
735
+ { [P in string]: string };
593
736
  /** Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html". */
594
- mimeType?: string;
737
+ mimeType?:
738
+ string;
595
739
  /**
596
740
  * Optional. The `model` type requested for this translation. The format depends on model type: - AutoML Translation models:
597
741
  * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models:
598
742
  * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, For global (non-regionalized) requests, use `location-id` `global`. For example,
599
743
  * `projects/{project-number-or-id}/locations/global/models/general/nmt`. If not provided, the default Google model (NMT) will be used
600
744
  */
601
- model?: string;
745
+ model?:
746
+ string;
602
747
  /**
603
748
  * Optional. The ISO-639 language code of the input text if known, for example, "en-US" or "sr-Latn". Supported language codes are listed in Language Support. If the source language
604
749
  * isn't specified, the API attempts to identify the source language automatically and returns the source language within the response.
605
750
  */
606
- sourceLanguageCode?: string;
751
+ sourceLanguageCode?:
752
+ string;
607
753
  /** Required. The ISO-639 language code to use for translation of the input text, set to one of the language codes listed in Language Support. */
608
- targetLanguageCode?: string;
754
+ targetLanguageCode?:
755
+ string;
609
756
  }
610
757
  interface TranslateTextResponse {
611
758
  /** Text translation responses if a glossary is provided in the request. This can be the same as `translations` if no terms apply. This field has the same length as `contents`. */
612
- glossaryTranslations?: Translation[];
759
+ glossaryTranslations?:
760
+ Translation[];
613
761
  /** Text translation responses with no glossary applied. This field has the same length as `contents`. */
614
- translations?: Translation[];
762
+ translations?:
763
+ Translation[];
615
764
  }
616
765
  interface Translation {
617
766
  /**
618
767
  * The ISO-639 language code of source text in the initial request, detected automatically, if no source language was passed within the initial request. If the source language was
619
768
  * passed, auto-detection of the language does not occur and this field is empty.
620
769
  */
621
- detectedLanguageCode?: string;
770
+ detectedLanguageCode?:
771
+ string;
622
772
  /** The `glossary_config` used for this translation. */
623
- glossaryConfig?: TranslateTextGlossaryConfig;
773
+ glossaryConfig?:
774
+ TranslateTextGlossaryConfig;
624
775
  /**
625
776
  * Only present when `model` is present in the request. `model` here is normalized to have project number. For example: If the `model` requested in TranslationTextRequest is
626
777
  * `projects/{project-id}/locations/{location-id}/models/general/nmt` then `model` here would be normalized to `projects/{project-number}/locations/{location-id}/models/general/nmt`.
627
778
  */
628
- model?: string;
779
+ model?:
780
+ string;
629
781
  /** Text translated into the target language. If an error occurs during translation, this field might be excluded from the response. */
630
- translatedText?: string;
782
+ translatedText?:
783
+ string;
631
784
  }
632
785
  interface WaitOperationRequest {
633
786
  /**
634
787
  * The maximum duration to wait before timing out. If left blank, the wait will be at most the time permitted by the underlying HTTP/RPC protocol. If RPC context deadline is also
635
788
  * specified, the shorter one will be used.
636
789
  */
637
- timeout?: string;
790
+ timeout?:
791
+ string;
638
792
  }
639
793
  interface ExamplesResource {
640
794
  /** Lists sentence pairs in the dataset. */
641
795
  list(request?: {
642
796
  /** V1 error format. */
643
- "$.xgafv"?: string;
797
+ "$.xgafv"?:
798
+ string;
644
799
  /** OAuth access token. */
645
- access_token?: string;
800
+ access_token?:
801
+ string;
646
802
  /** Data format for response. */
647
- alt?: string;
803
+ alt?:
804
+ string;
648
805
  /** JSONP */
649
- callback?: string;
806
+ callback?:
807
+ string;
650
808
  /** Selector specifying which fields to include in a partial response. */
651
- fields?: string;
809
+ fields?:
810
+ string;
652
811
  /** Optional. An expression for filtering the examples that will be returned. Example filter: * `usage=TRAIN` */
653
- filter?: string;
812
+ filter?:
813
+ string;
654
814
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
655
- key?: string;
815
+ key?:
816
+ string;
656
817
  /** OAuth 2.0 token for the current user. */
657
- oauth_token?: string;
818
+ oauth_token?:
819
+ string;
658
820
  /** Optional. Requested page size. The server can return fewer results than requested. */
659
- pageSize?: number;
821
+ pageSize?:
822
+ number;
660
823
  /** Optional. A token identifying a page of results for the server to return. Typically obtained from next_page_token field in the response of a ListExamples call. */
661
- pageToken?: string;
824
+ pageToken?:
825
+ string;
662
826
  /** Required. Name of the parent dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}` */
663
- parent: string;
827
+ parent:
828
+ string;
664
829
  /** Returns response with indentations and line breaks. */
665
- prettyPrint?: boolean;
830
+ prettyPrint?:
831
+ boolean;
666
832
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
667
- quotaUser?: string;
833
+ quotaUser?:
834
+ string;
668
835
  /** Upload protocol for media (e.g. "raw", "multipart"). */
669
- upload_protocol?: string;
836
+ upload_protocol?:
837
+ string;
670
838
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
671
- uploadType?: string;
839
+ uploadType?:
840
+ string;
672
841
  }): Request<ListExamplesResponse>;
673
842
  }
674
843
  interface DatasetsResource {
675
844
  /** Creates a Dataset. */
676
845
  create(request: {
677
846
  /** V1 error format. */
678
- "$.xgafv"?: string;
847
+ "$.xgafv"?:
848
+ string;
679
849
  /** OAuth access token. */
680
- access_token?: string;
850
+ access_token?:
851
+ string;
681
852
  /** Data format for response. */
682
- alt?: string;
853
+ alt?:
854
+ string;
683
855
  /** JSONP */
684
- callback?: string;
856
+ callback?:
857
+ string;
685
858
  /** Selector specifying which fields to include in a partial response. */
686
- fields?: string;
859
+ fields?:
860
+ string;
687
861
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
688
- key?: string;
862
+ key?:
863
+ string;
689
864
  /** OAuth 2.0 token for the current user. */
690
- oauth_token?: string;
865
+ oauth_token?:
866
+ string;
691
867
  /** Required. The project name. */
692
- parent: string;
868
+ parent:
869
+ string;
693
870
  /** Returns response with indentations and line breaks. */
694
- prettyPrint?: boolean;
871
+ prettyPrint?:
872
+ boolean;
695
873
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
696
- quotaUser?: string;
874
+ quotaUser?:
875
+ string;
697
876
  /** Upload protocol for media (e.g. "raw", "multipart"). */
698
- upload_protocol?: string;
877
+ upload_protocol?:
878
+ string;
699
879
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
700
- uploadType?: string;
880
+ uploadType?:
881
+ string;
701
882
  /** Request body */
702
- resource: Dataset;
883
+ resource:
884
+ Dataset;
703
885
  }): Request<Operation>;
704
886
  create(request: {
705
887
  /** V1 error format. */
706
- "$.xgafv"?: string;
888
+ "$.xgafv"?:
889
+ string;
707
890
  /** OAuth access token. */
708
- access_token?: string;
891
+ access_token?:
892
+ string;
709
893
  /** Data format for response. */
710
- alt?: string;
894
+ alt?:
895
+ string;
711
896
  /** JSONP */
712
- callback?: string;
897
+ callback?:
898
+ string;
713
899
  /** Selector specifying which fields to include in a partial response. */
714
- fields?: string;
900
+ fields?:
901
+ string;
715
902
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
716
- key?: string;
903
+ key?:
904
+ string;
717
905
  /** OAuth 2.0 token for the current user. */
718
- oauth_token?: string;
906
+ oauth_token?:
907
+ string;
719
908
  /** Required. The project name. */
720
- parent: string;
909
+ parent:
910
+ string;
721
911
  /** Returns response with indentations and line breaks. */
722
- prettyPrint?: boolean;
912
+ prettyPrint?:
913
+ boolean;
723
914
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
724
- quotaUser?: string;
915
+ quotaUser?:
916
+ string;
725
917
  /** Upload protocol for media (e.g. "raw", "multipart"). */
726
- upload_protocol?: string;
918
+ upload_protocol?:
919
+ string;
727
920
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
728
- uploadType?: string;
921
+ uploadType?:
922
+ string;
729
923
  },
730
924
  body: Dataset): Request<Operation>;
731
925
  /** Deletes a dataset and all of its contents. */
732
926
  delete(request?: {
733
927
  /** V1 error format. */
734
- "$.xgafv"?: string;
928
+ "$.xgafv"?:
929
+ string;
735
930
  /** OAuth access token. */
736
- access_token?: string;
931
+ access_token?:
932
+ string;
737
933
  /** Data format for response. */
738
- alt?: string;
934
+ alt?:
935
+ string;
739
936
  /** JSONP */
740
- callback?: string;
937
+ callback?:
938
+ string;
741
939
  /** Selector specifying which fields to include in a partial response. */
742
- fields?: string;
940
+ fields?:
941
+ string;
743
942
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
744
- key?: string;
943
+ key?:
944
+ string;
745
945
  /** Required. The name of the dataset to delete. */
746
- name: string;
946
+ name:
947
+ string;
747
948
  /** OAuth 2.0 token for the current user. */
748
- oauth_token?: string;
949
+ oauth_token?:
950
+ string;
749
951
  /** Returns response with indentations and line breaks. */
750
- prettyPrint?: boolean;
952
+ prettyPrint?:
953
+ boolean;
751
954
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
752
- quotaUser?: string;
955
+ quotaUser?:
956
+ string;
753
957
  /** Upload protocol for media (e.g. "raw", "multipart"). */
754
- upload_protocol?: string;
958
+ upload_protocol?:
959
+ string;
755
960
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
756
- uploadType?: string;
961
+ uploadType?:
962
+ string;
757
963
  }): Request<Operation>;
758
964
  /** Exports dataset's data to the provided output location. */
759
965
  exportData(request: {
760
966
  /** V1 error format. */
761
- "$.xgafv"?: string;
967
+ "$.xgafv"?:
968
+ string;
762
969
  /** OAuth access token. */
763
- access_token?: string;
970
+ access_token?:
971
+ string;
764
972
  /** Data format for response. */
765
- alt?: string;
973
+ alt?:
974
+ string;
766
975
  /** JSONP */
767
- callback?: string;
976
+ callback?:
977
+ string;
768
978
  /** Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}` */
769
- dataset: string;
979
+ dataset:
980
+ string;
770
981
  /** Selector specifying which fields to include in a partial response. */
771
- fields?: string;
982
+ fields?:
983
+ string;
772
984
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
773
- key?: string;
985
+ key?:
986
+ string;
774
987
  /** OAuth 2.0 token for the current user. */
775
- oauth_token?: string;
988
+ oauth_token?:
989
+ string;
776
990
  /** Returns response with indentations and line breaks. */
777
- prettyPrint?: boolean;
991
+ prettyPrint?:
992
+ boolean;
778
993
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
779
- quotaUser?: string;
994
+ quotaUser?:
995
+ string;
780
996
  /** Upload protocol for media (e.g. "raw", "multipart"). */
781
- upload_protocol?: string;
997
+ upload_protocol?:
998
+ string;
782
999
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
783
- uploadType?: string;
1000
+ uploadType?:
1001
+ string;
784
1002
  /** Request body */
785
- resource: ExportDataRequest;
1003
+ resource:
1004
+ ExportDataRequest;
786
1005
  }): Request<Operation>;
787
1006
  exportData(request: {
788
1007
  /** V1 error format. */
789
- "$.xgafv"?: string;
1008
+ "$.xgafv"?:
1009
+ string;
790
1010
  /** OAuth access token. */
791
- access_token?: string;
1011
+ access_token?:
1012
+ string;
792
1013
  /** Data format for response. */
793
- alt?: string;
1014
+ alt?:
1015
+ string;
794
1016
  /** JSONP */
795
- callback?: string;
1017
+ callback?:
1018
+ string;
796
1019
  /** Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}` */
797
- dataset: string;
1020
+ dataset:
1021
+ string;
798
1022
  /** Selector specifying which fields to include in a partial response. */
799
- fields?: string;
1023
+ fields?:
1024
+ string;
800
1025
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
801
- key?: string;
1026
+ key?:
1027
+ string;
802
1028
  /** OAuth 2.0 token for the current user. */
803
- oauth_token?: string;
1029
+ oauth_token?:
1030
+ string;
804
1031
  /** Returns response with indentations and line breaks. */
805
- prettyPrint?: boolean;
1032
+ prettyPrint?:
1033
+ boolean;
806
1034
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
807
- quotaUser?: string;
1035
+ quotaUser?:
1036
+ string;
808
1037
  /** Upload protocol for media (e.g. "raw", "multipart"). */
809
- upload_protocol?: string;
1038
+ upload_protocol?:
1039
+ string;
810
1040
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
811
- uploadType?: string;
1041
+ uploadType?:
1042
+ string;
812
1043
  },
813
1044
  body: ExportDataRequest): Request<Operation>;
814
1045
  /** Gets a Dataset. */
815
1046
  get(request?: {
816
1047
  /** V1 error format. */
817
- "$.xgafv"?: string;
1048
+ "$.xgafv"?:
1049
+ string;
818
1050
  /** OAuth access token. */
819
- access_token?: string;
1051
+ access_token?:
1052
+ string;
820
1053
  /** Data format for response. */
821
- alt?: string;
1054
+ alt?:
1055
+ string;
822
1056
  /** JSONP */
823
- callback?: string;
1057
+ callback?:
1058
+ string;
824
1059
  /** Selector specifying which fields to include in a partial response. */
825
- fields?: string;
1060
+ fields?:
1061
+ string;
826
1062
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
827
- key?: string;
1063
+ key?:
1064
+ string;
828
1065
  /** Required. The resource name of the dataset to retrieve. */
829
- name: string;
1066
+ name:
1067
+ string;
830
1068
  /** OAuth 2.0 token for the current user. */
831
- oauth_token?: string;
1069
+ oauth_token?:
1070
+ string;
832
1071
  /** Returns response with indentations and line breaks. */
833
- prettyPrint?: boolean;
1072
+ prettyPrint?:
1073
+ boolean;
834
1074
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
835
- quotaUser?: string;
1075
+ quotaUser?:
1076
+ string;
836
1077
  /** Upload protocol for media (e.g. "raw", "multipart"). */
837
- upload_protocol?: string;
1078
+ upload_protocol?:
1079
+ string;
838
1080
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
839
- uploadType?: string;
1081
+ uploadType?:
1082
+ string;
840
1083
  }): Request<Dataset>;
841
1084
  /** Import sentence pairs into translation Dataset. */
842
1085
  importData(request: {
843
1086
  /** V1 error format. */
844
- "$.xgafv"?: string;
1087
+ "$.xgafv"?:
1088
+ string;
845
1089
  /** OAuth access token. */
846
- access_token?: string;
1090
+ access_token?:
1091
+ string;
847
1092
  /** Data format for response. */
848
- alt?: string;
1093
+ alt?:
1094
+ string;
849
1095
  /** JSONP */
850
- callback?: string;
1096
+ callback?:
1097
+ string;
851
1098
  /** Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}` */
852
- dataset: string;
1099
+ dataset:
1100
+ string;
853
1101
  /** Selector specifying which fields to include in a partial response. */
854
- fields?: string;
1102
+ fields?:
1103
+ string;
855
1104
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
856
- key?: string;
1105
+ key?:
1106
+ string;
857
1107
  /** OAuth 2.0 token for the current user. */
858
- oauth_token?: string;
1108
+ oauth_token?:
1109
+ string;
859
1110
  /** Returns response with indentations and line breaks. */
860
- prettyPrint?: boolean;
1111
+ prettyPrint?:
1112
+ boolean;
861
1113
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
862
- quotaUser?: string;
1114
+ quotaUser?:
1115
+ string;
863
1116
  /** Upload protocol for media (e.g. "raw", "multipart"). */
864
- upload_protocol?: string;
1117
+ upload_protocol?:
1118
+ string;
865
1119
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
866
- uploadType?: string;
1120
+ uploadType?:
1121
+ string;
867
1122
  /** Request body */
868
- resource: ImportDataRequest;
1123
+ resource:
1124
+ ImportDataRequest;
869
1125
  }): Request<Operation>;
870
1126
  importData(request: {
871
1127
  /** V1 error format. */
872
- "$.xgafv"?: string;
1128
+ "$.xgafv"?:
1129
+ string;
873
1130
  /** OAuth access token. */
874
- access_token?: string;
1131
+ access_token?:
1132
+ string;
875
1133
  /** Data format for response. */
876
- alt?: string;
1134
+ alt?:
1135
+ string;
877
1136
  /** JSONP */
878
- callback?: string;
1137
+ callback?:
1138
+ string;
879
1139
  /** Required. Name of the dataset. In form of `projects/{project-number-or-id}/locations/{location-id}/datasets/{dataset-id}` */
880
- dataset: string;
1140
+ dataset:
1141
+ string;
881
1142
  /** Selector specifying which fields to include in a partial response. */
882
- fields?: string;
1143
+ fields?:
1144
+ string;
883
1145
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
884
- key?: string;
1146
+ key?:
1147
+ string;
885
1148
  /** OAuth 2.0 token for the current user. */
886
- oauth_token?: string;
1149
+ oauth_token?:
1150
+ string;
887
1151
  /** Returns response with indentations and line breaks. */
888
- prettyPrint?: boolean;
1152
+ prettyPrint?:
1153
+ boolean;
889
1154
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
890
- quotaUser?: string;
1155
+ quotaUser?:
1156
+ string;
891
1157
  /** Upload protocol for media (e.g. "raw", "multipart"). */
892
- upload_protocol?: string;
1158
+ upload_protocol?:
1159
+ string;
893
1160
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
894
- uploadType?: string;
1161
+ uploadType?:
1162
+ string;
895
1163
  },
896
1164
  body: ImportDataRequest): Request<Operation>;
897
1165
  /** Lists datasets. */
898
1166
  list(request?: {
899
1167
  /** V1 error format. */
900
- "$.xgafv"?: string;
1168
+ "$.xgafv"?:
1169
+ string;
901
1170
  /** OAuth access token. */
902
- access_token?: string;
1171
+ access_token?:
1172
+ string;
903
1173
  /** Data format for response. */
904
- alt?: string;
1174
+ alt?:
1175
+ string;
905
1176
  /** JSONP */
906
- callback?: string;
1177
+ callback?:
1178
+ string;
907
1179
  /** Selector specifying which fields to include in a partial response. */
908
- fields?: string;
1180
+ fields?:
1181
+ string;
909
1182
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
910
- key?: string;
1183
+ key?:
1184
+ string;
911
1185
  /** OAuth 2.0 token for the current user. */
912
- oauth_token?: string;
1186
+ oauth_token?:
1187
+ string;
913
1188
  /** Optional. Requested page size. The server can return fewer results than requested. */
914
- pageSize?: number;
1189
+ pageSize?:
1190
+ number;
915
1191
  /** Optional. A token identifying a page of results for the server to return. Typically obtained from next_page_token field in the response of a ListDatasets call. */
916
- pageToken?: string;
1192
+ pageToken?:
1193
+ string;
917
1194
  /** Required. Name of the parent project. In form of `projects/{project-number-or-id}/locations/{location-id}` */
918
- parent: string;
1195
+ parent:
1196
+ string;
919
1197
  /** Returns response with indentations and line breaks. */
920
- prettyPrint?: boolean;
1198
+ prettyPrint?:
1199
+ boolean;
921
1200
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
922
- quotaUser?: string;
1201
+ quotaUser?:
1202
+ string;
923
1203
  /** Upload protocol for media (e.g. "raw", "multipart"). */
924
- upload_protocol?: string;
1204
+ upload_protocol?:
1205
+ string;
925
1206
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
926
- uploadType?: string;
1207
+ uploadType?:
1208
+ string;
927
1209
  }): Request<ListDatasetsResponse>;
928
- examples: ExamplesResource;
1210
+ examples:
1211
+ ExamplesResource;
929
1212
  }
930
1213
  interface GlossaryEntriesResource {
931
1214
  /** Creates a glossary entry. */
932
1215
  create(request: {
933
1216
  /** V1 error format. */
934
- "$.xgafv"?: string;
1217
+ "$.xgafv"?:
1218
+ string;
935
1219
  /** OAuth access token. */
936
- access_token?: string;
1220
+ access_token?:
1221
+ string;
937
1222
  /** Data format for response. */
938
- alt?: string;
1223
+ alt?:
1224
+ string;
939
1225
  /** JSONP */
940
- callback?: string;
1226
+ callback?:
1227
+ string;
941
1228
  /** Selector specifying which fields to include in a partial response. */
942
- fields?: string;
1229
+ fields?:
1230
+ string;
943
1231
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
944
- key?: string;
1232
+ key?:
1233
+ string;
945
1234
  /** OAuth 2.0 token for the current user. */
946
- oauth_token?: string;
1235
+ oauth_token?:
1236
+ string;
947
1237
  /** Required. The resource name of the glossary to create the entry under. */
948
- parent: string;
1238
+ parent:
1239
+ string;
949
1240
  /** Returns response with indentations and line breaks. */
950
- prettyPrint?: boolean;
1241
+ prettyPrint?:
1242
+ boolean;
951
1243
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
952
- quotaUser?: string;
1244
+ quotaUser?:
1245
+ string;
953
1246
  /** Upload protocol for media (e.g. "raw", "multipart"). */
954
- upload_protocol?: string;
1247
+ upload_protocol?:
1248
+ string;
955
1249
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
956
- uploadType?: string;
1250
+ uploadType?:
1251
+ string;
957
1252
  /** Request body */
958
- resource: GlossaryEntry;
1253
+ resource:
1254
+ GlossaryEntry;
959
1255
  }): Request<GlossaryEntry>;
960
1256
  create(request: {
961
1257
  /** V1 error format. */
962
- "$.xgafv"?: string;
1258
+ "$.xgafv"?:
1259
+ string;
963
1260
  /** OAuth access token. */
964
- access_token?: string;
1261
+ access_token?:
1262
+ string;
965
1263
  /** Data format for response. */
966
- alt?: string;
1264
+ alt?:
1265
+ string;
967
1266
  /** JSONP */
968
- callback?: string;
1267
+ callback?:
1268
+ string;
969
1269
  /** Selector specifying which fields to include in a partial response. */
970
- fields?: string;
1270
+ fields?:
1271
+ string;
971
1272
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
972
- key?: string;
1273
+ key?:
1274
+ string;
973
1275
  /** OAuth 2.0 token for the current user. */
974
- oauth_token?: string;
1276
+ oauth_token?:
1277
+ string;
975
1278
  /** Required. The resource name of the glossary to create the entry under. */
976
- parent: string;
1279
+ parent:
1280
+ string;
977
1281
  /** Returns response with indentations and line breaks. */
978
- prettyPrint?: boolean;
1282
+ prettyPrint?:
1283
+ boolean;
979
1284
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
980
- quotaUser?: string;
1285
+ quotaUser?:
1286
+ string;
981
1287
  /** Upload protocol for media (e.g. "raw", "multipart"). */
982
- upload_protocol?: string;
1288
+ upload_protocol?:
1289
+ string;
983
1290
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
984
- uploadType?: string;
1291
+ uploadType?:
1292
+ string;
985
1293
  },
986
1294
  body: GlossaryEntry): Request<GlossaryEntry>;
987
1295
  /** Deletes a single entry from the glossary */
988
1296
  delete(request?: {
989
1297
  /** V1 error format. */
990
- "$.xgafv"?: string;
1298
+ "$.xgafv"?:
1299
+ string;
991
1300
  /** OAuth access token. */
992
- access_token?: string;
1301
+ access_token?:
1302
+ string;
993
1303
  /** Data format for response. */
994
- alt?: string;
1304
+ alt?:
1305
+ string;
995
1306
  /** JSONP */
996
- callback?: string;
1307
+ callback?:
1308
+ string;
997
1309
  /** Selector specifying which fields to include in a partial response. */
998
- fields?: string;
1310
+ fields?:
1311
+ string;
999
1312
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1000
- key?: string;
1313
+ key?:
1314
+ string;
1001
1315
  /** Required. The resource name of the glossary entry to delete */
1002
- name: string;
1316
+ name:
1317
+ string;
1003
1318
  /** OAuth 2.0 token for the current user. */
1004
- oauth_token?: string;
1319
+ oauth_token?:
1320
+ string;
1005
1321
  /** Returns response with indentations and line breaks. */
1006
- prettyPrint?: boolean;
1322
+ prettyPrint?:
1323
+ boolean;
1007
1324
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1008
- quotaUser?: string;
1325
+ quotaUser?:
1326
+ string;
1009
1327
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1010
- upload_protocol?: string;
1328
+ upload_protocol?:
1329
+ string;
1011
1330
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1012
- uploadType?: string;
1331
+ uploadType?:
1332
+ string;
1013
1333
  }): Request<{}>;
1014
1334
  /** Gets a single glossary entry by the given id. */
1015
1335
  get(request?: {
1016
1336
  /** V1 error format. */
1017
- "$.xgafv"?: string;
1337
+ "$.xgafv"?:
1338
+ string;
1018
1339
  /** OAuth access token. */
1019
- access_token?: string;
1340
+ access_token?:
1341
+ string;
1020
1342
  /** Data format for response. */
1021
- alt?: string;
1343
+ alt?:
1344
+ string;
1022
1345
  /** JSONP */
1023
- callback?: string;
1346
+ callback?:
1347
+ string;
1024
1348
  /** Selector specifying which fields to include in a partial response. */
1025
- fields?: string;
1349
+ fields?:
1350
+ string;
1026
1351
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1027
- key?: string;
1352
+ key?:
1353
+ string;
1028
1354
  /** Required. The resource name of the glossary entry to get */
1029
- name: string;
1355
+ name:
1356
+ string;
1030
1357
  /** OAuth 2.0 token for the current user. */
1031
- oauth_token?: string;
1358
+ oauth_token?:
1359
+ string;
1032
1360
  /** Returns response with indentations and line breaks. */
1033
- prettyPrint?: boolean;
1361
+ prettyPrint?:
1362
+ boolean;
1034
1363
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1035
- quotaUser?: string;
1364
+ quotaUser?:
1365
+ string;
1036
1366
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1037
- upload_protocol?: string;
1367
+ upload_protocol?:
1368
+ string;
1038
1369
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1039
- uploadType?: string;
1370
+ uploadType?:
1371
+ string;
1040
1372
  }): Request<GlossaryEntry>;
1041
1373
  /** List the entries for the glossary. */
1042
1374
  list(request?: {
1043
1375
  /** V1 error format. */
1044
- "$.xgafv"?: string;
1376
+ "$.xgafv"?:
1377
+ string;
1045
1378
  /** OAuth access token. */
1046
- access_token?: string;
1379
+ access_token?:
1380
+ string;
1047
1381
  /** Data format for response. */
1048
- alt?: string;
1382
+ alt?:
1383
+ string;
1049
1384
  /** JSONP */
1050
- callback?: string;
1385
+ callback?:
1386
+ string;
1051
1387
  /** Selector specifying which fields to include in a partial response. */
1052
- fields?: string;
1388
+ fields?:
1389
+ string;
1053
1390
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1054
- key?: string;
1391
+ key?:
1392
+ string;
1055
1393
  /** OAuth 2.0 token for the current user. */
1056
- oauth_token?: string;
1394
+ oauth_token?:
1395
+ string;
1057
1396
  /** Optional. Requested page size. The server may return fewer glossary entries than requested. If unspecified, the server picks an appropriate default. */
1058
- pageSize?: number;
1397
+ pageSize?:
1398
+ number;
1059
1399
  /**
1060
1400
  * Optional. A token identifying a page of results the server should return. Typically, this is the value of [ListGlossaryEntriesResponse.next_page_token] returned from the
1061
1401
  * previous call. The first page is returned if `page_token`is empty or missing.
1062
1402
  */
1063
- pageToken?: string;
1403
+ pageToken?:
1404
+ string;
1064
1405
  /** Required. The parent glossary resource name for listing the glossary's entries. */
1065
- parent: string;
1406
+ parent:
1407
+ string;
1066
1408
  /** Returns response with indentations and line breaks. */
1067
- prettyPrint?: boolean;
1409
+ prettyPrint?:
1410
+ boolean;
1068
1411
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1069
- quotaUser?: string;
1412
+ quotaUser?:
1413
+ string;
1070
1414
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1071
- upload_protocol?: string;
1415
+ upload_protocol?:
1416
+ string;
1072
1417
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1073
- uploadType?: string;
1418
+ uploadType?:
1419
+ string;
1074
1420
  }): Request<ListGlossaryEntriesResponse>;
1075
1421
  /** Updates a glossary entry. */
1076
1422
  patch(request: {
1077
1423
  /** V1 error format. */
1078
- "$.xgafv"?: string;
1424
+ "$.xgafv"?:
1425
+ string;
1079
1426
  /** OAuth access token. */
1080
- access_token?: string;
1427
+ access_token?:
1428
+ string;
1081
1429
  /** Data format for response. */
1082
- alt?: string;
1430
+ alt?:
1431
+ string;
1083
1432
  /** JSONP */
1084
- callback?: string;
1433
+ callback?:
1434
+ string;
1085
1435
  /** Selector specifying which fields to include in a partial response. */
1086
- fields?: string;
1436
+ fields?:
1437
+ string;
1087
1438
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1088
- key?: string;
1439
+ key?:
1440
+ string;
1089
1441
  /** Required. The resource name of the entry. Format: "projects/*‍/locations/*‍/glossaries/*‍/glossaryEntries/*" */
1090
- name: string;
1442
+ name:
1443
+ string;
1091
1444
  /** OAuth 2.0 token for the current user. */
1092
- oauth_token?: string;
1445
+ oauth_token?:
1446
+ string;
1093
1447
  /** Returns response with indentations and line breaks. */
1094
- prettyPrint?: boolean;
1448
+ prettyPrint?:
1449
+ boolean;
1095
1450
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1096
- quotaUser?: string;
1451
+ quotaUser?:
1452
+ string;
1097
1453
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1098
- upload_protocol?: string;
1454
+ upload_protocol?:
1455
+ string;
1099
1456
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1100
- uploadType?: string;
1457
+ uploadType?:
1458
+ string;
1101
1459
  /** Request body */
1102
- resource: GlossaryEntry;
1460
+ resource:
1461
+ GlossaryEntry;
1103
1462
  }): Request<GlossaryEntry>;
1104
1463
  patch(request: {
1105
1464
  /** V1 error format. */
1106
- "$.xgafv"?: string;
1465
+ "$.xgafv"?:
1466
+ string;
1107
1467
  /** OAuth access token. */
1108
- access_token?: string;
1468
+ access_token?:
1469
+ string;
1109
1470
  /** Data format for response. */
1110
- alt?: string;
1471
+ alt?:
1472
+ string;
1111
1473
  /** JSONP */
1112
- callback?: string;
1474
+ callback?:
1475
+ string;
1113
1476
  /** Selector specifying which fields to include in a partial response. */
1114
- fields?: string;
1477
+ fields?:
1478
+ string;
1115
1479
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1116
- key?: string;
1480
+ key?:
1481
+ string;
1117
1482
  /** Required. The resource name of the entry. Format: "projects/*‍/locations/*‍/glossaries/*‍/glossaryEntries/*" */
1118
- name: string;
1483
+ name:
1484
+ string;
1119
1485
  /** OAuth 2.0 token for the current user. */
1120
- oauth_token?: string;
1486
+ oauth_token?:
1487
+ string;
1121
1488
  /** Returns response with indentations and line breaks. */
1122
- prettyPrint?: boolean;
1489
+ prettyPrint?:
1490
+ boolean;
1123
1491
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1124
- quotaUser?: string;
1492
+ quotaUser?:
1493
+ string;
1125
1494
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1126
- upload_protocol?: string;
1495
+ upload_protocol?:
1496
+ string;
1127
1497
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1128
- uploadType?: string;
1498
+ uploadType?:
1499
+ string;
1129
1500
  },
1130
1501
  body: GlossaryEntry): Request<GlossaryEntry>;
1131
1502
  }
@@ -1133,125 +1504,179 @@ declare namespace gapi.client {
1133
1504
  /** Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist. */
1134
1505
  create(request: {
1135
1506
  /** V1 error format. */
1136
- "$.xgafv"?: string;
1507
+ "$.xgafv"?:
1508
+ string;
1137
1509
  /** OAuth access token. */
1138
- access_token?: string;
1510
+ access_token?:
1511
+ string;
1139
1512
  /** Data format for response. */
1140
- alt?: string;
1513
+ alt?:
1514
+ string;
1141
1515
  /** JSONP */
1142
- callback?: string;
1516
+ callback?:
1517
+ string;
1143
1518
  /** Selector specifying which fields to include in a partial response. */
1144
- fields?: string;
1519
+ fields?:
1520
+ string;
1145
1521
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1146
- key?: string;
1522
+ key?:
1523
+ string;
1147
1524
  /** OAuth 2.0 token for the current user. */
1148
- oauth_token?: string;
1525
+ oauth_token?:
1526
+ string;
1149
1527
  /** Required. The project name. */
1150
- parent: string;
1528
+ parent:
1529
+ string;
1151
1530
  /** Returns response with indentations and line breaks. */
1152
- prettyPrint?: boolean;
1531
+ prettyPrint?:
1532
+ boolean;
1153
1533
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1154
- quotaUser?: string;
1534
+ quotaUser?:
1535
+ string;
1155
1536
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1156
- upload_protocol?: string;
1537
+ upload_protocol?:
1538
+ string;
1157
1539
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1158
- uploadType?: string;
1540
+ uploadType?:
1541
+ string;
1159
1542
  /** Request body */
1160
- resource: Glossary;
1543
+ resource:
1544
+ Glossary;
1161
1545
  }): Request<Operation>;
1162
1546
  create(request: {
1163
1547
  /** V1 error format. */
1164
- "$.xgafv"?: string;
1548
+ "$.xgafv"?:
1549
+ string;
1165
1550
  /** OAuth access token. */
1166
- access_token?: string;
1551
+ access_token?:
1552
+ string;
1167
1553
  /** Data format for response. */
1168
- alt?: string;
1554
+ alt?:
1555
+ string;
1169
1556
  /** JSONP */
1170
- callback?: string;
1557
+ callback?:
1558
+ string;
1171
1559
  /** Selector specifying which fields to include in a partial response. */
1172
- fields?: string;
1560
+ fields?:
1561
+ string;
1173
1562
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1174
- key?: string;
1563
+ key?:
1564
+ string;
1175
1565
  /** OAuth 2.0 token for the current user. */
1176
- oauth_token?: string;
1566
+ oauth_token?:
1567
+ string;
1177
1568
  /** Required. The project name. */
1178
- parent: string;
1569
+ parent:
1570
+ string;
1179
1571
  /** Returns response with indentations and line breaks. */
1180
- prettyPrint?: boolean;
1572
+ prettyPrint?:
1573
+ boolean;
1181
1574
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1182
- quotaUser?: string;
1575
+ quotaUser?:
1576
+ string;
1183
1577
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1184
- upload_protocol?: string;
1578
+ upload_protocol?:
1579
+ string;
1185
1580
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1186
- uploadType?: string;
1581
+ uploadType?:
1582
+ string;
1187
1583
  },
1188
1584
  body: Glossary): Request<Operation>;
1189
1585
  /** Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist. */
1190
1586
  delete(request?: {
1191
1587
  /** V1 error format. */
1192
- "$.xgafv"?: string;
1588
+ "$.xgafv"?:
1589
+ string;
1193
1590
  /** OAuth access token. */
1194
- access_token?: string;
1591
+ access_token?:
1592
+ string;
1195
1593
  /** Data format for response. */
1196
- alt?: string;
1594
+ alt?:
1595
+ string;
1197
1596
  /** JSONP */
1198
- callback?: string;
1597
+ callback?:
1598
+ string;
1199
1599
  /** Selector specifying which fields to include in a partial response. */
1200
- fields?: string;
1600
+ fields?:
1601
+ string;
1201
1602
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1202
- key?: string;
1603
+ key?:
1604
+ string;
1203
1605
  /** Required. The name of the glossary to delete. */
1204
- name: string;
1606
+ name:
1607
+ string;
1205
1608
  /** OAuth 2.0 token for the current user. */
1206
- oauth_token?: string;
1609
+ oauth_token?:
1610
+ string;
1207
1611
  /** Returns response with indentations and line breaks. */
1208
- prettyPrint?: boolean;
1612
+ prettyPrint?:
1613
+ boolean;
1209
1614
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1210
- quotaUser?: string;
1615
+ quotaUser?:
1616
+ string;
1211
1617
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1212
- upload_protocol?: string;
1618
+ upload_protocol?:
1619
+ string;
1213
1620
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1214
- uploadType?: string;
1621
+ uploadType?:
1622
+ string;
1215
1623
  }): Request<Operation>;
1216
1624
  /** Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. */
1217
1625
  get(request?: {
1218
1626
  /** V1 error format. */
1219
- "$.xgafv"?: string;
1627
+ "$.xgafv"?:
1628
+ string;
1220
1629
  /** OAuth access token. */
1221
- access_token?: string;
1630
+ access_token?:
1631
+ string;
1222
1632
  /** Data format for response. */
1223
- alt?: string;
1633
+ alt?:
1634
+ string;
1224
1635
  /** JSONP */
1225
- callback?: string;
1636
+ callback?:
1637
+ string;
1226
1638
  /** Selector specifying which fields to include in a partial response. */
1227
- fields?: string;
1639
+ fields?:
1640
+ string;
1228
1641
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1229
- key?: string;
1642
+ key?:
1643
+ string;
1230
1644
  /** Required. The name of the glossary to retrieve. */
1231
- name: string;
1645
+ name:
1646
+ string;
1232
1647
  /** OAuth 2.0 token for the current user. */
1233
- oauth_token?: string;
1648
+ oauth_token?:
1649
+ string;
1234
1650
  /** Returns response with indentations and line breaks. */
1235
- prettyPrint?: boolean;
1651
+ prettyPrint?:
1652
+ boolean;
1236
1653
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1237
- quotaUser?: string;
1654
+ quotaUser?:
1655
+ string;
1238
1656
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1239
- upload_protocol?: string;
1657
+ upload_protocol?:
1658
+ string;
1240
1659
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1241
- uploadType?: string;
1660
+ uploadType?:
1661
+ string;
1242
1662
  }): Request<Glossary>;
1243
1663
  /** Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. */
1244
1664
  list(request?: {
1245
1665
  /** V1 error format. */
1246
- "$.xgafv"?: string;
1666
+ "$.xgafv"?:
1667
+ string;
1247
1668
  /** OAuth access token. */
1248
- access_token?: string;
1669
+ access_token?:
1670
+ string;
1249
1671
  /** Data format for response. */
1250
- alt?: string;
1672
+ alt?:
1673
+ string;
1251
1674
  /** JSONP */
1252
- callback?: string;
1675
+ callback?:
1676
+ string;
1253
1677
  /** Selector specifying which fields to include in a partial response. */
1254
- fields?: string;
1678
+ fields?:
1679
+ string;
1255
1680
  /**
1256
1681
  * Optional. Filter specifying constraints of a list operation. Specify the constraint by the format of "key=value", where key must be "src" or "tgt", and the value must be a valid
1257
1682
  * language code. For multiple restrictions, concatenate them by "AND" (uppercase only), such as: "src=en-US AND tgt=zh-CN". Notice that the exact match is used here, which means
@@ -1260,234 +1685,336 @@ declare namespace gapi.client {
1260
1685
  * example: "src=en-US AND tgt=zh-CN" will only pick the unidirectional glossaries which exactly match the source language code as "en-US" and the target language code "zh-CN", but
1261
1686
  * all equivalent term set glossaries which contain "en-US" and "zh-CN" in their language set will be picked. If missing, no filtering is performed.
1262
1687
  */
1263
- filter?: string;
1688
+ filter?:
1689
+ string;
1264
1690
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1265
- key?: string;
1691
+ key?:
1692
+ string;
1266
1693
  /** OAuth 2.0 token for the current user. */
1267
- oauth_token?: string;
1694
+ oauth_token?:
1695
+ string;
1268
1696
  /** Optional. Requested page size. The server may return fewer glossaries than requested. If unspecified, the server picks an appropriate default. */
1269
- pageSize?: number;
1697
+ pageSize?:
1698
+ number;
1270
1699
  /**
1271
1700
  * Optional. A token identifying a page of results the server should return. Typically, this is the value of [ListGlossariesResponse.next_page_token] returned from the previous
1272
1701
  * call to `ListGlossaries` method. The first page is returned if `page_token`is empty or missing.
1273
1702
  */
1274
- pageToken?: string;
1703
+ pageToken?:
1704
+ string;
1275
1705
  /** Required. The name of the project from which to list all of the glossaries. */
1276
- parent: string;
1706
+ parent:
1707
+ string;
1277
1708
  /** Returns response with indentations and line breaks. */
1278
- prettyPrint?: boolean;
1709
+ prettyPrint?:
1710
+ boolean;
1279
1711
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1280
- quotaUser?: string;
1712
+ quotaUser?:
1713
+ string;
1281
1714
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1282
- upload_protocol?: string;
1715
+ upload_protocol?:
1716
+ string;
1283
1717
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1284
- uploadType?: string;
1718
+ uploadType?:
1719
+ string;
1285
1720
  }): Request<ListGlossariesResponse>;
1286
1721
  /** Updates a glossary. A LRO is used since the update can be async if the glossary's entry file is updated. */
1287
1722
  patch(request: {
1288
1723
  /** V1 error format. */
1289
- "$.xgafv"?: string;
1724
+ "$.xgafv"?:
1725
+ string;
1290
1726
  /** OAuth access token. */
1291
- access_token?: string;
1727
+ access_token?:
1728
+ string;
1292
1729
  /** Data format for response. */
1293
- alt?: string;
1730
+ alt?:
1731
+ string;
1294
1732
  /** JSONP */
1295
- callback?: string;
1733
+ callback?:
1734
+ string;
1296
1735
  /** Selector specifying which fields to include in a partial response. */
1297
- fields?: string;
1736
+ fields?:
1737
+ string;
1298
1738
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1299
- key?: string;
1739
+ key?:
1740
+ string;
1300
1741
  /** Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`. */
1301
- name: string;
1742
+ name:
1743
+ string;
1302
1744
  /** OAuth 2.0 token for the current user. */
1303
- oauth_token?: string;
1745
+ oauth_token?:
1746
+ string;
1304
1747
  /** Returns response with indentations and line breaks. */
1305
- prettyPrint?: boolean;
1748
+ prettyPrint?:
1749
+ boolean;
1306
1750
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1307
- quotaUser?: string;
1751
+ quotaUser?:
1752
+ string;
1308
1753
  /** The list of fields to be updated. Currently only `display_name` and 'input_config' */
1309
- updateMask?: string;
1754
+ updateMask?:
1755
+ string;
1310
1756
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1311
- upload_protocol?: string;
1757
+ upload_protocol?:
1758
+ string;
1312
1759
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1313
- uploadType?: string;
1760
+ uploadType?:
1761
+ string;
1314
1762
  /** Request body */
1315
- resource: Glossary;
1763
+ resource:
1764
+ Glossary;
1316
1765
  }): Request<Operation>;
1317
1766
  patch(request: {
1318
1767
  /** V1 error format. */
1319
- "$.xgafv"?: string;
1768
+ "$.xgafv"?:
1769
+ string;
1320
1770
  /** OAuth access token. */
1321
- access_token?: string;
1771
+ access_token?:
1772
+ string;
1322
1773
  /** Data format for response. */
1323
- alt?: string;
1774
+ alt?:
1775
+ string;
1324
1776
  /** JSONP */
1325
- callback?: string;
1777
+ callback?:
1778
+ string;
1326
1779
  /** Selector specifying which fields to include in a partial response. */
1327
- fields?: string;
1780
+ fields?:
1781
+ string;
1328
1782
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1329
- key?: string;
1783
+ key?:
1784
+ string;
1330
1785
  /** Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`. */
1331
- name: string;
1786
+ name:
1787
+ string;
1332
1788
  /** OAuth 2.0 token for the current user. */
1333
- oauth_token?: string;
1789
+ oauth_token?:
1790
+ string;
1334
1791
  /** Returns response with indentations and line breaks. */
1335
- prettyPrint?: boolean;
1792
+ prettyPrint?:
1793
+ boolean;
1336
1794
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1337
- quotaUser?: string;
1795
+ quotaUser?:
1796
+ string;
1338
1797
  /** The list of fields to be updated. Currently only `display_name` and 'input_config' */
1339
- updateMask?: string;
1798
+ updateMask?:
1799
+ string;
1340
1800
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1341
- upload_protocol?: string;
1801
+ upload_protocol?:
1802
+ string;
1342
1803
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1343
- uploadType?: string;
1804
+ uploadType?:
1805
+ string;
1344
1806
  },
1345
1807
  body: Glossary): Request<Operation>;
1346
- glossaryEntries: GlossaryEntriesResource;
1808
+ glossaryEntries:
1809
+ GlossaryEntriesResource;
1347
1810
  }
1348
1811
  interface ModelsResource {
1349
1812
  /** Creates a Model. */
1350
1813
  create(request: {
1351
1814
  /** V1 error format. */
1352
- "$.xgafv"?: string;
1815
+ "$.xgafv"?:
1816
+ string;
1353
1817
  /** OAuth access token. */
1354
- access_token?: string;
1818
+ access_token?:
1819
+ string;
1355
1820
  /** Data format for response. */
1356
- alt?: string;
1821
+ alt?:
1822
+ string;
1357
1823
  /** JSONP */
1358
- callback?: string;
1824
+ callback?:
1825
+ string;
1359
1826
  /** Selector specifying which fields to include in a partial response. */
1360
- fields?: string;
1827
+ fields?:
1828
+ string;
1361
1829
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1362
- key?: string;
1830
+ key?:
1831
+ string;
1363
1832
  /** OAuth 2.0 token for the current user. */
1364
- oauth_token?: string;
1833
+ oauth_token?:
1834
+ string;
1365
1835
  /** Required. The project name, in form of `projects/{project}/locations/{location}` */
1366
- parent: string;
1836
+ parent:
1837
+ string;
1367
1838
  /** Returns response with indentations and line breaks. */
1368
- prettyPrint?: boolean;
1839
+ prettyPrint?:
1840
+ boolean;
1369
1841
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1370
- quotaUser?: string;
1842
+ quotaUser?:
1843
+ string;
1371
1844
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1372
- upload_protocol?: string;
1845
+ upload_protocol?:
1846
+ string;
1373
1847
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1374
- uploadType?: string;
1848
+ uploadType?:
1849
+ string;
1375
1850
  /** Request body */
1376
- resource: Model;
1851
+ resource:
1852
+ Model;
1377
1853
  }): Request<Operation>;
1378
1854
  create(request: {
1379
1855
  /** V1 error format. */
1380
- "$.xgafv"?: string;
1856
+ "$.xgafv"?:
1857
+ string;
1381
1858
  /** OAuth access token. */
1382
- access_token?: string;
1859
+ access_token?:
1860
+ string;
1383
1861
  /** Data format for response. */
1384
- alt?: string;
1862
+ alt?:
1863
+ string;
1385
1864
  /** JSONP */
1386
- callback?: string;
1865
+ callback?:
1866
+ string;
1387
1867
  /** Selector specifying which fields to include in a partial response. */
1388
- fields?: string;
1868
+ fields?:
1869
+ string;
1389
1870
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1390
- key?: string;
1871
+ key?:
1872
+ string;
1391
1873
  /** OAuth 2.0 token for the current user. */
1392
- oauth_token?: string;
1874
+ oauth_token?:
1875
+ string;
1393
1876
  /** Required. The project name, in form of `projects/{project}/locations/{location}` */
1394
- parent: string;
1877
+ parent:
1878
+ string;
1395
1879
  /** Returns response with indentations and line breaks. */
1396
- prettyPrint?: boolean;
1880
+ prettyPrint?:
1881
+ boolean;
1397
1882
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1398
- quotaUser?: string;
1883
+ quotaUser?:
1884
+ string;
1399
1885
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1400
- upload_protocol?: string;
1886
+ upload_protocol?:
1887
+ string;
1401
1888
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1402
- uploadType?: string;
1889
+ uploadType?:
1890
+ string;
1403
1891
  },
1404
1892
  body: Model): Request<Operation>;
1405
1893
  /** Deletes a model. */
1406
1894
  delete(request?: {
1407
1895
  /** V1 error format. */
1408
- "$.xgafv"?: string;
1896
+ "$.xgafv"?:
1897
+ string;
1409
1898
  /** OAuth access token. */
1410
- access_token?: string;
1899
+ access_token?:
1900
+ string;
1411
1901
  /** Data format for response. */
1412
- alt?: string;
1902
+ alt?:
1903
+ string;
1413
1904
  /** JSONP */
1414
- callback?: string;
1905
+ callback?:
1906
+ string;
1415
1907
  /** Selector specifying which fields to include in a partial response. */
1416
- fields?: string;
1908
+ fields?:
1909
+ string;
1417
1910
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1418
- key?: string;
1911
+ key?:
1912
+ string;
1419
1913
  /** Required. The name of the model to delete. */
1420
- name: string;
1914
+ name:
1915
+ string;
1421
1916
  /** OAuth 2.0 token for the current user. */
1422
- oauth_token?: string;
1917
+ oauth_token?:
1918
+ string;
1423
1919
  /** Returns response with indentations and line breaks. */
1424
- prettyPrint?: boolean;
1920
+ prettyPrint?:
1921
+ boolean;
1425
1922
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1426
- quotaUser?: string;
1923
+ quotaUser?:
1924
+ string;
1427
1925
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1428
- upload_protocol?: string;
1926
+ upload_protocol?:
1927
+ string;
1429
1928
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1430
- uploadType?: string;
1929
+ uploadType?:
1930
+ string;
1431
1931
  }): Request<Operation>;
1432
1932
  /** Gets a model. */
1433
1933
  get(request?: {
1434
1934
  /** V1 error format. */
1435
- "$.xgafv"?: string;
1935
+ "$.xgafv"?:
1936
+ string;
1436
1937
  /** OAuth access token. */
1437
- access_token?: string;
1938
+ access_token?:
1939
+ string;
1438
1940
  /** Data format for response. */
1439
- alt?: string;
1941
+ alt?:
1942
+ string;
1440
1943
  /** JSONP */
1441
- callback?: string;
1944
+ callback?:
1945
+ string;
1442
1946
  /** Selector specifying which fields to include in a partial response. */
1443
- fields?: string;
1947
+ fields?:
1948
+ string;
1444
1949
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1445
- key?: string;
1950
+ key?:
1951
+ string;
1446
1952
  /** Required. The resource name of the model to retrieve. */
1447
- name: string;
1953
+ name:
1954
+ string;
1448
1955
  /** OAuth 2.0 token for the current user. */
1449
- oauth_token?: string;
1956
+ oauth_token?:
1957
+ string;
1450
1958
  /** Returns response with indentations and line breaks. */
1451
- prettyPrint?: boolean;
1959
+ prettyPrint?:
1960
+ boolean;
1452
1961
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1453
- quotaUser?: string;
1962
+ quotaUser?:
1963
+ string;
1454
1964
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1455
- upload_protocol?: string;
1965
+ upload_protocol?:
1966
+ string;
1456
1967
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1457
- uploadType?: string;
1968
+ uploadType?:
1969
+ string;
1458
1970
  }): Request<Model>;
1459
1971
  /** Lists models. */
1460
1972
  list(request?: {
1461
1973
  /** V1 error format. */
1462
- "$.xgafv"?: string;
1974
+ "$.xgafv"?:
1975
+ string;
1463
1976
  /** OAuth access token. */
1464
- access_token?: string;
1977
+ access_token?:
1978
+ string;
1465
1979
  /** Data format for response. */
1466
- alt?: string;
1980
+ alt?:
1981
+ string;
1467
1982
  /** JSONP */
1468
- callback?: string;
1983
+ callback?:
1984
+ string;
1469
1985
  /** Selector specifying which fields to include in a partial response. */
1470
- fields?: string;
1986
+ fields?:
1987
+ string;
1471
1988
  /** Optional. An expression for filtering the models that will be returned. Supported filter: `dataset_id=${dataset_id}` */
1472
- filter?: string;
1989
+ filter?:
1990
+ string;
1473
1991
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1474
- key?: string;
1992
+ key?:
1993
+ string;
1475
1994
  /** OAuth 2.0 token for the current user. */
1476
- oauth_token?: string;
1995
+ oauth_token?:
1996
+ string;
1477
1997
  /** Optional. Requested page size. The server can return fewer results than requested. */
1478
- pageSize?: number;
1998
+ pageSize?:
1999
+ number;
1479
2000
  /** Optional. A token identifying a page of results for the server to return. Typically obtained from next_page_token field in the response of a ListModels call. */
1480
- pageToken?: string;
2001
+ pageToken?:
2002
+ string;
1481
2003
  /** Required. Name of the parent project. In form of `projects/{project-number-or-id}/locations/{location-id}` */
1482
- parent: string;
2004
+ parent:
2005
+ string;
1483
2006
  /** Returns response with indentations and line breaks. */
1484
- prettyPrint?: boolean;
2007
+ prettyPrint?:
2008
+ boolean;
1485
2009
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1486
- quotaUser?: string;
2010
+ quotaUser?:
2011
+ string;
1487
2012
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1488
- upload_protocol?: string;
2013
+ upload_protocol?:
2014
+ string;
1489
2015
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1490
- uploadType?: string;
2016
+ uploadType?:
2017
+ string;
1491
2018
  }): Request<ListModelsResponse>;
1492
2019
  }
1493
2020
  interface OperationsResource {
@@ -1499,57 +2026,82 @@ declare namespace gapi.client {
1499
2026
  */
1500
2027
  cancel(request: {
1501
2028
  /** V1 error format. */
1502
- "$.xgafv"?: string;
2029
+ "$.xgafv"?:
2030
+ string;
1503
2031
  /** OAuth access token. */
1504
- access_token?: string;
2032
+ access_token?:
2033
+ string;
1505
2034
  /** Data format for response. */
1506
- alt?: string;
2035
+ alt?:
2036
+ string;
1507
2037
  /** JSONP */
1508
- callback?: string;
2038
+ callback?:
2039
+ string;
1509
2040
  /** Selector specifying which fields to include in a partial response. */
1510
- fields?: string;
2041
+ fields?:
2042
+ string;
1511
2043
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1512
- key?: string;
2044
+ key?:
2045
+ string;
1513
2046
  /** The name of the operation resource to be cancelled. */
1514
- name: string;
2047
+ name:
2048
+ string;
1515
2049
  /** OAuth 2.0 token for the current user. */
1516
- oauth_token?: string;
2050
+ oauth_token?:
2051
+ string;
1517
2052
  /** Returns response with indentations and line breaks. */
1518
- prettyPrint?: boolean;
2053
+ prettyPrint?:
2054
+ boolean;
1519
2055
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1520
- quotaUser?: string;
2056
+ quotaUser?:
2057
+ string;
1521
2058
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1522
- upload_protocol?: string;
2059
+ upload_protocol?:
2060
+ string;
1523
2061
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1524
- uploadType?: string;
2062
+ uploadType?:
2063
+ string;
1525
2064
  /** Request body */
1526
- resource: CancelOperationRequest;
2065
+ resource:
2066
+ CancelOperationRequest;
1527
2067
  }): Request<{}>;
1528
2068
  cancel(request: {
1529
2069
  /** V1 error format. */
1530
- "$.xgafv"?: string;
2070
+ "$.xgafv"?:
2071
+ string;
1531
2072
  /** OAuth access token. */
1532
- access_token?: string;
2073
+ access_token?:
2074
+ string;
1533
2075
  /** Data format for response. */
1534
- alt?: string;
2076
+ alt?:
2077
+ string;
1535
2078
  /** JSONP */
1536
- callback?: string;
2079
+ callback?:
2080
+ string;
1537
2081
  /** Selector specifying which fields to include in a partial response. */
1538
- fields?: string;
2082
+ fields?:
2083
+ string;
1539
2084
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1540
- key?: string;
2085
+ key?:
2086
+ string;
1541
2087
  /** The name of the operation resource to be cancelled. */
1542
- name: string;
2088
+ name:
2089
+ string;
1543
2090
  /** OAuth 2.0 token for the current user. */
1544
- oauth_token?: string;
2091
+ oauth_token?:
2092
+ string;
1545
2093
  /** Returns response with indentations and line breaks. */
1546
- prettyPrint?: boolean;
2094
+ prettyPrint?:
2095
+ boolean;
1547
2096
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1548
- quotaUser?: string;
2097
+ quotaUser?:
2098
+ string;
1549
2099
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1550
- upload_protocol?: string;
2100
+ upload_protocol?:
2101
+ string;
1551
2102
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1552
- uploadType?: string;
2103
+ uploadType?:
2104
+ string;
1553
2105
  },
1554
2106
  body: CancelOperationRequest): Request<{}>;
1555
2107
  /**
@@ -1558,89 +2110,128 @@ declare namespace gapi.client {
1558
2110
  */
1559
2111
  delete(request?: {
1560
2112
  /** V1 error format. */
1561
- "$.xgafv"?: string;
2113
+ "$.xgafv"?:
2114
+ string;
1562
2115
  /** OAuth access token. */
1563
- access_token?: string;
2116
+ access_token?:
2117
+ string;
1564
2118
  /** Data format for response. */
1565
- alt?: string;
2119
+ alt?:
2120
+ string;
1566
2121
  /** JSONP */
1567
- callback?: string;
2122
+ callback?:
2123
+ string;
1568
2124
  /** Selector specifying which fields to include in a partial response. */
1569
- fields?: string;
2125
+ fields?:
2126
+ string;
1570
2127
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1571
- key?: string;
2128
+ key?:
2129
+ string;
1572
2130
  /** The name of the operation resource to be deleted. */
1573
- name: string;
2131
+ name:
2132
+ string;
1574
2133
  /** OAuth 2.0 token for the current user. */
1575
- oauth_token?: string;
2134
+ oauth_token?:
2135
+ string;
1576
2136
  /** Returns response with indentations and line breaks. */
1577
- prettyPrint?: boolean;
2137
+ prettyPrint?:
2138
+ boolean;
1578
2139
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1579
- quotaUser?: string;
2140
+ quotaUser?:
2141
+ string;
1580
2142
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1581
- upload_protocol?: string;
2143
+ upload_protocol?:
2144
+ string;
1582
2145
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1583
- uploadType?: string;
2146
+ uploadType?:
2147
+ string;
1584
2148
  }): Request<{}>;
1585
2149
  /** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
1586
2150
  get(request?: {
1587
2151
  /** V1 error format. */
1588
- "$.xgafv"?: string;
2152
+ "$.xgafv"?:
2153
+ string;
1589
2154
  /** OAuth access token. */
1590
- access_token?: string;
2155
+ access_token?:
2156
+ string;
1591
2157
  /** Data format for response. */
1592
- alt?: string;
2158
+ alt?:
2159
+ string;
1593
2160
  /** JSONP */
1594
- callback?: string;
2161
+ callback?:
2162
+ string;
1595
2163
  /** Selector specifying which fields to include in a partial response. */
1596
- fields?: string;
2164
+ fields?:
2165
+ string;
1597
2166
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1598
- key?: string;
2167
+ key?:
2168
+ string;
1599
2169
  /** The name of the operation resource. */
1600
- name: string;
2170
+ name:
2171
+ string;
1601
2172
  /** OAuth 2.0 token for the current user. */
1602
- oauth_token?: string;
2173
+ oauth_token?:
2174
+ string;
1603
2175
  /** Returns response with indentations and line breaks. */
1604
- prettyPrint?: boolean;
2176
+ prettyPrint?:
2177
+ boolean;
1605
2178
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1606
- quotaUser?: string;
2179
+ quotaUser?:
2180
+ string;
1607
2181
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1608
- upload_protocol?: string;
2182
+ upload_protocol?:
2183
+ string;
1609
2184
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1610
- uploadType?: string;
2185
+ uploadType?:
2186
+ string;
1611
2187
  }): Request<Operation>;
1612
2188
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
1613
2189
  list(request?: {
1614
2190
  /** V1 error format. */
1615
- "$.xgafv"?: string;
2191
+ "$.xgafv"?:
2192
+ string;
1616
2193
  /** OAuth access token. */
1617
- access_token?: string;
2194
+ access_token?:
2195
+ string;
1618
2196
  /** Data format for response. */
1619
- alt?: string;
2197
+ alt?:
2198
+ string;
1620
2199
  /** JSONP */
1621
- callback?: string;
2200
+ callback?:
2201
+ string;
1622
2202
  /** Selector specifying which fields to include in a partial response. */
1623
- fields?: string;
2203
+ fields?:
2204
+ string;
1624
2205
  /** The standard list filter. */
1625
- filter?: string;
2206
+ filter?:
2207
+ string;
1626
2208
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1627
- key?: string;
2209
+ key?:
2210
+ string;
1628
2211
  /** The name of the operation's parent resource. */
1629
- name: string;
2212
+ name:
2213
+ string;
1630
2214
  /** OAuth 2.0 token for the current user. */
1631
- oauth_token?: string;
2215
+ oauth_token?:
2216
+ string;
1632
2217
  /** The standard list page size. */
1633
- pageSize?: number;
2218
+ pageSize?:
2219
+ number;
1634
2220
  /** The standard list page token. */
1635
- pageToken?: string;
2221
+ pageToken?:
2222
+ string;
1636
2223
  /** Returns response with indentations and line breaks. */
1637
- prettyPrint?: boolean;
2224
+ prettyPrint?:
2225
+ boolean;
1638
2226
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1639
- quotaUser?: string;
2227
+ quotaUser?:
2228
+ string;
1640
2229
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1641
- upload_protocol?: string;
2230
+ upload_protocol?:
2231
+ string;
1642
2232
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1643
- uploadType?: string;
2233
+ uploadType?:
2234
+ string;
1644
2235
  }): Request<ListOperationsResponse>;
1645
2236
  /**
1646
2237
  * Waits until the specified long-running operation is done or reaches at most a specified timeout, returning the latest state. If the operation is already done, the latest state is
@@ -1650,57 +2241,82 @@ declare namespace gapi.client {
1650
2241
  */
1651
2242
  wait(request: {
1652
2243
  /** V1 error format. */
1653
- "$.xgafv"?: string;
2244
+ "$.xgafv"?:
2245
+ string;
1654
2246
  /** OAuth access token. */
1655
- access_token?: string;
2247
+ access_token?:
2248
+ string;
1656
2249
  /** Data format for response. */
1657
- alt?: string;
2250
+ alt?:
2251
+ string;
1658
2252
  /** JSONP */
1659
- callback?: string;
2253
+ callback?:
2254
+ string;
1660
2255
  /** Selector specifying which fields to include in a partial response. */
1661
- fields?: string;
2256
+ fields?:
2257
+ string;
1662
2258
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1663
- key?: string;
2259
+ key?:
2260
+ string;
1664
2261
  /** The name of the operation resource to wait on. */
1665
- name: string;
2262
+ name:
2263
+ string;
1666
2264
  /** OAuth 2.0 token for the current user. */
1667
- oauth_token?: string;
2265
+ oauth_token?:
2266
+ string;
1668
2267
  /** Returns response with indentations and line breaks. */
1669
- prettyPrint?: boolean;
2268
+ prettyPrint?:
2269
+ boolean;
1670
2270
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1671
- quotaUser?: string;
2271
+ quotaUser?:
2272
+ string;
1672
2273
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1673
- upload_protocol?: string;
2274
+ upload_protocol?:
2275
+ string;
1674
2276
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1675
- uploadType?: string;
2277
+ uploadType?:
2278
+ string;
1676
2279
  /** Request body */
1677
- resource: WaitOperationRequest;
2280
+ resource:
2281
+ WaitOperationRequest;
1678
2282
  }): Request<Operation>;
1679
2283
  wait(request: {
1680
2284
  /** V1 error format. */
1681
- "$.xgafv"?: string;
2285
+ "$.xgafv"?:
2286
+ string;
1682
2287
  /** OAuth access token. */
1683
- access_token?: string;
2288
+ access_token?:
2289
+ string;
1684
2290
  /** Data format for response. */
1685
- alt?: string;
2291
+ alt?:
2292
+ string;
1686
2293
  /** JSONP */
1687
- callback?: string;
2294
+ callback?:
2295
+ string;
1688
2296
  /** Selector specifying which fields to include in a partial response. */
1689
- fields?: string;
2297
+ fields?:
2298
+ string;
1690
2299
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1691
- key?: string;
2300
+ key?:
2301
+ string;
1692
2302
  /** The name of the operation resource to wait on. */
1693
- name: string;
2303
+ name:
2304
+ string;
1694
2305
  /** OAuth 2.0 token for the current user. */
1695
- oauth_token?: string;
2306
+ oauth_token?:
2307
+ string;
1696
2308
  /** Returns response with indentations and line breaks. */
1697
- prettyPrint?: boolean;
2309
+ prettyPrint?:
2310
+ boolean;
1698
2311
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1699
- quotaUser?: string;
2312
+ quotaUser?:
2313
+ string;
1700
2314
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1701
- upload_protocol?: string;
2315
+ upload_protocol?:
2316
+ string;
1702
2317
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1703
- uploadType?: string;
2318
+ uploadType?:
2319
+ string;
1704
2320
  },
1705
2321
  body: WaitOperationRequest): Request<Operation>;
1706
2322
  }
@@ -1712,63 +2328,88 @@ declare namespace gapi.client {
1712
2328
  */
1713
2329
  batchTranslateDocument(request: {
1714
2330
  /** V1 error format. */
1715
- "$.xgafv"?: string;
2331
+ "$.xgafv"?:
2332
+ string;
1716
2333
  /** OAuth access token. */
1717
- access_token?: string;
2334
+ access_token?:
2335
+ string;
1718
2336
  /** Data format for response. */
1719
- alt?: string;
2337
+ alt?:
2338
+ string;
1720
2339
  /** JSONP */
1721
- callback?: string;
2340
+ callback?:
2341
+ string;
1722
2342
  /** Selector specifying which fields to include in a partial response. */
1723
- fields?: string;
2343
+ fields?:
2344
+ string;
1724
2345
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1725
- key?: string;
2346
+ key?:
2347
+ string;
1726
2348
  /** OAuth 2.0 token for the current user. */
1727
- oauth_token?: string;
2349
+ oauth_token?:
2350
+ string;
1728
2351
  /**
1729
2352
  * Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. The `global` location is not supported for batch translation. Only
1730
2353
  * AutoML Translation models or glossaries within the same region (have the same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
1731
2354
  */
1732
- parent: string;
2355
+ parent:
2356
+ string;
1733
2357
  /** Returns response with indentations and line breaks. */
1734
- prettyPrint?: boolean;
2358
+ prettyPrint?:
2359
+ boolean;
1735
2360
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1736
- quotaUser?: string;
2361
+ quotaUser?:
2362
+ string;
1737
2363
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1738
- upload_protocol?: string;
2364
+ upload_protocol?:
2365
+ string;
1739
2366
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1740
- uploadType?: string;
2367
+ uploadType?:
2368
+ string;
1741
2369
  /** Request body */
1742
- resource: BatchTranslateDocumentRequest;
2370
+ resource:
2371
+ BatchTranslateDocumentRequest;
1743
2372
  }): Request<Operation>;
1744
2373
  batchTranslateDocument(request: {
1745
2374
  /** V1 error format. */
1746
- "$.xgafv"?: string;
2375
+ "$.xgafv"?:
2376
+ string;
1747
2377
  /** OAuth access token. */
1748
- access_token?: string;
2378
+ access_token?:
2379
+ string;
1749
2380
  /** Data format for response. */
1750
- alt?: string;
2381
+ alt?:
2382
+ string;
1751
2383
  /** JSONP */
1752
- callback?: string;
2384
+ callback?:
2385
+ string;
1753
2386
  /** Selector specifying which fields to include in a partial response. */
1754
- fields?: string;
2387
+ fields?:
2388
+ string;
1755
2389
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1756
- key?: string;
2390
+ key?:
2391
+ string;
1757
2392
  /** OAuth 2.0 token for the current user. */
1758
- oauth_token?: string;
2393
+ oauth_token?:
2394
+ string;
1759
2395
  /**
1760
2396
  * Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. The `global` location is not supported for batch translation. Only
1761
2397
  * AutoML Translation models or glossaries within the same region (have the same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
1762
2398
  */
1763
- parent: string;
2399
+ parent:
2400
+ string;
1764
2401
  /** Returns response with indentations and line breaks. */
1765
- prettyPrint?: boolean;
2402
+ prettyPrint?:
2403
+ boolean;
1766
2404
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1767
- quotaUser?: string;
2405
+ quotaUser?:
2406
+ string;
1768
2407
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1769
- upload_protocol?: string;
2408
+ upload_protocol?:
2409
+ string;
1770
2410
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1771
- uploadType?: string;
2411
+ uploadType?:
2412
+ string;
1772
2413
  },
1773
2414
  body: BatchTranslateDocumentRequest): Request<Operation>;
1774
2415
  /**
@@ -1778,541 +2419,751 @@ declare namespace gapi.client {
1778
2419
  */
1779
2420
  batchTranslateText(request: {
1780
2421
  /** V1 error format. */
1781
- "$.xgafv"?: string;
2422
+ "$.xgafv"?:
2423
+ string;
1782
2424
  /** OAuth access token. */
1783
- access_token?: string;
2425
+ access_token?:
2426
+ string;
1784
2427
  /** Data format for response. */
1785
- alt?: string;
2428
+ alt?:
2429
+ string;
1786
2430
  /** JSONP */
1787
- callback?: string;
2431
+ callback?:
2432
+ string;
1788
2433
  /** Selector specifying which fields to include in a partial response. */
1789
- fields?: string;
2434
+ fields?:
2435
+ string;
1790
2436
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1791
- key?: string;
2437
+ key?:
2438
+ string;
1792
2439
  /** OAuth 2.0 token for the current user. */
1793
- oauth_token?: string;
2440
+ oauth_token?:
2441
+ string;
1794
2442
  /**
1795
2443
  * Required. Location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}`. The `global` location is not supported
1796
2444
  * for batch translation. Only AutoML Translation models or glossaries within the same region (have the same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is
1797
2445
  * returned.
1798
2446
  */
1799
- parent: string;
2447
+ parent:
2448
+ string;
1800
2449
  /** Returns response with indentations and line breaks. */
1801
- prettyPrint?: boolean;
2450
+ prettyPrint?:
2451
+ boolean;
1802
2452
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1803
- quotaUser?: string;
2453
+ quotaUser?:
2454
+ string;
1804
2455
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1805
- upload_protocol?: string;
2456
+ upload_protocol?:
2457
+ string;
1806
2458
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1807
- uploadType?: string;
2459
+ uploadType?:
2460
+ string;
1808
2461
  /** Request body */
1809
- resource: BatchTranslateTextRequest;
2462
+ resource:
2463
+ BatchTranslateTextRequest;
1810
2464
  }): Request<Operation>;
1811
2465
  batchTranslateText(request: {
1812
2466
  /** V1 error format. */
1813
- "$.xgafv"?: string;
2467
+ "$.xgafv"?:
2468
+ string;
1814
2469
  /** OAuth access token. */
1815
- access_token?: string;
2470
+ access_token?:
2471
+ string;
1816
2472
  /** Data format for response. */
1817
- alt?: string;
2473
+ alt?:
2474
+ string;
1818
2475
  /** JSONP */
1819
- callback?: string;
2476
+ callback?:
2477
+ string;
1820
2478
  /** Selector specifying which fields to include in a partial response. */
1821
- fields?: string;
2479
+ fields?:
2480
+ string;
1822
2481
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1823
- key?: string;
2482
+ key?:
2483
+ string;
1824
2484
  /** OAuth 2.0 token for the current user. */
1825
- oauth_token?: string;
2485
+ oauth_token?:
2486
+ string;
1826
2487
  /**
1827
2488
  * Required. Location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}`. The `global` location is not supported
1828
2489
  * for batch translation. Only AutoML Translation models or glossaries within the same region (have the same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is
1829
2490
  * returned.
1830
2491
  */
1831
- parent: string;
2492
+ parent:
2493
+ string;
1832
2494
  /** Returns response with indentations and line breaks. */
1833
- prettyPrint?: boolean;
2495
+ prettyPrint?:
2496
+ boolean;
1834
2497
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1835
- quotaUser?: string;
2498
+ quotaUser?:
2499
+ string;
1836
2500
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1837
- upload_protocol?: string;
2501
+ upload_protocol?:
2502
+ string;
1838
2503
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1839
- uploadType?: string;
2504
+ uploadType?:
2505
+ string;
1840
2506
  },
1841
2507
  body: BatchTranslateTextRequest): Request<Operation>;
1842
2508
  /** Detects the language of text within a request. */
1843
2509
  detectLanguage(request: {
1844
2510
  /** V1 error format. */
1845
- "$.xgafv"?: string;
2511
+ "$.xgafv"?:
2512
+ string;
1846
2513
  /** OAuth access token. */
1847
- access_token?: string;
2514
+ access_token?:
2515
+ string;
1848
2516
  /** Data format for response. */
1849
- alt?: string;
2517
+ alt?:
2518
+ string;
1850
2519
  /** JSONP */
1851
- callback?: string;
2520
+ callback?:
2521
+ string;
1852
2522
  /** Selector specifying which fields to include in a partial response. */
1853
- fields?: string;
2523
+ fields?:
2524
+ string;
1854
2525
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1855
- key?: string;
2526
+ key?:
2527
+ string;
1856
2528
  /** OAuth 2.0 token for the current user. */
1857
- oauth_token?: string;
2529
+ oauth_token?:
2530
+ string;
1858
2531
  /**
1859
2532
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}` or
1860
2533
  * `projects/{project-number-or-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`. Only models within the same
1861
2534
  * region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned.
1862
2535
  */
1863
- parent: string;
2536
+ parent:
2537
+ string;
1864
2538
  /** Returns response with indentations and line breaks. */
1865
- prettyPrint?: boolean;
2539
+ prettyPrint?:
2540
+ boolean;
1866
2541
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1867
- quotaUser?: string;
2542
+ quotaUser?:
2543
+ string;
1868
2544
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1869
- upload_protocol?: string;
2545
+ upload_protocol?:
2546
+ string;
1870
2547
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1871
- uploadType?: string;
2548
+ uploadType?:
2549
+ string;
1872
2550
  /** Request body */
1873
- resource: DetectLanguageRequest;
2551
+ resource:
2552
+ DetectLanguageRequest;
1874
2553
  }): Request<DetectLanguageResponse>;
1875
2554
  detectLanguage(request: {
1876
2555
  /** V1 error format. */
1877
- "$.xgafv"?: string;
2556
+ "$.xgafv"?:
2557
+ string;
1878
2558
  /** OAuth access token. */
1879
- access_token?: string;
2559
+ access_token?:
2560
+ string;
1880
2561
  /** Data format for response. */
1881
- alt?: string;
2562
+ alt?:
2563
+ string;
1882
2564
  /** JSONP */
1883
- callback?: string;
2565
+ callback?:
2566
+ string;
1884
2567
  /** Selector specifying which fields to include in a partial response. */
1885
- fields?: string;
2568
+ fields?:
2569
+ string;
1886
2570
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1887
- key?: string;
2571
+ key?:
2572
+ string;
1888
2573
  /** OAuth 2.0 token for the current user. */
1889
- oauth_token?: string;
2574
+ oauth_token?:
2575
+ string;
1890
2576
  /**
1891
2577
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}` or
1892
2578
  * `projects/{project-number-or-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`. Only models within the same
1893
2579
  * region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned.
1894
2580
  */
1895
- parent: string;
2581
+ parent:
2582
+ string;
1896
2583
  /** Returns response with indentations and line breaks. */
1897
- prettyPrint?: boolean;
2584
+ prettyPrint?:
2585
+ boolean;
1898
2586
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1899
- quotaUser?: string;
2587
+ quotaUser?:
2588
+ string;
1900
2589
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1901
- upload_protocol?: string;
2590
+ upload_protocol?:
2591
+ string;
1902
2592
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1903
- uploadType?: string;
2593
+ uploadType?:
2594
+ string;
1904
2595
  },
1905
2596
  body: DetectLanguageRequest): Request<DetectLanguageResponse>;
1906
2597
  /** Gets information about a location. */
1907
2598
  get(request?: {
1908
2599
  /** V1 error format. */
1909
- "$.xgafv"?: string;
2600
+ "$.xgafv"?:
2601
+ string;
1910
2602
  /** OAuth access token. */
1911
- access_token?: string;
2603
+ access_token?:
2604
+ string;
1912
2605
  /** Data format for response. */
1913
- alt?: string;
2606
+ alt?:
2607
+ string;
1914
2608
  /** JSONP */
1915
- callback?: string;
2609
+ callback?:
2610
+ string;
1916
2611
  /** Selector specifying which fields to include in a partial response. */
1917
- fields?: string;
2612
+ fields?:
2613
+ string;
1918
2614
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1919
- key?: string;
2615
+ key?:
2616
+ string;
1920
2617
  /** Resource name for the location. */
1921
- name: string;
2618
+ name:
2619
+ string;
1922
2620
  /** OAuth 2.0 token for the current user. */
1923
- oauth_token?: string;
2621
+ oauth_token?:
2622
+ string;
1924
2623
  /** Returns response with indentations and line breaks. */
1925
- prettyPrint?: boolean;
2624
+ prettyPrint?:
2625
+ boolean;
1926
2626
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1927
- quotaUser?: string;
2627
+ quotaUser?:
2628
+ string;
1928
2629
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1929
- upload_protocol?: string;
2630
+ upload_protocol?:
2631
+ string;
1930
2632
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1931
- uploadType?: string;
2633
+ uploadType?:
2634
+ string;
1932
2635
  }): Request<Location>;
1933
2636
  /** Returns a list of supported languages for translation. */
1934
2637
  getSupportedLanguages(request?: {
1935
2638
  /** V1 error format. */
1936
- "$.xgafv"?: string;
2639
+ "$.xgafv"?:
2640
+ string;
1937
2641
  /** OAuth access token. */
1938
- access_token?: string;
2642
+ access_token?:
2643
+ string;
1939
2644
  /** Data format for response. */
1940
- alt?: string;
2645
+ alt?:
2646
+ string;
1941
2647
  /** JSONP */
1942
- callback?: string;
2648
+ callback?:
2649
+ string;
1943
2650
  /** Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response. */
1944
- displayLanguageCode?: string;
2651
+ displayLanguageCode?:
2652
+ string;
1945
2653
  /** Selector specifying which fields to include in a partial response. */
1946
- fields?: string;
2654
+ fields?:
2655
+ string;
1947
2656
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1948
- key?: string;
2657
+ key?:
2658
+ string;
1949
2659
  /**
1950
2660
  * Optional. Get supported languages of this model. The format depends on model type: - AutoML Translation models:
1951
2661
  * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models:
1952
2662
  * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, Returns languages supported by the specified model. If missing, we get supported languages of
1953
2663
  * Google general NMT model.
1954
2664
  */
1955
- model?: string;
2665
+ model?:
2666
+ string;
1956
2667
  /** OAuth 2.0 token for the current user. */
1957
- oauth_token?: string;
2668
+ oauth_token?:
2669
+ string;
1958
2670
  /**
1959
2671
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
1960
2672
  * `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`.
1961
2673
  * Non-global location is required for AutoML models. Only models within the same region (have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
1962
2674
  */
1963
- parent: string;
2675
+ parent:
2676
+ string;
1964
2677
  /** Returns response with indentations and line breaks. */
1965
- prettyPrint?: boolean;
2678
+ prettyPrint?:
2679
+ boolean;
1966
2680
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
1967
- quotaUser?: string;
2681
+ quotaUser?:
2682
+ string;
1968
2683
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1969
- upload_protocol?: string;
2684
+ upload_protocol?:
2685
+ string;
1970
2686
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1971
- uploadType?: string;
2687
+ uploadType?:
2688
+ string;
1972
2689
  }): Request<SupportedLanguages>;
1973
2690
  /** Lists information about the supported locations for this service. */
1974
2691
  list(request?: {
1975
2692
  /** V1 error format. */
1976
- "$.xgafv"?: string;
2693
+ "$.xgafv"?:
2694
+ string;
1977
2695
  /** OAuth access token. */
1978
- access_token?: string;
2696
+ access_token?:
2697
+ string;
1979
2698
  /** Data format for response. */
1980
- alt?: string;
2699
+ alt?:
2700
+ string;
1981
2701
  /** JSONP */
1982
- callback?: string;
2702
+ callback?:
2703
+ string;
1983
2704
  /** Selector specifying which fields to include in a partial response. */
1984
- fields?: string;
2705
+ fields?:
2706
+ string;
1985
2707
  /**
1986
2708
  * A filter to narrow down results to a preferred subset. The filtering language accepts strings like `"displayName=tokyo"`, and is documented in more detail in
1987
2709
  * [AIP-160](https://google.aip.dev/160).
1988
2710
  */
1989
- filter?: string;
2711
+ filter?:
2712
+ string;
1990
2713
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
1991
- key?: string;
2714
+ key?:
2715
+ string;
1992
2716
  /** The resource that owns the locations collection, if applicable. */
1993
- name: string;
2717
+ name:
2718
+ string;
1994
2719
  /** OAuth 2.0 token for the current user. */
1995
- oauth_token?: string;
2720
+ oauth_token?:
2721
+ string;
1996
2722
  /** The maximum number of results to return. If not set, the service selects a default. */
1997
- pageSize?: number;
2723
+ pageSize?:
2724
+ number;
1998
2725
  /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
1999
- pageToken?: string;
2726
+ pageToken?:
2727
+ string;
2000
2728
  /** Returns response with indentations and line breaks. */
2001
- prettyPrint?: boolean;
2729
+ prettyPrint?:
2730
+ boolean;
2002
2731
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2003
- quotaUser?: string;
2732
+ quotaUser?:
2733
+ string;
2004
2734
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2005
- upload_protocol?: string;
2735
+ upload_protocol?:
2736
+ string;
2006
2737
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2007
- uploadType?: string;
2738
+ uploadType?:
2739
+ string;
2008
2740
  }): Request<ListLocationsResponse>;
2009
2741
  /** Translates documents in synchronous mode. */
2010
2742
  translateDocument(request: {
2011
2743
  /** V1 error format. */
2012
- "$.xgafv"?: string;
2744
+ "$.xgafv"?:
2745
+ string;
2013
2746
  /** OAuth access token. */
2014
- access_token?: string;
2747
+ access_token?:
2748
+ string;
2015
2749
  /** Data format for response. */
2016
- alt?: string;
2750
+ alt?:
2751
+ string;
2017
2752
  /** JSONP */
2018
- callback?: string;
2753
+ callback?:
2754
+ string;
2019
2755
  /** Selector specifying which fields to include in a partial response. */
2020
- fields?: string;
2756
+ fields?:
2757
+ string;
2021
2758
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2022
- key?: string;
2759
+ key?:
2760
+ string;
2023
2761
  /** OAuth 2.0 token for the current user. */
2024
- oauth_token?: string;
2762
+ oauth_token?:
2763
+ string;
2025
2764
  /**
2026
2765
  * Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use
2027
2766
  * `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`. Non-global location is required for requests using AutoML models or custom glossaries.
2028
2767
  * Models and glossaries must be within the same region (have the same location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
2029
2768
  */
2030
- parent: string;
2769
+ parent:
2770
+ string;
2031
2771
  /** Returns response with indentations and line breaks. */
2032
- prettyPrint?: boolean;
2772
+ prettyPrint?:
2773
+ boolean;
2033
2774
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2034
- quotaUser?: string;
2775
+ quotaUser?:
2776
+ string;
2035
2777
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2036
- upload_protocol?: string;
2778
+ upload_protocol?:
2779
+ string;
2037
2780
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2038
- uploadType?: string;
2781
+ uploadType?:
2782
+ string;
2039
2783
  /** Request body */
2040
- resource: TranslateDocumentRequest;
2784
+ resource:
2785
+ TranslateDocumentRequest;
2041
2786
  }): Request<TranslateDocumentResponse>;
2042
2787
  translateDocument(request: {
2043
2788
  /** V1 error format. */
2044
- "$.xgafv"?: string;
2789
+ "$.xgafv"?:
2790
+ string;
2045
2791
  /** OAuth access token. */
2046
- access_token?: string;
2792
+ access_token?:
2793
+ string;
2047
2794
  /** Data format for response. */
2048
- alt?: string;
2795
+ alt?:
2796
+ string;
2049
2797
  /** JSONP */
2050
- callback?: string;
2798
+ callback?:
2799
+ string;
2051
2800
  /** Selector specifying which fields to include in a partial response. */
2052
- fields?: string;
2801
+ fields?:
2802
+ string;
2053
2803
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2054
- key?: string;
2804
+ key?:
2805
+ string;
2055
2806
  /** OAuth 2.0 token for the current user. */
2056
- oauth_token?: string;
2807
+ oauth_token?:
2808
+ string;
2057
2809
  /**
2058
2810
  * Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use
2059
2811
  * `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`. Non-global location is required for requests using AutoML models or custom glossaries.
2060
2812
  * Models and glossaries must be within the same region (have the same location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
2061
2813
  */
2062
- parent: string;
2814
+ parent:
2815
+ string;
2063
2816
  /** Returns response with indentations and line breaks. */
2064
- prettyPrint?: boolean;
2817
+ prettyPrint?:
2818
+ boolean;
2065
2819
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2066
- quotaUser?: string;
2820
+ quotaUser?:
2821
+ string;
2067
2822
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2068
- upload_protocol?: string;
2823
+ upload_protocol?:
2824
+ string;
2069
2825
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2070
- uploadType?: string;
2826
+ uploadType?:
2827
+ string;
2071
2828
  },
2072
2829
  body: TranslateDocumentRequest): Request<TranslateDocumentResponse>;
2073
2830
  /** Translates input text and returns translated text. */
2074
2831
  translateText(request: {
2075
2832
  /** V1 error format. */
2076
- "$.xgafv"?: string;
2833
+ "$.xgafv"?:
2834
+ string;
2077
2835
  /** OAuth access token. */
2078
- access_token?: string;
2836
+ access_token?:
2837
+ string;
2079
2838
  /** Data format for response. */
2080
- alt?: string;
2839
+ alt?:
2840
+ string;
2081
2841
  /** JSONP */
2082
- callback?: string;
2842
+ callback?:
2843
+ string;
2083
2844
  /** Selector specifying which fields to include in a partial response. */
2084
- fields?: string;
2845
+ fields?:
2846
+ string;
2085
2847
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2086
- key?: string;
2848
+ key?:
2849
+ string;
2087
2850
  /** OAuth 2.0 token for the current user. */
2088
- oauth_token?: string;
2851
+ oauth_token?:
2852
+ string;
2089
2853
  /**
2090
2854
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
2091
2855
  * `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`.
2092
2856
  * Non-global location is required for requests using AutoML models or custom glossaries. Models and glossaries must be within the same region (have same location-id), otherwise an
2093
2857
  * INVALID_ARGUMENT (400) error is returned.
2094
2858
  */
2095
- parent: string;
2859
+ parent:
2860
+ string;
2096
2861
  /** Returns response with indentations and line breaks. */
2097
- prettyPrint?: boolean;
2862
+ prettyPrint?:
2863
+ boolean;
2098
2864
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2099
- quotaUser?: string;
2865
+ quotaUser?:
2866
+ string;
2100
2867
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2101
- upload_protocol?: string;
2868
+ upload_protocol?:
2869
+ string;
2102
2870
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2103
- uploadType?: string;
2871
+ uploadType?:
2872
+ string;
2104
2873
  /** Request body */
2105
- resource: TranslateTextRequest;
2874
+ resource:
2875
+ TranslateTextRequest;
2106
2876
  }): Request<TranslateTextResponse>;
2107
2877
  translateText(request: {
2108
2878
  /** V1 error format. */
2109
- "$.xgafv"?: string;
2879
+ "$.xgafv"?:
2880
+ string;
2110
2881
  /** OAuth access token. */
2111
- access_token?: string;
2882
+ access_token?:
2883
+ string;
2112
2884
  /** Data format for response. */
2113
- alt?: string;
2885
+ alt?:
2886
+ string;
2114
2887
  /** JSONP */
2115
- callback?: string;
2888
+ callback?:
2889
+ string;
2116
2890
  /** Selector specifying which fields to include in a partial response. */
2117
- fields?: string;
2891
+ fields?:
2892
+ string;
2118
2893
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2119
- key?: string;
2894
+ key?:
2895
+ string;
2120
2896
  /** OAuth 2.0 token for the current user. */
2121
- oauth_token?: string;
2897
+ oauth_token?:
2898
+ string;
2122
2899
  /**
2123
2900
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
2124
2901
  * `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`.
2125
2902
  * Non-global location is required for requests using AutoML models or custom glossaries. Models and glossaries must be within the same region (have same location-id), otherwise an
2126
2903
  * INVALID_ARGUMENT (400) error is returned.
2127
2904
  */
2128
- parent: string;
2905
+ parent:
2906
+ string;
2129
2907
  /** Returns response with indentations and line breaks. */
2130
- prettyPrint?: boolean;
2908
+ prettyPrint?:
2909
+ boolean;
2131
2910
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2132
- quotaUser?: string;
2911
+ quotaUser?:
2912
+ string;
2133
2913
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2134
- upload_protocol?: string;
2914
+ upload_protocol?:
2915
+ string;
2135
2916
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2136
- uploadType?: string;
2917
+ uploadType?:
2918
+ string;
2137
2919
  },
2138
2920
  body: TranslateTextRequest): Request<TranslateTextResponse>;
2139
- datasets: DatasetsResource;
2140
- glossaries: GlossariesResource;
2141
- models: ModelsResource;
2142
- operations: OperationsResource;
2921
+ datasets:
2922
+ DatasetsResource;
2923
+ glossaries:
2924
+ GlossariesResource;
2925
+ models:
2926
+ ModelsResource;
2927
+ operations:
2928
+ OperationsResource;
2143
2929
  }
2144
2930
  interface ProjectsResource {
2145
2931
  /** Detects the language of text within a request. */
2146
2932
  detectLanguage(request: {
2147
2933
  /** V1 error format. */
2148
- "$.xgafv"?: string;
2934
+ "$.xgafv"?:
2935
+ string;
2149
2936
  /** OAuth access token. */
2150
- access_token?: string;
2937
+ access_token?:
2938
+ string;
2151
2939
  /** Data format for response. */
2152
- alt?: string;
2940
+ alt?:
2941
+ string;
2153
2942
  /** JSONP */
2154
- callback?: string;
2943
+ callback?:
2944
+ string;
2155
2945
  /** Selector specifying which fields to include in a partial response. */
2156
- fields?: string;
2946
+ fields?:
2947
+ string;
2157
2948
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2158
- key?: string;
2949
+ key?:
2950
+ string;
2159
2951
  /** OAuth 2.0 token for the current user. */
2160
- oauth_token?: string;
2952
+ oauth_token?:
2953
+ string;
2161
2954
  /**
2162
2955
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}` or
2163
2956
  * `projects/{project-number-or-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`. Only models within the same
2164
2957
  * region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned.
2165
2958
  */
2166
- parent: string;
2959
+ parent:
2960
+ string;
2167
2961
  /** Returns response with indentations and line breaks. */
2168
- prettyPrint?: boolean;
2962
+ prettyPrint?:
2963
+ boolean;
2169
2964
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2170
- quotaUser?: string;
2965
+ quotaUser?:
2966
+ string;
2171
2967
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2172
- upload_protocol?: string;
2968
+ upload_protocol?:
2969
+ string;
2173
2970
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2174
- uploadType?: string;
2971
+ uploadType?:
2972
+ string;
2175
2973
  /** Request body */
2176
- resource: DetectLanguageRequest;
2974
+ resource:
2975
+ DetectLanguageRequest;
2177
2976
  }): Request<DetectLanguageResponse>;
2178
2977
  detectLanguage(request: {
2179
2978
  /** V1 error format. */
2180
- "$.xgafv"?: string;
2979
+ "$.xgafv"?:
2980
+ string;
2181
2981
  /** OAuth access token. */
2182
- access_token?: string;
2982
+ access_token?:
2983
+ string;
2183
2984
  /** Data format for response. */
2184
- alt?: string;
2985
+ alt?:
2986
+ string;
2185
2987
  /** JSONP */
2186
- callback?: string;
2988
+ callback?:
2989
+ string;
2187
2990
  /** Selector specifying which fields to include in a partial response. */
2188
- fields?: string;
2991
+ fields?:
2992
+ string;
2189
2993
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2190
- key?: string;
2994
+ key?:
2995
+ string;
2191
2996
  /** OAuth 2.0 token for the current user. */
2192
- oauth_token?: string;
2997
+ oauth_token?:
2998
+ string;
2193
2999
  /**
2194
3000
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}/locations/{location-id}` or
2195
3001
  * `projects/{project-number-or-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`. Only models within the same
2196
3002
  * region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned.
2197
3003
  */
2198
- parent: string;
3004
+ parent:
3005
+ string;
2199
3006
  /** Returns response with indentations and line breaks. */
2200
- prettyPrint?: boolean;
3007
+ prettyPrint?:
3008
+ boolean;
2201
3009
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2202
- quotaUser?: string;
3010
+ quotaUser?:
3011
+ string;
2203
3012
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2204
- upload_protocol?: string;
3013
+ upload_protocol?:
3014
+ string;
2205
3015
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2206
- uploadType?: string;
3016
+ uploadType?:
3017
+ string;
2207
3018
  },
2208
3019
  body: DetectLanguageRequest): Request<DetectLanguageResponse>;
2209
3020
  /** Returns a list of supported languages for translation. */
2210
3021
  getSupportedLanguages(request?: {
2211
3022
  /** V1 error format. */
2212
- "$.xgafv"?: string;
3023
+ "$.xgafv"?:
3024
+ string;
2213
3025
  /** OAuth access token. */
2214
- access_token?: string;
3026
+ access_token?:
3027
+ string;
2215
3028
  /** Data format for response. */
2216
- alt?: string;
3029
+ alt?:
3030
+ string;
2217
3031
  /** JSONP */
2218
- callback?: string;
3032
+ callback?:
3033
+ string;
2219
3034
  /** Optional. The language to use to return localized, human readable names of supported languages. If missing, then display names are not returned in a response. */
2220
- displayLanguageCode?: string;
3035
+ displayLanguageCode?:
3036
+ string;
2221
3037
  /** Selector specifying which fields to include in a partial response. */
2222
- fields?: string;
3038
+ fields?:
3039
+ string;
2223
3040
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2224
- key?: string;
3041
+ key?:
3042
+ string;
2225
3043
  /**
2226
3044
  * Optional. Get supported languages of this model. The format depends on model type: - AutoML Translation models:
2227
3045
  * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models:
2228
3046
  * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, Returns languages supported by the specified model. If missing, we get supported languages of
2229
3047
  * Google general NMT model.
2230
3048
  */
2231
- model?: string;
3049
+ model?:
3050
+ string;
2232
3051
  /** OAuth 2.0 token for the current user. */
2233
- oauth_token?: string;
3052
+ oauth_token?:
3053
+ string;
2234
3054
  /**
2235
3055
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
2236
3056
  * `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`.
2237
3057
  * Non-global location is required for AutoML models. Only models within the same region (have same location-id) can be used, otherwise an INVALID_ARGUMENT (400) error is returned.
2238
3058
  */
2239
- parent: string;
3059
+ parent:
3060
+ string;
2240
3061
  /** Returns response with indentations and line breaks. */
2241
- prettyPrint?: boolean;
3062
+ prettyPrint?:
3063
+ boolean;
2242
3064
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2243
- quotaUser?: string;
3065
+ quotaUser?:
3066
+ string;
2244
3067
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2245
- upload_protocol?: string;
3068
+ upload_protocol?:
3069
+ string;
2246
3070
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2247
- uploadType?: string;
3071
+ uploadType?:
3072
+ string;
2248
3073
  }): Request<SupportedLanguages>;
2249
3074
  /** Translates input text and returns translated text. */
2250
3075
  translateText(request: {
2251
3076
  /** V1 error format. */
2252
- "$.xgafv"?: string;
3077
+ "$.xgafv"?:
3078
+ string;
2253
3079
  /** OAuth access token. */
2254
- access_token?: string;
3080
+ access_token?:
3081
+ string;
2255
3082
  /** Data format for response. */
2256
- alt?: string;
3083
+ alt?:
3084
+ string;
2257
3085
  /** JSONP */
2258
- callback?: string;
3086
+ callback?:
3087
+ string;
2259
3088
  /** Selector specifying which fields to include in a partial response. */
2260
- fields?: string;
3089
+ fields?:
3090
+ string;
2261
3091
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2262
- key?: string;
3092
+ key?:
3093
+ string;
2263
3094
  /** OAuth 2.0 token for the current user. */
2264
- oauth_token?: string;
3095
+ oauth_token?:
3096
+ string;
2265
3097
  /**
2266
3098
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
2267
3099
  * `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`.
2268
3100
  * Non-global location is required for requests using AutoML models or custom glossaries. Models and glossaries must be within the same region (have same location-id), otherwise an
2269
3101
  * INVALID_ARGUMENT (400) error is returned.
2270
3102
  */
2271
- parent: string;
3103
+ parent:
3104
+ string;
2272
3105
  /** Returns response with indentations and line breaks. */
2273
- prettyPrint?: boolean;
3106
+ prettyPrint?:
3107
+ boolean;
2274
3108
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2275
- quotaUser?: string;
3109
+ quotaUser?:
3110
+ string;
2276
3111
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2277
- upload_protocol?: string;
3112
+ upload_protocol?:
3113
+ string;
2278
3114
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2279
- uploadType?: string;
3115
+ uploadType?:
3116
+ string;
2280
3117
  /** Request body */
2281
- resource: TranslateTextRequest;
3118
+ resource:
3119
+ TranslateTextRequest;
2282
3120
  }): Request<TranslateTextResponse>;
2283
3121
  translateText(request: {
2284
3122
  /** V1 error format. */
2285
- "$.xgafv"?: string;
3123
+ "$.xgafv"?:
3124
+ string;
2286
3125
  /** OAuth access token. */
2287
- access_token?: string;
3126
+ access_token?:
3127
+ string;
2288
3128
  /** Data format for response. */
2289
- alt?: string;
3129
+ alt?:
3130
+ string;
2290
3131
  /** JSONP */
2291
- callback?: string;
3132
+ callback?:
3133
+ string;
2292
3134
  /** Selector specifying which fields to include in a partial response. */
2293
- fields?: string;
3135
+ fields?:
3136
+ string;
2294
3137
  /** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
2295
- key?: string;
3138
+ key?:
3139
+ string;
2296
3140
  /** OAuth 2.0 token for the current user. */
2297
- oauth_token?: string;
3141
+ oauth_token?:
3142
+ string;
2298
3143
  /**
2299
3144
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
2300
3145
  * `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use `projects/{project-number-or-id}/locations/global` or `projects/{project-number-or-id}`.
2301
3146
  * Non-global location is required for requests using AutoML models or custom glossaries. Models and glossaries must be within the same region (have same location-id), otherwise an
2302
3147
  * INVALID_ARGUMENT (400) error is returned.
2303
3148
  */
2304
- parent: string;
3149
+ parent:
3150
+ string;
2305
3151
  /** Returns response with indentations and line breaks. */
2306
- prettyPrint?: boolean;
3152
+ prettyPrint?:
3153
+ boolean;
2307
3154
  /** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
2308
- quotaUser?: string;
3155
+ quotaUser?:
3156
+ string;
2309
3157
  /** Upload protocol for media (e.g. "raw", "multipart"). */
2310
- upload_protocol?: string;
3158
+ upload_protocol?:
3159
+ string;
2311
3160
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2312
- uploadType?: string;
3161
+ uploadType?:
3162
+ string;
2313
3163
  },
2314
3164
  body: TranslateTextRequest): Request<TranslateTextResponse>;
2315
- locations: LocationsResource;
3165
+ locations:
3166
+ LocationsResource;
2316
3167
  }
2317
3168
 
2318
3169
  const projects: ProjectsResource;