@googleapis/translate 7.1.1 → 9.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
@@ -223,6 +223,10 @@ export namespace translate_v3 {
223
223
  * 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.
224
224
  */
225
225
  glossaryConfig?: Schema$GlossaryConfig;
226
+ /**
227
+ * The format of the source text. Currently only text/plain is supported.
228
+ */
229
+ mimeType?: string | null;
226
230
  /**
227
231
  * Configuration for caller provided reference sentences.
228
232
  */
@@ -1465,8 +1469,7 @@ export namespace translate_v3 {
1465
1469
  detectLanguage(
1466
1470
  params: Params$Resource$Projects$Detectlanguage,
1467
1471
  options:
1468
- | MethodOptions
1469
- | BodyResponseCallback<Schema$DetectLanguageResponse>,
1472
+ MethodOptions | BodyResponseCallback<Schema$DetectLanguageResponse>,
1470
1473
  callback: BodyResponseCallback<Schema$DetectLanguageResponse>
1471
1474
  ): void;
1472
1475
  detectLanguage(
@@ -1764,8 +1767,7 @@ export namespace translate_v3 {
1764
1767
  romanizeText(
1765
1768
  params: Params$Resource$Projects$Romanizetext,
1766
1769
  options:
1767
- | MethodOptions
1768
- | BodyResponseCallback<Schema$RomanizeTextResponse>,
1770
+ MethodOptions | BodyResponseCallback<Schema$RomanizeTextResponse>,
1769
1771
  callback: BodyResponseCallback<Schema$RomanizeTextResponse>
1770
1772
  ): void;
1771
1773
  romanizeText(
@@ -1924,8 +1926,7 @@ export namespace translate_v3 {
1924
1926
  translateText(
1925
1927
  params: Params$Resource$Projects$Translatetext,
1926
1928
  options:
1927
- | MethodOptions
1928
- | BodyResponseCallback<Schema$TranslateTextResponse>,
1929
+ MethodOptions | BodyResponseCallback<Schema$TranslateTextResponse>,
1929
1930
  callback: BodyResponseCallback<Schema$TranslateTextResponse>
1930
1931
  ): void;
1931
1932
  translateText(
@@ -2109,6 +2110,7 @@ export namespace translate_v3 {
2109
2110
  * // "content": [],
2110
2111
  * // "dataset": "my_dataset",
2111
2112
  * // "glossaryConfig": {},
2113
+ * // "mimeType": "my_mimeType",
2112
2114
  * // "referenceSentenceConfig": {}
2113
2115
  * // }
2114
2116
  * },
@@ -2337,8 +2339,7 @@ export namespace translate_v3 {
2337
2339
  | BodyResponseCallback<Schema$Operation>
2338
2340
  | BodyResponseCallback<Readable>,
2339
2341
  callback?:
2340
- | BodyResponseCallback<Schema$Operation>
2341
- | BodyResponseCallback<Readable>
2342
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2342
2343
  ):
2343
2344
  | void
2344
2345
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -2496,8 +2497,7 @@ export namespace translate_v3 {
2496
2497
  | BodyResponseCallback<Schema$Operation>
2497
2498
  | BodyResponseCallback<Readable>,
2498
2499
  callback?:
2499
- | BodyResponseCallback<Schema$Operation>
2500
- | BodyResponseCallback<Readable>
2500
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
2501
2501
  ):
2502
2502
  | void
2503
2503
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -2630,8 +2630,7 @@ export namespace translate_v3 {
2630
2630
  detectLanguage(
2631
2631
  params: Params$Resource$Projects$Locations$Detectlanguage,
2632
2632
  options:
2633
- | MethodOptions
2634
- | BodyResponseCallback<Schema$DetectLanguageResponse>,
2633
+ MethodOptions | BodyResponseCallback<Schema$DetectLanguageResponse>,
2635
2634
  callback: BodyResponseCallback<Schema$DetectLanguageResponse>
2636
2635
  ): void;
2637
2636
  detectLanguage(
@@ -2796,8 +2795,7 @@ export namespace translate_v3 {
2796
2795
  | BodyResponseCallback<Schema$Location>
2797
2796
  | BodyResponseCallback<Readable>,
2798
2797
  callback?:
2799
- | BodyResponseCallback<Schema$Location>
2800
- | BodyResponseCallback<Readable>
2798
+ BodyResponseCallback<Schema$Location> | BodyResponseCallback<Readable>
2801
2799
  ):
2802
2800
  | void
2803
2801
  | Promise<GaxiosResponseWithHTTP2<Schema$Location>>
@@ -2989,7 +2987,7 @@ export namespace translate_v3 {
2989
2987
  }
2990
2988
 
2991
2989
  /**
2992
- * 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.
2990
+ * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
2993
2991
  * @example
2994
2992
  * ```js
2995
2993
  * // Before running the sample:
@@ -3022,7 +3020,7 @@ export namespace translate_v3 {
3022
3020
  *
3023
3021
  * // Do the magic
3024
3022
  * const res = await translate.projects.locations.list({
3025
- * // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
3023
+ * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
3026
3024
  * extraLocationTypes: 'placeholder-value',
3027
3025
  * // 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 [AIP-160](https://google.aip.dev/160).
3028
3026
  * filter: 'placeholder-value',
@@ -3070,8 +3068,7 @@ export namespace translate_v3 {
3070
3068
  list(
3071
3069
  params: Params$Resource$Projects$Locations$List,
3072
3070
  options:
3073
- | MethodOptions
3074
- | BodyResponseCallback<Schema$ListLocationsResponse>,
3071
+ MethodOptions | BodyResponseCallback<Schema$ListLocationsResponse>,
3075
3072
  callback: BodyResponseCallback<Schema$ListLocationsResponse>
3076
3073
  ): void;
3077
3074
  list(
@@ -3371,8 +3368,7 @@ export namespace translate_v3 {
3371
3368
  romanizeText(
3372
3369
  params: Params$Resource$Projects$Locations$Romanizetext,
3373
3370
  options:
3374
- | MethodOptions
3375
- | BodyResponseCallback<Schema$RomanizeTextResponse>,
3371
+ MethodOptions | BodyResponseCallback<Schema$RomanizeTextResponse>,
3376
3372
  callback: BodyResponseCallback<Schema$RomanizeTextResponse>
3377
3373
  ): void;
3378
3374
  romanizeText(
@@ -3536,8 +3532,7 @@ export namespace translate_v3 {
3536
3532
  translateDocument(
3537
3533
  params: Params$Resource$Projects$Locations$Translatedocument,
3538
3534
  options:
3539
- | MethodOptions
3540
- | BodyResponseCallback<Schema$TranslateDocumentResponse>,
3535
+ MethodOptions | BodyResponseCallback<Schema$TranslateDocumentResponse>,
3541
3536
  callback: BodyResponseCallback<Schema$TranslateDocumentResponse>
3542
3537
  ): void;
3543
3538
  translateDocument(
@@ -3696,8 +3691,7 @@ export namespace translate_v3 {
3696
3691
  translateText(
3697
3692
  params: Params$Resource$Projects$Locations$Translatetext,
3698
3693
  options:
3699
- | MethodOptions
3700
- | BodyResponseCallback<Schema$TranslateTextResponse>,
3694
+ MethodOptions | BodyResponseCallback<Schema$TranslateTextResponse>,
3701
3695
  callback: BodyResponseCallback<Schema$TranslateTextResponse>
3702
3696
  ): void;
3703
3697
  translateText(
@@ -3834,7 +3828,7 @@ export namespace translate_v3 {
3834
3828
  }
3835
3829
  export interface Params$Resource$Projects$Locations$List extends StandardParameters {
3836
3830
  /**
3837
- * Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
3831
+ * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
3838
3832
  */
3839
3833
  extraLocationTypes?: string[];
3840
3834
  /**
@@ -4165,8 +4159,7 @@ export namespace translate_v3 {
4165
4159
  | BodyResponseCallback<Schema$Empty>
4166
4160
  | BodyResponseCallback<Readable>,
4167
4161
  callback?:
4168
- | BodyResponseCallback<Schema$Empty>
4169
- | BodyResponseCallback<Readable>
4162
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
4170
4163
  ):
4171
4164
  | void
4172
4165
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -4825,8 +4818,7 @@ export namespace translate_v3 {
4825
4818
  | BodyResponseCallback<Schema$Empty>
4826
4819
  | BodyResponseCallback<Readable>,
4827
4820
  callback?:
4828
- | BodyResponseCallback<Schema$Empty>
4829
- | BodyResponseCallback<Readable>
4821
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
4830
4822
  ):
4831
4823
  | void
4832
4824
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -5671,8 +5663,7 @@ export namespace translate_v3 {
5671
5663
  | BodyResponseCallback<Schema$Operation>
5672
5664
  | BodyResponseCallback<Readable>,
5673
5665
  callback?:
5674
- | BodyResponseCallback<Schema$Operation>
5675
- | BodyResponseCallback<Readable>
5666
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5676
5667
  ):
5677
5668
  | void
5678
5669
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5815,8 +5806,7 @@ export namespace translate_v3 {
5815
5806
  | BodyResponseCallback<Schema$Operation>
5816
5807
  | BodyResponseCallback<Readable>,
5817
5808
  callback?:
5818
- | BodyResponseCallback<Schema$Operation>
5819
- | BodyResponseCallback<Readable>
5809
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5820
5810
  ):
5821
5811
  | void
5822
5812
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -5964,8 +5954,7 @@ export namespace translate_v3 {
5964
5954
  | BodyResponseCallback<Schema$Operation>
5965
5955
  | BodyResponseCallback<Readable>,
5966
5956
  callback?:
5967
- | BodyResponseCallback<Schema$Operation>
5968
- | BodyResponseCallback<Readable>
5957
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
5969
5958
  ):
5970
5959
  | void
5971
5960
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6113,8 +6102,7 @@ export namespace translate_v3 {
6113
6102
  | BodyResponseCallback<Schema$Dataset>
6114
6103
  | BodyResponseCallback<Readable>,
6115
6104
  callback?:
6116
- | BodyResponseCallback<Schema$Dataset>
6117
- | BodyResponseCallback<Readable>
6105
+ BodyResponseCallback<Schema$Dataset> | BodyResponseCallback<Readable>
6118
6106
  ):
6119
6107
  | void
6120
6108
  | Promise<GaxiosResponseWithHTTP2<Schema$Dataset>>
@@ -6262,8 +6250,7 @@ export namespace translate_v3 {
6262
6250
  | BodyResponseCallback<Schema$Operation>
6263
6251
  | BodyResponseCallback<Readable>,
6264
6252
  callback?:
6265
- | BodyResponseCallback<Schema$Operation>
6266
- | BodyResponseCallback<Readable>
6253
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6267
6254
  ):
6268
6255
  | void
6269
6256
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6389,8 +6376,7 @@ export namespace translate_v3 {
6389
6376
  list(
6390
6377
  params: Params$Resource$Projects$Locations$Datasets$List,
6391
6378
  options:
6392
- | MethodOptions
6393
- | BodyResponseCallback<Schema$ListDatasetsResponse>,
6379
+ MethodOptions | BodyResponseCallback<Schema$ListDatasetsResponse>,
6394
6380
  callback: BodyResponseCallback<Schema$ListDatasetsResponse>
6395
6381
  ): void;
6396
6382
  list(
@@ -6605,8 +6591,7 @@ export namespace translate_v3 {
6605
6591
  list(
6606
6592
  params: Params$Resource$Projects$Locations$Datasets$Examples$List,
6607
6593
  options:
6608
- | MethodOptions
6609
- | BodyResponseCallback<Schema$ListExamplesResponse>,
6594
+ MethodOptions | BodyResponseCallback<Schema$ListExamplesResponse>,
6610
6595
  callback: BodyResponseCallback<Schema$ListExamplesResponse>
6611
6596
  ): void;
6612
6597
  list(
@@ -6816,8 +6801,7 @@ export namespace translate_v3 {
6816
6801
  | BodyResponseCallback<Schema$Operation>
6817
6802
  | BodyResponseCallback<Readable>,
6818
6803
  callback?:
6819
- | BodyResponseCallback<Schema$Operation>
6820
- | BodyResponseCallback<Readable>
6804
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6821
6805
  ):
6822
6806
  | void
6823
6807
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -6960,8 +6944,7 @@ export namespace translate_v3 {
6960
6944
  | BodyResponseCallback<Schema$Operation>
6961
6945
  | BodyResponseCallback<Readable>,
6962
6946
  callback?:
6963
- | BodyResponseCallback<Schema$Operation>
6964
- | BodyResponseCallback<Readable>
6947
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
6965
6948
  ):
6966
6949
  | void
6967
6950
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7104,8 +7087,7 @@ export namespace translate_v3 {
7104
7087
  | BodyResponseCallback<Schema$Glossary>
7105
7088
  | BodyResponseCallback<Readable>,
7106
7089
  callback?:
7107
- | BodyResponseCallback<Schema$Glossary>
7108
- | BodyResponseCallback<Readable>
7090
+ BodyResponseCallback<Schema$Glossary> | BodyResponseCallback<Readable>
7109
7091
  ):
7110
7092
  | void
7111
7093
  | Promise<GaxiosResponseWithHTTP2<Schema$Glossary>>
@@ -7230,8 +7212,7 @@ export namespace translate_v3 {
7230
7212
  list(
7231
7213
  params: Params$Resource$Projects$Locations$Glossaries$List,
7232
7214
  options:
7233
- | MethodOptions
7234
- | BodyResponseCallback<Schema$ListGlossariesResponse>,
7215
+ MethodOptions | BodyResponseCallback<Schema$ListGlossariesResponse>,
7235
7216
  callback: BodyResponseCallback<Schema$ListGlossariesResponse>
7236
7217
  ): void;
7237
7218
  list(
@@ -7411,8 +7392,7 @@ export namespace translate_v3 {
7411
7392
  | BodyResponseCallback<Schema$Operation>
7412
7393
  | BodyResponseCallback<Readable>,
7413
7394
  callback?:
7414
- | BodyResponseCallback<Schema$Operation>
7415
- | BodyResponseCallback<Readable>
7395
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
7416
7396
  ):
7417
7397
  | void
7418
7398
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -7768,8 +7748,7 @@ export namespace translate_v3 {
7768
7748
  | BodyResponseCallback<Schema$Empty>
7769
7749
  | BodyResponseCallback<Readable>,
7770
7750
  callback?:
7771
- | BodyResponseCallback<Schema$Empty>
7772
- | BodyResponseCallback<Readable>
7751
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
7773
7752
  ):
7774
7753
  | void
7775
7754
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -8431,8 +8410,7 @@ export namespace translate_v3 {
8431
8410
  | BodyResponseCallback<Schema$Operation>
8432
8411
  | BodyResponseCallback<Readable>,
8433
8412
  callback?:
8434
- | BodyResponseCallback<Schema$Operation>
8435
- | BodyResponseCallback<Readable>
8413
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
8436
8414
  ):
8437
8415
  | void
8438
8416
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8575,8 +8553,7 @@ export namespace translate_v3 {
8575
8553
  | BodyResponseCallback<Schema$Operation>
8576
8554
  | BodyResponseCallback<Readable>,
8577
8555
  callback?:
8578
- | BodyResponseCallback<Schema$Operation>
8579
- | BodyResponseCallback<Readable>
8556
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
8580
8557
  ):
8581
8558
  | void
8582
8559
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -8721,8 +8698,7 @@ export namespace translate_v3 {
8721
8698
  | BodyResponseCallback<Schema$Model>
8722
8699
  | BodyResponseCallback<Readable>,
8723
8700
  callback?:
8724
- | BodyResponseCallback<Schema$Model>
8725
- | BodyResponseCallback<Readable>
8701
+ BodyResponseCallback<Schema$Model> | BodyResponseCallback<Readable>
8726
8702
  ):
8727
8703
  | void
8728
8704
  | Promise<GaxiosResponseWithHTTP2<Schema$Model>>
@@ -9058,8 +9034,7 @@ export namespace translate_v3 {
9058
9034
  | BodyResponseCallback<Schema$Empty>
9059
9035
  | BodyResponseCallback<Readable>,
9060
9036
  callback?:
9061
- | BodyResponseCallback<Schema$Empty>
9062
- | BodyResponseCallback<Readable>
9037
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
9063
9038
  ):
9064
9039
  | void
9065
9040
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -9193,8 +9168,7 @@ export namespace translate_v3 {
9193
9168
  | BodyResponseCallback<Schema$Empty>
9194
9169
  | BodyResponseCallback<Readable>,
9195
9170
  callback?:
9196
- | BodyResponseCallback<Schema$Empty>
9197
- | BodyResponseCallback<Readable>
9171
+ BodyResponseCallback<Schema$Empty> | BodyResponseCallback<Readable>
9198
9172
  ):
9199
9173
  | void
9200
9174
  | Promise<GaxiosResponseWithHTTP2<Schema$Empty>>
@@ -9334,8 +9308,7 @@ export namespace translate_v3 {
9334
9308
  | BodyResponseCallback<Schema$Operation>
9335
9309
  | BodyResponseCallback<Readable>,
9336
9310
  callback?:
9337
- | BodyResponseCallback<Schema$Operation>
9338
- | BodyResponseCallback<Readable>
9311
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
9339
9312
  ):
9340
9313
  | void
9341
9314
  | Promise<GaxiosResponseWithHTTP2<Schema$Operation>>
@@ -9463,8 +9436,7 @@ export namespace translate_v3 {
9463
9436
  list(
9464
9437
  params: Params$Resource$Projects$Locations$Operations$List,
9465
9438
  options:
9466
- | MethodOptions
9467
- | BodyResponseCallback<Schema$ListOperationsResponse>,
9439
+ MethodOptions | BodyResponseCallback<Schema$ListOperationsResponse>,
9468
9440
  callback: BodyResponseCallback<Schema$ListOperationsResponse>
9469
9441
  ): void;
9470
9442
  list(
@@ -9635,8 +9607,7 @@ export namespace translate_v3 {
9635
9607
  | BodyResponseCallback<Schema$Operation>
9636
9608
  | BodyResponseCallback<Readable>,
9637
9609
  callback?:
9638
- | BodyResponseCallback<Schema$Operation>
9639
- | BodyResponseCallback<Readable>
9610
+ BodyResponseCallback<Schema$Operation> | BodyResponseCallback<Readable>
9640
9611
  ):
9641
9612
  | void
9642
9613
  | 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. 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.
2048
+ * Lists information about the supported locations for this service. This method lists locations based on the resource scope provided in the ListLocationsRequest.name field: * **Global locations**: If `name` is empty, the method lists the public locations available to all projects. * **Project-specific locations**: If `name` follows the format `projects/{project\}`, the method lists locations visible to that specific project. This includes public, private, or other project-specific locations enabled for the project. For gRPC and client library implementations, the resource name is passed as the `name` field. For direct service calls, the resource name is incorporated into the request path based on the specific service implementation and version.
2055
2049
  * @example
2056
2050
  * ```js
2057
2051
  * // Before running the sample:
@@ -2084,7 +2078,7 @@ export namespace translate_v3beta1 {
2084
2078
  *
2085
2079
  * // Do the magic
2086
2080
  * const res = await translate.projects.locations.list({
2087
- * // Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
2081
+ * // Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
2088
2082
  * extraLocationTypes: 'placeholder-value',
2089
2083
  * // 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 [AIP-160](https://google.aip.dev/160).
2090
2084
  * filter: 'placeholder-value',
@@ -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(
@@ -2731,7 +2722,7 @@ export namespace translate_v3beta1 {
2731
2722
  }
2732
2723
  export interface Params$Resource$Projects$Locations$List extends StandardParameters {
2733
2724
  /**
2734
- * Optional. Do not use this field. It is unsupported and is ignored unless explicitly documented otherwise. This is primarily for internal usage.
2725
+ * Optional. Do not use this field unless explicitly documented otherwise. This is primarily for internal usage.
2735
2726
  */
2736
2727
  extraLocationTypes?: string[];
2737
2728
  /**
@@ -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>>