google-cloud-dialogflow-cx-v3 0.1.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -2
  3. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -2
  4. data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +10 -1
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +209 -27
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
  7. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +2 -2
  8. data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +52 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb +49 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +522 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb +54 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb +75 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +51 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +63 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb +49 -0
  16. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +502 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/deployments/credentials.rb +54 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/deployments/paths.rb +79 -0
  19. data/lib/google/cloud/dialogflow/cx/v3/deployments.rb +51 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +2 -2
  21. data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +1 -1
  22. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
  23. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +24 -2
  24. data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +33 -1
  25. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +335 -24
  26. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
  27. data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +21 -0
  28. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +2 -2
  29. data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +1 -1
  30. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
  31. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +2 -2
  32. data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +26 -1
  33. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +252 -30
  34. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
  35. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +2 -2
  36. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +2 -2
  37. data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +1 -1
  38. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
  39. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +2 -2
  40. data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +1 -1
  41. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
  42. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +9 -2
  43. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -2
  44. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
  45. data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +1 -1
  46. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +2 -2
  47. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +1 -1
  48. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
  49. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -2
  50. data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +1 -1
  51. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
  52. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +2 -2
  53. data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +23 -1
  54. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +302 -36
  55. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
  56. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +2 -2
  57. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +1 -1
  58. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
  59. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +2 -2
  60. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  61. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +14 -2
  62. data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +19 -1
  63. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +265 -18
  64. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
  65. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +3 -2
  66. data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +1 -1
  67. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
  68. data/lib/google/cloud/dialogflow/cx/v3.rb +3 -1
  69. data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
  70. data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +135 -0
  71. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +62 -0
  72. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +15 -0
  73. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +15 -2
  74. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +58 -42
  75. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +1 -0
  76. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +43 -0
  77. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +13 -0
  78. metadata +16 -2
@@ -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
 
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/transition_route_group.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'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/cloud/dialogflow/cx/v3/page_pb'
11
9
  require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
11
+ require 'google/protobuf'
12
+
13
13
  Google::Protobuf::DescriptorPool.generated_pool.build do
14
14
  add_file("google/cloud/dialogflow/cx/v3/transition_route_group.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.dialogflow.cx.v3.TransitionRouteGroup" do
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing [TransitionRouteGroups][google.cloud.dialogflow.cx.v3.TransitionRouteGroup].
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -200,6 +200,27 @@ module Google
200
200
  #
201
201
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
202
202
  #
203
+ # @example Basic example
204
+ # require "google/cloud/dialogflow/cx/v3"
205
+ #
206
+ # # Create a client object. The client can be reused for multiple calls.
207
+ # client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Client.new
208
+ #
209
+ # # Create a request. To set request fields, pass in keyword arguments.
210
+ # request = Google::Cloud::Dialogflow::CX::V3::ListTransitionRouteGroupsRequest.new
211
+ #
212
+ # # Call the list_transition_route_groups method.
213
+ # result = client.list_transition_route_groups request
214
+ #
215
+ # # The returned object is of type Gapic::PagedEnumerable. You can
216
+ # # iterate over all elements by calling #each, and the enumerable
217
+ # # will lazily make API calls to fetch subsequent pages. Other
218
+ # # methods are also available for managing paging directly.
219
+ # result.each do |response|
220
+ # # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
221
+ # p response
222
+ # end
223
+ #
203
224
  def list_transition_route_groups request, options = nil
204
225
  raise ::ArgumentError, "request must be provided" if request.nil?
205
226
 
@@ -217,9 +238,11 @@ module Google
217
238
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
218
239
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
219
240
 
220
- header_params = {
221
- "parent" => request.parent
222
- }
241
+ header_params = {}
242
+ if request.parent
243
+ header_params["parent"] = request.parent
244
+ end
245
+
223
246
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
224
247
  metadata[:"x-goog-request-params"] ||= request_params_header
225
248
 
@@ -284,6 +307,21 @@ module Google
284
307
  #
285
308
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
286
309
  #
310
+ # @example Basic example
311
+ # require "google/cloud/dialogflow/cx/v3"
312
+ #
313
+ # # Create a client object. The client can be reused for multiple calls.
314
+ # client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Client.new
315
+ #
316
+ # # Create a request. To set request fields, pass in keyword arguments.
317
+ # request = Google::Cloud::Dialogflow::CX::V3::GetTransitionRouteGroupRequest.new
318
+ #
319
+ # # Call the get_transition_route_group method.
320
+ # result = client.get_transition_route_group request
321
+ #
322
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
323
+ # p result
324
+ #
287
325
  def get_transition_route_group request, options = nil
288
326
  raise ::ArgumentError, "request must be provided" if request.nil?
289
327
 
@@ -301,9 +339,11 @@ module Google
301
339
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
302
340
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
303
341
 
304
- header_params = {
305
- "name" => request.name
306
- }
342
+ header_params = {}
343
+ if request.name
344
+ header_params["name"] = request.name
345
+ end
346
+
307
347
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
308
348
  metadata[:"x-goog-request-params"] ||= request_params_header
309
349
 
@@ -372,6 +412,21 @@ module Google
372
412
  #
373
413
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
374
414
  #
415
+ # @example Basic example
416
+ # require "google/cloud/dialogflow/cx/v3"
417
+ #
418
+ # # Create a client object. The client can be reused for multiple calls.
419
+ # client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Client.new
420
+ #
421
+ # # Create a request. To set request fields, pass in keyword arguments.
422
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateTransitionRouteGroupRequest.new
423
+ #
424
+ # # Call the create_transition_route_group method.
425
+ # result = client.create_transition_route_group request
426
+ #
427
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
428
+ # p result
429
+ #
375
430
  def create_transition_route_group request, options = nil
376
431
  raise ::ArgumentError, "request must be provided" if request.nil?
377
432
 
@@ -389,9 +444,11 @@ module Google
389
444
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
390
445
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
391
446
 
392
- header_params = {
393
- "parent" => request.parent
394
- }
447
+ header_params = {}
448
+ if request.parent
449
+ header_params["parent"] = request.parent
450
+ end
451
+
395
452
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
396
453
  metadata[:"x-goog-request-params"] ||= request_params_header
397
454
 
@@ -458,6 +515,21 @@ module Google
458
515
  #
459
516
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
460
517
  #
518
+ # @example Basic example
519
+ # require "google/cloud/dialogflow/cx/v3"
520
+ #
521
+ # # Create a client object. The client can be reused for multiple calls.
522
+ # client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Client.new
523
+ #
524
+ # # Create a request. To set request fields, pass in keyword arguments.
525
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateTransitionRouteGroupRequest.new
526
+ #
527
+ # # Call the update_transition_route_group method.
528
+ # result = client.update_transition_route_group request
529
+ #
530
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup.
531
+ # p result
532
+ #
461
533
  def update_transition_route_group request, options = nil
462
534
  raise ::ArgumentError, "request must be provided" if request.nil?
463
535
 
@@ -475,9 +547,11 @@ module Google
475
547
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
476
548
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
477
549
 
478
- header_params = {
479
- "transition_route_group.name" => request.transition_route_group.name
480
- }
550
+ header_params = {}
551
+ if request.transition_route_group&.name
552
+ header_params["transition_route_group.name"] = request.transition_route_group.name
553
+ end
554
+
481
555
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
482
556
  metadata[:"x-goog-request-params"] ||= request_params_header
483
557
 
@@ -540,6 +614,21 @@ module Google
540
614
  #
541
615
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
542
616
  #
617
+ # @example Basic example
618
+ # require "google/cloud/dialogflow/cx/v3"
619
+ #
620
+ # # Create a client object. The client can be reused for multiple calls.
621
+ # client = Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Client.new
622
+ #
623
+ # # Create a request. To set request fields, pass in keyword arguments.
624
+ # request = Google::Cloud::Dialogflow::CX::V3::DeleteTransitionRouteGroupRequest.new
625
+ #
626
+ # # Call the delete_transition_route_group method.
627
+ # result = client.delete_transition_route_group request
628
+ #
629
+ # # The returned object is of type Google::Protobuf::Empty.
630
+ # p result
631
+ #
543
632
  def delete_transition_route_group request, options = nil
544
633
  raise ::ArgumentError, "request must be provided" if request.nil?
545
634
 
@@ -557,9 +646,11 @@ module Google
557
646
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
558
647
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
559
648
 
560
- header_params = {
561
- "name" => request.name
562
- }
649
+ header_params = {}
650
+ if request.name
651
+ header_params["name"] = request.name
652
+ end
653
+
563
654
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
564
655
  metadata[:"x-goog-request-params"] ||= request_params_header
565
656
 
@@ -1,10 +1,10 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/validation_message.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/protobuf/struct_pb'
7
5
  require 'google/api/annotations_pb'
6
+ require 'google/protobuf'
7
+
8
8
  Google::Protobuf::DescriptorPool.generated_pool.build do
9
9
  add_file("google/cloud/dialogflow/cx/v3/validation_message.proto", :syntax => :proto3) do
10
10
  add_message "google.cloud.dialogflow.cx.v3.ValidationMessage" do
@@ -22,7 +22,7 @@ module Google
22
22
  module Dialogflow
23
23
  module CX
24
24
  module V3
25
- VERSION = "0.1.1"
25
+ VERSION = "0.4.0"
26
26
  end
27
27
  end
28
28
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/version.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'
@@ -17,6 +15,8 @@ require 'google/longrunning/operations_pb'
17
15
  require 'google/protobuf/empty_pb'
18
16
  require 'google/protobuf/field_mask_pb'
19
17
  require 'google/protobuf/timestamp_pb'
18
+ require 'google/protobuf'
19
+
20
20
  Google::Protobuf::DescriptorPool.generated_pool.build do
21
21
  add_file("google/cloud/dialogflow/cx/v3/version.proto", :syntax => :proto3) do
22
22
  add_message "google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata" do
@@ -63,6 +63,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
63
63
  optional :name, :string, 1
64
64
  optional :allow_override_agent_resources, :bool, 2
65
65
  end
66
+ add_message "google.cloud.dialogflow.cx.v3.CompareVersionsRequest" do
67
+ optional :base_version, :string, 1
68
+ optional :target_version, :string, 2
69
+ optional :language_code, :string, 3
70
+ end
71
+ add_message "google.cloud.dialogflow.cx.v3.CompareVersionsResponse" do
72
+ optional :base_version_content_json, :string, 1
73
+ optional :target_version_content_json, :string, 2
74
+ optional :compare_time, :message, 3, "google.protobuf.Timestamp"
75
+ end
66
76
  end
67
77
  end
68
78
 
@@ -81,6 +91,8 @@ module Google
81
91
  UpdateVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.UpdateVersionRequest").msgclass
82
92
  DeleteVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeleteVersionRequest").msgclass
83
93
  LoadVersionRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.LoadVersionRequest").msgclass
94
+ CompareVersionsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.CompareVersionsRequest").msgclass
95
+ CompareVersionsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.CompareVersionsResponse").msgclass
84
96
  end
85
97
  end
86
98
  end
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing [Versions][google.cloud.dialogflow.cx.v3.Version].
29
29
  class Service
30
30
 
31
- include GRPC::GenericService
31
+ include ::GRPC::GenericService
32
32
 
33
33
  self.marshal_class_method = :encode
34
34
  self.unmarshal_class_method = :decode
@@ -39,13 +39,31 @@ module Google
39
39
  # Retrieves the specified [Version][google.cloud.dialogflow.cx.v3.Version].
40
40
  rpc :GetVersion, ::Google::Cloud::Dialogflow::CX::V3::GetVersionRequest, ::Google::Cloud::Dialogflow::CX::V3::Version
41
41
  # Creates a [Version][google.cloud.dialogflow.cx.v3.Version] in the specified [Flow][google.cloud.dialogflow.cx.v3.Flow].
42
+ #
43
+ # This method is a [long-running
44
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
45
+ # The returned `Operation` type has the following method-specific fields:
46
+ #
47
+ # - `metadata`: [CreateVersionOperationMetadata][google.cloud.dialogflow.cx.v3.CreateVersionOperationMetadata]
48
+ # - `response`: [Version][google.cloud.dialogflow.cx.v3.Version]
42
49
  rpc :CreateVersion, ::Google::Cloud::Dialogflow::CX::V3::CreateVersionRequest, ::Google::Longrunning::Operation
43
50
  # Updates the specified [Version][google.cloud.dialogflow.cx.v3.Version].
44
51
  rpc :UpdateVersion, ::Google::Cloud::Dialogflow::CX::V3::UpdateVersionRequest, ::Google::Cloud::Dialogflow::CX::V3::Version
45
52
  # Deletes the specified [Version][google.cloud.dialogflow.cx.v3.Version].
46
53
  rpc :DeleteVersion, ::Google::Cloud::Dialogflow::CX::V3::DeleteVersionRequest, ::Google::Protobuf::Empty
47
54
  # Loads resources in the specified version to the draft flow.
55
+ #
56
+ # This method is a [long-running
57
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
58
+ # The returned `Operation` type has the following method-specific fields:
59
+ #
60
+ # - `metadata`: An empty [Struct
61
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
62
+ # - `response`: An [Empty
63
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
48
64
  rpc :LoadVersion, ::Google::Cloud::Dialogflow::CX::V3::LoadVersionRequest, ::Google::Longrunning::Operation
65
+ # Compares the specified base version with target version.
66
+ rpc :CompareVersions, ::Google::Cloud::Dialogflow::CX::V3::CompareVersionsRequest, ::Google::Cloud::Dialogflow::CX::V3::CompareVersionsResponse
49
67
  end
50
68
 
51
69
  Stub = Service.rpc_stub_class