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
@@ -33,6 +33,9 @@ module Google
33
33
  # Service for managing {::Google::Cloud::Dialogflow::V2::Context Contexts}.
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
 
@@ -242,12 +245,13 @@ module Google
242
245
  # Customize the options with defaults
243
246
  call_metadata = @config.rpcs.list_contexts.metadata.to_h
244
247
 
245
- # Set x-goog-api-client and x-goog-user-project headers
248
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
246
249
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
247
250
  lib_name: @config.lib_name, lib_version: @config.lib_version,
248
251
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
249
252
  transports_version_send: [:rest]
250
253
 
254
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
251
255
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
252
256
 
253
257
  options.apply_defaults timeout: @config.rpcs.list_contexts.timeout,
@@ -326,12 +330,13 @@ module Google
326
330
  # Customize the options with defaults
327
331
  call_metadata = @config.rpcs.get_context.metadata.to_h
328
332
 
329
- # Set x-goog-api-client and x-goog-user-project headers
333
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
330
334
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
331
335
  lib_name: @config.lib_name, lib_version: @config.lib_version,
332
336
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
333
337
  transports_version_send: [:rest]
334
338
 
339
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
335
340
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
336
341
 
337
342
  options.apply_defaults timeout: @config.rpcs.get_context.timeout,
@@ -413,12 +418,13 @@ module Google
413
418
  # Customize the options with defaults
414
419
  call_metadata = @config.rpcs.create_context.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_context.timeout,
@@ -493,12 +499,13 @@ module Google
493
499
  # Customize the options with defaults
494
500
  call_metadata = @config.rpcs.update_context.metadata.to_h
495
501
 
496
- # Set x-goog-api-client and x-goog-user-project headers
502
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
497
503
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
498
504
  lib_name: @config.lib_name, lib_version: @config.lib_version,
499
505
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
500
506
  transports_version_send: [:rest]
501
507
 
508
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
502
509
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
503
510
 
504
511
  options.apply_defaults timeout: @config.rpcs.update_context.timeout,
@@ -576,12 +583,13 @@ module Google
576
583
  # Customize the options with defaults
577
584
  call_metadata = @config.rpcs.delete_context.metadata.to_h
578
585
 
579
- # Set x-goog-api-client and x-goog-user-project headers
586
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
580
587
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
581
588
  lib_name: @config.lib_name, lib_version: @config.lib_version,
582
589
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
583
590
  transports_version_send: [:rest]
584
591
 
592
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
585
593
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
586
594
 
587
595
  options.apply_defaults timeout: @config.rpcs.delete_context.timeout,
@@ -659,12 +667,13 @@ module Google
659
667
  # Customize the options with defaults
660
668
  call_metadata = @config.rpcs.delete_all_contexts.metadata.to_h
661
669
 
662
- # Set x-goog-api-client and x-goog-user-project headers
670
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
663
671
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
664
672
  lib_name: @config.lib_name, lib_version: @config.lib_version,
665
673
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
666
674
  transports_version_send: [:rest]
667
675
 
676
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
668
677
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
669
678
 
670
679
  options.apply_defaults timeout: @config.rpcs.delete_all_contexts.timeout,
@@ -34,6 +34,9 @@ module Google
34
34
  # customizable metadata that can be used for model training.
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
 
@@ -271,10 +274,11 @@ module Google
271
274
  # Customize the options with defaults
272
275
  metadata = @config.rpcs.create_conversation_dataset.metadata.to_h
273
276
 
274
- # 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
275
278
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
276
279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
277
280
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
281
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
282
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
283
 
280
284
  header_params = {}
@@ -359,10 +363,11 @@ module Google
359
363
  # Customize the options with defaults
360
364
  metadata = @config.rpcs.get_conversation_dataset.metadata.to_h
361
365
 
362
- # Set x-goog-api-client and x-goog-user-project headers
366
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
363
367
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
364
368
  lib_name: @config.lib_name, lib_version: @config.lib_version,
365
369
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
370
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
366
371
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
367
372
 
368
373
  header_params = {}
@@ -455,10 +460,11 @@ module Google
455
460
  # Customize the options with defaults
456
461
  metadata = @config.rpcs.list_conversation_datasets.metadata.to_h
457
462
 
458
- # Set x-goog-api-client and x-goog-user-project headers
463
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
459
464
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
460
465
  lib_name: @config.lib_name, lib_version: @config.lib_version,
461
466
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
467
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
462
468
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
463
469
 
464
470
  header_params = {}
@@ -559,10 +565,11 @@ module Google
559
565
  # Customize the options with defaults
560
566
  metadata = @config.rpcs.delete_conversation_dataset.metadata.to_h
561
567
 
562
- # Set x-goog-api-client and x-goog-user-project headers
568
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
563
569
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
564
570
  lib_name: @config.lib_name, lib_version: @config.lib_version,
565
571
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
572
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
566
573
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
567
574
 
568
575
  header_params = {}
@@ -667,10 +674,11 @@ module Google
667
674
  # Customize the options with defaults
668
675
  metadata = @config.rpcs.import_conversation_data.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::V2::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 = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module ConversationDatasets
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,
@@ -36,6 +36,9 @@ module Google
36
36
  # customizable metadata that can be used for model training.
37
37
  #
38
38
  class Client
39
+ # @private
40
+ API_VERSION = ""
41
+
39
42
  # @private
40
43
  DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
41
44
 
@@ -264,12 +267,13 @@ module Google
264
267
  # Customize the options with defaults
265
268
  call_metadata = @config.rpcs.create_conversation_dataset.metadata.to_h
266
269
 
267
- # Set x-goog-api-client and x-goog-user-project headers
270
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
268
271
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
269
272
  lib_name: @config.lib_name, lib_version: @config.lib_version,
270
273
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
271
274
  transports_version_send: [:rest]
272
275
 
276
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
273
277
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
274
278
 
275
279
  options.apply_defaults timeout: @config.rpcs.create_conversation_dataset.timeout,
@@ -345,12 +349,13 @@ module Google
345
349
  # Customize the options with defaults
346
350
  call_metadata = @config.rpcs.get_conversation_dataset.metadata.to_h
347
351
 
348
- # Set x-goog-api-client and x-goog-user-project headers
352
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
349
353
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
350
354
  lib_name: @config.lib_name, lib_version: @config.lib_version,
351
355
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
352
356
  transports_version_send: [:rest]
353
357
 
358
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
354
359
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
355
360
 
356
361
  options.apply_defaults timeout: @config.rpcs.get_conversation_dataset.timeout,
@@ -434,12 +439,13 @@ module Google
434
439
  # Customize the options with defaults
435
440
  call_metadata = @config.rpcs.list_conversation_datasets.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
  call_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,
441
446
  transports_version_send: [:rest]
442
447
 
448
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
443
449
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
444
450
 
445
451
  options.apply_defaults timeout: @config.rpcs.list_conversation_datasets.timeout,
@@ -531,12 +537,13 @@ module Google
531
537
  # Customize the options with defaults
532
538
  call_metadata = @config.rpcs.delete_conversation_dataset.metadata.to_h
533
539
 
534
- # Set x-goog-api-client and x-goog-user-project headers
540
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
535
541
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
536
542
  lib_name: @config.lib_name, lib_version: @config.lib_version,
537
543
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
538
544
  transports_version_send: [:rest]
539
545
 
546
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
540
547
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
541
548
 
542
549
  options.apply_defaults timeout: @config.rpcs.delete_conversation_dataset.timeout,
@@ -632,12 +639,13 @@ module Google
632
639
  # Customize the options with defaults
633
640
  call_metadata = @config.rpcs.import_conversation_data.metadata.to_h
634
641
 
635
- # Set x-goog-api-client and x-goog-user-project headers
642
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
636
643
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
637
644
  lib_name: @config.lib_name, lib_version: @config.lib_version,
638
645
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
639
646
  transports_version_send: [:rest]
640
647
 
648
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
641
649
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
642
650
 
643
651
  options.apply_defaults timeout: @config.rpcs.import_conversation_data.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
  # Manages a collection of models for human agent assistant.
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
 
@@ -268,10 +271,11 @@ module Google
268
271
  # Customize the options with defaults
269
272
  metadata = @config.rpcs.create_conversation_model.metadata.to_h
270
273
 
271
- # Set x-goog-api-client and x-goog-user-project headers
274
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
272
275
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
273
276
  lib_name: @config.lib_name, lib_version: @config.lib_version,
274
277
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
278
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
275
279
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
276
280
 
277
281
  header_params = {}
@@ -355,10 +359,11 @@ module Google
355
359
  # Customize the options with defaults
356
360
  metadata = @config.rpcs.get_conversation_model.metadata.to_h
357
361
 
358
- # Set x-goog-api-client and x-goog-user-project headers
362
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
359
363
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
360
364
  lib_name: @config.lib_name, lib_version: @config.lib_version,
361
365
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
366
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
362
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
363
368
 
364
369
  header_params = {}
@@ -450,10 +455,11 @@ module Google
450
455
  # Customize the options with defaults
451
456
  metadata = @config.rpcs.list_conversation_models.metadata.to_h
452
457
 
453
- # Set x-goog-api-client and x-goog-user-project headers
458
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
454
459
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
455
460
  lib_name: @config.lib_name, lib_version: @config.lib_version,
456
461
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
462
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
457
463
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
458
464
 
459
465
  header_params = {}
@@ -553,10 +559,11 @@ module Google
553
559
  # Customize the options with defaults
554
560
  metadata = @config.rpcs.delete_conversation_model.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 = {}
@@ -659,10 +666,11 @@ module Google
659
666
  # Customize the options with defaults
660
667
  metadata = @config.rpcs.deploy_conversation_model.metadata.to_h
661
668
 
662
- # Set x-goog-api-client and x-goog-user-project headers
669
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
663
670
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
664
671
  lib_name: @config.lib_name, lib_version: @config.lib_version,
665
672
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
673
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
666
674
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
667
675
 
668
676
  header_params = {}
@@ -765,10 +773,11 @@ module Google
765
773
  # Customize the options with defaults
766
774
  metadata = @config.rpcs.undeploy_conversation_model.metadata.to_h
767
775
 
768
- # Set x-goog-api-client and x-goog-user-project headers
776
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
769
777
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
770
778
  lib_name: @config.lib_name, lib_version: @config.lib_version,
771
779
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
780
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
772
781
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
773
782
 
774
783
  header_params = {}
@@ -853,10 +862,11 @@ module Google
853
862
  # Customize the options with defaults
854
863
  metadata = @config.rpcs.get_conversation_model_evaluation.metadata.to_h
855
864
 
856
- # Set x-goog-api-client and x-goog-user-project headers
865
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
857
866
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
858
867
  lib_name: @config.lib_name, lib_version: @config.lib_version,
859
868
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
869
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
860
870
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
861
871
 
862
872
  header_params = {}
@@ -948,10 +958,11 @@ module Google
948
958
  # Customize the options with defaults
949
959
  metadata = @config.rpcs.list_conversation_model_evaluations.metadata.to_h
950
960
 
951
- # Set x-goog-api-client and x-goog-user-project headers
961
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
952
962
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
953
963
  lib_name: @config.lib_name, lib_version: @config.lib_version,
954
964
  gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
965
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
955
966
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
956
967
 
957
968
  header_params = {}
@@ -1045,10 +1056,11 @@ module Google
1045
1056
  # Customize the options with defaults
1046
1057
  metadata = @config.rpcs.create_conversation_model_evaluation.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
  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
1063
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1052
1064
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1053
1065
 
1054
1066
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module ConversationModels
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,