google-cloud-contact_center_insights-v1 0.22.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -32,6 +32,9 @@ module Google
32
32
  # An API that lets users analyze and explore their business conversation data.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "contactcenterinsights.$UNIVERSE_DOMAIN$"
37
40
 
@@ -235,12 +238,13 @@ module Google
235
238
  # Customize the options with defaults
236
239
  call_metadata = @config.rpcs.create_conversation.metadata.to_h
237
240
 
238
- # Set x-goog-api-client and x-goog-user-project headers
241
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
239
242
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
240
243
  lib_name: @config.lib_name, lib_version: @config.lib_version,
241
244
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
242
245
  transports_version_send: [:rest]
243
246
 
247
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
244
248
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
245
249
 
246
250
  options.apply_defaults timeout: @config.rpcs.create_conversation.timeout,
@@ -337,12 +341,13 @@ module Google
337
341
  # Customize the options with defaults
338
342
  call_metadata = @config.rpcs.upload_conversation.metadata.to_h
339
343
 
340
- # Set x-goog-api-client and x-goog-user-project headers
344
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
341
345
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
342
346
  lib_name: @config.lib_name, lib_version: @config.lib_version,
343
347
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
344
348
  transports_version_send: [:rest]
345
349
 
350
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
346
351
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
347
352
 
348
353
  options.apply_defaults timeout: @config.rpcs.upload_conversation.timeout,
@@ -418,12 +423,13 @@ module Google
418
423
  # Customize the options with defaults
419
424
  call_metadata = @config.rpcs.update_conversation.metadata.to_h
420
425
 
421
- # Set x-goog-api-client and x-goog-user-project headers
426
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
422
427
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
423
428
  lib_name: @config.lib_name, lib_version: @config.lib_version,
424
429
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
425
430
  transports_version_send: [:rest]
426
431
 
432
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
427
433
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
428
434
 
429
435
  options.apply_defaults timeout: @config.rpcs.update_conversation.timeout,
@@ -498,12 +504,13 @@ module Google
498
504
  # Customize the options with defaults
499
505
  call_metadata = @config.rpcs.get_conversation.metadata.to_h
500
506
 
501
- # Set x-goog-api-client and x-goog-user-project headers
507
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
502
508
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
503
509
  lib_name: @config.lib_name, lib_version: @config.lib_version,
504
510
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
505
511
  transports_version_send: [:rest]
506
512
 
513
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
507
514
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
508
515
 
509
516
  options.apply_defaults timeout: @config.rpcs.get_conversation.timeout,
@@ -594,12 +601,13 @@ module Google
594
601
  # Customize the options with defaults
595
602
  call_metadata = @config.rpcs.list_conversations.metadata.to_h
596
603
 
597
- # Set x-goog-api-client and x-goog-user-project headers
604
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
598
605
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
599
606
  lib_name: @config.lib_name, lib_version: @config.lib_version,
600
607
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
601
608
  transports_version_send: [:rest]
602
609
 
610
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
603
611
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
604
612
 
605
613
  options.apply_defaults timeout: @config.rpcs.list_conversations.timeout,
@@ -677,12 +685,13 @@ module Google
677
685
  # Customize the options with defaults
678
686
  call_metadata = @config.rpcs.delete_conversation.metadata.to_h
679
687
 
680
- # Set x-goog-api-client and x-goog-user-project headers
688
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
681
689
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
682
690
  lib_name: @config.lib_name, lib_version: @config.lib_version,
683
691
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
684
692
  transports_version_send: [:rest]
685
693
 
694
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
686
695
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
687
696
 
688
697
  options.apply_defaults timeout: @config.rpcs.delete_conversation.timeout,
@@ -765,12 +774,13 @@ module Google
765
774
  # Customize the options with defaults
766
775
  call_metadata = @config.rpcs.create_analysis.metadata.to_h
767
776
 
768
- # Set x-goog-api-client and x-goog-user-project headers
777
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
769
778
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
770
779
  lib_name: @config.lib_name, lib_version: @config.lib_version,
771
780
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
772
781
  transports_version_send: [:rest]
773
782
 
783
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
774
784
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
775
785
 
776
786
  options.apply_defaults timeout: @config.rpcs.create_analysis.timeout,
@@ -844,12 +854,13 @@ module Google
844
854
  # Customize the options with defaults
845
855
  call_metadata = @config.rpcs.get_analysis.metadata.to_h
846
856
 
847
- # Set x-goog-api-client and x-goog-user-project headers
857
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
848
858
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
849
859
  lib_name: @config.lib_name, lib_version: @config.lib_version,
850
860
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
851
861
  transports_version_send: [:rest]
852
862
 
863
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
853
864
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
854
865
 
855
866
  options.apply_defaults timeout: @config.rpcs.get_analysis.timeout,
@@ -938,12 +949,13 @@ module Google
938
949
  # Customize the options with defaults
939
950
  call_metadata = @config.rpcs.list_analyses.metadata.to_h
940
951
 
941
- # Set x-goog-api-client and x-goog-user-project headers
952
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
942
953
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
943
954
  lib_name: @config.lib_name, lib_version: @config.lib_version,
944
955
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
945
956
  transports_version_send: [:rest]
946
957
 
958
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
947
959
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
948
960
 
949
961
  options.apply_defaults timeout: @config.rpcs.list_analyses.timeout,
@@ -1017,12 +1029,13 @@ module Google
1017
1029
  # Customize the options with defaults
1018
1030
  call_metadata = @config.rpcs.delete_analysis.metadata.to_h
1019
1031
 
1020
- # Set x-goog-api-client and x-goog-user-project headers
1032
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1021
1033
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1022
1034
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1023
1035
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1024
1036
  transports_version_send: [:rest]
1025
1037
 
1038
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1026
1039
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1027
1040
 
1028
1041
  options.apply_defaults timeout: @config.rpcs.delete_analysis.timeout,
@@ -1110,12 +1123,13 @@ module Google
1110
1123
  # Customize the options with defaults
1111
1124
  call_metadata = @config.rpcs.bulk_analyze_conversations.metadata.to_h
1112
1125
 
1113
- # Set x-goog-api-client and x-goog-user-project headers
1126
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1114
1127
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1115
1128
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1116
1129
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1117
1130
  transports_version_send: [:rest]
1118
1131
 
1132
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1119
1133
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1120
1134
 
1121
1135
  options.apply_defaults timeout: @config.rpcs.bulk_analyze_conversations.timeout,
@@ -1206,12 +1220,13 @@ module Google
1206
1220
  # Customize the options with defaults
1207
1221
  call_metadata = @config.rpcs.bulk_delete_conversations.metadata.to_h
1208
1222
 
1209
- # Set x-goog-api-client and x-goog-user-project headers
1223
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1210
1224
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1211
1225
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1212
1226
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1213
1227
  transports_version_send: [:rest]
1214
1228
 
1229
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1215
1230
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1216
1231
 
1217
1232
  options.apply_defaults timeout: @config.rpcs.bulk_delete_conversations.timeout,
@@ -1306,12 +1321,13 @@ module Google
1306
1321
  # Customize the options with defaults
1307
1322
  call_metadata = @config.rpcs.ingest_conversations.metadata.to_h
1308
1323
 
1309
- # Set x-goog-api-client and x-goog-user-project headers
1324
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1310
1325
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1311
1326
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1312
1327
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1313
1328
  transports_version_send: [:rest]
1314
1329
 
1330
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1315
1331
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1316
1332
 
1317
1333
  options.apply_defaults timeout: @config.rpcs.ingest_conversations.timeout,
@@ -1403,12 +1419,13 @@ module Google
1403
1419
  # Customize the options with defaults
1404
1420
  call_metadata = @config.rpcs.export_insights_data.metadata.to_h
1405
1421
 
1406
- # Set x-goog-api-client and x-goog-user-project headers
1422
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1407
1423
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1408
1424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1409
1425
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1410
1426
  transports_version_send: [:rest]
1411
1427
 
1428
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1412
1429
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1413
1430
 
1414
1431
  options.apply_defaults timeout: @config.rpcs.export_insights_data.timeout,
@@ -1491,12 +1508,13 @@ module Google
1491
1508
  # Customize the options with defaults
1492
1509
  call_metadata = @config.rpcs.create_issue_model.metadata.to_h
1493
1510
 
1494
- # Set x-goog-api-client and x-goog-user-project headers
1511
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1495
1512
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1496
1513
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1497
1514
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1498
1515
  transports_version_send: [:rest]
1499
1516
 
1517
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1500
1518
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1501
1519
 
1502
1520
  options.apply_defaults timeout: @config.rpcs.create_issue_model.timeout,
@@ -1572,12 +1590,13 @@ module Google
1572
1590
  # Customize the options with defaults
1573
1591
  call_metadata = @config.rpcs.update_issue_model.metadata.to_h
1574
1592
 
1575
- # Set x-goog-api-client and x-goog-user-project headers
1593
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1576
1594
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1577
1595
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1578
1596
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1579
1597
  transports_version_send: [:rest]
1580
1598
 
1599
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1581
1600
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1582
1601
 
1583
1602
  options.apply_defaults timeout: @config.rpcs.update_issue_model.timeout,
@@ -1650,12 +1669,13 @@ module Google
1650
1669
  # Customize the options with defaults
1651
1670
  call_metadata = @config.rpcs.get_issue_model.metadata.to_h
1652
1671
 
1653
- # Set x-goog-api-client and x-goog-user-project headers
1672
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1654
1673
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1655
1674
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1656
1675
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1657
1676
  transports_version_send: [:rest]
1658
1677
 
1678
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1659
1679
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1660
1680
 
1661
1681
  options.apply_defaults timeout: @config.rpcs.get_issue_model.timeout,
@@ -1728,12 +1748,13 @@ module Google
1728
1748
  # Customize the options with defaults
1729
1749
  call_metadata = @config.rpcs.list_issue_models.metadata.to_h
1730
1750
 
1731
- # Set x-goog-api-client and x-goog-user-project headers
1751
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1732
1752
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1733
1753
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1734
1754
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1735
1755
  transports_version_send: [:rest]
1736
1756
 
1757
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1737
1758
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1738
1759
 
1739
1760
  options.apply_defaults timeout: @config.rpcs.list_issue_models.timeout,
@@ -1813,12 +1834,13 @@ module Google
1813
1834
  # Customize the options with defaults
1814
1835
  call_metadata = @config.rpcs.delete_issue_model.metadata.to_h
1815
1836
 
1816
- # Set x-goog-api-client and x-goog-user-project headers
1837
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1817
1838
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1818
1839
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1819
1840
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1820
1841
  transports_version_send: [:rest]
1821
1842
 
1843
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1822
1844
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1823
1845
 
1824
1846
  options.apply_defaults timeout: @config.rpcs.delete_issue_model.timeout,
@@ -1900,12 +1922,13 @@ module Google
1900
1922
  # Customize the options with defaults
1901
1923
  call_metadata = @config.rpcs.deploy_issue_model.metadata.to_h
1902
1924
 
1903
- # Set x-goog-api-client and x-goog-user-project headers
1925
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1904
1926
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1905
1927
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1906
1928
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1907
1929
  transports_version_send: [:rest]
1908
1930
 
1931
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1909
1932
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1910
1933
 
1911
1934
  options.apply_defaults timeout: @config.rpcs.deploy_issue_model.timeout,
@@ -1987,12 +2010,13 @@ module Google
1987
2010
  # Customize the options with defaults
1988
2011
  call_metadata = @config.rpcs.undeploy_issue_model.metadata.to_h
1989
2012
 
1990
- # Set x-goog-api-client and x-goog-user-project headers
2013
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1991
2014
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1992
2015
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1993
2016
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
1994
2017
  transports_version_send: [:rest]
1995
2018
 
2019
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1996
2020
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1997
2021
 
1998
2022
  options.apply_defaults timeout: @config.rpcs.undeploy_issue_model.timeout,
@@ -2066,12 +2090,13 @@ module Google
2066
2090
  # Customize the options with defaults
2067
2091
  call_metadata = @config.rpcs.get_issue.metadata.to_h
2068
2092
 
2069
- # Set x-goog-api-client and x-goog-user-project headers
2093
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2070
2094
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2071
2095
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2072
2096
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2073
2097
  transports_version_send: [:rest]
2074
2098
 
2099
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2075
2100
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2076
2101
 
2077
2102
  options.apply_defaults timeout: @config.rpcs.get_issue.timeout,
@@ -2144,12 +2169,13 @@ module Google
2144
2169
  # Customize the options with defaults
2145
2170
  call_metadata = @config.rpcs.list_issues.metadata.to_h
2146
2171
 
2147
- # Set x-goog-api-client and x-goog-user-project headers
2172
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2148
2173
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2149
2174
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2150
2175
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2151
2176
  transports_version_send: [:rest]
2152
2177
 
2178
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2153
2179
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2154
2180
 
2155
2181
  options.apply_defaults timeout: @config.rpcs.list_issues.timeout,
@@ -2224,12 +2250,13 @@ module Google
2224
2250
  # Customize the options with defaults
2225
2251
  call_metadata = @config.rpcs.update_issue.metadata.to_h
2226
2252
 
2227
- # Set x-goog-api-client and x-goog-user-project headers
2253
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2228
2254
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2229
2255
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2230
2256
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2231
2257
  transports_version_send: [:rest]
2232
2258
 
2259
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2233
2260
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2234
2261
 
2235
2262
  options.apply_defaults timeout: @config.rpcs.update_issue.timeout,
@@ -2302,12 +2329,13 @@ module Google
2302
2329
  # Customize the options with defaults
2303
2330
  call_metadata = @config.rpcs.delete_issue.metadata.to_h
2304
2331
 
2305
- # Set x-goog-api-client and x-goog-user-project headers
2332
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2306
2333
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2307
2334
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2308
2335
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2309
2336
  transports_version_send: [:rest]
2310
2337
 
2338
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2311
2339
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2312
2340
 
2313
2341
  options.apply_defaults timeout: @config.rpcs.delete_issue.timeout,
@@ -2380,12 +2408,13 @@ module Google
2380
2408
  # Customize the options with defaults
2381
2409
  call_metadata = @config.rpcs.calculate_issue_model_stats.metadata.to_h
2382
2410
 
2383
- # Set x-goog-api-client and x-goog-user-project headers
2411
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2384
2412
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2385
2413
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2386
2414
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2387
2415
  transports_version_send: [:rest]
2388
2416
 
2417
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2389
2418
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2390
2419
 
2391
2420
  options.apply_defaults timeout: @config.rpcs.calculate_issue_model_stats.timeout,
@@ -2463,12 +2492,13 @@ module Google
2463
2492
  # Customize the options with defaults
2464
2493
  call_metadata = @config.rpcs.create_phrase_matcher.metadata.to_h
2465
2494
 
2466
- # Set x-goog-api-client and x-goog-user-project headers
2495
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2467
2496
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2468
2497
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2469
2498
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2470
2499
  transports_version_send: [:rest]
2471
2500
 
2501
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2472
2502
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2473
2503
 
2474
2504
  options.apply_defaults timeout: @config.rpcs.create_phrase_matcher.timeout,
@@ -2541,12 +2571,13 @@ module Google
2541
2571
  # Customize the options with defaults
2542
2572
  call_metadata = @config.rpcs.get_phrase_matcher.metadata.to_h
2543
2573
 
2544
- # Set x-goog-api-client and x-goog-user-project headers
2574
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2545
2575
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2546
2576
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2547
2577
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2548
2578
  transports_version_send: [:rest]
2549
2579
 
2580
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2550
2581
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2551
2582
 
2552
2583
  options.apply_defaults timeout: @config.rpcs.get_phrase_matcher.timeout,
@@ -2635,12 +2666,13 @@ module Google
2635
2666
  # Customize the options with defaults
2636
2667
  call_metadata = @config.rpcs.list_phrase_matchers.metadata.to_h
2637
2668
 
2638
- # Set x-goog-api-client and x-goog-user-project headers
2669
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2639
2670
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2640
2671
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2641
2672
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2642
2673
  transports_version_send: [:rest]
2643
2674
 
2675
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2644
2676
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2645
2677
 
2646
2678
  options.apply_defaults timeout: @config.rpcs.list_phrase_matchers.timeout,
@@ -2714,12 +2746,13 @@ module Google
2714
2746
  # Customize the options with defaults
2715
2747
  call_metadata = @config.rpcs.delete_phrase_matcher.metadata.to_h
2716
2748
 
2717
- # Set x-goog-api-client and x-goog-user-project headers
2749
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2718
2750
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2719
2751
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2720
2752
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2721
2753
  transports_version_send: [:rest]
2722
2754
 
2755
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2723
2756
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2724
2757
 
2725
2758
  options.apply_defaults timeout: @config.rpcs.delete_phrase_matcher.timeout,
@@ -2794,12 +2827,13 @@ module Google
2794
2827
  # Customize the options with defaults
2795
2828
  call_metadata = @config.rpcs.update_phrase_matcher.metadata.to_h
2796
2829
 
2797
- # Set x-goog-api-client and x-goog-user-project headers
2830
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2798
2831
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2799
2832
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2800
2833
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2801
2834
  transports_version_send: [:rest]
2802
2835
 
2836
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2803
2837
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2804
2838
 
2805
2839
  options.apply_defaults timeout: @config.rpcs.update_phrase_matcher.timeout,
@@ -2875,12 +2909,13 @@ module Google
2875
2909
  # Customize the options with defaults
2876
2910
  call_metadata = @config.rpcs.calculate_stats.metadata.to_h
2877
2911
 
2878
- # Set x-goog-api-client and x-goog-user-project headers
2912
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2879
2913
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2880
2914
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2881
2915
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2882
2916
  transports_version_send: [:rest]
2883
2917
 
2918
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2884
2919
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2885
2920
 
2886
2921
  options.apply_defaults timeout: @config.rpcs.calculate_stats.timeout,
@@ -2953,12 +2988,13 @@ module Google
2953
2988
  # Customize the options with defaults
2954
2989
  call_metadata = @config.rpcs.get_settings.metadata.to_h
2955
2990
 
2956
- # Set x-goog-api-client and x-goog-user-project headers
2991
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2957
2992
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2958
2993
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2959
2994
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2960
2995
  transports_version_send: [:rest]
2961
2996
 
2997
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2962
2998
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2963
2999
 
2964
3000
  options.apply_defaults timeout: @config.rpcs.get_settings.timeout,
@@ -3033,12 +3069,13 @@ module Google
3033
3069
  # Customize the options with defaults
3034
3070
  call_metadata = @config.rpcs.update_settings.metadata.to_h
3035
3071
 
3036
- # Set x-goog-api-client and x-goog-user-project headers
3072
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3037
3073
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3038
3074
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3039
3075
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
3040
3076
  transports_version_send: [:rest]
3041
3077
 
3078
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3042
3079
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3043
3080
 
3044
3081
  options.apply_defaults timeout: @config.rpcs.update_settings.timeout,
@@ -3116,12 +3153,13 @@ module Google
3116
3153
  # Customize the options with defaults
3117
3154
  call_metadata = @config.rpcs.create_view.metadata.to_h
3118
3155
 
3119
- # Set x-goog-api-client and x-goog-user-project headers
3156
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3120
3157
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3121
3158
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3122
3159
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
3123
3160
  transports_version_send: [:rest]
3124
3161
 
3162
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3125
3163
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3126
3164
 
3127
3165
  options.apply_defaults timeout: @config.rpcs.create_view.timeout,
@@ -3194,12 +3232,13 @@ module Google
3194
3232
  # Customize the options with defaults
3195
3233
  call_metadata = @config.rpcs.get_view.metadata.to_h
3196
3234
 
3197
- # Set x-goog-api-client and x-goog-user-project headers
3235
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3198
3236
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3199
3237
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3200
3238
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
3201
3239
  transports_version_send: [:rest]
3202
3240
 
3241
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3203
3242
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3204
3243
 
3205
3244
  options.apply_defaults timeout: @config.rpcs.get_view.timeout,
@@ -3285,12 +3324,13 @@ module Google
3285
3324
  # Customize the options with defaults
3286
3325
  call_metadata = @config.rpcs.list_views.metadata.to_h
3287
3326
 
3288
- # Set x-goog-api-client and x-goog-user-project headers
3327
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3289
3328
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3290
3329
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3291
3330
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
3292
3331
  transports_version_send: [:rest]
3293
3332
 
3333
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3294
3334
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3295
3335
 
3296
3336
  options.apply_defaults timeout: @config.rpcs.list_views.timeout,
@@ -3366,12 +3406,13 @@ module Google
3366
3406
  # Customize the options with defaults
3367
3407
  call_metadata = @config.rpcs.update_view.metadata.to_h
3368
3408
 
3369
- # Set x-goog-api-client and x-goog-user-project headers
3409
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3370
3410
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3371
3411
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3372
3412
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
3373
3413
  transports_version_send: [:rest]
3374
3414
 
3415
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3375
3416
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3376
3417
 
3377
3418
  options.apply_defaults timeout: @config.rpcs.update_view.timeout,
@@ -3444,12 +3485,13 @@ module Google
3444
3485
  # Customize the options with defaults
3445
3486
  call_metadata = @config.rpcs.delete_view.metadata.to_h
3446
3487
 
3447
- # 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
3448
3489
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3449
3490
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3450
3491
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
3451
3492
  transports_version_send: [:rest]
3452
3493
 
3494
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3453
3495
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3454
3496
 
3455
3497
  options.apply_defaults timeout: @config.rpcs.delete_view.timeout,