google-cloud-dialogflow-cx-v3 0.25.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (53) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +25 -11
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +13 -5
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +25 -11
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +11 -4
  7. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +7 -2
  8. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +7 -2
  9. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +7 -2
  10. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +7 -2
  11. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +17 -7
  12. data/lib/google/cloud/dialogflow/cx/v3/entity_types/operations.rb +13 -5
  13. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +17 -7
  14. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/operations.rb +11 -4
  15. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +21 -9
  16. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +13 -5
  17. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +21 -9
  18. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +11 -4
  19. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +17 -7
  20. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +17 -7
  21. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +23 -10
  22. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +13 -5
  23. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +23 -10
  24. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +11 -4
  25. data/lib/google/cloud/dialogflow/cx/v3/generators/client.rb +13 -5
  26. data/lib/google/cloud/dialogflow/cx/v3/generators/rest/client.rb +13 -5
  27. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +17 -7
  28. data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +13 -5
  29. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +17 -7
  30. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +11 -4
  31. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +13 -5
  32. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +13 -5
  33. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +13 -5
  34. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +13 -5
  35. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +13 -5
  36. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +13 -5
  37. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +15 -6
  38. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +13 -5
  39. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +27 -12
  40. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +13 -5
  41. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +27 -12
  42. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +11 -4
  43. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +13 -5
  44. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +13 -5
  45. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  46. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +17 -7
  47. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +13 -5
  48. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +17 -7
  49. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +11 -4
  50. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +13 -5
  51. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +13 -5
  52. data/proto_docs/google/api/client.rb +4 -0
  53. metadata +4 -116
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d1752371da8769c835a3fb2e343f3c78fc19f00431ce044825c9b896688c264d
4
- data.tar.gz: 1bab90fa42985938cd73add1ebcdec667152fabf772d82eceb2d7aa616700e58
3
+ metadata.gz: 984a0d398a41c5ff5f5fd574606de4d56020da751f98634e52d3b68dc5a0e5e1
4
+ data.tar.gz: a218e1de2b16c10bbd7770c0f39d890570d1bb8b20f8970be9071fa00e90bb89
5
5
  SHA512:
6
- metadata.gz: 1c6d2641302886a0b81d6fe907307b38addcd7c8dc675ca71e5a4801768cff23901e664c7e4f0585f5be25642b04a7ce9aa86f81cf464fc0fadca209b245d1ae
7
- data.tar.gz: 248861f845fc0c24708bdd40aef09b5cc66798d944b984829b5275fe9d3efdf289ddf2d42a812f8a8d5be1720c2e209dffb52479ab4eb17f3d585875be316447
6
+ metadata.gz: 5bcd623ac8c02db78e2740702d28df621f0f6d248170263ef549c25bc6dd311d4e56aee3ca978969e8459b175c2ac53a5a0ef759023edb920fc78e4af4ffae48
7
+ data.tar.gz: 83eb0f9a0881381afab19f8616cb396fecad788a82e6d329c47975e66ce1ba2566a0dbb4ba9871558e4355187884be7f5753afc249ec70559016870a722f3094
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
@@ -32,6 +32,9 @@ module Google
32
32
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Agent Agents}.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
37
40
 
@@ -265,10 +268,11 @@ module Google
265
268
  # Customize the options with defaults
266
269
  metadata = @config.rpcs.list_agents.metadata.to_h
267
270
 
268
- # Set x-goog-api-client and x-goog-user-project headers
271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
269
272
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
270
273
  lib_name: @config.lib_name, lib_version: @config.lib_version,
271
274
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
275
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
272
276
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
273
277
 
274
278
  header_params = {}
@@ -352,10 +356,11 @@ module Google
352
356
  # Customize the options with defaults
353
357
  metadata = @config.rpcs.get_agent.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::Dialogflow::CX::V3::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 = {}
@@ -444,10 +449,11 @@ module Google
444
449
  # Customize the options with defaults
445
450
  metadata = @config.rpcs.create_agent.metadata.to_h
446
451
 
447
- # Set x-goog-api-client and x-goog-user-project headers
452
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
448
453
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
449
454
  lib_name: @config.lib_name, lib_version: @config.lib_version,
450
455
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
456
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
451
457
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
452
458
 
453
459
  header_params = {}
@@ -536,10 +542,11 @@ module Google
536
542
  # Customize the options with defaults
537
543
  metadata = @config.rpcs.update_agent.metadata.to_h
538
544
 
539
- # Set x-goog-api-client and x-goog-user-project headers
545
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
540
546
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
541
547
  lib_name: @config.lib_name, lib_version: @config.lib_version,
542
548
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
549
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
543
550
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
544
551
 
545
552
  header_params = {}
@@ -622,10 +629,11 @@ module Google
622
629
  # Customize the options with defaults
623
630
  metadata = @config.rpcs.delete_agent.metadata.to_h
624
631
 
625
- # Set x-goog-api-client and x-goog-user-project headers
632
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
626
633
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
627
634
  lib_name: @config.lib_name, lib_version: @config.lib_version,
628
635
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
636
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
629
637
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
630
638
 
631
639
  header_params = {}
@@ -746,10 +754,11 @@ module Google
746
754
  # Customize the options with defaults
747
755
  metadata = @config.rpcs.export_agent.metadata.to_h
748
756
 
749
- # Set x-goog-api-client and x-goog-user-project headers
757
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
750
758
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
751
759
  lib_name: @config.lib_name, lib_version: @config.lib_version,
752
760
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
761
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
753
762
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
754
763
 
755
764
  header_params = {}
@@ -872,10 +881,11 @@ module Google
872
881
  # Customize the options with defaults
873
882
  metadata = @config.rpcs.restore_agent.metadata.to_h
874
883
 
875
- # Set x-goog-api-client and x-goog-user-project headers
884
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
876
885
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
877
886
  lib_name: @config.lib_name, lib_version: @config.lib_version,
878
887
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
888
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
879
889
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
880
890
 
881
891
  header_params = {}
@@ -963,10 +973,11 @@ module Google
963
973
  # Customize the options with defaults
964
974
  metadata = @config.rpcs.validate_agent.metadata.to_h
965
975
 
966
- # Set x-goog-api-client and x-goog-user-project headers
976
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
967
977
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
968
978
  lib_name: @config.lib_name, lib_version: @config.lib_version,
969
979
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
980
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
970
981
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
971
982
 
972
983
  header_params = {}
@@ -1053,10 +1064,11 @@ module Google
1053
1064
  # Customize the options with defaults
1054
1065
  metadata = @config.rpcs.get_agent_validation_result.metadata.to_h
1055
1066
 
1056
- # Set x-goog-api-client and x-goog-user-project headers
1067
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1057
1068
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1058
1069
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1059
1070
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
1071
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1060
1072
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1061
1073
 
1062
1074
  header_params = {}
@@ -1141,10 +1153,11 @@ module Google
1141
1153
  # Customize the options with defaults
1142
1154
  metadata = @config.rpcs.get_generative_settings.metadata.to_h
1143
1155
 
1144
- # Set x-goog-api-client and x-goog-user-project headers
1156
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1145
1157
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1146
1158
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1147
1159
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
1160
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1148
1161
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1149
1162
 
1150
1163
  header_params = {}
@@ -1229,10 +1242,11 @@ module Google
1229
1242
  # Customize the options with defaults
1230
1243
  metadata = @config.rpcs.update_generative_settings.metadata.to_h
1231
1244
 
1232
- # Set x-goog-api-client and x-goog-user-project headers
1245
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1233
1246
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1234
1247
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1235
1248
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
1249
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1236
1250
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1237
1251
 
1238
1252
  header_params = {}
@@ -27,6 +27,9 @@ module Google
27
27
  module Agents
28
28
  # Service that implements Longrunning Operations API.
29
29
  class Operations
30
+ # @private
31
+ API_VERSION = ""
32
+
30
33
  # @private
31
34
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
32
35
 
@@ -192,10 +195,11 @@ module Google
192
195
  # Customize the options with defaults
193
196
  metadata = @config.rpcs.list_operations.metadata.to_h
194
197
 
195
- # Set x-goog-api-client and x-goog-user-project headers
198
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
196
199
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
197
200
  lib_name: @config.lib_name, lib_version: @config.lib_version,
198
201
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
202
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
199
203
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
200
204
 
201
205
  header_params = {}
@@ -288,10 +292,11 @@ module Google
288
292
  # Customize the options with defaults
289
293
  metadata = @config.rpcs.get_operation.metadata.to_h
290
294
 
291
- # Set x-goog-api-client and x-goog-user-project headers
295
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
292
296
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
293
297
  lib_name: @config.lib_name, lib_version: @config.lib_version,
294
298
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
299
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
295
300
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
296
301
 
297
302
  header_params = {}
@@ -377,10 +382,11 @@ module Google
377
382
  # Customize the options with defaults
378
383
  metadata = @config.rpcs.delete_operation.metadata.to_h
379
384
 
380
- # Set x-goog-api-client and x-goog-user-project headers
385
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
381
386
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
382
387
  lib_name: @config.lib_name, lib_version: @config.lib_version,
383
388
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
389
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
384
390
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
385
391
 
386
392
  header_params = {}
@@ -471,10 +477,11 @@ module Google
471
477
  # Customize the options with defaults
472
478
  metadata = @config.rpcs.cancel_operation.metadata.to_h
473
479
 
474
- # Set x-goog-api-client and x-goog-user-project headers
480
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
475
481
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
476
482
  lib_name: @config.lib_name, lib_version: @config.lib_version,
477
483
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
484
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
478
485
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
479
486
 
480
487
  header_params = {}
@@ -575,10 +582,11 @@ module Google
575
582
  # Customize the options with defaults
576
583
  metadata = @config.rpcs.wait_operation.metadata.to_h
577
584
 
578
- # Set x-goog-api-client and x-goog-user-project headers
585
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
579
586
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
580
587
  lib_name: @config.lib_name, lib_version: @config.lib_version,
581
588
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
589
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
582
590
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
583
591
 
584
592
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Agent Agents}.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
39
42
 
@@ -258,12 +261,13 @@ module Google
258
261
  # Customize the options with defaults
259
262
  call_metadata = @config.rpcs.list_agents.metadata.to_h
260
263
 
261
- # Set x-goog-api-client and x-goog-user-project headers
264
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
262
265
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
263
266
  lib_name: @config.lib_name, lib_version: @config.lib_version,
264
267
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
265
268
  transports_version_send: [:rest]
266
269
 
270
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
267
271
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
268
272
 
269
273
  options.apply_defaults timeout: @config.rpcs.list_agents.timeout,
@@ -338,12 +342,13 @@ module Google
338
342
  # Customize the options with defaults
339
343
  call_metadata = @config.rpcs.get_agent.metadata.to_h
340
344
 
341
- # Set x-goog-api-client and x-goog-user-project headers
345
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
342
346
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
343
347
  lib_name: @config.lib_name, lib_version: @config.lib_version,
344
348
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
345
349
  transports_version_send: [:rest]
346
350
 
351
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
347
352
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
348
353
 
349
354
  options.apply_defaults timeout: @config.rpcs.get_agent.timeout,
@@ -423,12 +428,13 @@ module Google
423
428
  # Customize the options with defaults
424
429
  call_metadata = @config.rpcs.create_agent.metadata.to_h
425
430
 
426
- # Set x-goog-api-client and x-goog-user-project headers
431
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
427
432
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
428
433
  lib_name: @config.lib_name, lib_version: @config.lib_version,
429
434
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
430
435
  transports_version_send: [:rest]
431
436
 
437
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
432
438
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
433
439
 
434
440
  options.apply_defaults timeout: @config.rpcs.create_agent.timeout,
@@ -508,12 +514,13 @@ module Google
508
514
  # Customize the options with defaults
509
515
  call_metadata = @config.rpcs.update_agent.metadata.to_h
510
516
 
511
- # Set x-goog-api-client and x-goog-user-project headers
517
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
512
518
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
513
519
  lib_name: @config.lib_name, lib_version: @config.lib_version,
514
520
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
515
521
  transports_version_send: [:rest]
516
522
 
523
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
517
524
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
518
525
 
519
526
  options.apply_defaults timeout: @config.rpcs.update_agent.timeout,
@@ -587,12 +594,13 @@ module Google
587
594
  # Customize the options with defaults
588
595
  call_metadata = @config.rpcs.delete_agent.metadata.to_h
589
596
 
590
- # Set x-goog-api-client and x-goog-user-project headers
597
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
591
598
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
592
599
  lib_name: @config.lib_name, lib_version: @config.lib_version,
593
600
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
594
601
  transports_version_send: [:rest]
595
602
 
603
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
596
604
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
597
605
 
598
606
  options.apply_defaults timeout: @config.rpcs.delete_agent.timeout,
@@ -704,12 +712,13 @@ module Google
704
712
  # Customize the options with defaults
705
713
  call_metadata = @config.rpcs.export_agent.metadata.to_h
706
714
 
707
- # Set x-goog-api-client and x-goog-user-project headers
715
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
708
716
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
709
717
  lib_name: @config.lib_name, lib_version: @config.lib_version,
710
718
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
711
719
  transports_version_send: [:rest]
712
720
 
721
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
713
722
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
714
723
 
715
724
  options.apply_defaults timeout: @config.rpcs.export_agent.timeout,
@@ -823,12 +832,13 @@ module Google
823
832
  # Customize the options with defaults
824
833
  call_metadata = @config.rpcs.restore_agent.metadata.to_h
825
834
 
826
- # Set x-goog-api-client and x-goog-user-project headers
835
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
827
836
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
828
837
  lib_name: @config.lib_name, lib_version: @config.lib_version,
829
838
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
830
839
  transports_version_send: [:rest]
831
840
 
841
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
832
842
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
833
843
 
834
844
  options.apply_defaults timeout: @config.rpcs.restore_agent.timeout,
@@ -907,12 +917,13 @@ module Google
907
917
  # Customize the options with defaults
908
918
  call_metadata = @config.rpcs.validate_agent.metadata.to_h
909
919
 
910
- # Set x-goog-api-client and x-goog-user-project headers
920
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
911
921
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
912
922
  lib_name: @config.lib_name, lib_version: @config.lib_version,
913
923
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
914
924
  transports_version_send: [:rest]
915
925
 
926
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
916
927
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
917
928
 
918
929
  options.apply_defaults timeout: @config.rpcs.validate_agent.timeout,
@@ -990,12 +1001,13 @@ module Google
990
1001
  # Customize the options with defaults
991
1002
  call_metadata = @config.rpcs.get_agent_validation_result.metadata.to_h
992
1003
 
993
- # Set x-goog-api-client and x-goog-user-project headers
1004
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
994
1005
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
995
1006
  lib_name: @config.lib_name, lib_version: @config.lib_version,
996
1007
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
997
1008
  transports_version_send: [:rest]
998
1009
 
1010
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
999
1011
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1000
1012
 
1001
1013
  options.apply_defaults timeout: @config.rpcs.get_agent_validation_result.timeout,
@@ -1071,12 +1083,13 @@ module Google
1071
1083
  # Customize the options with defaults
1072
1084
  call_metadata = @config.rpcs.get_generative_settings.metadata.to_h
1073
1085
 
1074
- # Set x-goog-api-client and x-goog-user-project headers
1086
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1075
1087
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1076
1088
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1077
1089
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
1078
1090
  transports_version_send: [:rest]
1079
1091
 
1092
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1080
1093
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1081
1094
 
1082
1095
  options.apply_defaults timeout: @config.rpcs.get_generative_settings.timeout,
@@ -1152,12 +1165,13 @@ module Google
1152
1165
  # Customize the options with defaults
1153
1166
  call_metadata = @config.rpcs.update_generative_settings.metadata.to_h
1154
1167
 
1155
- # Set x-goog-api-client and x-goog-user-project headers
1168
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1156
1169
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1157
1170
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1158
1171
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
1159
1172
  transports_version_send: [:rest]
1160
1173
 
1174
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1161
1175
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1162
1176
 
1163
1177
  options.apply_defaults timeout: @config.rpcs.update_generative_settings.timeout,
@@ -27,6 +27,9 @@ module Google
27
27
  module Rest
28
28
  # Service that implements Longrunning Operations API.
29
29
  class Operations
30
+ # @private
31
+ API_VERSION = ""
32
+
30
33
  # @private
31
34
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
32
35
 
@@ -182,12 +185,13 @@ module Google
182
185
  # Customize the options with defaults
183
186
  call_metadata = @config.rpcs.list_operations.metadata.to_h
184
187
 
185
- # Set x-goog-api-client and x-goog-user-project headers
188
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
186
189
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
187
190
  lib_name: @config.lib_name, lib_version: @config.lib_version,
188
191
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
189
192
  transports_version_send: [:rest]
190
193
 
194
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
191
195
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
192
196
 
193
197
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -270,12 +274,13 @@ module Google
270
274
  # Customize the options with defaults
271
275
  call_metadata = @config.rpcs.get_operation.metadata.to_h
272
276
 
273
- # Set x-goog-api-client and x-goog-user-project headers
277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
274
278
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
275
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
276
280
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
277
281
  transports_version_send: [:rest]
278
282
 
283
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
279
284
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
280
285
 
281
286
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -352,12 +357,13 @@ module Google
352
357
  # Customize the options with defaults
353
358
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
354
359
 
355
- # Set x-goog-api-client and x-goog-user-project headers
360
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
356
361
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
357
362
  lib_name: @config.lib_name, lib_version: @config.lib_version,
358
363
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
359
364
  transports_version_send: [:rest]
360
365
 
366
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
361
367
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
362
368
 
363
369
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -439,12 +445,13 @@ module Google
439
445
  # Customize the options with defaults
440
446
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
441
447
 
442
- # 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
443
449
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
444
450
  lib_name: @config.lib_name, lib_version: @config.lib_version,
445
451
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
446
452
  transports_version_send: [:rest]
447
453
 
454
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
448
455
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
449
456
 
450
457
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Changelog Changelogs}.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
37
40
 
@@ -267,10 +270,11 @@ module Google
267
270
  # Customize the options with defaults
268
271
  metadata = @config.rpcs.list_changelogs.metadata.to_h
269
272
 
270
- # Set x-goog-api-client and x-goog-user-project headers
273
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
271
274
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
272
275
  lib_name: @config.lib_name, lib_version: @config.lib_version,
273
276
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
277
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
274
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
275
279
 
276
280
  header_params = {}
@@ -355,10 +359,11 @@ module Google
355
359
  # Customize the options with defaults
356
360
  metadata = @config.rpcs.get_changelog.metadata.to_h
357
361
 
358
- # Set x-goog-api-client and x-goog-user-project headers
362
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
359
363
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
360
364
  lib_name: @config.lib_name, lib_version: @config.lib_version,
361
365
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
366
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
362
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
363
368
 
364
369
  header_params = {}
@@ -34,6 +34,9 @@ module Google
34
34
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Changelog Changelogs}.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
39
42
 
@@ -260,12 +263,13 @@ module Google
260
263
  # Customize the options with defaults
261
264
  call_metadata = @config.rpcs.list_changelogs.metadata.to_h
262
265
 
263
- # Set x-goog-api-client and x-goog-user-project headers
266
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
264
267
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
265
268
  lib_name: @config.lib_name, lib_version: @config.lib_version,
266
269
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
267
270
  transports_version_send: [:rest]
268
271
 
272
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
269
273
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
270
274
 
271
275
  options.apply_defaults timeout: @config.rpcs.list_changelogs.timeout,
@@ -341,12 +345,13 @@ module Google
341
345
  # Customize the options with defaults
342
346
  call_metadata = @config.rpcs.get_changelog.metadata.to_h
343
347
 
344
- # Set x-goog-api-client and x-goog-user-project headers
348
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
345
349
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
346
350
  lib_name: @config.lib_name, lib_version: @config.lib_version,
347
351
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
348
352
  transports_version_send: [:rest]
349
353
 
354
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
350
355
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
351
356
 
352
357
  options.apply_defaults timeout: @config.rpcs.get_changelog.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Deployment Deployments}.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
37
40
 
@@ -249,10 +252,11 @@ module Google
249
252
  # Customize the options with defaults
250
253
  metadata = @config.rpcs.list_deployments.metadata.to_h
251
254
 
252
- # Set x-goog-api-client and x-goog-user-project headers
255
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
253
256
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
254
257
  lib_name: @config.lib_name, lib_version: @config.lib_version,
255
258
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
259
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
256
260
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
257
261
 
258
262
  header_params = {}
@@ -339,10 +343,11 @@ module Google
339
343
  # Customize the options with defaults
340
344
  metadata = @config.rpcs.get_deployment.metadata.to_h
341
345
 
342
- # Set x-goog-api-client and x-goog-user-project headers
346
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
343
347
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
344
348
  lib_name: @config.lib_name, lib_version: @config.lib_version,
345
349
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
350
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
346
351
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
347
352
 
348
353
  header_params = {}
@@ -34,6 +34,9 @@ module Google
34
34
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Deployment Deployments}.
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
39
42
 
@@ -242,12 +245,13 @@ module Google
242
245
  # Customize the options with defaults
243
246
  call_metadata = @config.rpcs.list_deployments.metadata.to_h
244
247
 
245
- # Set x-goog-api-client and x-goog-user-project headers
248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
246
249
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
247
250
  lib_name: @config.lib_name, lib_version: @config.lib_version,
248
251
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
249
252
  transports_version_send: [:rest]
250
253
 
254
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
251
255
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
252
256
 
253
257
  options.apply_defaults timeout: @config.rpcs.list_deployments.timeout,
@@ -325,12 +329,13 @@ module Google
325
329
  # Customize the options with defaults
326
330
  call_metadata = @config.rpcs.get_deployment.metadata.to_h
327
331
 
328
- # Set x-goog-api-client and x-goog-user-project headers
332
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
329
333
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
330
334
  lib_name: @config.lib_name, lib_version: @config.lib_version,
331
335
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
332
336
  transports_version_send: [:rest]
333
337
 
338
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
334
339
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
335
340
 
336
341
  options.apply_defaults timeout: @config.rpcs.get_deployment.timeout,