google-cloud-contact_center_insights-v1 0.21.1 → 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: fbeda17eb6d462ac8c4211d669f8d5ab35df7385b2127481700680a964bd4beb
4
- data.tar.gz: dfdf67beff05cc20a60275463215acd6b8c38755c120ac4d0e0bcc518a1067a9
3
+ metadata.gz: 78afda81e8ed59ce170a30f58cdeb0cf8b4cf1f559451088f23f11f542cbc924
4
+ data.tar.gz: '09b052d4044ad2fd655f89e1663620df87bf5a3f94119b2898be67837a78a6da'
5
5
  SHA512:
6
- metadata.gz: f80b1e025de79ca2ce1c59a97bbd1d018d1105b04e3219e11da0b26cf12fedd902376612cf080be8b5eaa118b0ca9a7458898619a4cb4027aca108acf354df79
7
- data.tar.gz: cf4b3038a530d4daf7ee03c5252504b826c68b232f827be84aa9d27b4245f98754b6d2074ce13ac70610941b0fae087dd2ea3e92772e419e6a0b56a37a55d358
6
+ metadata.gz: c72b60e3da1de699deaf4a8e8fa14f779e4e76089e0242e35203439b0010238ad7f8cb85896195ba169d6cdd2a3f4ae37f01e4b6a1944d321ba7f1cb2ac0d435
7
+ data.tar.gz: e5e0e45fef203d2329796d89f6a1e8b14673b01a2dc132827726140daa1911228c767ead4e6ec48980a5d8212cc2bc8d3319bffa1bd6c4d4401c00cf22e47624
data/README.md CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
76
76
 
77
77
  ## Supported Ruby Versions
78
78
 
79
- This library is supported on Ruby 2.6+.
79
+ This library is supported on Ruby 2.7+.
80
80
 
81
81
  Google provides official support for Ruby versions that are actively supported
82
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -30,6 +30,9 @@ module Google
30
30
  # An API that lets users analyze and explore their business conversation data.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "contactcenterinsights.$UNIVERSE_DOMAIN$"
35
38
 
@@ -243,10 +246,11 @@ module Google
243
246
  # Customize the options with defaults
244
247
  metadata = @config.rpcs.create_conversation.metadata.to_h
245
248
 
246
- # Set x-goog-api-client and x-goog-user-project headers
249
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
247
250
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
248
251
  lib_name: @config.lib_name, lib_version: @config.lib_version,
249
252
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
253
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
250
254
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
251
255
 
252
256
  header_params = {}
@@ -352,10 +356,11 @@ module Google
352
356
  # Customize the options with defaults
353
357
  metadata = @config.rpcs.upload_conversation.metadata.to_h
354
358
 
355
- # 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
356
360
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
357
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
358
362
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
363
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
359
364
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
360
365
 
361
366
  header_params = {}
@@ -440,10 +445,11 @@ module Google
440
445
  # Customize the options with defaults
441
446
  metadata = @config.rpcs.update_conversation.metadata.to_h
442
447
 
443
- # 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
444
449
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
445
450
  lib_name: @config.lib_name, lib_version: @config.lib_version,
446
451
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
452
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
453
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
454
 
449
455
  header_params = {}
@@ -527,10 +533,11 @@ module Google
527
533
  # Customize the options with defaults
528
534
  metadata = @config.rpcs.get_conversation.metadata.to_h
529
535
 
530
- # Set x-goog-api-client and x-goog-user-project headers
536
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
531
537
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
532
538
  lib_name: @config.lib_name, lib_version: @config.lib_version,
533
539
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
540
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
534
541
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
535
542
 
536
543
  header_params = {}
@@ -630,10 +637,11 @@ module Google
630
637
  # Customize the options with defaults
631
638
  metadata = @config.rpcs.list_conversations.metadata.to_h
632
639
 
633
- # Set x-goog-api-client and x-goog-user-project headers
640
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
634
641
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
635
642
  lib_name: @config.lib_name, lib_version: @config.lib_version,
636
643
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
644
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
637
645
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
638
646
 
639
647
  header_params = {}
@@ -720,10 +728,11 @@ module Google
720
728
  # Customize the options with defaults
721
729
  metadata = @config.rpcs.delete_conversation.metadata.to_h
722
730
 
723
- # Set x-goog-api-client and x-goog-user-project headers
731
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
724
732
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
725
733
  lib_name: @config.lib_name, lib_version: @config.lib_version,
726
734
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
735
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
727
736
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
728
737
 
729
738
  header_params = {}
@@ -815,10 +824,11 @@ module Google
815
824
  # Customize the options with defaults
816
825
  metadata = @config.rpcs.create_analysis.metadata.to_h
817
826
 
818
- # Set x-goog-api-client and x-goog-user-project headers
827
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
819
828
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
820
829
  lib_name: @config.lib_name, lib_version: @config.lib_version,
821
830
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
831
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
822
832
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
823
833
 
824
834
  header_params = {}
@@ -901,10 +911,11 @@ module Google
901
911
  # Customize the options with defaults
902
912
  metadata = @config.rpcs.get_analysis.metadata.to_h
903
913
 
904
- # Set x-goog-api-client and x-goog-user-project headers
914
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
905
915
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
906
916
  lib_name: @config.lib_name, lib_version: @config.lib_version,
907
917
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
918
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
908
919
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
909
920
 
910
921
  header_params = {}
@@ -1002,10 +1013,11 @@ module Google
1002
1013
  # Customize the options with defaults
1003
1014
  metadata = @config.rpcs.list_analyses.metadata.to_h
1004
1015
 
1005
- # Set x-goog-api-client and x-goog-user-project headers
1016
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1006
1017
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1007
1018
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1008
1019
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1020
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1009
1021
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1010
1022
 
1011
1023
  header_params = {}
@@ -1088,10 +1100,11 @@ module Google
1088
1100
  # Customize the options with defaults
1089
1101
  metadata = @config.rpcs.delete_analysis.metadata.to_h
1090
1102
 
1091
- # Set x-goog-api-client and x-goog-user-project headers
1103
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1092
1104
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1093
1105
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1094
1106
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1107
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1095
1108
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1096
1109
 
1097
1110
  header_params = {}
@@ -1188,10 +1201,11 @@ module Google
1188
1201
  # Customize the options with defaults
1189
1202
  metadata = @config.rpcs.bulk_analyze_conversations.metadata.to_h
1190
1203
 
1191
- # Set x-goog-api-client and x-goog-user-project headers
1204
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1192
1205
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1193
1206
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1194
1207
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1208
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1195
1209
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1196
1210
 
1197
1211
  header_params = {}
@@ -1291,10 +1305,11 @@ module Google
1291
1305
  # Customize the options with defaults
1292
1306
  metadata = @config.rpcs.bulk_delete_conversations.metadata.to_h
1293
1307
 
1294
- # Set x-goog-api-client and x-goog-user-project headers
1308
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1295
1309
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1296
1310
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1297
1311
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1312
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1298
1313
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1299
1314
 
1300
1315
  header_params = {}
@@ -1398,10 +1413,11 @@ module Google
1398
1413
  # Customize the options with defaults
1399
1414
  metadata = @config.rpcs.ingest_conversations.metadata.to_h
1400
1415
 
1401
- # Set x-goog-api-client and x-goog-user-project headers
1416
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1402
1417
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1403
1418
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1404
1419
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1420
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1405
1421
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1406
1422
 
1407
1423
  header_params = {}
@@ -1502,10 +1518,11 @@ module Google
1502
1518
  # Customize the options with defaults
1503
1519
  metadata = @config.rpcs.export_insights_data.metadata.to_h
1504
1520
 
1505
- # Set x-goog-api-client and x-goog-user-project headers
1521
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1506
1522
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1507
1523
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1508
1524
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1525
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1509
1526
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1510
1527
 
1511
1528
  header_params = {}
@@ -1597,10 +1614,11 @@ module Google
1597
1614
  # Customize the options with defaults
1598
1615
  metadata = @config.rpcs.create_issue_model.metadata.to_h
1599
1616
 
1600
- # Set x-goog-api-client and x-goog-user-project headers
1617
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1601
1618
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1602
1619
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1603
1620
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1621
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1604
1622
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1605
1623
 
1606
1624
  header_params = {}
@@ -1685,10 +1703,11 @@ module Google
1685
1703
  # Customize the options with defaults
1686
1704
  metadata = @config.rpcs.update_issue_model.metadata.to_h
1687
1705
 
1688
- # Set x-goog-api-client and x-goog-user-project headers
1706
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1689
1707
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1690
1708
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1691
1709
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1710
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1692
1711
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1693
1712
 
1694
1713
  header_params = {}
@@ -1770,10 +1789,11 @@ module Google
1770
1789
  # Customize the options with defaults
1771
1790
  metadata = @config.rpcs.get_issue_model.metadata.to_h
1772
1791
 
1773
- # Set x-goog-api-client and x-goog-user-project headers
1792
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1774
1793
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1775
1794
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1776
1795
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1796
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1777
1797
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1778
1798
 
1779
1799
  header_params = {}
@@ -1855,10 +1875,11 @@ module Google
1855
1875
  # Customize the options with defaults
1856
1876
  metadata = @config.rpcs.list_issue_models.metadata.to_h
1857
1877
 
1858
- # Set x-goog-api-client and x-goog-user-project headers
1878
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1859
1879
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1860
1880
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1861
1881
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1882
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1862
1883
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1863
1884
 
1864
1885
  header_params = {}
@@ -1947,10 +1968,11 @@ module Google
1947
1968
  # Customize the options with defaults
1948
1969
  metadata = @config.rpcs.delete_issue_model.metadata.to_h
1949
1970
 
1950
- # Set x-goog-api-client and x-goog-user-project headers
1971
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1951
1972
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1952
1973
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1953
1974
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1975
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1954
1976
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1955
1977
 
1956
1978
  header_params = {}
@@ -2041,10 +2063,11 @@ module Google
2041
2063
  # Customize the options with defaults
2042
2064
  metadata = @config.rpcs.deploy_issue_model.metadata.to_h
2043
2065
 
2044
- # Set x-goog-api-client and x-goog-user-project headers
2066
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2045
2067
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2046
2068
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2047
2069
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2070
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2048
2071
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2049
2072
 
2050
2073
  header_params = {}
@@ -2135,10 +2158,11 @@ module Google
2135
2158
  # Customize the options with defaults
2136
2159
  metadata = @config.rpcs.undeploy_issue_model.metadata.to_h
2137
2160
 
2138
- # Set x-goog-api-client and x-goog-user-project headers
2161
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2139
2162
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2140
2163
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2141
2164
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2165
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2142
2166
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2143
2167
 
2144
2168
  header_params = {}
@@ -2221,10 +2245,11 @@ module Google
2221
2245
  # Customize the options with defaults
2222
2246
  metadata = @config.rpcs.get_issue.metadata.to_h
2223
2247
 
2224
- # Set x-goog-api-client and x-goog-user-project headers
2248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2225
2249
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2226
2250
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2227
2251
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2252
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2228
2253
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2229
2254
 
2230
2255
  header_params = {}
@@ -2306,10 +2331,11 @@ module Google
2306
2331
  # Customize the options with defaults
2307
2332
  metadata = @config.rpcs.list_issues.metadata.to_h
2308
2333
 
2309
- # Set x-goog-api-client and x-goog-user-project headers
2334
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2310
2335
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2311
2336
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2312
2337
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2338
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2313
2339
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2314
2340
 
2315
2341
  header_params = {}
@@ -2393,10 +2419,11 @@ module Google
2393
2419
  # Customize the options with defaults
2394
2420
  metadata = @config.rpcs.update_issue.metadata.to_h
2395
2421
 
2396
- # Set x-goog-api-client and x-goog-user-project headers
2422
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2397
2423
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2398
2424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2399
2425
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2426
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2400
2427
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2401
2428
 
2402
2429
  header_params = {}
@@ -2478,10 +2505,11 @@ module Google
2478
2505
  # Customize the options with defaults
2479
2506
  metadata = @config.rpcs.delete_issue.metadata.to_h
2480
2507
 
2481
- # Set x-goog-api-client and x-goog-user-project headers
2508
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2482
2509
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2483
2510
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2484
2511
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2512
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2485
2513
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2486
2514
 
2487
2515
  header_params = {}
@@ -2563,10 +2591,11 @@ module Google
2563
2591
  # Customize the options with defaults
2564
2592
  metadata = @config.rpcs.calculate_issue_model_stats.metadata.to_h
2565
2593
 
2566
- # Set x-goog-api-client and x-goog-user-project headers
2594
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2567
2595
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2568
2596
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2569
2597
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2598
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2570
2599
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2571
2600
 
2572
2601
  header_params = {}
@@ -2653,10 +2682,11 @@ module Google
2653
2682
  # Customize the options with defaults
2654
2683
  metadata = @config.rpcs.create_phrase_matcher.metadata.to_h
2655
2684
 
2656
- # Set x-goog-api-client and x-goog-user-project headers
2685
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2657
2686
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2658
2687
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2659
2688
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2689
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2660
2690
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2661
2691
 
2662
2692
  header_params = {}
@@ -2738,10 +2768,11 @@ module Google
2738
2768
  # Customize the options with defaults
2739
2769
  metadata = @config.rpcs.get_phrase_matcher.metadata.to_h
2740
2770
 
2741
- # Set x-goog-api-client and x-goog-user-project headers
2771
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2742
2772
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2743
2773
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2744
2774
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2775
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2745
2776
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2746
2777
 
2747
2778
  header_params = {}
@@ -2839,10 +2870,11 @@ module Google
2839
2870
  # Customize the options with defaults
2840
2871
  metadata = @config.rpcs.list_phrase_matchers.metadata.to_h
2841
2872
 
2842
- # Set x-goog-api-client and x-goog-user-project headers
2873
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2843
2874
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2844
2875
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2845
2876
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2877
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2846
2878
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2847
2879
 
2848
2880
  header_params = {}
@@ -2925,10 +2957,11 @@ module Google
2925
2957
  # Customize the options with defaults
2926
2958
  metadata = @config.rpcs.delete_phrase_matcher.metadata.to_h
2927
2959
 
2928
- # Set x-goog-api-client and x-goog-user-project headers
2960
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2929
2961
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2930
2962
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2931
2963
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2964
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2932
2965
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2933
2966
 
2934
2967
  header_params = {}
@@ -3012,10 +3045,11 @@ module Google
3012
3045
  # Customize the options with defaults
3013
3046
  metadata = @config.rpcs.update_phrase_matcher.metadata.to_h
3014
3047
 
3015
- # Set x-goog-api-client and x-goog-user-project headers
3048
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3016
3049
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3017
3050
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3018
3051
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
3052
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3019
3053
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3020
3054
 
3021
3055
  header_params = {}
@@ -3100,10 +3134,11 @@ module Google
3100
3134
  # Customize the options with defaults
3101
3135
  metadata = @config.rpcs.calculate_stats.metadata.to_h
3102
3136
 
3103
- # Set x-goog-api-client and x-goog-user-project headers
3137
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3104
3138
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3105
3139
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3106
3140
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
3141
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3107
3142
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3108
3143
 
3109
3144
  header_params = {}
@@ -3185,10 +3220,11 @@ module Google
3185
3220
  # Customize the options with defaults
3186
3221
  metadata = @config.rpcs.get_settings.metadata.to_h
3187
3222
 
3188
- # Set x-goog-api-client and x-goog-user-project headers
3223
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3189
3224
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3190
3225
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3191
3226
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
3227
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3192
3228
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3193
3229
 
3194
3230
  header_params = {}
@@ -3272,10 +3308,11 @@ module Google
3272
3308
  # Customize the options with defaults
3273
3309
  metadata = @config.rpcs.update_settings.metadata.to_h
3274
3310
 
3275
- # Set x-goog-api-client and x-goog-user-project headers
3311
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3276
3312
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3277
3313
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3278
3314
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
3315
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3279
3316
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3280
3317
 
3281
3318
  header_params = {}
@@ -3362,10 +3399,11 @@ module Google
3362
3399
  # Customize the options with defaults
3363
3400
  metadata = @config.rpcs.create_view.metadata.to_h
3364
3401
 
3365
- # Set x-goog-api-client and x-goog-user-project headers
3402
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3366
3403
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3367
3404
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3368
3405
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
3406
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3369
3407
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3370
3408
 
3371
3409
  header_params = {}
@@ -3447,10 +3485,11 @@ module Google
3447
3485
  # Customize the options with defaults
3448
3486
  metadata = @config.rpcs.get_view.metadata.to_h
3449
3487
 
3450
- # Set x-goog-api-client and x-goog-user-project headers
3488
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3451
3489
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3452
3490
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3453
3491
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
3492
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3454
3493
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3455
3494
 
3456
3495
  header_params = {}
@@ -3545,10 +3584,11 @@ module Google
3545
3584
  # Customize the options with defaults
3546
3585
  metadata = @config.rpcs.list_views.metadata.to_h
3547
3586
 
3548
- # Set x-goog-api-client and x-goog-user-project headers
3587
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3549
3588
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3550
3589
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3551
3590
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
3591
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3552
3592
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3553
3593
 
3554
3594
  header_params = {}
@@ -3633,10 +3673,11 @@ module Google
3633
3673
  # Customize the options with defaults
3634
3674
  metadata = @config.rpcs.update_view.metadata.to_h
3635
3675
 
3636
- # Set x-goog-api-client and x-goog-user-project headers
3676
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3637
3677
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3638
3678
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3639
3679
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
3680
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3640
3681
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3641
3682
 
3642
3683
  header_params = {}
@@ -3718,10 +3759,11 @@ module Google
3718
3759
  # Customize the options with defaults
3719
3760
  metadata = @config.rpcs.delete_view.metadata.to_h
3720
3761
 
3721
- # Set x-goog-api-client and x-goog-user-project headers
3762
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3722
3763
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3723
3764
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3724
3765
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
3766
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3725
3767
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3726
3768
 
3727
3769
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module ContactCenterInsights
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 = "contactcenterinsights.$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::ContactCenterInsights::V1::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::ContactCenterInsights::V1::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::ContactCenterInsights::V1::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::ContactCenterInsights::V1::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::ContactCenterInsights::V1::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,