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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
@@ -34,6 +34,9 @@ module Google
34
34
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Flow Flows}.
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
 
@@ -263,12 +266,13 @@ module Google
263
266
  # Customize the options with defaults
264
267
  call_metadata = @config.rpcs.create_flow.metadata.to_h
265
268
 
266
- # Set x-goog-api-client and x-goog-user-project headers
269
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
267
270
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
268
271
  lib_name: @config.lib_name, lib_version: @config.lib_version,
269
272
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
270
273
  transports_version_send: [:rest]
271
274
 
275
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
272
276
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
273
277
 
274
278
  options.apply_defaults timeout: @config.rpcs.create_flow.timeout,
@@ -354,12 +358,13 @@ module Google
354
358
  # Customize the options with defaults
355
359
  call_metadata = @config.rpcs.delete_flow.metadata.to_h
356
360
 
357
- # Set x-goog-api-client and x-goog-user-project headers
361
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
358
362
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
359
363
  lib_name: @config.lib_name, lib_version: @config.lib_version,
360
364
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
361
365
  transports_version_send: [:rest]
362
366
 
367
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
363
368
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
364
369
 
365
370
  options.apply_defaults timeout: @config.rpcs.delete_flow.timeout,
@@ -456,12 +461,13 @@ module Google
456
461
  # Customize the options with defaults
457
462
  call_metadata = @config.rpcs.list_flows.metadata.to_h
458
463
 
459
- # Set x-goog-api-client and x-goog-user-project headers
464
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
460
465
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
461
466
  lib_name: @config.lib_name, lib_version: @config.lib_version,
462
467
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
463
468
  transports_version_send: [:rest]
464
469
 
470
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
465
471
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
466
472
 
467
473
  options.apply_defaults timeout: @config.rpcs.list_flows.timeout,
@@ -551,12 +557,13 @@ module Google
551
557
  # Customize the options with defaults
552
558
  call_metadata = @config.rpcs.get_flow.metadata.to_h
553
559
 
554
- # Set x-goog-api-client and x-goog-user-project headers
560
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
555
561
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
556
562
  lib_name: @config.lib_name, lib_version: @config.lib_version,
557
563
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
558
564
  transports_version_send: [:rest]
559
565
 
566
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
560
567
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
561
568
 
562
569
  options.apply_defaults timeout: @config.rpcs.get_flow.timeout,
@@ -649,12 +656,13 @@ module Google
649
656
  # Customize the options with defaults
650
657
  call_metadata = @config.rpcs.update_flow.metadata.to_h
651
658
 
652
- # Set x-goog-api-client and x-goog-user-project headers
659
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
653
660
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
654
661
  lib_name: @config.lib_name, lib_version: @config.lib_version,
655
662
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
656
663
  transports_version_send: [:rest]
657
664
 
665
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
658
666
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
659
667
 
660
668
  options.apply_defaults timeout: @config.rpcs.update_flow.timeout,
@@ -750,12 +758,13 @@ module Google
750
758
  # Customize the options with defaults
751
759
  call_metadata = @config.rpcs.train_flow.metadata.to_h
752
760
 
753
- # Set x-goog-api-client and x-goog-user-project headers
761
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
754
762
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
755
763
  lib_name: @config.lib_name, lib_version: @config.lib_version,
756
764
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
757
765
  transports_version_send: [:rest]
758
766
 
767
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
759
768
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
760
769
 
761
770
  options.apply_defaults timeout: @config.rpcs.train_flow.timeout,
@@ -835,12 +844,13 @@ module Google
835
844
  # Customize the options with defaults
836
845
  call_metadata = @config.rpcs.validate_flow.metadata.to_h
837
846
 
838
- # Set x-goog-api-client and x-goog-user-project headers
847
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
839
848
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
840
849
  lib_name: @config.lib_name, lib_version: @config.lib_version,
841
850
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
842
851
  transports_version_send: [:rest]
843
852
 
853
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
844
854
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
845
855
 
846
856
  options.apply_defaults timeout: @config.rpcs.validate_flow.timeout,
@@ -918,12 +928,13 @@ module Google
918
928
  # Customize the options with defaults
919
929
  call_metadata = @config.rpcs.get_flow_validation_result.metadata.to_h
920
930
 
921
- # Set x-goog-api-client and x-goog-user-project headers
931
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
922
932
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
923
933
  lib_name: @config.lib_name, lib_version: @config.lib_version,
924
934
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
925
935
  transports_version_send: [:rest]
926
936
 
937
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
927
938
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
928
939
 
929
940
  options.apply_defaults timeout: @config.rpcs.get_flow_validation_result.timeout,
@@ -1034,12 +1045,13 @@ module Google
1034
1045
  # Customize the options with defaults
1035
1046
  call_metadata = @config.rpcs.import_flow.metadata.to_h
1036
1047
 
1037
- # Set x-goog-api-client and x-goog-user-project headers
1048
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1038
1049
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1039
1050
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1040
1051
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
1041
1052
  transports_version_send: [:rest]
1042
1053
 
1054
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1043
1055
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1044
1056
 
1045
1057
  options.apply_defaults timeout: @config.rpcs.import_flow.timeout,
@@ -1147,12 +1159,13 @@ module Google
1147
1159
  # Customize the options with defaults
1148
1160
  call_metadata = @config.rpcs.export_flow.metadata.to_h
1149
1161
 
1150
- # Set x-goog-api-client and x-goog-user-project headers
1162
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1151
1163
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1152
1164
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1153
1165
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
1154
1166
  transports_version_send: [:rest]
1155
1167
 
1168
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1156
1169
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1157
1170
 
1158
1171
  options.apply_defaults timeout: @config.rpcs.export_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::Generator Generators}
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
 
@@ -248,10 +251,11 @@ module Google
248
251
  # Customize the options with defaults
249
252
  metadata = @config.rpcs.list_generators.metadata.to_h
250
253
 
251
- # Set x-goog-api-client and x-goog-user-project headers
254
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
252
255
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
253
256
  lib_name: @config.lib_name, lib_version: @config.lib_version,
254
257
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
258
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
255
259
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
256
260
 
257
261
  header_params = {}
@@ -338,10 +342,11 @@ module Google
338
342
  # Customize the options with defaults
339
343
  metadata = @config.rpcs.get_generator.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
  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
349
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
345
350
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
346
351
 
347
352
  header_params = {}
@@ -430,10 +435,11 @@ module Google
430
435
  # Customize the options with defaults
431
436
  metadata = @config.rpcs.create_generator.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 = {}
@@ -520,10 +526,11 @@ module Google
520
526
  # Customize the options with defaults
521
527
  metadata = @config.rpcs.update_generator.metadata.to_h
522
528
 
523
- # Set x-goog-api-client and x-goog-user-project headers
529
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
524
530
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
525
531
  lib_name: @config.lib_name, lib_version: @config.lib_version,
526
532
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
533
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
527
534
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
528
535
 
529
536
  header_params = {}
@@ -616,10 +623,11 @@ module Google
616
623
  # Customize the options with defaults
617
624
  metadata = @config.rpcs.delete_generator.metadata.to_h
618
625
 
619
- # Set x-goog-api-client and x-goog-user-project headers
626
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
620
627
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
621
628
  lib_name: @config.lib_name, lib_version: @config.lib_version,
622
629
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
630
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
623
631
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
624
632
 
625
633
  header_params = {}
@@ -34,6 +34,9 @@ module Google
34
34
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Generator Generators}
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
 
@@ -241,12 +244,13 @@ module Google
241
244
  # Customize the options with defaults
242
245
  call_metadata = @config.rpcs.list_generators.metadata.to_h
243
246
 
244
- # Set x-goog-api-client and x-goog-user-project headers
247
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
245
248
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
246
249
  lib_name: @config.lib_name, lib_version: @config.lib_version,
247
250
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
248
251
  transports_version_send: [:rest]
249
252
 
253
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
250
254
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
251
255
 
252
256
  options.apply_defaults timeout: @config.rpcs.list_generators.timeout,
@@ -324,12 +328,13 @@ module Google
324
328
  # Customize the options with defaults
325
329
  call_metadata = @config.rpcs.get_generator.metadata.to_h
326
330
 
327
- # Set x-goog-api-client and x-goog-user-project headers
331
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
328
332
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
329
333
  lib_name: @config.lib_name, lib_version: @config.lib_version,
330
334
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
331
335
  transports_version_send: [:rest]
332
336
 
337
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
333
338
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
334
339
 
335
340
  options.apply_defaults timeout: @config.rpcs.get_generator.timeout,
@@ -409,12 +414,13 @@ module Google
409
414
  # Customize the options with defaults
410
415
  call_metadata = @config.rpcs.create_generator.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_generator.timeout,
@@ -492,12 +498,13 @@ module Google
492
498
  # Customize the options with defaults
493
499
  call_metadata = @config.rpcs.update_generator.metadata.to_h
494
500
 
495
- # Set x-goog-api-client and x-goog-user-project headers
501
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
496
502
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
497
503
  lib_name: @config.lib_name, lib_version: @config.lib_version,
498
504
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
499
505
  transports_version_send: [:rest]
500
506
 
507
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
501
508
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
502
509
 
503
510
  options.apply_defaults timeout: @config.rpcs.update_generator.timeout,
@@ -581,12 +588,13 @@ module Google
581
588
  # Customize the options with defaults
582
589
  call_metadata = @config.rpcs.delete_generator.metadata.to_h
583
590
 
584
- # Set x-goog-api-client and x-goog-user-project headers
591
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
585
592
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
586
593
  lib_name: @config.lib_name, lib_version: @config.lib_version,
587
594
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
588
595
  transports_version_send: [:rest]
589
596
 
597
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
590
598
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
591
599
 
592
600
  options.apply_defaults timeout: @config.rpcs.delete_generator.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Intent Intents}.
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
 
@@ -273,10 +276,11 @@ module Google
273
276
  # Customize the options with defaults
274
277
  metadata = @config.rpcs.list_intents.metadata.to_h
275
278
 
276
- # Set x-goog-api-client and x-goog-user-project headers
279
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
277
280
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
278
281
  lib_name: @config.lib_name, lib_version: @config.lib_version,
279
282
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
283
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
280
284
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
281
285
 
282
286
  header_params = {}
@@ -372,10 +376,11 @@ module Google
372
376
  # Customize the options with defaults
373
377
  metadata = @config.rpcs.get_intent.metadata.to_h
374
378
 
375
- # Set x-goog-api-client and x-goog-user-project headers
379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
376
380
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
377
381
  lib_name: @config.lib_name, lib_version: @config.lib_version,
378
382
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
383
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
379
384
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
380
385
 
381
386
  header_params = {}
@@ -474,10 +479,11 @@ module Google
474
479
  # Customize the options with defaults
475
480
  metadata = @config.rpcs.create_intent.metadata.to_h
476
481
 
477
- # Set x-goog-api-client and x-goog-user-project headers
482
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
478
483
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
479
484
  lib_name: @config.lib_name, lib_version: @config.lib_version,
480
485
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
486
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
481
487
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
482
488
 
483
489
  header_params = {}
@@ -576,10 +582,11 @@ module Google
576
582
  # Customize the options with defaults
577
583
  metadata = @config.rpcs.update_intent.metadata.to_h
578
584
 
579
- # 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
580
586
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
581
587
  lib_name: @config.lib_name, lib_version: @config.lib_version,
582
588
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
589
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
583
590
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
584
591
 
585
592
  header_params = {}
@@ -667,10 +674,11 @@ module Google
667
674
  # Customize the options with defaults
668
675
  metadata = @config.rpcs.delete_intent.metadata.to_h
669
676
 
670
- # Set x-goog-api-client and x-goog-user-project headers
677
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
671
678
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
672
679
  lib_name: @config.lib_name, lib_version: @config.lib_version,
673
680
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
681
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
674
682
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
675
683
 
676
684
  header_params = {}
@@ -783,10 +791,11 @@ module Google
783
791
  # Customize the options with defaults
784
792
  metadata = @config.rpcs.import_intents.metadata.to_h
785
793
 
786
- # Set x-goog-api-client and x-goog-user-project headers
794
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
787
795
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
788
796
  lib_name: @config.lib_name, lib_version: @config.lib_version,
789
797
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
798
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
790
799
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
791
800
 
792
801
  header_params = {}
@@ -907,10 +916,11 @@ module Google
907
916
  # Customize the options with defaults
908
917
  metadata = @config.rpcs.export_intents.metadata.to_h
909
918
 
910
- # Set x-goog-api-client and x-goog-user-project headers
919
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
911
920
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
912
921
  lib_name: @config.lib_name, lib_version: @config.lib_version,
913
922
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
923
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
914
924
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
915
925
 
916
926
  header_params = {}
@@ -27,6 +27,9 @@ module Google
27
27
  module Intents
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,