google-cloud-data_labeling-v1beta1 0.8.0 → 0.8.1

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: e2c9d570259eaf712c2886892707fc998efbbbbb4f2a695fb1ad7c4310bac513
4
- data.tar.gz: c32a9e82c130e49ae5b4406f057832c97acf61c0dddccb430ff580271b358870
3
+ metadata.gz: 956a377fddea9ae5cdf9711bfa223512939d331b8f834b53660ef93444d81ff5
4
+ data.tar.gz: afbb58a1f1dc9b045857e3a45e599f5a63f9e81db3343c04fbece5fc9d73d6f3
5
5
  SHA512:
6
- metadata.gz: deee784083d2be37eb8252e88359c1cd6057e328bcc817b0d78fcc61ff7cd13810ac88bc0e3c5f06159d5fa710ccd1fa76767186a8ea6d323ec35db058bfd58c
7
- data.tar.gz: c978ca8754c10eb5121faf3fa837eca1d1fed0a56c912e5e915901c7b019a870d5691aef0ee8791af401e291237a8127fffa2e8098295ef639be5ff247dd93dd
6
+ metadata.gz: eb5f8e608952865a650a97c8cb1e380ba6186e11179228ec54279ca1081ece85cd499eb8413fe067d1fe61fd77e2f3bf4033a3bb372f8f67dd935bdc965e619d
7
+ data.tar.gz: b4b2016c58b051a65468067a2799133a7b4af0ec8540b4971d2d1b144feb67de46697287a131a5d61f3bf28d64f8dbd5a3d95f86ea7929fb9ac3494e878bced1
@@ -30,6 +30,9 @@ module Google
30
30
  # Service for the AI Platform Data Labeling API.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "datalabeling.$UNIVERSE_DOMAIN$"
35
38
 
@@ -361,10 +364,11 @@ module Google
361
364
  # Customize the options with defaults
362
365
  metadata = @config.rpcs.create_dataset.metadata.to_h
363
366
 
364
- # Set x-goog-api-client and x-goog-user-project headers
367
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
365
368
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
366
369
  lib_name: @config.lib_name, lib_version: @config.lib_version,
367
370
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
371
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
368
372
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
369
373
 
370
374
  header_params = {}
@@ -447,10 +451,11 @@ module Google
447
451
  # Customize the options with defaults
448
452
  metadata = @config.rpcs.get_dataset.metadata.to_h
449
453
 
450
- # Set x-goog-api-client and x-goog-user-project headers
454
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
451
455
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
452
456
  lib_name: @config.lib_name, lib_version: @config.lib_version,
453
457
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
458
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
454
459
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
455
460
 
456
461
  header_params = {}
@@ -548,10 +553,11 @@ module Google
548
553
  # Customize the options with defaults
549
554
  metadata = @config.rpcs.list_datasets.metadata.to_h
550
555
 
551
- # Set x-goog-api-client and x-goog-user-project headers
556
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
552
557
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
553
558
  lib_name: @config.lib_name, lib_version: @config.lib_version,
554
559
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
560
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
555
561
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
556
562
 
557
563
  header_params = {}
@@ -635,10 +641,11 @@ module Google
635
641
  # Customize the options with defaults
636
642
  metadata = @config.rpcs.delete_dataset.metadata.to_h
637
643
 
638
- # Set x-goog-api-client and x-goog-user-project headers
644
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
639
645
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
640
646
  lib_name: @config.lib_name, lib_version: @config.lib_version,
641
647
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
648
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
642
649
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
643
650
 
644
651
  header_params = {}
@@ -737,10 +744,11 @@ module Google
737
744
  # Customize the options with defaults
738
745
  metadata = @config.rpcs.import_data.metadata.to_h
739
746
 
740
- # Set x-goog-api-client and x-goog-user-project headers
747
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
741
748
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
742
749
  lib_name: @config.lib_name, lib_version: @config.lib_version,
743
750
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
751
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
744
752
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
745
753
 
746
754
  header_params = {}
@@ -844,10 +852,11 @@ module Google
844
852
  # Customize the options with defaults
845
853
  metadata = @config.rpcs.export_data.metadata.to_h
846
854
 
847
- # Set x-goog-api-client and x-goog-user-project headers
855
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
848
856
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
849
857
  lib_name: @config.lib_name, lib_version: @config.lib_version,
850
858
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
859
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
851
860
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
852
861
 
853
862
  header_params = {}
@@ -932,10 +941,11 @@ module Google
932
941
  # Customize the options with defaults
933
942
  metadata = @config.rpcs.get_data_item.metadata.to_h
934
943
 
935
- # Set x-goog-api-client and x-goog-user-project headers
944
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
936
945
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
937
946
  lib_name: @config.lib_name, lib_version: @config.lib_version,
938
947
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
948
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
939
949
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
940
950
 
941
951
  header_params = {}
@@ -1034,10 +1044,11 @@ module Google
1034
1044
  # Customize the options with defaults
1035
1045
  metadata = @config.rpcs.list_data_items.metadata.to_h
1036
1046
 
1037
- # Set x-goog-api-client and x-goog-user-project headers
1047
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1038
1048
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1039
1049
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1040
1050
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
1051
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1041
1052
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1042
1053
 
1043
1054
  header_params = {}
@@ -1122,10 +1133,11 @@ module Google
1122
1133
  # Customize the options with defaults
1123
1134
  metadata = @config.rpcs.get_annotated_dataset.metadata.to_h
1124
1135
 
1125
- # Set x-goog-api-client and x-goog-user-project headers
1136
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1126
1137
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1127
1138
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1128
1139
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
1140
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1129
1141
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1130
1142
 
1131
1143
  header_params = {}
@@ -1223,10 +1235,11 @@ module Google
1223
1235
  # Customize the options with defaults
1224
1236
  metadata = @config.rpcs.list_annotated_datasets.metadata.to_h
1225
1237
 
1226
- # Set x-goog-api-client and x-goog-user-project headers
1238
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1227
1239
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1228
1240
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1229
1241
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
1242
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1230
1243
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1231
1244
 
1232
1245
  header_params = {}
@@ -1311,10 +1324,11 @@ module Google
1311
1324
  # Customize the options with defaults
1312
1325
  metadata = @config.rpcs.delete_annotated_dataset.metadata.to_h
1313
1326
 
1314
- # Set x-goog-api-client and x-goog-user-project headers
1327
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1315
1328
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1316
1329
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1317
1330
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
1331
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1318
1332
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1319
1333
 
1320
1334
  header_params = {}
@@ -1425,10 +1439,11 @@ module Google
1425
1439
  # Customize the options with defaults
1426
1440
  metadata = @config.rpcs.label_image.metadata.to_h
1427
1441
 
1428
- # Set x-goog-api-client and x-goog-user-project headers
1442
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1429
1443
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1430
1444
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1431
1445
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
1446
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1432
1447
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1433
1448
 
1434
1449
  header_params = {}
@@ -1540,10 +1555,11 @@ module Google
1540
1555
  # Customize the options with defaults
1541
1556
  metadata = @config.rpcs.label_video.metadata.to_h
1542
1557
 
1543
- # Set x-goog-api-client and x-goog-user-project headers
1558
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1544
1559
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1545
1560
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1546
1561
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
1562
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1547
1563
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1548
1564
 
1549
1565
  header_params = {}
@@ -1647,10 +1663,11 @@ module Google
1647
1663
  # Customize the options with defaults
1648
1664
  metadata = @config.rpcs.label_text.metadata.to_h
1649
1665
 
1650
- # Set x-goog-api-client and x-goog-user-project headers
1666
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1651
1667
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1652
1668
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1653
1669
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
1670
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1654
1671
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1655
1672
 
1656
1673
  header_params = {}
@@ -1739,10 +1756,11 @@ module Google
1739
1756
  # Customize the options with defaults
1740
1757
  metadata = @config.rpcs.get_example.metadata.to_h
1741
1758
 
1742
- # Set x-goog-api-client and x-goog-user-project headers
1759
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1743
1760
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1744
1761
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1745
1762
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
1763
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1746
1764
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1747
1765
 
1748
1766
  header_params = {}
@@ -1842,10 +1860,11 @@ module Google
1842
1860
  # Customize the options with defaults
1843
1861
  metadata = @config.rpcs.list_examples.metadata.to_h
1844
1862
 
1845
- # Set x-goog-api-client and x-goog-user-project headers
1863
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1846
1864
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1847
1865
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1848
1866
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
1867
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1849
1868
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1850
1869
 
1851
1870
  header_params = {}
@@ -1933,10 +1952,11 @@ module Google
1933
1952
  # Customize the options with defaults
1934
1953
  metadata = @config.rpcs.create_annotation_spec_set.metadata.to_h
1935
1954
 
1936
- # Set x-goog-api-client and x-goog-user-project headers
1955
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1937
1956
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1938
1957
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1939
1958
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
1959
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1940
1960
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1941
1961
 
1942
1962
  header_params = {}
@@ -2019,10 +2039,11 @@ module Google
2019
2039
  # Customize the options with defaults
2020
2040
  metadata = @config.rpcs.get_annotation_spec_set.metadata.to_h
2021
2041
 
2022
- # Set x-goog-api-client and x-goog-user-project headers
2042
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2023
2043
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2024
2044
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2025
2045
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
2046
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2026
2047
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2027
2048
 
2028
2049
  header_params = {}
@@ -2120,10 +2141,11 @@ module Google
2120
2141
  # Customize the options with defaults
2121
2142
  metadata = @config.rpcs.list_annotation_spec_sets.metadata.to_h
2122
2143
 
2123
- # Set x-goog-api-client and x-goog-user-project headers
2144
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2124
2145
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2125
2146
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2126
2147
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
2148
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2127
2149
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2128
2150
 
2129
2151
  header_params = {}
@@ -2207,10 +2229,11 @@ module Google
2207
2229
  # Customize the options with defaults
2208
2230
  metadata = @config.rpcs.delete_annotation_spec_set.metadata.to_h
2209
2231
 
2210
- # Set x-goog-api-client and x-goog-user-project headers
2232
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2211
2233
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2212
2234
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2213
2235
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
2236
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2214
2237
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2215
2238
 
2216
2239
  header_params = {}
@@ -2302,10 +2325,11 @@ module Google
2302
2325
  # Customize the options with defaults
2303
2326
  metadata = @config.rpcs.create_instruction.metadata.to_h
2304
2327
 
2305
- # Set x-goog-api-client and x-goog-user-project headers
2328
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2306
2329
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2307
2330
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2308
2331
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
2332
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2309
2333
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2310
2334
 
2311
2335
  header_params = {}
@@ -2389,10 +2413,11 @@ module Google
2389
2413
  # Customize the options with defaults
2390
2414
  metadata = @config.rpcs.get_instruction.metadata.to_h
2391
2415
 
2392
- # Set x-goog-api-client and x-goog-user-project headers
2416
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2393
2417
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2394
2418
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2395
2419
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
2420
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2396
2421
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2397
2422
 
2398
2423
  header_params = {}
@@ -2490,10 +2515,11 @@ module Google
2490
2515
  # Customize the options with defaults
2491
2516
  metadata = @config.rpcs.list_instructions.metadata.to_h
2492
2517
 
2493
- # Set x-goog-api-client and x-goog-user-project headers
2518
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2494
2519
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2495
2520
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2496
2521
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
2522
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2497
2523
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2498
2524
 
2499
2525
  header_params = {}
@@ -2577,10 +2603,11 @@ module Google
2577
2603
  # Customize the options with defaults
2578
2604
  metadata = @config.rpcs.delete_instruction.metadata.to_h
2579
2605
 
2580
- # Set x-goog-api-client and x-goog-user-project headers
2606
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2581
2607
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2582
2608
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2583
2609
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
2610
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2584
2611
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2585
2612
 
2586
2613
  header_params = {}
@@ -2665,10 +2692,11 @@ module Google
2665
2692
  # Customize the options with defaults
2666
2693
  metadata = @config.rpcs.get_evaluation.metadata.to_h
2667
2694
 
2668
- # Set x-goog-api-client and x-goog-user-project headers
2695
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2669
2696
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2670
2697
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2671
2698
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
2699
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2672
2700
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2673
2701
 
2674
2702
  header_params = {}
@@ -2798,10 +2826,11 @@ module Google
2798
2826
  # Customize the options with defaults
2799
2827
  metadata = @config.rpcs.search_evaluations.metadata.to_h
2800
2828
 
2801
- # Set x-goog-api-client and x-goog-user-project headers
2829
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2802
2830
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2803
2831
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2804
2832
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
2833
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2805
2834
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2806
2835
 
2807
2836
  header_params = {}
@@ -2904,10 +2933,11 @@ module Google
2904
2933
  # Customize the options with defaults
2905
2934
  metadata = @config.rpcs.search_example_comparisons.metadata.to_h
2906
2935
 
2907
- # Set x-goog-api-client and x-goog-user-project headers
2936
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2908
2937
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2909
2938
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2910
2939
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
2940
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2911
2941
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2912
2942
 
2913
2943
  header_params = {}
@@ -2993,10 +3023,11 @@ module Google
2993
3023
  # Customize the options with defaults
2994
3024
  metadata = @config.rpcs.create_evaluation_job.metadata.to_h
2995
3025
 
2996
- # Set x-goog-api-client and x-goog-user-project headers
3026
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2997
3027
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2998
3028
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2999
3029
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
3030
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3000
3031
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3001
3032
 
3002
3033
  header_params = {}
@@ -3093,10 +3124,11 @@ module Google
3093
3124
  # Customize the options with defaults
3094
3125
  metadata = @config.rpcs.update_evaluation_job.metadata.to_h
3095
3126
 
3096
- # Set x-goog-api-client and x-goog-user-project headers
3127
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3097
3128
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3098
3129
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3099
3130
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
3131
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3100
3132
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3101
3133
 
3102
3134
  header_params = {}
@@ -3180,10 +3212,11 @@ module Google
3180
3212
  # Customize the options with defaults
3181
3213
  metadata = @config.rpcs.get_evaluation_job.metadata.to_h
3182
3214
 
3183
- # Set x-goog-api-client and x-goog-user-project headers
3215
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3184
3216
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3185
3217
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3186
3218
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
3219
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3187
3220
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3188
3221
 
3189
3222
  header_params = {}
@@ -3268,10 +3301,11 @@ module Google
3268
3301
  # Customize the options with defaults
3269
3302
  metadata = @config.rpcs.pause_evaluation_job.metadata.to_h
3270
3303
 
3271
- # Set x-goog-api-client and x-goog-user-project headers
3304
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3272
3305
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3273
3306
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3274
3307
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
3308
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3275
3309
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3276
3310
 
3277
3311
  header_params = {}
@@ -3356,10 +3390,11 @@ module Google
3356
3390
  # Customize the options with defaults
3357
3391
  metadata = @config.rpcs.resume_evaluation_job.metadata.to_h
3358
3392
 
3359
- # Set x-goog-api-client and x-goog-user-project headers
3393
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3360
3394
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3361
3395
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3362
3396
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
3397
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3363
3398
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3364
3399
 
3365
3400
  header_params = {}
@@ -3443,10 +3478,11 @@ module Google
3443
3478
  # Customize the options with defaults
3444
3479
  metadata = @config.rpcs.delete_evaluation_job.metadata.to_h
3445
3480
 
3446
- # Set x-goog-api-client and x-goog-user-project headers
3481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3447
3482
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3448
3483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3449
3484
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
3485
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3450
3486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3451
3487
 
3452
3488
  header_params = {}
@@ -3552,10 +3588,11 @@ module Google
3552
3588
  # Customize the options with defaults
3553
3589
  metadata = @config.rpcs.list_evaluation_jobs.metadata.to_h
3554
3590
 
3555
- # Set x-goog-api-client and x-goog-user-project headers
3591
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3556
3592
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3557
3593
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3558
3594
  gapic_version: ::Google::Cloud::DataLabeling::V1beta1::VERSION
3595
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3559
3596
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3560
3597
 
3561
3598
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module DataLabelingService
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 = "datalabeling.$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::DataLabeling::V1beta1::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::DataLabeling::V1beta1::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::DataLabeling::V1beta1::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::DataLabeling::V1beta1::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::DataLabeling::V1beta1::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
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module DataLabeling
23
23
  module V1beta1
24
- VERSION = "0.8.0"
24
+ VERSION = "0.8.1"
25
25
  end
26
26
  end
27
27
  end
@@ -1,7 +1,7 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # Source: google/cloud/datalabeling/v1beta1/data_labeling_service.proto for package 'Google.Cloud.DataLabeling.V1beta1'
3
3
  # Original file comments:
4
- # Copyright 2019 Google LLC.
4
+ # Copyright 2024 Google LLC
5
5
  #
6
6
  # Licensed under the Apache License, Version 2.0 (the "License");
7
7
  # you may not use this file except in compliance with the License.
@@ -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
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-data_labeling-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
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-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common