google-cloud-dialogflow-cx-v3 0.26.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +25 -11
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +25 -11
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +7 -2
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +7 -2
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +7 -2
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +7 -2
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +17 -7
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +17 -7
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +21 -9
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +21 -9
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +17 -7
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +17 -7
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +23 -10
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +23 -10
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/cx/v3/generators/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/generators/rest/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +17 -7
- data/lib/google/cloud/dialogflow/cx/v3/intents/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +17 -7
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +15 -6
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +27 -12
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +27 -12
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +17 -7
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +17 -7
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +11 -4
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +13 -5
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +13 -5
- data/proto_docs/google/api/client.rb +4 -0
- metadata +2 -2
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# Service for managing {::Google::Cloud::Dialogflow::CX::V3::EntityType EntityTypes}.
|
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
|
|
@@ -265,10 +268,11 @@ module Google
|
|
265
268
|
# Customize the options with defaults
|
266
269
|
metadata = @config.rpcs.get_entity_type.metadata.to_h
|
267
270
|
|
268
|
-
# Set x-goog-api-client
|
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::CX::V3::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 = {}
|
@@ -369,10 +373,11 @@ module Google
|
|
369
373
|
# Customize the options with defaults
|
370
374
|
metadata = @config.rpcs.create_entity_type.metadata.to_h
|
371
375
|
|
372
|
-
# Set x-goog-api-client
|
376
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
373
377
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
374
378
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
375
379
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
380
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
376
381
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
377
382
|
|
378
383
|
header_params = {}
|
@@ -472,10 +477,11 @@ module Google
|
|
472
477
|
# Customize the options with defaults
|
473
478
|
metadata = @config.rpcs.update_entity_type.metadata.to_h
|
474
479
|
|
475
|
-
# Set x-goog-api-client
|
480
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
476
481
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
477
482
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
478
483
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
484
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
479
485
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
480
486
|
|
481
487
|
header_params = {}
|
@@ -576,10 +582,11 @@ module Google
|
|
576
582
|
# Customize the options with defaults
|
577
583
|
metadata = @config.rpcs.delete_entity_type.metadata.to_h
|
578
584
|
|
579
|
-
# Set x-goog-api-client
|
585
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
580
586
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
581
587
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
582
588
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
589
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
583
590
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
584
591
|
|
585
592
|
header_params = {}
|
@@ -684,10 +691,11 @@ module Google
|
|
684
691
|
# Customize the options with defaults
|
685
692
|
metadata = @config.rpcs.list_entity_types.metadata.to_h
|
686
693
|
|
687
|
-
# Set x-goog-api-client
|
694
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
688
695
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
689
696
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
690
697
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
698
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
691
699
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
692
700
|
|
693
701
|
header_params = {}
|
@@ -812,10 +820,11 @@ module Google
|
|
812
820
|
# Customize the options with defaults
|
813
821
|
metadata = @config.rpcs.export_entity_types.metadata.to_h
|
814
822
|
|
815
|
-
# Set x-goog-api-client
|
823
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
816
824
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
817
825
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
818
826
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
827
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
819
828
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
820
829
|
|
821
830
|
header_params = {}
|
@@ -929,10 +938,11 @@ module Google
|
|
929
938
|
# Customize the options with defaults
|
930
939
|
metadata = @config.rpcs.import_entity_types.metadata.to_h
|
931
940
|
|
932
|
-
# Set x-goog-api-client
|
941
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
933
942
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
934
943
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
935
944
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
945
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
936
946
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
937
947
|
|
938
948
|
header_params = {}
|
@@ -27,6 +27,9 @@ module Google
|
|
27
27
|
module EntityTypes
|
28
28
|
# Service that implements Longrunning Operations API.
|
29
29
|
class Operations
|
30
|
+
# @private
|
31
|
+
API_VERSION = ""
|
32
|
+
|
30
33
|
# @private
|
31
34
|
DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
|
32
35
|
|
@@ -192,10 +195,11 @@ module Google
|
|
192
195
|
# Customize the options with defaults
|
193
196
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
194
197
|
|
195
|
-
# Set x-goog-api-client
|
198
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
196
199
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
197
200
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
198
201
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
202
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
199
203
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
200
204
|
|
201
205
|
header_params = {}
|
@@ -288,10 +292,11 @@ module Google
|
|
288
292
|
# Customize the options with defaults
|
289
293
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
290
294
|
|
291
|
-
# Set x-goog-api-client
|
295
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
292
296
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
293
297
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
294
298
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
299
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
295
300
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
296
301
|
|
297
302
|
header_params = {}
|
@@ -377,10 +382,11 @@ module Google
|
|
377
382
|
# Customize the options with defaults
|
378
383
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
379
384
|
|
380
|
-
# Set x-goog-api-client
|
385
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
381
386
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
382
387
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
383
388
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
389
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
384
390
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
385
391
|
|
386
392
|
header_params = {}
|
@@ -471,10 +477,11 @@ module Google
|
|
471
477
|
# Customize the options with defaults
|
472
478
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
473
479
|
|
474
|
-
# Set x-goog-api-client
|
480
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
475
481
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
476
482
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
477
483
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
484
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
478
485
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
479
486
|
|
480
487
|
header_params = {}
|
@@ -575,10 +582,11 @@ module Google
|
|
575
582
|
# Customize the options with defaults
|
576
583
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
577
584
|
|
578
|
-
# Set x-goog-api-client
|
585
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
579
586
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
580
587
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
581
588
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
589
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
582
590
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
583
591
|
|
584
592
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# Service for managing {::Google::Cloud::Dialogflow::CX::V3::EntityType EntityTypes}.
|
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
|
|
@@ -258,12 +261,13 @@ module Google
|
|
258
261
|
# Customize the options with defaults
|
259
262
|
call_metadata = @config.rpcs.get_entity_type.metadata.to_h
|
260
263
|
|
261
|
-
# Set x-goog-api-client
|
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::CX::V3::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.get_entity_type.timeout,
|
@@ -355,12 +359,13 @@ module Google
|
|
355
359
|
# Customize the options with defaults
|
356
360
|
call_metadata = @config.rpcs.create_entity_type.metadata.to_h
|
357
361
|
|
358
|
-
# Set x-goog-api-client
|
362
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
359
363
|
call_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::CX::V3::VERSION,
|
362
366
|
transports_version_send: [:rest]
|
363
367
|
|
368
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
364
369
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
365
370
|
|
366
371
|
options.apply_defaults timeout: @config.rpcs.create_entity_type.timeout,
|
@@ -451,12 +456,13 @@ module Google
|
|
451
456
|
# Customize the options with defaults
|
452
457
|
call_metadata = @config.rpcs.update_entity_type.metadata.to_h
|
453
458
|
|
454
|
-
# Set x-goog-api-client
|
459
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
455
460
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
456
461
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
457
462
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
|
458
463
|
transports_version_send: [:rest]
|
459
464
|
|
465
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
460
466
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
461
467
|
|
462
468
|
options.apply_defaults timeout: @config.rpcs.update_entity_type.timeout,
|
@@ -548,12 +554,13 @@ module Google
|
|
548
554
|
# Customize the options with defaults
|
549
555
|
call_metadata = @config.rpcs.delete_entity_type.metadata.to_h
|
550
556
|
|
551
|
-
# Set x-goog-api-client
|
557
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
552
558
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
553
559
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
554
560
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
|
555
561
|
transports_version_send: [:rest]
|
556
562
|
|
563
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
557
564
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
558
565
|
|
559
566
|
options.apply_defaults timeout: @config.rpcs.delete_entity_type.timeout,
|
@@ -649,12 +656,13 @@ module Google
|
|
649
656
|
# Customize the options with defaults
|
650
657
|
call_metadata = @config.rpcs.list_entity_types.metadata.to_h
|
651
658
|
|
652
|
-
# Set x-goog-api-client
|
659
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
653
660
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
654
661
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
655
662
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
|
656
663
|
transports_version_send: [:rest]
|
657
664
|
|
665
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
658
666
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
659
667
|
|
660
668
|
options.apply_defaults timeout: @config.rpcs.list_entity_types.timeout,
|
@@ -770,12 +778,13 @@ module Google
|
|
770
778
|
# Customize the options with defaults
|
771
779
|
call_metadata = @config.rpcs.export_entity_types.metadata.to_h
|
772
780
|
|
773
|
-
# Set x-goog-api-client
|
781
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
774
782
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
775
783
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
776
784
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
|
777
785
|
transports_version_send: [:rest]
|
778
786
|
|
787
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
779
788
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
780
789
|
|
781
790
|
options.apply_defaults timeout: @config.rpcs.export_entity_types.timeout,
|
@@ -880,12 +889,13 @@ module Google
|
|
880
889
|
# Customize the options with defaults
|
881
890
|
call_metadata = @config.rpcs.import_entity_types.metadata.to_h
|
882
891
|
|
883
|
-
# Set x-goog-api-client
|
892
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
884
893
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
885
894
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
886
895
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
|
887
896
|
transports_version_send: [:rest]
|
888
897
|
|
898
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
889
899
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
890
900
|
|
891
901
|
options.apply_defaults timeout: @config.rpcs.import_entity_types.timeout,
|
@@ -27,6 +27,9 @@ module Google
|
|
27
27
|
module Rest
|
28
28
|
# Service that implements Longrunning Operations API.
|
29
29
|
class Operations
|
30
|
+
# @private
|
31
|
+
API_VERSION = ""
|
32
|
+
|
30
33
|
# @private
|
31
34
|
DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
|
32
35
|
|
@@ -182,12 +185,13 @@ module Google
|
|
182
185
|
# Customize the options with defaults
|
183
186
|
call_metadata = @config.rpcs.list_operations.metadata.to_h
|
184
187
|
|
185
|
-
# Set x-goog-api-client
|
188
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
186
189
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
187
190
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
188
191
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
|
189
192
|
transports_version_send: [:rest]
|
190
193
|
|
194
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
191
195
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
192
196
|
|
193
197
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
@@ -270,12 +274,13 @@ module Google
|
|
270
274
|
# Customize the options with defaults
|
271
275
|
call_metadata = @config.rpcs.get_operation.metadata.to_h
|
272
276
|
|
273
|
-
# Set x-goog-api-client
|
277
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
274
278
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
275
279
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
276
280
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
|
277
281
|
transports_version_send: [:rest]
|
278
282
|
|
283
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
279
284
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
280
285
|
|
281
286
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
@@ -352,12 +357,13 @@ module Google
|
|
352
357
|
# Customize the options with defaults
|
353
358
|
call_metadata = @config.rpcs.delete_operation.metadata.to_h
|
354
359
|
|
355
|
-
# Set x-goog-api-client
|
360
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
356
361
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
357
362
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
358
363
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
|
359
364
|
transports_version_send: [:rest]
|
360
365
|
|
366
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
361
367
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
362
368
|
|
363
369
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
@@ -439,12 +445,13 @@ module Google
|
|
439
445
|
# Customize the options with defaults
|
440
446
|
call_metadata = @config.rpcs.cancel_operation.metadata.to_h
|
441
447
|
|
442
|
-
# Set x-goog-api-client
|
448
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
443
449
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
444
450
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
445
451
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION,
|
446
452
|
transports_version_send: [:rest]
|
447
453
|
|
454
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
448
455
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
449
456
|
|
450
457
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# {::Google::Cloud::Dialogflow::CX::V3::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
|
|
@@ -263,10 +266,11 @@ module Google
|
|
263
266
|
# Customize the options with defaults
|
264
267
|
metadata = @config.rpcs.list_environments.metadata.to_h
|
265
268
|
|
266
|
-
# Set x-goog-api-client
|
269
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
267
270
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
268
271
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
269
272
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
273
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
270
274
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
271
275
|
|
272
276
|
header_params = {}
|
@@ -353,10 +357,11 @@ module Google
|
|
353
357
|
# Customize the options with defaults
|
354
358
|
metadata = @config.rpcs.get_environment.metadata.to_h
|
355
359
|
|
356
|
-
# Set x-goog-api-client
|
360
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
357
361
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
358
362
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
359
363
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
364
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
360
365
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
361
366
|
|
362
367
|
header_params = {}
|
@@ -458,10 +463,11 @@ module Google
|
|
458
463
|
# Customize the options with defaults
|
459
464
|
metadata = @config.rpcs.create_environment.metadata.to_h
|
460
465
|
|
461
|
-
# Set x-goog-api-client
|
466
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
462
467
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
463
468
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
464
469
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
470
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
465
471
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
466
472
|
|
467
473
|
header_params = {}
|
@@ -562,10 +568,11 @@ module Google
|
|
562
568
|
# Customize the options with defaults
|
563
569
|
metadata = @config.rpcs.update_environment.metadata.to_h
|
564
570
|
|
565
|
-
# Set x-goog-api-client
|
571
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
566
572
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
567
573
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
568
574
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
575
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
569
576
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
570
577
|
|
571
578
|
header_params = {}
|
@@ -652,10 +659,11 @@ module Google
|
|
652
659
|
# Customize the options with defaults
|
653
660
|
metadata = @config.rpcs.delete_environment.metadata.to_h
|
654
661
|
|
655
|
-
# Set x-goog-api-client
|
662
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
656
663
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
657
664
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
658
665
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
666
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
659
667
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
660
668
|
|
661
669
|
header_params = {}
|
@@ -749,10 +757,11 @@ module Google
|
|
749
757
|
# Customize the options with defaults
|
750
758
|
metadata = @config.rpcs.lookup_environment_history.metadata.to_h
|
751
759
|
|
752
|
-
# Set x-goog-api-client
|
760
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
753
761
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
754
762
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
755
763
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
764
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
756
765
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
757
766
|
|
758
767
|
header_params = {}
|
@@ -853,10 +862,11 @@ module Google
|
|
853
862
|
# Customize the options with defaults
|
854
863
|
metadata = @config.rpcs.run_continuous_test.metadata.to_h
|
855
864
|
|
856
|
-
# Set x-goog-api-client
|
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::CX::V3::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 = {}
|
@@ -950,10 +960,11 @@ module Google
|
|
950
960
|
# Customize the options with defaults
|
951
961
|
metadata = @config.rpcs.list_continuous_test_results.metadata.to_h
|
952
962
|
|
953
|
-
# Set x-goog-api-client
|
963
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
954
964
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
955
965
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
956
966
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
967
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
957
968
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
958
969
|
|
959
970
|
header_params = {}
|
@@ -1059,10 +1070,11 @@ module Google
|
|
1059
1070
|
# Customize the options with defaults
|
1060
1071
|
metadata = @config.rpcs.deploy_flow.metadata.to_h
|
1061
1072
|
|
1062
|
-
# Set x-goog-api-client
|
1073
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1063
1074
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1064
1075
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1065
1076
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
1077
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1066
1078
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1067
1079
|
|
1068
1080
|
header_params = {}
|
@@ -27,6 +27,9 @@ module Google
|
|
27
27
|
module Environments
|
28
28
|
# Service that implements Longrunning Operations API.
|
29
29
|
class Operations
|
30
|
+
# @private
|
31
|
+
API_VERSION = ""
|
32
|
+
|
30
33
|
# @private
|
31
34
|
DEFAULT_ENDPOINT_TEMPLATE = "dialogflow.$UNIVERSE_DOMAIN$"
|
32
35
|
|
@@ -192,10 +195,11 @@ module Google
|
|
192
195
|
# Customize the options with defaults
|
193
196
|
metadata = @config.rpcs.list_operations.metadata.to_h
|
194
197
|
|
195
|
-
# Set x-goog-api-client
|
198
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
196
199
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
197
200
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
198
201
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
202
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
199
203
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
200
204
|
|
201
205
|
header_params = {}
|
@@ -288,10 +292,11 @@ module Google
|
|
288
292
|
# Customize the options with defaults
|
289
293
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
290
294
|
|
291
|
-
# Set x-goog-api-client
|
295
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
292
296
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
293
297
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
294
298
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
299
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
295
300
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
296
301
|
|
297
302
|
header_params = {}
|
@@ -377,10 +382,11 @@ module Google
|
|
377
382
|
# Customize the options with defaults
|
378
383
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
379
384
|
|
380
|
-
# Set x-goog-api-client
|
385
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
381
386
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
382
387
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
383
388
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
389
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
384
390
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
385
391
|
|
386
392
|
header_params = {}
|
@@ -471,10 +477,11 @@ module Google
|
|
471
477
|
# Customize the options with defaults
|
472
478
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
473
479
|
|
474
|
-
# Set x-goog-api-client
|
480
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
475
481
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
476
482
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
477
483
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
484
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
478
485
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
479
486
|
|
480
487
|
header_params = {}
|
@@ -575,10 +582,11 @@ module Google
|
|
575
582
|
# Customize the options with defaults
|
576
583
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
577
584
|
|
578
|
-
# Set x-goog-api-client
|
585
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
579
586
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
580
587
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
581
588
|
gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
|
589
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
582
590
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
583
591
|
|
584
592
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|