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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8cef99687c14c85964eb780fab149043b3ef8cef0b9b811f6709c928e1810ba7
|
4
|
+
data.tar.gz: 11ccc3bf5e4be4e83ab008819e400d5a5735a7977bcf3e47edd9f6e58d6fb436
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7dbaf9fb45d52e424214aff453a0d0cc4c7c403526a0236f556e928808426733e8b0f1cd3c904c984f11f22110a5996f6962cbdfe72bac35f67053a78406158c
|
7
|
+
data.tar.gz: 6d0bbeaac3f7b28f8f7b31d7f566fb1e2b44ebec232424e21f7266787a3d752628ba7c1c6df467ef2f64f2dfbb1d32b40b634394d746a126faa9b7a765f38be9
|
@@ -31,6 +31,9 @@ module Google
|
|
31
31
|
# Service for managing {::Google::Cloud::Dialogflow::V2::Agent Agents}.
|
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
|
|
@@ -250,10 +253,11 @@ module Google
|
|
250
253
|
# Customize the options with defaults
|
251
254
|
metadata = @config.rpcs.get_agent.metadata.to_h
|
252
255
|
|
253
|
-
# Set x-goog-api-client
|
256
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
254
257
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
255
258
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
256
259
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
260
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
257
261
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
258
262
|
|
259
263
|
header_params = {}
|
@@ -341,10 +345,11 @@ module Google
|
|
341
345
|
# Customize the options with defaults
|
342
346
|
metadata = @config.rpcs.set_agent.metadata.to_h
|
343
347
|
|
344
|
-
# Set x-goog-api-client
|
348
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
345
349
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
346
350
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
347
351
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
352
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
348
353
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
349
354
|
|
350
355
|
header_params = {}
|
@@ -427,10 +432,11 @@ module Google
|
|
427
432
|
# Customize the options with defaults
|
428
433
|
metadata = @config.rpcs.delete_agent.metadata.to_h
|
429
434
|
|
430
|
-
# Set x-goog-api-client
|
435
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
431
436
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
432
437
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
433
438
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
439
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
434
440
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
435
441
|
|
436
442
|
header_params = {}
|
@@ -528,10 +534,11 @@ module Google
|
|
528
534
|
# Customize the options with defaults
|
529
535
|
metadata = @config.rpcs.search_agents.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 = {}
|
@@ -635,10 +642,11 @@ module Google
|
|
635
642
|
# Customize the options with defaults
|
636
643
|
metadata = @config.rpcs.train_agent.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 = {}
|
@@ -749,10 +757,11 @@ module Google
|
|
749
757
|
# Customize the options with defaults
|
750
758
|
metadata = @config.rpcs.export_agent.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::V2::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 = {}
|
@@ -880,10 +889,11 @@ module Google
|
|
880
889
|
# Customize the options with defaults
|
881
890
|
metadata = @config.rpcs.import_agent.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
|
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::V2::VERSION
|
896
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
887
897
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
888
898
|
|
889
899
|
header_params = {}
|
@@ -1009,10 +1019,11 @@ module Google
|
|
1009
1019
|
# Customize the options with defaults
|
1010
1020
|
metadata = @config.rpcs.restore_agent.metadata.to_h
|
1011
1021
|
|
1012
|
-
# Set x-goog-api-client
|
1022
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1013
1023
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1014
1024
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1015
1025
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
1026
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1016
1027
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1017
1028
|
|
1018
1029
|
header_params = {}
|
@@ -1103,10 +1114,11 @@ module Google
|
|
1103
1114
|
# Customize the options with defaults
|
1104
1115
|
metadata = @config.rpcs.get_validation_result.metadata.to_h
|
1105
1116
|
|
1106
|
-
# Set x-goog-api-client
|
1117
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1107
1118
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1108
1119
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1109
1120
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
1121
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1110
1122
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1111
1123
|
|
1112
1124
|
header_params = {}
|
@@ -26,6 +26,9 @@ module Google
|
|
26
26
|
module Agents
|
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::Agent Agents}.
|
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
|
|
@@ -243,12 +246,13 @@ module Google
|
|
243
246
|
# Customize the options with defaults
|
244
247
|
call_metadata = @config.rpcs.get_agent.metadata.to_h
|
245
248
|
|
246
|
-
# Set x-goog-api-client
|
249
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
247
250
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
248
251
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
249
252
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
250
253
|
transports_version_send: [:rest]
|
251
254
|
|
255
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
252
256
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
253
257
|
|
254
258
|
options.apply_defaults timeout: @config.rpcs.get_agent.timeout,
|
@@ -327,12 +331,13 @@ module Google
|
|
327
331
|
# Customize the options with defaults
|
328
332
|
call_metadata = @config.rpcs.set_agent.metadata.to_h
|
329
333
|
|
330
|
-
# Set x-goog-api-client
|
334
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
331
335
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
332
336
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
333
337
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
334
338
|
transports_version_send: [:rest]
|
335
339
|
|
340
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
336
341
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
337
342
|
|
338
343
|
options.apply_defaults timeout: @config.rpcs.set_agent.timeout,
|
@@ -406,12 +411,13 @@ module Google
|
|
406
411
|
# Customize the options with defaults
|
407
412
|
call_metadata = @config.rpcs.delete_agent.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.delete_agent.timeout,
|
@@ -500,12 +506,13 @@ module Google
|
|
500
506
|
# Customize the options with defaults
|
501
507
|
call_metadata = @config.rpcs.search_agents.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.search_agents.timeout,
|
@@ -600,12 +607,13 @@ module Google
|
|
600
607
|
# Customize the options with defaults
|
601
608
|
call_metadata = @config.rpcs.train_agent.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.train_agent.timeout,
|
@@ -707,12 +715,13 @@ module Google
|
|
707
715
|
# Customize the options with defaults
|
708
716
|
call_metadata = @config.rpcs.export_agent.metadata.to_h
|
709
717
|
|
710
|
-
# Set x-goog-api-client
|
718
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
711
719
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
712
720
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
713
721
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
714
722
|
transports_version_send: [:rest]
|
715
723
|
|
724
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
716
725
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
717
726
|
|
718
727
|
options.apply_defaults timeout: @config.rpcs.export_agent.timeout,
|
@@ -831,12 +840,13 @@ module Google
|
|
831
840
|
# Customize the options with defaults
|
832
841
|
call_metadata = @config.rpcs.import_agent.metadata.to_h
|
833
842
|
|
834
|
-
# Set x-goog-api-client
|
843
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
835
844
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
836
845
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
837
846
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
838
847
|
transports_version_send: [:rest]
|
839
848
|
|
849
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
840
850
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
841
851
|
|
842
852
|
options.apply_defaults timeout: @config.rpcs.import_agent.timeout,
|
@@ -953,12 +963,13 @@ module Google
|
|
953
963
|
# Customize the options with defaults
|
954
964
|
call_metadata = @config.rpcs.restore_agent.metadata.to_h
|
955
965
|
|
956
|
-
# Set x-goog-api-client
|
966
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
957
967
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
958
968
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
959
969
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
960
970
|
transports_version_send: [:rest]
|
961
971
|
|
972
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
962
973
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
963
974
|
|
964
975
|
options.apply_defaults timeout: @config.rpcs.restore_agent.timeout,
|
@@ -1040,12 +1051,13 @@ module Google
|
|
1040
1051
|
# Customize the options with defaults
|
1041
1052
|
call_metadata = @config.rpcs.get_validation_result.metadata.to_h
|
1042
1053
|
|
1043
|
-
# Set x-goog-api-client
|
1054
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1044
1055
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1045
1056
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1046
1057
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
1047
1058
|
transports_version_send: [:rest]
|
1048
1059
|
|
1060
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1049
1061
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1050
1062
|
|
1051
1063
|
options.apply_defaults timeout: @config.rpcs.get_validation_result.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,
|
@@ -13,7 +13,7 @@ require 'google/protobuf/field_mask_pb'
|
|
13
13
|
require 'google/protobuf/timestamp_pb'
|
14
14
|
|
15
15
|
|
16
|
-
descriptor_data = "\n.google/cloud/dialogflow/v2/answer_record.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf1\x02\n\x0c\x41nswerRecord\x12\x0c\n\x04name\x18\x01 \x01(\t\x12H\n\x0f\x61nswer_feedback\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2.AnswerFeedbackB\x03\xe0\x41\x02\x12W\n\x16\x61gent_assistant_record\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.AgentAssistantRecordB\x03\xe0\x41\x03H\x00:\xa5\x01\xea\x41\xa1\x01\n&dialogflow.googleapis.com/AnswerRecord\x12\x30projects/{project}/answerRecords/{answer_record}\x12\x45projects/{project}/locations/{location}/answerRecords/{answer_record}B\x08\n\x06record\"\xa2\x01\n\x18ListAnswerRecordsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/AnswerRecord\x12\x15\n\x06\x66ilter\x18\x02 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"v\n\x19ListAnswerRecordsResponse\x12@\n\x0e\x61nswer_records\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecord\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x97\x01\n\x19UpdateAnswerRecordRequest\x12\x44\n\ranswer_record\x18\x01 \x01(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecordB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xd2\x03\n\x0e\x41nswerFeedback\x12V\n\x11\x63orrectness_level\x18\x01 \x01(\x0e\x32;.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel\x12]\n\x1f\x61gent_assistant_detail_feedback\x18\x02 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.AgentAssistantFeedbackH\x00\x12\x0f\n\x07\x63licked\x18\x03 \x01(\x08\x12.\n\nclick_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tdisplayed\x18\x04 \x01(\x08\x12\x30\n\x0c\x64isplay_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"p\n\x10\x43orrectnessLevel\x12!\n\x1d\x43ORRECTNESS_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_CORRECT\x10\x01\x12\x15\n\x11PARTIALLY_CORRECT\x10\x02\x12\x11\n\rFULLY_CORRECT\x10\x03\x42\x11\n\x0f\x64\x65tail_feedback\"\
|
16
|
+
descriptor_data = "\n.google/cloud/dialogflow/v2/answer_record.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a,google/cloud/dialogflow/v2/participant.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xf1\x02\n\x0c\x41nswerRecord\x12\x0c\n\x04name\x18\x01 \x01(\t\x12H\n\x0f\x61nswer_feedback\x18\x02 \x01(\x0b\x32*.google.cloud.dialogflow.v2.AnswerFeedbackB\x03\xe0\x41\x02\x12W\n\x16\x61gent_assistant_record\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.AgentAssistantRecordB\x03\xe0\x41\x03H\x00:\xa5\x01\xea\x41\xa1\x01\n&dialogflow.googleapis.com/AnswerRecord\x12\x30projects/{project}/answerRecords/{answer_record}\x12\x45projects/{project}/locations/{location}/answerRecords/{answer_record}B\x08\n\x06record\"\xa2\x01\n\x18ListAnswerRecordsRequest\x12>\n\x06parent\x18\x01 \x01(\tB.\xe0\x41\x02\xfa\x41(\x12&dialogflow.googleapis.com/AnswerRecord\x12\x15\n\x06\x66ilter\x18\x02 \x01(\tB\x05\x18\x01\xe0\x41\x01\x12\x16\n\tpage_size\x18\x03 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x04 \x01(\tB\x03\xe0\x41\x01\"v\n\x19ListAnswerRecordsResponse\x12@\n\x0e\x61nswer_records\x18\x01 \x03(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecord\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\x97\x01\n\x19UpdateAnswerRecordRequest\x12\x44\n\ranswer_record\x18\x01 \x01(\x0b\x32(.google.cloud.dialogflow.v2.AnswerRecordB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\xd2\x03\n\x0e\x41nswerFeedback\x12V\n\x11\x63orrectness_level\x18\x01 \x01(\x0e\x32;.google.cloud.dialogflow.v2.AnswerFeedback.CorrectnessLevel\x12]\n\x1f\x61gent_assistant_detail_feedback\x18\x02 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.AgentAssistantFeedbackH\x00\x12\x0f\n\x07\x63licked\x18\x03 \x01(\x08\x12.\n\nclick_time\x18\x05 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x11\n\tdisplayed\x18\x04 \x01(\x08\x12\x30\n\x0c\x64isplay_time\x18\x06 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\"p\n\x10\x43orrectnessLevel\x12!\n\x1d\x43ORRECTNESS_LEVEL_UNSPECIFIED\x10\x00\x12\x0f\n\x0bNOT_CORRECT\x10\x01\x12\x15\n\x11PARTIALLY_CORRECT\x10\x02\x12\x11\n\rFULLY_CORRECT\x10\x03\x42\x11\n\x0f\x64\x65tail_feedback\"\xbf\t\n\x16\x41gentAssistantFeedback\x12\x61\n\x10\x61nswer_relevance\x18\x01 \x01(\x0e\x32\x42.google.cloud.dialogflow.v2.AgentAssistantFeedback.AnswerRelevanceB\x03\xe0\x41\x01\x12i\n\x14\x64ocument_correctness\x18\x02 \x01(\x0e\x32\x46.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentCorrectnessB\x03\xe0\x41\x01\x12g\n\x13\x64ocument_efficiency\x18\x03 \x01(\x0e\x32\x45.google.cloud.dialogflow.v2.AgentAssistantFeedback.DocumentEfficiencyB\x03\xe0\x41\x01\x12m\n\x16summarization_feedback\x18\x04 \x01(\x0b\x32H.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedbackB\x03\xe0\x41\x01\x12r\n\x19knowledge_search_feedback\x18\x05 \x01(\x0b\x32J.google.cloud.dialogflow.v2.AgentAssistantFeedback.KnowledgeSearchFeedbackB\x03\xe0\x41\x01\x1a\xbb\x02\n\x15SummarizationFeedback\x12.\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12/\n\x0bsubmit_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0csummary_text\x18\x03 \x01(\t\x12v\n\rtext_sections\x18\x04 \x03(\x0b\x32Z.google.cloud.dialogflow.v2.AgentAssistantFeedback.SummarizationFeedback.TextSectionsEntryB\x03\xe0\x41\x01\x1a\x33\n\x11TextSectionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x46\n\x17KnowledgeSearchFeedback\x12\x15\n\ranswer_copied\x18\x01 \x01(\x08\x12\x14\n\x0c\x63licked_uris\x18\x02 \x03(\t\"Q\n\x0f\x41nswerRelevance\x12 \n\x1c\x41NSWER_RELEVANCE_UNSPECIFIED\x10\x00\x12\x0e\n\nIRRELEVANT\x10\x01\x12\x0c\n\x08RELEVANT\x10\x02\"W\n\x13\x44ocumentCorrectness\x12$\n DOCUMENT_CORRECTNESS_UNSPECIFIED\x10\x00\x12\r\n\tINCORRECT\x10\x01\x12\x0b\n\x07\x43ORRECT\x10\x02\"Y\n\x12\x44ocumentEfficiency\x12#\n\x1f\x44OCUMENT_EFFICIENCY_UNSPECIFIED\x10\x00\x12\x0f\n\x0bINEFFICIENT\x10\x01\x12\r\n\tEFFICIENT\x10\x02\"\x94\x02\n\x14\x41gentAssistantRecord\x12S\n\x19\x61rticle_suggestion_answer\x18\x05 \x01(\x0b\x32).google.cloud.dialogflow.v2.ArticleAnswerB\x03\xe0\x41\x03H\x00\x12@\n\nfaq_answer\x18\x06 \x01(\x0b\x32%.google.cloud.dialogflow.v2.FaqAnswerB\x03\xe0\x41\x03H\x00\x12[\n\x18\x64ialogflow_assist_answer\x18\x07 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.DialogflowAssistAnswerB\x03\xe0\x41\x03H\x00\x42\x08\n\x06\x61nswer2\xad\x05\n\rAnswerRecords\x12\xed\x01\n\x11ListAnswerRecords\x12\x34.google.cloud.dialogflow.v2.ListAnswerRecordsRequest\x1a\x35.google.cloud.dialogflow.v2.ListAnswerRecordsResponse\"k\xda\x41\x06parent\x82\xd3\xe4\x93\x02\\\x12%/v2/{parent=projects/*}/answerRecordsZ3\x12\x31/v2/{parent=projects/*/locations/*}/answerRecords\x12\xb1\x02\n\x12UpdateAnswerRecord\x12\x35.google.cloud.dialogflow.v2.UpdateAnswerRecordRequest\x1a(.google.cloud.dialogflow.v2.AnswerRecord\"\xb9\x01\xda\x41\x19\x61nswer_record,update_mask\x82\xd3\xe4\x93\x02\x96\x01\x32\x33/v2/{answer_record.name=projects/*/answerRecords/*}:\ranswer_recordZP2?/v2/{answer_record.name=projects/*/locations/*/answerRecords/*}:\ranswer_record\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\x9b\x01\n\x1e\x63om.google.cloud.dialogflow.v2B\x12\x41nswerRecordsProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2b\x06proto3"
|
17
17
|
|
18
18
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
19
|
|
@@ -32,6 +32,9 @@ module Google
|
|
32
32
|
# {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
|
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
|
|
@@ -259,10 +262,11 @@ module Google
|
|
259
262
|
# Customize the options with defaults
|
260
263
|
metadata = @config.rpcs.list_answer_records.metadata.to_h
|
261
264
|
|
262
|
-
# Set x-goog-api-client
|
265
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
263
266
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
264
267
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
265
268
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
269
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
266
270
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
267
271
|
|
268
272
|
header_params = {}
|
@@ -347,10 +351,11 @@ module Google
|
|
347
351
|
# Customize the options with defaults
|
348
352
|
metadata = @config.rpcs.update_answer_record.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
|
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
|
358
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
354
359
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
355
360
|
|
356
361
|
header_params = {}
|
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# {::Google::Cloud::Dialogflow::V2::AnswerRecord AnswerRecords}.
|
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
|
|
@@ -252,12 +255,13 @@ module Google
|
|
252
255
|
# Customize the options with defaults
|
253
256
|
call_metadata = @config.rpcs.list_answer_records.metadata.to_h
|
254
257
|
|
255
|
-
# Set x-goog-api-client
|
258
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
256
259
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
257
260
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
258
261
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION,
|
259
262
|
transports_version_send: [:rest]
|
260
263
|
|
264
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
261
265
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
262
266
|
|
263
267
|
options.apply_defaults timeout: @config.rpcs.list_answer_records.timeout,
|
@@ -333,12 +337,13 @@ module Google
|
|
333
337
|
# Customize the options with defaults
|
334
338
|
call_metadata = @config.rpcs.update_answer_record.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
|
call_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,
|
340
344
|
transports_version_send: [:rest]
|
341
345
|
|
346
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
342
347
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
343
348
|
|
344
349
|
options.apply_defaults timeout: @config.rpcs.update_answer_record.timeout,
|
@@ -9,7 +9,7 @@ require 'google/api/resource_pb'
|
|
9
9
|
require 'google/protobuf/duration_pb'
|
10
10
|
|
11
11
|
|
12
|
-
descriptor_data = "\n-google/cloud/dialogflow/v2/audio_config.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\"9\n\rSpeechContext\x12\x14\n\x07phrases\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x62oost\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\
|
12
|
+
descriptor_data = "\n-google/cloud/dialogflow/v2/audio_config.proto\x12\x1agoogle.cloud.dialogflow.v2\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\"9\n\rSpeechContext\x12\x14\n\x07phrases\x18\x01 \x03(\tB\x03\xe0\x41\x01\x12\x12\n\x05\x62oost\x18\x02 \x01(\x02\x42\x03\xe0\x41\x01\"\x92\x01\n\x0eSpeechWordInfo\x12\x0c\n\x04word\x18\x03 \x01(\t\x12/\n\x0cstart_offset\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12-\n\nend_offset\x18\x02 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x12\n\nconfidence\x18\x04 \x01(\x02\"\xfb\x03\n\x10InputAudioConfig\x12\x46\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32).google.cloud.dialogflow.v2.AudioEncodingB\x03\xe0\x41\x02\x12\x1e\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x42\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12\x18\n\x10\x65nable_word_info\x18\r \x01(\x08\x12\x18\n\x0cphrase_hints\x18\x04 \x03(\tB\x02\x18\x01\x12\x42\n\x0fspeech_contexts\x18\x0b \x03(\x0b\x32).google.cloud.dialogflow.v2.SpeechContext\x12\r\n\x05model\x18\x07 \x01(\t\x12\x45\n\rmodel_variant\x18\n \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\x18\n\x10single_utterance\x18\x08 \x01(\x08\x12*\n\"disable_no_speech_recognized_event\x18\x0e \x01(\x08\x12$\n\x1c\x65nable_automatic_punctuation\x18\x11 \x01(\x08\x12)\n!opt_out_conformer_model_migration\x18\x1a \x01(\x08\"p\n\x14VoiceSelectionParams\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x01\x12\x45\n\x0bssml_gender\x18\x02 \x01(\x0e\x32+.google.cloud.dialogflow.v2.SsmlVoiceGenderB\x03\xe0\x41\x01\"\xcc\x01\n\x16SynthesizeSpeechConfig\x12\x1a\n\rspeaking_rate\x18\x01 \x01(\x01\x42\x03\xe0\x41\x01\x12\x12\n\x05pitch\x18\x02 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1b\n\x0evolume_gain_db\x18\x03 \x01(\x01\x42\x03\xe0\x41\x01\x12\x1f\n\x12\x65\x66\x66\x65\x63ts_profile_id\x18\x05 \x03(\tB\x03\xe0\x41\x01\x12\x44\n\x05voice\x18\x04 \x01(\x0b\x32\x30.google.cloud.dialogflow.v2.VoiceSelectionParamsB\x03\xe0\x41\x01\"\xd2\x01\n\x11OutputAudioConfig\x12L\n\x0e\x61udio_encoding\x18\x01 \x01(\x0e\x32/.google.cloud.dialogflow.v2.OutputAudioEncodingB\x03\xe0\x41\x02\x12\x19\n\x11sample_rate_hertz\x18\x02 \x01(\x05\x12T\n\x18synthesize_speech_config\x18\x03 \x01(\x0b\x32\x32.google.cloud.dialogflow.v2.SynthesizeSpeechConfig\"U\n\x13TelephonyDtmfEvents\x12>\n\x0b\x64tmf_events\x18\x01 \x03(\x0e\x32).google.cloud.dialogflow.v2.TelephonyDtmf\"\x98\x01\n\x12SpeechToTextConfig\x12L\n\x14speech_model_variant\x18\x01 \x01(\x0e\x32..google.cloud.dialogflow.v2.SpeechModelVariant\x12\r\n\x05model\x18\x02 \x01(\t\x12%\n\x1duse_timeout_based_endpointing\x18\x0b \x01(\x08*\x94\x02\n\rTelephonyDtmf\x12\x1e\n\x1aTELEPHONY_DTMF_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x44TMF_ONE\x10\x01\x12\x0c\n\x08\x44TMF_TWO\x10\x02\x12\x0e\n\nDTMF_THREE\x10\x03\x12\r\n\tDTMF_FOUR\x10\x04\x12\r\n\tDTMF_FIVE\x10\x05\x12\x0c\n\x08\x44TMF_SIX\x10\x06\x12\x0e\n\nDTMF_SEVEN\x10\x07\x12\x0e\n\nDTMF_EIGHT\x10\x08\x12\r\n\tDTMF_NINE\x10\t\x12\r\n\tDTMF_ZERO\x10\n\x12\n\n\x06\x44TMF_A\x10\x0b\x12\n\n\x06\x44TMF_B\x10\x0c\x12\n\n\x06\x44TMF_C\x10\r\x12\n\n\x06\x44TMF_D\x10\x0e\x12\r\n\tDTMF_STAR\x10\x0f\x12\x0e\n\nDTMF_POUND\x10\x10*\xfb\x01\n\rAudioEncoding\x12\x1e\n\x1a\x41UDIO_ENCODING_UNSPECIFIED\x10\x00\x12\x1c\n\x18\x41UDIO_ENCODING_LINEAR_16\x10\x01\x12\x17\n\x13\x41UDIO_ENCODING_FLAC\x10\x02\x12\x18\n\x14\x41UDIO_ENCODING_MULAW\x10\x03\x12\x16\n\x12\x41UDIO_ENCODING_AMR\x10\x04\x12\x19\n\x15\x41UDIO_ENCODING_AMR_WB\x10\x05\x12\x1b\n\x17\x41UDIO_ENCODING_OGG_OPUS\x10\x06\x12)\n%AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE\x10\x07*v\n\x12SpeechModelVariant\x12$\n SPEECH_MODEL_VARIANT_UNSPECIFIED\x10\x00\x12\x16\n\x12USE_BEST_AVAILABLE\x10\x01\x12\x10\n\x0cUSE_STANDARD\x10\x02\x12\x10\n\x0cUSE_ENHANCED\x10\x03*\x8d\x01\n\x0fSsmlVoiceGender\x12!\n\x1dSSML_VOICE_GENDER_UNSPECIFIED\x10\x00\x12\x1a\n\x16SSML_VOICE_GENDER_MALE\x10\x01\x12\x1c\n\x18SSML_VOICE_GENDER_FEMALE\x10\x02\x12\x1d\n\x19SSML_VOICE_GENDER_NEUTRAL\x10\x03*\xec\x01\n\x13OutputAudioEncoding\x12%\n!OUTPUT_AUDIO_ENCODING_UNSPECIFIED\x10\x00\x12#\n\x1fOUTPUT_AUDIO_ENCODING_LINEAR_16\x10\x01\x12\x1d\n\x19OUTPUT_AUDIO_ENCODING_MP3\x10\x02\x12%\n!OUTPUT_AUDIO_ENCODING_MP3_64_KBPS\x10\x04\x12\"\n\x1eOUTPUT_AUDIO_ENCODING_OGG_OPUS\x10\x03\x12\x1f\n\x1bOUTPUT_AUDIO_ENCODING_MULAW\x10\x05\x42\xd6\x02\n\x1e\x63om.google.cloud.dialogflow.v2B\x10\x41udioConfigProtoP\x01Z>cloud.google.com/go/dialogflow/apiv2/dialogflowpb;dialogflowpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1aGoogle.Cloud.Dialogflow.V2\xea\x41U\n\x1b\x61utoml.googleapis.com/Model\x12\x36projects/{project}/locations/{location}/models/{model}\xea\x41\x62\n\x1fspeech.googleapis.com/PhraseSet\x12?projects/{project}/locations/{location}/phraseSets/{phrase_set}b\x06proto3"
|
13
13
|
|
14
14
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
15
15
|
|