@maxim_mazurok/gapi.client.translate-v3beta1 0.0.20230407 → 0.0.20230428

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 +981 -491
  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=v3beta1
12
- // Revision: 20230407
12
+ // Revision: 20230428
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,111 +50,138 @@ 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 BCP-47 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 BCP-47 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/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 DetectedLanguage {
120
138
  /** The confidence of the detection result for this language. */
121
- confidence?: number;
139
+ confidence?:
140
+ number;
122
141
  /** The BCP-47 language code of source content in the request, detected automatically. */
123
- languageCode?: string;
142
+ languageCode?:
143
+ string;
124
144
  }
125
145
  interface DetectLanguageRequest {
126
146
  /** The content of the input stored as a string. */
127
- content?: string;
147
+ content?:
148
+ string;
128
149
  /**
129
150
  * 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,
130
151
  * numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See
131
152
  * https://cloud.google.com/translate/docs/labels for more information.
132
153
  */
133
- labels?: { [P in string]: string };
154
+ labels?:
155
+ { [P in string]: string };
134
156
  /** Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html". */
135
- mimeType?: string;
157
+ mimeType?:
158
+ string;
136
159
  /**
137
160
  * 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
138
161
  * model is currently supported: `projects/{project-number-or-id}/locations/{location-id}/models/language-detection/default`. If not specified, the default model is used.
139
162
  */
140
- model?: string;
163
+ model?:
164
+ string;
141
165
  }
142
166
  interface DetectLanguageResponse {
143
167
  /** A list of detected languages sorted by detection confidence in descending order. The most probable language first. */
144
- languages?: DetectedLanguage[];
168
+ languages?:
169
+ DetectedLanguage[];
145
170
  }
146
171
  interface DocumentInputConfig {
147
172
  /** Document's content represented as a stream of bytes. */
148
- content?: string;
173
+ content?:
174
+ string;
149
175
  /** Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf */
150
- gcsSource?: GcsSource;
176
+ gcsSource?:
177
+ GcsSource;
151
178
  /**
152
179
  * 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
153
180
  * the mime_type must be provided. Currently supported mime types are: - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document -
154
181
  * application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
155
182
  */
156
- mimeType?: string;
183
+ mimeType?:
184
+ string;
157
185
  }
158
186
  interface DocumentOutputConfig {
159
187
  /**
@@ -169,51 +197,65 @@ declare namespace gapi.client {
169
197
  * "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
170
198
  * partial outputs. If there is any error during document translation, no output will be stored in the Cloud Storage bucket.
171
199
  */
172
- gcsDestination?: GcsDestination;
200
+ gcsDestination?:
201
+ GcsDestination;
173
202
  /**
174
203
  * 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
175
204
  * output mime type to be the same as input mime type. - application/pdf - application/vnd.openxmlformats-officedocument.wordprocessingml.document -
176
205
  * application/vnd.openxmlformats-officedocument.presentationml.presentation - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
177
206
  */
178
- mimeType?: string;
207
+ mimeType?:
208
+ string;
179
209
  }
180
210
  interface DocumentTranslation {
181
211
  /** 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. */
182
- byteStreamOutputs?: string[];
212
+ byteStreamOutputs?:
213
+ string[];
183
214
  /**
184
215
  * 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.
185
216
  * If the source language was passed, auto-detection of the language does not occur and this field is empty.
186
217
  */
187
- detectedLanguageCode?: string;
218
+ detectedLanguageCode?:
219
+ string;
188
220
  /** The translated document's mime type. */
189
- mimeType?: string;
221
+ mimeType?:
222
+ string;
190
223
  }
191
224
  // tslint:disable-next-line:no-empty-interface
192
225
  interface Empty {
193
226
  }
194
227
  interface GcsDestination {
195
228
  /** Required. There must be no files under 'output_uri_prefix'. 'output_uri_prefix' must end with "/" and start with "gs://", otherwise an INVALID_ARGUMENT (400) error is returned. */
196
- outputUriPrefix?: string;
229
+ outputUriPrefix?:
230
+ string;
197
231
  }
198
232
  interface GcsSource {
199
233
  /** Required. Source data URI. For example, `gs://my_bucket/my_object`. */
200
- inputUri?: string;
234
+ inputUri?:
235
+ string;
201
236
  }
202
237
  interface Glossary {
203
238
  /** Output only. When the glossary creation was finished. */
204
- endTime?: string;
239
+ endTime?:
240
+ string;
205
241
  /** Output only. The number of entries defined in the glossary. */
206
- entryCount?: number;
242
+ entryCount?:
243
+ number;
207
244
  /** Required. Provides examples to build the glossary from. Total glossary must not exceed 10M Unicode codepoints. */
208
- inputConfig?: GlossaryInputConfig;
245
+ inputConfig?:
246
+ GlossaryInputConfig;
209
247
  /** Used with equivalent term set glossaries. */
210
- languageCodesSet?: LanguageCodesSet;
248
+ languageCodesSet?:
249
+ LanguageCodesSet;
211
250
  /** Used with unidirectional glossaries. */
212
- languagePair?: LanguageCodePair;
251
+ languagePair?:
252
+ LanguageCodePair;
213
253
  /** Required. The resource name of the glossary. Glossary names have the form `projects/{project-number-or-id}/locations/{location-id}/glossaries/{glossary-id}`. */
214
- name?: string;
254
+ name?:
255
+ string;
215
256
  /** Output only. When CreateGlossary was called. */
216
- submitTime?: string;
257
+ submitTime?:
258
+ string;
217
259
  }
218
260
  interface GlossaryInputConfig {
219
261
  /**
@@ -223,7 +265,8 @@ declare namespace gapi.client {
223
265
  * names. - TMX (`.tmx`): TMX file with parallel data defining source/target term pairs. For equivalent term sets glossaries: - CSV (`.csv`): Multi-column CSV file defining equivalent
224
266
  * glossary terms in multiple languages. See documentation for more information - [glossaries](https://cloud.google.com/translate/docs/advanced/glossary).
225
267
  */
226
- gcsSource?: GcsSource;
268
+ gcsSource?:
269
+ GcsSource;
227
270
  }
228
271
  interface InputConfig {
229
272
  /**
@@ -234,80 +277,101 @@ declare namespace gapi.client {
234
277
  * 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
235
278
  * of text.
236
279
  */
237
- gcsSource?: GcsSource;
280
+ gcsSource?:
281
+ GcsSource;
238
282
  /**
239
283
  * 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
240
284
  * must be "text/plain" or empty.
241
285
  */
242
- mimeType?: string;
286
+ mimeType?:
287
+ string;
243
288
  }
244
289
  interface LanguageCodePair {
245
290
  /** Required. The BCP-47 language code of the input text, for example, "en-US". Expected to be an exact match for GlossaryTerm.language_code. */
246
- sourceLanguageCode?: string;
291
+ sourceLanguageCode?:
292
+ string;
247
293
  /** Required. The BCP-47 language code for translation output, for example, "zh-CN". Expected to be an exact match for GlossaryTerm.language_code. */
248
- targetLanguageCode?: string;
294
+ targetLanguageCode?:
295
+ string;
249
296
  }
250
297
  interface LanguageCodesSet {
251
298
  /**
252
299
  * The BCP-47 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
253
300
  * GlossaryTerm.language_code.
254
301
  */
255
- languageCodes?: string[];
302
+ languageCodes?:
303
+ string[];
256
304
  }
257
305
  interface ListGlossariesResponse {
258
306
  /** The list of glossaries for a project. */
259
- glossaries?: Glossary[];
307
+ glossaries?:
308
+ Glossary[];
260
309
  /**
261
310
  * 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
262
311
  * results.
263
312
  */
264
- nextPageToken?: string;
313
+ nextPageToken?:
314
+ string;
265
315
  }
266
316
  interface ListLocationsResponse {
267
317
  /** A list of locations that matches the specified filter in the request. */
268
- locations?: Location[];
318
+ locations?:
319
+ Location[];
269
320
  /** The standard List next-page token. */
270
- nextPageToken?: string;
321
+ nextPageToken?:
322
+ string;
271
323
  }
272
324
  interface ListOperationsResponse {
273
325
  /** The standard List next-page token. */
274
- nextPageToken?: string;
326
+ nextPageToken?:
327
+ string;
275
328
  /** A list of operations that matches the specified filter in the request. */
276
- operations?: Operation[];
329
+ operations?:
330
+ Operation[];
277
331
  }
278
332
  interface Location {
279
333
  /** The friendly name for this location, typically a nearby city name. For example, "Tokyo". */
280
- displayName?: string;
334
+ displayName?:
335
+ string;
281
336
  /** Cross-service attributes for the location. For example {"cloud.googleapis.com/region": "us-east1"} */
282
- labels?: { [P in string]: string };
337
+ labels?:
338
+ { [P in string]: string };
283
339
  /** The canonical id for this location. For example: `"us-east1"`. */
284
- locationId?: string;
340
+ locationId?:
341
+ string;
285
342
  /** Service-specific metadata. For example the available capacity at the given location. */
286
- metadata?: { [P in string]: any };
343
+ metadata?:
344
+ { [P in string]: any };
287
345
  /** Resource name for the location, which may vary between implementations. For example: `"projects/example-project/locations/us-east1"` */
288
- name?: string;
346
+ name?:
347
+ string;
289
348
  }
290
349
  interface Operation {
291
350
  /** 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. */
292
- done?: boolean;
351
+ done?:
352
+ boolean;
293
353
  /** The error result of the operation in case of failure or cancellation. */
294
- error?: Status;
354
+ error?:
355
+ Status;
295
356
  /**
296
357
  * 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
297
358
  * metadata. Any method that returns a long-running operation should document the metadata type, if any.
298
359
  */
299
- metadata?: { [P in string]: any };
360
+ metadata?:
361
+ { [P in string]: any };
300
362
  /**
301
363
  * 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
302
364
  * with `operations/{unique_id}`.
303
365
  */
304
- name?: string;
366
+ name?:
367
+ string;
305
368
  /**
306
369
  * 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
307
370
  * 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
308
371
  * original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
309
372
  */
310
- response?: { [P in string]: any };
373
+ response?:
374
+ { [P in string]: any };
311
375
  }
312
376
  interface OutputConfig {
313
377
  /**
@@ -331,283 +395,377 @@ declare namespace gapi.client {
331
395
  * 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
332
396
  * will be generated that contains error details. glossary_error_file has format of gs://translation_test/a_b_c_'trg'_glossary_errors.[extension]
333
397
  */
334
- gcsDestination?: GcsDestination;
398
+ gcsDestination?:
399
+ GcsDestination;
335
400
  }
336
401
  interface Status {
337
402
  /** The status code, which should be an enum value of google.rpc.Code. */
338
- code?: number;
403
+ code?:
404
+ number;
339
405
  /** A list of messages that carry the error details. There is a common set of message types for APIs to use. */
340
- details?: Array<{ [P in string]: any }>;
406
+ details?:
407
+ Array<{ [P in string]: any }>;
341
408
  /**
342
409
  * 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
343
410
  * client.
344
411
  */
345
- message?: string;
412
+ message?:
413
+ string;
346
414
  }
347
415
  interface SupportedLanguage {
348
416
  /** Human readable name of the language localized in the display language specified in the request. */
349
- displayName?: string;
417
+ displayName?:
418
+ string;
350
419
  /**
351
420
  * Supported language code, generally consisting of its ISO 639-1 identifier, for example, 'en', 'ja'. In certain cases, BCP-47 codes including language and region identifiers are
352
421
  * returned (for example, 'zh-TW' and 'zh-CN')
353
422
  */
354
- languageCode?: string;
423
+ languageCode?:
424
+ string;
355
425
  /** Can be used as source language. */
356
- supportSource?: boolean;
426
+ supportSource?:
427
+ boolean;
357
428
  /** Can be used as target language. */
358
- supportTarget?: boolean;
429
+ supportTarget?:
430
+ boolean;
359
431
  }
360
432
  interface SupportedLanguages {
361
433
  /** A list of supported language responses. This list contains an entry for each language the Translation API supports. */
362
- languages?: SupportedLanguage[];
434
+ languages?:
435
+ SupportedLanguage[];
363
436
  }
364
437
  interface TranslateDocumentRequest {
365
438
  /**
366
439
  * 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
367
440
  * https://cloud.google.com/translate/attribution#attribution_and_logos
368
441
  */
369
- customizedAttribution?: string;
442
+ customizedAttribution?:
443
+ string;
370
444
  /** Required. Input configurations. */
371
- documentInputConfig?: DocumentInputConfig;
445
+ documentInputConfig?:
446
+ DocumentInputConfig;
372
447
  /**
373
448
  * 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
374
449
  * be returned through a byte-stream and its output mime type will be the same as the input file's mime type.
375
450
  */
376
- documentOutputConfig?: DocumentOutputConfig;
451
+ documentOutputConfig?:
452
+ DocumentOutputConfig;
377
453
  /** Optional. If true, enable auto rotation correction in DVS. */
378
- enableRotationCorrection?: boolean;
454
+ enableRotationCorrection?:
455
+ boolean;
379
456
  /**
380
457
  * 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
381
458
  * is_translate_native_pdf_only: false && pdf_native_only: false
382
459
  */
383
- enableShadowRemovalNativePdf?: boolean;
460
+ enableShadowRemovalNativePdf?:
461
+ boolean;
384
462
  /** 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. */
385
- glossaryConfig?: TranslateTextGlossaryConfig;
463
+ glossaryConfig?:
464
+ TranslateTextGlossaryConfig;
386
465
  /** 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. */
387
- isTranslateNativePdfOnly?: boolean;
466
+ isTranslateNativePdfOnly?:
467
+ boolean;
388
468
  /**
389
469
  * 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,
390
470
  * numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See
391
471
  * https://cloud.google.com/translate/docs/advanced/labels for more information.
392
472
  */
393
- labels?: { [P in string]: string };
473
+ labels?:
474
+ { [P in string]: string };
394
475
  /**
395
476
  * Optional. The `model` type requested for this translation. The format depends on model type: - AutoML Translation models:
396
477
  * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models:
397
478
  * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, If not provided, the default Google model (NMT) will be used for translation.
398
479
  */
399
- model?: string;
480
+ model?:
481
+ string;
400
482
  /**
401
483
  * Optional. The BCP-47 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 language
402
484
  * 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 the request
403
485
  * contains a glossary or a custom model.
404
486
  */
405
- sourceLanguageCode?: string;
487
+ sourceLanguageCode?:
488
+ string;
406
489
  /** Required. The BCP-47 language code to use for translation of the input document, set to one of the language codes listed in Language Support. */
407
- targetLanguageCode?: string;
490
+ targetLanguageCode?:
491
+ string;
408
492
  }
409
493
  interface TranslateDocumentResponse {
410
494
  /** Translated document. */
411
- documentTranslation?: DocumentTranslation;
495
+ documentTranslation?:
496
+ DocumentTranslation;
412
497
  /** The `glossary_config` used for this translation. */
413
- glossaryConfig?: TranslateTextGlossaryConfig;
498
+ glossaryConfig?:
499
+ TranslateTextGlossaryConfig;
414
500
  /** 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. */
415
- glossaryDocumentTranslation?: DocumentTranslation;
501
+ glossaryDocumentTranslation?:
502
+ DocumentTranslation;
416
503
  /**
417
504
  * 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:
418
505
  * `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`.
419
506
  */
420
- model?: string;
507
+ model?:
508
+ string;
421
509
  }
422
510
  interface TranslateTextGlossaryConfig {
423
511
  /** Required. Specifies the glossary used for this translation. Use this format: projects/*‍/locations/*‍/glossaries/* */
424
- glossary?: string;
512
+ glossary?:
513
+ string;
425
514
  /** Optional. Indicates match is case-insensitive. Default value is false if missing. */
426
- ignoreCase?: boolean;
515
+ ignoreCase?:
516
+ boolean;
427
517
  }
428
518
  interface TranslateTextRequest {
429
519
  /**
430
520
  * Required. The content of the input in string format. We recommend the total content be less than 30k codepoints. The max length of this field is 1024. Use BatchTranslateText for
431
521
  * larger text.
432
522
  */
433
- contents?: string[];
523
+ contents?:
524
+ string[];
434
525
  /** 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. */
435
- glossaryConfig?: TranslateTextGlossaryConfig;
526
+ glossaryConfig?:
527
+ TranslateTextGlossaryConfig;
436
528
  /**
437
529
  * 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,
438
530
  * numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See
439
531
  * https://cloud.google.com/translate/docs/labels for more information.
440
532
  */
441
- labels?: { [P in string]: string };
533
+ labels?:
534
+ { [P in string]: string };
442
535
  /** Optional. The format of the source text, for example, "text/html", "text/plain". If left blank, the MIME type defaults to "text/html". */
443
- mimeType?: string;
536
+ mimeType?:
537
+ string;
444
538
  /**
445
539
  * Optional. The `model` type requested for this translation. The format depends on model type: - AutoML Translation models:
446
540
  * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models:
447
541
  * `projects/{project-number-or-id}/locations/{location-id}/models/general/nmt`, For global (non-regionalized) requests, use `location-id` `global`. For example,
448
542
  * `projects/{project-number-or-id}/locations/global/models/general/nmt`. If not provided, the default Google model (NMT) will be used
449
543
  */
450
- model?: string;
544
+ model?:
545
+ string;
451
546
  /**
452
547
  * Optional. The BCP-47 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
453
548
  * isn't specified, the API attempts to identify the source language automatically and returns the source language within the response.
454
549
  */
455
- sourceLanguageCode?: string;
550
+ sourceLanguageCode?:
551
+ string;
456
552
  /** Required. The BCP-47 language code to use for translation of the input text, set to one of the language codes listed in Language Support. */
457
- targetLanguageCode?: string;
553
+ targetLanguageCode?:
554
+ string;
458
555
  }
459
556
  interface TranslateTextResponse {
460
557
  /** 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`. */
461
- glossaryTranslations?: Translation[];
558
+ glossaryTranslations?:
559
+ Translation[];
462
560
  /** Text translation responses with no glossary applied. This field has the same length as `contents`. */
463
- translations?: Translation[];
561
+ translations?:
562
+ Translation[];
464
563
  }
465
564
  interface Translation {
466
565
  /**
467
566
  * The BCP-47 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
468
567
  * passed, auto-detection of the language does not occur and this field is empty.
469
568
  */
470
- detectedLanguageCode?: string;
569
+ detectedLanguageCode?:
570
+ string;
471
571
  /** The `glossary_config` used for this translation. */
472
- glossaryConfig?: TranslateTextGlossaryConfig;
572
+ glossaryConfig?:
573
+ TranslateTextGlossaryConfig;
473
574
  /**
474
575
  * 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
475
576
  * `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`.
476
577
  */
477
- model?: string;
578
+ model?:
579
+ string;
478
580
  /** Text translated into the target language. If an error occurs during translation, this field might be excluded from the response. */
479
- translatedText?: string;
581
+ translatedText?:
582
+ string;
480
583
  }
481
584
  interface WaitOperationRequest {
482
585
  /**
483
586
  * 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
484
587
  * specified, the shorter one will be used.
485
588
  */
486
- timeout?: string;
589
+ timeout?:
590
+ string;
487
591
  }
488
592
  interface GlossariesResource {
489
593
  /** Creates a glossary and returns the long-running operation. Returns NOT_FOUND, if the project doesn't exist. */
490
594
  create(request: {
491
595
  /** V1 error format. */
492
- "$.xgafv"?: string;
596
+ "$.xgafv"?:
597
+ string;
493
598
  /** OAuth access token. */
494
- access_token?: string;
599
+ access_token?:
600
+ string;
495
601
  /** Data format for response. */
496
- alt?: string;
602
+ alt?:
603
+ string;
497
604
  /** JSONP */
498
- callback?: string;
605
+ callback?:
606
+ string;
499
607
  /** Selector specifying which fields to include in a partial response. */
500
- fields?: string;
608
+ fields?:
609
+ string;
501
610
  /** 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. */
502
- key?: string;
611
+ key?:
612
+ string;
503
613
  /** OAuth 2.0 token for the current user. */
504
- oauth_token?: string;
614
+ oauth_token?:
615
+ string;
505
616
  /** Required. The project name. */
506
- parent: string;
617
+ parent:
618
+ string;
507
619
  /** Returns response with indentations and line breaks. */
508
- prettyPrint?: boolean;
620
+ prettyPrint?:
621
+ boolean;
509
622
  /** 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. */
510
- quotaUser?: string;
623
+ quotaUser?:
624
+ string;
511
625
  /** Upload protocol for media (e.g. "raw", "multipart"). */
512
- upload_protocol?: string;
626
+ upload_protocol?:
627
+ string;
513
628
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
514
- uploadType?: string;
629
+ uploadType?:
630
+ string;
515
631
  /** Request body */
516
- resource: Glossary;
632
+ resource:
633
+ Glossary;
517
634
  }): Request<Operation>;
518
635
  create(request: {
519
636
  /** V1 error format. */
520
- "$.xgafv"?: string;
637
+ "$.xgafv"?:
638
+ string;
521
639
  /** OAuth access token. */
522
- access_token?: string;
640
+ access_token?:
641
+ string;
523
642
  /** Data format for response. */
524
- alt?: string;
643
+ alt?:
644
+ string;
525
645
  /** JSONP */
526
- callback?: string;
646
+ callback?:
647
+ string;
527
648
  /** Selector specifying which fields to include in a partial response. */
528
- fields?: string;
649
+ fields?:
650
+ string;
529
651
  /** 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. */
530
- key?: string;
652
+ key?:
653
+ string;
531
654
  /** OAuth 2.0 token for the current user. */
532
- oauth_token?: string;
655
+ oauth_token?:
656
+ string;
533
657
  /** Required. The project name. */
534
- parent: string;
658
+ parent:
659
+ string;
535
660
  /** Returns response with indentations and line breaks. */
536
- prettyPrint?: boolean;
661
+ prettyPrint?:
662
+ boolean;
537
663
  /** 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. */
538
- quotaUser?: string;
664
+ quotaUser?:
665
+ string;
539
666
  /** Upload protocol for media (e.g. "raw", "multipart"). */
540
- upload_protocol?: string;
667
+ upload_protocol?:
668
+ string;
541
669
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
542
- uploadType?: string;
670
+ uploadType?:
671
+ string;
543
672
  },
544
673
  body: Glossary): Request<Operation>;
545
674
  /** Deletes a glossary, or cancels glossary construction if the glossary isn't created yet. Returns NOT_FOUND, if the glossary doesn't exist. */
546
675
  delete(request?: {
547
676
  /** V1 error format. */
548
- "$.xgafv"?: string;
677
+ "$.xgafv"?:
678
+ string;
549
679
  /** OAuth access token. */
550
- access_token?: string;
680
+ access_token?:
681
+ string;
551
682
  /** Data format for response. */
552
- alt?: string;
683
+ alt?:
684
+ string;
553
685
  /** JSONP */
554
- callback?: string;
686
+ callback?:
687
+ string;
555
688
  /** Selector specifying which fields to include in a partial response. */
556
- fields?: string;
689
+ fields?:
690
+ string;
557
691
  /** 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. */
558
- key?: string;
692
+ key?:
693
+ string;
559
694
  /** Required. The name of the glossary to delete. */
560
- name: string;
695
+ name:
696
+ string;
561
697
  /** OAuth 2.0 token for the current user. */
562
- oauth_token?: string;
698
+ oauth_token?:
699
+ string;
563
700
  /** Returns response with indentations and line breaks. */
564
- prettyPrint?: boolean;
701
+ prettyPrint?:
702
+ boolean;
565
703
  /** 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. */
566
- quotaUser?: string;
704
+ quotaUser?:
705
+ string;
567
706
  /** Upload protocol for media (e.g. "raw", "multipart"). */
568
- upload_protocol?: string;
707
+ upload_protocol?:
708
+ string;
569
709
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
570
- uploadType?: string;
710
+ uploadType?:
711
+ string;
571
712
  }): Request<Operation>;
572
713
  /** Gets a glossary. Returns NOT_FOUND, if the glossary doesn't exist. */
573
714
  get(request?: {
574
715
  /** V1 error format. */
575
- "$.xgafv"?: string;
716
+ "$.xgafv"?:
717
+ string;
576
718
  /** OAuth access token. */
577
- access_token?: string;
719
+ access_token?:
720
+ string;
578
721
  /** Data format for response. */
579
- alt?: string;
722
+ alt?:
723
+ string;
580
724
  /** JSONP */
581
- callback?: string;
725
+ callback?:
726
+ string;
582
727
  /** Selector specifying which fields to include in a partial response. */
583
- fields?: string;
728
+ fields?:
729
+ string;
584
730
  /** 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. */
585
- key?: string;
731
+ key?:
732
+ string;
586
733
  /** Required. The name of the glossary to retrieve. */
587
- name: string;
734
+ name:
735
+ string;
588
736
  /** OAuth 2.0 token for the current user. */
589
- oauth_token?: string;
737
+ oauth_token?:
738
+ string;
590
739
  /** Returns response with indentations and line breaks. */
591
- prettyPrint?: boolean;
740
+ prettyPrint?:
741
+ boolean;
592
742
  /** 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. */
593
- quotaUser?: string;
743
+ quotaUser?:
744
+ string;
594
745
  /** Upload protocol for media (e.g. "raw", "multipart"). */
595
- upload_protocol?: string;
746
+ upload_protocol?:
747
+ string;
596
748
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
597
- uploadType?: string;
749
+ uploadType?:
750
+ string;
598
751
  }): Request<Glossary>;
599
752
  /** Lists glossaries in a project. Returns NOT_FOUND, if the project doesn't exist. */
600
753
  list(request?: {
601
754
  /** V1 error format. */
602
- "$.xgafv"?: string;
755
+ "$.xgafv"?:
756
+ string;
603
757
  /** OAuth access token. */
604
- access_token?: string;
758
+ access_token?:
759
+ string;
605
760
  /** Data format for response. */
606
- alt?: string;
761
+ alt?:
762
+ string;
607
763
  /** JSONP */
608
- callback?: string;
764
+ callback?:
765
+ string;
609
766
  /** Selector specifying which fields to include in a partial response. */
610
- fields?: string;
767
+ fields?:
768
+ string;
611
769
  /**
612
770
  * 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
613
771
  * 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
@@ -616,28 +774,38 @@ declare namespace gapi.client {
616
774
  * 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
617
775
  * 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.
618
776
  */
619
- filter?: string;
777
+ filter?:
778
+ string;
620
779
  /** 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. */
621
- key?: string;
780
+ key?:
781
+ string;
622
782
  /** OAuth 2.0 token for the current user. */
623
- oauth_token?: string;
783
+ oauth_token?:
784
+ string;
624
785
  /** Optional. Requested page size. The server may return fewer glossaries than requested. If unspecified, the server picks an appropriate default. */
625
- pageSize?: number;
786
+ pageSize?:
787
+ number;
626
788
  /**
627
789
  * 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
628
790
  * call to `ListGlossaries` method. The first page is returned if `page_token`is empty or missing.
629
791
  */
630
- pageToken?: string;
792
+ pageToken?:
793
+ string;
631
794
  /** Required. The name of the project from which to list all of the glossaries. */
632
- parent: string;
795
+ parent:
796
+ string;
633
797
  /** Returns response with indentations and line breaks. */
634
- prettyPrint?: boolean;
798
+ prettyPrint?:
799
+ boolean;
635
800
  /** 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. */
636
- quotaUser?: string;
801
+ quotaUser?:
802
+ string;
637
803
  /** Upload protocol for media (e.g. "raw", "multipart"). */
638
- upload_protocol?: string;
804
+ upload_protocol?:
805
+ string;
639
806
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
640
- uploadType?: string;
807
+ uploadType?:
808
+ string;
641
809
  }): Request<ListGlossariesResponse>;
642
810
  }
643
811
  interface OperationsResource {
@@ -649,57 +817,82 @@ declare namespace gapi.client {
649
817
  */
650
818
  cancel(request: {
651
819
  /** V1 error format. */
652
- "$.xgafv"?: string;
820
+ "$.xgafv"?:
821
+ string;
653
822
  /** OAuth access token. */
654
- access_token?: string;
823
+ access_token?:
824
+ string;
655
825
  /** Data format for response. */
656
- alt?: string;
826
+ alt?:
827
+ string;
657
828
  /** JSONP */
658
- callback?: string;
829
+ callback?:
830
+ string;
659
831
  /** Selector specifying which fields to include in a partial response. */
660
- fields?: string;
832
+ fields?:
833
+ string;
661
834
  /** 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. */
662
- key?: string;
835
+ key?:
836
+ string;
663
837
  /** The name of the operation resource to be cancelled. */
664
- name: string;
838
+ name:
839
+ string;
665
840
  /** OAuth 2.0 token for the current user. */
666
- oauth_token?: string;
841
+ oauth_token?:
842
+ string;
667
843
  /** Returns response with indentations and line breaks. */
668
- prettyPrint?: boolean;
844
+ prettyPrint?:
845
+ boolean;
669
846
  /** 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. */
670
- quotaUser?: string;
847
+ quotaUser?:
848
+ string;
671
849
  /** Upload protocol for media (e.g. "raw", "multipart"). */
672
- upload_protocol?: string;
850
+ upload_protocol?:
851
+ string;
673
852
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
674
- uploadType?: string;
853
+ uploadType?:
854
+ string;
675
855
  /** Request body */
676
- resource: CancelOperationRequest;
856
+ resource:
857
+ CancelOperationRequest;
677
858
  }): Request<{}>;
678
859
  cancel(request: {
679
860
  /** V1 error format. */
680
- "$.xgafv"?: string;
861
+ "$.xgafv"?:
862
+ string;
681
863
  /** OAuth access token. */
682
- access_token?: string;
864
+ access_token?:
865
+ string;
683
866
  /** Data format for response. */
684
- alt?: string;
867
+ alt?:
868
+ string;
685
869
  /** JSONP */
686
- callback?: string;
870
+ callback?:
871
+ string;
687
872
  /** Selector specifying which fields to include in a partial response. */
688
- fields?: string;
873
+ fields?:
874
+ string;
689
875
  /** 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. */
690
- key?: string;
876
+ key?:
877
+ string;
691
878
  /** The name of the operation resource to be cancelled. */
692
- name: string;
879
+ name:
880
+ string;
693
881
  /** OAuth 2.0 token for the current user. */
694
- oauth_token?: string;
882
+ oauth_token?:
883
+ string;
695
884
  /** Returns response with indentations and line breaks. */
696
- prettyPrint?: boolean;
885
+ prettyPrint?:
886
+ boolean;
697
887
  /** 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. */
698
- quotaUser?: string;
888
+ quotaUser?:
889
+ string;
699
890
  /** Upload protocol for media (e.g. "raw", "multipart"). */
700
- upload_protocol?: string;
891
+ upload_protocol?:
892
+ string;
701
893
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
702
- uploadType?: string;
894
+ uploadType?:
895
+ string;
703
896
  },
704
897
  body: CancelOperationRequest): Request<{}>;
705
898
  /**
@@ -708,89 +901,128 @@ declare namespace gapi.client {
708
901
  */
709
902
  delete(request?: {
710
903
  /** V1 error format. */
711
- "$.xgafv"?: string;
904
+ "$.xgafv"?:
905
+ string;
712
906
  /** OAuth access token. */
713
- access_token?: string;
907
+ access_token?:
908
+ string;
714
909
  /** Data format for response. */
715
- alt?: string;
910
+ alt?:
911
+ string;
716
912
  /** JSONP */
717
- callback?: string;
913
+ callback?:
914
+ string;
718
915
  /** Selector specifying which fields to include in a partial response. */
719
- fields?: string;
916
+ fields?:
917
+ string;
720
918
  /** 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. */
721
- key?: string;
919
+ key?:
920
+ string;
722
921
  /** The name of the operation resource to be deleted. */
723
- name: string;
922
+ name:
923
+ string;
724
924
  /** OAuth 2.0 token for the current user. */
725
- oauth_token?: string;
925
+ oauth_token?:
926
+ string;
726
927
  /** Returns response with indentations and line breaks. */
727
- prettyPrint?: boolean;
928
+ prettyPrint?:
929
+ boolean;
728
930
  /** 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. */
729
- quotaUser?: string;
931
+ quotaUser?:
932
+ string;
730
933
  /** Upload protocol for media (e.g. "raw", "multipart"). */
731
- upload_protocol?: string;
934
+ upload_protocol?:
935
+ string;
732
936
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
733
- uploadType?: string;
937
+ uploadType?:
938
+ string;
734
939
  }): Request<{}>;
735
940
  /** 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. */
736
941
  get(request?: {
737
942
  /** V1 error format. */
738
- "$.xgafv"?: string;
943
+ "$.xgafv"?:
944
+ string;
739
945
  /** OAuth access token. */
740
- access_token?: string;
946
+ access_token?:
947
+ string;
741
948
  /** Data format for response. */
742
- alt?: string;
949
+ alt?:
950
+ string;
743
951
  /** JSONP */
744
- callback?: string;
952
+ callback?:
953
+ string;
745
954
  /** Selector specifying which fields to include in a partial response. */
746
- fields?: string;
955
+ fields?:
956
+ string;
747
957
  /** 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. */
748
- key?: string;
958
+ key?:
959
+ string;
749
960
  /** The name of the operation resource. */
750
- name: string;
961
+ name:
962
+ string;
751
963
  /** OAuth 2.0 token for the current user. */
752
- oauth_token?: string;
964
+ oauth_token?:
965
+ string;
753
966
  /** Returns response with indentations and line breaks. */
754
- prettyPrint?: boolean;
967
+ prettyPrint?:
968
+ boolean;
755
969
  /** 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. */
756
- quotaUser?: string;
970
+ quotaUser?:
971
+ string;
757
972
  /** Upload protocol for media (e.g. "raw", "multipart"). */
758
- upload_protocol?: string;
973
+ upload_protocol?:
974
+ string;
759
975
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
760
- uploadType?: string;
976
+ uploadType?:
977
+ string;
761
978
  }): Request<Operation>;
762
979
  /** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
763
980
  list(request?: {
764
981
  /** V1 error format. */
765
- "$.xgafv"?: string;
982
+ "$.xgafv"?:
983
+ string;
766
984
  /** OAuth access token. */
767
- access_token?: string;
985
+ access_token?:
986
+ string;
768
987
  /** Data format for response. */
769
- alt?: string;
988
+ alt?:
989
+ string;
770
990
  /** JSONP */
771
- callback?: string;
991
+ callback?:
992
+ string;
772
993
  /** Selector specifying which fields to include in a partial response. */
773
- fields?: string;
994
+ fields?:
995
+ string;
774
996
  /** The standard list filter. */
775
- filter?: string;
997
+ filter?:
998
+ string;
776
999
  /** 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. */
777
- key?: string;
1000
+ key?:
1001
+ string;
778
1002
  /** The name of the operation's parent resource. */
779
- name: string;
1003
+ name:
1004
+ string;
780
1005
  /** OAuth 2.0 token for the current user. */
781
- oauth_token?: string;
1006
+ oauth_token?:
1007
+ string;
782
1008
  /** The standard list page size. */
783
- pageSize?: number;
1009
+ pageSize?:
1010
+ number;
784
1011
  /** The standard list page token. */
785
- pageToken?: string;
1012
+ pageToken?:
1013
+ string;
786
1014
  /** Returns response with indentations and line breaks. */
787
- prettyPrint?: boolean;
1015
+ prettyPrint?:
1016
+ boolean;
788
1017
  /** 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. */
789
- quotaUser?: string;
1018
+ quotaUser?:
1019
+ string;
790
1020
  /** Upload protocol for media (e.g. "raw", "multipart"). */
791
- upload_protocol?: string;
1021
+ upload_protocol?:
1022
+ string;
792
1023
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
793
- uploadType?: string;
1024
+ uploadType?:
1025
+ string;
794
1026
  }): Request<ListOperationsResponse>;
795
1027
  /**
796
1028
  * 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
@@ -800,57 +1032,82 @@ declare namespace gapi.client {
800
1032
  */
801
1033
  wait(request: {
802
1034
  /** V1 error format. */
803
- "$.xgafv"?: string;
1035
+ "$.xgafv"?:
1036
+ string;
804
1037
  /** OAuth access token. */
805
- access_token?: string;
1038
+ access_token?:
1039
+ string;
806
1040
  /** Data format for response. */
807
- alt?: string;
1041
+ alt?:
1042
+ string;
808
1043
  /** JSONP */
809
- callback?: string;
1044
+ callback?:
1045
+ string;
810
1046
  /** Selector specifying which fields to include in a partial response. */
811
- fields?: string;
1047
+ fields?:
1048
+ string;
812
1049
  /** 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. */
813
- key?: string;
1050
+ key?:
1051
+ string;
814
1052
  /** The name of the operation resource to wait on. */
815
- name: string;
1053
+ name:
1054
+ string;
816
1055
  /** OAuth 2.0 token for the current user. */
817
- oauth_token?: string;
1056
+ oauth_token?:
1057
+ string;
818
1058
  /** Returns response with indentations and line breaks. */
819
- prettyPrint?: boolean;
1059
+ prettyPrint?:
1060
+ boolean;
820
1061
  /** 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. */
821
- quotaUser?: string;
1062
+ quotaUser?:
1063
+ string;
822
1064
  /** Upload protocol for media (e.g. "raw", "multipart"). */
823
- upload_protocol?: string;
1065
+ upload_protocol?:
1066
+ string;
824
1067
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
825
- uploadType?: string;
1068
+ uploadType?:
1069
+ string;
826
1070
  /** Request body */
827
- resource: WaitOperationRequest;
1071
+ resource:
1072
+ WaitOperationRequest;
828
1073
  }): Request<Operation>;
829
1074
  wait(request: {
830
1075
  /** V1 error format. */
831
- "$.xgafv"?: string;
1076
+ "$.xgafv"?:
1077
+ string;
832
1078
  /** OAuth access token. */
833
- access_token?: string;
1079
+ access_token?:
1080
+ string;
834
1081
  /** Data format for response. */
835
- alt?: string;
1082
+ alt?:
1083
+ string;
836
1084
  /** JSONP */
837
- callback?: string;
1085
+ callback?:
1086
+ string;
838
1087
  /** Selector specifying which fields to include in a partial response. */
839
- fields?: string;
1088
+ fields?:
1089
+ string;
840
1090
  /** 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. */
841
- key?: string;
1091
+ key?:
1092
+ string;
842
1093
  /** The name of the operation resource to wait on. */
843
- name: string;
1094
+ name:
1095
+ string;
844
1096
  /** OAuth 2.0 token for the current user. */
845
- oauth_token?: string;
1097
+ oauth_token?:
1098
+ string;
846
1099
  /** Returns response with indentations and line breaks. */
847
- prettyPrint?: boolean;
1100
+ prettyPrint?:
1101
+ boolean;
848
1102
  /** 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. */
849
- quotaUser?: string;
1103
+ quotaUser?:
1104
+ string;
850
1105
  /** Upload protocol for media (e.g. "raw", "multipart"). */
851
- upload_protocol?: string;
1106
+ upload_protocol?:
1107
+ string;
852
1108
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
853
- uploadType?: string;
1109
+ uploadType?:
1110
+ string;
854
1111
  },
855
1112
  body: WaitOperationRequest): Request<Operation>;
856
1113
  }
@@ -862,63 +1119,88 @@ declare namespace gapi.client {
862
1119
  */
863
1120
  batchTranslateDocument(request: {
864
1121
  /** V1 error format. */
865
- "$.xgafv"?: string;
1122
+ "$.xgafv"?:
1123
+ string;
866
1124
  /** OAuth access token. */
867
- access_token?: string;
1125
+ access_token?:
1126
+ string;
868
1127
  /** Data format for response. */
869
- alt?: string;
1128
+ alt?:
1129
+ string;
870
1130
  /** JSONP */
871
- callback?: string;
1131
+ callback?:
1132
+ string;
872
1133
  /** Selector specifying which fields to include in a partial response. */
873
- fields?: string;
1134
+ fields?:
1135
+ string;
874
1136
  /** 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. */
875
- key?: string;
1137
+ key?:
1138
+ string;
876
1139
  /** OAuth 2.0 token for the current user. */
877
- oauth_token?: string;
1140
+ oauth_token?:
1141
+ string;
878
1142
  /**
879
1143
  * 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
880
1144
  * 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.
881
1145
  */
882
- parent: string;
1146
+ parent:
1147
+ string;
883
1148
  /** Returns response with indentations and line breaks. */
884
- prettyPrint?: boolean;
1149
+ prettyPrint?:
1150
+ boolean;
885
1151
  /** 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. */
886
- quotaUser?: string;
1152
+ quotaUser?:
1153
+ string;
887
1154
  /** Upload protocol for media (e.g. "raw", "multipart"). */
888
- upload_protocol?: string;
1155
+ upload_protocol?:
1156
+ string;
889
1157
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
890
- uploadType?: string;
1158
+ uploadType?:
1159
+ string;
891
1160
  /** Request body */
892
- resource: BatchTranslateDocumentRequest;
1161
+ resource:
1162
+ BatchTranslateDocumentRequest;
893
1163
  }): Request<Operation>;
894
1164
  batchTranslateDocument(request: {
895
1165
  /** V1 error format. */
896
- "$.xgafv"?: string;
1166
+ "$.xgafv"?:
1167
+ string;
897
1168
  /** OAuth access token. */
898
- access_token?: string;
1169
+ access_token?:
1170
+ string;
899
1171
  /** Data format for response. */
900
- alt?: string;
1172
+ alt?:
1173
+ string;
901
1174
  /** JSONP */
902
- callback?: string;
1175
+ callback?:
1176
+ string;
903
1177
  /** Selector specifying which fields to include in a partial response. */
904
- fields?: string;
1178
+ fields?:
1179
+ string;
905
1180
  /** 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. */
906
- key?: string;
1181
+ key?:
1182
+ string;
907
1183
  /** OAuth 2.0 token for the current user. */
908
- oauth_token?: string;
1184
+ oauth_token?:
1185
+ string;
909
1186
  /**
910
1187
  * 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
911
1188
  * 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.
912
1189
  */
913
- parent: string;
1190
+ parent:
1191
+ string;
914
1192
  /** Returns response with indentations and line breaks. */
915
- prettyPrint?: boolean;
1193
+ prettyPrint?:
1194
+ boolean;
916
1195
  /** 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. */
917
- quotaUser?: string;
1196
+ quotaUser?:
1197
+ string;
918
1198
  /** Upload protocol for media (e.g. "raw", "multipart"). */
919
- upload_protocol?: string;
1199
+ upload_protocol?:
1200
+ string;
920
1201
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
921
- uploadType?: string;
1202
+ uploadType?:
1203
+ string;
922
1204
  },
923
1205
  body: BatchTranslateDocumentRequest): Request<Operation>;
924
1206
  /**
@@ -928,539 +1210,747 @@ declare namespace gapi.client {
928
1210
  */
929
1211
  batchTranslateText(request: {
930
1212
  /** V1 error format. */
931
- "$.xgafv"?: string;
1213
+ "$.xgafv"?:
1214
+ string;
932
1215
  /** OAuth access token. */
933
- access_token?: string;
1216
+ access_token?:
1217
+ string;
934
1218
  /** Data format for response. */
935
- alt?: string;
1219
+ alt?:
1220
+ string;
936
1221
  /** JSONP */
937
- callback?: string;
1222
+ callback?:
1223
+ string;
938
1224
  /** Selector specifying which fields to include in a partial response. */
939
- fields?: string;
1225
+ fields?:
1226
+ string;
940
1227
  /** 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. */
941
- key?: string;
1228
+ key?:
1229
+ string;
942
1230
  /** OAuth 2.0 token for the current user. */
943
- oauth_token?: string;
1231
+ oauth_token?:
1232
+ string;
944
1233
  /**
945
1234
  * 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
946
1235
  * 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
947
1236
  * returned.
948
1237
  */
949
- parent: string;
1238
+ parent:
1239
+ string;
950
1240
  /** Returns response with indentations and line breaks. */
951
- prettyPrint?: boolean;
1241
+ prettyPrint?:
1242
+ boolean;
952
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. */
953
- quotaUser?: string;
1244
+ quotaUser?:
1245
+ string;
954
1246
  /** Upload protocol for media (e.g. "raw", "multipart"). */
955
- upload_protocol?: string;
1247
+ upload_protocol?:
1248
+ string;
956
1249
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
957
- uploadType?: string;
1250
+ uploadType?:
1251
+ string;
958
1252
  /** Request body */
959
- resource: BatchTranslateTextRequest;
1253
+ resource:
1254
+ BatchTranslateTextRequest;
960
1255
  }): Request<Operation>;
961
1256
  batchTranslateText(request: {
962
1257
  /** V1 error format. */
963
- "$.xgafv"?: string;
1258
+ "$.xgafv"?:
1259
+ string;
964
1260
  /** OAuth access token. */
965
- access_token?: string;
1261
+ access_token?:
1262
+ string;
966
1263
  /** Data format for response. */
967
- alt?: string;
1264
+ alt?:
1265
+ string;
968
1266
  /** JSONP */
969
- callback?: string;
1267
+ callback?:
1268
+ string;
970
1269
  /** Selector specifying which fields to include in a partial response. */
971
- fields?: string;
1270
+ fields?:
1271
+ string;
972
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. */
973
- key?: string;
1273
+ key?:
1274
+ string;
974
1275
  /** OAuth 2.0 token for the current user. */
975
- oauth_token?: string;
1276
+ oauth_token?:
1277
+ string;
976
1278
  /**
977
1279
  * 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
978
1280
  * 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
979
1281
  * returned.
980
1282
  */
981
- parent: string;
1283
+ parent:
1284
+ string;
982
1285
  /** Returns response with indentations and line breaks. */
983
- prettyPrint?: boolean;
1286
+ prettyPrint?:
1287
+ boolean;
984
1288
  /** 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. */
985
- quotaUser?: string;
1289
+ quotaUser?:
1290
+ string;
986
1291
  /** Upload protocol for media (e.g. "raw", "multipart"). */
987
- upload_protocol?: string;
1292
+ upload_protocol?:
1293
+ string;
988
1294
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
989
- uploadType?: string;
1295
+ uploadType?:
1296
+ string;
990
1297
  },
991
1298
  body: BatchTranslateTextRequest): Request<Operation>;
992
1299
  /** Detects the language of text within a request. */
993
1300
  detectLanguage(request: {
994
1301
  /** V1 error format. */
995
- "$.xgafv"?: string;
1302
+ "$.xgafv"?:
1303
+ string;
996
1304
  /** OAuth access token. */
997
- access_token?: string;
1305
+ access_token?:
1306
+ string;
998
1307
  /** Data format for response. */
999
- alt?: string;
1308
+ alt?:
1309
+ string;
1000
1310
  /** JSONP */
1001
- callback?: string;
1311
+ callback?:
1312
+ string;
1002
1313
  /** Selector specifying which fields to include in a partial response. */
1003
- fields?: string;
1314
+ fields?:
1315
+ string;
1004
1316
  /** 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. */
1005
- key?: string;
1317
+ key?:
1318
+ string;
1006
1319
  /** OAuth 2.0 token for the current user. */
1007
- oauth_token?: string;
1320
+ oauth_token?:
1321
+ string;
1008
1322
  /**
1009
1323
  * 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
1010
1324
  * `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
1011
1325
  * region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned.
1012
1326
  */
1013
- parent: string;
1327
+ parent:
1328
+ string;
1014
1329
  /** Returns response with indentations and line breaks. */
1015
- prettyPrint?: boolean;
1330
+ prettyPrint?:
1331
+ boolean;
1016
1332
  /** 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. */
1017
- quotaUser?: string;
1333
+ quotaUser?:
1334
+ string;
1018
1335
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1019
- upload_protocol?: string;
1336
+ upload_protocol?:
1337
+ string;
1020
1338
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1021
- uploadType?: string;
1339
+ uploadType?:
1340
+ string;
1022
1341
  /** Request body */
1023
- resource: DetectLanguageRequest;
1342
+ resource:
1343
+ DetectLanguageRequest;
1024
1344
  }): Request<DetectLanguageResponse>;
1025
1345
  detectLanguage(request: {
1026
1346
  /** V1 error format. */
1027
- "$.xgafv"?: string;
1347
+ "$.xgafv"?:
1348
+ string;
1028
1349
  /** OAuth access token. */
1029
- access_token?: string;
1350
+ access_token?:
1351
+ string;
1030
1352
  /** Data format for response. */
1031
- alt?: string;
1353
+ alt?:
1354
+ string;
1032
1355
  /** JSONP */
1033
- callback?: string;
1356
+ callback?:
1357
+ string;
1034
1358
  /** Selector specifying which fields to include in a partial response. */
1035
- fields?: string;
1359
+ fields?:
1360
+ string;
1036
1361
  /** 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. */
1037
- key?: string;
1362
+ key?:
1363
+ string;
1038
1364
  /** OAuth 2.0 token for the current user. */
1039
- oauth_token?: string;
1365
+ oauth_token?:
1366
+ string;
1040
1367
  /**
1041
1368
  * 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
1042
1369
  * `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
1043
1370
  * region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned.
1044
1371
  */
1045
- parent: string;
1372
+ parent:
1373
+ string;
1046
1374
  /** Returns response with indentations and line breaks. */
1047
- prettyPrint?: boolean;
1375
+ prettyPrint?:
1376
+ boolean;
1048
1377
  /** 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. */
1049
- quotaUser?: string;
1378
+ quotaUser?:
1379
+ string;
1050
1380
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1051
- upload_protocol?: string;
1381
+ upload_protocol?:
1382
+ string;
1052
1383
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1053
- uploadType?: string;
1384
+ uploadType?:
1385
+ string;
1054
1386
  },
1055
1387
  body: DetectLanguageRequest): Request<DetectLanguageResponse>;
1056
1388
  /** Gets information about a location. */
1057
1389
  get(request?: {
1058
1390
  /** V1 error format. */
1059
- "$.xgafv"?: string;
1391
+ "$.xgafv"?:
1392
+ string;
1060
1393
  /** OAuth access token. */
1061
- access_token?: string;
1394
+ access_token?:
1395
+ string;
1062
1396
  /** Data format for response. */
1063
- alt?: string;
1397
+ alt?:
1398
+ string;
1064
1399
  /** JSONP */
1065
- callback?: string;
1400
+ callback?:
1401
+ string;
1066
1402
  /** Selector specifying which fields to include in a partial response. */
1067
- fields?: string;
1403
+ fields?:
1404
+ string;
1068
1405
  /** 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. */
1069
- key?: string;
1406
+ key?:
1407
+ string;
1070
1408
  /** Resource name for the location. */
1071
- name: string;
1409
+ name:
1410
+ string;
1072
1411
  /** OAuth 2.0 token for the current user. */
1073
- oauth_token?: string;
1412
+ oauth_token?:
1413
+ string;
1074
1414
  /** Returns response with indentations and line breaks. */
1075
- prettyPrint?: boolean;
1415
+ prettyPrint?:
1416
+ boolean;
1076
1417
  /** 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. */
1077
- quotaUser?: string;
1418
+ quotaUser?:
1419
+ string;
1078
1420
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1079
- upload_protocol?: string;
1421
+ upload_protocol?:
1422
+ string;
1080
1423
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1081
- uploadType?: string;
1424
+ uploadType?:
1425
+ string;
1082
1426
  }): Request<Location>;
1083
1427
  /** Returns a list of supported languages for translation. */
1084
1428
  getSupportedLanguages(request?: {
1085
1429
  /** V1 error format. */
1086
- "$.xgafv"?: string;
1430
+ "$.xgafv"?:
1431
+ string;
1087
1432
  /** OAuth access token. */
1088
- access_token?: string;
1433
+ access_token?:
1434
+ string;
1089
1435
  /** Data format for response. */
1090
- alt?: string;
1436
+ alt?:
1437
+ string;
1091
1438
  /** JSONP */
1092
- callback?: string;
1439
+ callback?:
1440
+ string;
1093
1441
  /** 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. */
1094
- displayLanguageCode?: string;
1442
+ displayLanguageCode?:
1443
+ string;
1095
1444
  /** Selector specifying which fields to include in a partial response. */
1096
- fields?: string;
1445
+ fields?:
1446
+ string;
1097
1447
  /** 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. */
1098
- key?: string;
1448
+ key?:
1449
+ string;
1099
1450
  /**
1100
1451
  * Optional. Get supported languages of this model. The format depends on model type: - AutoML Translation models:
1101
1452
  * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models:
1102
1453
  * `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
1103
1454
  * Google general NMT model.
1104
1455
  */
1105
- model?: string;
1456
+ model?:
1457
+ string;
1106
1458
  /** OAuth 2.0 token for the current user. */
1107
- oauth_token?: string;
1459
+ oauth_token?:
1460
+ string;
1108
1461
  /**
1109
1462
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
1110
1463
  * `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}`.
1111
1464
  * 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.
1112
1465
  */
1113
- parent: string;
1466
+ parent:
1467
+ string;
1114
1468
  /** Returns response with indentations and line breaks. */
1115
- prettyPrint?: boolean;
1469
+ prettyPrint?:
1470
+ boolean;
1116
1471
  /** 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. */
1117
- quotaUser?: string;
1472
+ quotaUser?:
1473
+ string;
1118
1474
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1119
- upload_protocol?: string;
1475
+ upload_protocol?:
1476
+ string;
1120
1477
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1121
- uploadType?: string;
1478
+ uploadType?:
1479
+ string;
1122
1480
  }): Request<SupportedLanguages>;
1123
1481
  /** Lists information about the supported locations for this service. */
1124
1482
  list(request?: {
1125
1483
  /** V1 error format. */
1126
- "$.xgafv"?: string;
1484
+ "$.xgafv"?:
1485
+ string;
1127
1486
  /** OAuth access token. */
1128
- access_token?: string;
1487
+ access_token?:
1488
+ string;
1129
1489
  /** Data format for response. */
1130
- alt?: string;
1490
+ alt?:
1491
+ string;
1131
1492
  /** JSONP */
1132
- callback?: string;
1493
+ callback?:
1494
+ string;
1133
1495
  /** Selector specifying which fields to include in a partial response. */
1134
- fields?: string;
1496
+ fields?:
1497
+ string;
1135
1498
  /**
1136
1499
  * 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
1137
1500
  * [AIP-160](https://google.aip.dev/160).
1138
1501
  */
1139
- filter?: string;
1502
+ filter?:
1503
+ string;
1140
1504
  /** 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. */
1141
- key?: string;
1505
+ key?:
1506
+ string;
1142
1507
  /** The resource that owns the locations collection, if applicable. */
1143
- name: string;
1508
+ name:
1509
+ string;
1144
1510
  /** OAuth 2.0 token for the current user. */
1145
- oauth_token?: string;
1511
+ oauth_token?:
1512
+ string;
1146
1513
  /** The maximum number of results to return. If not set, the service selects a default. */
1147
- pageSize?: number;
1514
+ pageSize?:
1515
+ number;
1148
1516
  /** A page token received from the `next_page_token` field in the response. Send that page token to receive the subsequent page. */
1149
- pageToken?: string;
1517
+ pageToken?:
1518
+ string;
1150
1519
  /** Returns response with indentations and line breaks. */
1151
- prettyPrint?: boolean;
1520
+ prettyPrint?:
1521
+ boolean;
1152
1522
  /** 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. */
1153
- quotaUser?: string;
1523
+ quotaUser?:
1524
+ string;
1154
1525
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1155
- upload_protocol?: string;
1526
+ upload_protocol?:
1527
+ string;
1156
1528
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1157
- uploadType?: string;
1529
+ uploadType?:
1530
+ string;
1158
1531
  }): Request<ListLocationsResponse>;
1159
1532
  /** Translates documents in synchronous mode. */
1160
1533
  translateDocument(request: {
1161
1534
  /** V1 error format. */
1162
- "$.xgafv"?: string;
1535
+ "$.xgafv"?:
1536
+ string;
1163
1537
  /** OAuth access token. */
1164
- access_token?: string;
1538
+ access_token?:
1539
+ string;
1165
1540
  /** Data format for response. */
1166
- alt?: string;
1541
+ alt?:
1542
+ string;
1167
1543
  /** JSONP */
1168
- callback?: string;
1544
+ callback?:
1545
+ string;
1169
1546
  /** Selector specifying which fields to include in a partial response. */
1170
- fields?: string;
1547
+ fields?:
1548
+ string;
1171
1549
  /** 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. */
1172
- key?: string;
1550
+ key?:
1551
+ string;
1173
1552
  /** OAuth 2.0 token for the current user. */
1174
- oauth_token?: string;
1553
+ oauth_token?:
1554
+ string;
1175
1555
  /**
1176
1556
  * Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use
1177
1557
  * `projects/{project-number-or-id}/locations/global`. Non-global location is required for requests using AutoML models or custom glossaries. Models and glossaries must be within
1178
1558
  * the same region (have the same location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
1179
1559
  */
1180
- parent: string;
1560
+ parent:
1561
+ string;
1181
1562
  /** Returns response with indentations and line breaks. */
1182
- prettyPrint?: boolean;
1563
+ prettyPrint?:
1564
+ boolean;
1183
1565
  /** 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. */
1184
- quotaUser?: string;
1566
+ quotaUser?:
1567
+ string;
1185
1568
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1186
- upload_protocol?: string;
1569
+ upload_protocol?:
1570
+ string;
1187
1571
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1188
- uploadType?: string;
1572
+ uploadType?:
1573
+ string;
1189
1574
  /** Request body */
1190
- resource: TranslateDocumentRequest;
1575
+ resource:
1576
+ TranslateDocumentRequest;
1191
1577
  }): Request<TranslateDocumentResponse>;
1192
1578
  translateDocument(request: {
1193
1579
  /** V1 error format. */
1194
- "$.xgafv"?: string;
1580
+ "$.xgafv"?:
1581
+ string;
1195
1582
  /** OAuth access token. */
1196
- access_token?: string;
1583
+ access_token?:
1584
+ string;
1197
1585
  /** Data format for response. */
1198
- alt?: string;
1586
+ alt?:
1587
+ string;
1199
1588
  /** JSONP */
1200
- callback?: string;
1589
+ callback?:
1590
+ string;
1201
1591
  /** Selector specifying which fields to include in a partial response. */
1202
- fields?: string;
1592
+ fields?:
1593
+ string;
1203
1594
  /** 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. */
1204
- key?: string;
1595
+ key?:
1596
+ string;
1205
1597
  /** OAuth 2.0 token for the current user. */
1206
- oauth_token?: string;
1598
+ oauth_token?:
1599
+ string;
1207
1600
  /**
1208
1601
  * Required. Location to make a regional call. Format: `projects/{project-number-or-id}/locations/{location-id}`. For global calls, use
1209
1602
  * `projects/{project-number-or-id}/locations/global`. Non-global location is required for requests using AutoML models or custom glossaries. Models and glossaries must be within
1210
1603
  * the same region (have the same location-id), otherwise an INVALID_ARGUMENT (400) error is returned.
1211
1604
  */
1212
- parent: string;
1605
+ parent:
1606
+ string;
1213
1607
  /** Returns response with indentations and line breaks. */
1214
- prettyPrint?: boolean;
1608
+ prettyPrint?:
1609
+ boolean;
1215
1610
  /** 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. */
1216
- quotaUser?: string;
1611
+ quotaUser?:
1612
+ string;
1217
1613
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1218
- upload_protocol?: string;
1614
+ upload_protocol?:
1615
+ string;
1219
1616
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1220
- uploadType?: string;
1617
+ uploadType?:
1618
+ string;
1221
1619
  },
1222
1620
  body: TranslateDocumentRequest): Request<TranslateDocumentResponse>;
1223
1621
  /** Translates input text and returns translated text. */
1224
1622
  translateText(request: {
1225
1623
  /** V1 error format. */
1226
- "$.xgafv"?: string;
1624
+ "$.xgafv"?:
1625
+ string;
1227
1626
  /** OAuth access token. */
1228
- access_token?: string;
1627
+ access_token?:
1628
+ string;
1229
1629
  /** Data format for response. */
1230
- alt?: string;
1630
+ alt?:
1631
+ string;
1231
1632
  /** JSONP */
1232
- callback?: string;
1633
+ callback?:
1634
+ string;
1233
1635
  /** Selector specifying which fields to include in a partial response. */
1234
- fields?: string;
1636
+ fields?:
1637
+ string;
1235
1638
  /** 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. */
1236
- key?: string;
1639
+ key?:
1640
+ string;
1237
1641
  /** OAuth 2.0 token for the current user. */
1238
- oauth_token?: string;
1642
+ oauth_token?:
1643
+ string;
1239
1644
  /**
1240
1645
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
1241
1646
  * `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}`.
1242
1647
  * 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
1243
1648
  * INVALID_ARGUMENT (400) error is returned.
1244
1649
  */
1245
- parent: string;
1650
+ parent:
1651
+ string;
1246
1652
  /** Returns response with indentations and line breaks. */
1247
- prettyPrint?: boolean;
1653
+ prettyPrint?:
1654
+ boolean;
1248
1655
  /** 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. */
1249
- quotaUser?: string;
1656
+ quotaUser?:
1657
+ string;
1250
1658
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1251
- upload_protocol?: string;
1659
+ upload_protocol?:
1660
+ string;
1252
1661
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1253
- uploadType?: string;
1662
+ uploadType?:
1663
+ string;
1254
1664
  /** Request body */
1255
- resource: TranslateTextRequest;
1665
+ resource:
1666
+ TranslateTextRequest;
1256
1667
  }): Request<TranslateTextResponse>;
1257
1668
  translateText(request: {
1258
1669
  /** V1 error format. */
1259
- "$.xgafv"?: string;
1670
+ "$.xgafv"?:
1671
+ string;
1260
1672
  /** OAuth access token. */
1261
- access_token?: string;
1673
+ access_token?:
1674
+ string;
1262
1675
  /** Data format for response. */
1263
- alt?: string;
1676
+ alt?:
1677
+ string;
1264
1678
  /** JSONP */
1265
- callback?: string;
1679
+ callback?:
1680
+ string;
1266
1681
  /** Selector specifying which fields to include in a partial response. */
1267
- fields?: string;
1682
+ fields?:
1683
+ string;
1268
1684
  /** 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. */
1269
- key?: string;
1685
+ key?:
1686
+ string;
1270
1687
  /** OAuth 2.0 token for the current user. */
1271
- oauth_token?: string;
1688
+ oauth_token?:
1689
+ string;
1272
1690
  /**
1273
1691
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
1274
1692
  * `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}`.
1275
1693
  * 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
1276
1694
  * INVALID_ARGUMENT (400) error is returned.
1277
1695
  */
1278
- parent: string;
1696
+ parent:
1697
+ string;
1279
1698
  /** Returns response with indentations and line breaks. */
1280
- prettyPrint?: boolean;
1699
+ prettyPrint?:
1700
+ boolean;
1281
1701
  /** 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. */
1282
- quotaUser?: string;
1702
+ quotaUser?:
1703
+ string;
1283
1704
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1284
- upload_protocol?: string;
1705
+ upload_protocol?:
1706
+ string;
1285
1707
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1286
- uploadType?: string;
1708
+ uploadType?:
1709
+ string;
1287
1710
  },
1288
1711
  body: TranslateTextRequest): Request<TranslateTextResponse>;
1289
- glossaries: GlossariesResource;
1290
- operations: OperationsResource;
1712
+ glossaries:
1713
+ GlossariesResource;
1714
+ operations:
1715
+ OperationsResource;
1291
1716
  }
1292
1717
  interface ProjectsResource {
1293
1718
  /** Detects the language of text within a request. */
1294
1719
  detectLanguage(request: {
1295
1720
  /** V1 error format. */
1296
- "$.xgafv"?: string;
1721
+ "$.xgafv"?:
1722
+ string;
1297
1723
  /** OAuth access token. */
1298
- access_token?: string;
1724
+ access_token?:
1725
+ string;
1299
1726
  /** Data format for response. */
1300
- alt?: string;
1727
+ alt?:
1728
+ string;
1301
1729
  /** JSONP */
1302
- callback?: string;
1730
+ callback?:
1731
+ string;
1303
1732
  /** Selector specifying which fields to include in a partial response. */
1304
- fields?: string;
1733
+ fields?:
1734
+ string;
1305
1735
  /** 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. */
1306
- key?: string;
1736
+ key?:
1737
+ string;
1307
1738
  /** OAuth 2.0 token for the current user. */
1308
- oauth_token?: string;
1739
+ oauth_token?:
1740
+ string;
1309
1741
  /**
1310
1742
  * 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
1311
1743
  * `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
1312
1744
  * region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned.
1313
1745
  */
1314
- parent: string;
1746
+ parent:
1747
+ string;
1315
1748
  /** Returns response with indentations and line breaks. */
1316
- prettyPrint?: boolean;
1749
+ prettyPrint?:
1750
+ boolean;
1317
1751
  /** 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. */
1318
- quotaUser?: string;
1752
+ quotaUser?:
1753
+ string;
1319
1754
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1320
- upload_protocol?: string;
1755
+ upload_protocol?:
1756
+ string;
1321
1757
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1322
- uploadType?: string;
1758
+ uploadType?:
1759
+ string;
1323
1760
  /** Request body */
1324
- resource: DetectLanguageRequest;
1761
+ resource:
1762
+ DetectLanguageRequest;
1325
1763
  }): Request<DetectLanguageResponse>;
1326
1764
  detectLanguage(request: {
1327
1765
  /** V1 error format. */
1328
- "$.xgafv"?: string;
1766
+ "$.xgafv"?:
1767
+ string;
1329
1768
  /** OAuth access token. */
1330
- access_token?: string;
1769
+ access_token?:
1770
+ string;
1331
1771
  /** Data format for response. */
1332
- alt?: string;
1772
+ alt?:
1773
+ string;
1333
1774
  /** JSONP */
1334
- callback?: string;
1775
+ callback?:
1776
+ string;
1335
1777
  /** Selector specifying which fields to include in a partial response. */
1336
- fields?: string;
1778
+ fields?:
1779
+ string;
1337
1780
  /** 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. */
1338
- key?: string;
1781
+ key?:
1782
+ string;
1339
1783
  /** OAuth 2.0 token for the current user. */
1340
- oauth_token?: string;
1784
+ oauth_token?:
1785
+ string;
1341
1786
  /**
1342
1787
  * 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
1343
1788
  * `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
1344
1789
  * region (has same location-id) can be used. Otherwise an INVALID_ARGUMENT (400) error is returned.
1345
1790
  */
1346
- parent: string;
1791
+ parent:
1792
+ string;
1347
1793
  /** Returns response with indentations and line breaks. */
1348
- prettyPrint?: boolean;
1794
+ prettyPrint?:
1795
+ boolean;
1349
1796
  /** 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. */
1350
- quotaUser?: string;
1797
+ quotaUser?:
1798
+ string;
1351
1799
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1352
- upload_protocol?: string;
1800
+ upload_protocol?:
1801
+ string;
1353
1802
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1354
- uploadType?: string;
1803
+ uploadType?:
1804
+ string;
1355
1805
  },
1356
1806
  body: DetectLanguageRequest): Request<DetectLanguageResponse>;
1357
1807
  /** Returns a list of supported languages for translation. */
1358
1808
  getSupportedLanguages(request?: {
1359
1809
  /** V1 error format. */
1360
- "$.xgafv"?: string;
1810
+ "$.xgafv"?:
1811
+ string;
1361
1812
  /** OAuth access token. */
1362
- access_token?: string;
1813
+ access_token?:
1814
+ string;
1363
1815
  /** Data format for response. */
1364
- alt?: string;
1816
+ alt?:
1817
+ string;
1365
1818
  /** JSONP */
1366
- callback?: string;
1819
+ callback?:
1820
+ string;
1367
1821
  /** 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. */
1368
- displayLanguageCode?: string;
1822
+ displayLanguageCode?:
1823
+ string;
1369
1824
  /** Selector specifying which fields to include in a partial response. */
1370
- fields?: string;
1825
+ fields?:
1826
+ string;
1371
1827
  /** 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. */
1372
- key?: string;
1828
+ key?:
1829
+ string;
1373
1830
  /**
1374
1831
  * Optional. Get supported languages of this model. The format depends on model type: - AutoML Translation models:
1375
1832
  * `projects/{project-number-or-id}/locations/{location-id}/models/{model-id}` - General (built-in) models:
1376
1833
  * `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
1377
1834
  * Google general NMT model.
1378
1835
  */
1379
- model?: string;
1836
+ model?:
1837
+ string;
1380
1838
  /** OAuth 2.0 token for the current user. */
1381
- oauth_token?: string;
1839
+ oauth_token?:
1840
+ string;
1382
1841
  /**
1383
1842
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
1384
1843
  * `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}`.
1385
1844
  * 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.
1386
1845
  */
1387
- parent: string;
1846
+ parent:
1847
+ string;
1388
1848
  /** Returns response with indentations and line breaks. */
1389
- prettyPrint?: boolean;
1849
+ prettyPrint?:
1850
+ boolean;
1390
1851
  /** 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. */
1391
- quotaUser?: string;
1852
+ quotaUser?:
1853
+ string;
1392
1854
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1393
- upload_protocol?: string;
1855
+ upload_protocol?:
1856
+ string;
1394
1857
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1395
- uploadType?: string;
1858
+ uploadType?:
1859
+ string;
1396
1860
  }): Request<SupportedLanguages>;
1397
1861
  /** Translates input text and returns translated text. */
1398
1862
  translateText(request: {
1399
1863
  /** V1 error format. */
1400
- "$.xgafv"?: string;
1864
+ "$.xgafv"?:
1865
+ string;
1401
1866
  /** OAuth access token. */
1402
- access_token?: string;
1867
+ access_token?:
1868
+ string;
1403
1869
  /** Data format for response. */
1404
- alt?: string;
1870
+ alt?:
1871
+ string;
1405
1872
  /** JSONP */
1406
- callback?: string;
1873
+ callback?:
1874
+ string;
1407
1875
  /** Selector specifying which fields to include in a partial response. */
1408
- fields?: string;
1876
+ fields?:
1877
+ string;
1409
1878
  /** 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. */
1410
- key?: string;
1879
+ key?:
1880
+ string;
1411
1881
  /** OAuth 2.0 token for the current user. */
1412
- oauth_token?: string;
1882
+ oauth_token?:
1883
+ string;
1413
1884
  /**
1414
1885
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
1415
1886
  * `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}`.
1416
1887
  * 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
1417
1888
  * INVALID_ARGUMENT (400) error is returned.
1418
1889
  */
1419
- parent: string;
1890
+ parent:
1891
+ string;
1420
1892
  /** Returns response with indentations and line breaks. */
1421
- prettyPrint?: boolean;
1893
+ prettyPrint?:
1894
+ boolean;
1422
1895
  /** 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. */
1423
- quotaUser?: string;
1896
+ quotaUser?:
1897
+ string;
1424
1898
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1425
- upload_protocol?: string;
1899
+ upload_protocol?:
1900
+ string;
1426
1901
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1427
- uploadType?: string;
1902
+ uploadType?:
1903
+ string;
1428
1904
  /** Request body */
1429
- resource: TranslateTextRequest;
1905
+ resource:
1906
+ TranslateTextRequest;
1430
1907
  }): Request<TranslateTextResponse>;
1431
1908
  translateText(request: {
1432
1909
  /** V1 error format. */
1433
- "$.xgafv"?: string;
1910
+ "$.xgafv"?:
1911
+ string;
1434
1912
  /** OAuth access token. */
1435
- access_token?: string;
1913
+ access_token?:
1914
+ string;
1436
1915
  /** Data format for response. */
1437
- alt?: string;
1916
+ alt?:
1917
+ string;
1438
1918
  /** JSONP */
1439
- callback?: string;
1919
+ callback?:
1920
+ string;
1440
1921
  /** Selector specifying which fields to include in a partial response. */
1441
- fields?: string;
1922
+ fields?:
1923
+ string;
1442
1924
  /** 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. */
1443
- key?: string;
1925
+ key?:
1926
+ string;
1444
1927
  /** OAuth 2.0 token for the current user. */
1445
- oauth_token?: string;
1928
+ oauth_token?:
1929
+ string;
1446
1930
  /**
1447
1931
  * Required. Project or location to make a call. Must refer to a caller's project. Format: `projects/{project-number-or-id}` or
1448
1932
  * `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}`.
1449
1933
  * 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
1450
1934
  * INVALID_ARGUMENT (400) error is returned.
1451
1935
  */
1452
- parent: string;
1936
+ parent:
1937
+ string;
1453
1938
  /** Returns response with indentations and line breaks. */
1454
- prettyPrint?: boolean;
1939
+ prettyPrint?:
1940
+ boolean;
1455
1941
  /** 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. */
1456
- quotaUser?: string;
1942
+ quotaUser?:
1943
+ string;
1457
1944
  /** Upload protocol for media (e.g. "raw", "multipart"). */
1458
- upload_protocol?: string;
1945
+ upload_protocol?:
1946
+ string;
1459
1947
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1460
- uploadType?: string;
1948
+ uploadType?:
1949
+ string;
1461
1950
  },
1462
1951
  body: TranslateTextRequest): Request<TranslateTextResponse>;
1463
- locations: LocationsResource;
1952
+ locations:
1953
+ LocationsResource;
1464
1954
  }
1465
1955
 
1466
1956
  const projects: ProjectsResource;