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
@@ -0,0 +1,75 @@
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
+
20
+ module Google
21
+ module Cloud
22
+ module Dialogflow
23
+ module CX
24
+ module V3
25
+ module Changelogs
26
+ # Path helper methods for the Changelogs API.
27
+ module Paths
28
+ ##
29
+ # Create a fully-qualified Agent resource string.
30
+ #
31
+ # The resource will be in the following format:
32
+ #
33
+ # `projects/{project}/locations/{location}/agents/{agent}`
34
+ #
35
+ # @param project [String]
36
+ # @param location [String]
37
+ # @param agent [String]
38
+ #
39
+ # @return [::String]
40
+ def agent_path project:, location:, agent:
41
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
42
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
43
+
44
+ "projects/#{project}/locations/#{location}/agents/#{agent}"
45
+ end
46
+
47
+ ##
48
+ # Create a fully-qualified Changelog resource string.
49
+ #
50
+ # The resource will be in the following format:
51
+ #
52
+ # `projects/{project}/locations/{location}/agents/{agent}/changelogs/{changelog}`
53
+ #
54
+ # @param project [String]
55
+ # @param location [String]
56
+ # @param agent [String]
57
+ # @param changelog [String]
58
+ #
59
+ # @return [::String]
60
+ def changelog_path project:, location:, agent:, changelog:
61
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
62
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
63
+ raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
64
+
65
+ "projects/#{project}/locations/#{location}/agents/#{agent}/changelogs/#{changelog}"
66
+ end
67
+
68
+ extend self
69
+ end
70
+ end
71
+ end
72
+ end
73
+ end
74
+ end
75
+ end
@@ -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/changelogs/credentials"
26
+ require "google/cloud/dialogflow/cx/v3/changelogs/paths"
27
+ require "google/cloud/dialogflow/cx/v3/changelogs/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::Changelog Changelogs}.
36
+ #
37
+ # To load this service and instantiate a client:
38
+ #
39
+ # require "google/cloud/dialogflow/cx/v3/changelogs"
40
+ # client = ::Google::Cloud::Dialogflow::CX::V3::Changelogs::Client.new
41
+ #
42
+ module Changelogs
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+
50
+ helper_path = ::File.join __dir__, "changelogs", "helpers.rb"
51
+ require "google/cloud/dialogflow/cx/v3/changelogs/helpers" if ::File.file? helper_path
@@ -0,0 +1,63 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # source: google/cloud/dialogflow/cx/v3/deployment.proto
3
+
4
+ require 'google/api/annotations_pb'
5
+ require 'google/api/client_pb'
6
+ require 'google/api/field_behavior_pb'
7
+ require 'google/api/resource_pb'
8
+ require 'google/protobuf/empty_pb'
9
+ require 'google/protobuf/field_mask_pb'
10
+ require 'google/protobuf/timestamp_pb'
11
+ require 'google/protobuf'
12
+
13
+ Google::Protobuf::DescriptorPool.generated_pool.build do
14
+ add_file("google/cloud/dialogflow/cx/v3/deployment.proto", :syntax => :proto3) do
15
+ add_message "google.cloud.dialogflow.cx.v3.Deployment" do
16
+ optional :name, :string, 1
17
+ optional :flow_version, :string, 2
18
+ optional :state, :enum, 3, "google.cloud.dialogflow.cx.v3.Deployment.State"
19
+ optional :result, :message, 4, "google.cloud.dialogflow.cx.v3.Deployment.Result"
20
+ optional :start_time, :message, 5, "google.protobuf.Timestamp"
21
+ optional :end_time, :message, 6, "google.protobuf.Timestamp"
22
+ end
23
+ add_message "google.cloud.dialogflow.cx.v3.Deployment.Result" do
24
+ repeated :deployment_test_results, :string, 1
25
+ optional :experiment, :string, 2
26
+ end
27
+ add_enum "google.cloud.dialogflow.cx.v3.Deployment.State" do
28
+ value :STATE_UNSPECIFIED, 0
29
+ value :RUNNING, 1
30
+ value :SUCCEEDED, 2
31
+ value :FAILED, 3
32
+ end
33
+ add_message "google.cloud.dialogflow.cx.v3.ListDeploymentsRequest" do
34
+ optional :parent, :string, 1
35
+ optional :page_size, :int32, 2
36
+ optional :page_token, :string, 3
37
+ end
38
+ add_message "google.cloud.dialogflow.cx.v3.ListDeploymentsResponse" do
39
+ repeated :deployments, :message, 1, "google.cloud.dialogflow.cx.v3.Deployment"
40
+ optional :next_page_token, :string, 2
41
+ end
42
+ add_message "google.cloud.dialogflow.cx.v3.GetDeploymentRequest" do
43
+ optional :name, :string, 1
44
+ end
45
+ end
46
+ end
47
+
48
+ module Google
49
+ module Cloud
50
+ module Dialogflow
51
+ module CX
52
+ module V3
53
+ Deployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Deployment").msgclass
54
+ Deployment::Result = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Deployment.Result").msgclass
55
+ Deployment::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Deployment.State").enummodule
56
+ ListDeploymentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListDeploymentsRequest").msgclass
57
+ ListDeploymentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListDeploymentsResponse").msgclass
58
+ GetDeploymentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetDeploymentRequest").msgclass
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
@@ -0,0 +1,49 @@
1
+ # Generated by the protocol buffer compiler. DO NOT EDIT!
2
+ # Source: google/cloud/dialogflow/cx/v3/deployment.proto for package 'Google.Cloud.Dialogflow.CX.V3'
3
+ # Original file comments:
4
+ # Copyright 2021 Google LLC
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # Unless required by applicable law or agreed to in writing, software
13
+ # distributed under the License is distributed on an "AS IS" BASIS,
14
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15
+ # See the License for the specific language governing permissions and
16
+ # limitations under the License.
17
+ #
18
+
19
+ require 'grpc'
20
+ require 'google/cloud/dialogflow/cx/v3/deployment_pb'
21
+
22
+ module Google
23
+ module Cloud
24
+ module Dialogflow
25
+ module CX
26
+ module V3
27
+ module Deployments
28
+ # Service for managing [Deployments][google.cloud.dialogflow.cx.v3.Deployment].
29
+ class Service
30
+
31
+ include ::GRPC::GenericService
32
+
33
+ self.marshal_class_method = :encode
34
+ self.unmarshal_class_method = :decode
35
+ self.service_name = 'google.cloud.dialogflow.cx.v3.Deployments'
36
+
37
+ # Returns the list of all deployments in the specified [Environment][google.cloud.dialogflow.cx.v3.Environment].
38
+ rpc :ListDeployments, ::Google::Cloud::Dialogflow::CX::V3::ListDeploymentsRequest, ::Google::Cloud::Dialogflow::CX::V3::ListDeploymentsResponse
39
+ # Retrieves the specified [Deployment][google.cloud.dialogflow.cx.v3.Deployment].
40
+ rpc :GetDeployment, ::Google::Cloud::Dialogflow::CX::V3::GetDeploymentRequest, ::Google::Cloud::Dialogflow::CX::V3::Deployment
41
+ end
42
+
43
+ Stub = Service.rpc_stub_class
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end