@googleapis/translate 7.1.0 → 8.0.0

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.
package/v3.ts CHANGED
@@ -216,7 +216,7 @@ export namespace translate_v3 {
216
216
  */
217
217
  content?: string[] | null;
218
218
  /**
219
- * Required. The resource name for the dataset to use for adaptive MT. `projects/{project\}/locations/{location-id\}/adaptiveMtDatasets/{dataset\}`
219
+ * Required. The resource name for the dataset to use for adaptive MT translation. `projects/{project\}/locations/{location-id\}/adaptiveMtDatasets/{dataset\}`
220
220
  */
221
221
  dataset?: string | null;
222
222
  /**
@@ -1465,8 +1465,7 @@ export namespace translate_v3 {
1465
1465
  detectLanguage(
1466
1466
  params: Params$Resource$Projects$Detectlanguage,
1467
1467
  options:
1468
- | MethodOptions
1469
- | BodyResponseCallback<Schema$DetectLanguageResponse>,
1468
+ MethodOptions | BodyResponseCallback<Schema$DetectLanguageResponse>,
1470
1469
  callback: BodyResponseCallback<Schema$DetectLanguageResponse>
1471
1470
  ): void;
1472
1471
  detectLanguage(
@@ -1764,8 +1763,7 @@ export namespace translate_v3 {
1764
1763
  romanizeText(
1765
1764
  params: Params$Resource$Projects$Romanizetext,
1766
1765
  options:
1767
- | MethodOptions
1768
- | BodyResponseCallback<Schema$RomanizeTextResponse>,
1766
+ MethodOptions | BodyResponseCallback<Schema$RomanizeTextResponse>,
1769
1767
  callback: BodyResponseCallback<Schema$RomanizeTextResponse>
1770
1768
  ): void;
1771
1769
  romanizeText(
@@ -1924,8 +1922,7 @@ export namespace translate_v3 {
1924
1922
  translateText(
1925
1923
  params: Params$Resource$Projects$Translatetext,
1926
1924
  options:
1927
- | MethodOptions
1928
- | BodyResponseCallback<Schema$TranslateTextResponse>,
1925
+ MethodOptions | BodyResponseCallback<Schema$TranslateTextResponse>,
1929
1926
  callback: BodyResponseCallback<Schema$TranslateTextResponse>
1930
1927
  ): void;
1931
1928
  translateText(
@@ -2337,8 +2334,7 @@ export namespace translate_v3 {
2337
2334
  | BodyResponseCallback<Schema$Operation>
2338
2335
  | BodyResponseCallback<Readable>,
2339
2336
  callback?:
2340
- | BodyResponseCallback<Schema$Operation>
2341
- | BodyResponseCallback<Readable>
2337
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2342
2338
  ):
2343
2339
  | void
2344
2340
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -2496,8 +2492,7 @@ export namespace translate_v3 {
2496
2492
  | BodyResponseCallback<Schema$Operation>
2497
2493
  | BodyResponseCallback<Readable>,
2498
2494
  callback?:
2499
- | BodyResponseCallback<Schema$Operation>
2500
- | BodyResponseCallback<Readable>
2495
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2501
2496
  ):
2502
2497
  | void
2503
2498
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -2630,8 +2625,7 @@ export namespace translate_v3 {
2630
2625
  detectLanguage(
2631
2626
  params: Params$Resource$Projects$Locations$Detectlanguage,
2632
2627
  options:
2633
- | MethodOptions
2634
- | BodyResponseCallback<Schema$DetectLanguageResponse>,
2628
+ MethodOptions | BodyResponseCallback<Schema$DetectLanguageResponse>,
2635
2629
  callback: BodyResponseCallback<Schema$DetectLanguageResponse>
2636
2630
  ): void;
2637
2631
  detectLanguage(
@@ -2796,8 +2790,7 @@ export namespace translate_v3 {
2796
2790
  | BodyResponseCallback<Schema$Location>
2797
2791
  | BodyResponseCallback<Readable>,
2798
2792
  callback?:
2799
- | BodyResponseCallback<Schema$Location>
2800
- | BodyResponseCallback<Readable>
2793
+ BodyResponseCallback<Schema$Location> | BodyResponseCallback<Readable>
2801
2794
  ):
2802
2795
  | void
2803
2796
  | Promise<GaxiosResponseWithHTTP2<Schema$Location>>
@@ -2989,7 +2982,7 @@ export namespace translate_v3 {
2989
2982
  }
2990
2983
 
2991
2984
  /**
2992
- * Lists information about the supported locations for this service.
2985
+ * Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id\}/locations`. This may include public locations as well as private or other locations specifically visible to the project.
2993
2986
  * @example
2994
2987
  * ```js
2995
2988
  * // Before running the sample:
@@ -3070,8 +3063,7 @@ export namespace translate_v3 {
3070
3063
  list(
3071
3064
  params: Params$Resource$Projects$Locations$List,
3072
3065
  options:
3073
- | MethodOptions
3074
- | BodyResponseCallback<Schema$ListLocationsResponse>,
3066
+ MethodOptions | BodyResponseCallback<Schema$ListLocationsResponse>,
3075
3067
  callback: BodyResponseCallback<Schema$ListLocationsResponse>
3076
3068
  ): void;
3077
3069
  list(
@@ -3371,8 +3363,7 @@ export namespace translate_v3 {
3371
3363
  romanizeText(
3372
3364
  params: Params$Resource$Projects$Locations$Romanizetext,
3373
3365
  options:
3374
- | MethodOptions
3375
- | BodyResponseCallback<Schema$RomanizeTextResponse>,
3366
+ MethodOptions | BodyResponseCallback<Schema$RomanizeTextResponse>,
3376
3367
  callback: BodyResponseCallback<Schema$RomanizeTextResponse>
3377
3368
  ): void;
3378
3369
  romanizeText(
@@ -3536,8 +3527,7 @@ export namespace translate_v3 {
3536
3527
  translateDocument(
3537
3528
  params: Params$Resource$Projects$Locations$Translatedocument,
3538
3529
  options:
3539
- | MethodOptions
3540
- | BodyResponseCallback<Schema$TranslateDocumentResponse>,
3530
+ MethodOptions | BodyResponseCallback<Schema$TranslateDocumentResponse>,
3541
3531
  callback: BodyResponseCallback<Schema$TranslateDocumentResponse>
3542
3532
  ): void;
3543
3533
  translateDocument(
@@ -3696,8 +3686,7 @@ export namespace translate_v3 {
3696
3686
  translateText(
3697
3687
  params: Params$Resource$Projects$Locations$Translatetext,
3698
3688
  options:
3699
- | MethodOptions
3700
- | BodyResponseCallback<Schema$TranslateTextResponse>,
3689
+ MethodOptions | BodyResponseCallback<Schema$TranslateTextResponse>,
3701
3690
  callback: BodyResponseCallback<Schema$TranslateTextResponse>
3702
3691
  ): void;
3703
3692
  translateText(
@@ -4165,8 +4154,7 @@ export namespace translate_v3 {
4165
4154
  | BodyResponseCallback<Schema$Empty>
4166
4155
  | BodyResponseCallback<Readable>,
4167
4156
  callback?:
4168
- | BodyResponseCallback<Schema$Empty>
4169
- | BodyResponseCallback<Readable>
4157
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
4170
4158
  ):
4171
4159
  | void
4172
4160
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -4825,8 +4813,7 @@ export namespace translate_v3 {
4825
4813
  | BodyResponseCallback<Schema$Empty>
4826
4814
  | BodyResponseCallback<Readable>,
4827
4815
  callback?:
4828
- | BodyResponseCallback<Schema$Empty>
4829
- | BodyResponseCallback<Readable>
4816
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
4830
4817
  ):
4831
4818
  | void
4832
4819
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -5054,7 +5041,7 @@ export namespace translate_v3 {
5054
5041
  * pageSize: 'placeholder-value',
5055
5042
  * // Optional. A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtFilesResponse.next_page_token returned from the previous call to `ListAdaptiveMtFiles` method. The first page is returned if `page_token`is empty or missing.
5056
5043
  * pageToken: 'placeholder-value',
5057
- * // Required. The resource name of the project from which to list the Adaptive MT files. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5044
+ * // Required. The resource name of the dataset from which to list the Adaptive MT files. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5058
5045
  * parent:
5059
5046
  * 'projects/my-project/locations/my-location/adaptiveMtDatasets/my-adaptiveMtDataset',
5060
5047
  * });
@@ -5190,7 +5177,7 @@ export namespace translate_v3 {
5190
5177
  */
5191
5178
  pageToken?: string;
5192
5179
  /**
5193
- * Required. The resource name of the project from which to list the Adaptive MT files. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5180
+ * Required. The resource name of the dataset from which to list the Adaptive MT files. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5194
5181
  */
5195
5182
  parent?: string;
5196
5183
  }
@@ -5240,7 +5227,7 @@ export namespace translate_v3 {
5240
5227
  * pageSize: 'placeholder-value',
5241
5228
  * // A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to `ListTranslationMemories` method. The first page is returned if `page_token` is empty or missing.
5242
5229
  * pageToken: 'placeholder-value',
5243
- * // Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5230
+ * // Required. The resource name of the Adaptive MT file from which to list the sentences. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5244
5231
  * parent:
5245
5232
  * 'projects/my-project/locations/my-location/adaptiveMtDatasets/my-adaptiveMtDataset/adaptiveMtFiles/my-adaptiveMtFile',
5246
5233
  * },
@@ -5367,7 +5354,7 @@ export namespace translate_v3 {
5367
5354
  */
5368
5355
  pageToken?: string;
5369
5356
  /**
5370
- * Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5357
+ * Required. The resource name of the Adaptive MT file from which to list the sentences. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5371
5358
  */
5372
5359
  parent?: string;
5373
5360
  }
@@ -5417,7 +5404,7 @@ export namespace translate_v3 {
5417
5404
  * pageSize: 'placeholder-value',
5418
5405
  * // A token identifying a page of results the server should return. Typically, this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned from the previous call to `ListTranslationMemories` method. The first page is returned if `page_token` is empty or missing.
5419
5406
  * pageToken: 'placeholder-value',
5420
- * // Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5407
+ * // Required. The resource name of the Adaptive MT file from which to list the sentences. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5421
5408
  * parent:
5422
5409
  * 'projects/my-project/locations/my-location/adaptiveMtDatasets/my-adaptiveMtDataset',
5423
5410
  * },
@@ -5544,7 +5531,7 @@ export namespace translate_v3 {
5544
5531
  */
5545
5532
  pageToken?: string;
5546
5533
  /**
5547
- * Required. The resource name of the project from which to list the Adaptive MT files. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5534
+ * Required. The resource name of the Adaptive MT file from which to list the sentences. The following format lists all sentences under a file. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}/adaptiveMtFiles/{file\}` The following format lists all sentences within a dataset. `projects/{project\}/locations/{location\}/adaptiveMtDatasets/{dataset\}`
5548
5535
  */
5549
5536
  parent?: string;
5550
5537
  }
@@ -5671,8 +5658,7 @@ export namespace translate_v3 {
5671
5658
  | BodyResponseCallback<Schema$Operation>
5672
5659
  | BodyResponseCallback<Readable>,
5673
5660
  callback?:
5674
- | BodyResponseCallback<Schema$Operation>
5675
- | BodyResponseCallback<Readable>
5661
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5676
5662
  ):
5677
5663
  | void
5678
5664
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5815,8 +5801,7 @@ export namespace translate_v3 {
5815
5801
  | BodyResponseCallback<Schema$Operation>
5816
5802
  | BodyResponseCallback<Readable>,
5817
5803
  callback?:
5818
- | BodyResponseCallback<Schema$Operation>
5819
- | BodyResponseCallback<Readable>
5804
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5820
5805
  ):
5821
5806
  | void
5822
5807
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5964,8 +5949,7 @@ export namespace translate_v3 {
5964
5949
  | BodyResponseCallback<Schema$Operation>
5965
5950
  | BodyResponseCallback<Readable>,
5966
5951
  callback?:
5967
- | BodyResponseCallback<Schema$Operation>
5968
- | BodyResponseCallback<Readable>
5952
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5969
5953
  ):
5970
5954
  | void
5971
5955
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6113,8 +6097,7 @@ export namespace translate_v3 {
6113
6097
  | BodyResponseCallback<Schema$Dataset>
6114
6098
  | BodyResponseCallback<Readable>,
6115
6099
  callback?:
6116
- | BodyResponseCallback<Schema$Dataset>
6117
- | BodyResponseCallback<Readable>
6100
+ BodyResponseCallback<Schema$Dataset> | BodyResponseCallback<Readable>
6118
6101
  ):
6119
6102
  | void
6120
6103
  | Promise<GaxiosResponseWithHTTP2<Schema$Dataset>>
@@ -6262,8 +6245,7 @@ export namespace translate_v3 {
6262
6245
  | BodyResponseCallback<Schema$Operation>
6263
6246
  | BodyResponseCallback<Readable>,
6264
6247
  callback?:
6265
- | BodyResponseCallback<Schema$Operation>
6266
- | BodyResponseCallback<Readable>
6248
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6267
6249
  ):
6268
6250
  | void
6269
6251
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6389,8 +6371,7 @@ export namespace translate_v3 {
6389
6371
  list(
6390
6372
  params: Params$Resource$Projects$Locations$Datasets$List,
6391
6373
  options:
6392
- | MethodOptions
6393
- | BodyResponseCallback<Schema$ListDatasetsResponse>,
6374
+ MethodOptions | BodyResponseCallback<Schema$ListDatasetsResponse>,
6394
6375
  callback: BodyResponseCallback<Schema$ListDatasetsResponse>
6395
6376
  ): void;
6396
6377
  list(
@@ -6605,8 +6586,7 @@ export namespace translate_v3 {
6605
6586
  list(
6606
6587
  params: Params$Resource$Projects$Locations$Datasets$Examples$List,
6607
6588
  options:
6608
- | MethodOptions
6609
- | BodyResponseCallback<Schema$ListExamplesResponse>,
6589
+ MethodOptions | BodyResponseCallback<Schema$ListExamplesResponse>,
6610
6590
  callback: BodyResponseCallback<Schema$ListExamplesResponse>
6611
6591
  ): void;
6612
6592
  list(
@@ -6816,8 +6796,7 @@ export namespace translate_v3 {
6816
6796
  | BodyResponseCallback<Schema$Operation>
6817
6797
  | BodyResponseCallback<Readable>,
6818
6798
  callback?:
6819
- | BodyResponseCallback<Schema$Operation>
6820
- | BodyResponseCallback<Readable>
6799
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6821
6800
  ):
6822
6801
  | void
6823
6802
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6960,8 +6939,7 @@ export namespace translate_v3 {
6960
6939
  | BodyResponseCallback<Schema$Operation>
6961
6940
  | BodyResponseCallback<Readable>,
6962
6941
  callback?:
6963
- | BodyResponseCallback<Schema$Operation>
6964
- | BodyResponseCallback<Readable>
6942
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6965
6943
  ):
6966
6944
  | void
6967
6945
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7104,8 +7082,7 @@ export namespace translate_v3 {
7104
7082
  | BodyResponseCallback<Schema$Glossary>
7105
7083
  | BodyResponseCallback<Readable>,
7106
7084
  callback?:
7107
- | BodyResponseCallback<Schema$Glossary>
7108
- | BodyResponseCallback<Readable>
7085
+ BodyResponseCallback<Schema$Glossary> | BodyResponseCallback<Readable>
7109
7086
  ):
7110
7087
  | void
7111
7088
  | Promise<GaxiosResponseWithHTTP2<Schema$Glossary>>
@@ -7230,8 +7207,7 @@ export namespace translate_v3 {
7230
7207
  list(
7231
7208
  params: Params$Resource$Projects$Locations$Glossaries$List,
7232
7209
  options:
7233
- | MethodOptions
7234
- | BodyResponseCallback<Schema$ListGlossariesResponse>,
7210
+ MethodOptions | BodyResponseCallback<Schema$ListGlossariesResponse>,
7235
7211
  callback: BodyResponseCallback<Schema$ListGlossariesResponse>
7236
7212
  ): void;
7237
7213
  list(
@@ -7411,8 +7387,7 @@ export namespace translate_v3 {
7411
7387
  | BodyResponseCallback<Schema$Operation>
7412
7388
  | BodyResponseCallback<Readable>,
7413
7389
  callback?:
7414
- | BodyResponseCallback<Schema$Operation>
7415
- | BodyResponseCallback<Readable>
7390
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7416
7391
  ):
7417
7392
  | void
7418
7393
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7768,8 +7743,7 @@ export namespace translate_v3 {
7768
7743
  | BodyResponseCallback<Schema$Empty>
7769
7744
  | BodyResponseCallback<Readable>,
7770
7745
  callback?:
7771
- | BodyResponseCallback<Schema$Empty>
7772
- | BodyResponseCallback<Readable>
7746
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
7773
7747
  ):
7774
7748
  | void
7775
7749
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -8431,8 +8405,7 @@ export namespace translate_v3 {
8431
8405
  | BodyResponseCallback<Schema$Operation>
8432
8406
  | BodyResponseCallback<Readable>,
8433
8407
  callback?:
8434
- | BodyResponseCallback<Schema$Operation>
8435
- | BodyResponseCallback<Readable>
8408
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
8436
8409
  ):
8437
8410
  | void
8438
8411
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8575,8 +8548,7 @@ export namespace translate_v3 {
8575
8548
  | BodyResponseCallback<Schema$Operation>
8576
8549
  | BodyResponseCallback<Readable>,
8577
8550
  callback?:
8578
- | BodyResponseCallback<Schema$Operation>
8579
- | BodyResponseCallback<Readable>
8551
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
8580
8552
  ):
8581
8553
  | void
8582
8554
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8721,8 +8693,7 @@ export namespace translate_v3 {
8721
8693
  | BodyResponseCallback<Schema$Model>
8722
8694
  | BodyResponseCallback<Readable>,
8723
8695
  callback?:
8724
- | BodyResponseCallback<Schema$Model>
8725
- | BodyResponseCallback<Readable>
8696
+ BodyResponseCallback<Schema$Model> | BodyResponseCallback<Readable>
8726
8697
  ):
8727
8698
  | void
8728
8699
  | Promise<GaxiosResponseWithHTTP2<Schema$Model>>
@@ -9058,8 +9029,7 @@ export namespace translate_v3 {
9058
9029
  | BodyResponseCallback<Schema$Empty>
9059
9030
  | BodyResponseCallback<Readable>,
9060
9031
  callback?:
9061
- | BodyResponseCallback<Schema$Empty>
9062
- | BodyResponseCallback<Readable>
9032
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
9063
9033
  ):
9064
9034
  | void
9065
9035
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -9193,8 +9163,7 @@ export namespace translate_v3 {
9193
9163
  | BodyResponseCallback<Schema$Empty>
9194
9164
  | BodyResponseCallback<Readable>,
9195
9165
  callback?:
9196
- | BodyResponseCallback<Schema$Empty>
9197
- | BodyResponseCallback<Readable>
9166
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
9198
9167
  ):
9199
9168
  | void
9200
9169
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -9334,8 +9303,7 @@ export namespace translate_v3 {
9334
9303
  | BodyResponseCallback<Schema$Operation>
9335
9304
  | BodyResponseCallback<Readable>,
9336
9305
  callback?:
9337
- | BodyResponseCallback<Schema$Operation>
9338
- | BodyResponseCallback<Readable>
9306
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
9339
9307
  ):
9340
9308
  | void
9341
9309
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -9463,8 +9431,7 @@ export namespace translate_v3 {
9463
9431
  list(
9464
9432
  params: Params$Resource$Projects$Locations$Operations$List,
9465
9433
  options:
9466
- | MethodOptions
9467
- | BodyResponseCallback<Schema$ListOperationsResponse>,
9434
+ MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>,
9468
9435
  callback: BodyResponseCallback<Schema$ListOperationsResponse>
9469
9436
  ): void;
9470
9437
  list(
@@ -9635,8 +9602,7 @@ export namespace translate_v3 {
9635
9602
  | BodyResponseCallback<Schema$Operation>
9636
9603
  | BodyResponseCallback<Readable>,
9637
9604
  callback?:
9638
- | BodyResponseCallback<Schema$Operation>
9639
- | BodyResponseCallback<Readable>
9605
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
9640
9606
  ):
9641
9607
  | void
9642
9608
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
package/v3beta1.ts CHANGED
@@ -858,8 +858,7 @@ export namespace translate_v3beta1 {
858
858
  detectLanguage(
859
859
  params: Params$Resource$Projects$Detectlanguage,
860
860
  options:
861
- | MethodOptions
862
- | BodyResponseCallback<Schema$DetectLanguageResponse>,
861
+ MethodOptions | BodyResponseCallback<Schema$DetectLanguageResponse>,
863
862
  callback: BodyResponseCallback<Schema$DetectLanguageResponse>
864
863
  ): void;
865
864
  detectLanguage(
@@ -1163,8 +1162,7 @@ export namespace translate_v3beta1 {
1163
1162
  translateText(
1164
1163
  params: Params$Resource$Projects$Translatetext,
1165
1164
  options:
1166
- | MethodOptions
1167
- | BodyResponseCallback<Schema$TranslateTextResponse>,
1165
+ MethodOptions | BodyResponseCallback<Schema$TranslateTextResponse>,
1168
1166
  callback: BodyResponseCallback<Schema$TranslateTextResponse>
1169
1167
  ): void;
1170
1168
  translateText(
@@ -1401,8 +1399,7 @@ export namespace translate_v3beta1 {
1401
1399
  | BodyResponseCallback<Schema$Operation>
1402
1400
  | BodyResponseCallback<Readable>,
1403
1401
  callback?:
1404
- | BodyResponseCallback<Schema$Operation>
1405
- | BodyResponseCallback<Readable>
1402
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
1406
1403
  ):
1407
1404
  | void
1408
1405
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -1559,8 +1556,7 @@ export namespace translate_v3beta1 {
1559
1556
  | BodyResponseCallback<Schema$Operation>
1560
1557
  | BodyResponseCallback<Readable>,
1561
1558
  callback?:
1562
- | BodyResponseCallback<Schema$Operation>
1563
- | BodyResponseCallback<Readable>
1559
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
1564
1560
  ):
1565
1561
  | void
1566
1562
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -1692,8 +1688,7 @@ export namespace translate_v3beta1 {
1692
1688
  detectLanguage(
1693
1689
  params: Params$Resource$Projects$Locations$Detectlanguage,
1694
1690
  options:
1695
- | MethodOptions
1696
- | BodyResponseCallback<Schema$DetectLanguageResponse>,
1691
+ MethodOptions | BodyResponseCallback<Schema$DetectLanguageResponse>,
1697
1692
  callback: BodyResponseCallback<Schema$DetectLanguageResponse>
1698
1693
  ): void;
1699
1694
  detectLanguage(
@@ -1858,8 +1853,7 @@ export namespace translate_v3beta1 {
1858
1853
  | BodyResponseCallback<Schema$Location>
1859
1854
  | BodyResponseCallback<Readable>,
1860
1855
  callback?:
1861
- | BodyResponseCallback<Schema$Location>
1862
- | BodyResponseCallback<Readable>
1856
+ BodyResponseCallback<Schema$Location> | BodyResponseCallback<Readable>
1863
1857
  ):
1864
1858
  | void
1865
1859
  | Promise<GaxiosResponseWithHTTP2<Schema$Location>>
@@ -2051,7 +2045,7 @@ export namespace translate_v3beta1 {
2051
2045
  }
2052
2046
 
2053
2047
  /**
2054
- * Lists information about the supported locations for this service.
2048
+ * Lists information about the supported locations for this service. This method can be called in two ways: * **List all public locations:** Use the path `GET /v1/locations`. * **List project-visible locations:** Use the path `GET /v1/projects/{project_id\}/locations`. This may include public locations as well as private or other locations specifically visible to the project.
2055
2049
  * @example
2056
2050
  * ```js
2057
2051
  * // Before running the sample:
@@ -2132,8 +2126,7 @@ export namespace translate_v3beta1 {
2132
2126
  list(
2133
2127
  params: Params$Resource$Projects$Locations$List,
2134
2128
  options:
2135
- | MethodOptions
2136
- | BodyResponseCallback<Schema$ListLocationsResponse>,
2129
+ MethodOptions | BodyResponseCallback<Schema$ListLocationsResponse>,
2137
2130
  callback: BodyResponseCallback<Schema$ListLocationsResponse>
2138
2131
  ): void;
2139
2132
  list(
@@ -2445,8 +2438,7 @@ export namespace translate_v3beta1 {
2445
2438
  translateDocument(
2446
2439
  params: Params$Resource$Projects$Locations$Translatedocument,
2447
2440
  options:
2448
- | MethodOptions
2449
- | BodyResponseCallback<Schema$TranslateDocumentResponse>,
2441
+ MethodOptions | BodyResponseCallback<Schema$TranslateDocumentResponse>,
2450
2442
  callback: BodyResponseCallback<Schema$TranslateDocumentResponse>
2451
2443
  ): void;
2452
2444
  translateDocument(
@@ -2604,8 +2596,7 @@ export namespace translate_v3beta1 {
2604
2596
  translateText(
2605
2597
  params: Params$Resource$Projects$Locations$Translatetext,
2606
2598
  options:
2607
- | MethodOptions
2608
- | BodyResponseCallback<Schema$TranslateTextResponse>,
2599
+ MethodOptions | BodyResponseCallback<Schema$TranslateTextResponse>,
2609
2600
  callback: BodyResponseCallback<Schema$TranslateTextResponse>
2610
2601
  ): void;
2611
2602
  translateText(
@@ -2900,8 +2891,7 @@ export namespace translate_v3beta1 {
2900
2891
  | BodyResponseCallback<Schema$Operation>
2901
2892
  | BodyResponseCallback<Readable>,
2902
2893
  callback?:
2903
- | BodyResponseCallback<Schema$Operation>
2904
- | BodyResponseCallback<Readable>
2894
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2905
2895
  ):
2906
2896
  | void
2907
2897
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3044,8 +3034,7 @@ export namespace translate_v3beta1 {
3044
3034
  | BodyResponseCallback<Schema$Operation>
3045
3035
  | BodyResponseCallback<Readable>,
3046
3036
  callback?:
3047
- | BodyResponseCallback<Schema$Operation>
3048
- | BodyResponseCallback<Readable>
3037
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3049
3038
  ):
3050
3039
  | void
3051
3040
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3187,8 +3176,7 @@ export namespace translate_v3beta1 {
3187
3176
  | BodyResponseCallback<Schema$Glossary>
3188
3177
  | BodyResponseCallback<Readable>,
3189
3178
  callback?:
3190
- | BodyResponseCallback<Schema$Glossary>
3191
- | BodyResponseCallback<Readable>
3179
+ BodyResponseCallback<Schema$Glossary> | BodyResponseCallback<Readable>
3192
3180
  ):
3193
3181
  | void
3194
3182
  | Promise<GaxiosResponseWithHTTP2<Schema$Glossary>>
@@ -3313,8 +3301,7 @@ export namespace translate_v3beta1 {
3313
3301
  list(
3314
3302
  params: Params$Resource$Projects$Locations$Glossaries$List,
3315
3303
  options:
3316
- | MethodOptions
3317
- | BodyResponseCallback<Schema$ListGlossariesResponse>,
3304
+ MethodOptions | BodyResponseCallback<Schema$ListGlossariesResponse>,
3318
3305
  callback: BodyResponseCallback<Schema$ListGlossariesResponse>
3319
3306
  ): void;
3320
3307
  list(
@@ -3526,8 +3513,7 @@ export namespace translate_v3beta1 {
3526
3513
  | BodyResponseCallback<Schema$Empty>
3527
3514
  | BodyResponseCallback<Readable>,
3528
3515
  callback?:
3529
- | BodyResponseCallback<Schema$Empty>
3530
- | BodyResponseCallback<Readable>
3516
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
3531
3517
  ):
3532
3518
  | void
3533
3519
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -3664,8 +3650,7 @@ export namespace translate_v3beta1 {
3664
3650
  | BodyResponseCallback<Schema$Empty>
3665
3651
  | BodyResponseCallback<Readable>,
3666
3652
  callback?:
3667
- | BodyResponseCallback<Schema$Empty>
3668
- | BodyResponseCallback<Readable>
3653
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
3669
3654
  ):
3670
3655
  | void
3671
3656
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -3805,8 +3790,7 @@ export namespace translate_v3beta1 {
3805
3790
  | BodyResponseCallback<Schema$Operation>
3806
3791
  | BodyResponseCallback<Readable>,
3807
3792
  callback?:
3808
- | BodyResponseCallback<Schema$Operation>
3809
- | BodyResponseCallback<Readable>
3793
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
3810
3794
  ):
3811
3795
  | void
3812
3796
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -3934,8 +3918,7 @@ export namespace translate_v3beta1 {
3934
3918
  list(
3935
3919
  params: Params$Resource$Projects$Locations$Operations$List,
3936
3920
  options:
3937
- | MethodOptions
3938
- | BodyResponseCallback<Schema$ListOperationsResponse>,
3921
+ MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>,
3939
3922
  callback: BodyResponseCallback<Schema$ListOperationsResponse>
3940
3923
  ): void;
3941
3924
  list(
@@ -4106,8 +4089,7 @@ export namespace translate_v3beta1 {
4106
4089
  | BodyResponseCallback<Schema$Operation>
4107
4090
  | BodyResponseCallback<Readable>,
4108
4091
  callback?:
4109
- | BodyResponseCallback<Schema$Operation>
4110
- | BodyResponseCallback<Readable>
4092
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
4111
4093
  ):
4112
4094
  | void
4113
4095
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>