google-cloud-dialogflow-v2 0.10.1 → 0.11.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/dialogflow/v2/agent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +39 -5
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +94 -49
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +35 -38
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/context_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +47 -42
- data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +27 -10
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +73 -51
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +45 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +102 -46
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/environment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +67 -51
- data/lib/google/cloud/dialogflow/v2/fulfillment_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +35 -38
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +16 -1
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +65 -43
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +30 -21
- data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +50 -43
- data/lib/google/cloud/dialogflow/v2/session_entity_type_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +44 -41
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +3 -2
- data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +15 -1
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +49 -38
- data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +49 -41
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +2 -2
- data/proto_docs/google/cloud/dialogflow/v2/environment.rb +22 -4
- data/proto_docs/google/cloud/dialogflow/v2/intent.rb +4 -3
- data/proto_docs/google/cloud/dialogflow/v2/session.rb +3 -0
- data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/v2/version.rb +6 -0
- metadata +8 -7
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Dialogflow::V2::Intents::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all Intents clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::Intents::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -99,19 +98,15 @@ module Google
|
|
99
98
|
##
|
100
99
|
# Create a new Intents client object.
|
101
100
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new Intents client with the default
|
105
|
-
# configuration:
|
101
|
+
# @example
|
106
102
|
#
|
107
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new
|
108
105
|
#
|
109
|
-
#
|
110
|
-
#
|
111
|
-
#
|
112
|
-
#
|
113
|
-
# config.timeout = 10.0
|
114
|
-
# end
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
115
110
|
#
|
116
111
|
# @yield [config] Configure the Intents client.
|
117
112
|
# @yieldparam config [Client::Configuration]
|
@@ -131,10 +126,9 @@ module Google
|
|
131
126
|
|
132
127
|
# Create credentials
|
133
128
|
credentials = @config.credentials
|
134
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
135
130
|
# but only if the default endpoint does not have a region prefix.
|
136
|
-
enable_self_signed_jwt = @config.
|
137
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
138
132
|
!@config.endpoint.split(".").first.include?("-")
|
139
133
|
credentials ||= Credentials.default scope: @config.scope,
|
140
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -244,7 +238,9 @@ module Google
|
|
244
238
|
options.apply_defaults timeout: @config.rpcs.list_intents.timeout,
|
245
239
|
metadata: metadata,
|
246
240
|
retry_policy: @config.rpcs.list_intents.retry_policy
|
247
|
-
|
241
|
+
|
242
|
+
options.apply_defaults timeout: @config.timeout,
|
243
|
+
metadata: @config.metadata,
|
248
244
|
retry_policy: @config.retry_policy
|
249
245
|
|
250
246
|
@intents_stub.call_rpc :list_intents, request, options: options do |response, operation|
|
@@ -320,7 +316,9 @@ module Google
|
|
320
316
|
options.apply_defaults timeout: @config.rpcs.get_intent.timeout,
|
321
317
|
metadata: metadata,
|
322
318
|
retry_policy: @config.rpcs.get_intent.retry_policy
|
323
|
-
|
319
|
+
|
320
|
+
options.apply_defaults timeout: @config.timeout,
|
321
|
+
metadata: @config.metadata,
|
324
322
|
retry_policy: @config.retry_policy
|
325
323
|
|
326
324
|
@intents_stub.call_rpc :get_intent, request, options: options do |response, operation|
|
@@ -401,7 +399,9 @@ module Google
|
|
401
399
|
options.apply_defaults timeout: @config.rpcs.create_intent.timeout,
|
402
400
|
metadata: metadata,
|
403
401
|
retry_policy: @config.rpcs.create_intent.retry_policy
|
404
|
-
|
402
|
+
|
403
|
+
options.apply_defaults timeout: @config.timeout,
|
404
|
+
metadata: @config.metadata,
|
405
405
|
retry_policy: @config.retry_policy
|
406
406
|
|
407
407
|
@intents_stub.call_rpc :create_intent, request, options: options do |response, operation|
|
@@ -481,7 +481,9 @@ module Google
|
|
481
481
|
options.apply_defaults timeout: @config.rpcs.update_intent.timeout,
|
482
482
|
metadata: metadata,
|
483
483
|
retry_policy: @config.rpcs.update_intent.retry_policy
|
484
|
-
|
484
|
+
|
485
|
+
options.apply_defaults timeout: @config.timeout,
|
486
|
+
metadata: @config.metadata,
|
485
487
|
retry_policy: @config.retry_policy
|
486
488
|
|
487
489
|
@intents_stub.call_rpc :update_intent, request, options: options do |response, operation|
|
@@ -553,7 +555,9 @@ module Google
|
|
553
555
|
options.apply_defaults timeout: @config.rpcs.delete_intent.timeout,
|
554
556
|
metadata: metadata,
|
555
557
|
retry_policy: @config.rpcs.delete_intent.retry_policy
|
556
|
-
|
558
|
+
|
559
|
+
options.apply_defaults timeout: @config.timeout,
|
560
|
+
metadata: @config.metadata,
|
557
561
|
retry_policy: @config.retry_policy
|
558
562
|
|
559
563
|
@intents_stub.call_rpc :delete_intent, request, options: options do |response, operation|
|
@@ -567,6 +571,13 @@ module Google
|
|
567
571
|
##
|
568
572
|
# Updates/Creates multiple intents in the specified agent.
|
569
573
|
#
|
574
|
+
# This method is a [long-running
|
575
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
576
|
+
# The returned `Operation` type has the following method-specific fields:
|
577
|
+
#
|
578
|
+
# - `metadata`: An empty [Struct
|
579
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
580
|
+
# - `response`: {::Google::Cloud::Dialogflow::V2::BatchUpdateIntentsResponse BatchUpdateIntentsResponse}
|
570
581
|
#
|
571
582
|
# Note: You should always train an agent prior to sending it queries. See the
|
572
583
|
# [training
|
@@ -641,7 +652,9 @@ module Google
|
|
641
652
|
options.apply_defaults timeout: @config.rpcs.batch_update_intents.timeout,
|
642
653
|
metadata: metadata,
|
643
654
|
retry_policy: @config.rpcs.batch_update_intents.retry_policy
|
644
|
-
|
655
|
+
|
656
|
+
options.apply_defaults timeout: @config.timeout,
|
657
|
+
metadata: @config.metadata,
|
645
658
|
retry_policy: @config.retry_policy
|
646
659
|
|
647
660
|
@intents_stub.call_rpc :batch_update_intents, request, options: options do |response, operation|
|
@@ -656,6 +669,14 @@ module Google
|
|
656
669
|
##
|
657
670
|
# Deletes intents in the specified agent.
|
658
671
|
#
|
672
|
+
# This method is a [long-running
|
673
|
+
# operation](https://cloud.google.com/dialogflow/es/docs/how/long-running-operations).
|
674
|
+
# The returned `Operation` type has the following method-specific fields:
|
675
|
+
#
|
676
|
+
# - `metadata`: An empty [Struct
|
677
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
|
678
|
+
# - `response`: An [Empty
|
679
|
+
# message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
|
659
680
|
#
|
660
681
|
# Note: You should always train an agent prior to sending it queries. See the
|
661
682
|
# [training
|
@@ -717,7 +738,9 @@ module Google
|
|
717
738
|
options.apply_defaults timeout: @config.rpcs.batch_delete_intents.timeout,
|
718
739
|
metadata: metadata,
|
719
740
|
retry_policy: @config.rpcs.batch_delete_intents.retry_policy
|
720
|
-
|
741
|
+
|
742
|
+
options.apply_defaults timeout: @config.timeout,
|
743
|
+
metadata: @config.metadata,
|
721
744
|
retry_policy: @config.retry_policy
|
722
745
|
|
723
746
|
@intents_stub.call_rpc :batch_delete_intents, request, options: options do |response, operation|
|
@@ -742,22 +765,21 @@ module Google
|
|
742
765
|
# Configuration can be applied globally to all clients, or to a single client
|
743
766
|
# on construction.
|
744
767
|
#
|
745
|
-
#
|
746
|
-
#
|
747
|
-
#
|
748
|
-
# to 20 seconds,
|
749
|
-
#
|
750
|
-
#
|
751
|
-
#
|
752
|
-
#
|
753
|
-
#
|
754
|
-
#
|
755
|
-
#
|
756
|
-
#
|
757
|
-
#
|
758
|
-
#
|
759
|
-
#
|
760
|
-
# end
|
768
|
+
# @example
|
769
|
+
#
|
770
|
+
# # Modify the global config, setting the timeout for
|
771
|
+
# # list_intents to 20 seconds,
|
772
|
+
# # and all remaining timeouts to 10 seconds.
|
773
|
+
# ::Google::Cloud::Dialogflow::V2::Intents::Client.configure do |config|
|
774
|
+
# config.timeout = 10.0
|
775
|
+
# config.rpcs.list_intents.timeout = 20.0
|
776
|
+
# end
|
777
|
+
#
|
778
|
+
# # Apply the above configuration only to a new client.
|
779
|
+
# client = ::Google::Cloud::Dialogflow::V2::Intents::Client.new do |config|
|
780
|
+
# config.timeout = 10.0
|
781
|
+
# config.rpcs.list_intents.timeout = 20.0
|
782
|
+
# end
|
761
783
|
#
|
762
784
|
# @!attribute [rw] endpoint
|
763
785
|
# The hostname or hostname:port of the service endpoint.
|
@@ -169,7 +169,9 @@ module Google
|
|
169
169
|
options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
|
170
170
|
metadata: metadata,
|
171
171
|
retry_policy: @config.rpcs.list_operations.retry_policy
|
172
|
-
|
172
|
+
|
173
|
+
options.apply_defaults timeout: @config.timeout,
|
174
|
+
metadata: @config.metadata,
|
173
175
|
retry_policy: @config.retry_policy
|
174
176
|
|
175
177
|
@operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
|
@@ -239,7 +241,9 @@ module Google
|
|
239
241
|
options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
|
240
242
|
metadata: metadata,
|
241
243
|
retry_policy: @config.rpcs.get_operation.retry_policy
|
242
|
-
|
244
|
+
|
245
|
+
options.apply_defaults timeout: @config.timeout,
|
246
|
+
metadata: @config.metadata,
|
243
247
|
retry_policy: @config.retry_policy
|
244
248
|
|
245
249
|
@operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
|
@@ -309,7 +313,9 @@ module Google
|
|
309
313
|
options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
|
310
314
|
metadata: metadata,
|
311
315
|
retry_policy: @config.rpcs.delete_operation.retry_policy
|
312
|
-
|
316
|
+
|
317
|
+
options.apply_defaults timeout: @config.timeout,
|
318
|
+
metadata: @config.metadata,
|
313
319
|
retry_policy: @config.retry_policy
|
314
320
|
|
315
321
|
@operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
|
@@ -384,7 +390,9 @@ module Google
|
|
384
390
|
options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
|
385
391
|
metadata: metadata,
|
386
392
|
retry_policy: @config.rpcs.cancel_operation.retry_policy
|
387
|
-
|
393
|
+
|
394
|
+
options.apply_defaults timeout: @config.timeout,
|
395
|
+
metadata: @config.metadata,
|
388
396
|
retry_policy: @config.retry_policy
|
389
397
|
|
390
398
|
@operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
|
@@ -456,7 +464,9 @@ module Google
|
|
456
464
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
457
465
|
metadata: metadata,
|
458
466
|
retry_policy: @config.rpcs.wait_operation.retry_policy
|
459
|
-
|
467
|
+
|
468
|
+
options.apply_defaults timeout: @config.timeout,
|
469
|
+
metadata: @config.metadata,
|
460
470
|
retry_policy: @config.retry_policy
|
461
471
|
|
462
472
|
@operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
|
@@ -481,22 +491,21 @@ module Google
|
|
481
491
|
# Configuration can be applied globally to all clients, or to a single client
|
482
492
|
# on construction.
|
483
493
|
#
|
484
|
-
#
|
485
|
-
#
|
486
|
-
#
|
487
|
-
# to 20 seconds,
|
488
|
-
#
|
489
|
-
#
|
490
|
-
#
|
491
|
-
#
|
492
|
-
#
|
493
|
-
#
|
494
|
-
#
|
495
|
-
#
|
496
|
-
#
|
497
|
-
#
|
498
|
-
#
|
499
|
-
# end
|
494
|
+
# @example
|
495
|
+
#
|
496
|
+
# # Modify the global config, setting the timeout for
|
497
|
+
# # list_operations to 20 seconds,
|
498
|
+
# # and all remaining timeouts to 10 seconds.
|
499
|
+
# ::Google::Longrunning::Operations::Client.configure do |config|
|
500
|
+
# config.timeout = 10.0
|
501
|
+
# config.rpcs.list_operations.timeout = 20.0
|
502
|
+
# end
|
503
|
+
#
|
504
|
+
# # Apply the above configuration only to a new client.
|
505
|
+
# client = ::Google::Longrunning::Operations::Client.new do |config|
|
506
|
+
# config.timeout = 10.0
|
507
|
+
# config.rpcs.list_operations.timeout = 20.0
|
508
|
+
# end
|
500
509
|
#
|
501
510
|
# @!attribute [rw] endpoint
|
502
511
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,14 +1,14 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/knowledge_base.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
9
7
|
require 'google/api/resource_pb'
|
10
8
|
require 'google/protobuf/empty_pb'
|
11
9
|
require 'google/protobuf/field_mask_pb'
|
10
|
+
require 'google/protobuf'
|
11
|
+
|
12
12
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
13
13
|
add_file("google/cloud/dialogflow/v2/knowledge_base.proto", :syntax => :proto3) do
|
14
14
|
add_message "google.cloud.dialogflow.v2.KnowledgeBase" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [KnowledgeBases][google.cloud.dialogflow.v2.KnowledgeBase].
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include GRPC::GenericService
|
30
|
+
include ::GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client::Configuration}
|
42
42
|
# for a description of the configuration fields.
|
43
43
|
#
|
44
|
-
#
|
44
|
+
# @example
|
45
45
|
#
|
46
|
-
#
|
47
|
-
#
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# end
|
46
|
+
# # Modify the configuration for all KnowledgeBases clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.configure do |config|
|
48
|
+
# config.timeout = 10.0
|
49
|
+
# end
|
51
50
|
#
|
52
51
|
# @yield [config] Configure the Client client.
|
53
52
|
# @yieldparam config [Client::Configuration]
|
@@ -99,19 +98,15 @@ module Google
|
|
99
98
|
##
|
100
99
|
# Create a new KnowledgeBases client object.
|
101
100
|
#
|
102
|
-
#
|
103
|
-
#
|
104
|
-
# To create a new KnowledgeBases client with the default
|
105
|
-
# configuration:
|
106
|
-
#
|
107
|
-
# client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new
|
101
|
+
# @example
|
108
102
|
#
|
109
|
-
#
|
110
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new
|
111
105
|
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
115
110
|
#
|
116
111
|
# @yield [config] Configure the KnowledgeBases client.
|
117
112
|
# @yieldparam config [Client::Configuration]
|
@@ -131,10 +126,9 @@ module Google
|
|
131
126
|
|
132
127
|
# Create credentials
|
133
128
|
credentials = @config.credentials
|
134
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
135
130
|
# but only if the default endpoint does not have a region prefix.
|
136
|
-
enable_self_signed_jwt = @config.
|
137
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
138
132
|
!@config.endpoint.split(".").first.include?("-")
|
139
133
|
credentials ||= Credentials.default scope: @config.scope,
|
140
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -216,7 +210,9 @@ module Google
|
|
216
210
|
options.apply_defaults timeout: @config.rpcs.list_knowledge_bases.timeout,
|
217
211
|
metadata: metadata,
|
218
212
|
retry_policy: @config.rpcs.list_knowledge_bases.retry_policy
|
219
|
-
|
213
|
+
|
214
|
+
options.apply_defaults timeout: @config.timeout,
|
215
|
+
metadata: @config.metadata,
|
220
216
|
retry_policy: @config.retry_policy
|
221
217
|
|
222
218
|
@knowledge_bases_stub.call_rpc :list_knowledge_bases, request, options: options do |response, operation|
|
@@ -285,7 +281,9 @@ module Google
|
|
285
281
|
options.apply_defaults timeout: @config.rpcs.get_knowledge_base.timeout,
|
286
282
|
metadata: metadata,
|
287
283
|
retry_policy: @config.rpcs.get_knowledge_base.retry_policy
|
288
|
-
|
284
|
+
|
285
|
+
options.apply_defaults timeout: @config.timeout,
|
286
|
+
metadata: @config.metadata,
|
289
287
|
retry_policy: @config.retry_policy
|
290
288
|
|
291
289
|
@knowledge_bases_stub.call_rpc :get_knowledge_base, request, options: options do |response, operation|
|
@@ -354,7 +352,9 @@ module Google
|
|
354
352
|
options.apply_defaults timeout: @config.rpcs.create_knowledge_base.timeout,
|
355
353
|
metadata: metadata,
|
356
354
|
retry_policy: @config.rpcs.create_knowledge_base.retry_policy
|
357
|
-
|
355
|
+
|
356
|
+
options.apply_defaults timeout: @config.timeout,
|
357
|
+
metadata: @config.metadata,
|
358
358
|
retry_policy: @config.retry_policy
|
359
359
|
|
360
360
|
@knowledge_bases_stub.call_rpc :create_knowledge_base, request, options: options do |response, operation|
|
@@ -425,7 +425,9 @@ module Google
|
|
425
425
|
options.apply_defaults timeout: @config.rpcs.delete_knowledge_base.timeout,
|
426
426
|
metadata: metadata,
|
427
427
|
retry_policy: @config.rpcs.delete_knowledge_base.retry_policy
|
428
|
-
|
428
|
+
|
429
|
+
options.apply_defaults timeout: @config.timeout,
|
430
|
+
metadata: @config.metadata,
|
429
431
|
retry_policy: @config.retry_policy
|
430
432
|
|
431
433
|
@knowledge_bases_stub.call_rpc :delete_knowledge_base, request, options: options do |response, operation|
|
@@ -495,7 +497,9 @@ module Google
|
|
495
497
|
options.apply_defaults timeout: @config.rpcs.update_knowledge_base.timeout,
|
496
498
|
metadata: metadata,
|
497
499
|
retry_policy: @config.rpcs.update_knowledge_base.retry_policy
|
498
|
-
|
500
|
+
|
501
|
+
options.apply_defaults timeout: @config.timeout,
|
502
|
+
metadata: @config.metadata,
|
499
503
|
retry_policy: @config.retry_policy
|
500
504
|
|
501
505
|
@knowledge_bases_stub.call_rpc :update_knowledge_base, request, options: options do |response, operation|
|
@@ -519,22 +523,21 @@ module Google
|
|
519
523
|
# Configuration can be applied globally to all clients, or to a single client
|
520
524
|
# on construction.
|
521
525
|
#
|
522
|
-
#
|
523
|
-
#
|
524
|
-
#
|
525
|
-
# to 20 seconds,
|
526
|
-
#
|
527
|
-
#
|
528
|
-
#
|
529
|
-
#
|
530
|
-
#
|
531
|
-
#
|
532
|
-
#
|
533
|
-
#
|
534
|
-
#
|
535
|
-
#
|
536
|
-
#
|
537
|
-
# end
|
526
|
+
# @example
|
527
|
+
#
|
528
|
+
# # Modify the global config, setting the timeout for
|
529
|
+
# # list_knowledge_bases to 20 seconds,
|
530
|
+
# # and all remaining timeouts to 10 seconds.
|
531
|
+
# ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.configure do |config|
|
532
|
+
# config.timeout = 10.0
|
533
|
+
# config.rpcs.list_knowledge_bases.timeout = 20.0
|
534
|
+
# end
|
535
|
+
#
|
536
|
+
# # Apply the above configuration only to a new client.
|
537
|
+
# client = ::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client.new do |config|
|
538
|
+
# config.timeout = 10.0
|
539
|
+
# config.rpcs.list_knowledge_bases.timeout = 20.0
|
540
|
+
# end
|
538
541
|
#
|
539
542
|
# @!attribute [rw] endpoint
|
540
543
|
# The hostname or hostname:port of the service endpoint.
|
@@ -1,8 +1,6 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/participant.proto
|
3
3
|
|
4
|
-
require 'google/protobuf'
|
5
|
-
|
6
4
|
require 'google/api/annotations_pb'
|
7
5
|
require 'google/api/client_pb'
|
8
6
|
require 'google/api/field_behavior_pb'
|
@@ -15,6 +13,8 @@ require 'google/protobuf/field_mask_pb'
|
|
15
13
|
require 'google/protobuf/struct_pb'
|
16
14
|
require 'google/protobuf/timestamp_pb'
|
17
15
|
require 'google/rpc/status_pb'
|
16
|
+
require 'google/protobuf'
|
17
|
+
|
18
18
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
19
19
|
add_file("google/cloud/dialogflow/v2/participant.proto", :syntax => :proto3) do
|
20
20
|
add_message "google.cloud.dialogflow.v2.Participant" do
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [Participants][google.cloud.dialogflow.v2.Participant].
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include GRPC::GenericService
|
30
|
+
include ::GRPC::GenericService
|
31
31
|
|
32
32
|
self.marshal_class_method = :encode
|
33
33
|
self.unmarshal_class_method = :decode
|