google-cloud-translate-v3 0.12.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f5571aad5c2987771552d6d2e72c64ea5c17f0f87ce5271c060afa3284684af
4
- data.tar.gz: 2c2db75b14247fa7ef315fb90ca4b4f8a19bc9209e9ff7c6cb70a10ab484526d
3
+ metadata.gz: 194c4b2662048ad58908775de0ea00be88ffa4543fc2cf4c6d045b657dc07789
4
+ data.tar.gz: 87efeb3864a43e5533821cb8019ec4b55654baec6130487fa5ca120c09a1db78
5
5
  SHA512:
6
- metadata.gz: 4bb2c8653ec25be0e1f5a835448a591afb7895cc1a02d8ddf479e644eeac7bf01f0b4f17862573e262684a3414f31a9cb4c9dc9959828d35f2df596366540f74
7
- data.tar.gz: 38419f83ccc1e6e903911b2f9c6a22e00f5d054df5e270fdefbaec4f07736a16bc1fc86ee438df75c35338498cb5d4b8609d2ac0c0af978bfd4745b41124e852
6
+ metadata.gz: 75765578a295c337a8f8dc0976db57b1af6b4f2886b0d57660d83f032ebdf662682dd297f8f7eebc61c87c2ac99e19dc1284a5c93f99bee34f0e25bbcfca0b05
7
+ data.tar.gz: 29a7f8689db45cb70baaf9f419f80ecdd5033a6ad6a22465b6dfaea53a55ad0a5f2fd2ed799f75a9728dba8d1661055163b5540b704d8d2e7d0d8907e1326ac7
@@ -30,6 +30,9 @@ module Google
30
30
  # Provides natural language translation operations.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "translate.$UNIVERSE_DOMAIN$"
35
38
 
@@ -321,10 +324,11 @@ module Google
321
324
  # Customize the options with defaults
322
325
  metadata = @config.rpcs.translate_text.metadata.to_h
323
326
 
324
- # Set x-goog-api-client and x-goog-user-project headers
327
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
325
328
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
326
329
  lib_name: @config.lib_name, lib_version: @config.lib_version,
327
330
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
331
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
328
332
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
329
333
 
330
334
  header_params = {}
@@ -441,10 +445,11 @@ module Google
441
445
  # Customize the options with defaults
442
446
  metadata = @config.rpcs.detect_language.metadata.to_h
443
447
 
444
- # Set x-goog-api-client and x-goog-user-project headers
448
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
445
449
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
446
450
  lib_name: @config.lib_name, lib_version: @config.lib_version,
447
451
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
452
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
448
453
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
449
454
 
450
455
  header_params = {}
@@ -556,10 +561,11 @@ module Google
556
561
  # Customize the options with defaults
557
562
  metadata = @config.rpcs.get_supported_languages.metadata.to_h
558
563
 
559
- # Set x-goog-api-client and x-goog-user-project headers
564
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
560
565
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
561
566
  lib_name: @config.lib_name, lib_version: @config.lib_version,
562
567
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
568
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
563
569
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
564
570
 
565
571
  header_params = {}
@@ -714,10 +720,11 @@ module Google
714
720
  # Customize the options with defaults
715
721
  metadata = @config.rpcs.translate_document.metadata.to_h
716
722
 
717
- # Set x-goog-api-client and x-goog-user-project headers
723
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
718
724
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
719
725
  lib_name: @config.lib_name, lib_version: @config.lib_version,
720
726
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
727
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
721
728
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
722
729
 
723
730
  header_params = {}
@@ -862,10 +869,11 @@ module Google
862
869
  # Customize the options with defaults
863
870
  metadata = @config.rpcs.batch_translate_text.metadata.to_h
864
871
 
865
- # Set x-goog-api-client and x-goog-user-project headers
872
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
866
873
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
867
874
  lib_name: @config.lib_name, lib_version: @config.lib_version,
868
875
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
876
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
869
877
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
870
878
 
871
879
  header_params = {}
@@ -1026,10 +1034,11 @@ module Google
1026
1034
  # Customize the options with defaults
1027
1035
  metadata = @config.rpcs.batch_translate_document.metadata.to_h
1028
1036
 
1029
- # Set x-goog-api-client and x-goog-user-project headers
1037
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1030
1038
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1031
1039
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1032
1040
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
1041
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1033
1042
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1034
1043
 
1035
1044
  header_params = {}
@@ -1122,10 +1131,11 @@ module Google
1122
1131
  # Customize the options with defaults
1123
1132
  metadata = @config.rpcs.create_glossary.metadata.to_h
1124
1133
 
1125
- # Set x-goog-api-client and x-goog-user-project headers
1134
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1126
1135
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1127
1136
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1128
1137
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
1138
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1129
1139
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1130
1140
 
1131
1141
  header_params = {}
@@ -1238,10 +1248,11 @@ module Google
1238
1248
  # Customize the options with defaults
1239
1249
  metadata = @config.rpcs.list_glossaries.metadata.to_h
1240
1250
 
1241
- # Set x-goog-api-client and x-goog-user-project headers
1251
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1242
1252
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1243
1253
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1244
1254
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
1255
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1245
1256
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1246
1257
 
1247
1258
  header_params = {}
@@ -1325,10 +1336,11 @@ module Google
1325
1336
  # Customize the options with defaults
1326
1337
  metadata = @config.rpcs.get_glossary.metadata.to_h
1327
1338
 
1328
- # Set x-goog-api-client and x-goog-user-project headers
1339
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1329
1340
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1330
1341
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1331
1342
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
1343
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1332
1344
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1333
1345
 
1334
1346
  header_params = {}
@@ -1419,10 +1431,11 @@ module Google
1419
1431
  # Customize the options with defaults
1420
1432
  metadata = @config.rpcs.delete_glossary.metadata.to_h
1421
1433
 
1422
- # Set x-goog-api-client and x-goog-user-project headers
1434
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1423
1435
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1424
1436
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1425
1437
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
1438
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1426
1439
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1427
1440
 
1428
1441
  header_params = {}
@@ -1508,10 +1521,11 @@ module Google
1508
1521
  # Customize the options with defaults
1509
1522
  metadata = @config.rpcs.create_adaptive_mt_dataset.metadata.to_h
1510
1523
 
1511
- # Set x-goog-api-client and x-goog-user-project headers
1524
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1512
1525
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1513
1526
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1514
1527
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
1528
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1515
1529
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1516
1530
 
1517
1531
  header_params = {}
@@ -1595,10 +1609,11 @@ module Google
1595
1609
  # Customize the options with defaults
1596
1610
  metadata = @config.rpcs.delete_adaptive_mt_dataset.metadata.to_h
1597
1611
 
1598
- # Set x-goog-api-client and x-goog-user-project headers
1612
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1599
1613
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1600
1614
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1601
1615
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
1616
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1602
1617
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1603
1618
 
1604
1619
  header_params = {}
@@ -1681,10 +1696,11 @@ module Google
1681
1696
  # Customize the options with defaults
1682
1697
  metadata = @config.rpcs.get_adaptive_mt_dataset.metadata.to_h
1683
1698
 
1684
- # Set x-goog-api-client and x-goog-user-project headers
1699
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1685
1700
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1686
1701
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1687
1702
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
1703
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1688
1704
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1689
1705
 
1690
1706
  header_params = {}
@@ -1783,10 +1799,11 @@ module Google
1783
1799
  # Customize the options with defaults
1784
1800
  metadata = @config.rpcs.list_adaptive_mt_datasets.metadata.to_h
1785
1801
 
1786
- # Set x-goog-api-client and x-goog-user-project headers
1802
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1787
1803
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1788
1804
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1789
1805
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
1806
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1790
1807
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1791
1808
 
1792
1809
  header_params = {}
@@ -1877,10 +1894,11 @@ module Google
1877
1894
  # Customize the options with defaults
1878
1895
  metadata = @config.rpcs.adaptive_mt_translate.metadata.to_h
1879
1896
 
1880
- # Set x-goog-api-client and x-goog-user-project headers
1897
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1881
1898
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1882
1899
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1883
1900
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
1901
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1884
1902
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1885
1903
 
1886
1904
  header_params = {}
@@ -1963,10 +1981,11 @@ module Google
1963
1981
  # Customize the options with defaults
1964
1982
  metadata = @config.rpcs.get_adaptive_mt_file.metadata.to_h
1965
1983
 
1966
- # Set x-goog-api-client and x-goog-user-project headers
1984
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1967
1985
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1968
1986
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1969
1987
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
1988
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1970
1989
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1971
1990
 
1972
1991
  header_params = {}
@@ -2049,10 +2068,11 @@ module Google
2049
2068
  # Customize the options with defaults
2050
2069
  metadata = @config.rpcs.delete_adaptive_mt_file.metadata.to_h
2051
2070
 
2052
- # Set x-goog-api-client and x-goog-user-project headers
2071
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2053
2072
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2054
2073
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2055
2074
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
2075
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2056
2076
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2057
2077
 
2058
2078
  header_params = {}
@@ -2140,10 +2160,11 @@ module Google
2140
2160
  # Customize the options with defaults
2141
2161
  metadata = @config.rpcs.import_adaptive_mt_file.metadata.to_h
2142
2162
 
2143
- # Set x-goog-api-client and x-goog-user-project headers
2163
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2144
2164
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2145
2165
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2146
2166
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
2167
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2147
2168
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2148
2169
 
2149
2170
  header_params = {}
@@ -2239,10 +2260,11 @@ module Google
2239
2260
  # Customize the options with defaults
2240
2261
  metadata = @config.rpcs.list_adaptive_mt_files.metadata.to_h
2241
2262
 
2242
- # Set x-goog-api-client and x-goog-user-project headers
2263
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2243
2264
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2244
2265
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2245
2266
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
2267
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2246
2268
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2247
2269
 
2248
2270
  header_params = {}
@@ -2340,10 +2362,11 @@ module Google
2340
2362
  # Customize the options with defaults
2341
2363
  metadata = @config.rpcs.list_adaptive_mt_sentences.metadata.to_h
2342
2364
 
2343
- # Set x-goog-api-client and x-goog-user-project headers
2365
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2344
2366
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2345
2367
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2346
2368
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
2369
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2347
2370
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2348
2371
 
2349
2372
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module TranslationService
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "translate.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Translate::V3::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  header_params = {}
@@ -32,6 +32,9 @@ module Google
32
32
  # Provides natural language translation operations.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "translate.$UNIVERSE_DOMAIN$"
37
40
 
@@ -313,12 +316,13 @@ module Google
313
316
  # Customize the options with defaults
314
317
  call_metadata = @config.rpcs.translate_text.metadata.to_h
315
318
 
316
- # Set x-goog-api-client and x-goog-user-project headers
319
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
317
320
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
318
321
  lib_name: @config.lib_name, lib_version: @config.lib_version,
319
322
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
320
323
  transports_version_send: [:rest]
321
324
 
325
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
322
326
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
323
327
 
324
328
  options.apply_defaults timeout: @config.rpcs.translate_text.timeout,
@@ -426,12 +430,13 @@ module Google
426
430
  # Customize the options with defaults
427
431
  call_metadata = @config.rpcs.detect_language.metadata.to_h
428
432
 
429
- # Set x-goog-api-client and x-goog-user-project headers
433
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
430
434
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
431
435
  lib_name: @config.lib_name, lib_version: @config.lib_version,
432
436
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
433
437
  transports_version_send: [:rest]
434
438
 
439
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
435
440
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
436
441
 
437
442
  options.apply_defaults timeout: @config.rpcs.detect_language.timeout,
@@ -534,12 +539,13 @@ module Google
534
539
  # Customize the options with defaults
535
540
  call_metadata = @config.rpcs.get_supported_languages.metadata.to_h
536
541
 
537
- # Set x-goog-api-client and x-goog-user-project headers
542
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
538
543
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
539
544
  lib_name: @config.lib_name, lib_version: @config.lib_version,
540
545
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
541
546
  transports_version_send: [:rest]
542
547
 
548
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
543
549
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
544
550
 
545
551
  options.apply_defaults timeout: @config.rpcs.get_supported_languages.timeout,
@@ -685,12 +691,13 @@ module Google
685
691
  # Customize the options with defaults
686
692
  call_metadata = @config.rpcs.translate_document.metadata.to_h
687
693
 
688
- # Set x-goog-api-client and x-goog-user-project headers
694
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
689
695
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
690
696
  lib_name: @config.lib_name, lib_version: @config.lib_version,
691
697
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
692
698
  transports_version_send: [:rest]
693
699
 
700
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
694
701
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
695
702
 
696
703
  options.apply_defaults timeout: @config.rpcs.translate_document.timeout,
@@ -826,12 +833,13 @@ module Google
826
833
  # Customize the options with defaults
827
834
  call_metadata = @config.rpcs.batch_translate_text.metadata.to_h
828
835
 
829
- # Set x-goog-api-client and x-goog-user-project headers
836
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
830
837
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
831
838
  lib_name: @config.lib_name, lib_version: @config.lib_version,
832
839
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
833
840
  transports_version_send: [:rest]
834
841
 
842
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
835
843
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
836
844
 
837
845
  options.apply_defaults timeout: @config.rpcs.batch_translate_text.timeout,
@@ -983,12 +991,13 @@ module Google
983
991
  # Customize the options with defaults
984
992
  call_metadata = @config.rpcs.batch_translate_document.metadata.to_h
985
993
 
986
- # Set x-goog-api-client and x-goog-user-project headers
994
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
987
995
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
988
996
  lib_name: @config.lib_name, lib_version: @config.lib_version,
989
997
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
990
998
  transports_version_send: [:rest]
991
999
 
1000
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
992
1001
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
993
1002
 
994
1003
  options.apply_defaults timeout: @config.rpcs.batch_translate_document.timeout,
@@ -1072,12 +1081,13 @@ module Google
1072
1081
  # Customize the options with defaults
1073
1082
  call_metadata = @config.rpcs.create_glossary.metadata.to_h
1074
1083
 
1075
- # Set x-goog-api-client and x-goog-user-project headers
1084
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1076
1085
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1077
1086
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1078
1087
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
1079
1088
  transports_version_send: [:rest]
1080
1089
 
1090
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1081
1091
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1082
1092
 
1083
1093
  options.apply_defaults timeout: @config.rpcs.create_glossary.timeout,
@@ -1181,12 +1191,13 @@ module Google
1181
1191
  # Customize the options with defaults
1182
1192
  call_metadata = @config.rpcs.list_glossaries.metadata.to_h
1183
1193
 
1184
- # Set x-goog-api-client and x-goog-user-project headers
1194
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1185
1195
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1186
1196
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1187
1197
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
1188
1198
  transports_version_send: [:rest]
1189
1199
 
1200
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1190
1201
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1191
1202
 
1192
1203
  options.apply_defaults timeout: @config.rpcs.list_glossaries.timeout,
@@ -1261,12 +1272,13 @@ module Google
1261
1272
  # Customize the options with defaults
1262
1273
  call_metadata = @config.rpcs.get_glossary.metadata.to_h
1263
1274
 
1264
- # Set x-goog-api-client and x-goog-user-project headers
1275
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1265
1276
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1266
1277
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1267
1278
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
1268
1279
  transports_version_send: [:rest]
1269
1280
 
1281
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1270
1282
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1271
1283
 
1272
1284
  options.apply_defaults timeout: @config.rpcs.get_glossary.timeout,
@@ -1348,12 +1360,13 @@ module Google
1348
1360
  # Customize the options with defaults
1349
1361
  call_metadata = @config.rpcs.delete_glossary.metadata.to_h
1350
1362
 
1351
- # Set x-goog-api-client and x-goog-user-project headers
1363
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1352
1364
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1353
1365
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1354
1366
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
1355
1367
  transports_version_send: [:rest]
1356
1368
 
1369
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1357
1370
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1358
1371
 
1359
1372
  options.apply_defaults timeout: @config.rpcs.delete_glossary.timeout,
@@ -1430,12 +1443,13 @@ module Google
1430
1443
  # Customize the options with defaults
1431
1444
  call_metadata = @config.rpcs.create_adaptive_mt_dataset.metadata.to_h
1432
1445
 
1433
- # Set x-goog-api-client and x-goog-user-project headers
1446
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1434
1447
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1435
1448
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1436
1449
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
1437
1450
  transports_version_send: [:rest]
1438
1451
 
1452
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1439
1453
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1440
1454
 
1441
1455
  options.apply_defaults timeout: @config.rpcs.create_adaptive_mt_dataset.timeout,
@@ -1510,12 +1524,13 @@ module Google
1510
1524
  # Customize the options with defaults
1511
1525
  call_metadata = @config.rpcs.delete_adaptive_mt_dataset.metadata.to_h
1512
1526
 
1513
- # Set x-goog-api-client and x-goog-user-project headers
1527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1514
1528
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1515
1529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1516
1530
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
1517
1531
  transports_version_send: [:rest]
1518
1532
 
1533
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1519
1534
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1520
1535
 
1521
1536
  options.apply_defaults timeout: @config.rpcs.delete_adaptive_mt_dataset.timeout,
@@ -1589,12 +1604,13 @@ module Google
1589
1604
  # Customize the options with defaults
1590
1605
  call_metadata = @config.rpcs.get_adaptive_mt_dataset.metadata.to_h
1591
1606
 
1592
- # Set x-goog-api-client and x-goog-user-project headers
1607
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1593
1608
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1594
1609
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1595
1610
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
1596
1611
  transports_version_send: [:rest]
1597
1612
 
1613
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1598
1614
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1599
1615
 
1600
1616
  options.apply_defaults timeout: @config.rpcs.get_adaptive_mt_dataset.timeout,
@@ -1684,12 +1700,13 @@ module Google
1684
1700
  # Customize the options with defaults
1685
1701
  call_metadata = @config.rpcs.list_adaptive_mt_datasets.metadata.to_h
1686
1702
 
1687
- # Set x-goog-api-client and x-goog-user-project headers
1703
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1688
1704
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1689
1705
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1690
1706
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
1691
1707
  transports_version_send: [:rest]
1692
1708
 
1709
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1693
1710
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1694
1711
 
1695
1712
  options.apply_defaults timeout: @config.rpcs.list_adaptive_mt_datasets.timeout,
@@ -1771,12 +1788,13 @@ module Google
1771
1788
  # Customize the options with defaults
1772
1789
  call_metadata = @config.rpcs.adaptive_mt_translate.metadata.to_h
1773
1790
 
1774
- # Set x-goog-api-client and x-goog-user-project headers
1791
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1775
1792
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1776
1793
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1777
1794
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
1778
1795
  transports_version_send: [:rest]
1779
1796
 
1797
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1780
1798
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1781
1799
 
1782
1800
  options.apply_defaults timeout: @config.rpcs.adaptive_mt_translate.timeout,
@@ -1850,12 +1868,13 @@ module Google
1850
1868
  # Customize the options with defaults
1851
1869
  call_metadata = @config.rpcs.get_adaptive_mt_file.metadata.to_h
1852
1870
 
1853
- # Set x-goog-api-client and x-goog-user-project headers
1871
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1854
1872
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1855
1873
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1856
1874
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
1857
1875
  transports_version_send: [:rest]
1858
1876
 
1877
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1859
1878
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1860
1879
 
1861
1880
  options.apply_defaults timeout: @config.rpcs.get_adaptive_mt_file.timeout,
@@ -1929,12 +1948,13 @@ module Google
1929
1948
  # Customize the options with defaults
1930
1949
  call_metadata = @config.rpcs.delete_adaptive_mt_file.metadata.to_h
1931
1950
 
1932
- # Set x-goog-api-client and x-goog-user-project headers
1951
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1933
1952
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1934
1953
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1935
1954
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
1936
1955
  transports_version_send: [:rest]
1937
1956
 
1957
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1938
1958
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1939
1959
 
1940
1960
  options.apply_defaults timeout: @config.rpcs.delete_adaptive_mt_file.timeout,
@@ -2013,12 +2033,13 @@ module Google
2013
2033
  # Customize the options with defaults
2014
2034
  call_metadata = @config.rpcs.import_adaptive_mt_file.metadata.to_h
2015
2035
 
2016
- # Set x-goog-api-client and x-goog-user-project headers
2036
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2017
2037
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2018
2038
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2019
2039
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
2020
2040
  transports_version_send: [:rest]
2021
2041
 
2042
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2022
2043
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2023
2044
 
2024
2045
  options.apply_defaults timeout: @config.rpcs.import_adaptive_mt_file.timeout,
@@ -2105,12 +2126,13 @@ module Google
2105
2126
  # Customize the options with defaults
2106
2127
  call_metadata = @config.rpcs.list_adaptive_mt_files.metadata.to_h
2107
2128
 
2108
- # Set x-goog-api-client and x-goog-user-project headers
2129
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2109
2130
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2110
2131
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2111
2132
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
2112
2133
  transports_version_send: [:rest]
2113
2134
 
2135
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2114
2136
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2115
2137
 
2116
2138
  options.apply_defaults timeout: @config.rpcs.list_adaptive_mt_files.timeout,
@@ -2199,12 +2221,13 @@ module Google
2199
2221
  # Customize the options with defaults
2200
2222
  call_metadata = @config.rpcs.list_adaptive_mt_sentences.metadata.to_h
2201
2223
 
2202
- # Set x-goog-api-client and x-goog-user-project headers
2224
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2203
2225
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2204
2226
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2205
2227
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
2206
2228
  transports_version_send: [:rest]
2207
2229
 
2230
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2208
2231
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2209
2232
 
2210
2233
  options.apply_defaults timeout: @config.rpcs.list_adaptive_mt_sentences.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "translate.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -535,12 +542,13 @@ module Google
535
542
  # Customize the options with defaults
536
543
  call_metadata = @config.rpcs.wait_operation.metadata.to_h
537
544
 
538
- # Set x-goog-api-client and x-goog-user-project headers
545
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
539
546
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
540
547
  lib_name: @config.lib_name, lib_version: @config.lib_version,
541
548
  gapic_version: ::Google::Cloud::Translate::V3::VERSION,
542
549
  transports_version_send: [:rest]
543
550
 
551
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
544
552
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
545
553
 
546
554
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Translate
23
23
  module V3
24
- VERSION = "0.12.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-translate-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common