google-cloud-dialogflow-v2 0.33.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 (57) 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_record_pb.rb +1 -1
  7. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +7 -2
  8. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +7 -2
  9. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -1
  10. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +15 -6
  11. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +15 -6
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +13 -5
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +13 -5
  14. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +13 -5
  15. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +11 -4
  16. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +21 -9
  17. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +13 -5
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +21 -9
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +11 -4
  20. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +17 -7
  21. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +13 -5
  22. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +17 -7
  23. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +11 -4
  24. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +19 -8
  25. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +19 -8
  26. data/lib/google/cloud/dialogflow/v2/documents/client.rb +19 -8
  27. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +13 -5
  28. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +19 -8
  29. data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +11 -4
  30. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +23 -10
  31. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +13 -5
  32. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +23 -10
  33. data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +11 -4
  34. data/lib/google/cloud/dialogflow/v2/environments/client.rb +15 -6
  35. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +15 -6
  36. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +7 -2
  37. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +7 -2
  38. data/lib/google/cloud/dialogflow/v2/intents/client.rb +17 -7
  39. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +13 -5
  40. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +17 -7
  41. data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +11 -4
  42. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +13 -5
  43. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +13 -5
  44. data/lib/google/cloud/dialogflow/v2/participants/client.rb +21 -9
  45. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +19 -8
  46. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +13 -5
  47. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +13 -5
  48. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +7 -2
  49. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +5 -1
  50. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  51. data/lib/google/cloud/dialogflow/v2/versions/client.rb +13 -5
  52. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +13 -5
  53. data/proto_docs/google/api/client.rb +4 -0
  54. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +12 -0
  55. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +6 -0
  56. data/proto_docs/google/cloud/dialogflow/v2/session.rb +2 -2
  57. metadata +2 -2
@@ -31,6 +31,9 @@ module Google
31
31
  # Service for managing {::Google::Cloud::Dialogflow::V2::EntityType EntityTypes}.
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
 
@@ -265,10 +268,11 @@ module Google
265
268
  # Customize the options with defaults
266
269
  metadata = @config.rpcs.list_entity_types.metadata.to_h
267
270
 
268
- # Set x-goog-api-client and x-goog-user-project headers
271
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
269
272
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
270
273
  lib_name: @config.lib_name, lib_version: @config.lib_version,
271
274
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
275
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
272
276
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
273
277
 
274
278
  header_params = {}
@@ -358,10 +362,11 @@ module Google
358
362
  # Customize the options with defaults
359
363
  metadata = @config.rpcs.get_entity_type.metadata.to_h
360
364
 
361
- # Set x-goog-api-client and x-goog-user-project headers
365
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
362
366
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
363
367
  lib_name: @config.lib_name, lib_version: @config.lib_version,
364
368
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
369
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
365
370
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
366
371
 
367
372
  header_params = {}
@@ -456,10 +461,11 @@ module Google
456
461
  # Customize the options with defaults
457
462
  metadata = @config.rpcs.create_entity_type.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
  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::V2::VERSION
468
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
463
469
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
464
470
 
465
471
  header_params = {}
@@ -553,10 +559,11 @@ module Google
553
559
  # Customize the options with defaults
554
560
  metadata = @config.rpcs.update_entity_type.metadata.to_h
555
561
 
556
- # Set x-goog-api-client and x-goog-user-project headers
562
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
557
563
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
558
564
  lib_name: @config.lib_name, lib_version: @config.lib_version,
559
565
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
566
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
560
567
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
561
568
 
562
569
  header_params = {}
@@ -643,10 +650,11 @@ module Google
643
650
  # Customize the options with defaults
644
651
  metadata = @config.rpcs.delete_entity_type.metadata.to_h
645
652
 
646
- # Set x-goog-api-client and x-goog-user-project headers
653
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
647
654
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
648
655
  lib_name: @config.lib_name, lib_version: @config.lib_version,
649
656
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
657
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
650
658
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
651
659
 
652
660
  header_params = {}
@@ -764,10 +772,11 @@ module Google
764
772
  # Customize the options with defaults
765
773
  metadata = @config.rpcs.batch_update_entity_types.metadata.to_h
766
774
 
767
- # Set x-goog-api-client and x-goog-user-project headers
775
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
768
776
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
769
777
  lib_name: @config.lib_name, lib_version: @config.lib_version,
770
778
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
779
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
771
780
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
772
781
 
773
782
  header_params = {}
@@ -874,10 +883,11 @@ module Google
874
883
  # Customize the options with defaults
875
884
  metadata = @config.rpcs.batch_delete_entity_types.metadata.to_h
876
885
 
877
- # Set x-goog-api-client and x-goog-user-project headers
886
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
878
887
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
879
888
  lib_name: @config.lib_name, lib_version: @config.lib_version,
880
889
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
890
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
881
891
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
882
892
 
883
893
  header_params = {}
@@ -989,10 +999,11 @@ module Google
989
999
  # Customize the options with defaults
990
1000
  metadata = @config.rpcs.batch_create_entities.metadata.to_h
991
1001
 
992
- # Set x-goog-api-client and x-goog-user-project headers
1002
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
993
1003
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
994
1004
  lib_name: @config.lib_name, lib_version: @config.lib_version,
995
1005
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
1006
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
996
1007
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
997
1008
 
998
1009
  header_params = {}
@@ -1108,10 +1119,11 @@ module Google
1108
1119
  # Customize the options with defaults
1109
1120
  metadata = @config.rpcs.batch_update_entities.metadata.to_h
1110
1121
 
1111
- # Set x-goog-api-client and x-goog-user-project headers
1122
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1112
1123
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1113
1124
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1114
1125
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
1126
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1115
1127
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1116
1128
 
1117
1129
  header_params = {}
@@ -1225,10 +1237,11 @@ module Google
1225
1237
  # Customize the options with defaults
1226
1238
  metadata = @config.rpcs.batch_delete_entities.metadata.to_h
1227
1239
 
1228
- # Set x-goog-api-client and x-goog-user-project headers
1240
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1229
1241
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1230
1242
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1231
1243
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
1244
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1232
1245
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1233
1246
 
1234
1247
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module EntityTypes
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::EntityType EntityTypes}.
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
 
@@ -258,12 +261,13 @@ module Google
258
261
  # Customize the options with defaults
259
262
  call_metadata = @config.rpcs.list_entity_types.metadata.to_h
260
263
 
261
- # Set x-goog-api-client and x-goog-user-project headers
264
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
262
265
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
263
266
  lib_name: @config.lib_name, lib_version: @config.lib_version,
264
267
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
265
268
  transports_version_send: [:rest]
266
269
 
270
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
267
271
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
268
272
 
269
273
  options.apply_defaults timeout: @config.rpcs.list_entity_types.timeout,
@@ -344,12 +348,13 @@ module Google
344
348
  # Customize the options with defaults
345
349
  call_metadata = @config.rpcs.get_entity_type.metadata.to_h
346
350
 
347
- # Set x-goog-api-client and x-goog-user-project headers
351
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
348
352
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
349
353
  lib_name: @config.lib_name, lib_version: @config.lib_version,
350
354
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
351
355
  transports_version_send: [:rest]
352
356
 
357
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
353
358
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
354
359
 
355
360
  options.apply_defaults timeout: @config.rpcs.get_entity_type.timeout,
@@ -435,12 +440,13 @@ module Google
435
440
  # Customize the options with defaults
436
441
  call_metadata = @config.rpcs.create_entity_type.metadata.to_h
437
442
 
438
- # Set x-goog-api-client and x-goog-user-project headers
443
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
439
444
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
440
445
  lib_name: @config.lib_name, lib_version: @config.lib_version,
441
446
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
442
447
  transports_version_send: [:rest]
443
448
 
449
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
444
450
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
445
451
 
446
452
  options.apply_defaults timeout: @config.rpcs.create_entity_type.timeout,
@@ -525,12 +531,13 @@ module Google
525
531
  # Customize the options with defaults
526
532
  call_metadata = @config.rpcs.update_entity_type.metadata.to_h
527
533
 
528
- # Set x-goog-api-client and x-goog-user-project headers
534
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
529
535
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
530
536
  lib_name: @config.lib_name, lib_version: @config.lib_version,
531
537
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
532
538
  transports_version_send: [:rest]
533
539
 
540
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
534
541
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
535
542
 
536
543
  options.apply_defaults timeout: @config.rpcs.update_entity_type.timeout,
@@ -608,12 +615,13 @@ module Google
608
615
  # Customize the options with defaults
609
616
  call_metadata = @config.rpcs.delete_entity_type.metadata.to_h
610
617
 
611
- # Set x-goog-api-client and x-goog-user-project headers
618
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
612
619
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
613
620
  lib_name: @config.lib_name, lib_version: @config.lib_version,
614
621
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
615
622
  transports_version_send: [:rest]
616
623
 
624
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
617
625
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
618
626
 
619
627
  options.apply_defaults timeout: @config.rpcs.delete_entity_type.timeout,
@@ -722,12 +730,13 @@ module Google
722
730
  # Customize the options with defaults
723
731
  call_metadata = @config.rpcs.batch_update_entity_types.metadata.to_h
724
732
 
725
- # Set x-goog-api-client and x-goog-user-project headers
733
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
726
734
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
727
735
  lib_name: @config.lib_name, lib_version: @config.lib_version,
728
736
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
729
737
  transports_version_send: [:rest]
730
738
 
739
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
731
740
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
732
741
 
733
742
  options.apply_defaults timeout: @config.rpcs.batch_update_entity_types.timeout,
@@ -825,12 +834,13 @@ module Google
825
834
  # Customize the options with defaults
826
835
  call_metadata = @config.rpcs.batch_delete_entity_types.metadata.to_h
827
836
 
828
- # Set x-goog-api-client and x-goog-user-project headers
837
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
829
838
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
830
839
  lib_name: @config.lib_name, lib_version: @config.lib_version,
831
840
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
832
841
  transports_version_send: [:rest]
833
842
 
843
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
834
844
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
835
845
 
836
846
  options.apply_defaults timeout: @config.rpcs.batch_delete_entity_types.timeout,
@@ -933,12 +943,13 @@ module Google
933
943
  # Customize the options with defaults
934
944
  call_metadata = @config.rpcs.batch_create_entities.metadata.to_h
935
945
 
936
- # Set x-goog-api-client and x-goog-user-project headers
946
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
937
947
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
938
948
  lib_name: @config.lib_name, lib_version: @config.lib_version,
939
949
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
940
950
  transports_version_send: [:rest]
941
951
 
952
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
942
953
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
943
954
 
944
955
  options.apply_defaults timeout: @config.rpcs.batch_create_entities.timeout,
@@ -1045,12 +1056,13 @@ module Google
1045
1056
  # Customize the options with defaults
1046
1057
  call_metadata = @config.rpcs.batch_update_entities.metadata.to_h
1047
1058
 
1048
- # Set x-goog-api-client and x-goog-user-project headers
1059
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1049
1060
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1050
1061
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1051
1062
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
1052
1063
  transports_version_send: [:rest]
1053
1064
 
1065
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1054
1066
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1055
1067
 
1056
1068
  options.apply_defaults timeout: @config.rpcs.batch_update_entities.timeout,
@@ -1155,12 +1167,13 @@ module Google
1155
1167
  # Customize the options with defaults
1156
1168
  call_metadata = @config.rpcs.batch_delete_entities.metadata.to_h
1157
1169
 
1158
- # Set x-goog-api-client and x-goog-user-project headers
1170
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1159
1171
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1160
1172
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1161
1173
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
1162
1174
  transports_version_send: [:rest]
1163
1175
 
1176
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1164
1177
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1165
1178
 
1166
1179
  options.apply_defaults timeout: @config.rpcs.batch_delete_entities.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,
@@ -31,6 +31,9 @@ module Google
31
31
  # Service for managing {::Google::Cloud::Dialogflow::V2::Environment Environments}.
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
 
@@ -248,10 +251,11 @@ module Google
248
251
  # Customize the options with defaults
249
252
  metadata = @config.rpcs.list_environments.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::V2::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 = {}
@@ -341,10 +345,11 @@ module Google
341
345
  # Customize the options with defaults
342
346
  metadata = @config.rpcs.get_environment.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 = {}
@@ -434,10 +439,11 @@ module Google
434
439
  # Customize the options with defaults
435
440
  metadata = @config.rpcs.create_environment.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 = {}
@@ -537,10 +543,11 @@ module Google
537
543
  # Customize the options with defaults
538
544
  metadata = @config.rpcs.update_environment.metadata.to_h
539
545
 
540
- # Set x-goog-api-client and x-goog-user-project headers
546
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
541
547
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
542
548
  lib_name: @config.lib_name, lib_version: @config.lib_version,
543
549
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
550
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
544
551
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
545
552
 
546
553
  header_params = {}
@@ -629,10 +636,11 @@ module Google
629
636
  # Customize the options with defaults
630
637
  metadata = @config.rpcs.delete_environment.metadata.to_h
631
638
 
632
- # Set x-goog-api-client and x-goog-user-project headers
639
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
633
640
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
634
641
  lib_name: @config.lib_name, lib_version: @config.lib_version,
635
642
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
643
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
636
644
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
637
645
 
638
646
  header_params = {}
@@ -730,10 +738,11 @@ module Google
730
738
  # Customize the options with defaults
731
739
  metadata = @config.rpcs.get_environment_history.metadata.to_h
732
740
 
733
- # Set x-goog-api-client and x-goog-user-project headers
741
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
734
742
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
735
743
  lib_name: @config.lib_name, lib_version: @config.lib_version,
736
744
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
745
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
737
746
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
738
747
 
739
748
  header_params = {}
@@ -33,6 +33,9 @@ module Google
33
33
  # Service for managing {::Google::Cloud::Dialogflow::V2::Environment Environments}.
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
 
@@ -241,12 +244,13 @@ module Google
241
244
  # Customize the options with defaults
242
245
  call_metadata = @config.rpcs.list_environments.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::V2::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_environments.timeout,
@@ -327,12 +331,13 @@ module Google
327
331
  # Customize the options with defaults
328
332
  call_metadata = @config.rpcs.get_environment.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.get_environment.timeout,
@@ -413,12 +418,13 @@ module Google
413
418
  # Customize the options with defaults
414
419
  call_metadata = @config.rpcs.create_environment.metadata.to_h
415
420
 
416
- # Set x-goog-api-client and x-goog-user-project headers
421
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
417
422
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
418
423
  lib_name: @config.lib_name, lib_version: @config.lib_version,
419
424
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
420
425
  transports_version_send: [:rest]
421
426
 
427
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
422
428
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
423
429
 
424
430
  options.apply_defaults timeout: @config.rpcs.create_environment.timeout,
@@ -509,12 +515,13 @@ module Google
509
515
  # Customize the options with defaults
510
516
  call_metadata = @config.rpcs.update_environment.metadata.to_h
511
517
 
512
- # Set x-goog-api-client and x-goog-user-project headers
518
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
513
519
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
514
520
  lib_name: @config.lib_name, lib_version: @config.lib_version,
515
521
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
516
522
  transports_version_send: [:rest]
517
523
 
524
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
518
525
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
519
526
 
520
527
  options.apply_defaults timeout: @config.rpcs.update_environment.timeout,
@@ -594,12 +601,13 @@ module Google
594
601
  # Customize the options with defaults
595
602
  call_metadata = @config.rpcs.delete_environment.metadata.to_h
596
603
 
597
- # Set x-goog-api-client and x-goog-user-project headers
604
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
598
605
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
599
606
  lib_name: @config.lib_name, lib_version: @config.lib_version,
600
607
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
601
608
  transports_version_send: [:rest]
602
609
 
610
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
603
611
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
604
612
 
605
613
  options.apply_defaults timeout: @config.rpcs.delete_environment.timeout,
@@ -688,12 +696,13 @@ module Google
688
696
  # Customize the options with defaults
689
697
  call_metadata = @config.rpcs.get_environment_history.metadata.to_h
690
698
 
691
- # Set x-goog-api-client and x-goog-user-project headers
699
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
692
700
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
693
701
  lib_name: @config.lib_name, lib_version: @config.lib_version,
694
702
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
695
703
  transports_version_send: [:rest]
696
704
 
705
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
697
706
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
698
707
 
699
708
  options.apply_defaults timeout: @config.rpcs.get_environment_history.timeout,