google-cloud-dialogflow-v2 0.10.0 → 0.11.2
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/AUTHENTICATION.md +8 -8
- data/README.md +2 -2
- data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +39 -5
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +96 -54
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +34 -25
- data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +37 -43
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +49 -47
- data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +46 -46
- data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +46 -46
- data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +27 -10
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +75 -56
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +34 -25
- data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +45 -1
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +104 -51
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +34 -25
- data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +7 -7
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +69 -56
- data/lib/google/cloud/dialogflow/v2/fulfillment_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +37 -43
- data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +16 -1
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +67 -48
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +34 -25
- data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +46 -46
- data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +53 -52
- 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 +46 -46
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +38 -47
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/version_services_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +51 -46
- data/proto_docs/google/api/field_behavior.rb +7 -1
- 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
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [AnswerRecords][google.cloud.dialogflow.v2.AnswerRecord].
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include
|
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::AnswerRecords::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 AnswerRecords clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::AnswerRecords::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]
|
@@ -67,10 +66,7 @@ module Google
|
|
67
66
|
|
68
67
|
default_config.timeout = 60.0
|
69
68
|
default_config.retry_policy = {
|
70
|
-
initial_delay: 0.1,
|
71
|
-
max_delay: 60.0,
|
72
|
-
multiplier: 1.3,
|
73
|
-
retry_codes: [14]
|
69
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
74
70
|
}
|
75
71
|
|
76
72
|
default_config
|
@@ -102,19 +98,15 @@ module Google
|
|
102
98
|
##
|
103
99
|
# Create a new AnswerRecords client object.
|
104
100
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
# To create a new AnswerRecords client with the default
|
108
|
-
# configuration:
|
109
|
-
#
|
110
|
-
# client = ::Google::Cloud::Dialogflow::V2::AnswerRecords::Client.new
|
101
|
+
# @example
|
111
102
|
#
|
112
|
-
#
|
113
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Dialogflow::V2::AnswerRecords::Client.new
|
114
105
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::Dialogflow::V2::AnswerRecords::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
118
110
|
#
|
119
111
|
# @yield [config] Configure the AnswerRecords client.
|
120
112
|
# @yieldparam config [Client::Configuration]
|
@@ -134,14 +126,13 @@ module Google
|
|
134
126
|
|
135
127
|
# Create credentials
|
136
128
|
credentials = @config.credentials
|
137
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
138
130
|
# but only if the default endpoint does not have a region prefix.
|
139
|
-
enable_self_signed_jwt = @config.
|
140
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
141
132
|
!@config.endpoint.split(".").first.include?("-")
|
142
133
|
credentials ||= Credentials.default scope: @config.scope,
|
143
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
144
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
135
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
145
136
|
credentials = Credentials.new credentials, scope: @config.scope
|
146
137
|
end
|
147
138
|
@quota_project_id = @config.quota_project
|
@@ -232,7 +223,9 @@ module Google
|
|
232
223
|
options.apply_defaults timeout: @config.rpcs.list_answer_records.timeout,
|
233
224
|
metadata: metadata,
|
234
225
|
retry_policy: @config.rpcs.list_answer_records.retry_policy
|
235
|
-
|
226
|
+
|
227
|
+
options.apply_defaults timeout: @config.timeout,
|
228
|
+
metadata: @config.metadata,
|
236
229
|
retry_policy: @config.retry_policy
|
237
230
|
|
238
231
|
@answer_records_stub.call_rpc :list_answer_records, request, options: options do |response, operation|
|
@@ -301,7 +294,9 @@ module Google
|
|
301
294
|
options.apply_defaults timeout: @config.rpcs.update_answer_record.timeout,
|
302
295
|
metadata: metadata,
|
303
296
|
retry_policy: @config.rpcs.update_answer_record.retry_policy
|
304
|
-
|
297
|
+
|
298
|
+
options.apply_defaults timeout: @config.timeout,
|
299
|
+
metadata: @config.metadata,
|
305
300
|
retry_policy: @config.retry_policy
|
306
301
|
|
307
302
|
@answer_records_stub.call_rpc :update_answer_record, request, options: options do |response, operation|
|
@@ -325,22 +320,21 @@ module Google
|
|
325
320
|
# Configuration can be applied globally to all clients, or to a single client
|
326
321
|
# on construction.
|
327
322
|
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
#
|
331
|
-
# to 20 seconds,
|
332
|
-
#
|
333
|
-
#
|
334
|
-
#
|
335
|
-
#
|
336
|
-
#
|
337
|
-
#
|
338
|
-
#
|
339
|
-
#
|
340
|
-
#
|
341
|
-
#
|
342
|
-
#
|
343
|
-
# end
|
323
|
+
# @example
|
324
|
+
#
|
325
|
+
# # Modify the global config, setting the timeout for
|
326
|
+
# # list_answer_records to 20 seconds,
|
327
|
+
# # and all remaining timeouts to 10 seconds.
|
328
|
+
# ::Google::Cloud::Dialogflow::V2::AnswerRecords::Client.configure do |config|
|
329
|
+
# config.timeout = 10.0
|
330
|
+
# config.rpcs.list_answer_records.timeout = 20.0
|
331
|
+
# end
|
332
|
+
#
|
333
|
+
# # Apply the above configuration only to a new client.
|
334
|
+
# client = ::Google::Cloud::Dialogflow::V2::AnswerRecords::Client.new do |config|
|
335
|
+
# config.timeout = 10.0
|
336
|
+
# config.rpcs.list_answer_records.timeout = 20.0
|
337
|
+
# end
|
344
338
|
#
|
345
339
|
# @!attribute [rw] endpoint
|
346
340
|
# The hostname or hostname:port of the service endpoint.
|
@@ -6,6 +6,7 @@ require 'google/protobuf'
|
|
6
6
|
require 'google/api/field_behavior_pb'
|
7
7
|
require 'google/api/resource_pb'
|
8
8
|
require 'google/protobuf/duration_pb'
|
9
|
+
require 'google/protobuf/timestamp_pb'
|
9
10
|
require 'google/api/annotations_pb'
|
10
11
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
11
12
|
add_file("google/cloud/dialogflow/v2/audio_config.proto", :syntax => :proto3) do
|
@@ -41,13 +41,12 @@ module Google
|
|
41
41
|
# See {::Google::Cloud::Dialogflow::V2::Contexts::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 Contexts clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::Contexts::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]
|
@@ -67,10 +66,7 @@ module Google
|
|
67
66
|
|
68
67
|
default_config.timeout = 60.0
|
69
68
|
default_config.retry_policy = {
|
70
|
-
initial_delay: 0.1,
|
71
|
-
max_delay: 60.0,
|
72
|
-
multiplier: 1.3,
|
73
|
-
retry_codes: [14]
|
69
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
74
70
|
}
|
75
71
|
|
76
72
|
default_config
|
@@ -102,19 +98,15 @@ module Google
|
|
102
98
|
##
|
103
99
|
# Create a new Contexts client object.
|
104
100
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
# To create a new Contexts client with the default
|
108
|
-
# configuration:
|
101
|
+
# @example
|
109
102
|
#
|
110
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Dialogflow::V2::Contexts::Client.new
|
111
105
|
#
|
112
|
-
#
|
113
|
-
#
|
114
|
-
#
|
115
|
-
#
|
116
|
-
# config.timeout = 10.0
|
117
|
-
# end
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::Dialogflow::V2::Contexts::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
118
110
|
#
|
119
111
|
# @yield [config] Configure the Contexts client.
|
120
112
|
# @yieldparam config [Client::Configuration]
|
@@ -134,14 +126,13 @@ module Google
|
|
134
126
|
|
135
127
|
# Create credentials
|
136
128
|
credentials = @config.credentials
|
137
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
138
130
|
# but only if the default endpoint does not have a region prefix.
|
139
|
-
enable_self_signed_jwt = @config.
|
140
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
141
132
|
!@config.endpoint.split(".").first.include?("-")
|
142
133
|
credentials ||= Credentials.default scope: @config.scope,
|
143
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
144
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
135
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
145
136
|
credentials = Credentials.new credentials, scope: @config.scope
|
146
137
|
end
|
147
138
|
@quota_project_id = @config.quota_project
|
@@ -223,7 +214,9 @@ module Google
|
|
223
214
|
options.apply_defaults timeout: @config.rpcs.list_contexts.timeout,
|
224
215
|
metadata: metadata,
|
225
216
|
retry_policy: @config.rpcs.list_contexts.retry_policy
|
226
|
-
|
217
|
+
|
218
|
+
options.apply_defaults timeout: @config.timeout,
|
219
|
+
metadata: @config.metadata,
|
227
220
|
retry_policy: @config.retry_policy
|
228
221
|
|
229
222
|
@contexts_stub.call_rpc :list_contexts, request, options: options do |response, operation|
|
@@ -295,7 +288,9 @@ module Google
|
|
295
288
|
options.apply_defaults timeout: @config.rpcs.get_context.timeout,
|
296
289
|
metadata: metadata,
|
297
290
|
retry_policy: @config.rpcs.get_context.retry_policy
|
298
|
-
|
291
|
+
|
292
|
+
options.apply_defaults timeout: @config.timeout,
|
293
|
+
metadata: @config.metadata,
|
299
294
|
retry_policy: @config.retry_policy
|
300
295
|
|
301
296
|
@contexts_stub.call_rpc :get_context, request, options: options do |response, operation|
|
@@ -370,7 +365,9 @@ module Google
|
|
370
365
|
options.apply_defaults timeout: @config.rpcs.create_context.timeout,
|
371
366
|
metadata: metadata,
|
372
367
|
retry_policy: @config.rpcs.create_context.retry_policy
|
373
|
-
|
368
|
+
|
369
|
+
options.apply_defaults timeout: @config.timeout,
|
370
|
+
metadata: @config.metadata,
|
374
371
|
retry_policy: @config.retry_policy
|
375
372
|
|
376
373
|
@contexts_stub.call_rpc :create_context, request, options: options do |response, operation|
|
@@ -438,7 +435,9 @@ module Google
|
|
438
435
|
options.apply_defaults timeout: @config.rpcs.update_context.timeout,
|
439
436
|
metadata: metadata,
|
440
437
|
retry_policy: @config.rpcs.update_context.retry_policy
|
441
|
-
|
438
|
+
|
439
|
+
options.apply_defaults timeout: @config.timeout,
|
440
|
+
metadata: @config.metadata,
|
442
441
|
retry_policy: @config.retry_policy
|
443
442
|
|
444
443
|
@contexts_stub.call_rpc :update_context, request, options: options do |response, operation|
|
@@ -509,7 +508,9 @@ module Google
|
|
509
508
|
options.apply_defaults timeout: @config.rpcs.delete_context.timeout,
|
510
509
|
metadata: metadata,
|
511
510
|
retry_policy: @config.rpcs.delete_context.retry_policy
|
512
|
-
|
511
|
+
|
512
|
+
options.apply_defaults timeout: @config.timeout,
|
513
|
+
metadata: @config.metadata,
|
513
514
|
retry_policy: @config.retry_policy
|
514
515
|
|
515
516
|
@contexts_stub.call_rpc :delete_context, request, options: options do |response, operation|
|
@@ -580,7 +581,9 @@ module Google
|
|
580
581
|
options.apply_defaults timeout: @config.rpcs.delete_all_contexts.timeout,
|
581
582
|
metadata: metadata,
|
582
583
|
retry_policy: @config.rpcs.delete_all_contexts.retry_policy
|
583
|
-
|
584
|
+
|
585
|
+
options.apply_defaults timeout: @config.timeout,
|
586
|
+
metadata: @config.metadata,
|
584
587
|
retry_policy: @config.retry_policy
|
585
588
|
|
586
589
|
@contexts_stub.call_rpc :delete_all_contexts, request, options: options do |response, operation|
|
@@ -604,22 +607,21 @@ module Google
|
|
604
607
|
# Configuration can be applied globally to all clients, or to a single client
|
605
608
|
# on construction.
|
606
609
|
#
|
607
|
-
#
|
608
|
-
#
|
609
|
-
#
|
610
|
-
# to 20 seconds,
|
611
|
-
#
|
612
|
-
#
|
613
|
-
#
|
614
|
-
#
|
615
|
-
#
|
616
|
-
#
|
617
|
-
#
|
618
|
-
#
|
619
|
-
#
|
620
|
-
#
|
621
|
-
#
|
622
|
-
# end
|
610
|
+
# @example
|
611
|
+
#
|
612
|
+
# # Modify the global config, setting the timeout for
|
613
|
+
# # list_contexts to 20 seconds,
|
614
|
+
# # and all remaining timeouts to 10 seconds.
|
615
|
+
# ::Google::Cloud::Dialogflow::V2::Contexts::Client.configure do |config|
|
616
|
+
# config.timeout = 10.0
|
617
|
+
# config.rpcs.list_contexts.timeout = 20.0
|
618
|
+
# end
|
619
|
+
#
|
620
|
+
# # Apply the above configuration only to a new client.
|
621
|
+
# client = ::Google::Cloud::Dialogflow::V2::Contexts::Client.new do |config|
|
622
|
+
# config.timeout = 10.0
|
623
|
+
# config.rpcs.list_contexts.timeout = 20.0
|
624
|
+
# end
|
623
625
|
#
|
624
626
|
# @!attribute [rw] endpoint
|
625
627
|
# The hostname or hostname:port of the service endpoint.
|
@@ -27,7 +27,7 @@ module Google
|
|
27
27
|
# Service for managing [ConversationProfiles][google.cloud.dialogflow.v2.ConversationProfile].
|
28
28
|
class Service
|
29
29
|
|
30
|
-
include
|
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::ConversationProfiles::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 ConversationProfiles clients
|
47
|
+
# ::Google::Cloud::Dialogflow::V2::ConversationProfiles::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]
|
@@ -67,10 +66,7 @@ module Google
|
|
67
66
|
|
68
67
|
default_config.timeout = 60.0
|
69
68
|
default_config.retry_policy = {
|
70
|
-
initial_delay: 0.1,
|
71
|
-
max_delay: 60.0,
|
72
|
-
multiplier: 1.3,
|
73
|
-
retry_codes: [14]
|
69
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
74
70
|
}
|
75
71
|
|
76
72
|
default_config
|
@@ -102,19 +98,15 @@ module Google
|
|
102
98
|
##
|
103
99
|
# Create a new ConversationProfiles client object.
|
104
100
|
#
|
105
|
-
#
|
106
|
-
#
|
107
|
-
# To create a new ConversationProfiles client with the default
|
108
|
-
# configuration:
|
109
|
-
#
|
110
|
-
# client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new
|
101
|
+
# @example
|
111
102
|
#
|
112
|
-
#
|
113
|
-
#
|
103
|
+
# # Create a client using the default configuration
|
104
|
+
# client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new
|
114
105
|
#
|
115
|
-
#
|
116
|
-
#
|
117
|
-
#
|
106
|
+
# # Create a client using a custom configuration
|
107
|
+
# client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new do |config|
|
108
|
+
# config.timeout = 10.0
|
109
|
+
# end
|
118
110
|
#
|
119
111
|
# @yield [config] Configure the ConversationProfiles client.
|
120
112
|
# @yieldparam config [Client::Configuration]
|
@@ -134,14 +126,13 @@ module Google
|
|
134
126
|
|
135
127
|
# Create credentials
|
136
128
|
credentials = @config.credentials
|
137
|
-
# Use self-signed JWT if the
|
129
|
+
# Use self-signed JWT if the endpoint is unchanged from default,
|
138
130
|
# but only if the default endpoint does not have a region prefix.
|
139
|
-
enable_self_signed_jwt = @config.
|
140
|
-
@config.endpoint == Client.configure.endpoint &&
|
131
|
+
enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
|
141
132
|
!@config.endpoint.split(".").first.include?("-")
|
142
133
|
credentials ||= Credentials.default scope: @config.scope,
|
143
134
|
enable_self_signed_jwt: enable_self_signed_jwt
|
144
|
-
if credentials.is_a?(String) || credentials.is_a?(Hash)
|
135
|
+
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
145
136
|
credentials = Credentials.new credentials, scope: @config.scope
|
146
137
|
end
|
147
138
|
@quota_project_id = @config.quota_project
|
@@ -219,7 +210,9 @@ module Google
|
|
219
210
|
options.apply_defaults timeout: @config.rpcs.list_conversation_profiles.timeout,
|
220
211
|
metadata: metadata,
|
221
212
|
retry_policy: @config.rpcs.list_conversation_profiles.retry_policy
|
222
|
-
|
213
|
+
|
214
|
+
options.apply_defaults timeout: @config.timeout,
|
215
|
+
metadata: @config.metadata,
|
223
216
|
retry_policy: @config.retry_policy
|
224
217
|
|
225
218
|
@conversation_profiles_stub.call_rpc :list_conversation_profiles, request, options: options do |response, operation|
|
@@ -288,7 +281,9 @@ module Google
|
|
288
281
|
options.apply_defaults timeout: @config.rpcs.get_conversation_profile.timeout,
|
289
282
|
metadata: metadata,
|
290
283
|
retry_policy: @config.rpcs.get_conversation_profile.retry_policy
|
291
|
-
|
284
|
+
|
285
|
+
options.apply_defaults timeout: @config.timeout,
|
286
|
+
metadata: @config.metadata,
|
292
287
|
retry_policy: @config.retry_policy
|
293
288
|
|
294
289
|
@conversation_profiles_stub.call_rpc :get_conversation_profile, request, options: options do |response, operation|
|
@@ -361,7 +356,9 @@ module Google
|
|
361
356
|
options.apply_defaults timeout: @config.rpcs.create_conversation_profile.timeout,
|
362
357
|
metadata: metadata,
|
363
358
|
retry_policy: @config.rpcs.create_conversation_profile.retry_policy
|
364
|
-
|
359
|
+
|
360
|
+
options.apply_defaults timeout: @config.timeout,
|
361
|
+
metadata: @config.metadata,
|
365
362
|
retry_policy: @config.retry_policy
|
366
363
|
|
367
364
|
@conversation_profiles_stub.call_rpc :create_conversation_profile, request, options: options do |response, operation|
|
@@ -433,7 +430,9 @@ module Google
|
|
433
430
|
options.apply_defaults timeout: @config.rpcs.update_conversation_profile.timeout,
|
434
431
|
metadata: metadata,
|
435
432
|
retry_policy: @config.rpcs.update_conversation_profile.retry_policy
|
436
|
-
|
433
|
+
|
434
|
+
options.apply_defaults timeout: @config.timeout,
|
435
|
+
metadata: @config.metadata,
|
437
436
|
retry_policy: @config.retry_policy
|
438
437
|
|
439
438
|
@conversation_profiles_stub.call_rpc :update_conversation_profile, request, options: options do |response, operation|
|
@@ -501,7 +500,9 @@ module Google
|
|
501
500
|
options.apply_defaults timeout: @config.rpcs.delete_conversation_profile.timeout,
|
502
501
|
metadata: metadata,
|
503
502
|
retry_policy: @config.rpcs.delete_conversation_profile.retry_policy
|
504
|
-
|
503
|
+
|
504
|
+
options.apply_defaults timeout: @config.timeout,
|
505
|
+
metadata: @config.metadata,
|
505
506
|
retry_policy: @config.retry_policy
|
506
507
|
|
507
508
|
@conversation_profiles_stub.call_rpc :delete_conversation_profile, request, options: options do |response, operation|
|
@@ -525,22 +526,21 @@ module Google
|
|
525
526
|
# Configuration can be applied globally to all clients, or to a single client
|
526
527
|
# on construction.
|
527
528
|
#
|
528
|
-
#
|
529
|
-
#
|
530
|
-
#
|
531
|
-
# to 20 seconds,
|
532
|
-
#
|
533
|
-
#
|
534
|
-
#
|
535
|
-
#
|
536
|
-
#
|
537
|
-
#
|
538
|
-
#
|
539
|
-
#
|
540
|
-
#
|
541
|
-
#
|
542
|
-
#
|
543
|
-
# end
|
529
|
+
# @example
|
530
|
+
#
|
531
|
+
# # Modify the global config, setting the timeout for
|
532
|
+
# # list_conversation_profiles to 20 seconds,
|
533
|
+
# # and all remaining timeouts to 10 seconds.
|
534
|
+
# ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.configure do |config|
|
535
|
+
# config.timeout = 10.0
|
536
|
+
# config.rpcs.list_conversation_profiles.timeout = 20.0
|
537
|
+
# end
|
538
|
+
#
|
539
|
+
# # Apply the above configuration only to a new client.
|
540
|
+
# client = ::Google::Cloud::Dialogflow::V2::ConversationProfiles::Client.new do |config|
|
541
|
+
# config.timeout = 10.0
|
542
|
+
# config.rpcs.list_conversation_profiles.timeout = 20.0
|
543
|
+
# end
|
544
544
|
#
|
545
545
|
# @!attribute [rw] endpoint
|
546
546
|
# The hostname or hostname:port of the service endpoint.
|