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

Sign up to get free protection for your applications and to get access to all the features.
Files changed (54) 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 +9 -0
  6. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +2 -2
  7. data/lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb +63 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb +49 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +462 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/deployments/credentials.rb +54 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/deployments/paths.rb +79 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/deployments.rb +51 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +2 -2
  14. data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +1 -1
  15. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +23 -2
  16. data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +33 -1
  17. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +112 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +21 -0
  19. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +2 -2
  20. data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +1 -1
  21. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +2 -2
  22. data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +26 -1
  23. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +25 -0
  24. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +2 -2
  25. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +2 -2
  26. data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +1 -1
  27. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +2 -2
  28. data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +1 -1
  29. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +2 -2
  30. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -2
  31. data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +1 -1
  32. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +2 -2
  33. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +1 -1
  34. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +3 -2
  35. data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +1 -1
  36. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +2 -2
  37. data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +23 -1
  38. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +22 -0
  39. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +2 -2
  40. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +1 -1
  41. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +2 -2
  42. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  43. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +2 -2
  44. data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +17 -1
  45. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +16 -0
  46. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +2 -2
  47. data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +1 -1
  48. data/lib/google/cloud/dialogflow/cx/v3.rb +1 -0
  49. data/proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb +135 -0
  50. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +62 -0
  51. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +4 -1
  52. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +4 -0
  53. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +1 -0
  54. metadata +9 -2
@@ -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
@@ -310,6 +310,14 @@ module Google
310
310
  ##
311
311
  # Creates an {::Google::Cloud::Dialogflow::CX::V3::Environment Environment} in the specified {::Google::Cloud::Dialogflow::CX::V3::Agent Agent}.
312
312
  #
313
+ # This method is a [long-running
314
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
315
+ # The returned `Operation` type has the following method-specific fields:
316
+ #
317
+ # - `metadata`: An empty [Struct
318
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
319
+ # - `response`: {::Google::Cloud::Dialogflow::CX::V3::Environment Environment}
320
+ #
313
321
  # @overload create_environment(request, options = nil)
314
322
  # Pass arguments to `create_environment` via a request object, either of type
315
323
  # {::Google::Cloud::Dialogflow::CX::V3::CreateEnvironmentRequest} or an equivalent Hash.
@@ -382,6 +390,14 @@ module Google
382
390
  ##
383
391
  # Updates the specified {::Google::Cloud::Dialogflow::CX::V3::Environment Environment}.
384
392
  #
393
+ # This method is a [long-running
394
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
395
+ # The returned `Operation` type has the following method-specific fields:
396
+ #
397
+ # - `metadata`: An empty [Struct
398
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
399
+ # - `response`: {::Google::Cloud::Dialogflow::CX::V3::Environment Environment}
400
+ #
385
401
  # @overload update_environment(request, options = nil)
386
402
  # Pass arguments to `update_environment` via a request object, either of type
387
403
  # {::Google::Cloud::Dialogflow::CX::V3::UpdateEnvironmentRequest} or an equivalent Hash.
@@ -599,6 +615,13 @@ module Google
599
615
  ##
600
616
  # Kicks off a continuous test under the specified {::Google::Cloud::Dialogflow::CX::V3::Environment Environment}.
601
617
  #
618
+ # This method is a [long-running
619
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
620
+ # The returned `Operation` type has the following method-specific fields:
621
+ #
622
+ # - `metadata`: {::Google::Cloud::Dialogflow::CX::V3::RunContinuousTestMetadata RunContinuousTestMetadata}
623
+ # - `response`: {::Google::Cloud::Dialogflow::CX::V3::RunContinuousTestResponse RunContinuousTestResponse}
624
+ #
602
625
  # @overload run_continuous_test(request, options = nil)
603
626
  # Pass arguments to `run_continuous_test` via a request object, either of type
604
627
  # {::Google::Cloud::Dialogflow::CX::V3::RunContinuousTestRequest} or an equivalent Hash.
@@ -742,6 +765,88 @@ module Google
742
765
  raise ::Google::Cloud::Error.from_error(e)
743
766
  end
744
767
 
768
+ ##
769
+ # Deploys a flow to the specified {::Google::Cloud::Dialogflow::CX::V3::Environment Environment}.
770
+ #
771
+ # This method is a [long-running
772
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
773
+ # The returned `Operation` type has the following method-specific fields:
774
+ #
775
+ # - `metadata`: {::Google::Cloud::Dialogflow::CX::V3::DeployFlowMetadata DeployFlowMetadata}
776
+ # - `response`: {::Google::Cloud::Dialogflow::CX::V3::DeployFlowResponse DeployFlowResponse}
777
+ #
778
+ # @overload deploy_flow(request, options = nil)
779
+ # Pass arguments to `deploy_flow` via a request object, either of type
780
+ # {::Google::Cloud::Dialogflow::CX::V3::DeployFlowRequest} or an equivalent Hash.
781
+ #
782
+ # @param request [::Google::Cloud::Dialogflow::CX::V3::DeployFlowRequest, ::Hash]
783
+ # A request object representing the call parameters. Required. To specify no
784
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
785
+ # @param options [::Gapic::CallOptions, ::Hash]
786
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
787
+ #
788
+ # @overload deploy_flow(environment: nil, flow_version: nil)
789
+ # Pass arguments to `deploy_flow` via keyword arguments. Note that at
790
+ # least one keyword argument is required. To specify no parameters, or to keep all
791
+ # the default parameter values, pass an empty Hash as a request object (see above).
792
+ #
793
+ # @param environment [::String]
794
+ # Required. The environment to deploy the flow to.
795
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
796
+ # environments/<Environment ID>`.
797
+ # @param flow_version [::String]
798
+ # Required. The flow version to deploy.
799
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>/
800
+ # flows/<Flow ID>/versions/<Version ID>`.
801
+ #
802
+ # @yield [response, operation] Access the result along with the RPC operation
803
+ # @yieldparam response [::Gapic::Operation]
804
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
805
+ #
806
+ # @return [::Gapic::Operation]
807
+ #
808
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
809
+ #
810
+ def deploy_flow request, options = nil
811
+ raise ::ArgumentError, "request must be provided" if request.nil?
812
+
813
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Dialogflow::CX::V3::DeployFlowRequest
814
+
815
+ # Converts hash and nil to an options object
816
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
817
+
818
+ # Customize the options with defaults
819
+ metadata = @config.rpcs.deploy_flow.metadata.to_h
820
+
821
+ # Set x-goog-api-client and x-goog-user-project headers
822
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
823
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
824
+ gapic_version: ::Google::Cloud::Dialogflow::CX::V3::VERSION
825
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
826
+
827
+ header_params = {
828
+ "environment" => request.environment
829
+ }
830
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
831
+ metadata[:"x-goog-request-params"] ||= request_params_header
832
+
833
+ options.apply_defaults timeout: @config.rpcs.deploy_flow.timeout,
834
+ metadata: metadata,
835
+ retry_policy: @config.rpcs.deploy_flow.retry_policy
836
+
837
+ options.apply_defaults timeout: @config.timeout,
838
+ metadata: @config.metadata,
839
+ retry_policy: @config.retry_policy
840
+
841
+ @environments_stub.call_rpc :deploy_flow, request, options: options do |response, operation|
842
+ response = ::Gapic::Operation.new response, @operations_client, options: options
843
+ yield response, operation if block_given?
844
+ return response
845
+ end
846
+ rescue ::GRPC::BadStatus => e
847
+ raise ::Google::Cloud::Error.from_error(e)
848
+ end
849
+
745
850
  ##
746
851
  # Configuration class for the Environments API.
747
852
  #
@@ -917,6 +1022,11 @@ module Google
917
1022
  # @return [::Gapic::Config::Method]
918
1023
  #
919
1024
  attr_reader :list_continuous_test_results
1025
+ ##
1026
+ # RPC-specific configuration for `deploy_flow`
1027
+ # @return [::Gapic::Config::Method]
1028
+ #
1029
+ attr_reader :deploy_flow
920
1030
 
921
1031
  # @private
922
1032
  def initialize parent_rpcs = nil
@@ -936,6 +1046,8 @@ module Google
936
1046
  @run_continuous_test = ::Gapic::Config::Method.new run_continuous_test_config
937
1047
  list_continuous_test_results_config = parent_rpcs.list_continuous_test_results if parent_rpcs.respond_to? :list_continuous_test_results
938
1048
  @list_continuous_test_results = ::Gapic::Config::Method.new list_continuous_test_results_config
1049
+ deploy_flow_config = parent_rpcs.deploy_flow if parent_rpcs.respond_to? :deploy_flow
1050
+ @deploy_flow = ::Gapic::Config::Method.new deploy_flow_config
939
1051
 
940
1052
  yield self if block_given?
941
1053
  end
@@ -65,6 +65,27 @@ module Google
65
65
  "projects/#{project}/locations/#{location}/agents/#{agent}/environments/#{environment}"
66
66
  end
67
67
 
68
+ ##
69
+ # Create a fully-qualified TestCase resource string.
70
+ #
71
+ # The resource will be in the following format:
72
+ #
73
+ # `projects/{project}/locations/{location}/agents/{agent}/testCases/{test_case}`
74
+ #
75
+ # @param project [String]
76
+ # @param location [String]
77
+ # @param agent [String]
78
+ # @param test_case [String]
79
+ #
80
+ # @return [::String]
81
+ def test_case_path project:, location:, agent:, test_case:
82
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
83
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
84
+ raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
85
+
86
+ "projects/#{project}/locations/#{location}/agents/#{agent}/testCases/#{test_case}"
87
+ end
88
+
68
89
  ##
69
90
  # Create a fully-qualified Version resource string.
70
91
  #
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/experiment.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'
@@ -11,6 +9,8 @@ require 'google/protobuf/duration_pb'
11
9
  require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
13
11
  require 'google/protobuf/timestamp_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/dialogflow/cx/v3/experiment.proto", :syntax => :proto3) do
16
16
  add_message "google.cloud.dialogflow.cx.v3.Experiment" do
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing [Experiments][google.cloud.dialogflow.cx.v3.Experiment].
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
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/flow.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'
@@ -14,6 +12,8 @@ require 'google/longrunning/operations_pb'
14
12
  require 'google/protobuf/empty_pb'
15
13
  require 'google/protobuf/field_mask_pb'
16
14
  require 'google/protobuf/timestamp_pb'
15
+ require 'google/protobuf'
16
+
17
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  add_file("google/cloud/dialogflow/cx/v3/flow.proto", :syntax => :proto3) do
19
19
  add_message "google.cloud.dialogflow.cx.v3.NluSettings" do
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing [Flows][google.cloud.dialogflow.cx.v3.Flow].
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
@@ -55,6 +55,15 @@ module Google
55
55
  # Trains the specified flow. Note that only the flow in 'draft' environment
56
56
  # is trained.
57
57
  #
58
+ # This method is a [long-running
59
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
60
+ # The returned `Operation` type has the following method-specific fields:
61
+ #
62
+ # - `metadata`: An empty [Struct
63
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
64
+ # - `response`: An [Empty
65
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
66
+ #
58
67
  # Note: You should always train a flow prior to sending it queries. See the
59
68
  # [training
60
69
  # documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -68,12 +77,28 @@ module Google
68
77
  rpc :GetFlowValidationResult, ::Google::Cloud::Dialogflow::CX::V3::GetFlowValidationResultRequest, ::Google::Cloud::Dialogflow::CX::V3::FlowValidationResult
69
78
  # Imports the specified flow to the specified agent from a binary file.
70
79
  #
80
+ # This method is a [long-running
81
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
82
+ # The returned `Operation` type has the following method-specific fields:
83
+ #
84
+ # - `metadata`: An empty [Struct
85
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
86
+ # - `response`: [ImportFlowResponse][google.cloud.dialogflow.cx.v3.ImportFlowResponse]
87
+ #
71
88
  # Note: You should always train a flow prior to sending it queries. See the
72
89
  # [training
73
90
  # documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
74
91
  rpc :ImportFlow, ::Google::Cloud::Dialogflow::CX::V3::ImportFlowRequest, ::Google::Longrunning::Operation
75
92
  # Exports the specified flow to a binary file.
76
93
  #
94
+ # This method is a [long-running
95
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
96
+ # The returned `Operation` type has the following method-specific fields:
97
+ #
98
+ # - `metadata`: An empty [Struct
99
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
100
+ # - `response`: [ExportFlowResponse][google.cloud.dialogflow.cx.v3.ExportFlowResponse]
101
+ #
77
102
  # Note that resources (e.g. intents, entities, webhooks) that the flow
78
103
  # references will also be exported.
79
104
  rpc :ExportFlow, ::Google::Cloud::Dialogflow::CX::V3::ExportFlowRequest, ::Google::Longrunning::Operation
@@ -596,6 +596,15 @@ module Google
596
596
  # Trains the specified flow. Note that only the flow in 'draft' environment
597
597
  # is trained.
598
598
  #
599
+ # This method is a [long-running
600
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
601
+ # The returned `Operation` type has the following method-specific fields:
602
+ #
603
+ # - `metadata`: An empty [Struct
604
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
605
+ # - `response`: An [Empty
606
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#empty)
607
+ #
599
608
  # Note: You should always train a flow prior to sending it queries. See the
600
609
  # [training
601
610
  # documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -818,6 +827,14 @@ module Google
818
827
  ##
819
828
  # Imports the specified flow to the specified agent from a binary file.
820
829
  #
830
+ # This method is a [long-running
831
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
832
+ # The returned `Operation` type has the following method-specific fields:
833
+ #
834
+ # - `metadata`: An empty [Struct
835
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
836
+ # - `response`: {::Google::Cloud::Dialogflow::CX::V3::ImportFlowResponse ImportFlowResponse}
837
+ #
821
838
  # Note: You should always train a flow prior to sending it queries. See the
822
839
  # [training
823
840
  # documentation](https://cloud.google.com/dialogflow/cx/docs/concept/training).
@@ -900,6 +917,14 @@ module Google
900
917
  ##
901
918
  # Exports the specified flow to a binary file.
902
919
  #
920
+ # This method is a [long-running
921
+ # operation](https://cloud.google.com/dialogflow/cx/docs/how/long-running-operation).
922
+ # The returned `Operation` type has the following method-specific fields:
923
+ #
924
+ # - `metadata`: An empty [Struct
925
+ # message](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#struct)
926
+ # - `response`: {::Google::Cloud::Dialogflow::CX::V3::ExportFlowResponse ExportFlowResponse}
927
+ #
903
928
  # Note that resources (e.g. intents, entities, webhooks) that the flow
904
929
  # references will also be exported.
905
930
  #
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/fulfillment.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/resource_pb'
7
5
  require 'google/cloud/dialogflow/cx/v3/advanced_settings_pb'
8
6
  require 'google/cloud/dialogflow/cx/v3/response_message_pb'
9
7
  require 'google/protobuf/struct_pb'
10
8
  require 'google/api/annotations_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/dialogflow/cx/v3/fulfillment.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.dialogflow.cx.v3.Fulfillment" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/intent.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'
@@ -11,6 +9,8 @@ require 'google/longrunning/operations_pb'
11
9
  require 'google/protobuf/empty_pb'
12
10
  require 'google/protobuf/field_mask_pb'
13
11
  require 'google/protobuf/timestamp_pb'
12
+ require 'google/protobuf'
13
+
14
14
  Google::Protobuf::DescriptorPool.generated_pool.build do
15
15
  add_file("google/cloud/dialogflow/cx/v3/intent.proto", :syntax => :proto3) do
16
16
  add_message "google.cloud.dialogflow.cx.v3.Intent" do
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing [Intents][google.cloud.dialogflow.cx.v3.Intent].
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
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/page.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/cloud/dialogflow/cx/v3/fulfillment_pb'
12
10
  require 'google/protobuf/empty_pb'
13
11
  require 'google/protobuf/field_mask_pb'
14
12
  require 'google/protobuf/struct_pb'
13
+ require 'google/protobuf'
14
+
15
15
  Google::Protobuf::DescriptorPool.generated_pool.build do
16
16
  add_file("google/cloud/dialogflow/cx/v3/page.proto", :syntax => :proto3) do
17
17
  add_message "google.cloud.dialogflow.cx.v3.Page" do
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing [Pages][google.cloud.dialogflow.cx.v3.Page].
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
@@ -1,11 +1,11 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/response_message.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/protobuf/struct_pb'
8
6
  require 'google/api/annotations_pb'
7
+ require 'google/protobuf'
8
+
9
9
  Google::Protobuf::DescriptorPool.generated_pool.build do
10
10
  add_file("google/cloud/dialogflow/cx/v3/response_message.proto", :syntax => :proto3) do
11
11
  add_message "google.cloud.dialogflow.cx.v3.ResponseMessage" do
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/security_settings.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/longrunning/operations_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/security_settings.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest" do
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing security settings for Dialogflow.
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
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/session_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'
@@ -10,6 +8,8 @@ require 'google/api/resource_pb'
10
8
  require 'google/cloud/dialogflow/cx/v3/entity_type_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/session_entity_type.proto", :syntax => :proto3) do
15
15
  add_message "google.cloud.dialogflow.cx.v3.SessionEntityType" do
@@ -28,7 +28,7 @@ module Google
28
28
  # Service for managing [SessionEntityTypes][google.cloud.dialogflow.cx.v3.SessionEntityType].
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
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/dialogflow/cx/v3/session.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/field_behavior_pb'
8
6
  require 'google/api/resource_pb'
@@ -18,6 +16,8 @@ require 'google/protobuf/struct_pb'
18
16
  require 'google/rpc/status_pb'
19
17
  require 'google/type/latlng_pb'
20
18
  require 'google/api/client_pb'
19
+ require 'google/protobuf'
20
+
21
21
  Google::Protobuf::DescriptorPool.generated_pool.build do
22
22
  add_file("google/cloud/dialogflow/cx/v3/session.proto", :syntax => :proto3) do
23
23
  add_message "google.cloud.dialogflow.cx.v3.DetectIntentRequest" do
@@ -106,6 +106,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
106
106
  optional :trigger_intent, :string, 11
107
107
  optional :transcript, :string, 12
108
108
  optional :trigger_event, :string, 14
109
+ optional :dtmf, :message, 23, "google.cloud.dialogflow.cx.v3.DtmfInput"
109
110
  end
110
111
  end
111
112
  add_message "google.cloud.dialogflow.cx.v3.TextInput" do
@@ -30,7 +30,7 @@ module Google
30
30
  # user intent and respond.
31
31
  class Service
32
32
 
33
- include GRPC::GenericService
33
+ include ::GRPC::GenericService
34
34
 
35
35
  self.marshal_class_method = :encode
36
36
  self.unmarshal_class_method = :decode