google-cloud-dialogflow-cx-v3 0.1.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (77) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +2 -2
  4. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +2 -2
  5. data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +17 -1
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +216 -27
  7. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +115 -12
  8. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +3 -2
  9. data/lib/google/cloud/dialogflow/cx/v3/changelog_pb.rb +52 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/changelog_services_pb.rb +49 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +522 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/changelogs/credentials.rb +54 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/changelogs/paths.rb +75 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/changelogs.rb +51 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +63 -0
  16. data/lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb +49 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +502 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/deployments/credentials.rb +54 -0
  19. data/lib/google/cloud/dialogflow/cx/v3/deployments/paths.rb +79 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/deployments.rb +51 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +2 -2
  22. data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +1 -1
  23. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +106 -15
  24. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +23 -2
  25. data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +33 -1
  26. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +335 -24
  27. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +115 -12
  28. data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +21 -0
  29. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +2 -2
  30. data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +1 -1
  31. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +146 -21
  32. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +2 -2
  33. data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +26 -1
  34. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +254 -32
  35. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +115 -12
  36. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +2 -2
  37. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +2 -2
  38. data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +1 -1
  39. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +106 -15
  40. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +2 -2
  41. data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +1 -1
  42. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +106 -15
  43. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +2 -2
  44. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -2
  45. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +106 -15
  46. data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +1 -1
  47. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +2 -2
  48. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +1 -1
  49. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +106 -15
  50. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -2
  51. data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +1 -1
  52. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +84 -9
  53. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +2 -2
  54. data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +29 -1
  55. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +308 -36
  56. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +115 -12
  57. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +2 -2
  58. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +1 -1
  59. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +106 -15
  60. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +2 -2
  61. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  62. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +2 -2
  63. data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +17 -1
  64. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +156 -18
  65. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +115 -12
  66. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +2 -2
  67. data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +1 -1
  68. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +106 -15
  69. data/lib/google/cloud/dialogflow/cx/v3.rb +2 -0
  70. data/proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb +122 -0
  71. data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +135 -0
  72. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +62 -0
  73. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +2 -2
  74. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +4 -1
  75. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +58 -42
  76. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +3 -1
  77. metadata +21 -5
@@ -0,0 +1,51 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/common"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/dialogflow/cx/v3/version"
24
+
25
+ require "google/cloud/dialogflow/cx/v3/deployments/credentials"
26
+ require "google/cloud/dialogflow/cx/v3/deployments/paths"
27
+ require "google/cloud/dialogflow/cx/v3/deployments/client"
28
+
29
+ module Google
30
+ module Cloud
31
+ module Dialogflow
32
+ module CX
33
+ module V3
34
+ ##
35
+ # Service for managing {::Google::Cloud::Dialogflow::CX::V3::Deployment Deployments}.
36
+ #
37
+ # To load this service and instantiate a client:
38
+ #
39
+ # require "google/cloud/dialogflow/cx/v3/deployments"
40
+ # client = ::Google::Cloud::Dialogflow::CX::V3::Deployments::Client.new
41
+ #
42
+ module Deployments
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "deployments", "helpers.rb"
51
+ require "google/cloud/dialogflow/cx/v3/deployments/helpers" if ::File.file? helper_path
@@ -1,14 +1,14 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/entity_type.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
9
7
  require 'google/api/resource_pb'
10
8
  require 'google/protobuf/empty_pb'
11
9
  require 'google/protobuf/field_mask_pb'
10
+ require 'google/protobuf'
11
+
12
12
  Google::Protobuf::DescriptorPool.generated_pool.build do
13
13
  add_file("google/cloud/dialogflow/cx/v3/entity_type.proto", :syntax => :proto3) do
14
14
  add_message "google.cloud.dialogflow.cx.v3.EntityType" do
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing [EntityTypes][google.cloud.dialogflow.cx.v3.EntityType].
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
@@ -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::EntityTypes::Client.new
206
+ #
207
+ # # Create a request. To set request fields, pass in keyword arguments.
208
+ # request = Google::Cloud::Dialogflow::CX::V3::ListEntityTypesRequest.new
209
+ #
210
+ # # Call the list_entity_types method.
211
+ # result = client.list_entity_types 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::EntityType.
219
+ # p response
220
+ # end
221
+ #
201
222
  def list_entity_types 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
 
@@ -282,6 +305,21 @@ module Google
282
305
  #
283
306
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
284
307
  #
308
+ # @example Basic example
309
+ # require "google/cloud/dialogflow/cx/v3"
310
+ #
311
+ # # Create a client object. The client can be reused for multiple calls.
312
+ # client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
313
+ #
314
+ # # Create a request. To set request fields, pass in keyword arguments.
315
+ # request = Google::Cloud::Dialogflow::CX::V3::GetEntityTypeRequest.new
316
+ #
317
+ # # Call the get_entity_type method.
318
+ # result = client.get_entity_type request
319
+ #
320
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::EntityType.
321
+ # p result
322
+ #
285
323
  def get_entity_type request, options = nil
286
324
  raise ::ArgumentError, "request must be provided" if request.nil?
287
325
 
@@ -299,9 +337,11 @@ module Google
299
337
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
300
338
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
301
339
 
302
- header_params = {
303
- "name" => request.name
304
- }
340
+ header_params = {}
341
+ if request.name
342
+ header_params["name"] = request.name
343
+ end
344
+
305
345
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
306
346
  metadata[:"x-goog-request-params"] ||= request_params_header
307
347
 
@@ -369,6 +409,21 @@ module Google
369
409
  #
370
410
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
371
411
  #
412
+ # @example Basic example
413
+ # require "google/cloud/dialogflow/cx/v3"
414
+ #
415
+ # # Create a client object. The client can be reused for multiple calls.
416
+ # client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
417
+ #
418
+ # # Create a request. To set request fields, pass in keyword arguments.
419
+ # request = Google::Cloud::Dialogflow::CX::V3::CreateEntityTypeRequest.new
420
+ #
421
+ # # Call the create_entity_type method.
422
+ # result = client.create_entity_type request
423
+ #
424
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::EntityType.
425
+ # p result
426
+ #
372
427
  def create_entity_type request, options = nil
373
428
  raise ::ArgumentError, "request must be provided" if request.nil?
374
429
 
@@ -386,9 +441,11 @@ module Google
386
441
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
387
442
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
388
443
 
389
- header_params = {
390
- "parent" => request.parent
391
- }
444
+ header_params = {}
445
+ if request.parent
446
+ header_params["parent"] = request.parent
447
+ end
448
+
392
449
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
393
450
  metadata[:"x-goog-request-params"] ||= request_params_header
394
451
 
@@ -455,6 +512,21 @@ module Google
455
512
  #
456
513
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
457
514
  #
515
+ # @example Basic example
516
+ # require "google/cloud/dialogflow/cx/v3"
517
+ #
518
+ # # Create a client object. The client can be reused for multiple calls.
519
+ # client = Google::Cloud::Dialogflow::CX::V3::EntityTypes::Client.new
520
+ #
521
+ # # Create a request. To set request fields, pass in keyword arguments.
522
+ # request = Google::Cloud::Dialogflow::CX::V3::UpdateEntityTypeRequest.new
523
+ #
524
+ # # Call the update_entity_type method.
525
+ # result = client.update_entity_type request
526
+ #
527
+ # # The returned object is of type Google::Cloud::Dialogflow::CX::V3::EntityType.
528
+ # p result
529
+ #
458
530
  def update_entity_type request, options = nil
459
531
  raise ::ArgumentError, "request must be provided" if request.nil?
460
532
 
@@ -472,9 +544,11 @@ module Google
472
544
  gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
473
545
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
474
546
 
475
- header_params = {
476
- "entity_type.name" => request.entity_type.name
477
- }
547
+ header_params = {}
548
+ if request.entity_type&.name
549
+ header_params["entity_type.name"] = request.entity_type.name
550
+ end
551
+
478
552
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
479
553
  metadata[:"x-goog-request-params"] ||= request_params_header
480
554
 
@@ -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::EntityTypes::Client.new
622
+ #
623
+ # # Create a request. To set request fields, pass in keyword arguments.
624
+ # request = Google::Cloud::Dialogflow::CX::V3::DeleteEntityTypeRequest.new
625
+ #
626
+ # # Call the delete_entity_type method.
627
+ # result = client.delete_entity_type request
628
+ #
629
+ # # The returned object is of type Google::Protobuf::Empty.
630
+ # p result
631
+ #
543
632
  def delete_entity_type 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,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/environment.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'
@@ -12,6 +10,8 @@ require 'google/longrunning/operations_pb'
12
10
  require 'google/protobuf/empty_pb'
13
11
  require 'google/protobuf/field_mask_pb'
14
12
  require 'google/protobuf/timestamp_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/cloud/dialogflow/cx/v3/environment.proto", :syntax => :proto3) do
17
17
  add_message "google.cloud.dialogflow.cx.v3.Environment" do
@@ -20,10 +20,16 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
20
20
  optional :description, :string, 3
21
21
  repeated :version_configs, :message, 6, "google.cloud.dialogflow.cx.v3.Environment.VersionConfig"
22
22
  optional :update_time, :message, 5, "google.protobuf.Timestamp"
23
+ optional :test_cases_config, :message, 7, "google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig"
23
24
  end
24
25
  add_message "google.cloud.dialogflow.cx.v3.Environment.VersionConfig" do
25
26
  optional :version, :string, 1
26
27
  end
28
+ add_message "google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig" do
29
+ repeated :test_cases, :string, 1
30
+ optional :enable_continuous_run, :bool, 2
31
+ optional :enable_predeployment_run, :bool, 3
32
+ end
27
33
  add_message "google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest" do
28
34
  optional :parent, :string, 1
29
35
  optional :page_size, :int32, 2
@@ -85,6 +91,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
85
91
  repeated :continuous_test_results, :message, 1, "google.cloud.dialogflow.cx.v3.ContinuousTestResult"
86
92
  optional :next_page_token, :string, 2
87
93
  end
94
+ add_message "google.cloud.dialogflow.cx.v3.DeployFlowRequest" do
95
+ optional :environment, :string, 1
96
+ optional :flow_version, :string, 2
97
+ end
98
+ add_message "google.cloud.dialogflow.cx.v3.DeployFlowResponse" do
99
+ optional :environment, :message, 1, "google.cloud.dialogflow.cx.v3.Environment"
100
+ optional :deployment, :string, 2
101
+ end
102
+ add_message "google.cloud.dialogflow.cx.v3.DeployFlowMetadata" do
103
+ repeated :test_errors, :message, 1, "google.cloud.dialogflow.cx.v3.TestError"
104
+ end
88
105
  end
89
106
  end
90
107
 
@@ -95,6 +112,7 @@ module Google
95
112
  module V3
96
113
  Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment").msgclass
97
114
  Environment::VersionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment.VersionConfig").msgclass
115
+ Environment::TestCasesConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig").msgclass
98
116
  ListEnvironmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest").msgclass
99
117
  ListEnvironmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse").msgclass
100
118
  GetEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetEnvironmentRequest").msgclass
@@ -110,6 +128,9 @@ module Google
110
128
  RunContinuousTestMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata").msgclass
111
129
  ListContinuousTestResultsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListContinuousTestResultsRequest").msgclass
112
130
  ListContinuousTestResultsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListContinuousTestResultsResponse").msgclass
131
+ DeployFlowRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeployFlowRequest").msgclass
132
+ DeployFlowResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeployFlowResponse").msgclass
133
+ DeployFlowMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeployFlowMetadata").msgclass
113
134
  end
114
135
  end
115
136
  end
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing [Environments][google.cloud.dialogflow.cx.v3.Environment].
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,17 +39,49 @@ module Google
39
39
  # Retrieves the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
40
40
  rpc :GetEnvironment, ::Google::Cloud::Dialogflow::CX::V3::GetEnvironmentRequest, ::Google::Cloud::Dialogflow::CX::V3::Environment
41
41
  # Creates an [Environment][google.cloud.dialogflow.cx.v3.Environment] in the specified [Agent][google.cloud.dialogflow.cx.v3.Agent].
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`: An empty [Struct
48
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
49
+ # - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
42
50
  rpc :CreateEnvironment, ::Google::Cloud::Dialogflow::CX::V3::CreateEnvironmentRequest, ::Google::Longrunning::Operation
43
51
  # Updates the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
52
+ #
53
+ # This method is a [long-running
54
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
55
+ # The returned `Operation` type has the following method-specific fields:
56
+ #
57
+ # - `metadata`: An empty [Struct
58
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
59
+ # - `response`: [Environment][google.cloud.dialogflow.cx.v3.Environment]
44
60
  rpc :UpdateEnvironment, ::Google::Cloud::Dialogflow::CX::V3::UpdateEnvironmentRequest, ::Google::Longrunning::Operation
45
61
  # Deletes the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
46
62
  rpc :DeleteEnvironment, ::Google::Cloud::Dialogflow::CX::V3::DeleteEnvironmentRequest, ::Google::Protobuf::Empty
47
63
  # Looks up the history of the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
48
64
  rpc :LookupEnvironmentHistory, ::Google::Cloud::Dialogflow::CX::V3::LookupEnvironmentHistoryRequest, ::Google::Cloud::Dialogflow::CX::V3::LookupEnvironmentHistoryResponse
49
65
  # Kicks off a continuous test under the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
66
+ #
67
+ # This method is a [long-running
68
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
69
+ # The returned `Operation` type has the following method-specific fields:
70
+ #
71
+ # - `metadata`: [RunContinuousTestMetadata][google.cloud.dialogflow.cx.v3.RunContinuousTestMetadata]
72
+ # - `response`: [RunContinuousTestResponse][google.cloud.dialogflow.cx.v3.RunContinuousTestResponse]
50
73
  rpc :RunContinuousTest, ::Google::Cloud::Dialogflow::CX::V3::RunContinuousTestRequest, ::Google::Longrunning::Operation
51
74
  # Fetches a list of continuous test results for a given environment.
52
75
  rpc :ListContinuousTestResults, ::Google::Cloud::Dialogflow::CX::V3::ListContinuousTestResultsRequest, ::Google::Cloud::Dialogflow::CX::V3::ListContinuousTestResultsResponse
76
+ # Deploys a flow to the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
77
+ #
78
+ # This method is a [long-running
79
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
80
+ # The returned `Operation` type has the following method-specific fields:
81
+ #
82
+ # - `metadata`: [DeployFlowMetadata][google.cloud.dialogflow.cx.v3.DeployFlowMetadata]
83
+ # - `response`: [DeployFlowResponse][google.cloud.dialogflow.cx.v3.DeployFlowResponse]
84
+ rpc :DeployFlow, ::Google::Cloud::Dialogflow::CX::V3::DeployFlowRequest, ::Google::Longrunning::Operation
53
85
  end
54
86
 
55
87
  Stub = Service.rpc_stub_class