google-cloud-dialogflow-cx-v3 0.20.0 → 0.21.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +6 -1
- data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +4 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +200 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +19 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +338 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +119 -0
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb +45 -0
- data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +36 -0
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +184 -0
- data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +116 -0
- data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +185 -0
- data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb +51 -0
- data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +2 -2
- data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +4 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb +47 -0
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -1
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +48 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +228 -0
- data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +84 -0
- data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +130 -0
- data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +75 -0
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +10 -1
- data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +84 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +44 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb +61 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +3 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb +109 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/import_strategy.rb +1 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +44 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +14 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/safety_settings.rb +49 -0
- data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +17 -2
- data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +4 -1
- data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +3 -0
- metadata +11 -5
@@ -137,6 +137,26 @@ module Google
|
|
137
137
|
# @return [::Gapic::Operation]
|
138
138
|
#
|
139
139
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
140
|
+
#
|
141
|
+
# @example Basic example
|
142
|
+
# require "google/longrunning"
|
143
|
+
#
|
144
|
+
# # Create a client object. The client can be reused for multiple calls.
|
145
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
146
|
+
#
|
147
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
148
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
149
|
+
#
|
150
|
+
# # Call the list_operations method.
|
151
|
+
# result = client.list_operations request
|
152
|
+
#
|
153
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
154
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
155
|
+
# result.each do |item|
|
156
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
157
|
+
# p item
|
158
|
+
# end
|
159
|
+
#
|
140
160
|
def list_operations request, options = nil
|
141
161
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
142
162
|
|
@@ -202,6 +222,29 @@ module Google
|
|
202
222
|
# @return [::Gapic::Operation]
|
203
223
|
#
|
204
224
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
225
|
+
#
|
226
|
+
# @example Basic example
|
227
|
+
# require "google/longrunning"
|
228
|
+
#
|
229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
230
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
231
|
+
#
|
232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
233
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
234
|
+
#
|
235
|
+
# # Call the get_operation method.
|
236
|
+
# result = client.get_operation request
|
237
|
+
#
|
238
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
239
|
+
# # check the status of an operation, cancel it, or wait for results.
|
240
|
+
# # Here is how to wait for a response.
|
241
|
+
# result.wait_until_done! timeout: 60
|
242
|
+
# if result.response?
|
243
|
+
# p result.response
|
244
|
+
# else
|
245
|
+
# puts "No response received."
|
246
|
+
# end
|
247
|
+
#
|
205
248
|
def get_operation request, options = nil
|
206
249
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
207
250
|
|
@@ -268,6 +311,22 @@ module Google
|
|
268
311
|
# @return [::Google::Protobuf::Empty]
|
269
312
|
#
|
270
313
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
314
|
+
#
|
315
|
+
# @example Basic example
|
316
|
+
# require "google/longrunning"
|
317
|
+
#
|
318
|
+
# # Create a client object. The client can be reused for multiple calls.
|
319
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
320
|
+
#
|
321
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
322
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
323
|
+
#
|
324
|
+
# # Call the delete_operation method.
|
325
|
+
# result = client.delete_operation request
|
326
|
+
#
|
327
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
328
|
+
# p result
|
329
|
+
#
|
271
330
|
def delete_operation request, options = nil
|
272
331
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
332
|
|
@@ -339,6 +398,22 @@ module Google
|
|
339
398
|
# @return [::Google::Protobuf::Empty]
|
340
399
|
#
|
341
400
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
401
|
+
#
|
402
|
+
# @example Basic example
|
403
|
+
# require "google/longrunning"
|
404
|
+
#
|
405
|
+
# # Create a client object. The client can be reused for multiple calls.
|
406
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
407
|
+
#
|
408
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
409
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
410
|
+
#
|
411
|
+
# # Call the cancel_operation method.
|
412
|
+
# result = client.cancel_operation request
|
413
|
+
#
|
414
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
415
|
+
# p result
|
416
|
+
#
|
342
417
|
def cancel_operation request, options = nil
|
343
418
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
419
|
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/dialogflow/cx/v3/generative_settings.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/resource_pb'
|
8
|
+
require 'google/cloud/dialogflow/cx/v3/safety_settings_pb'
|
9
|
+
|
10
|
+
|
11
|
+
descriptor_data = "\n7google/cloud/dialogflow/cx/v3/generative_settings.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x19google/api/resource.proto\x1a\x33google/cloud/dialogflow/cx/v3/safety_settings.proto\"\xd6\x06\n\x12GenerativeSettings\x12\x0c\n\x04name\x18\x05 \x01(\t\x12]\n\x11\x66\x61llback_settings\x18\x01 \x01(\x0b\x32\x42.google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings\x12Q\n\x1agenerative_safety_settings\x18\x03 \x01(\x0b\x32-.google.cloud.dialogflow.cx.v3.SafetySettings\x12r\n\x1cknowledge_connector_settings\x18\x07 \x01(\x0b\x32L.google.cloud.dialogflow.cx.v3.GenerativeSettings.KnowledgeConnectorSettings\x12\x15\n\rlanguage_code\x18\x04 \x01(\t\x1a\xe5\x01\n\x10\x46\x61llbackSettings\x12\x17\n\x0fselected_prompt\x18\x03 \x01(\t\x12k\n\x10prompt_templates\x18\x04 \x03(\x0b\x32Q.google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate\x1aK\n\x0ePromptTemplate\x12\x14\n\x0c\x64isplay_name\x18\x01 \x01(\t\x12\x13\n\x0bprompt_text\x18\x02 \x01(\t\x12\x0e\n\x06\x66rozen\x18\x03 \x01(\x08\x1a\x88\x01\n\x1aKnowledgeConnectorSettings\x12\x10\n\x08\x62usiness\x18\x01 \x01(\t\x12\r\n\x05\x61gent\x18\x02 \x01(\t\x12\x16\n\x0e\x61gent_identity\x18\x03 \x01(\t\x12\x1c\n\x14\x62usiness_description\x18\x04 \x01(\t\x12\x13\n\x0b\x61gent_scope\x18\x05 \x01(\t:\x81\x01\xea\x41~\n1dialogflow.googleapis.com/AgentGenerativeSettings\x12Iprojects/{project}/locations/{location}/agents/{agent}/generativeSettingsB\xbd\x01\n!com.google.cloud.dialogflow.cx.v3B\x17GenerativeSettingsProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
12
|
+
|
13
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
|
+
|
15
|
+
begin
|
16
|
+
pool.add_serialized_file(descriptor_data)
|
17
|
+
rescue TypeError => e
|
18
|
+
# Compatibility code: will be removed in the next major version.
|
19
|
+
require 'google/protobuf/descriptor_pb'
|
20
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
21
|
+
parsed.clear_dependency
|
22
|
+
serialized = parsed.class.encode(parsed)
|
23
|
+
file = pool.add_serialized_file(serialized)
|
24
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
25
|
+
imports = [
|
26
|
+
["google.cloud.dialogflow.cx.v3.SafetySettings", "google/cloud/dialogflow/cx/v3/safety_settings.proto"],
|
27
|
+
]
|
28
|
+
imports.each do |type_name, expected_filename|
|
29
|
+
import_file = pool.lookup(type_name).file_descriptor
|
30
|
+
if import_file.name != expected_filename
|
31
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
32
|
+
end
|
33
|
+
end
|
34
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
35
|
+
warn "This will become an error in the next major version."
|
36
|
+
end
|
37
|
+
|
38
|
+
module Google
|
39
|
+
module Cloud
|
40
|
+
module Dialogflow
|
41
|
+
module CX
|
42
|
+
module V3
|
43
|
+
GenerativeSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GenerativeSettings").msgclass
|
44
|
+
GenerativeSettings::FallbackSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings").msgclass
|
45
|
+
GenerativeSettings::FallbackSettings::PromptTemplate = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GenerativeSettings.FallbackSettings.PromptTemplate").msgclass
|
46
|
+
GenerativeSettings::KnowledgeConnectorSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.GenerativeSettings.KnowledgeConnectorSettings").msgclass
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
@@ -5,7 +5,7 @@
|
|
5
5
|
require 'google/protobuf'
|
6
6
|
|
7
7
|
|
8
|
-
descriptor_data = "\n3google/cloud/dialogflow/cx/v3/import_strategy.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3*\xc4\x01\n\x0eImportStrategy\x12\x1f\n\x1bIMPORT_STRATEGY_UNSPECIFIED\x10\x00\x12\x1e\n\x1aIMPORT_STRATEGY_CREATE_NEW\x10\x01\x12\x1b\n\x17IMPORT_STRATEGY_REPLACE\x10\x02\x12\x18\n\x14IMPORT_STRATEGY_KEEP\x10\x03\x12\x19\n\x15IMPORT_STRATEGY_MERGE\x10\x04\x12\x1f\n\x1bIMPORT_STRATEGY_THROW_ERROR\x10\x05\x42\
|
8
|
+
descriptor_data = "\n3google/cloud/dialogflow/cx/v3/import_strategy.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3*\xc4\x01\n\x0eImportStrategy\x12\x1f\n\x1bIMPORT_STRATEGY_UNSPECIFIED\x10\x00\x12\x1e\n\x1aIMPORT_STRATEGY_CREATE_NEW\x10\x01\x12\x1b\n\x17IMPORT_STRATEGY_REPLACE\x10\x02\x12\x18\n\x14IMPORT_STRATEGY_KEEP\x10\x03\x12\x19\n\x15IMPORT_STRATEGY_MERGE\x10\x04\x12\x1f\n\x1bIMPORT_STRATEGY_THROW_ERROR\x10\x05\x42\xb9\x01\n!com.google.cloud.dialogflow.cx.v3B\x13ImportStrategyProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
9
9
|
|
10
10
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
11
11
|
|
@@ -34,7 +34,7 @@ end
|
|
34
34
|
module Google
|
35
35
|
module Cloud
|
36
36
|
module Dialogflow
|
37
|
-
module
|
37
|
+
module CX
|
38
38
|
module V3
|
39
39
|
ImportStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ImportStrategy").enummodule
|
40
40
|
end
|
@@ -151,7 +151,8 @@ module Google
|
|
151
151
|
credentials: credentials,
|
152
152
|
endpoint: @config.endpoint,
|
153
153
|
channel_args: @config.channel_args,
|
154
|
-
interceptors: @config.interceptors
|
154
|
+
interceptors: @config.interceptors,
|
155
|
+
channel_pool_config: @config.channel_pool
|
155
156
|
)
|
156
157
|
end
|
157
158
|
|
@@ -785,6 +786,14 @@ module Google
|
|
785
786
|
end
|
786
787
|
end
|
787
788
|
|
789
|
+
##
|
790
|
+
# Configuration for the channel pool
|
791
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
792
|
+
#
|
793
|
+
def channel_pool
|
794
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
795
|
+
end
|
796
|
+
|
788
797
|
##
|
789
798
|
# Configuration RPC class for the Intents API.
|
790
799
|
#
|
@@ -202,6 +202,26 @@ module Google
|
|
202
202
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::Intent>]
|
203
203
|
#
|
204
204
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
205
|
+
#
|
206
|
+
# @example Basic example
|
207
|
+
# require "google/cloud/dialogflow/cx/v3"
|
208
|
+
#
|
209
|
+
# # Create a client object. The client can be reused for multiple calls.
|
210
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Intents::Rest::Client.new
|
211
|
+
#
|
212
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
213
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListIntentsRequest.new
|
214
|
+
#
|
215
|
+
# # Call the list_intents method.
|
216
|
+
# result = client.list_intents request
|
217
|
+
#
|
218
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
219
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
220
|
+
# result.each do |item|
|
221
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Intent.
|
222
|
+
# p item
|
223
|
+
# end
|
224
|
+
#
|
205
225
|
def list_intents request, options = nil
|
206
226
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
207
227
|
|
@@ -278,6 +298,22 @@ module Google
|
|
278
298
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Intent]
|
279
299
|
#
|
280
300
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
301
|
+
#
|
302
|
+
# @example Basic example
|
303
|
+
# require "google/cloud/dialogflow/cx/v3"
|
304
|
+
#
|
305
|
+
# # Create a client object. The client can be reused for multiple calls.
|
306
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Intents::Rest::Client.new
|
307
|
+
#
|
308
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
309
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetIntentRequest.new
|
310
|
+
#
|
311
|
+
# # Call the get_intent method.
|
312
|
+
# result = client.get_intent request
|
313
|
+
#
|
314
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
|
315
|
+
# p result
|
316
|
+
#
|
281
317
|
def get_intent request, options = nil
|
282
318
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
283
319
|
|
@@ -357,6 +393,22 @@ module Google
|
|
357
393
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Intent]
|
358
394
|
#
|
359
395
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
396
|
+
#
|
397
|
+
# @example Basic example
|
398
|
+
# require "google/cloud/dialogflow/cx/v3"
|
399
|
+
#
|
400
|
+
# # Create a client object. The client can be reused for multiple calls.
|
401
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Intents::Rest::Client.new
|
402
|
+
#
|
403
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
404
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreateIntentRequest.new
|
405
|
+
#
|
406
|
+
# # Call the create_intent method.
|
407
|
+
# result = client.create_intent request
|
408
|
+
#
|
409
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
|
410
|
+
# p result
|
411
|
+
#
|
360
412
|
def create_intent request, options = nil
|
361
413
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
362
414
|
|
@@ -436,6 +488,22 @@ module Google
|
|
436
488
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Intent]
|
437
489
|
#
|
438
490
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
491
|
+
#
|
492
|
+
# @example Basic example
|
493
|
+
# require "google/cloud/dialogflow/cx/v3"
|
494
|
+
#
|
495
|
+
# # Create a client object. The client can be reused for multiple calls.
|
496
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Intents::Rest::Client.new
|
497
|
+
#
|
498
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
499
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdateIntentRequest.new
|
500
|
+
#
|
501
|
+
# # Call the update_intent method.
|
502
|
+
# result = client.update_intent request
|
503
|
+
#
|
504
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Intent.
|
505
|
+
# p result
|
506
|
+
#
|
439
507
|
def update_intent request, options = nil
|
440
508
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
441
509
|
|
@@ -504,6 +572,22 @@ module Google
|
|
504
572
|
# @return [::Google::Protobuf::Empty]
|
505
573
|
#
|
506
574
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
575
|
+
#
|
576
|
+
# @example Basic example
|
577
|
+
# require "google/cloud/dialogflow/cx/v3"
|
578
|
+
#
|
579
|
+
# # Create a client object. The client can be reused for multiple calls.
|
580
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Intents::Rest::Client.new
|
581
|
+
#
|
582
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
583
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeleteIntentRequest.new
|
584
|
+
#
|
585
|
+
# # Call the delete_intent method.
|
586
|
+
# result = client.delete_intent request
|
587
|
+
#
|
588
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
589
|
+
# p result
|
590
|
+
#
|
507
591
|
def delete_intent request, options = nil
|
508
592
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
509
593
|
|
@@ -8,13 +8,14 @@ require 'google/api/annotations_pb'
|
|
8
8
|
require 'google/api/client_pb'
|
9
9
|
require 'google/api/field_behavior_pb'
|
10
10
|
require 'google/api/resource_pb'
|
11
|
+
require 'google/cloud/dialogflow/cx/v3/data_store_connection_pb'
|
11
12
|
require 'google/cloud/dialogflow/cx/v3/fulfillment_pb'
|
12
13
|
require 'google/protobuf/empty_pb'
|
13
14
|
require 'google/protobuf/field_mask_pb'
|
14
15
|
require 'google/protobuf/struct_pb'
|
15
16
|
|
16
17
|
|
17
|
-
descriptor_data = "\n(google/cloud/dialogflow/cx/v3/page.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a/google/cloud/dialogflow/cx/v3/fulfillment.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\
|
18
|
+
descriptor_data = "\n(google/cloud/dialogflow/cx/v3/page.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x39google/cloud/dialogflow/cx/v3/data_store_connection.proto\x1a/google/cloud/dialogflow/cx/v3/fulfillment.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xec\x04\n\x04Page\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x45\n\x11\x65ntry_fulfillment\x18\x07 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.Fulfillment\x12\x31\n\x04\x66orm\x18\x04 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.Form\x12T\n\x17transition_route_groups\x18\x0b \x03(\tB3\xfa\x41\x30\n.dialogflow.googleapis.com/TransitionRouteGroup\x12I\n\x11transition_routes\x18\t \x03(\x0b\x32..google.cloud.dialogflow.cx.v3.TransitionRoute\x12\x43\n\x0e\x65vent_handlers\x18\n \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.EventHandler\x12\x64\n\x1cknowledge_connector_settings\x18\x12 \x01(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettingsB\x03\xe0\x41\x01:u\xea\x41r\n\x1e\x64ialogflow.googleapis.com/Page\x12Pprojects/{project}/locations/{location}/agents/{agent}/flows/{flow}/pages/{page}\"\xa3\x04\n\x04\x46orm\x12\x41\n\nparameters\x18\x01 \x03(\x0b\x32-.google.cloud.dialogflow.cx.v3.Form.Parameter\x1a\xd7\x03\n\tParameter\x12\x19\n\x0c\x64isplay_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x10\n\x08required\x18\x02 \x01(\x08\x12\x41\n\x0b\x65ntity_type\x18\x03 \x01(\tB,\xe0\x41\x02\xfa\x41&\n$dialogflow.googleapis.com/EntityType\x12\x0f\n\x07is_list\x18\x04 \x01(\x08\x12V\n\rfill_behavior\x18\x07 \x01(\x0b\x32:.google.cloud.dialogflow.cx.v3.Form.Parameter.FillBehaviorB\x03\xe0\x41\x02\x12-\n\rdefault_value\x18\t \x01(\x0b\x32\x16.google.protobuf.Value\x12\x0e\n\x06redact\x18\x0b \x01(\x08\x1a\xb1\x01\n\x0c\x46illBehavior\x12S\n\x1ainitial_prompt_fulfillment\x18\x03 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.FulfillmentB\x03\xe0\x41\x02\x12L\n\x17reprompt_event_handlers\x18\x05 \x03(\x0b\x32+.google.cloud.dialogflow.cx.v3.EventHandler\"\x80\x02\n\x0c\x45ventHandler\x12\x11\n\x04name\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x12\n\x05\x65vent\x18\x04 \x01(\tB\x03\xe0\x41\x02\x12G\n\x13trigger_fulfillment\x18\x05 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.Fulfillment\x12:\n\x0btarget_page\x18\x02 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/PageH\x00\x12:\n\x0btarget_flow\x18\x03 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/FlowH\x00\x42\x08\n\x06target\"\xd3\x02\n\x0fTransitionRoute\x12\x11\n\x04name\x18\x06 \x01(\tB\x03\xe0\x41\x03\x12\x18\n\x0b\x64\x65scription\x18\x08 \x01(\tB\x03\xe0\x41\x01\x12\x35\n\x06intent\x18\x01 \x01(\tB%\xfa\x41\"\n dialogflow.googleapis.com/Intent\x12\x11\n\tcondition\x18\x02 \x01(\t\x12G\n\x13trigger_fulfillment\x18\x03 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.Fulfillment\x12:\n\x0btarget_page\x18\x04 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/PageH\x00\x12:\n\x0btarget_flow\x18\x05 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/FlowH\x00\x42\x08\n\x06target\"\x88\x01\n\x10ListPagesRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Page\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x12\n\npage_token\x18\x04 \x01(\t\"`\n\x11ListPagesResponse\x12\x32\n\x05pages\x18\x01 \x03(\x0b\x32#.google.cloud.dialogflow.cx.v3.Page\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"]\n\x0eGetPageRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Page\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\"\x9a\x01\n\x11\x43reatePageRequest\x12\x36\n\x06parent\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \x12\x1e\x64ialogflow.googleapis.com/Page\x12\x36\n\x04page\x18\x02 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.PageB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x03 \x01(\t\"\x93\x01\n\x11UpdatePageRequest\x12\x36\n\x04page\x18\x01 \x01(\x0b\x32#.google.cloud.dialogflow.cx.v3.PageB\x03\xe0\x41\x02\x12\x15\n\rlanguage_code\x18\x02 \x01(\t\x12/\n\x0bupdate_mask\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"X\n\x11\x44\x65letePageRequest\x12\x34\n\x04name\x18\x01 \x01(\tB&\xe0\x41\x02\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/Page\x12\r\n\x05\x66orce\x18\x02 \x01(\x08\"\xd1\x02\n\x1aKnowledgeConnectorSettings\x12\x0f\n\x07\x65nabled\x18\x01 \x01(\x08\x12G\n\x13trigger_fulfillment\x18\x03 \x01(\x0b\x32*.google.cloud.dialogflow.cx.v3.Fulfillment\x12:\n\x0btarget_page\x18\x04 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/PageH\x00\x12:\n\x0btarget_flow\x18\x05 \x01(\tB#\xfa\x41 \n\x1e\x64ialogflow.googleapis.com/FlowH\x00\x12W\n\x16\x64\x61ta_store_connections\x18\x06 \x03(\x0b\x32\x32.google.cloud.dialogflow.cx.v3.DataStoreConnectionB\x03\xe0\x41\x01\x42\x08\n\x06target2\x94\x08\n\x05Pages\x12\xbb\x01\n\tListPages\x12/.google.cloud.dialogflow.cx.v3.ListPagesRequest\x1a\x30.google.cloud.dialogflow.cx.v3.ListPagesResponse\"K\x82\xd3\xe4\x93\x02<\x12:/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages\xda\x41\x06parent\x12\xa8\x01\n\x07GetPage\x12-.google.cloud.dialogflow.cx.v3.GetPageRequest\x1a#.google.cloud.dialogflow.cx.v3.Page\"I\x82\xd3\xe4\x93\x02<\x12:/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}\xda\x41\x04name\x12\xbb\x01\n\nCreatePage\x12\x30.google.cloud.dialogflow.cx.v3.CreatePageRequest\x1a#.google.cloud.dialogflow.cx.v3.Page\"V\x82\xd3\xe4\x93\x02\x42\":/v3/{parent=projects/*/locations/*/agents/*/flows/*}/pages:\x04page\xda\x41\x0bparent,page\x12\xc5\x01\n\nUpdatePage\x12\x30.google.cloud.dialogflow.cx.v3.UpdatePageRequest\x1a#.google.cloud.dialogflow.cx.v3.Page\"`\x82\xd3\xe4\x93\x02G2?/v3/{page.name=projects/*/locations/*/agents/*/flows/*/pages/*}:\x04page\xda\x41\x10page,update_mask\x12\xa1\x01\n\nDeletePage\x12\x30.google.cloud.dialogflow.cx.v3.DeletePageRequest\x1a\x16.google.protobuf.Empty\"I\x82\xd3\xe4\x93\x02<*:/v3/{name=projects/*/locations/*/agents/*/flows/*/pages/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xaf\x01\n!com.google.cloud.dialogflow.cx.v3B\tPageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
18
19
|
|
19
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
20
21
|
|
@@ -32,6 +33,7 @@ rescue TypeError => e
|
|
32
33
|
["google.cloud.dialogflow.cx.v3.Fulfillment", "google/cloud/dialogflow/cx/v3/fulfillment.proto"],
|
33
34
|
["google.protobuf.Value", "google/protobuf/struct.proto"],
|
34
35
|
["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
|
36
|
+
["google.cloud.dialogflow.cx.v3.DataStoreConnection", "google/cloud/dialogflow/cx/v3/data_store_connection.proto"],
|
35
37
|
]
|
36
38
|
imports.each do |type_name, expected_filename|
|
37
39
|
import_file = pool.lookup(type_name).file_descriptor
|
@@ -60,6 +62,7 @@ module Google
|
|
60
62
|
CreatePageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.CreatePageRequest").msgclass
|
61
63
|
UpdatePageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.UpdatePageRequest").msgclass
|
62
64
|
DeletePageRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.DeletePageRequest").msgclass
|
65
|
+
KnowledgeConnectorSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.KnowledgeConnectorSettings").msgclass
|
63
66
|
end
|
64
67
|
end
|
65
68
|
end
|
@@ -151,7 +151,8 @@ module Google
|
|
151
151
|
credentials: credentials,
|
152
152
|
endpoint: @config.endpoint,
|
153
153
|
channel_args: @config.channel_args,
|
154
|
-
interceptors: @config.interceptors
|
154
|
+
interceptors: @config.interceptors,
|
155
|
+
channel_pool_config: @config.channel_pool
|
155
156
|
)
|
156
157
|
end
|
157
158
|
|
@@ -840,6 +841,14 @@ module Google
|
|
840
841
|
end
|
841
842
|
end
|
842
843
|
|
844
|
+
##
|
845
|
+
# Configuration for the channel pool
|
846
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
847
|
+
#
|
848
|
+
def channel_pool
|
849
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
850
|
+
end
|
851
|
+
|
843
852
|
##
|
844
853
|
# Configuration RPC class for the Pages API.
|
845
854
|
#
|
@@ -212,6 +212,26 @@ module Google
|
|
212
212
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Dialogflow::CX::V3::Page>]
|
213
213
|
#
|
214
214
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
215
|
+
#
|
216
|
+
# @example Basic example
|
217
|
+
# require "google/cloud/dialogflow/cx/v3"
|
218
|
+
#
|
219
|
+
# # Create a client object. The client can be reused for multiple calls.
|
220
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Pages::Rest::Client.new
|
221
|
+
#
|
222
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
223
|
+
# request = Google::Cloud::Dialogflow::CX::V3::ListPagesRequest.new
|
224
|
+
#
|
225
|
+
# # Call the list_pages method.
|
226
|
+
# result = client.list_pages request
|
227
|
+
#
|
228
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
229
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
230
|
+
# result.each do |item|
|
231
|
+
# # Each element is of type ::Google::Cloud::Dialogflow::CX::V3::Page.
|
232
|
+
# p item
|
233
|
+
# end
|
234
|
+
#
|
215
235
|
def list_pages request, options = nil
|
216
236
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
217
237
|
|
@@ -299,6 +319,22 @@ module Google
|
|
299
319
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Page]
|
300
320
|
#
|
301
321
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
322
|
+
#
|
323
|
+
# @example Basic example
|
324
|
+
# require "google/cloud/dialogflow/cx/v3"
|
325
|
+
#
|
326
|
+
# # Create a client object. The client can be reused for multiple calls.
|
327
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Pages::Rest::Client.new
|
328
|
+
#
|
329
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
330
|
+
# request = Google::Cloud::Dialogflow::CX::V3::GetPageRequest.new
|
331
|
+
#
|
332
|
+
# # Call the get_page method.
|
333
|
+
# result = client.get_page request
|
334
|
+
#
|
335
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
|
336
|
+
# p result
|
337
|
+
#
|
302
338
|
def get_page request, options = nil
|
303
339
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
304
340
|
|
@@ -390,6 +426,22 @@ module Google
|
|
390
426
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Page]
|
391
427
|
#
|
392
428
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
429
|
+
#
|
430
|
+
# @example Basic example
|
431
|
+
# require "google/cloud/dialogflow/cx/v3"
|
432
|
+
#
|
433
|
+
# # Create a client object. The client can be reused for multiple calls.
|
434
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Pages::Rest::Client.new
|
435
|
+
#
|
436
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
437
|
+
# request = Google::Cloud::Dialogflow::CX::V3::CreatePageRequest.new
|
438
|
+
#
|
439
|
+
# # Call the create_page method.
|
440
|
+
# result = client.create_page request
|
441
|
+
#
|
442
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
|
443
|
+
# p result
|
444
|
+
#
|
393
445
|
def create_page request, options = nil
|
394
446
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
395
447
|
|
@@ -480,6 +532,22 @@ module Google
|
|
480
532
|
# @return [::Google::Cloud::Dialogflow::CX::V3::Page]
|
481
533
|
#
|
482
534
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
535
|
+
#
|
536
|
+
# @example Basic example
|
537
|
+
# require "google/cloud/dialogflow/cx/v3"
|
538
|
+
#
|
539
|
+
# # Create a client object. The client can be reused for multiple calls.
|
540
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Pages::Rest::Client.new
|
541
|
+
#
|
542
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
543
|
+
# request = Google::Cloud::Dialogflow::CX::V3::UpdatePageRequest.new
|
544
|
+
#
|
545
|
+
# # Call the update_page method.
|
546
|
+
# result = client.update_page request
|
547
|
+
#
|
548
|
+
# # The returned object is of type Google::Cloud::Dialogflow::CX::V3::Page.
|
549
|
+
# p result
|
550
|
+
#
|
483
551
|
def update_page request, options = nil
|
484
552
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
485
553
|
|
@@ -559,6 +627,22 @@ module Google
|
|
559
627
|
# @return [::Google::Protobuf::Empty]
|
560
628
|
#
|
561
629
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
630
|
+
#
|
631
|
+
# @example Basic example
|
632
|
+
# require "google/cloud/dialogflow/cx/v3"
|
633
|
+
#
|
634
|
+
# # Create a client object. The client can be reused for multiple calls.
|
635
|
+
# client = Google::Cloud::Dialogflow::CX::V3::Pages::Rest::Client.new
|
636
|
+
#
|
637
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
638
|
+
# request = Google::Cloud::Dialogflow::CX::V3::DeletePageRequest.new
|
639
|
+
#
|
640
|
+
# # Call the delete_page method.
|
641
|
+
# result = client.delete_page request
|
642
|
+
#
|
643
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
644
|
+
# p result
|
645
|
+
#
|
562
646
|
def delete_page request, options = nil
|
563
647
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
564
648
|
|
@@ -8,7 +8,7 @@ require 'google/api/field_behavior_pb'
|
|
8
8
|
require 'google/protobuf/struct_pb'
|
9
9
|
|
10
10
|
|
11
|
-
descriptor_data = "\n4google/cloud/dialogflow/cx/v3/response_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\"\
|
11
|
+
descriptor_data = "\n4google/cloud/dialogflow/cx/v3/response_message.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\x1a\x1cgoogle/protobuf/struct.proto\"\xf1\r\n\x0fResponseMessage\x12\x43\n\x04text\x18\x01 \x01(\x0b\x32\x33.google.cloud.dialogflow.cx.v3.ResponseMessage.TextH\x00\x12*\n\x07payload\x18\x02 \x01(\x0b\x32\x17.google.protobuf.StructH\x00\x12\x62\n\x14\x63onversation_success\x18\t \x01(\x0b\x32\x42.google.cloud.dialogflow.cx.v3.ResponseMessage.ConversationSuccessH\x00\x12[\n\x11output_audio_text\x18\x08 \x01(\x0b\x32>.google.cloud.dialogflow.cx.v3.ResponseMessage.OutputAudioTextH\x00\x12]\n\x12live_agent_handoff\x18\n \x01(\x0b\x32?.google.cloud.dialogflow.cx.v3.ResponseMessage.LiveAgentHandoffH\x00\x12]\n\x0f\x65nd_interaction\x18\x0b \x01(\x0b\x32=.google.cloud.dialogflow.cx.v3.ResponseMessage.EndInteractionB\x03\xe0\x41\x03H\x00\x12N\n\nplay_audio\x18\x0c \x01(\x0b\x32\x38.google.cloud.dialogflow.cx.v3.ResponseMessage.PlayAudioH\x00\x12U\n\x0bmixed_audio\x18\r \x01(\x0b\x32\x39.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudioB\x03\xe0\x41\x03H\x00\x12g\n\x17telephony_transfer_call\x18\x12 \x01(\x0b\x32\x44.google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCallH\x00\x12_\n\x13knowledge_info_card\x18\x14 \x01(\x0b\x32@.google.cloud.dialogflow.cx.v3.ResponseMessage.KnowledgeInfoCardH\x00\x12R\n\rresponse_type\x18\x04 \x01(\x0e\x32;.google.cloud.dialogflow.cx.v3.ResponseMessage.ResponseType\x12\x0f\n\x07\x63hannel\x18\x13 \x01(\t\x1a\x43\n\x04Text\x12\x11\n\x04text\x18\x01 \x03(\tB\x03\xe0\x41\x02\x12(\n\x1b\x61llow_playback_interruption\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x1a=\n\x10LiveAgentHandoff\x12)\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a@\n\x13\x43onversationSuccess\x12)\n\x08metadata\x18\x01 \x01(\x0b\x32\x17.google.protobuf.Struct\x1a\x65\n\x0fOutputAudioText\x12\x0e\n\x04text\x18\x01 \x01(\tH\x00\x12\x0e\n\x04ssml\x18\x02 \x01(\tH\x00\x12(\n\x1b\x61llow_playback_interruption\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x42\x08\n\x06source\x1a\x10\n\x0e\x45ndInteraction\x1aM\n\tPlayAudio\x12\x16\n\taudio_uri\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12(\n\x1b\x61llow_playback_interruption\x18\x02 \x01(\x08\x42\x03\xe0\x41\x03\x1a\xc1\x01\n\nMixedAudio\x12S\n\x08segments\x18\x01 \x03(\x0b\x32\x41.google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment\x1a^\n\x07Segment\x12\x0f\n\x05\x61udio\x18\x01 \x01(\x0cH\x00\x12\r\n\x03uri\x18\x02 \x01(\tH\x00\x12(\n\x1b\x61llow_playback_interruption\x18\x03 \x01(\x08\x42\x03\xe0\x41\x03\x42\t\n\x07\x63ontent\x1a;\n\x15TelephonyTransferCall\x12\x16\n\x0cphone_number\x18\x01 \x01(\tH\x00\x42\n\n\x08\x65ndpoint\x1a\x13\n\x11KnowledgeInfoCard\"i\n\x0cResponseType\x12\x1d\n\x19RESPONSE_TYPE_UNSPECIFIED\x10\x00\x12\x10\n\x0c\x45NTRY_PROMPT\x10\x01\x12\x14\n\x10PARAMETER_PROMPT\x10\x02\x12\x12\n\x0eHANDLER_PROMPT\x10\x03\x42\t\n\x07messageB\xba\x01\n!com.google.cloud.dialogflow.cx.v3B\x14ResponseMessageProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
12
12
|
|
13
13
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
14
14
|
|
@@ -50,6 +50,7 @@ module Google
|
|
50
50
|
ResponseMessage::MixedAudio = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio").msgclass
|
51
51
|
ResponseMessage::MixedAudio::Segment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.MixedAudio.Segment").msgclass
|
52
52
|
ResponseMessage::TelephonyTransferCall = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.TelephonyTransferCall").msgclass
|
53
|
+
ResponseMessage::KnowledgeInfoCard = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.KnowledgeInfoCard").msgclass
|
53
54
|
ResponseMessage::ResponseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.ResponseMessage.ResponseType").enummodule
|
54
55
|
end
|
55
56
|
end
|
@@ -0,0 +1,47 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
3
|
+
# source: google/cloud/dialogflow/cx/v3/safety_settings.proto
|
4
|
+
|
5
|
+
require 'google/protobuf'
|
6
|
+
|
7
|
+
require 'google/api/field_behavior_pb'
|
8
|
+
|
9
|
+
|
10
|
+
descriptor_data = "\n3google/cloud/dialogflow/cx/v3/safety_settings.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1fgoogle/api/field_behavior.proto\"\x97\x01\n\x0eSafetySettings\x12L\n\x0e\x62\x61nned_phrases\x18\x01 \x03(\x0b\x32\x34.google.cloud.dialogflow.cx.v3.SafetySettings.Phrase\x1a\x37\n\x06Phrase\x12\x11\n\x04text\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x1a\n\rlanguage_code\x18\x02 \x01(\tB\x03\xe0\x41\x02\x42\xb9\x01\n!com.google.cloud.dialogflow.cx.v3B\x13SafetySettingsProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3b\x06proto3"
|
11
|
+
|
12
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
13
|
+
|
14
|
+
begin
|
15
|
+
pool.add_serialized_file(descriptor_data)
|
16
|
+
rescue TypeError => e
|
17
|
+
# Compatibility code: will be removed in the next major version.
|
18
|
+
require 'google/protobuf/descriptor_pb'
|
19
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
20
|
+
parsed.clear_dependency
|
21
|
+
serialized = parsed.class.encode(parsed)
|
22
|
+
file = pool.add_serialized_file(serialized)
|
23
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
24
|
+
imports = [
|
25
|
+
]
|
26
|
+
imports.each do |type_name, expected_filename|
|
27
|
+
import_file = pool.lookup(type_name).file_descriptor
|
28
|
+
if import_file.name != expected_filename
|
29
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
30
|
+
end
|
31
|
+
end
|
32
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
33
|
+
warn "This will become an error in the next major version."
|
34
|
+
end
|
35
|
+
|
36
|
+
module Google
|
37
|
+
module Cloud
|
38
|
+
module Dialogflow
|
39
|
+
module CX
|
40
|
+
module V3
|
41
|
+
SafetySettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SafetySettings").msgclass
|
42
|
+
SafetySettings::Phrase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SafetySettings.Phrase").msgclass
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
@@ -12,7 +12,7 @@ require 'google/protobuf/empty_pb'
|
|
12
12
|
require 'google/protobuf/field_mask_pb'
|
13
13
|
|
14
14
|
|
15
|
-
descriptor_data = "\n5google/cloud/dialogflow/cx/v3/security_settings.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"^\n\x1aGetSecuritySettingsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\"\xa6\x01\n\x1dUpdateSecuritySettingsRequest\x12O\n\x11security_settings\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x88\x01\n\x1bListSecuritySettingsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*dialogflow.googleapis.com/SecuritySettings\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x83\x01\n\x1cListSecuritySettingsResponse\x12J\n\x11security_settings\x18\x01 \x03(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettings\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb4\x01\n\x1d\x43reateSecuritySettingsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*dialogflow.googleapis.com/SecuritySettings\x12O\n\x11security_settings\x18\x02 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettingsB\x03\xe0\x41\x02\"a\n\x1d\x44\x65leteSecuritySettingsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\"\
|
15
|
+
descriptor_data = "\n5google/cloud/dialogflow/cx/v3/security_settings.proto\x12\x1dgoogle.cloud.dialogflow.cx.v3\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\"^\n\x1aGetSecuritySettingsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\"\xa6\x01\n\x1dUpdateSecuritySettingsRequest\x12O\n\x11security_settings\x18\x01 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettingsB\x03\xe0\x41\x02\x12\x34\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\"\x88\x01\n\x1bListSecuritySettingsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*dialogflow.googleapis.com/SecuritySettings\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x83\x01\n\x1cListSecuritySettingsResponse\x12J\n\x11security_settings\x18\x01 \x03(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettings\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"\xb4\x01\n\x1d\x43reateSecuritySettingsRequest\x12\x42\n\x06parent\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\x12*dialogflow.googleapis.com/SecuritySettings\x12O\n\x11security_settings\x18\x02 \x01(\x0b\x32/.google.cloud.dialogflow.cx.v3.SecuritySettingsB\x03\xe0\x41\x02\"a\n\x1d\x44\x65leteSecuritySettingsRequest\x12@\n\x04name\x18\x01 \x01(\tB2\xe0\x41\x02\xfa\x41,\n*dialogflow.googleapis.com/SecuritySettings\"\xce\x0c\n\x10SecuritySettings\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x19\n\x0c\x64isplay_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12]\n\x12redaction_strategy\x18\x03 \x01(\x0e\x32\x41.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy\x12W\n\x0fredaction_scope\x18\x04 \x01(\x0e\x32>.google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope\x12\x41\n\x10inspect_template\x18\t \x01(\tB\'\xfa\x41$\n\"dlp.googleapis.com/InspectTemplate\x12G\n\x13\x64\x65identify_template\x18\x11 \x01(\tB*\xfa\x41\'\n%dlp.googleapis.com/DeidentifyTemplate\x12\x1f\n\x15retention_window_days\x18\x06 \x01(\x05H\x00\x12_\n\x12retention_strategy\x18\x07 \x01(\x0e\x32\x41.google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategyH\x00\x12W\n\x10purge_data_types\x18\x08 \x03(\x0e\x32=.google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType\x12\x62\n\x15\x61udio_export_settings\x18\x0c \x01(\x0b\x32\x43.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings\x12h\n\x18insights_export_settings\x18\r \x01(\x0b\x32\x46.google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings\x1a\x98\x02\n\x13\x41udioExportSettings\x12\x12\n\ngcs_bucket\x18\x01 \x01(\t\x12\x1c\n\x14\x61udio_export_pattern\x18\x02 \x01(\t\x12\x1e\n\x16\x65nable_audio_redaction\x18\x03 \x01(\x08\x12\x65\n\x0c\x61udio_format\x18\x04 \x01(\x0e\x32O.google.cloud.dialogflow.cx.v3.SecuritySettings.AudioExportSettings.AudioFormat\"H\n\x0b\x41udioFormat\x12\x1c\n\x18\x41UDIO_FORMAT_UNSPECIFIED\x10\x00\x12\t\n\x05MULAW\x10\x01\x12\x07\n\x03MP3\x10\x02\x12\x07\n\x03OGG\x10\x03\x1a\x38\n\x16InsightsExportSettings\x12\x1e\n\x16\x65nable_insights_export\x18\x01 \x01(\x08\"P\n\x11RedactionStrategy\x12\"\n\x1eREDACTION_STRATEGY_UNSPECIFIED\x10\x00\x12\x17\n\x13REDACT_WITH_SERVICE\x10\x01\"J\n\x0eRedactionScope\x12\x1f\n\x1bREDACTION_SCOPE_UNSPECIFIED\x10\x00\x12\x17\n\x13REDACT_DISK_STORAGE\x10\x02\"V\n\x11RetentionStrategy\x12\"\n\x1eRETENTION_STRATEGY_UNSPECIFIED\x10\x00\x12\x1d\n\x19REMOVE_AFTER_CONVERSATION\x10\x01\"H\n\rPurgeDataType\x12\x1f\n\x1bPURGE_DATA_TYPE_UNSPECIFIED\x10\x00\x12\x16\n\x12\x44IALOGFLOW_HISTORY\x10\x01:}\xea\x41z\n*dialogflow.googleapis.com/SecuritySettings\x12Lprojects/{project}/locations/{location}/securitySettings/{security_settings}B\x10\n\x0e\x64\x61ta_retention2\xef\t\n\x17SecuritySettingsService\x12\xf3\x01\n\x16\x43reateSecuritySettings\x12<.google.cloud.dialogflow.cx.v3.CreateSecuritySettingsRequest\x1a/.google.cloud.dialogflow.cx.v3.SecuritySettings\"j\x82\xd3\xe4\x93\x02I\"4/v3/{parent=projects/*/locations/*}/securitySettings:\x11security_settings\xda\x41\x18parent,security_settings\x12\xc6\x01\n\x13GetSecuritySettings\x12\x39.google.cloud.dialogflow.cx.v3.GetSecuritySettingsRequest\x1a/.google.cloud.dialogflow.cx.v3.SecuritySettings\"C\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{name=projects/*/locations/*/securitySettings/*}\xda\x41\x04name\x12\x8b\x02\n\x16UpdateSecuritySettings\x12<.google.cloud.dialogflow.cx.v3.UpdateSecuritySettingsRequest\x1a/.google.cloud.dialogflow.cx.v3.SecuritySettings\"\x81\x01\x82\xd3\xe4\x93\x02[2F/v3/{security_settings.name=projects/*/locations/*/securitySettings/*}:\x11security_settings\xda\x41\x1dsecurity_settings,update_mask\x12\xd6\x01\n\x14ListSecuritySettings\x12:.google.cloud.dialogflow.cx.v3.ListSecuritySettingsRequest\x1a;.google.cloud.dialogflow.cx.v3.ListSecuritySettingsResponse\"E\x82\xd3\xe4\x93\x02\x36\x12\x34/v3/{parent=projects/*/locations/*}/securitySettings\xda\x41\x06parent\x12\xb3\x01\n\x16\x44\x65leteSecuritySettings\x12<.google.cloud.dialogflow.cx.v3.DeleteSecuritySettingsRequest\x1a\x16.google.protobuf.Empty\"C\x82\xd3\xe4\x93\x02\x36*4/v3/{name=projects/*/locations/*/securitySettings/*}\xda\x41\x04name\x1ax\xca\x41\x19\x64ialogflow.googleapis.com\xd2\x41Yhttps://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/dialogflowB\xe2\x04\n!com.google.cloud.dialogflow.cx.v3B\x15SecuritySettingsProtoP\x01Z1cloud.google.com/go/dialogflow/cx/apiv3/cxpb;cxpb\xf8\x01\x01\xa2\x02\x02\x44\x46\xaa\x02\x1dGoogle.Cloud.Dialogflow.Cx.V3\xea\x02!Google::Cloud::Dialogflow::CX::V3\xea\x41\xc8\x01\n\"dlp.googleapis.com/InspectTemplate\x12Uorganizations/{organization}/locations/{location}/inspectTemplates/{inspect_template}\x12Kprojects/{project}/locations/{location}/inspectTemplates/{inspect_template}\xea\x41\xd7\x01\n%dlp.googleapis.com/DeidentifyTemplate\x12[organizations/{organization}/locations/{location}/deidentifyTemplates/{deidentify_template}\x12Qprojects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}b\x06proto3"
|
16
16
|
|
17
17
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
18
|
|
@@ -56,6 +56,7 @@ module Google
|
|
56
56
|
SecuritySettings::InsightsExportSettings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SecuritySettings.InsightsExportSettings").msgclass
|
57
57
|
SecuritySettings::RedactionStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionStrategy").enummodule
|
58
58
|
SecuritySettings::RedactionScope = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SecuritySettings.RedactionScope").enummodule
|
59
|
+
SecuritySettings::RetentionStrategy = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SecuritySettings.RetentionStrategy").enummodule
|
59
60
|
SecuritySettings::PurgeDataType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.dialogflow.cx.v3.SecuritySettings.PurgeDataType").enummodule
|
60
61
|
end
|
61
62
|
end
|