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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +25 -11
  3. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +13 -5
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +25 -11
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +11 -4
  6. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +7 -2
  7. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +7 -2
  8. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +7 -2
  9. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +7 -2
  10. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +17 -7
  11. data/lib/google/cloud/dialogflow/cx/v3/entity_types/operations.rb +13 -5
  12. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +17 -7
  13. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/operations.rb +11 -4
  14. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +21 -9
  15. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +13 -5
  16. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +21 -9
  17. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +11 -4
  18. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +17 -7
  19. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +17 -7
  20. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +23 -10
  21. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +13 -5
  22. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +23 -10
  23. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +11 -4
  24. data/lib/google/cloud/dialogflow/cx/v3/generators/client.rb +13 -5
  25. data/lib/google/cloud/dialogflow/cx/v3/generators/rest/client.rb +13 -5
  26. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +17 -7
  27. data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +13 -5
  28. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +17 -7
  29. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +11 -4
  30. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +13 -5
  31. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +13 -5
  32. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +13 -5
  33. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +13 -5
  34. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +13 -5
  35. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +13 -5
  36. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +15 -6
  37. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +13 -5
  38. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +27 -12
  39. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +13 -5
  40. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +27 -12
  41. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +11 -4
  42. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +13 -5
  43. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +13 -5
  44. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  45. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +17 -7
  46. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +13 -5
  47. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +17 -7
  48. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +11 -4
  49. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +13 -5
  50. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +13 -5
  51. data/proto_docs/google/api/client.rb +4 -0
  52. metadata +2 -2
@@ -35,6 +35,9 @@ module Google
35
35
  # {::Google::Cloud::Dialogflow::CX::V3::Environment Environments}.
36
36
  #
37
37
  class Client
38
+ # @private
39
+ API_VERSION = ""
40
+
38
41
  # @private
39
42
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
40
43
 
@@ -256,12 +259,13 @@ module Google
256
259
  # Customize the options with defaults
257
260
  call_metadata = @config.rpcs.list_environments.metadata.to_h
258
261
 
259
- # Set x-goog-api-client and x-goog-user-project headers
262
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
260
263
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
261
264
  lib_name: @config.lib_name, lib_version: @config.lib_version,
262
265
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
263
266
  transports_version_send: [:rest]
264
267
 
268
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
265
269
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
266
270
 
267
271
  options.apply_defaults timeout: @config.rpcs.list_environments.timeout,
@@ -339,12 +343,13 @@ module Google
339
343
  # Customize the options with defaults
340
344
  call_metadata = @config.rpcs.get_environment.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
  call_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,
346
350
  transports_version_send: [:rest]
347
351
 
352
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
348
353
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
349
354
 
350
355
  options.apply_defaults timeout: @config.rpcs.get_environment.timeout,
@@ -437,12 +442,13 @@ module Google
437
442
  # Customize the options with defaults
438
443
  call_metadata = @config.rpcs.create_environment.metadata.to_h
439
444
 
440
- # Set x-goog-api-client and x-goog-user-project headers
445
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
441
446
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
442
447
  lib_name: @config.lib_name, lib_version: @config.lib_version,
443
448
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
444
449
  transports_version_send: [:rest]
445
450
 
451
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
446
452
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
447
453
 
448
454
  options.apply_defaults timeout: @config.rpcs.create_environment.timeout,
@@ -534,12 +540,13 @@ module Google
534
540
  # Customize the options with defaults
535
541
  call_metadata = @config.rpcs.update_environment.metadata.to_h
536
542
 
537
- # Set x-goog-api-client and x-goog-user-project headers
543
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
538
544
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
539
545
  lib_name: @config.lib_name, lib_version: @config.lib_version,
540
546
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
541
547
  transports_version_send: [:rest]
542
548
 
549
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
543
550
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
544
551
 
545
552
  options.apply_defaults timeout: @config.rpcs.update_environment.timeout,
@@ -617,12 +624,13 @@ module Google
617
624
  # Customize the options with defaults
618
625
  call_metadata = @config.rpcs.delete_environment.metadata.to_h
619
626
 
620
- # Set x-goog-api-client and x-goog-user-project headers
627
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
621
628
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
622
629
  lib_name: @config.lib_name, lib_version: @config.lib_version,
623
630
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
624
631
  transports_version_send: [:rest]
625
632
 
633
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
626
634
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
627
635
 
628
636
  options.apply_defaults timeout: @config.rpcs.delete_environment.timeout,
@@ -707,12 +715,13 @@ module Google
707
715
  # Customize the options with defaults
708
716
  call_metadata = @config.rpcs.lookup_environment_history.metadata.to_h
709
717
 
710
- # Set x-goog-api-client and x-goog-user-project headers
718
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
711
719
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
712
720
  lib_name: @config.lib_name, lib_version: @config.lib_version,
713
721
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
714
722
  transports_version_send: [:rest]
715
723
 
724
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
716
725
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
717
726
 
718
727
  options.apply_defaults timeout: @config.rpcs.lookup_environment_history.timeout,
@@ -804,12 +813,13 @@ module Google
804
813
  # Customize the options with defaults
805
814
  call_metadata = @config.rpcs.run_continuous_test.metadata.to_h
806
815
 
807
- # Set x-goog-api-client and x-goog-user-project headers
816
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
808
817
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
809
818
  lib_name: @config.lib_name, lib_version: @config.lib_version,
810
819
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
811
820
  transports_version_send: [:rest]
812
821
 
822
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
813
823
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
814
824
 
815
825
  options.apply_defaults timeout: @config.rpcs.run_continuous_test.timeout,
@@ -894,12 +904,13 @@ module Google
894
904
  # Customize the options with defaults
895
905
  call_metadata = @config.rpcs.list_continuous_test_results.metadata.to_h
896
906
 
897
- # Set x-goog-api-client and x-goog-user-project headers
907
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
898
908
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
899
909
  lib_name: @config.lib_name, lib_version: @config.lib_version,
900
910
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
901
911
  transports_version_send: [:rest]
902
912
 
913
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
903
914
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
904
915
 
905
916
  options.apply_defaults timeout: @config.rpcs.list_continuous_test_results.timeout,
@@ -996,12 +1007,13 @@ module Google
996
1007
  # Customize the options with defaults
997
1008
  call_metadata = @config.rpcs.deploy_flow.metadata.to_h
998
1009
 
999
- # Set x-goog-api-client and x-goog-user-project headers
1010
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1000
1011
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1001
1012
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1002
1013
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
1003
1014
  transports_version_send: [:rest]
1004
1015
 
1016
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1005
1017
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1006
1018
 
1007
1019
  options.apply_defaults timeout: @config.rpcs.deploy_flow.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::Experiment Experiments}.
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_experiments.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_experiment.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 = {}
@@ -430,10 +435,11 @@ module Google
430
435
  # Customize the options with defaults
431
436
  metadata = @config.rpcs.create_experiment.metadata.to_h
432
437
 
433
- # Set x-goog-api-client and x-goog-user-project headers
438
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
434
439
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
435
440
  lib_name: @config.lib_name, lib_version: @config.lib_version,
436
441
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
442
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
437
443
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
438
444
 
439
445
  header_params = {}
@@ -518,10 +524,11 @@ module Google
518
524
  # Customize the options with defaults
519
525
  metadata = @config.rpcs.update_experiment.metadata.to_h
520
526
 
521
- # Set x-goog-api-client and x-goog-user-project headers
527
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
522
528
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
523
529
  lib_name: @config.lib_name, lib_version: @config.lib_version,
524
530
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
531
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
525
532
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
526
533
 
527
534
  header_params = {}
@@ -607,10 +614,11 @@ module Google
607
614
  # Customize the options with defaults
608
615
  metadata = @config.rpcs.delete_experiment.metadata.to_h
609
616
 
610
- # Set x-goog-api-client and x-goog-user-project headers
617
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
611
618
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
612
619
  lib_name: @config.lib_name, lib_version: @config.lib_version,
613
620
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
621
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
614
622
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
615
623
 
616
624
  header_params = {}
@@ -696,10 +704,11 @@ module Google
696
704
  # Customize the options with defaults
697
705
  metadata = @config.rpcs.start_experiment.metadata.to_h
698
706
 
699
- # Set x-goog-api-client and x-goog-user-project headers
707
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
700
708
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
701
709
  lib_name: @config.lib_name, lib_version: @config.lib_version,
702
710
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
711
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
703
712
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
704
713
 
705
714
  header_params = {}
@@ -784,10 +793,11 @@ module Google
784
793
  # Customize the options with defaults
785
794
  metadata = @config.rpcs.stop_experiment.metadata.to_h
786
795
 
787
- # Set x-goog-api-client and x-goog-user-project headers
796
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
788
797
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
789
798
  lib_name: @config.lib_name, lib_version: @config.lib_version,
790
799
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
800
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
791
801
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
792
802
 
793
803
  header_params = {}
@@ -34,6 +34,9 @@ module Google
34
34
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Experiment Experiments}.
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_experiments.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_experiments.timeout,
@@ -325,12 +329,13 @@ module Google
325
329
  # Customize the options with defaults
326
330
  call_metadata = @config.rpcs.get_experiment.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_experiment.timeout,
@@ -409,12 +414,13 @@ module Google
409
414
  # Customize the options with defaults
410
415
  call_metadata = @config.rpcs.create_experiment.metadata.to_h
411
416
 
412
- # Set x-goog-api-client and x-goog-user-project headers
417
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
413
418
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
414
419
  lib_name: @config.lib_name, lib_version: @config.lib_version,
415
420
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
416
421
  transports_version_send: [:rest]
417
422
 
423
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
418
424
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
419
425
 
420
426
  options.apply_defaults timeout: @config.rpcs.create_experiment.timeout,
@@ -490,12 +496,13 @@ module Google
490
496
  # Customize the options with defaults
491
497
  call_metadata = @config.rpcs.update_experiment.metadata.to_h
492
498
 
493
- # Set x-goog-api-client and x-goog-user-project headers
499
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
494
500
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
495
501
  lib_name: @config.lib_name, lib_version: @config.lib_version,
496
502
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
497
503
  transports_version_send: [:rest]
498
504
 
505
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
499
506
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
500
507
 
501
508
  options.apply_defaults timeout: @config.rpcs.update_experiment.timeout,
@@ -572,12 +579,13 @@ module Google
572
579
  # Customize the options with defaults
573
580
  call_metadata = @config.rpcs.delete_experiment.metadata.to_h
574
581
 
575
- # Set x-goog-api-client and x-goog-user-project headers
582
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
576
583
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
577
584
  lib_name: @config.lib_name, lib_version: @config.lib_version,
578
585
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
579
586
  transports_version_send: [:rest]
580
587
 
588
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.delete_experiment.timeout,
@@ -654,12 +662,13 @@ module Google
654
662
  # Customize the options with defaults
655
663
  call_metadata = @config.rpcs.start_experiment.metadata.to_h
656
664
 
657
- # Set x-goog-api-client and x-goog-user-project headers
665
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
658
666
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
659
667
  lib_name: @config.lib_name, lib_version: @config.lib_version,
660
668
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
661
669
  transports_version_send: [:rest]
662
670
 
671
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
663
672
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
664
673
 
665
674
  options.apply_defaults timeout: @config.rpcs.start_experiment.timeout,
@@ -735,12 +744,13 @@ module Google
735
744
  # Customize the options with defaults
736
745
  call_metadata = @config.rpcs.stop_experiment.metadata.to_h
737
746
 
738
- # Set x-goog-api-client and x-goog-user-project headers
747
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
739
748
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
740
749
  lib_name: @config.lib_name, lib_version: @config.lib_version,
741
750
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
742
751
  transports_version_send: [:rest]
743
752
 
753
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
744
754
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
745
755
 
746
756
  options.apply_defaults timeout: @config.rpcs.stop_experiment.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Flow Flows}.
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
 
@@ -270,10 +273,11 @@ module Google
270
273
  # Customize the options with defaults
271
274
  metadata = @config.rpcs.create_flow.metadata.to_h
272
275
 
273
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
274
277
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
275
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
276
279
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
280
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
277
281
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
278
282
 
279
283
  header_params = {}
@@ -368,10 +372,11 @@ module Google
368
372
  # Customize the options with defaults
369
373
  metadata = @config.rpcs.delete_flow.metadata.to_h
370
374
 
371
- # Set x-goog-api-client and x-goog-user-project headers
375
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
372
376
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
373
377
  lib_name: @config.lib_name, lib_version: @config.lib_version,
374
378
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
379
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
375
380
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
376
381
 
377
382
  header_params = {}
@@ -477,10 +482,11 @@ module Google
477
482
  # Customize the options with defaults
478
483
  metadata = @config.rpcs.list_flows.metadata.to_h
479
484
 
480
- # Set x-goog-api-client and x-goog-user-project headers
485
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
481
486
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
482
487
  lib_name: @config.lib_name, lib_version: @config.lib_version,
483
488
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
489
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
484
490
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
485
491
 
486
492
  header_params = {}
@@ -579,10 +585,11 @@ module Google
579
585
  # Customize the options with defaults
580
586
  metadata = @config.rpcs.get_flow.metadata.to_h
581
587
 
582
- # Set x-goog-api-client and x-goog-user-project headers
588
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
583
589
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
584
590
  lib_name: @config.lib_name, lib_version: @config.lib_version,
585
591
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
592
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
586
593
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
587
594
 
588
595
  header_params = {}
@@ -684,10 +691,11 @@ module Google
684
691
  # Customize the options with defaults
685
692
  metadata = @config.rpcs.update_flow.metadata.to_h
686
693
 
687
- # Set x-goog-api-client and x-goog-user-project headers
694
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
688
695
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
689
696
  lib_name: @config.lib_name, lib_version: @config.lib_version,
690
697
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
698
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
691
699
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
692
700
 
693
701
  header_params = {}
@@ -792,10 +800,11 @@ module Google
792
800
  # Customize the options with defaults
793
801
  metadata = @config.rpcs.train_flow.metadata.to_h
794
802
 
795
- # Set x-goog-api-client and x-goog-user-project headers
803
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
796
804
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
797
805
  lib_name: @config.lib_name, lib_version: @config.lib_version,
798
806
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
807
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
799
808
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
800
809
 
801
810
  header_params = {}
@@ -884,10 +893,11 @@ module Google
884
893
  # Customize the options with defaults
885
894
  metadata = @config.rpcs.validate_flow.metadata.to_h
886
895
 
887
- # Set x-goog-api-client and x-goog-user-project headers
896
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
888
897
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
889
898
  lib_name: @config.lib_name, lib_version: @config.lib_version,
890
899
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
900
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
891
901
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
892
902
 
893
903
  header_params = {}
@@ -974,10 +984,11 @@ module Google
974
984
  # Customize the options with defaults
975
985
  metadata = @config.rpcs.get_flow_validation_result.metadata.to_h
976
986
 
977
- # Set x-goog-api-client and x-goog-user-project headers
987
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
978
988
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
979
989
  lib_name: @config.lib_name, lib_version: @config.lib_version,
980
990
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
991
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
981
992
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
982
993
 
983
994
  header_params = {}
@@ -1097,10 +1108,11 @@ module Google
1097
1108
  # Customize the options with defaults
1098
1109
  metadata = @config.rpcs.import_flow.metadata.to_h
1099
1110
 
1100
- # Set x-goog-api-client and x-goog-user-project headers
1111
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1101
1112
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1102
1113
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1103
1114
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
1115
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1104
1116
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1105
1117
 
1106
1118
  header_params = {}
@@ -1217,10 +1229,11 @@ module Google
1217
1229
  # Customize the options with defaults
1218
1230
  metadata = @config.rpcs.export_flow.metadata.to_h
1219
1231
 
1220
- # Set x-goog-api-client and x-goog-user-project headers
1232
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1221
1233
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1222
1234
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1223
1235
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
1236
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1224
1237
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1225
1238
 
1226
1239
  header_params = {}
@@ -27,6 +27,9 @@ module Google
27
27
  module Flows
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,