google-cloud-dialogflow-v2 0.33.0 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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_record_pb.rb +1 -1
- 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/audio_config_pb.rb +1 -1
- 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
- data/proto_docs/google/api/client.rb +4 -0
- data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +12 -0
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +6 -0
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +2 -2
- metadata +2 -2
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for managing {::Google::Cloud::Dialogflow::V2::Fulfillment Fulfillments}.
|
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
|
|
@@ -236,10 +239,11 @@ module Google
|
|
236
239
|
# Customize the options with defaults
|
237
240
|
metadata = @config.rpcs.get_fulfillment.metadata.to_h
|
238
241
|
|
239
|
-
# Set x-goog-api-client
|
242
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
240
243
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
241
244
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
242
245
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
246
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
243
247
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
244
248
|
|
245
249
|
header_params = {}
|
@@ -324,10 +328,11 @@ module Google
|
|
324
328
|
# Customize the options with defaults
|
325
329
|
metadata = @config.rpcs.update_fulfillment.metadata.to_h
|
326
330
|
|
327
|
-
# Set x-goog-api-client
|
331
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
328
332
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
329
333
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
330
334
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
335
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
331
336
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
332
337
|
|
333
338
|
header_params = {}
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for managing {::Google::Cloud::Dialogflow::V2::Fulfillment Fulfillments}.
|
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
|
|
@@ -229,12 +232,13 @@ module Google
|
|
229
232
|
# Customize the options with defaults
|
230
233
|
call_metadata = @config.rpcs.get_fulfillment.metadata.to_h
|
231
234
|
|
232
|
-
# Set x-goog-api-client
|
235
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
233
236
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
234
237
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
235
238
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
236
239
|
transports_version_send: [:rest]
|
237
240
|
|
241
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
238
242
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
239
243
|
|
240
244
|
options.apply_defaults timeout: @config.rpcs.get_fulfillment.timeout,
|
@@ -310,12 +314,13 @@ module Google
|
|
310
314
|
# Customize the options with defaults
|
311
315
|
call_metadata = @config.rpcs.update_fulfillment.metadata.to_h
|
312
316
|
|
313
|
-
# Set x-goog-api-client
|
317
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
314
318
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
315
319
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
316
320
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
317
321
|
transports_version_send: [:rest]
|
318
322
|
|
323
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
319
324
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
320
325
|
|
321
326
|
options.apply_defaults timeout: @config.rpcs.update_fulfillment.timeout,
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for managing {::Google::Cloud::Dialogflow::V2::Intent Intents}.
|
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
|
|
@@ -275,10 +278,11 @@ module Google
|
|
275
278
|
# Customize the options with defaults
|
276
279
|
metadata = @config.rpcs.list_intents.metadata.to_h
|
277
280
|
|
278
|
-
# Set x-goog-api-client
|
281
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
279
282
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
280
283
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
281
284
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
285
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
282
286
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
283
287
|
|
284
288
|
header_params = {}
|
@@ -370,10 +374,11 @@ module Google
|
|
370
374
|
# Customize the options with defaults
|
371
375
|
metadata = @config.rpcs.get_intent.metadata.to_h
|
372
376
|
|
373
|
-
# Set x-goog-api-client
|
377
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
374
378
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
375
379
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
376
380
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
381
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
377
382
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
378
383
|
|
379
384
|
header_params = {}
|
@@ -470,10 +475,11 @@ module Google
|
|
470
475
|
# Customize the options with defaults
|
471
476
|
metadata = @config.rpcs.create_intent.metadata.to_h
|
472
477
|
|
473
|
-
# Set x-goog-api-client
|
478
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
474
479
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
475
480
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
476
481
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
482
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
483
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
484
|
|
479
485
|
header_params = {}
|
@@ -569,10 +575,11 @@ module Google
|
|
569
575
|
# Customize the options with defaults
|
570
576
|
metadata = @config.rpcs.update_intent.metadata.to_h
|
571
577
|
|
572
|
-
# Set x-goog-api-client
|
578
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
573
579
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
574
580
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
575
581
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
582
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
576
583
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
577
584
|
|
578
585
|
header_params = {}
|
@@ -660,10 +667,11 @@ module Google
|
|
660
667
|
# Customize the options with defaults
|
661
668
|
metadata = @config.rpcs.delete_intent.metadata.to_h
|
662
669
|
|
663
|
-
# Set x-goog-api-client
|
670
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
664
671
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
665
672
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
666
673
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
674
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
667
675
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
668
676
|
|
669
677
|
header_params = {}
|
@@ -782,10 +790,11 @@ module Google
|
|
782
790
|
# Customize the options with defaults
|
783
791
|
metadata = @config.rpcs.batch_update_intents.metadata.to_h
|
784
792
|
|
785
|
-
# Set x-goog-api-client
|
793
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
786
794
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
787
795
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
788
796
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
797
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
789
798
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
790
799
|
|
791
800
|
header_params = {}
|
@@ -892,10 +901,11 @@ module Google
|
|
892
901
|
# Customize the options with defaults
|
893
902
|
metadata = @config.rpcs.batch_delete_intents.metadata.to_h
|
894
903
|
|
895
|
-
# Set x-goog-api-client
|
904
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
896
905
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
897
906
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
898
907
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
908
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
899
909
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
900
910
|
|
901
911
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Intents
|
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
|
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
|
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
|
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
|
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
|
584
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
578
585
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
579
586
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
580
587
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -33,6 +33,9 @@ module Google
|
|
33
33
|
# Service for managing {::Google::Cloud::Dialogflow::V2::Intent Intents}.
|
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
|
|
@@ -268,12 +271,13 @@ module Google
|
|
268
271
|
# Customize the options with defaults
|
269
272
|
call_metadata = @config.rpcs.list_intents.metadata.to_h
|
270
273
|
|
271
|
-
# Set x-goog-api-client
|
274
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
272
275
|
call_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,
|
275
278
|
transports_version_send: [:rest]
|
276
279
|
|
280
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
277
281
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
278
282
|
|
279
283
|
options.apply_defaults timeout: @config.rpcs.list_intents.timeout,
|
@@ -356,12 +360,13 @@ module Google
|
|
356
360
|
# Customize the options with defaults
|
357
361
|
call_metadata = @config.rpcs.get_intent.metadata.to_h
|
358
362
|
|
359
|
-
# Set x-goog-api-client
|
363
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
360
364
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
361
365
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
362
366
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
363
367
|
transports_version_send: [:rest]
|
364
368
|
|
369
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
365
370
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
366
371
|
|
367
372
|
options.apply_defaults timeout: @config.rpcs.get_intent.timeout,
|
@@ -449,12 +454,13 @@ module Google
|
|
449
454
|
# Customize the options with defaults
|
450
455
|
call_metadata = @config.rpcs.create_intent.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
|
call_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,
|
456
461
|
transports_version_send: [:rest]
|
457
462
|
|
463
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
458
464
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
459
465
|
|
460
466
|
options.apply_defaults timeout: @config.rpcs.create_intent.timeout,
|
@@ -541,12 +547,13 @@ module Google
|
|
541
547
|
# Customize the options with defaults
|
542
548
|
call_metadata = @config.rpcs.update_intent.metadata.to_h
|
543
549
|
|
544
|
-
# Set x-goog-api-client
|
550
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
545
551
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
546
552
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
547
553
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
548
554
|
transports_version_send: [:rest]
|
549
555
|
|
556
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
550
557
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
551
558
|
|
552
559
|
options.apply_defaults timeout: @config.rpcs.update_intent.timeout,
|
@@ -625,12 +632,13 @@ module Google
|
|
625
632
|
# Customize the options with defaults
|
626
633
|
call_metadata = @config.rpcs.delete_intent.metadata.to_h
|
627
634
|
|
628
|
-
# Set x-goog-api-client
|
635
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
629
636
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
630
637
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
631
638
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
632
639
|
transports_version_send: [:rest]
|
633
640
|
|
641
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
634
642
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
635
643
|
|
636
644
|
options.apply_defaults timeout: @config.rpcs.delete_intent.timeout,
|
@@ -740,12 +748,13 @@ module Google
|
|
740
748
|
# Customize the options with defaults
|
741
749
|
call_metadata = @config.rpcs.batch_update_intents.metadata.to_h
|
742
750
|
|
743
|
-
# Set x-goog-api-client
|
751
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
744
752
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
745
753
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
746
754
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
747
755
|
transports_version_send: [:rest]
|
748
756
|
|
757
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
749
758
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
750
759
|
|
751
760
|
options.apply_defaults timeout: @config.rpcs.batch_update_intents.timeout,
|
@@ -843,12 +852,13 @@ module Google
|
|
843
852
|
# Customize the options with defaults
|
844
853
|
call_metadata = @config.rpcs.batch_delete_intents.metadata.to_h
|
845
854
|
|
846
|
-
# Set x-goog-api-client
|
855
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
847
856
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
848
857
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
849
858
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
850
859
|
transports_version_send: [:rest]
|
851
860
|
|
861
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
852
862
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
853
863
|
|
854
864
|
options.apply_defaults timeout: @config.rpcs.batch_delete_intents.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
|
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
|
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
|
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
|
447
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
442
448
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
443
449
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
444
450
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
445
451
|
transports_version_send: [:rest]
|
446
452
|
|
453
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
447
454
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
448
455
|
|
449
456
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# {::Google::Cloud::Dialogflow::V2::KnowledgeBase KnowledgeBases}.
|
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
|
|
@@ -273,10 +276,11 @@ module Google
|
|
273
276
|
# Customize the options with defaults
|
274
277
|
metadata = @config.rpcs.list_knowledge_bases.metadata.to_h
|
275
278
|
|
276
|
-
# Set x-goog-api-client
|
279
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
277
280
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
278
281
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
279
282
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
283
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
280
284
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
281
285
|
|
282
286
|
header_params = {}
|
@@ -361,10 +365,11 @@ module Google
|
|
361
365
|
# Customize the options with defaults
|
362
366
|
metadata = @config.rpcs.get_knowledge_base.metadata.to_h
|
363
367
|
|
364
|
-
# Set x-goog-api-client
|
368
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
365
369
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
366
370
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
367
371
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
372
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
368
373
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
369
374
|
|
370
375
|
header_params = {}
|
@@ -449,10 +454,11 @@ module Google
|
|
449
454
|
# Customize the options with defaults
|
450
455
|
metadata = @config.rpcs.create_knowledge_base.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 = {}
|
@@ -539,10 +545,11 @@ module Google
|
|
539
545
|
# Customize the options with defaults
|
540
546
|
metadata = @config.rpcs.delete_knowledge_base.metadata.to_h
|
541
547
|
|
542
|
-
# Set x-goog-api-client
|
548
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
543
549
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
544
550
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
545
551
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
552
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
546
553
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
547
554
|
|
548
555
|
header_params = {}
|
@@ -628,10 +635,11 @@ module Google
|
|
628
635
|
# Customize the options with defaults
|
629
636
|
metadata = @config.rpcs.update_knowledge_base.metadata.to_h
|
630
637
|
|
631
|
-
# Set x-goog-api-client
|
638
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
632
639
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
633
640
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
634
641
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
642
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
635
643
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
636
644
|
|
637
645
|
header_params = {}
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# {::Google::Cloud::Dialogflow::V2::KnowledgeBase KnowledgeBases}.
|
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
|
|
@@ -266,12 +269,13 @@ module Google
|
|
266
269
|
# Customize the options with defaults
|
267
270
|
call_metadata = @config.rpcs.list_knowledge_bases.metadata.to_h
|
268
271
|
|
269
|
-
# Set x-goog-api-client
|
272
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
270
273
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
271
274
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
272
275
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
273
276
|
transports_version_send: [:rest]
|
274
277
|
|
278
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
275
279
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
276
280
|
|
277
281
|
options.apply_defaults timeout: @config.rpcs.list_knowledge_bases.timeout,
|
@@ -347,12 +351,13 @@ module Google
|
|
347
351
|
# Customize the options with defaults
|
348
352
|
call_metadata = @config.rpcs.get_knowledge_base.metadata.to_h
|
349
353
|
|
350
|
-
# Set x-goog-api-client
|
354
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
351
355
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
352
356
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
353
357
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
354
358
|
transports_version_send: [:rest]
|
355
359
|
|
360
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
356
361
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
357
362
|
|
358
363
|
options.apply_defaults timeout: @config.rpcs.get_knowledge_base.timeout,
|
@@ -428,12 +433,13 @@ module Google
|
|
428
433
|
# Customize the options with defaults
|
429
434
|
call_metadata = @config.rpcs.create_knowledge_base.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_knowledge_base.timeout,
|
@@ -511,12 +517,13 @@ module Google
|
|
511
517
|
# Customize the options with defaults
|
512
518
|
call_metadata = @config.rpcs.delete_knowledge_base.metadata.to_h
|
513
519
|
|
514
|
-
# Set x-goog-api-client
|
520
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
515
521
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
516
522
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
517
523
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
518
524
|
transports_version_send: [:rest]
|
519
525
|
|
526
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
520
527
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
521
528
|
|
522
529
|
options.apply_defaults timeout: @config.rpcs.delete_knowledge_base.timeout,
|
@@ -593,12 +600,13 @@ module Google
|
|
593
600
|
# Customize the options with defaults
|
594
601
|
call_metadata = @config.rpcs.update_knowledge_base.metadata.to_h
|
595
602
|
|
596
|
-
# Set x-goog-api-client
|
603
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
597
604
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
598
605
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
599
606
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
600
607
|
transports_version_send: [:rest]
|
601
608
|
|
609
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
602
610
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
603
611
|
|
604
612
|
options.apply_defaults timeout: @config.rpcs.update_knowledge_base.timeout,
|