google-cloud-dialogflow-cx-v3 0.8.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +10 -5
  3. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +14 -0
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +3 -0
  5. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +14 -0
  6. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +14 -0
  7. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +14 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +6 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +14 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +3 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +42 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +14 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +14 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +3 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +14 -0
  16. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +14 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +14 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +14 -0
  19. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +14 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +14 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +3 -0
  22. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +14 -0
  23. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  24. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +14 -0
  25. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +3 -0
  26. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +14 -0
  27. data/lib/google/cloud/dialogflow/cx/v3.rb +1 -1
  28. data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +7 -1
  29. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +1 -1
  30. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +15 -0
  31. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +16 -2
  32. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +3 -0
  33. metadata +32 -12
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b76026db42b4fc1e8113484497ba7a842ee3d00415ed5538c423ed71dddcddd8
4
- data.tar.gz: 615ce2ea0b51fb6f66d5ec877db499a876f9936d30dfe6fbf98a7cd9da20b6ce
3
+ metadata.gz: 23b15c869fca6764b140dd367e9c77f971221508d398a1002582a9d4ecf75dfc
4
+ data.tar.gz: 6be9a416b00416242ebb76e1df19ede3ee5d77cde9b454c4d4e5dddeb9c860fb
5
5
  SHA512:
6
- metadata.gz: b0cd9fef3bc9bb1e055c7fd3c28b7aefb37438025aa732ef3e262c76fa9d12b9fe46b0efef273ec8e0e8d7fea7f0ee88e65f64e2bcdc773a4b1b4eca32793ee8
7
- data.tar.gz: bd42cc5a5405cdca011b62969c8fc41348985acd27f1fb62b80d0c466e281a364810c03203e9c3c280d929db35a87f5e89510182cc5625b97c614d9441a4319c
6
+ metadata.gz: 1ad8c63e4530e54fe022dc2ab3e156639c71fc6da734a696bf1c0da54178d9525fcb99c45dfa2072c087cf5fbdd412a0013390abe0d0f0783a47309a6c38cc60
7
+ data.tar.gz: df5b6fd80f7ebdc9516e541941939aedd57d81c9caab3e88c5e1ad7f4a24cd87508886fcc6f260bdbe85e0c3199f31cc00f61fbfcb6f3b3a5fb0071cd634a0ba
data/README.md CHANGED
@@ -69,16 +69,21 @@ module GRPC
69
69
  end
70
70
  ```
71
71
 
72
+
73
+ ## Google Cloud Samples
74
+
75
+ To browse ready to use code samples check [Google Cloud Samples](https://cloud.google.com/docs/samples).
76
+
72
77
  ## Supported Ruby Versions
73
78
 
74
- This library is supported on Ruby 2.5+.
79
+ This library is supported on Ruby 2.6+.
75
80
 
76
81
  Google provides official support for Ruby versions that are actively supported
77
82
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
78
- in security maintenance, and not end of life. Currently, this means Ruby 2.5
79
- and later. Older versions of Ruby _may_ still work, but are unsupported and not
80
- recommended. See https://www.ruby-lang.org/en/downloads/branches/ for details
81
- about the Ruby support schedule.
83
+ in security maintenance, and not end of life. Older versions of Ruby _may_
84
+ still work, but are unsupported and not recommended. See
85
+ https://www.ruby-lang.org/en/downloads/branches/ for details about the Ruby
86
+ support schedule.
82
87
 
83
88
  ## Which client should I use?
84
89
 
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/agent_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -145,6 +146,12 @@ module Google
145
146
  config.endpoint = @config.endpoint
146
147
  end
147
148
 
149
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
150
+ config.credentials = credentials
151
+ config.quota_project = @quota_project_id
152
+ config.endpoint = @config.endpoint
153
+ end
154
+
148
155
  @agents_stub = ::Gapic::ServiceStub.new(
149
156
  ::Google::Cloud::Dialogflow::CX::V3::Agents::Stub,
150
157
  credentials: credentials,
@@ -161,6 +168,13 @@ module Google
161
168
  #
162
169
  attr_reader :operations_client
163
170
 
171
+ ##
172
+ # Get the associated client for mix-in of the Locations.
173
+ #
174
+ # @return [Google::Cloud::Location::Locations::Client]
175
+ #
176
+ attr_reader :location_client
177
+
164
178
  # Service calls
165
179
 
166
180
  ##
@@ -96,6 +96,9 @@ module Google
96
96
  channel_args: @config.channel_args,
97
97
  interceptors: @config.interceptors
98
98
  )
99
+
100
+ # Used by an LRO wrapper for some methods of this service
101
+ @operations_client = self
99
102
  end
100
103
 
101
104
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/changelog_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -139,6 +140,12 @@ module Google
139
140
  @quota_project_id = @config.quota_project
140
141
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
143
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
142
149
  @changelogs_stub = ::Gapic::ServiceStub.new(
143
150
  ::Google::Cloud::Dialogflow::CX::V3::Changelogs::Stub,
144
151
  credentials: credentials,
@@ -148,6 +155,13 @@ module Google
148
155
  )
149
156
  end
150
157
 
158
+ ##
159
+ # Get the associated client for mix-in of the Locations.
160
+ #
161
+ # @return [Google::Cloud::Location::Locations::Client]
162
+ #
163
+ attr_reader :location_client
164
+
151
165
  # Service calls
152
166
 
153
167
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/deployment_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -139,6 +140,12 @@ module Google
139
140
  @quota_project_id = @config.quota_project
140
141
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
143
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
142
149
  @deployments_stub = ::Gapic::ServiceStub.new(
143
150
  ::Google::Cloud::Dialogflow::CX::V3::Deployments::Stub,
144
151
  credentials: credentials,
@@ -148,6 +155,13 @@ module Google
148
155
  )
149
156
  end
150
157
 
158
+ ##
159
+ # Get the associated client for mix-in of the Locations.
160
+ #
161
+ # @return [Google::Cloud::Location::Locations::Client]
162
+ #
163
+ attr_reader :location_client
164
+
151
165
  # Service calls
152
166
 
153
167
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/entity_type_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -139,6 +140,12 @@ module Google
139
140
  @quota_project_id = @config.quota_project
140
141
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
143
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
142
149
  @entity_types_stub = ::Gapic::ServiceStub.new(
143
150
  ::Google::Cloud::Dialogflow::CX::V3::EntityTypes::Stub,
144
151
  credentials: credentials,
@@ -148,6 +155,13 @@ module Google
148
155
  )
149
156
  end
150
157
 
158
+ ##
159
+ # Get the associated client for mix-in of the Locations.
160
+ #
161
+ # @return [Google::Cloud::Location::Locations::Client]
162
+ #
163
+ attr_reader :location_client
164
+
151
165
  # Service calls
152
166
 
153
167
  ##
@@ -8,6 +8,7 @@ require 'google/api/client_pb'
8
8
  require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
10
  require 'google/cloud/dialogflow/cx/v3/test_case_pb'
11
+ require 'google/cloud/dialogflow/cx/v3/webhook_pb'
11
12
  require 'google/longrunning/operations_pb'
12
13
  require 'google/protobuf/empty_pb'
13
14
  require 'google/protobuf/field_mask_pb'
@@ -22,6 +23,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
22
23
  repeated :version_configs, :message, 6, "google.cloud.dialogflow.cx.v3.Environment.VersionConfig"
23
24
  optional :update_time, :message, 5, "google.protobuf.Timestamp"
24
25
  optional :test_cases_config, :message, 7, "google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig"
26
+ optional :webhook_config, :message, 10, "google.cloud.dialogflow.cx.v3.Environment.WebhookConfig"
25
27
  end
26
28
  add_message "google.cloud.dialogflow.cx.v3.Environment.VersionConfig" do
27
29
  optional :version, :string, 1
@@ -31,6 +33,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
31
33
  optional :enable_continuous_run, :bool, 2
32
34
  optional :enable_predeployment_run, :bool, 3
33
35
  end
36
+ add_message "google.cloud.dialogflow.cx.v3.Environment.WebhookConfig" do
37
+ repeated :webhook_overrides, :message, 1, "google.cloud.dialogflow.cx.v3.Webhook"
38
+ end
34
39
  add_message "google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest" do
35
40
  optional :parent, :string, 1
36
41
  optional :page_size, :int32, 2
@@ -114,6 +119,7 @@ module Google
114
119
  Environment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment").msgclass
115
120
  Environment::VersionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment.VersionConfig").msgclass
116
121
  Environment::TestCasesConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment.TestCasesConfig").msgclass
122
+ Environment::WebhookConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.Environment.WebhookConfig").msgclass
117
123
  ListEnvironmentsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListEnvironmentsRequest").msgclass
118
124
  ListEnvironmentsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ListEnvironmentsResponse").msgclass
119
125
  GetEnvironmentRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GetEnvironmentRequest").msgclass
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/environment_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -145,6 +146,12 @@ module Google
145
146
  config.endpoint = @config.endpoint
146
147
  end
147
148
 
149
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
150
+ config.credentials = credentials
151
+ config.quota_project = @quota_project_id
152
+ config.endpoint = @config.endpoint
153
+ end
154
+
148
155
  @environments_stub = ::Gapic::ServiceStub.new(
149
156
  ::Google::Cloud::Dialogflow::CX::V3::Environments::Stub,
150
157
  credentials: credentials,
@@ -161,6 +168,13 @@ module Google
161
168
  #
162
169
  attr_reader :operations_client
163
170
 
171
+ ##
172
+ # Get the associated client for mix-in of the Locations.
173
+ #
174
+ # @return [Google::Cloud::Location::Locations::Client]
175
+ #
176
+ attr_reader :location_client
177
+
164
178
  # Service calls
165
179
 
166
180
  ##
@@ -96,6 +96,9 @@ module Google
96
96
  channel_args: @config.channel_args,
97
97
  interceptors: @config.interceptors
98
98
  )
99
+
100
+ # Used by an LRO wrapper for some methods of this service
101
+ @operations_client = self
99
102
  end
100
103
 
101
104
  # Service calls
@@ -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 Service resource string.
70
+ #
71
+ # The resource will be in the following format:
72
+ #
73
+ # `projects/{project}/locations/{location}/namespaces/{namespace}/services/{service}`
74
+ #
75
+ # @param project [String]
76
+ # @param location [String]
77
+ # @param namespace [String]
78
+ # @param service [String]
79
+ #
80
+ # @return [::String]
81
+ def service_path project:, location:, namespace:, service:
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, "namespace cannot contain /" if namespace.to_s.include? "/"
85
+
86
+ "projects/#{project}/locations/#{location}/namespaces/#{namespace}/services/#{service}"
87
+ end
88
+
68
89
  ##
69
90
  # Create a fully-qualified TestCase resource string.
70
91
  #
@@ -109,6 +130,27 @@ module Google
109
130
  "projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/versions/#{version}"
110
131
  end
111
132
 
133
+ ##
134
+ # Create a fully-qualified Webhook resource string.
135
+ #
136
+ # The resource will be in the following format:
137
+ #
138
+ # `projects/{project}/locations/{location}/agents/{agent}/webhooks/{webhook}`
139
+ #
140
+ # @param project [String]
141
+ # @param location [String]
142
+ # @param agent [String]
143
+ # @param webhook [String]
144
+ #
145
+ # @return [::String]
146
+ def webhook_path project:, location:, agent:, webhook:
147
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
148
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
149
+ raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
150
+
151
+ "projects/#{project}/locations/#{location}/agents/#{agent}/webhooks/#{webhook}"
152
+ end
153
+
112
154
  extend self
113
155
  end
114
156
  end
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/experiment_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -139,6 +140,12 @@ module Google
139
140
  @quota_project_id = @config.quota_project
140
141
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
143
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
142
149
  @experiments_stub = ::Gapic::ServiceStub.new(
143
150
  ::Google::Cloud::Dialogflow::CX::V3::Experiments::Stub,
144
151
  credentials: credentials,
@@ -148,6 +155,13 @@ module Google
148
155
  )
149
156
  end
150
157
 
158
+ ##
159
+ # Get the associated client for mix-in of the Locations.
160
+ #
161
+ # @return [Google::Cloud::Location::Locations::Client]
162
+ #
163
+ attr_reader :location_client
164
+
151
165
  # Service calls
152
166
 
153
167
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/flow_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -145,6 +146,12 @@ module Google
145
146
  config.endpoint = @config.endpoint
146
147
  end
147
148
 
149
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
150
+ config.credentials = credentials
151
+ config.quota_project = @quota_project_id
152
+ config.endpoint = @config.endpoint
153
+ end
154
+
148
155
  @flows_stub = ::Gapic::ServiceStub.new(
149
156
  ::Google::Cloud::Dialogflow::CX::V3::Flows::Stub,
150
157
  credentials: credentials,
@@ -161,6 +168,13 @@ module Google
161
168
  #
162
169
  attr_reader :operations_client
163
170
 
171
+ ##
172
+ # Get the associated client for mix-in of the Locations.
173
+ #
174
+ # @return [Google::Cloud::Location::Locations::Client]
175
+ #
176
+ attr_reader :location_client
177
+
164
178
  # Service calls
165
179
 
166
180
  ##
@@ -96,6 +96,9 @@ module Google
96
96
  channel_args: @config.channel_args,
97
97
  interceptors: @config.interceptors
98
98
  )
99
+
100
+ # Used by an LRO wrapper for some methods of this service
101
+ @operations_client = self
99
102
  end
100
103
 
101
104
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/intent_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -139,6 +140,12 @@ module Google
139
140
  @quota_project_id = @config.quota_project
140
141
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
143
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
142
149
  @intents_stub = ::Gapic::ServiceStub.new(
143
150
  ::Google::Cloud::Dialogflow::CX::V3::Intents::Stub,
144
151
  credentials: credentials,
@@ -148,6 +155,13 @@ module Google
148
155
  )
149
156
  end
150
157
 
158
+ ##
159
+ # Get the associated client for mix-in of the Locations.
160
+ #
161
+ # @return [Google::Cloud::Location::Locations::Client]
162
+ #
163
+ attr_reader :location_client
164
+
151
165
  # Service calls
152
166
 
153
167
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/page_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -139,6 +140,12 @@ module Google
139
140
  @quota_project_id = @config.quota_project
140
141
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
143
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
142
149
  @pages_stub = ::Gapic::ServiceStub.new(
143
150
  ::Google::Cloud::Dialogflow::CX::V3::Pages::Stub,
144
151
  credentials: credentials,
@@ -148,6 +155,13 @@ module Google
148
155
  )
149
156
  end
150
157
 
158
+ ##
159
+ # Get the associated client for mix-in of the Locations.
160
+ #
161
+ # @return [Google::Cloud::Location::Locations::Client]
162
+ #
163
+ attr_reader :location_client
164
+
151
165
  # Service calls
152
166
 
153
167
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/security_settings_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -139,6 +140,12 @@ module Google
139
140
  @quota_project_id = @config.quota_project
140
141
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
143
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
142
149
  @security_settings_service_stub = ::Gapic::ServiceStub.new(
143
150
  ::Google::Cloud::Dialogflow::CX::V3::SecuritySettingsService::Stub,
144
151
  credentials: credentials,
@@ -148,6 +155,13 @@ module Google
148
155
  )
149
156
  end
150
157
 
158
+ ##
159
+ # Get the associated client for mix-in of the Locations.
160
+ #
161
+ # @return [Google::Cloud::Location::Locations::Client]
162
+ #
163
+ attr_reader :location_client
164
+
151
165
  # Service calls
152
166
 
153
167
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/session_entity_type_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -139,6 +140,12 @@ module Google
139
140
  @quota_project_id = @config.quota_project
140
141
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
143
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
142
149
  @session_entity_types_stub = ::Gapic::ServiceStub.new(
143
150
  ::Google::Cloud::Dialogflow::CX::V3::SessionEntityTypes::Stub,
144
151
  credentials: credentials,
@@ -148,6 +155,13 @@ module Google
148
155
  )
149
156
  end
150
157
 
158
+ ##
159
+ # Get the associated client for mix-in of the Locations.
160
+ #
161
+ # @return [Google::Cloud::Location::Locations::Client]
162
+ #
163
+ attr_reader :location_client
164
+
151
165
  # Service calls
152
166
 
153
167
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/session_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -148,6 +149,12 @@ module Google
148
149
  @quota_project_id = @config.quota_project
149
150
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
150
151
 
152
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
153
+ config.credentials = credentials
154
+ config.quota_project = @quota_project_id
155
+ config.endpoint = @config.endpoint
156
+ end
157
+
151
158
  @sessions_stub = ::Gapic::ServiceStub.new(
152
159
  ::Google::Cloud::Dialogflow::CX::V3::Sessions::Stub,
153
160
  credentials: credentials,
@@ -157,6 +164,13 @@ module Google
157
164
  )
158
165
  end
159
166
 
167
+ ##
168
+ # Get the associated client for mix-in of the Locations.
169
+ #
170
+ # @return [Google::Cloud::Location::Locations::Client]
171
+ #
172
+ attr_reader :location_client
173
+
160
174
  # Service calls
161
175
 
162
176
  ##
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/test_case_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -146,6 +147,12 @@ module Google
146
147
  config.endpoint = @config.endpoint
147
148
  end
148
149
 
150
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
151
+ config.credentials = credentials
152
+ config.quota_project = @quota_project_id
153
+ config.endpoint = @config.endpoint
154
+ end
155
+
149
156
  @test_cases_stub = ::Gapic::ServiceStub.new(
150
157
  ::Google::Cloud::Dialogflow::CX::V3::TestCases::Stub,
151
158
  credentials: credentials,
@@ -162,6 +169,13 @@ module Google
162
169
  #
163
170
  attr_reader :operations_client
164
171
 
172
+ ##
173
+ # Get the associated client for mix-in of the Locations.
174
+ #
175
+ # @return [Google::Cloud::Location::Locations::Client]
176
+ #
177
+ attr_reader :location_client
178
+
165
179
  # Service calls
166
180
 
167
181
  ##
@@ -96,6 +96,9 @@ module Google
96
96
  channel_args: @config.channel_args,
97
97
  interceptors: @config.interceptors
98
98
  )
99
+
100
+ # Used by an LRO wrapper for some methods of this service
101
+ @operations_client = self
99
102
  end
100
103
 
101
104
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/transition_route_group_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -139,6 +140,12 @@ module Google
139
140
  @quota_project_id = @config.quota_project
140
141
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
143
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
142
149
  @transition_route_groups_stub = ::Gapic::ServiceStub.new(
143
150
  ::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Stub,
144
151
  credentials: credentials,
@@ -148,6 +155,13 @@ module Google
148
155
  )
149
156
  end
150
157
 
158
+ ##
159
+ # Get the associated client for mix-in of the Locations.
160
+ #
161
+ # @return [Google::Cloud::Location::Locations::Client]
162
+ #
163
+ attr_reader :location_client
164
+
151
165
  # Service calls
152
166
 
153
167
  ##
@@ -22,7 +22,7 @@ module Google
22
22
  module Dialogflow
23
23
  module CX
24
24
  module V3
25
- VERSION = "0.8.0"
25
+ VERSION = "0.10.0"
26
26
  end
27
27
  end
28
28
  end
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/version_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -145,6 +146,12 @@ module Google
145
146
  config.endpoint = @config.endpoint
146
147
  end
147
148
 
149
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
150
+ config.credentials = credentials
151
+ config.quota_project = @quota_project_id
152
+ config.endpoint = @config.endpoint
153
+ end
154
+
148
155
  @versions_stub = ::Gapic::ServiceStub.new(
149
156
  ::Google::Cloud::Dialogflow::CX::V3::Versions::Stub,
150
157
  credentials: credentials,
@@ -161,6 +168,13 @@ module Google
161
168
  #
162
169
  attr_reader :operations_client
163
170
 
171
+ ##
172
+ # Get the associated client for mix-in of the Locations.
173
+ #
174
+ # @return [Google::Cloud::Location::Locations::Client]
175
+ #
176
+ attr_reader :location_client
177
+
164
178
  # Service calls
165
179
 
166
180
  ##
@@ -96,6 +96,9 @@ module Google
96
96
  channel_args: @config.channel_args,
97
97
  interceptors: @config.interceptors
98
98
  )
99
+
100
+ # Used by an LRO wrapper for some methods of this service
101
+ @operations_client = self
99
102
  end
100
103
 
101
104
  # Service calls
@@ -18,6 +18,7 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/dialogflow/cx/v3/webhook_pb"
21
+ require "google/cloud/location"
21
22
 
22
23
  module Google
23
24
  module Cloud
@@ -139,6 +140,12 @@ module Google
139
140
  @quota_project_id = @config.quota_project
140
141
  @quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
141
142
 
143
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
144
+ config.credentials = credentials
145
+ config.quota_project = @quota_project_id
146
+ config.endpoint = @config.endpoint
147
+ end
148
+
142
149
  @webhooks_stub = ::Gapic::ServiceStub.new(
143
150
  ::Google::Cloud::Dialogflow::CX::V3::Webhooks::Stub,
144
151
  credentials: credentials,
@@ -148,6 +155,13 @@ module Google
148
155
  )
149
156
  end
150
157
 
158
+ ##
159
+ # Get the associated client for mix-in of the Locations.
160
+ #
161
+ # @return [Google::Cloud::Location::Locations::Client]
162
+ #
163
+ attr_reader :location_client
164
+
151
165
  # Service calls
152
166
 
153
167
  ##
@@ -27,11 +27,11 @@ require "google/cloud/dialogflow/cx/v3/session_entity_types"
27
27
  require "google/cloud/dialogflow/cx/v3/sessions"
28
28
  require "google/cloud/dialogflow/cx/v3/transition_route_groups"
29
29
  require "google/cloud/dialogflow/cx/v3/test_cases"
30
+ require "google/cloud/dialogflow/cx/v3/webhooks"
30
31
  require "google/cloud/dialogflow/cx/v3/environments"
31
32
  require "google/cloud/dialogflow/cx/v3/experiments"
32
33
  require "google/cloud/dialogflow/cx/v3/security_settings_service"
33
34
  require "google/cloud/dialogflow/cx/v3/versions"
34
- require "google/cloud/dialogflow/cx/v3/webhooks"
35
35
  require "google/cloud/dialogflow/cx/v3/version"
36
36
 
37
37
  module Google
@@ -24,7 +24,13 @@ module Google
24
24
  module V3
25
25
  # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
26
26
  # Settings exposed at lower level overrides the settings exposed at higher
27
- # level.
27
+ # level. Overriding occurs at the sub-setting level. For example, the
28
+ # playback_interruption_settings at fulfillment level only overrides the
29
+ # playback_interruption_settings at the agent level, leaving other settings
30
+ # at the agent level unchanged.
31
+ #
32
+ # DTMF settings does not override each other. DTMF settings set at different
33
+ # levels define DTMF detections running in parallel.
28
34
  #
29
35
  # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
30
36
  # @!attribute [rw] logging_settings
@@ -100,7 +100,7 @@ module Google
100
100
  # requests.
101
101
  # @!attribute [rw] locked
102
102
  # @return [::Boolean]
103
- # Indiciates whether the agent is locked for changes. If the agent is locked,
103
+ # Indicates whether the agent is locked for changes. If the agent is locked,
104
104
  # modifications to the agent will be rejected except for [RestoreAgent][].
105
105
  # @!attribute [rw] advanced_settings
106
106
  # @return [::Google::Cloud::Dialogflow::CX::V3::AdvancedSettings]
@@ -55,6 +55,9 @@ module Google
55
55
  # @!attribute [rw] test_cases_config
56
56
  # @return [::Google::Cloud::Dialogflow::CX::V3::Environment::TestCasesConfig]
57
57
  # The test cases config for continuous tests of this environment.
58
+ # @!attribute [rw] webhook_config
59
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Environment::WebhookConfig]
60
+ # The webhook configuration for this environment.
58
61
  class Environment
59
62
  include ::Google::Protobuf::MessageExts
60
63
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -87,6 +90,18 @@ module Google
87
90
  include ::Google::Protobuf::MessageExts
88
91
  extend ::Google::Protobuf::MessageExts::ClassMethods
89
92
  end
93
+
94
+ # Configuration for webhooks.
95
+ # @!attribute [rw] webhook_overrides
96
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Webhook>]
97
+ # The list of webhooks to override for the agent environment. The webhook
98
+ # must exist in the agent. You can override fields in
99
+ # {::Google::Cloud::Dialogflow::CX::V3::Webhook#generic_web_service `generic_web_service`} and
100
+ # {::Google::Cloud::Dialogflow::CX::V3::Webhook#service_directory `service_directory`}.
101
+ class WebhookConfig
102
+ include ::Google::Protobuf::MessageExts
103
+ extend ::Google::Protobuf::MessageExts::ClassMethods
104
+ end
90
105
  end
91
106
 
92
107
  # The request message for {::Google::Cloud::Dialogflow::CX::V3::Environments::Client#list_environments Environments.ListEnvironments}.
@@ -537,8 +537,22 @@ module Google
537
537
  # @!attribute [rw] diagnostic_info
538
538
  # @return [::Google::Protobuf::Struct]
539
539
  # The free-form diagnostic info. For example, this field could contain
540
- # webhook call latency. The string keys of the Struct's fields map can change
541
- # without notice.
540
+ # webhook call latency. The fields of this data can change without notice,
541
+ # so you should not write code that depends on its structure.
542
+ #
543
+ # One of the fields is called "Alternative Matched Intents", which may
544
+ # aid with debugging. The following describes these intent results:
545
+ #
546
+ # - The list is empty if no intent was matched to end-user input.
547
+ # - Only intents that are referenced in the currently active flow are
548
+ # included.
549
+ # - The matched intent is included.
550
+ # - Other intents that could have matched end-user input, but did not match
551
+ # because they are referenced by intent routes that are out of
552
+ # [scope](https://cloud.google.com/dialogflow/cx/docs/concept/handler#scope),
553
+ # are included.
554
+ # - Other intents referenced by intent routes in scope that matched end-user
555
+ # input, but had a lower confidence score.
542
556
  # @!attribute [rw] sentiment_analysis_result
543
557
  # @return [::Google::Cloud::Dialogflow::CX::V3::SentimentAnalysisResult]
544
558
  # The sentiment analyss result, which depends on
@@ -209,6 +209,9 @@ module Google
209
209
 
210
210
  # The request message for a webhook call. The request is sent as a JSON object
211
211
  # and the field names will be presented in camel cases.
212
+ #
213
+ # You may see undocumented fields in an actual request. These fields are used
214
+ # internally by Dialogflow and should be ignored.
212
215
  # @!attribute [rw] detect_intent_response_id
213
216
  # @return [::String]
214
217
  # Always present. The unique identifier of the {::Google::Cloud::Dialogflow::CX::V3::DetectIntentResponse DetectIntentResponse} that
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-cx-v3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.10.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-04-28 00:00:00.000000000 Z
11
+ date: 2022-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: '0.10'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: '0.10'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -44,34 +44,54 @@ dependencies:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
46
  version: '1.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: google-cloud-location
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '0.0'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: 2.a
57
+ type: :runtime
58
+ prerelease: false
59
+ version_requirements: !ruby/object:Gem::Requirement
60
+ requirements:
61
+ - - ">="
62
+ - !ruby/object:Gem::Version
63
+ version: '0.0'
64
+ - - "<"
65
+ - !ruby/object:Gem::Version
66
+ version: 2.a
47
67
  - !ruby/object:Gem::Dependency
48
68
  name: google-style
49
69
  requirement: !ruby/object:Gem::Requirement
50
70
  requirements:
51
71
  - - "~>"
52
72
  - !ruby/object:Gem::Version
53
- version: 1.25.1
73
+ version: 1.26.1
54
74
  type: :development
55
75
  prerelease: false
56
76
  version_requirements: !ruby/object:Gem::Requirement
57
77
  requirements:
58
78
  - - "~>"
59
79
  - !ruby/object:Gem::Version
60
- version: 1.25.1
80
+ version: 1.26.1
61
81
  - !ruby/object:Gem::Dependency
62
82
  name: minitest
63
83
  requirement: !ruby/object:Gem::Requirement
64
84
  requirements:
65
85
  - - "~>"
66
86
  - !ruby/object:Gem::Version
67
- version: '5.14'
87
+ version: '5.16'
68
88
  type: :development
69
89
  prerelease: false
70
90
  version_requirements: !ruby/object:Gem::Requirement
71
91
  requirements:
72
92
  - - "~>"
73
93
  - !ruby/object:Gem::Version
74
- version: '5.14'
94
+ version: '5.16'
75
95
  - !ruby/object:Gem::Dependency
76
96
  name: minitest-focus
77
97
  requirement: !ruby/object:Gem::Requirement
@@ -106,14 +126,14 @@ dependencies:
106
126
  requirements:
107
127
  - - ">="
108
128
  - !ruby/object:Gem::Version
109
- version: '12.0'
129
+ version: '13.0'
110
130
  type: :development
111
131
  prerelease: false
112
132
  version_requirements: !ruby/object:Gem::Requirement
113
133
  requirements:
114
134
  - - ">="
115
135
  - !ruby/object:Gem::Version
116
- version: '12.0'
136
+ version: '13.0'
117
137
  - !ruby/object:Gem::Dependency
118
138
  name: redcarpet
119
139
  requirement: !ruby/object:Gem::Requirement
@@ -328,14 +348,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
328
348
  requirements:
329
349
  - - ">="
330
350
  - !ruby/object:Gem::Version
331
- version: '2.5'
351
+ version: '2.6'
332
352
  required_rubygems_version: !ruby/object:Gem::Requirement
333
353
  requirements:
334
354
  - - ">="
335
355
  - !ruby/object:Gem::Version
336
356
  version: '0'
337
357
  requirements: []
338
- rubygems_version: 3.3.5
358
+ rubygems_version: 3.3.14
339
359
  signing_key:
340
360
  specification_version: 4
341
361
  summary: API Client library for the Dialogflow CX V3 API