google-cloud-dialogflow-cx-v3 0.2.0 → 0.5.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.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/.yardopts +1 -1
  3. data/AUTHENTICATION.md +7 -25
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +201 -27
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
  6. data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +52 -0
  7. data/lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb +49 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +522 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb +54 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb +75 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +51 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +46 -6
  13. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
  14. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +1 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +227 -27
  16. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
  17. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
  18. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +228 -30
  19. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
  20. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
  21. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
  22. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +7 -0
  23. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
  24. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
  25. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
  26. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +281 -36
  27. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
  28. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
  29. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  30. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +12 -0
  31. data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +2 -0
  32. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +250 -18
  33. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
  34. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +2 -0
  35. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
  36. data/lib/google/cloud/dialogflow/cx/v3.rb +2 -1
  37. data/proto_docs/google/api/resource.rb +10 -71
  38. data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
  39. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +15 -0
  40. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +11 -1
  41. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +54 -42
  42. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
  43. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +17 -0
  44. metadata +10 -3
@@ -144,6 +144,27 @@ module Google
144
144
  #
145
145
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
146
146
  #
147
+ # @example Basic example
148
+ # require "google/longrunning"
149
+ #
150
+ # # Create a client object. The client can be reused for multiple calls.
151
+ # client = Google::Longrunning::Operations::Client.new
152
+ #
153
+ # # Create a request. To set request fields, pass in keyword arguments.
154
+ # request = Google::Longrunning::ListOperationsRequest.new
155
+ #
156
+ # # Call the list_operations method.
157
+ # result = client.list_operations request
158
+ #
159
+ # # The returned object is of type Gapic::PagedEnumerable. You can
160
+ # # iterate over all elements by calling #each, and the enumerable
161
+ # # will lazily make API calls to fetch subsequent pages. Other
162
+ # # methods are also available for managing paging directly.
163
+ # result.each do |response|
164
+ # # Each element is of type ::Google::Longrunning::Operation.
165
+ # p response
166
+ # end
167
+ #
147
168
  def list_operations request, options = nil
148
169
  raise ::ArgumentError, "request must be provided" if request.nil?
149
170
 
@@ -161,9 +182,11 @@ module Google
161
182
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
162
183
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
163
184
 
164
- header_params = {
165
- "name" => request.name
166
- }
185
+ header_params = {}
186
+ if request.name
187
+ header_params["name"] = request.name
188
+ end
189
+
167
190
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
168
191
  metadata[:"x-goog-request-params"] ||= request_params_header
169
192
 
@@ -216,6 +239,28 @@ module Google
216
239
  #
217
240
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
218
241
  #
242
+ # @example Basic example
243
+ # require "google/longrunning"
244
+ #
245
+ # # Create a client object. The client can be reused for multiple calls.
246
+ # client = Google::Longrunning::Operations::Client.new
247
+ #
248
+ # # Create a request. To set request fields, pass in keyword arguments.
249
+ # request = Google::Longrunning::GetOperationRequest.new
250
+ #
251
+ # # Call the get_operation method.
252
+ # result = client.get_operation request
253
+ #
254
+ # # The returned object is of type Gapic::Operation. You can use this
255
+ # # object to check the status of an operation, cancel it, or wait
256
+ # # for results. Here is how to block until completion:
257
+ # result.wait_until_done! timeout: 60
258
+ # if result.response?
259
+ # p result.response
260
+ # else
261
+ # puts "Error!"
262
+ # end
263
+ #
219
264
  def get_operation request, options = nil
220
265
  raise ::ArgumentError, "request must be provided" if request.nil?
221
266
 
@@ -233,9 +278,11 @@ module Google
233
278
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
234
279
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
235
280
 
236
- header_params = {
237
- "name" => request.name
238
- }
281
+ header_params = {}
282
+ if request.name
283
+ header_params["name"] = request.name
284
+ end
285
+
239
286
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
240
287
  metadata[:"x-goog-request-params"] ||= request_params_header
241
288
 
@@ -288,6 +335,21 @@ module Google
288
335
  #
289
336
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
290
337
  #
338
+ # @example Basic example
339
+ # require "google/longrunning"
340
+ #
341
+ # # Create a client object. The client can be reused for multiple calls.
342
+ # client = Google::Longrunning::Operations::Client.new
343
+ #
344
+ # # Create a request. To set request fields, pass in keyword arguments.
345
+ # request = Google::Longrunning::DeleteOperationRequest.new
346
+ #
347
+ # # Call the delete_operation method.
348
+ # result = client.delete_operation request
349
+ #
350
+ # # The returned object is of type Google::Protobuf::Empty.
351
+ # p result
352
+ #
291
353
  def delete_operation request, options = nil
292
354
  raise ::ArgumentError, "request must be provided" if request.nil?
293
355
 
@@ -305,9 +367,11 @@ module Google
305
367
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
306
368
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
307
369
 
308
- header_params = {
309
- "name" => request.name
310
- }
370
+ header_params = {}
371
+ if request.name
372
+ header_params["name"] = request.name
373
+ end
374
+
311
375
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
312
376
  metadata[:"x-goog-request-params"] ||= request_params_header
313
377
 
@@ -365,6 +429,21 @@ module Google
365
429
  #
366
430
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
367
431
  #
432
+ # @example Basic example
433
+ # require "google/longrunning"
434
+ #
435
+ # # Create a client object. The client can be reused for multiple calls.
436
+ # client = Google::Longrunning::Operations::Client.new
437
+ #
438
+ # # Create a request. To set request fields, pass in keyword arguments.
439
+ # request = Google::Longrunning::CancelOperationRequest.new
440
+ #
441
+ # # Call the cancel_operation method.
442
+ # result = client.cancel_operation request
443
+ #
444
+ # # The returned object is of type Google::Protobuf::Empty.
445
+ # p result
446
+ #
368
447
  def cancel_operation request, options = nil
369
448
  raise ::ArgumentError, "request must be provided" if request.nil?
370
449
 
@@ -382,9 +461,11 @@ module Google
382
461
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
383
462
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
463
 
385
- header_params = {
386
- "name" => request.name
387
- }
464
+ header_params = {}
465
+ if request.name
466
+ header_params["name"] = request.name
467
+ end
468
+
388
469
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
389
470
  metadata[:"x-goog-request-params"] ||= request_params_header
390
471
 
@@ -445,6 +526,28 @@ module Google
445
526
  #
446
527
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
447
528
  #
529
+ # @example Basic example
530
+ # require "google/longrunning"
531
+ #
532
+ # # Create a client object. The client can be reused for multiple calls.
533
+ # client = Google::Longrunning::Operations::Client.new
534
+ #
535
+ # # Create a request. To set request fields, pass in keyword arguments.
536
+ # request = Google::Longrunning::WaitOperationRequest.new
537
+ #
538
+ # # Call the wait_operation method.
539
+ # result = client.wait_operation request
540
+ #
541
+ # # The returned object is of type Gapic::Operation. You can use this
542
+ # # object to check the status of an operation, cancel it, or wait
543
+ # # for results. Here is how to block until completion:
544
+ # result.wait_until_done! timeout: 60
545
+ # if result.response?
546
+ # p result.response
547
+ # else
548
+ # puts "Error!"
549
+ # end
550
+ #
448
551
  def wait_operation request, options = nil
449
552
  raise ::ArgumentError, "request must be provided" if request.nil?
450
553
 
@@ -198,6 +198,27 @@ module Google
198
198
  #
199
199
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
200
200
  #
201
+ # @example Basic example
202
+ # require "google/cloud/dialogflow/cx/v3"
203
+ #
204
+ # # Create a client object. The client can be reused for multiple calls.
205
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
206
+ #
207
+ # # Create a request. To set request fields, pass in keyword arguments.
208
+ # request = Google::Cloud::Dialogflow::CX::V3::ListIntentsRequest.new
209
+ #
210
+ # # Call the list_intents method.
211
+ # result = client.list_intents request
212
+ #
213
+ # # The returned object is of type Gapic::PagedEnumerable. You can
214
+ # # iterate over all elements by calling #each, and the enumerable
215
+ # # will lazily make API calls to fetch subsequent pages. Other
216
+ # # methods are also available for managing paging directly.
217
+ # result.each do |response|
218
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Intent.
219
+ # p response
220
+ # end
221
+ #
201
222
  def list_intents request, options = nil
202
223
  raise ::ArgumentError, "request must be provided" if request.nil?
203
224
 
@@ -215,9 +236,11 @@ module Google
215
236
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
216
237
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
217
238
 
218
- header_params = {
219
- "parent" => request.parent
220
- }
239
+ header_params = {}
240
+ if request.parent
241
+ header_params["parent"] = request.parent
242
+ end
243
+
221
244
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
222
245
  metadata[:"x-goog-request-params"] ||= request_params_header
223
246
 
@@ -280,6 +303,21 @@ module Google
280
303
  #
281
304
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
282
305
  #
306
+ # @example Basic example
307
+ # require "google/cloud/dialogflow/cx/v3"
308
+ #
309
+ # # Create a client object. The client can be reused for multiple calls.
310
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
311
+ #
312
+ # # Create a request. To set request fields, pass in keyword arguments.
313
+ # request = Google::Cloud::Dialogflow::CX::V3::GetIntentRequest.new
314
+ #
315
+ # # Call the get_intent method.
316
+ # result = client.get_intent request
317
+ #
318
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
319
+ # p result
320
+ #
283
321
  def get_intent request, options = nil
284
322
  raise ::ArgumentError, "request must be provided" if request.nil?
285
323
 
@@ -297,9 +335,11 @@ module Google
297
335
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
298
336
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
299
337
 
300
- header_params = {
301
- "name" => request.name
302
- }
338
+ header_params = {}
339
+ if request.name
340
+ header_params["name"] = request.name
341
+ end
342
+
303
343
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
304
344
  metadata[:"x-goog-request-params"] ||= request_params_header
305
345
 
@@ -365,6 +405,21 @@ module Google
365
405
  #
366
406
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
367
407
  #
408
+ # @example Basic example
409
+ # require "google/cloud/dialogflow/cx/v3"
410
+ #
411
+ # # Create a client object. The client can be reused for multiple calls.
412
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
413
+ #
414
+ # # Create a request. To set request fields, pass in keyword arguments.
415
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateIntentRequest.new
416
+ #
417
+ # # Call the create_intent method.
418
+ # result = client.create_intent request
419
+ #
420
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
421
+ # p result
422
+ #
368
423
  def create_intent request, options = nil
369
424
  raise ::ArgumentError, "request must be provided" if request.nil?
370
425
 
@@ -382,9 +437,11 @@ module Google
382
437
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
383
438
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
439
 
385
- header_params = {
386
- "parent" => request.parent
387
- }
440
+ header_params = {}
441
+ if request.parent
442
+ header_params["parent"] = request.parent
443
+ end
444
+
388
445
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
389
446
  metadata[:"x-goog-request-params"] ||= request_params_header
390
447
 
@@ -450,6 +507,21 @@ module Google
450
507
  #
451
508
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
452
509
  #
510
+ # @example Basic example
511
+ # require "google/cloud/dialogflow/cx/v3"
512
+ #
513
+ # # Create a client object. The client can be reused for multiple calls.
514
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
515
+ #
516
+ # # Create a request. To set request fields, pass in keyword arguments.
517
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateIntentRequest.new
518
+ #
519
+ # # Call the update_intent method.
520
+ # result = client.update_intent request
521
+ #
522
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
523
+ # p result
524
+ #
453
525
  def update_intent request, options = nil
454
526
  raise ::ArgumentError, "request must be provided" if request.nil?
455
527
 
@@ -467,9 +539,11 @@ module Google
467
539
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
468
540
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
469
541
 
470
- header_params = {
471
- "intent.name" => request.intent.name
472
- }
542
+ header_params = {}
543
+ if request.intent&.name
544
+ header_params["intent.name"] = request.intent.name
545
+ end
546
+
473
547
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
474
548
  metadata[:"x-goog-request-params"] ||= request_params_header
475
549
 
@@ -524,6 +598,21 @@ module Google
524
598
  #
525
599
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
526
600
  #
601
+ # @example Basic example
602
+ # require "google/cloud/dialogflow/cx/v3"
603
+ #
604
+ # # Create a client object. The client can be reused for multiple calls.
605
+ # client = Google::Cloud::Dialogflow::CX::V3::Intents::Client.new
606
+ #
607
+ # # Create a request. To set request fields, pass in keyword arguments.
608
+ # request = Google::Cloud::Dialogflow::CX::V3::DeleteIntentRequest.new
609
+ #
610
+ # # Call the delete_intent method.
611
+ # result = client.delete_intent request
612
+ #
613
+ # # The returned object is of type Google::Protobuf::Empty.
614
+ # p result
615
+ #
527
616
  def delete_intent request, options = nil
528
617
  raise ::ArgumentError, "request must be provided" if request.nil?
529
618
 
@@ -541,9 +630,11 @@ module Google
541
630
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
542
631
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
543
632
 
544
- header_params = {
545
- "name" => request.name
546
- }
633
+ header_params = {}
634
+ if request.name
635
+ header_params["name"] = request.name
636
+ end
637
+
547
638
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
548
639
  metadata[:"x-goog-request-params"] ||= request_params_header
549
640
 
@@ -208,6 +208,27 @@ module Google
208
208
  #
209
209
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
210
210
  #
211
+ # @example Basic example
212
+ # require "google/cloud/dialogflow/cx/v3"
213
+ #
214
+ # # Create a client object. The client can be reused for multiple calls.
215
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
216
+ #
217
+ # # Create a request. To set request fields, pass in keyword arguments.
218
+ # request = Google::Cloud::Dialogflow::CX::V3::ListPagesRequest.new
219
+ #
220
+ # # Call the list_pages method.
221
+ # result = client.list_pages request
222
+ #
223
+ # # The returned object is of type Gapic::PagedEnumerable. You can
224
+ # # iterate over all elements by calling #each, and the enumerable
225
+ # # will lazily make API calls to fetch subsequent pages. Other
226
+ # # methods are also available for managing paging directly.
227
+ # result.each do |response|
228
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Page.
229
+ # p response
230
+ # end
231
+ #
211
232
  def list_pages request, options = nil
212
233
  raise ::ArgumentError, "request must be provided" if request.nil?
213
234
 
@@ -225,9 +246,11 @@ module Google
225
246
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
226
247
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
227
248
 
228
- header_params = {
229
- "parent" => request.parent
230
- }
249
+ header_params = {}
250
+ if request.parent
251
+ header_params["parent"] = request.parent
252
+ end
253
+
231
254
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
232
255
  metadata[:"x-goog-request-params"] ||= request_params_header
233
256
 
@@ -301,6 +324,21 @@ module Google
301
324
  #
302
325
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
303
326
  #
327
+ # @example Basic example
328
+ # require "google/cloud/dialogflow/cx/v3"
329
+ #
330
+ # # Create a client object. The client can be reused for multiple calls.
331
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
332
+ #
333
+ # # Create a request. To set request fields, pass in keyword arguments.
334
+ # request = Google::Cloud::Dialogflow::CX::V3::GetPageRequest.new
335
+ #
336
+ # # Call the get_page method.
337
+ # result = client.get_page request
338
+ #
339
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
340
+ # p result
341
+ #
304
342
  def get_page request, options = nil
305
343
  raise ::ArgumentError, "request must be provided" if request.nil?
306
344
 
@@ -318,9 +356,11 @@ module Google
318
356
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
319
357
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
320
358
 
321
- header_params = {
322
- "name" => request.name
323
- }
359
+ header_params = {}
360
+ if request.name
361
+ header_params["name"] = request.name
362
+ end
363
+
324
364
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
325
365
  metadata[:"x-goog-request-params"] ||= request_params_header
326
366
 
@@ -398,6 +438,21 @@ module Google
398
438
  #
399
439
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
400
440
  #
441
+ # @example Basic example
442
+ # require "google/cloud/dialogflow/cx/v3"
443
+ #
444
+ # # Create a client object. The client can be reused for multiple calls.
445
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
446
+ #
447
+ # # Create a request. To set request fields, pass in keyword arguments.
448
+ # request = Google::Cloud::Dialogflow::CX::V3::CreatePageRequest.new
449
+ #
450
+ # # Call the create_page method.
451
+ # result = client.create_page request
452
+ #
453
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
454
+ # p result
455
+ #
401
456
  def create_page request, options = nil
402
457
  raise ::ArgumentError, "request must be provided" if request.nil?
403
458
 
@@ -415,9 +470,11 @@ module Google
415
470
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
416
471
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
417
472
 
418
- header_params = {
419
- "parent" => request.parent
420
- }
473
+ header_params = {}
474
+ if request.parent
475
+ header_params["parent"] = request.parent
476
+ end
477
+
421
478
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
422
479
  metadata[:"x-goog-request-params"] ||= request_params_header
423
480
 
@@ -494,6 +551,21 @@ module Google
494
551
  #
495
552
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
496
553
  #
554
+ # @example Basic example
555
+ # require "google/cloud/dialogflow/cx/v3"
556
+ #
557
+ # # Create a client object. The client can be reused for multiple calls.
558
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
559
+ #
560
+ # # Create a request. To set request fields, pass in keyword arguments.
561
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdatePageRequest.new
562
+ #
563
+ # # Call the update_page method.
564
+ # result = client.update_page request
565
+ #
566
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
567
+ # p result
568
+ #
497
569
  def update_page request, options = nil
498
570
  raise ::ArgumentError, "request must be provided" if request.nil?
499
571
 
@@ -511,9 +583,11 @@ module Google
511
583
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
512
584
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
513
585
 
514
- header_params = {
515
- "page.name" => request.page.name
516
- }
586
+ header_params = {}
587
+ if request.page&.name
588
+ header_params["page.name"] = request.page.name
589
+ end
590
+
517
591
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
518
592
  metadata[:"x-goog-request-params"] ||= request_params_header
519
593
 
@@ -579,6 +653,21 @@ module Google
579
653
  #
580
654
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
581
655
  #
656
+ # @example Basic example
657
+ # require "google/cloud/dialogflow/cx/v3"
658
+ #
659
+ # # Create a client object. The client can be reused for multiple calls.
660
+ # client = Google::Cloud::Dialogflow::CX::V3::Pages::Client.new
661
+ #
662
+ # # Create a request. To set request fields, pass in keyword arguments.
663
+ # request = Google::Cloud::Dialogflow::CX::V3::DeletePageRequest.new
664
+ #
665
+ # # Call the delete_page method.
666
+ # result = client.delete_page request
667
+ #
668
+ # # The returned object is of type Google::Protobuf::Empty.
669
+ # p result
670
+ #
582
671
  def delete_page request, options = nil
583
672
  raise ::ArgumentError, "request must be provided" if request.nil?
584
673
 
@@ -596,9 +685,11 @@ module Google
596
685
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
597
686
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
598
687
 
599
- header_params = {
600
- "name" => request.name
601
- }
688
+ header_params = {}
689
+ if request.name
690
+ header_params["name"] = request.name
691
+ end
692
+
602
693
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
603
694
  metadata[:"x-goog-request-params"] ||= request_params_header
604
695
 
@@ -18,6 +18,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  optional :end_interaction, :message, 11, "google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteraction"
19
19
  optional :play_audio, :message, 12, "google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio"
20
20
  optional :mixed_audio, :message, 13, "google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio"
21
+ optional :telephony_transfer_call, :message, 18, "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall"
21
22
  end
22
23
  end
23
24
  add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.Text" do
@@ -53,6 +54,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
53
54
  optional :uri, :string, 2
54
55
  end
55
56
  end
57
+ add_message "google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall" do
58
+ oneof :endpoint do
59
+ optional :phone_number, :string, 1
60
+ end
61
+ end
56
62
  end
57
63
  end
58
64
 
@@ -70,6 +76,7 @@ module Google
70
76
  ResponseMessage::PlayAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudio").msgclass
71
77
  ResponseMessage::MixedAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio").msgclass
72
78
  ResponseMessage::MixedAudio::Segment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment").msgclass
79
+ ResponseMessage::TelephonyTransferCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall").msgclass
73
80
  end
74
81
  end
75
82
  end