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.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +21 -9
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +21 -9
- data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +7 -2
- data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +7 -2
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +15 -6
- data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +15 -6
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +21 -9
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +21 -9
- data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +17 -7
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +17 -7
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +19 -8
- data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +19 -8
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +19 -8
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +19 -8
- data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +23 -10
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +23 -10
- data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +15 -6
- data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +15 -6
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +7 -2
- data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +7 -2
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +17 -7
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +17 -7
- data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +21 -9
- data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +19 -8
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +7 -2
- data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +5 -1
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +13 -5
- data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +13 -5
- metadata +2 -2
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for managing {::Google::Cloud::Dialogflow::V2::Participant Participants}.
|
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
|
|
@@ -246,10 +249,11 @@ module Google
|
|
246
249
|
# Customize the options with defaults
|
247
250
|
metadata = @config.rpcs.create_participant.metadata.to_h
|
248
251
|
|
249
|
-
# Set x-goog-api-client
|
252
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
250
253
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
251
254
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
252
255
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
256
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
253
257
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
254
258
|
|
255
259
|
header_params = {}
|
@@ -333,10 +337,11 @@ module Google
|
|
333
337
|
# Customize the options with defaults
|
334
338
|
metadata = @config.rpcs.get_participant.metadata.to_h
|
335
339
|
|
336
|
-
# Set x-goog-api-client
|
340
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
337
341
|
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
|
344
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
340
345
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
341
346
|
|
342
347
|
header_params = {}
|
@@ -429,10 +434,11 @@ module Google
|
|
429
434
|
# Customize the options with defaults
|
430
435
|
metadata = @config.rpcs.list_participants.metadata.to_h
|
431
436
|
|
432
|
-
# Set x-goog-api-client
|
437
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
433
438
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
434
439
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
435
440
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
441
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
436
442
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
437
443
|
|
438
444
|
header_params = {}
|
@@ -517,10 +523,11 @@ module Google
|
|
517
523
|
# Customize the options with defaults
|
518
524
|
metadata = @config.rpcs.update_participant.metadata.to_h
|
519
525
|
|
520
|
-
# Set x-goog-api-client
|
526
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
521
527
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
522
528
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
523
529
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
530
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
524
531
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
525
532
|
|
526
533
|
header_params = {}
|
@@ -636,10 +643,11 @@ module Google
|
|
636
643
|
# Customize the options with defaults
|
637
644
|
metadata = @config.rpcs.analyze_content.metadata.to_h
|
638
645
|
|
639
|
-
# Set x-goog-api-client
|
646
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
640
647
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
641
648
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
642
649
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
650
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
643
651
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
644
652
|
|
645
653
|
header_params = {}
|
@@ -736,10 +744,11 @@ module Google
|
|
736
744
|
# Customize the options with defaults
|
737
745
|
metadata = @config.rpcs.streaming_analyze_content.metadata.to_h
|
738
746
|
|
739
|
-
# Set x-goog-api-client
|
747
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
740
748
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
741
749
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
742
750
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
751
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
743
752
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
744
753
|
|
745
754
|
options.apply_defaults timeout: @config.rpcs.streaming_analyze_content.timeout,
|
@@ -829,10 +838,11 @@ module Google
|
|
829
838
|
# Customize the options with defaults
|
830
839
|
metadata = @config.rpcs.suggest_articles.metadata.to_h
|
831
840
|
|
832
|
-
# Set x-goog-api-client
|
841
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
833
842
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
834
843
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
835
844
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
845
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
836
846
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
837
847
|
|
838
848
|
header_params = {}
|
@@ -929,10 +939,11 @@ module Google
|
|
929
939
|
# Customize the options with defaults
|
930
940
|
metadata = @config.rpcs.suggest_faq_answers.metadata.to_h
|
931
941
|
|
932
|
-
# Set x-goog-api-client
|
942
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
933
943
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
934
944
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
935
945
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
946
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
936
947
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
937
948
|
|
938
949
|
header_params = {}
|
@@ -1031,10 +1042,11 @@ module Google
|
|
1031
1042
|
# Customize the options with defaults
|
1032
1043
|
metadata = @config.rpcs.suggest_smart_replies.metadata.to_h
|
1033
1044
|
|
1034
|
-
# Set x-goog-api-client
|
1045
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1035
1046
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1036
1047
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1037
1048
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
1049
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1038
1050
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1039
1051
|
|
1040
1052
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for managing {::Google::Cloud::Dialogflow::V2::Participant Participants}.
|
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
|
|
@@ -237,12 +240,13 @@ module Google
|
|
237
240
|
# Customize the options with defaults
|
238
241
|
call_metadata = @config.rpcs.create_participant.metadata.to_h
|
239
242
|
|
240
|
-
# Set x-goog-api-client
|
243
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
241
244
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
242
245
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
243
246
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
244
247
|
transports_version_send: [:rest]
|
245
248
|
|
249
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
246
250
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
247
251
|
|
248
252
|
options.apply_defaults timeout: @config.rpcs.create_participant.timeout,
|
@@ -317,12 +321,13 @@ module Google
|
|
317
321
|
# Customize the options with defaults
|
318
322
|
call_metadata = @config.rpcs.get_participant.metadata.to_h
|
319
323
|
|
320
|
-
# Set x-goog-api-client
|
324
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
321
325
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
322
326
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
323
327
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
324
328
|
transports_version_send: [:rest]
|
325
329
|
|
330
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
326
331
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
327
332
|
|
328
333
|
options.apply_defaults timeout: @config.rpcs.get_participant.timeout,
|
@@ -406,12 +411,13 @@ module Google
|
|
406
411
|
# Customize the options with defaults
|
407
412
|
call_metadata = @config.rpcs.list_participants.metadata.to_h
|
408
413
|
|
409
|
-
# Set x-goog-api-client
|
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.list_participants.timeout,
|
@@ -487,12 +493,13 @@ module Google
|
|
487
493
|
# Customize the options with defaults
|
488
494
|
call_metadata = @config.rpcs.update_participant.metadata.to_h
|
489
495
|
|
490
|
-
# Set x-goog-api-client
|
496
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
491
497
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
492
498
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
493
499
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
494
500
|
transports_version_send: [:rest]
|
495
501
|
|
502
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
496
503
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
497
504
|
|
498
505
|
options.apply_defaults timeout: @config.rpcs.update_participant.timeout,
|
@@ -599,12 +606,13 @@ module Google
|
|
599
606
|
# Customize the options with defaults
|
600
607
|
call_metadata = @config.rpcs.analyze_content.metadata.to_h
|
601
608
|
|
602
|
-
# Set x-goog-api-client
|
609
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
603
610
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
604
611
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
605
612
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
606
613
|
transports_version_send: [:rest]
|
607
614
|
|
615
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
608
616
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
609
617
|
|
610
618
|
options.apply_defaults timeout: @config.rpcs.analyze_content.timeout,
|
@@ -693,12 +701,13 @@ module Google
|
|
693
701
|
# Customize the options with defaults
|
694
702
|
call_metadata = @config.rpcs.suggest_articles.metadata.to_h
|
695
703
|
|
696
|
-
# Set x-goog-api-client
|
704
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
697
705
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
698
706
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
699
707
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
700
708
|
transports_version_send: [:rest]
|
701
709
|
|
710
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
702
711
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
703
712
|
|
704
713
|
options.apply_defaults timeout: @config.rpcs.suggest_articles.timeout,
|
@@ -786,12 +795,13 @@ module Google
|
|
786
795
|
# Customize the options with defaults
|
787
796
|
call_metadata = @config.rpcs.suggest_faq_answers.metadata.to_h
|
788
797
|
|
789
|
-
# Set x-goog-api-client
|
798
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
790
799
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
791
800
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
792
801
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
793
802
|
transports_version_send: [:rest]
|
794
803
|
|
804
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
795
805
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
796
806
|
|
797
807
|
options.apply_defaults timeout: @config.rpcs.suggest_faq_answers.timeout,
|
@@ -881,12 +891,13 @@ module Google
|
|
881
891
|
# Customize the options with defaults
|
882
892
|
call_metadata = @config.rpcs.suggest_smart_replies.metadata.to_h
|
883
893
|
|
884
|
-
# Set x-goog-api-client
|
894
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
885
895
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
886
896
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
887
897
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
888
898
|
transports_version_send: [:rest]
|
889
899
|
|
900
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
890
901
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
891
902
|
|
892
903
|
options.apply_defaults timeout: @config.rpcs.suggest_smart_replies.timeout,
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# {::Google::Cloud::Dialogflow::V2::SessionEntityType SessionEntityTypes}.
|
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
|
|
@@ -254,10 +257,11 @@ module Google
|
|
254
257
|
# Customize the options with defaults
|
255
258
|
metadata = @config.rpcs.list_session_entity_types.metadata.to_h
|
256
259
|
|
257
|
-
# Set x-goog-api-client
|
260
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
258
261
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
259
262
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
260
263
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
264
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
261
265
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
262
266
|
|
263
267
|
header_params = {}
|
@@ -350,10 +354,11 @@ module Google
|
|
350
354
|
# Customize the options with defaults
|
351
355
|
metadata = @config.rpcs.get_session_entity_type.metadata.to_h
|
352
356
|
|
353
|
-
# Set x-goog-api-client
|
357
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
354
358
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
355
359
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
356
360
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
361
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
357
362
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
358
363
|
|
359
364
|
header_params = {}
|
@@ -449,10 +454,11 @@ module Google
|
|
449
454
|
# Customize the options with defaults
|
450
455
|
metadata = @config.rpcs.create_session_entity_type.metadata.to_h
|
451
456
|
|
452
|
-
# Set x-goog-api-client
|
457
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
453
458
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
454
459
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
455
460
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
461
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
456
462
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
457
463
|
|
458
464
|
header_params = {}
|
@@ -540,10 +546,11 @@ module Google
|
|
540
546
|
# Customize the options with defaults
|
541
547
|
metadata = @config.rpcs.update_session_entity_type.metadata.to_h
|
542
548
|
|
543
|
-
# Set x-goog-api-client
|
549
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
544
550
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
545
551
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
546
552
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
553
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
547
554
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
548
555
|
|
549
556
|
header_params = {}
|
@@ -635,10 +642,11 @@ module Google
|
|
635
642
|
# Customize the options with defaults
|
636
643
|
metadata = @config.rpcs.delete_session_entity_type.metadata.to_h
|
637
644
|
|
638
|
-
# Set x-goog-api-client
|
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 = {}
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# {::Google::Cloud::Dialogflow::V2::SessionEntityType SessionEntityTypes}.
|
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
|
|
@@ -247,12 +250,13 @@ module Google
|
|
247
250
|
# Customize the options with defaults
|
248
251
|
call_metadata = @config.rpcs.list_session_entity_types.metadata.to_h
|
249
252
|
|
250
|
-
# Set x-goog-api-client
|
253
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
251
254
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
252
255
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
253
256
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
254
257
|
transports_version_send: [:rest]
|
255
258
|
|
259
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
256
260
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
257
261
|
|
258
262
|
options.apply_defaults timeout: @config.rpcs.list_session_entity_types.timeout,
|
@@ -336,12 +340,13 @@ module Google
|
|
336
340
|
# Customize the options with defaults
|
337
341
|
call_metadata = @config.rpcs.get_session_entity_type.metadata.to_h
|
338
342
|
|
339
|
-
# Set x-goog-api-client
|
343
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
340
344
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
341
345
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
342
346
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
343
347
|
transports_version_send: [:rest]
|
344
348
|
|
349
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
345
350
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
346
351
|
|
347
352
|
options.apply_defaults timeout: @config.rpcs.get_session_entity_type.timeout,
|
@@ -428,12 +433,13 @@ module Google
|
|
428
433
|
# Customize the options with defaults
|
429
434
|
call_metadata = @config.rpcs.create_session_entity_type.metadata.to_h
|
430
435
|
|
431
|
-
# Set x-goog-api-client
|
436
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
432
437
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
433
438
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
434
439
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
435
440
|
transports_version_send: [:rest]
|
436
441
|
|
442
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
437
443
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
438
444
|
|
439
445
|
options.apply_defaults timeout: @config.rpcs.create_session_entity_type.timeout,
|
@@ -512,12 +518,13 @@ module Google
|
|
512
518
|
# Customize the options with defaults
|
513
519
|
call_metadata = @config.rpcs.update_session_entity_type.metadata.to_h
|
514
520
|
|
515
|
-
# Set x-goog-api-client
|
521
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
516
522
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
517
523
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
518
524
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
519
525
|
transports_version_send: [:rest]
|
520
526
|
|
527
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
521
528
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
522
529
|
|
523
530
|
options.apply_defaults timeout: @config.rpcs.update_session_entity_type.timeout,
|
@@ -600,12 +607,13 @@ module Google
|
|
600
607
|
# Customize the options with defaults
|
601
608
|
call_metadata = @config.rpcs.delete_session_entity_type.metadata.to_h
|
602
609
|
|
603
|
-
# Set x-goog-api-client
|
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.delete_session_entity_type.timeout,
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# guide](https://cloud.google.com/dialogflow/docs/api-overview).
|
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
|
|
@@ -303,10 +306,11 @@ module Google
|
|
303
306
|
# Customize the options with defaults
|
304
307
|
metadata = @config.rpcs.detect_intent.metadata.to_h
|
305
308
|
|
306
|
-
# Set x-goog-api-client
|
309
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
307
310
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
308
311
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
309
312
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
313
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
310
314
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
311
315
|
|
312
316
|
header_params = {}
|
@@ -402,10 +406,11 @@ module Google
|
|
402
406
|
# Customize the options with defaults
|
403
407
|
metadata = @config.rpcs.streaming_detect_intent.metadata.to_h
|
404
408
|
|
405
|
-
# Set x-goog-api-client
|
409
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
406
410
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
407
411
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
408
412
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
413
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
409
414
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
410
415
|
|
411
416
|
options.apply_defaults timeout: @config.rpcs.streaming_detect_intent.timeout,
|
@@ -36,6 +36,9 @@ module Google
|
|
36
36
|
# guide](https://cloud.google.com/dialogflow/docs/api-overview).
|
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
|
|
@@ -294,12 +297,13 @@ module Google
|
|
294
297
|
# Customize the options with defaults
|
295
298
|
call_metadata = @config.rpcs.detect_intent.metadata.to_h
|
296
299
|
|
297
|
-
# Set x-goog-api-client
|
300
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
298
301
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
299
302
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
300
303
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
301
304
|
transports_version_send: [:rest]
|
302
305
|
|
306
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
303
307
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
304
308
|
|
305
309
|
options.apply_defaults timeout: @config.rpcs.detect_intent.timeout,
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for managing {::Google::Cloud::Dialogflow::V2::Version Versions}.
|
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_versions.metadata.to_h
|
250
253
|
|
251
|
-
# Set x-goog-api-client
|
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 = {}
|
@@ -339,10 +343,11 @@ module Google
|
|
339
343
|
# Customize the options with defaults
|
340
344
|
metadata = @config.rpcs.get_version.metadata.to_h
|
341
345
|
|
342
|
-
# Set x-goog-api-client
|
346
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
343
347
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
344
348
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
345
349
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
350
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
346
351
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
347
352
|
|
348
353
|
header_params = {}
|
@@ -432,10 +437,11 @@ module Google
|
|
432
437
|
# Customize the options with defaults
|
433
438
|
metadata = @config.rpcs.create_version.metadata.to_h
|
434
439
|
|
435
|
-
# Set x-goog-api-client
|
440
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
436
441
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
437
442
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
438
443
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
444
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
439
445
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
440
446
|
|
441
447
|
header_params = {}
|
@@ -528,10 +534,11 @@ module Google
|
|
528
534
|
# Customize the options with defaults
|
529
535
|
metadata = @config.rpcs.update_version.metadata.to_h
|
530
536
|
|
531
|
-
# Set x-goog-api-client
|
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 = {}
|
@@ -618,10 +625,11 @@ module Google
|
|
618
625
|
# Customize the options with defaults
|
619
626
|
metadata = @config.rpcs.delete_version.metadata.to_h
|
620
627
|
|
621
|
-
# Set x-goog-api-client
|
628
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
622
629
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
623
630
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
624
631
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
632
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
625
633
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
626
634
|
|
627
635
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for managing {::Google::Cloud::Dialogflow::V2::Version Versions}.
|
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_versions.metadata.to_h
|
243
246
|
|
244
|
-
# Set x-goog-api-client
|
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_versions.timeout,
|
@@ -325,12 +329,13 @@ module Google
|
|
325
329
|
# Customize the options with defaults
|
326
330
|
call_metadata = @config.rpcs.get_version.metadata.to_h
|
327
331
|
|
328
|
-
# Set x-goog-api-client
|
332
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
329
333
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
330
334
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
331
335
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
332
336
|
transports_version_send: [:rest]
|
333
337
|
|
338
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
334
339
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
335
340
|
|
336
341
|
options.apply_defaults timeout: @config.rpcs.get_version.timeout,
|
@@ -411,12 +416,13 @@ module Google
|
|
411
416
|
# Customize the options with defaults
|
412
417
|
call_metadata = @config.rpcs.create_version.metadata.to_h
|
413
418
|
|
414
|
-
# Set x-goog-api-client
|
419
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
415
420
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
416
421
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
417
422
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
418
423
|
transports_version_send: [:rest]
|
419
424
|
|
425
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
420
426
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
421
427
|
|
422
428
|
options.apply_defaults timeout: @config.rpcs.create_version.timeout,
|
@@ -500,12 +506,13 @@ module Google
|
|
500
506
|
# Customize the options with defaults
|
501
507
|
call_metadata = @config.rpcs.update_version.metadata.to_h
|
502
508
|
|
503
|
-
# Set x-goog-api-client
|
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.update_version.timeout,
|
@@ -583,12 +590,13 @@ module Google
|
|
583
590
|
# Customize the options with defaults
|
584
591
|
call_metadata = @config.rpcs.delete_version.metadata.to_h
|
585
592
|
|
586
|
-
# Set x-goog-api-client
|
593
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
587
594
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
588
595
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
589
596
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
590
597
|
transports_version_send: [:rest]
|
591
598
|
|
599
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
592
600
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
593
601
|
|
594
602
|
options.apply_defaults timeout: @config.rpcs.delete_version.timeout,
|