google-cloud-dialogflow-cx-v3 0.19.0 → 0.21.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (78) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +6 -1
  3. data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +4 -0
  4. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +200 -1
  5. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +10 -1
  6. data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +19 -0
  7. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/client.rb +338 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/operations.rb +75 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/agents/rest/service_stub.rb +119 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/changelogs/client.rb +10 -1
  11. data/lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb +36 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb +45 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/deployments/client.rb +10 -1
  14. data/lib/google/cloud/dialogflow/cx/v3/deployments/rest/client.rb +36 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +10 -1
  16. data/lib/google/cloud/dialogflow/cx/v3/entity_types/rest/client.rb +84 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +10 -1
  18. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +10 -1
  19. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/client.rb +184 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/environments/rest/operations.rb +75 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +10 -1
  22. data/lib/google/cloud/dialogflow/cx/v3/experiments/rest/client.rb +116 -0
  23. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +3 -1
  24. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +14 -2
  25. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +10 -1
  26. data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +40 -14
  27. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/client.rb +189 -1
  28. data/lib/google/cloud/dialogflow/cx/v3/flows/rest/operations.rb +75 -0
  29. data/lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb +51 -0
  30. data/lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb +44 -0
  31. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +10 -1
  32. data/lib/google/cloud/dialogflow/cx/v3/intents/rest/client.rb +84 -0
  33. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +4 -1
  34. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +10 -1
  35. data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +40 -14
  36. data/lib/google/cloud/dialogflow/cx/v3/pages/rest/client.rb +84 -0
  37. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +3 -1
  38. data/lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb +47 -0
  39. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +2 -1
  40. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +10 -1
  41. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/rest/client.rb +84 -0
  42. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +10 -1
  43. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/rest/client.rb +84 -0
  44. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +1 -1
  45. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +10 -1
  46. data/lib/google/cloud/dialogflow/cx/v3/sessions/rest/client.rb +48 -0
  47. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +10 -1
  48. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +10 -1
  49. data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +39 -13
  50. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/client.rb +228 -0
  51. data/lib/google/cloud/dialogflow/cx/v3/test_cases/rest/operations.rb +75 -0
  52. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +1 -1
  53. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +20 -5
  54. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +58 -13
  55. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/client.rb +94 -4
  56. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/rest/service_stub.rb +37 -0
  57. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +1 -1
  58. data/lib/google/cloud/dialogflow/cx/v3/version.rb +1 -1
  59. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +10 -1
  60. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +10 -1
  61. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/client.rb +130 -0
  62. data/lib/google/cloud/dialogflow/cx/v3/versions/rest/operations.rb +75 -0
  63. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +10 -1
  64. data/lib/google/cloud/dialogflow/cx/v3/webhooks/rest/client.rb +84 -0
  65. data/proto_docs/google/api/field_behavior.rb +14 -0
  66. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +49 -4
  67. data/proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb +61 -0
  68. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +24 -1
  69. data/proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb +109 -0
  70. data/proto_docs/google/cloud/dialogflow/cx/v3/import_strategy.rb +54 -0
  71. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +48 -3
  72. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +38 -0
  73. data/proto_docs/google/cloud/dialogflow/cx/v3/safety_settings.rb +49 -0
  74. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +17 -2
  75. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +9 -6
  76. data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +13 -6
  77. data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +3 -0
  78. metadata +13 -5
@@ -0,0 +1,49 @@
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
+ # Settings for Generative Safety.
26
+ # @!attribute [rw] banned_phrases
27
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::SafetySettings::Phrase>]
28
+ # Banned phrases for generated text.
29
+ class SafetySettings
30
+ include ::Google::Protobuf::MessageExts
31
+ extend ::Google::Protobuf::MessageExts::ClassMethods
32
+
33
+ # Text input which can be used for prompt or banned phrases.
34
+ # @!attribute [rw] text
35
+ # @return [::String]
36
+ # Required. Text input which can be used for prompt or banned phrases.
37
+ # @!attribute [rw] language_code
38
+ # @return [::String]
39
+ # Required. Language code of the phrase.
40
+ class Phrase
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+ end
44
+ end
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
@@ -174,6 +174,10 @@ module Google
174
174
  # for Agent Assist traffic), higher value will be ignored and use default.
175
175
  # Setting a value higher than that has no effect. A missing value or
176
176
  # setting to 0 also means we use default TTL.
177
+ # @!attribute [rw] retention_strategy
178
+ # @return [::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RetentionStrategy]
179
+ # Specifies the retention behavior defined by
180
+ # {::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::RetentionStrategy SecuritySettings.RetentionStrategy}.
177
181
  # @!attribute [rw] purge_data_types
178
182
  # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::SecuritySettings::PurgeDataType>]
179
183
  # List of types of data to remove when retention settings triggers purge.
@@ -184,7 +188,7 @@ module Google
184
188
  # [Participants.StreamingAnalyzeContent][].
185
189
  #
186
190
  # If
187
- # [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
191
+ # {::Google::Cloud::Dialogflow::CX::V3::SecuritySettings#retention_strategy retention_strategy}
188
192
  # is set to REMOVE_AFTER_CONVERSATION or [audio_export_settings.gcs_bucket][]
189
193
  # is empty, audio export is disabled.
190
194
  #
@@ -202,7 +206,7 @@ module Google
202
206
  # completed.
203
207
  #
204
208
  # If
205
- # [retention_strategy][google.cloud.dialogflow.cx.v3.SecuritySettings.retention_strategy]
209
+ # {::Google::Cloud::Dialogflow::CX::V3::SecuritySettings#retention_strategy retention_strategy}
206
210
  # is set to REMOVE_AFTER_CONVERSATION, Insights export is disabled no matter
207
211
  # what you configure here.
208
212
  class SecuritySettings
@@ -279,6 +283,17 @@ module Google
279
283
  REDACT_DISK_STORAGE = 2
280
284
  end
281
285
 
286
+ # Defines how long we retain persisted data that contains sensitive info.
287
+ module RetentionStrategy
288
+ # Retains the persisted data with Dialogflow's internal default 365d TTLs.
289
+ RETENTION_STRATEGY_UNSPECIFIED = 0
290
+
291
+ # Removes data when the conversation ends. If there is no [Conversation][]
292
+ # explicitly established, a default conversation ends when the
293
+ # corresponding Dialogflow session ends.
294
+ REMOVE_AFTER_CONVERSATION = 1
295
+ end
296
+
282
297
  # Type of data we purge after retention settings triggers purge.
283
298
  module PurgeDataType
284
299
  # Unspecified. Do not use.
@@ -234,7 +234,10 @@ module Google
234
234
  # beginning of the stream.
235
235
  # @!attribute [rw] no_speech_timeout
236
236
  # @return [::Google::Protobuf::Duration]
237
- # No speech timeout settings observed at runtime.
237
+ # No speech timeout settings for the stream.
238
+ # @!attribute [rw] endpointing_timeout
239
+ # @return [::Google::Protobuf::Duration]
240
+ # Speech endpointing timeout settings for the stream.
238
241
  # @!attribute [rw] is_input_text
239
242
  # @return [::Boolean]
240
243
  # Whether the streaming terminates with an injected text query.
@@ -529,15 +532,15 @@ module Google
529
532
 
530
533
  # Represents the query input. It can contain one of:
531
534
  #
532
- # 1. A conversational query in the form of text.
535
+ # 1. A conversational query in the form of text.
533
536
  #
534
- # 2. An intent query that specifies which intent to trigger.
537
+ # 2. An intent query that specifies which intent to trigger.
535
538
  #
536
- # 3. Natural language speech audio to be processed.
539
+ # 3. Natural language speech audio to be processed.
537
540
  #
538
- # 4. An event to be triggered.
541
+ # 4. An event to be triggered.
539
542
  #
540
- # 5. DTMF digits to invoke an intent and fill in parameter value.
543
+ # 5. DTMF digits to invoke an intent and fill in parameter value.
541
544
  # @!attribute [rw] text
542
545
  # @return [::Google::Cloud::Dialogflow::CX::V3::TextInput]
543
546
  # 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.
@@ -85,6 +85,9 @@ module Google
85
85
 
86
86
  # Transition route group.
87
87
  TRANSITION_ROUTE_GROUP = 7
88
+
89
+ # Agent transition route group.
90
+ AGENT_TRANSITION_ROUTE_GROUP = 14
88
91
  end
89
92
 
90
93
  # Severity level.
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.19.0
4
+ version: 0.21.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: 2023-07-11 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.19.1
19
+ version: 0.20.0
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -219,6 +219,7 @@ files:
219
219
  - lib/google/cloud/dialogflow/cx/v3/changelogs/rest.rb
220
220
  - lib/google/cloud/dialogflow/cx/v3/changelogs/rest/client.rb
221
221
  - lib/google/cloud/dialogflow/cx/v3/changelogs/rest/service_stub.rb
222
+ - lib/google/cloud/dialogflow/cx/v3/data_store_connection_pb.rb
222
223
  - lib/google/cloud/dialogflow/cx/v3/deployment_pb.rb
223
224
  - lib/google/cloud/dialogflow/cx/v3/deployment_services_pb.rb
224
225
  - lib/google/cloud/dialogflow/cx/v3/deployments.rb
@@ -270,6 +271,8 @@ files:
270
271
  - lib/google/cloud/dialogflow/cx/v3/flows/rest/service_stub.rb
271
272
  - lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb
272
273
  - lib/google/cloud/dialogflow/cx/v3/gcs_pb.rb
274
+ - lib/google/cloud/dialogflow/cx/v3/generative_settings_pb.rb
275
+ - lib/google/cloud/dialogflow/cx/v3/import_strategy_pb.rb
273
276
  - lib/google/cloud/dialogflow/cx/v3/intent_pb.rb
274
277
  - lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb
275
278
  - lib/google/cloud/dialogflow/cx/v3/intents.rb
@@ -290,6 +293,7 @@ files:
290
293
  - lib/google/cloud/dialogflow/cx/v3/pages/rest/service_stub.rb
291
294
  - lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb
292
295
  - lib/google/cloud/dialogflow/cx/v3/rest.rb
296
+ - lib/google/cloud/dialogflow/cx/v3/safety_settings_pb.rb
293
297
  - lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb
294
298
  - lib/google/cloud/dialogflow/cx/v3/security_settings_service.rb
295
299
  - lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb
@@ -368,6 +372,7 @@ files:
368
372
  - proto_docs/google/cloud/dialogflow/cx/v3/agent.rb
369
373
  - proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb
370
374
  - proto_docs/google/cloud/dialogflow/cx/v3/changelog.rb
375
+ - proto_docs/google/cloud/dialogflow/cx/v3/data_store_connection.rb
371
376
  - proto_docs/google/cloud/dialogflow/cx/v3/deployment.rb
372
377
  - proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb
373
378
  - proto_docs/google/cloud/dialogflow/cx/v3/environment.rb
@@ -375,9 +380,12 @@ files:
375
380
  - proto_docs/google/cloud/dialogflow/cx/v3/flow.rb
376
381
  - proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb
377
382
  - proto_docs/google/cloud/dialogflow/cx/v3/gcs.rb
383
+ - proto_docs/google/cloud/dialogflow/cx/v3/generative_settings.rb
384
+ - proto_docs/google/cloud/dialogflow/cx/v3/import_strategy.rb
378
385
  - proto_docs/google/cloud/dialogflow/cx/v3/intent.rb
379
386
  - proto_docs/google/cloud/dialogflow/cx/v3/page.rb
380
387
  - proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb
388
+ - proto_docs/google/cloud/dialogflow/cx/v3/safety_settings.rb
381
389
  - proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb
382
390
  - proto_docs/google/cloud/dialogflow/cx/v3/session.rb
383
391
  - proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb
@@ -414,7 +422,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
414
422
  - !ruby/object:Gem::Version
415
423
  version: '0'
416
424
  requirements: []
417
- rubygems_version: 3.4.2
425
+ rubygems_version: 3.4.19
418
426
  signing_key:
419
427
  specification_version: 4
420
428
  summary: Builds conversational interfaces (for example, chatbots, and voice-powered