google-cloud-dialogflow-cx-v3 0.18.0 → 0.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (30) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +5 -1
  3. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +6 -2
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +6 -2
  5. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +3 -1
  6. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +4 -1
  7. data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +40 -14
  8. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +4 -1
  9. data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +44 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +40 -14
  11. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +2 -1
  12. data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +2 -1
  13. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +2 -1
  14. data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +39 -13
  15. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +2 -1
  16. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +1 -1
  17. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +10 -4
  18. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +58 -13
  19. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +10 -4
  20. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +37 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  22. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +72 -3
  23. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +21 -1
  24. data/proto_docs/google/cloud/dialogflow/cx/v3/import_strategy.rb +54 -0
  25. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +4 -1
  26. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +24 -0
  27. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +5 -5
  28. data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +13 -6
  29. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +2 -2
  30. metadata +4 -2
@@ -186,7 +186,8 @@ module Google
186
186
  # @param parent [::String]
187
187
  # Required. The flow to list all transition route groups for.
188
188
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
189
- # ID>/flows/<Flow ID>`.
189
+ # ID>/flows/<Flow ID>`
190
+ # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.
190
191
  # @param page_size [::Integer]
191
192
  # The maximum number of items to return in a single page. By default 100 and
192
193
  # at most 1000.
@@ -299,7 +300,9 @@ module Google
299
300
  # Required. The name of the
300
301
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}.
301
302
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
302
- # ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
303
+ # ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`
304
+ # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent
305
+ # ID>/transitionRouteGroups/<Transition Route Group ID>`.
303
306
  # @param language_code [::String]
304
307
  # The language to retrieve the transition route group for. The following
305
308
  # fields are language dependent:
@@ -406,7 +409,9 @@ module Google
406
409
  # Required. The flow to create an
407
410
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
408
411
  # for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
409
- # ID>/flows/<Flow ID>`.
412
+ # ID>/flows/<Flow ID>`
413
+ # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`
414
+ # for agent-level groups.
410
415
  # @param transition_route_group [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup, ::Hash]
411
416
  # Required. The transition route group to create.
412
417
  # @param language_code [::String]
@@ -618,7 +623,8 @@ module Google
618
623
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
619
624
  # to delete. Format: `projects/<Project ID>/locations/<Location
620
625
  # ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
621
- # Route Group ID>`.
626
+ # Route Group ID>` or `projects/<Project ID>/locations/<Location
627
+ # ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>`.
622
628
  # @param force [::Boolean]
623
629
  # This field has no effect for transition route group that no page is using.
624
630
  # If the transition route group is referenced by any page:
@@ -25,6 +25,25 @@ module Google
25
25
  module TransitionRouteGroups
26
26
  # Path helper methods for the TransitionRouteGroups API.
27
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
+
28
47
  ##
29
48
  # Create a fully-qualified Flow resource string.
30
49
  #
@@ -93,24 +112,50 @@ module Google
93
112
  ##
94
113
  # Create a fully-qualified TransitionRouteGroup resource string.
95
114
  #
96
- # The resource will be in the following format:
115
+ # @overload transition_route_group_path(project:, location:, agent:, flow:, transition_route_group:)
116
+ # The resource will be in the following format:
97
117
  #
98
- # `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}`
118
+ # `projects/{project}/locations/{location}/agents/{agent}/flows/{flow}/transitionRouteGroups/{transition_route_group}`
99
119
  #
100
- # @param project [String]
101
- # @param location [String]
102
- # @param agent [String]
103
- # @param flow [String]
104
- # @param transition_route_group [String]
120
+ # @param project [String]
121
+ # @param location [String]
122
+ # @param agent [String]
123
+ # @param flow [String]
124
+ # @param transition_route_group [String]
125
+ #
126
+ # @overload transition_route_group_path(project:, location:, agent:, transition_route_group:)
127
+ # The resource will be in the following format:
128
+ #
129
+ # `projects/{project}/locations/{location}/agents/{agent}/transitionRouteGroups/{transition_route_group}`
130
+ #
131
+ # @param project [String]
132
+ # @param location [String]
133
+ # @param agent [String]
134
+ # @param transition_route_group [String]
105
135
  #
106
136
  # @return [::String]
107
- def transition_route_group_path project:, location:, agent:, flow:, transition_route_group:
108
- raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
109
- raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
110
- raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
111
- raise ::ArgumentError, "flow cannot contain /" if flow.to_s.include? "/"
137
+ def transition_route_group_path **args
138
+ resources = {
139
+ "agent:flow:location:project:transition_route_group" => (proc do |project:, location:, agent:, flow:, transition_route_group:|
140
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
141
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
142
+ raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
143
+ raise ::ArgumentError, "flow cannot contain /" if flow.to_s.include? "/"
144
+
145
+ "projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/transitionRouteGroups/#{transition_route_group}"
146
+ end),
147
+ "agent:location:project:transition_route_group" => (proc do |project:, location:, agent:, transition_route_group:|
148
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
149
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
150
+ raise ::ArgumentError, "agent cannot contain /" if agent.to_s.include? "/"
151
+
152
+ "projects/#{project}/locations/#{location}/agents/#{agent}/transitionRouteGroups/#{transition_route_group}"
153
+ end)
154
+ }
112
155
 
113
- "projects/#{project}/locations/#{location}/agents/#{agent}/flows/#{flow}/transitionRouteGroups/#{transition_route_group}"
156
+ resource = resources[args.keys.sort.join(":")]
157
+ raise ::ArgumentError, "no resource found for values #{args.keys}" if resource.nil?
158
+ resource.call(**args)
114
159
  end
115
160
 
116
161
  ##
@@ -178,7 +178,8 @@ module Google
178
178
  # @param parent [::String]
179
179
  # Required. The flow to list all transition route groups for.
180
180
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
181
- # ID>/flows/<Flow ID>`.
181
+ # ID>/flows/<Flow ID>`
182
+ # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.
182
183
  # @param page_size [::Integer]
183
184
  # The maximum number of items to return in a single page. By default 100 and
184
185
  # at most 1000.
@@ -264,7 +265,9 @@ module Google
264
265
  # Required. The name of the
265
266
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}.
266
267
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
267
- # ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
268
+ # ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`
269
+ # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent
270
+ # ID>/transitionRouteGroups/<Transition Route Group ID>`.
268
271
  # @param language_code [::String]
269
272
  # The language to retrieve the transition route group for. The following
270
273
  # fields are language dependent:
@@ -348,7 +351,9 @@ module Google
348
351
  # Required. The flow to create an
349
352
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
350
353
  # for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
351
- # ID>/flows/<Flow ID>`.
354
+ # ID>/flows/<Flow ID>`
355
+ # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`
356
+ # for agent-level groups.
352
357
  # @param transition_route_group [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup, ::Hash]
353
358
  # Required. The transition route group to create.
354
359
  # @param language_code [::String]
@@ -514,7 +519,8 @@ module Google
514
519
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
515
520
  # to delete. Format: `projects/<Project ID>/locations/<Location
516
521
  # ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
517
- # Route Group ID>`.
522
+ # Route Group ID>` or `projects/<Project ID>/locations/<Location
523
+ # ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>`.
518
524
  # @param force [::Boolean]
519
525
  # This field has no effect for transition route group that no page is using.
520
526
  # If the transition route group is referenced by any page:
@@ -249,6 +249,13 @@ module Google
249
249
  ["parent", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/?$}, false]
250
250
  ]
251
251
  )
252
+ .with_bindings(
253
+ uri_method: :get,
254
+ uri_template: "/v3/{parent}/transitionRouteGroups",
255
+ matches: [
256
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
257
+ ]
258
+ )
252
259
  transcoder.transcode request_pb
253
260
  end
254
261
 
@@ -270,6 +277,13 @@ module Google
270
277
  ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
271
278
  ]
272
279
  )
280
+ .with_bindings(
281
+ uri_method: :get,
282
+ uri_template: "/v3/{name}",
283
+ matches: [
284
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
285
+ ]
286
+ )
273
287
  transcoder.transcode request_pb
274
288
  end
275
289
 
@@ -292,6 +306,14 @@ module Google
292
306
  ["parent", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/?$}, false]
293
307
  ]
294
308
  )
309
+ .with_bindings(
310
+ uri_method: :post,
311
+ uri_template: "/v3/{parent}/transitionRouteGroups",
312
+ body: "transition_route_group",
313
+ matches: [
314
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/?$}, false]
315
+ ]
316
+ )
295
317
  transcoder.transcode request_pb
296
318
  end
297
319
 
@@ -314,6 +336,14 @@ module Google
314
336
  ["transition_route_group.name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
315
337
  ]
316
338
  )
339
+ .with_bindings(
340
+ uri_method: :patch,
341
+ uri_template: "/v3/{transition_route_group.name}",
342
+ body: "transition_route_group",
343
+ matches: [
344
+ ["transition_route_group.name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
345
+ ]
346
+ )
317
347
  transcoder.transcode request_pb
318
348
  end
319
349
 
@@ -335,6 +365,13 @@ module Google
335
365
  ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/flows/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
336
366
  ]
337
367
  )
368
+ .with_bindings(
369
+ uri_method: :delete,
370
+ uri_template: "/v3/{name}",
371
+ matches: [
372
+ ["name", %r{^projects/[^/]+/locations/[^/]+/agents/[^/]+/transitionRouteGroups/[^/]+/?$}, false]
373
+ ]
374
+ )
338
375
  transcoder.transcode request_pb
339
376
  end
340
377
  end
@@ -22,7 +22,7 @@ module Google
22
22
  module Dialogflow
23
23
  module CX
24
24
  module V3
25
- VERSION = "0.18.0"
25
+ VERSION = "0.20.0"
26
26
  end
27
27
  end
28
28
  end
@@ -41,8 +41,9 @@ module Google
41
41
  # Types][google.cloud.dialogflow.cx.v3.EntityType],
42
42
  # {::Google::Cloud::Dialogflow::CX::V3::Flow Flows},
43
43
  # {::Google::Cloud::Dialogflow::CX::V3::Fulfillment Fulfillments},
44
- # {::Google::Cloud::Dialogflow::CX::V3::Webhook Webhooks}, and so on to manage the
45
- # conversation flows..
44
+ # {::Google::Cloud::Dialogflow::CX::V3::Webhook Webhooks},
45
+ # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroups}
46
+ # and so on to manage the conversation flows.
46
47
  # @!attribute [rw] name
47
48
  # @return [::String]
48
49
  # The unique identifier of the agent.
@@ -116,6 +117,9 @@ module Google
116
117
  # @return [::Google::Cloud::Dialogflow::CX::V3::AdvancedSettings]
117
118
  # Hierarchical advanced settings for this agent. The settings exposed at the
118
119
  # lower level overrides the settings exposed at the higher level.
120
+ # @!attribute [rw] git_integration_settings
121
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Agent::GitIntegrationSettings]
122
+ # Git integration settings for this agent.
119
123
  # @!attribute [rw] text_to_speech_settings
120
124
  # @return [::Google::Cloud::Dialogflow::CX::V3::TextToSpeechSettings]
121
125
  # Settings on instructing the speech synthesizer on how to generate the
@@ -123,6 +127,37 @@ module Google
123
127
  class Agent
124
128
  include ::Google::Protobuf::MessageExts
125
129
  extend ::Google::Protobuf::MessageExts::ClassMethods
130
+
131
+ # Settings for connecting to Git repository for an agent.
132
+ # @!attribute [rw] github_settings
133
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Agent::GitIntegrationSettings::GithubSettings]
134
+ # GitHub settings.
135
+ class GitIntegrationSettings
136
+ include ::Google::Protobuf::MessageExts
137
+ extend ::Google::Protobuf::MessageExts::ClassMethods
138
+
139
+ # Settings of integration with GitHub.
140
+ # @!attribute [rw] display_name
141
+ # @return [::String]
142
+ # The unique repository display name for the GitHub repository.
143
+ # @!attribute [rw] repository_uri
144
+ # @return [::String]
145
+ # The GitHub repository URI related to the agent.
146
+ # @!attribute [rw] tracking_branch
147
+ # @return [::String]
148
+ # The branch of the GitHub repository tracked for this agent.
149
+ # @!attribute [rw] access_token
150
+ # @return [::String]
151
+ # The access token used to authenticate the access to the GitHub
152
+ # repository.
153
+ # @!attribute [rw] branches
154
+ # @return [::Array<::String>]
155
+ # A list of branches configured to be used from Dialogflow.
156
+ class GithubSettings
157
+ include ::Google::Protobuf::MessageExts
158
+ extend ::Google::Protobuf::MessageExts::ClassMethods
159
+ end
160
+ end
126
161
  end
127
162
 
128
163
  # The request message for
@@ -235,6 +270,9 @@ module Google
235
270
  # Optional. Environment name. If not set, draft environment is assumed.
236
271
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
237
272
  # ID>/environments/<Environment ID>`.
273
+ # @!attribute [rw] git_destination
274
+ # @return [::Google::Cloud::Dialogflow::CX::V3::ExportAgentRequest::GitDestination]
275
+ # Optional. The Git branch to export the agent to.
238
276
  # @!attribute [rw] include_bigquery_export_settings
239
277
  # @return [::Boolean]
240
278
  # Optional. Whether to include BigQuery Export setting.
@@ -242,6 +280,18 @@ module Google
242
280
  include ::Google::Protobuf::MessageExts
243
281
  extend ::Google::Protobuf::MessageExts::ClassMethods
244
282
 
283
+ # Settings for exporting to a git branch.
284
+ # @!attribute [rw] tracking_branch
285
+ # @return [::String]
286
+ # Tracking branch for the git push.
287
+ # @!attribute [rw] commit_message
288
+ # @return [::String]
289
+ # Commit message for the git push.
290
+ class GitDestination
291
+ include ::Google::Protobuf::MessageExts
292
+ extend ::Google::Protobuf::MessageExts::ClassMethods
293
+ end
294
+
245
295
  # Data format of the exported agent.
246
296
  module DataFormat
247
297
  # Unspecified format.
@@ -264,7 +314,14 @@ module Google
264
314
  # {::Google::Cloud::Dialogflow::CX::V3::ExportAgentRequest ExportAgentRequest}.
265
315
  # @!attribute [rw] agent_content
266
316
  # @return [::String]
267
- # Uncompressed raw byte content for agent.
317
+ # Uncompressed raw byte content for agent. This field is populated
318
+ # if none of `agent_uri` and `git_destination` are specified in
319
+ # {::Google::Cloud::Dialogflow::CX::V3::ExportAgentRequest ExportAgentRequest}.
320
+ # @!attribute [rw] commit_sha
321
+ # @return [::String]
322
+ # Commit SHA of the git push. This field is populated if
323
+ # `git_destination` is specified in
324
+ # {::Google::Cloud::Dialogflow::CX::V3::ExportAgentRequest ExportAgentRequest}.
268
325
  class ExportAgentResponse
269
326
  include ::Google::Protobuf::MessageExts
270
327
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -290,6 +347,9 @@ module Google
290
347
  # @!attribute [rw] agent_content
291
348
  # @return [::String]
292
349
  # Uncompressed raw byte content for agent.
350
+ # @!attribute [rw] git_source
351
+ # @return [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::GitSource]
352
+ # Setting for restoring from a git branch
293
353
  # @!attribute [rw] restore_option
294
354
  # @return [::Google::Cloud::Dialogflow::CX::V3::RestoreAgentRequest::RestoreOption]
295
355
  # Agent restore mode. If not specified, `KEEP` is assumed.
@@ -297,6 +357,15 @@ module Google
297
357
  include ::Google::Protobuf::MessageExts
298
358
  extend ::Google::Protobuf::MessageExts::ClassMethods
299
359
 
360
+ # Settings for restoring from a git branch
361
+ # @!attribute [rw] tracking_branch
362
+ # @return [::String]
363
+ # tracking branch for the git pull
364
+ class GitSource
365
+ include ::Google::Protobuf::MessageExts
366
+ extend ::Google::Protobuf::MessageExts::ClassMethods
367
+ end
368
+
300
369
  # Restore option.
301
370
  module RestoreOption
302
371
  # Unspecified. Treated as KEEP.
@@ -138,7 +138,10 @@ module Google
138
138
  # defined in the page have higher priority than those defined in the flow.
139
139
  #
140
140
  # Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
141
- # ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
141
+ # ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`
142
+ # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent
143
+ # ID>/transitionRouteGroups/<TransitionRouteGroup ID>` for agent-level
144
+ # groups.
142
145
  # @!attribute [rw] nlu_settings
143
146
  # @return [::Google::Cloud::Dialogflow::CX::V3::NluSettings]
144
147
  # NLU related settings of the flow.
@@ -385,6 +388,10 @@ module Google
385
388
  # @!attribute [rw] import_option
386
389
  # @return [::Google::Cloud::Dialogflow::CX::V3::ImportFlowRequest::ImportOption]
387
390
  # Flow import mode. If not specified, `KEEP` is assumed.
391
+ # @!attribute [rw] flow_import_strategy
392
+ # @return [::Google::Cloud::Dialogflow::CX::V3::FlowImportStrategy]
393
+ # Optional. Specifies the import strategy used when resolving resource
394
+ # conflicts.
388
395
  class ImportFlowRequest
389
396
  include ::Google::Protobuf::MessageExts
390
397
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -406,6 +413,19 @@ module Google
406
413
  end
407
414
  end
408
415
 
416
+ # The flow import strategy used for resource conflict resolution associated
417
+ # with an {::Google::Cloud::Dialogflow::CX::V3::ImportFlowRequest ImportFlowRequest}.
418
+ # @!attribute [rw] global_import_strategy
419
+ # @return [::Google::Cloud::Dialogflow::CX::V3::ImportStrategy]
420
+ # Optional. Import strategy for resource conflict resolution, applied
421
+ # globally throughout the flow. It will be applied for all display name
422
+ # conflicts in the imported content. If not specified, 'CREATE_NEW' is
423
+ # assumed.
424
+ class FlowImportStrategy
425
+ include ::Google::Protobuf::MessageExts
426
+ extend ::Google::Protobuf::MessageExts::ClassMethods
427
+ end
428
+
409
429
  # The response message for
410
430
  # {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#import_flow Flows.ImportFlow}.
411
431
  # @!attribute [rw] flow
@@ -0,0 +1,54 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 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
+ # Import strategies for the conflict resolution of resources (i.e. intents,
26
+ # entities, and webhooks) with identical display names during import
27
+ # operations.
28
+ module ImportStrategy
29
+ # Unspecified. Treated as 'CREATE_NEW'.
30
+ IMPORT_STRATEGY_UNSPECIFIED = 0
31
+
32
+ # Create a new resource with a numeric suffix appended to the end of the
33
+ # existing display name.
34
+ IMPORT_STRATEGY_CREATE_NEW = 1
35
+
36
+ # Replace existing resource with incoming resource in the content to be
37
+ # imported.
38
+ IMPORT_STRATEGY_REPLACE = 2
39
+
40
+ # Keep existing resource and discard incoming resource in the content to be
41
+ # imported.
42
+ IMPORT_STRATEGY_KEEP = 3
43
+
44
+ # Combine existing and incoming resources when a conflict is encountered.
45
+ IMPORT_STRATEGY_MERGE = 4
46
+
47
+ # Throw error if a conflict is encountered.
48
+ IMPORT_STRATEGY_THROW_ERROR = 5
49
+ end
50
+ end
51
+ end
52
+ end
53
+ end
54
+ end
@@ -72,7 +72,10 @@ module Google
72
72
  # intent, then the first group in the ordered list takes precedence.
73
73
  #
74
74
  # Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
75
- # ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
75
+ # ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`
76
+ # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent
77
+ # ID>/transitionRouteGroups/<TransitionRouteGroup ID>` for agent-level
78
+ # groups.
76
79
  # @!attribute [rw] transition_routes
77
80
  # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TransitionRoute>]
78
81
  # A list of transitions for the transition rules of this page.
@@ -81,6 +81,9 @@ module Google
81
81
  # @return [::Google::Cloud::Dialogflow::CX::V3::ResponseMessage::TelephonyTransferCall]
82
82
  # A signal that the client should transfer the phone call connected to
83
83
  # this agent to a third-party endpoint.
84
+ # @!attribute [rw] response_type
85
+ # @return [::Google::Cloud::Dialogflow::CX::V3::ResponseMessage::ResponseType]
86
+ # Response type.
84
87
  # @!attribute [rw] channel
85
88
  # @return [::String]
86
89
  # The channel which the response is associated with. Clients can specify the
@@ -238,6 +241,27 @@ module Google
238
241
  include ::Google::Protobuf::MessageExts
239
242
  extend ::Google::Protobuf::MessageExts::ClassMethods
240
243
  end
244
+
245
+ # Represents different response types.
246
+ module ResponseType
247
+ # Not specified.
248
+ RESPONSE_TYPE_UNSPECIFIED = 0
249
+
250
+ # The response is from an [entry
251
+ # prompt][google.cloud.dialogflow.cx.v3.Page.entry_fulfillment] in the
252
+ # page.
253
+ ENTRY_PROMPT = 1
254
+
255
+ # The response is from [form-filling
256
+ # prompt][google.cloud.dialogflow.cx.v3.Form.Parameter.fill_behavior] in
257
+ # the page.
258
+ PARAMETER_PROMPT = 2
259
+
260
+ # The response is from a [transition
261
+ # route][google.cloud.dialogflow.cx.v3.TransitionRoute] or an [event
262
+ # handler][EventHandler] in the page or flow or transition route group.
263
+ HANDLER_PROMPT = 3
264
+ end
241
265
  end
242
266
  end
243
267
  end
@@ -529,15 +529,15 @@ module Google
529
529
 
530
530
  # Represents the query input. It can contain one of:
531
531
  #
532
- # 1. A conversational query in the form of text.
532
+ # 1. A conversational query in the form of text.
533
533
  #
534
- # 2. An intent query that specifies which intent to trigger.
534
+ # 2. An intent query that specifies which intent to trigger.
535
535
  #
536
- # 3. Natural language speech audio to be processed.
536
+ # 3. Natural language speech audio to be processed.
537
537
  #
538
- # 4. An event to be triggered.
538
+ # 4. An event to be triggered.
539
539
  #
540
- # 5. DTMF digits to invoke an intent and fill in parameter value.
540
+ # 5. DTMF digits to invoke an intent and fill in parameter value.
541
541
  # @!attribute [rw] text
542
542
  # @return [::Google::Cloud::Dialogflow::CX::V3::TextInput]
543
543
  # The natural language text to be processed.
@@ -22,7 +22,7 @@ module Google
22
22
  module Dialogflow
23
23
  module CX
24
24
  module V3
25
- # An TransitionRouteGroup represents a group of
25
+ # A TransitionRouteGroup represents a group of
26
26
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRoute `TransitionRoutes`} to be
27
27
  # used by a {::Google::Cloud::Dialogflow::CX::V3::Page Page}.
28
28
  # @!attribute [rw] name
@@ -31,7 +31,8 @@ module Google
31
31
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroups::Client#create_transition_route_group TransitionRouteGroups.CreateTransitionRouteGroup}
32
32
  # populates the name automatically. Format: `projects/<Project
33
33
  # ID>/locations/<Location ID>/agents/<Agent ID>/flows/<Flow
34
- # ID>/transitionRouteGroups/<Transition Route Group ID>`.
34
+ # ID>/transitionRouteGroups/<Transition Route Group ID>`
35
+ # .
35
36
  # @!attribute [rw] display_name
36
37
  # @return [::String]
37
38
  # Required. The human-readable name of the transition route group, unique
@@ -51,7 +52,8 @@ module Google
51
52
  # @return [::String]
52
53
  # Required. The flow to list all transition route groups for.
53
54
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
54
- # ID>/flows/<Flow ID>`.
55
+ # ID>/flows/<Flow ID>`
56
+ # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.
55
57
  # @!attribute [rw] page_size
56
58
  # @return [::Integer]
57
59
  # The maximum number of items to return in a single page. By default 100 and
@@ -103,7 +105,9 @@ module Google
103
105
  # Required. The name of the
104
106
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}.
105
107
  # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
106
- # ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`.
108
+ # ID>/flows/<Flow ID>/transitionRouteGroups/<Transition Route Group ID>`
109
+ # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent
110
+ # ID>/transitionRouteGroups/<Transition Route Group ID>`.
107
111
  # @!attribute [rw] language_code
108
112
  # @return [::String]
109
113
  # The language to retrieve the transition route group for. The following
@@ -130,7 +134,9 @@ module Google
130
134
  # Required. The flow to create an
131
135
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
132
136
  # for. Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
133
- # ID>/flows/<Flow ID>`.
137
+ # ID>/flows/<Flow ID>`
138
+ # or `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`
139
+ # for agent-level groups.
134
140
  # @!attribute [rw] transition_route_group
135
141
  # @return [::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup]
136
142
  # Required. The transition route group to create.
@@ -186,7 +192,8 @@ module Google
186
192
  # {::Google::Cloud::Dialogflow::CX::V3::TransitionRouteGroup TransitionRouteGroup}
187
193
  # to delete. Format: `projects/<Project ID>/locations/<Location
188
194
  # ID>/agents/<Agent ID>/flows/<Flow ID>/transitionRouteGroups/<Transition
189
- # Route Group ID>`.
195
+ # Route Group ID>` or `projects/<Project ID>/locations/<Location
196
+ # ID>/agents/<Agent ID>/transitionRouteGroups/<Transition Route Group ID>`.
190
197
  # @!attribute [rw] force
191
198
  # @return [::Boolean]
192
199
  # This field has no effect for transition route group that no page is using.
@@ -101,8 +101,8 @@ module Google
101
101
  # @return [::Google::Protobuf::Map{::String => ::String}]
102
102
  # Optional. Maps the values extracted from specific fields of the flexible
103
103
  # webhook response into session parameters.
104
- # - Key: session parameter name
105
- # - Value: field path in the webhook response
104
+ # - Key: session parameter name
105
+ # - Value: field path in the webhook response
106
106
  class GenericWebService
107
107
  include ::Google::Protobuf::MessageExts
108
108
  extend ::Google::Protobuf::MessageExts::ClassMethods