google-cloud-dialogflow-v2 0.11.4 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +215 -27
- data/lib/google/cloud/dialogflow/v2/agents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +46 -6
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/contexts/client.rb +126 -18
- data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +2 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +9 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +106 -15
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/v2/conversations/client.rb +112 -15
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +33 -0
- data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +21 -0
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +426 -20
- data/lib/google/cloud/dialogflow/v2/documents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +242 -30
- data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/v2/environments/client.rb +132 -18
- data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +40 -6
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +9 -1
- data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +161 -21
- data/lib/google/cloud/dialogflow/v2/intents/operations.rb +115 -12
- data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +134 -16
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +31 -0
- data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +268 -28
- data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +106 -15
- data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/sessions/client.rb +44 -3
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/versions/client.rb +106 -15
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/v2.rb +1 -1
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +4 -1
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +41 -8
- data/proto_docs/google/cloud/dialogflow/v2/document.rb +118 -0
- data/proto_docs/google/cloud/dialogflow/v2/gcs.rb +50 -0
- data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +28 -0
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +157 -6
- metadata +4 -3
@@ -143,6 +143,27 @@ module Google
|
|
143
143
|
#
|
144
144
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
145
145
|
#
|
146
|
+
# @example Basic example
|
147
|
+
# require "google/longrunning"
|
148
|
+
#
|
149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
150
|
+
# client = Google::Longrunning::Operations::Client.new
|
151
|
+
#
|
152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
153
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
154
|
+
#
|
155
|
+
# # Call the list_operations method.
|
156
|
+
# result = client.list_operations request
|
157
|
+
#
|
158
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
159
|
+
# # iterate over all elements by calling #each, and the enumerable
|
160
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
161
|
+
# # methods are also available for managing paging directly.
|
162
|
+
# result.each do |response|
|
163
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
164
|
+
# p response
|
165
|
+
# end
|
166
|
+
#
|
146
167
|
def list_operations request, options = nil
|
147
168
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
148
169
|
|
@@ -160,9 +181,11 @@ module Google
|
|
160
181
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
161
182
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
162
183
|
|
163
|
-
header_params = {
|
164
|
-
|
165
|
-
|
184
|
+
header_params = {}
|
185
|
+
if request.name
|
186
|
+
header_params["name"] = request.name
|
187
|
+
end
|
188
|
+
|
166
189
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
167
190
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
168
191
|
|
@@ -215,6 +238,28 @@ module Google
|
|
215
238
|
#
|
216
239
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
217
240
|
#
|
241
|
+
# @example Basic example
|
242
|
+
# require "google/longrunning"
|
243
|
+
#
|
244
|
+
# # Create a client object. The client can be reused for multiple calls.
|
245
|
+
# client = Google::Longrunning::Operations::Client.new
|
246
|
+
#
|
247
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
248
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
249
|
+
#
|
250
|
+
# # Call the get_operation method.
|
251
|
+
# result = client.get_operation request
|
252
|
+
#
|
253
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
254
|
+
# # object to check the status of an operation, cancel it, or wait
|
255
|
+
# # for results. Here is how to block until completion:
|
256
|
+
# result.wait_until_done! timeout: 60
|
257
|
+
# if result.response?
|
258
|
+
# p result.response
|
259
|
+
# else
|
260
|
+
# puts "Error!"
|
261
|
+
# end
|
262
|
+
#
|
218
263
|
def get_operation request, options = nil
|
219
264
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
220
265
|
|
@@ -232,9 +277,11 @@ module Google
|
|
232
277
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
233
278
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
234
279
|
|
235
|
-
header_params = {
|
236
|
-
|
237
|
-
|
280
|
+
header_params = {}
|
281
|
+
if request.name
|
282
|
+
header_params["name"] = request.name
|
283
|
+
end
|
284
|
+
|
238
285
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
239
286
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
240
287
|
|
@@ -287,6 +334,21 @@ module Google
|
|
287
334
|
#
|
288
335
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
289
336
|
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/longrunning"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Longrunning::Operations::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
345
|
+
#
|
346
|
+
# # Call the delete_operation method.
|
347
|
+
# result = client.delete_operation request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
350
|
+
# p result
|
351
|
+
#
|
290
352
|
def delete_operation request, options = nil
|
291
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
292
354
|
|
@@ -304,9 +366,11 @@ module Google
|
|
304
366
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
305
367
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
306
368
|
|
307
|
-
header_params = {
|
308
|
-
|
309
|
-
|
369
|
+
header_params = {}
|
370
|
+
if request.name
|
371
|
+
header_params["name"] = request.name
|
372
|
+
end
|
373
|
+
|
310
374
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
311
375
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
312
376
|
|
@@ -364,6 +428,21 @@ module Google
|
|
364
428
|
#
|
365
429
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
366
430
|
#
|
431
|
+
# @example Basic example
|
432
|
+
# require "google/longrunning"
|
433
|
+
#
|
434
|
+
# # Create a client object. The client can be reused for multiple calls.
|
435
|
+
# client = Google::Longrunning::Operations::Client.new
|
436
|
+
#
|
437
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
438
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
439
|
+
#
|
440
|
+
# # Call the cancel_operation method.
|
441
|
+
# result = client.cancel_operation request
|
442
|
+
#
|
443
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
444
|
+
# p result
|
445
|
+
#
|
367
446
|
def cancel_operation request, options = nil
|
368
447
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
369
448
|
|
@@ -381,9 +460,11 @@ module Google
|
|
381
460
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
382
461
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
383
462
|
|
384
|
-
header_params = {
|
385
|
-
|
386
|
-
|
463
|
+
header_params = {}
|
464
|
+
if request.name
|
465
|
+
header_params["name"] = request.name
|
466
|
+
end
|
467
|
+
|
387
468
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
388
469
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
389
470
|
|
@@ -444,6 +525,28 @@ module Google
|
|
444
525
|
#
|
445
526
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
446
527
|
#
|
528
|
+
# @example Basic example
|
529
|
+
# require "google/longrunning"
|
530
|
+
#
|
531
|
+
# # Create a client object. The client can be reused for multiple calls.
|
532
|
+
# client = Google::Longrunning::Operations::Client.new
|
533
|
+
#
|
534
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
535
|
+
# request = Google::Longrunning::WaitOperationRequest.new
|
536
|
+
#
|
537
|
+
# # Call the wait_operation method.
|
538
|
+
# result = client.wait_operation request
|
539
|
+
#
|
540
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
541
|
+
# # object to check the status of an operation, cancel it, or wait
|
542
|
+
# # for results. Here is how to block until completion:
|
543
|
+
# result.wait_until_done! timeout: 60
|
544
|
+
# if result.response?
|
545
|
+
# p result.response
|
546
|
+
# else
|
547
|
+
# puts "Error!"
|
548
|
+
# end
|
549
|
+
#
|
447
550
|
def wait_operation request, options = nil
|
448
551
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
449
552
|
|
@@ -187,6 +187,27 @@ module Google
|
|
187
187
|
#
|
188
188
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
189
189
|
#
|
190
|
+
# @example Basic example
|
191
|
+
# require "google/cloud/dialogflow/v2"
|
192
|
+
#
|
193
|
+
# # Create a client object. The client can be reused for multiple calls.
|
194
|
+
# client = Google::Cloud::Dialogflow::V2::Environments::Client.new
|
195
|
+
#
|
196
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
197
|
+
# request = Google::Cloud::Dialogflow::V2::ListEnvironmentsRequest.new
|
198
|
+
#
|
199
|
+
# # Call the list_environments method.
|
200
|
+
# result = client.list_environments request
|
201
|
+
#
|
202
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
203
|
+
# # iterate over all elements by calling #each, and the enumerable
|
204
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
205
|
+
# # methods are also available for managing paging directly.
|
206
|
+
# result.each do |response|
|
207
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::Environment.
|
208
|
+
# p response
|
209
|
+
# end
|
210
|
+
#
|
190
211
|
def list_environments request, options = nil
|
191
212
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
192
213
|
|
@@ -204,9 +225,11 @@ module Google
|
|
204
225
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
205
226
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
206
227
|
|
207
|
-
header_params = {
|
208
|
-
|
209
|
-
|
228
|
+
header_params = {}
|
229
|
+
if request.parent
|
230
|
+
header_params["parent"] = request.parent
|
231
|
+
end
|
232
|
+
|
210
233
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
211
234
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
212
235
|
|
@@ -263,6 +286,21 @@ module Google
|
|
263
286
|
#
|
264
287
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
265
288
|
#
|
289
|
+
# @example Basic example
|
290
|
+
# require "google/cloud/dialogflow/v2"
|
291
|
+
#
|
292
|
+
# # Create a client object. The client can be reused for multiple calls.
|
293
|
+
# client = Google::Cloud::Dialogflow::V2::Environments::Client.new
|
294
|
+
#
|
295
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
296
|
+
# request = Google::Cloud::Dialogflow::V2::GetEnvironmentRequest.new
|
297
|
+
#
|
298
|
+
# # Call the get_environment method.
|
299
|
+
# result = client.get_environment request
|
300
|
+
#
|
301
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Environment.
|
302
|
+
# p result
|
303
|
+
#
|
266
304
|
def get_environment request, options = nil
|
267
305
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
268
306
|
|
@@ -280,9 +318,11 @@ module Google
|
|
280
318
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
281
319
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
282
320
|
|
283
|
-
header_params = {
|
284
|
-
|
285
|
-
|
321
|
+
header_params = {}
|
322
|
+
if request.name
|
323
|
+
header_params["name"] = request.name
|
324
|
+
end
|
325
|
+
|
286
326
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
287
327
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
288
328
|
|
@@ -339,6 +379,21 @@ module Google
|
|
339
379
|
#
|
340
380
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
341
381
|
#
|
382
|
+
# @example Basic example
|
383
|
+
# require "google/cloud/dialogflow/v2"
|
384
|
+
#
|
385
|
+
# # Create a client object. The client can be reused for multiple calls.
|
386
|
+
# client = Google::Cloud::Dialogflow::V2::Environments::Client.new
|
387
|
+
#
|
388
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
389
|
+
# request = Google::Cloud::Dialogflow::V2::CreateEnvironmentRequest.new
|
390
|
+
#
|
391
|
+
# # Call the create_environment method.
|
392
|
+
# result = client.create_environment request
|
393
|
+
#
|
394
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Environment.
|
395
|
+
# p result
|
396
|
+
#
|
342
397
|
def create_environment request, options = nil
|
343
398
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
399
|
|
@@ -356,9 +411,11 @@ module Google
|
|
356
411
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
357
412
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
358
413
|
|
359
|
-
header_params = {
|
360
|
-
|
361
|
-
|
414
|
+
header_params = {}
|
415
|
+
if request.parent
|
416
|
+
header_params["parent"] = request.parent
|
417
|
+
end
|
418
|
+
|
362
419
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
363
420
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
364
421
|
|
@@ -425,6 +482,21 @@ module Google
|
|
425
482
|
#
|
426
483
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
427
484
|
#
|
485
|
+
# @example Basic example
|
486
|
+
# require "google/cloud/dialogflow/v2"
|
487
|
+
#
|
488
|
+
# # Create a client object. The client can be reused for multiple calls.
|
489
|
+
# client = Google::Cloud::Dialogflow::V2::Environments::Client.new
|
490
|
+
#
|
491
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
492
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateEnvironmentRequest.new
|
493
|
+
#
|
494
|
+
# # Call the update_environment method.
|
495
|
+
# result = client.update_environment request
|
496
|
+
#
|
497
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Environment.
|
498
|
+
# p result
|
499
|
+
#
|
428
500
|
def update_environment request, options = nil
|
429
501
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
430
502
|
|
@@ -442,9 +514,11 @@ module Google
|
|
442
514
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
443
515
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
444
516
|
|
445
|
-
header_params = {
|
446
|
-
|
447
|
-
|
517
|
+
header_params = {}
|
518
|
+
if request.environment&.name
|
519
|
+
header_params["environment.name"] = request.environment.name
|
520
|
+
end
|
521
|
+
|
448
522
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
449
523
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
450
524
|
|
@@ -500,6 +574,21 @@ module Google
|
|
500
574
|
#
|
501
575
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
502
576
|
#
|
577
|
+
# @example Basic example
|
578
|
+
# require "google/cloud/dialogflow/v2"
|
579
|
+
#
|
580
|
+
# # Create a client object. The client can be reused for multiple calls.
|
581
|
+
# client = Google::Cloud::Dialogflow::V2::Environments::Client.new
|
582
|
+
#
|
583
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
584
|
+
# request = Google::Cloud::Dialogflow::V2::DeleteEnvironmentRequest.new
|
585
|
+
#
|
586
|
+
# # Call the delete_environment method.
|
587
|
+
# result = client.delete_environment request
|
588
|
+
#
|
589
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
590
|
+
# p result
|
591
|
+
#
|
503
592
|
def delete_environment request, options = nil
|
504
593
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
505
594
|
|
@@ -517,9 +606,11 @@ module Google
|
|
517
606
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
518
607
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
519
608
|
|
520
|
-
header_params = {
|
521
|
-
|
522
|
-
|
609
|
+
header_params = {}
|
610
|
+
if request.name
|
611
|
+
header_params["name"] = request.name
|
612
|
+
end
|
613
|
+
|
523
614
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
524
615
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
525
616
|
|
@@ -580,6 +671,27 @@ module Google
|
|
580
671
|
#
|
581
672
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
582
673
|
#
|
674
|
+
# @example Basic example
|
675
|
+
# require "google/cloud/dialogflow/v2"
|
676
|
+
#
|
677
|
+
# # Create a client object. The client can be reused for multiple calls.
|
678
|
+
# client = Google::Cloud::Dialogflow::V2::Environments::Client.new
|
679
|
+
#
|
680
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
681
|
+
# request = Google::Cloud::Dialogflow::V2::GetEnvironmentHistoryRequest.new
|
682
|
+
#
|
683
|
+
# # Call the get_environment_history method.
|
684
|
+
# result = client.get_environment_history request
|
685
|
+
#
|
686
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can
|
687
|
+
# # iterate over all elements by calling #each, and the enumerable
|
688
|
+
# # will lazily make API calls to fetch subsequent pages. Other
|
689
|
+
# # methods are also available for managing paging directly.
|
690
|
+
# result.each do |response|
|
691
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::V2::EnvironmentHistory::Entry.
|
692
|
+
# p response
|
693
|
+
# end
|
694
|
+
#
|
583
695
|
def get_environment_history request, options = nil
|
584
696
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
585
697
|
|
@@ -597,9 +709,11 @@ module Google
|
|
597
709
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
598
710
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
599
711
|
|
600
|
-
header_params = {
|
601
|
-
|
602
|
-
|
712
|
+
header_params = {}
|
713
|
+
if request.parent
|
714
|
+
header_params["parent"] = request.parent
|
715
|
+
end
|
716
|
+
|
603
717
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
604
718
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
605
719
|
|
@@ -179,6 +179,21 @@ module Google
|
|
179
179
|
#
|
180
180
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
181
181
|
#
|
182
|
+
# @example Basic example
|
183
|
+
# require "google/cloud/dialogflow/v2"
|
184
|
+
#
|
185
|
+
# # Create a client object. The client can be reused for multiple calls.
|
186
|
+
# client = Google::Cloud::Dialogflow::V2::Fulfillments::Client.new
|
187
|
+
#
|
188
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
189
|
+
# request = Google::Cloud::Dialogflow::V2::GetFulfillmentRequest.new
|
190
|
+
#
|
191
|
+
# # Call the get_fulfillment method.
|
192
|
+
# result = client.get_fulfillment request
|
193
|
+
#
|
194
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Fulfillment.
|
195
|
+
# p result
|
196
|
+
#
|
182
197
|
def get_fulfillment request, options = nil
|
183
198
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
184
199
|
|
@@ -196,9 +211,11 @@ module Google
|
|
196
211
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
197
212
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
198
213
|
|
199
|
-
header_params = {
|
200
|
-
|
201
|
-
|
214
|
+
header_params = {}
|
215
|
+
if request.name
|
216
|
+
header_params["name"] = request.name
|
217
|
+
end
|
218
|
+
|
202
219
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
203
220
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
204
221
|
|
@@ -250,6 +267,21 @@ module Google
|
|
250
267
|
#
|
251
268
|
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
252
269
|
#
|
270
|
+
# @example Basic example
|
271
|
+
# require "google/cloud/dialogflow/v2"
|
272
|
+
#
|
273
|
+
# # Create a client object. The client can be reused for multiple calls.
|
274
|
+
# client = Google::Cloud::Dialogflow::V2::Fulfillments::Client.new
|
275
|
+
#
|
276
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
277
|
+
# request = Google::Cloud::Dialogflow::V2::UpdateFulfillmentRequest.new
|
278
|
+
#
|
279
|
+
# # Call the update_fulfillment method.
|
280
|
+
# result = client.update_fulfillment request
|
281
|
+
#
|
282
|
+
# # The returned object is of type Google::Cloud::Dialogflow::V2::Fulfillment.
|
283
|
+
# p result
|
284
|
+
#
|
253
285
|
def update_fulfillment request, options = nil
|
254
286
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
255
287
|
|
@@ -267,9 +299,11 @@ module Google
|
|
267
299
|
gapic_version: ::Google::Cloud::Dialogflow::V2::VERSION
|
268
300
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
269
301
|
|
270
|
-
header_params = {
|
271
|
-
|
272
|
-
|
302
|
+
header_params = {}
|
303
|
+
if request.fulfillment&.name
|
304
|
+
header_params["fulfillment.name"] = request.fulfillment.name
|
305
|
+
end
|
306
|
+
|
273
307
|
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
274
308
|
metadata[:"x-goog-request-params"] ||= request_params_header
|
275
309
|
|
@@ -1,12 +1,18 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/gcs.proto
|
3
3
|
|
4
|
-
require 'google/api/field_behavior_pb'
|
5
4
|
require 'google/api/annotations_pb'
|
5
|
+
require 'google/api/field_behavior_pb'
|
6
6
|
require 'google/protobuf'
|
7
7
|
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|
9
9
|
add_file("google/cloud/dialogflow/v2/gcs.proto", :syntax => :proto3) do
|
10
|
+
add_message "google.cloud.dialogflow.v2.GcsSources" do
|
11
|
+
repeated :uris, :string, 2
|
12
|
+
end
|
13
|
+
add_message "google.cloud.dialogflow.v2.GcsDestination" do
|
14
|
+
optional :uri, :string, 1
|
15
|
+
end
|
10
16
|
end
|
11
17
|
end
|
12
18
|
|
@@ -14,6 +20,8 @@ module Google
|
|
14
20
|
module Cloud
|
15
21
|
module Dialogflow
|
16
22
|
module V2
|
23
|
+
GcsSources = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GcsSources").msgclass
|
24
|
+
GcsDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.v2.GcsDestination").msgclass
|
17
25
|
end
|
18
26
|
end
|
19
27
|
end
|
@@ -1,8 +1,8 @@
|
|
1
1
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
2
|
# source: google/cloud/dialogflow/v2/human_agent_assistant_event.proto
|
3
3
|
|
4
|
-
require 'google/cloud/dialogflow/v2/participant_pb'
|
5
4
|
require 'google/api/annotations_pb'
|
5
|
+
require 'google/cloud/dialogflow/v2/participant_pb'
|
6
6
|
require 'google/protobuf'
|
7
7
|
|
8
8
|
Google::Protobuf::DescriptorPool.generated_pool.build do
|