google-cloud-dialogflow-v2 0.34.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/v2/agents/client.rb +21 -9
  3. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +13 -5
  4. data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +21 -9
  5. data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +11 -4
  6. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +7 -2
  7. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +7 -2
  8. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +15 -6
  9. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +15 -6
  10. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +13 -5
  11. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +13 -5
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +13 -5
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +11 -4
  14. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +21 -9
  15. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +13 -5
  16. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +21 -9
  17. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +11 -4
  18. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +17 -7
  19. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +13 -5
  20. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +17 -7
  21. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +11 -4
  22. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +19 -8
  23. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +19 -8
  24. data/lib/google/cloud/dialogflow/v2/documents/client.rb +19 -8
  25. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +13 -5
  26. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +19 -8
  27. data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +11 -4
  28. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +23 -10
  29. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +13 -5
  30. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +23 -10
  31. data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +11 -4
  32. data/lib/google/cloud/dialogflow/v2/environments/client.rb +15 -6
  33. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +15 -6
  34. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +7 -2
  35. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +7 -2
  36. data/lib/google/cloud/dialogflow/v2/intents/client.rb +17 -7
  37. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +13 -5
  38. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +17 -7
  39. data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +11 -4
  40. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +13 -5
  41. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +13 -5
  42. data/lib/google/cloud/dialogflow/v2/participants/client.rb +21 -9
  43. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +19 -8
  44. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +13 -5
  45. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +13 -5
  46. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +7 -2
  47. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +5 -1
  48. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  49. data/lib/google/cloud/dialogflow/v2/versions/client.rb +13 -5
  50. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +13 -5
  51. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6d3255f36267c242f6e5c43fbce7a7690725c380e6c5b55e016625bfed67f542
4
- data.tar.gz: 4b299293a273229e87f8d4ec995032faefeefcde2a3a01b9c2f4e1dc5e01c667
3
+ metadata.gz: 8cef99687c14c85964eb780fab149043b3ef8cef0b9b811f6709c928e1810ba7
4
+ data.tar.gz: 11ccc3bf5e4be4e83ab008819e400d5a5735a7977bcf3e47edd9f6e58d6fb436
5
5
  SHA512:
6
- metadata.gz: 49392a558e18b992180a286a809149425ae08f256fea397877d6a7d4a286c9dfe7437c4019d3b0adc9e1542940269874f8e4b5f4457da33824897f0edb4ac8c6
7
- data.tar.gz: e763575b235da45c439b5b635abe93278453a66009d3fa03cfb88f74c458949349a89e1003b715935452cc39f3bf9844cb6421563c86328716ac75f703dc8422
6
+ metadata.gz: 7dbaf9fb45d52e424214aff453a0d0cc4c7c403526a0236f556e928808426733e8b0f1cd3c904c984f11f22110a5996f6962cbdfe72bac35f67053a78406158c
7
+ data.tar.gz: 6d0bbeaac3f7b28f8f7b31d7f566fb1e2b44ebec232424e21f7266787a3d752628ba7c1c6df467ef2f64f2dfbb1d32b40b634394d746a126faa9b7a765f38be9
@@ -31,6 +31,9 @@ module Google
31
31
  # Service for managing {::Google::Cloud::Dialogflow::V2::Agent Agents}.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
36
39
 
@@ -250,10 +253,11 @@ module Google
250
253
  # Customize the options with defaults
251
254
  metadata = @config.rpcs.get_agent.metadata.to_h
252
255
 
253
- # Set x-goog-api-client and x-goog-user-project headers
256
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
254
257
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
255
258
  lib_name: @config.lib_name, lib_version: @config.lib_version,
256
259
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
260
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
257
261
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
258
262
 
259
263
  header_params = {}
@@ -341,10 +345,11 @@ module Google
341
345
  # Customize the options with defaults
342
346
  metadata = @config.rpcs.set_agent.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
  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::V2::VERSION
352
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
348
353
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
349
354
 
350
355
  header_params = {}
@@ -427,10 +432,11 @@ module Google
427
432
  # Customize the options with defaults
428
433
  metadata = @config.rpcs.delete_agent.metadata.to_h
429
434
 
430
- # Set x-goog-api-client and x-goog-user-project headers
435
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
431
436
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
432
437
  lib_name: @config.lib_name, lib_version: @config.lib_version,
433
438
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
439
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
434
440
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
435
441
 
436
442
  header_params = {}
@@ -528,10 +534,11 @@ module Google
528
534
  # Customize the options with defaults
529
535
  metadata = @config.rpcs.search_agents.metadata.to_h
530
536
 
531
- # Set x-goog-api-client and x-goog-user-project headers
537
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
532
538
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
533
539
  lib_name: @config.lib_name, lib_version: @config.lib_version,
534
540
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
541
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
535
542
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
536
543
 
537
544
  header_params = {}
@@ -635,10 +642,11 @@ module Google
635
642
  # Customize the options with defaults
636
643
  metadata = @config.rpcs.train_agent.metadata.to_h
637
644
 
638
- # Set x-goog-api-client and x-goog-user-project headers
645
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
639
646
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
640
647
  lib_name: @config.lib_name, lib_version: @config.lib_version,
641
648
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
649
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
642
650
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
643
651
 
644
652
  header_params = {}
@@ -749,10 +757,11 @@ module Google
749
757
  # Customize the options with defaults
750
758
  metadata = @config.rpcs.export_agent.metadata.to_h
751
759
 
752
- # Set x-goog-api-client and x-goog-user-project headers
760
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
753
761
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
754
762
  lib_name: @config.lib_name, lib_version: @config.lib_version,
755
763
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
764
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
756
765
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
757
766
 
758
767
  header_params = {}
@@ -880,10 +889,11 @@ module Google
880
889
  # Customize the options with defaults
881
890
  metadata = @config.rpcs.import_agent.metadata.to_h
882
891
 
883
- # Set x-goog-api-client and x-goog-user-project headers
892
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
884
893
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
885
894
  lib_name: @config.lib_name, lib_version: @config.lib_version,
886
895
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
896
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
887
897
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
888
898
 
889
899
  header_params = {}
@@ -1009,10 +1019,11 @@ module Google
1009
1019
  # Customize the options with defaults
1010
1020
  metadata = @config.rpcs.restore_agent.metadata.to_h
1011
1021
 
1012
- # Set x-goog-api-client and x-goog-user-project headers
1022
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1013
1023
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1014
1024
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1015
1025
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
1026
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1016
1027
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1017
1028
 
1018
1029
  header_params = {}
@@ -1103,10 +1114,11 @@ module Google
1103
1114
  # Customize the options with defaults
1104
1115
  metadata = @config.rpcs.get_validation_result.metadata.to_h
1105
1116
 
1106
- # Set x-goog-api-client and x-goog-user-project headers
1117
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1107
1118
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1108
1119
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1109
1120
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
1121
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1110
1122
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1111
1123
 
1112
1124
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module Agents
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -33,6 +33,9 @@ module Google
33
33
  # Service for managing {::Google::Cloud::Dialogflow::V2::Agent Agents}.
34
34
  #
35
35
  class Client
36
+ # @private
37
+ API_VERSION = ""
38
+
36
39
  # @private
37
40
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
38
41
 
@@ -243,12 +246,13 @@ module Google
243
246
  # Customize the options with defaults
244
247
  call_metadata = @config.rpcs.get_agent.metadata.to_h
245
248
 
246
- # Set x-goog-api-client and x-goog-user-project headers
249
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
247
250
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
248
251
  lib_name: @config.lib_name, lib_version: @config.lib_version,
249
252
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
250
253
  transports_version_send: [:rest]
251
254
 
255
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
252
256
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
253
257
 
254
258
  options.apply_defaults timeout: @config.rpcs.get_agent.timeout,
@@ -327,12 +331,13 @@ module Google
327
331
  # Customize the options with defaults
328
332
  call_metadata = @config.rpcs.set_agent.metadata.to_h
329
333
 
330
- # Set x-goog-api-client and x-goog-user-project headers
334
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
331
335
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
332
336
  lib_name: @config.lib_name, lib_version: @config.lib_version,
333
337
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
334
338
  transports_version_send: [:rest]
335
339
 
340
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
336
341
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
337
342
 
338
343
  options.apply_defaults timeout: @config.rpcs.set_agent.timeout,
@@ -406,12 +411,13 @@ module Google
406
411
  # Customize the options with defaults
407
412
  call_metadata = @config.rpcs.delete_agent.metadata.to_h
408
413
 
409
- # Set x-goog-api-client and x-goog-user-project headers
414
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
410
415
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
411
416
  lib_name: @config.lib_name, lib_version: @config.lib_version,
412
417
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
413
418
  transports_version_send: [:rest]
414
419
 
420
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
415
421
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
416
422
 
417
423
  options.apply_defaults timeout: @config.rpcs.delete_agent.timeout,
@@ -500,12 +506,13 @@ module Google
500
506
  # Customize the options with defaults
501
507
  call_metadata = @config.rpcs.search_agents.metadata.to_h
502
508
 
503
- # Set x-goog-api-client and x-goog-user-project headers
509
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
504
510
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
505
511
  lib_name: @config.lib_name, lib_version: @config.lib_version,
506
512
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
507
513
  transports_version_send: [:rest]
508
514
 
515
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
509
516
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
510
517
 
511
518
  options.apply_defaults timeout: @config.rpcs.search_agents.timeout,
@@ -600,12 +607,13 @@ module Google
600
607
  # Customize the options with defaults
601
608
  call_metadata = @config.rpcs.train_agent.metadata.to_h
602
609
 
603
- # Set x-goog-api-client and x-goog-user-project headers
610
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
604
611
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
605
612
  lib_name: @config.lib_name, lib_version: @config.lib_version,
606
613
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
607
614
  transports_version_send: [:rest]
608
615
 
616
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
609
617
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
610
618
 
611
619
  options.apply_defaults timeout: @config.rpcs.train_agent.timeout,
@@ -707,12 +715,13 @@ module Google
707
715
  # Customize the options with defaults
708
716
  call_metadata = @config.rpcs.export_agent.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::V2::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.export_agent.timeout,
@@ -831,12 +840,13 @@ module Google
831
840
  # Customize the options with defaults
832
841
  call_metadata = @config.rpcs.import_agent.metadata.to_h
833
842
 
834
- # Set x-goog-api-client and x-goog-user-project headers
843
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
835
844
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
836
845
  lib_name: @config.lib_name, lib_version: @config.lib_version,
837
846
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
838
847
  transports_version_send: [:rest]
839
848
 
849
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
840
850
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
841
851
 
842
852
  options.apply_defaults timeout: @config.rpcs.import_agent.timeout,
@@ -953,12 +963,13 @@ module Google
953
963
  # Customize the options with defaults
954
964
  call_metadata = @config.rpcs.restore_agent.metadata.to_h
955
965
 
956
- # Set x-goog-api-client and x-goog-user-project headers
966
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
957
967
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
958
968
  lib_name: @config.lib_name, lib_version: @config.lib_version,
959
969
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
960
970
  transports_version_send: [:rest]
961
971
 
972
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
962
973
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
963
974
 
964
975
  options.apply_defaults timeout: @config.rpcs.restore_agent.timeout,
@@ -1040,12 +1051,13 @@ module Google
1040
1051
  # Customize the options with defaults
1041
1052
  call_metadata = @config.rpcs.get_validation_result.metadata.to_h
1042
1053
 
1043
- # Set x-goog-api-client and x-goog-user-project headers
1054
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1044
1055
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1045
1056
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1046
1057
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
1047
1058
  transports_version_send: [:rest]
1048
1059
 
1060
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1049
1061
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1050
1062
 
1051
1063
  options.apply_defaults timeout: @config.rpcs.get_validation_result.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # 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
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # 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
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
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
 
@@ -259,10 +262,11 @@ module Google
259
262
  # Customize the options with defaults
260
263
  metadata = @config.rpcs.list_answer_records.metadata.to_h
261
264
 
262
- # Set x-goog-api-client and x-goog-user-project headers
265
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
263
266
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
264
267
  lib_name: @config.lib_name, lib_version: @config.lib_version,
265
268
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
269
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
266
270
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
267
271
 
268
272
  header_params = {}
@@ -347,10 +351,11 @@ module Google
347
351
  # Customize the options with defaults
348
352
  metadata = @config.rpcs.update_answer_record.metadata.to_h
349
353
 
350
- # Set x-goog-api-client and x-goog-user-project headers
354
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
351
355
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
352
356
  lib_name: @config.lib_name, lib_version: @config.lib_version,
353
357
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
358
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
354
359
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
355
360
 
356
361
  header_params = {}
@@ -34,6 +34,9 @@ module Google
34
34
  # {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
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
 
@@ -252,12 +255,13 @@ module Google
252
255
  # Customize the options with defaults
253
256
  call_metadata = @config.rpcs.list_answer_records.metadata.to_h
254
257
 
255
- # Set x-goog-api-client and x-goog-user-project headers
258
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
256
259
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
257
260
  lib_name: @config.lib_name, lib_version: @config.lib_version,
258
261
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
259
262
  transports_version_send: [:rest]
260
263
 
264
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
261
265
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
262
266
 
263
267
  options.apply_defaults timeout: @config.rpcs.list_answer_records.timeout,
@@ -333,12 +337,13 @@ module Google
333
337
  # Customize the options with defaults
334
338
  call_metadata = @config.rpcs.update_answer_record.metadata.to_h
335
339
 
336
- # Set x-goog-api-client and x-goog-user-project headers
340
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
337
341
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
338
342
  lib_name: @config.lib_name, lib_version: @config.lib_version,
339
343
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
340
344
  transports_version_send: [:rest]
341
345
 
346
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
342
347
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
343
348
 
344
349
  options.apply_defaults timeout: @config.rpcs.update_answer_record.timeout,
@@ -31,6 +31,9 @@ module Google
31
31
  # Service for managing {::Google::Cloud::Dialogflow::V2::Context Contexts}.
32
32
  #
33
33
  class Client
34
+ # @private
35
+ API_VERSION = ""
36
+
34
37
  # @private
35
38
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
36
39
 
@@ -249,10 +252,11 @@ module Google
249
252
  # Customize the options with defaults
250
253
  metadata = @config.rpcs.list_contexts.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::V2::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 = {}
@@ -340,10 +344,11 @@ module Google
340
344
  # Customize the options with defaults
341
345
  metadata = @config.rpcs.get_context.metadata.to_h
342
346
 
343
- # Set x-goog-api-client and x-goog-user-project headers
347
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
344
348
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
345
349
  lib_name: @config.lib_name, lib_version: @config.lib_version,
346
350
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
351
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
347
352
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
348
353
 
349
354
  header_params = {}
@@ -434,10 +439,11 @@ module Google
434
439
  # Customize the options with defaults
435
440
  metadata = @config.rpcs.create_context.metadata.to_h
436
441
 
437
- # Set x-goog-api-client and x-goog-user-project headers
442
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
438
443
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
439
444
  lib_name: @config.lib_name, lib_version: @config.lib_version,
440
445
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
446
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
441
447
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
442
448
 
443
449
  header_params = {}
@@ -521,10 +527,11 @@ module Google
521
527
  # Customize the options with defaults
522
528
  metadata = @config.rpcs.update_context.metadata.to_h
523
529
 
524
- # Set x-goog-api-client and x-goog-user-project headers
530
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
525
531
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
526
532
  lib_name: @config.lib_name, lib_version: @config.lib_version,
527
533
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
534
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
528
535
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
529
536
 
530
537
  header_params = {}
@@ -611,10 +618,11 @@ module Google
611
618
  # Customize the options with defaults
612
619
  metadata = @config.rpcs.delete_context.metadata.to_h
613
620
 
614
- # Set x-goog-api-client and x-goog-user-project headers
621
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
615
622
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
616
623
  lib_name: @config.lib_name, lib_version: @config.lib_version,
617
624
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
625
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
618
626
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
619
627
 
620
628
  header_params = {}
@@ -701,10 +709,11 @@ module Google
701
709
  # Customize the options with defaults
702
710
  metadata = @config.rpcs.delete_all_contexts.metadata.to_h
703
711
 
704
- # Set x-goog-api-client and x-goog-user-project headers
712
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
705
713
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
706
714
  lib_name: @config.lib_name, lib_version: @config.lib_version,
707
715
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
716
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
708
717
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
709
718
 
710
719
  header_params = {}