google-cloud-dialogflow-cx-v3 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (134) hide show
  1. checksums.yaml +7 -0
  2. data/.yardopts +12 -0
  3. data/AUTHENTICATION.md +169 -0
  4. data/LICENSE.md +201 -0
  5. data/README.md +139 -0
  6. data/lib/google/cloud/dialogflow/cx/v3/advanced_settings_pb.rb +32 -0
  7. data/lib/google/cloud/dialogflow/cx/v3/agent_pb.rb +122 -0
  8. data/lib/google/cloud/dialogflow/cx/v3/agent_services_pb.rb +82 -0
  9. data/lib/google/cloud/dialogflow/cx/v3/agents/client.rb +1051 -0
  10. data/lib/google/cloud/dialogflow/cx/v3/agents/credentials.rb +54 -0
  11. data/lib/google/cloud/dialogflow/cx/v3/agents/operations.rb +666 -0
  12. data/lib/google/cloud/dialogflow/cx/v3/agents/paths.rb +151 -0
  13. data/lib/google/cloud/dialogflow/cx/v3/agents.rb +52 -0
  14. data/lib/google/cloud/dialogflow/cx/v3/audio_config_pb.rb +94 -0
  15. data/lib/google/cloud/dialogflow/cx/v3/entity_type_pb.rb +92 -0
  16. data/lib/google/cloud/dialogflow/cx/v3/entity_type_services_pb.rb +67 -0
  17. data/lib/google/cloud/dialogflow/cx/v3/entity_types/client.rb +766 -0
  18. data/lib/google/cloud/dialogflow/cx/v3/entity_types/credentials.rb +54 -0
  19. data/lib/google/cloud/dialogflow/cx/v3/entity_types/paths.rb +75 -0
  20. data/lib/google/cloud/dialogflow/cx/v3/entity_types.rb +51 -0
  21. data/lib/google/cloud/dialogflow/cx/v3/environment_pb.rb +117 -0
  22. data/lib/google/cloud/dialogflow/cx/v3/environment_services_pb.rb +61 -0
  23. data/lib/google/cloud/dialogflow/cx/v3/environments/client.rb +950 -0
  24. data/lib/google/cloud/dialogflow/cx/v3/environments/credentials.rb +54 -0
  25. data/lib/google/cloud/dialogflow/cx/v3/environments/operations.rb +666 -0
  26. data/lib/google/cloud/dialogflow/cx/v3/environments/paths.rb +98 -0
  27. data/lib/google/cloud/dialogflow/cx/v3/environments.rb +52 -0
  28. data/lib/google/cloud/dialogflow/cx/v3/experiment_pb.rb +177 -0
  29. data/lib/google/cloud/dialogflow/cx/v3/experiment_services_pb.rb +61 -0
  30. data/lib/google/cloud/dialogflow/cx/v3/experiments/client.rb +851 -0
  31. data/lib/google/cloud/dialogflow/cx/v3/experiments/credentials.rb +54 -0
  32. data/lib/google/cloud/dialogflow/cx/v3/experiments/paths.rb +102 -0
  33. data/lib/google/cloud/dialogflow/cx/v3/experiments.rb +51 -0
  34. data/lib/google/cloud/dialogflow/cx/v3/flow_pb.rb +145 -0
  35. data/lib/google/cloud/dialogflow/cx/v3/flow_services_pb.rb +88 -0
  36. data/lib/google/cloud/dialogflow/cx/v3/flows/client.rb +1200 -0
  37. data/lib/google/cloud/dialogflow/cx/v3/flows/credentials.rb +54 -0
  38. data/lib/google/cloud/dialogflow/cx/v3/flows/operations.rb +666 -0
  39. data/lib/google/cloud/dialogflow/cx/v3/flows/paths.rb +184 -0
  40. data/lib/google/cloud/dialogflow/cx/v3/flows.rb +52 -0
  41. data/lib/google/cloud/dialogflow/cx/v3/fulfillment_pb.rb +55 -0
  42. data/lib/google/cloud/dialogflow/cx/v3/intent_pb.rb +97 -0
  43. data/lib/google/cloud/dialogflow/cx/v3/intent_services_pb.rb +67 -0
  44. data/lib/google/cloud/dialogflow/cx/v3/intents/client.rb +750 -0
  45. data/lib/google/cloud/dialogflow/cx/v3/intents/credentials.rb +54 -0
  46. data/lib/google/cloud/dialogflow/cx/v3/intents/paths.rb +96 -0
  47. data/lib/google/cloud/dialogflow/cx/v3/intents.rb +51 -0
  48. data/lib/google/cloud/dialogflow/cx/v3/page_pb.rb +113 -0
  49. data/lib/google/cloud/dialogflow/cx/v3/page_services_pb.rb +67 -0
  50. data/lib/google/cloud/dialogflow/cx/v3/pages/client.rb +805 -0
  51. data/lib/google/cloud/dialogflow/cx/v3/pages/credentials.rb +54 -0
  52. data/lib/google/cloud/dialogflow/cx/v3/pages/paths.rb +165 -0
  53. data/lib/google/cloud/dialogflow/cx/v3/pages.rb +51 -0
  54. data/lib/google/cloud/dialogflow/cx/v3/response_message_pb.rb +77 -0
  55. data/lib/google/cloud/dialogflow/cx/v3/security_settings_pb.rb +89 -0
  56. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/client.rb +696 -0
  57. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/credentials.rb +54 -0
  58. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service/paths.rb +157 -0
  59. data/lib/google/cloud/dialogflow/cx/v3/security_settings_service.rb +51 -0
  60. data/lib/google/cloud/dialogflow/cx/v3/security_settings_services_pb.rb +56 -0
  61. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_pb.rb +68 -0
  62. data/lib/google/cloud/dialogflow/cx/v3/session_entity_type_services_pb.rb +55 -0
  63. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/client.rb +715 -0
  64. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/credentials.rb +54 -0
  65. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types/paths.rb +137 -0
  66. data/lib/google/cloud/dialogflow/cx/v3/session_entity_types.rb +51 -0
  67. data/lib/google/cloud/dialogflow/cx/v3/session_pb.rb +209 -0
  68. data/lib/google/cloud/dialogflow/cx/v3/session_services_pb.rb +71 -0
  69. data/lib/google/cloud/dialogflow/cx/v3/sessions/client.rb +654 -0
  70. data/lib/google/cloud/dialogflow/cx/v3/sessions/credentials.rb +54 -0
  71. data/lib/google/cloud/dialogflow/cx/v3/sessions/paths.rb +225 -0
  72. data/lib/google/cloud/dialogflow/cx/v3/sessions.rb +53 -0
  73. data/lib/google/cloud/dialogflow/cx/v3/test_case_pb.rb +302 -0
  74. data/lib/google/cloud/dialogflow/cx/v3/test_case_services_pb.rb +73 -0
  75. data/lib/google/cloud/dialogflow/cx/v3/test_cases/client.rb +1324 -0
  76. data/lib/google/cloud/dialogflow/cx/v3/test_cases/credentials.rb +54 -0
  77. data/lib/google/cloud/dialogflow/cx/v3/test_cases/operations.rb +666 -0
  78. data/lib/google/cloud/dialogflow/cx/v3/test_cases/paths.rb +249 -0
  79. data/lib/google/cloud/dialogflow/cx/v3/test_cases.rb +53 -0
  80. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_pb.rb +67 -0
  81. data/lib/google/cloud/dialogflow/cx/v3/transition_route_group_services_pb.rb +67 -0
  82. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/client.rb +766 -0
  83. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/credentials.rb +54 -0
  84. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups/paths.rb +144 -0
  85. data/lib/google/cloud/dialogflow/cx/v3/transition_route_groups.rb +51 -0
  86. data/lib/google/cloud/dialogflow/cx/v3/validation_message_pb.rb +59 -0
  87. data/lib/google/cloud/dialogflow/cx/v3/version.rb +30 -0
  88. data/lib/google/cloud/dialogflow/cx/v3/version_pb.rb +88 -0
  89. data/lib/google/cloud/dialogflow/cx/v3/version_services_pb.rb +57 -0
  90. data/lib/google/cloud/dialogflow/cx/v3/versions/client.rb +792 -0
  91. data/lib/google/cloud/dialogflow/cx/v3/versions/credentials.rb +54 -0
  92. data/lib/google/cloud/dialogflow/cx/v3/versions/operations.rb +666 -0
  93. data/lib/google/cloud/dialogflow/cx/v3/versions/paths.rb +79 -0
  94. data/lib/google/cloud/dialogflow/cx/v3/versions.rb +52 -0
  95. data/lib/google/cloud/dialogflow/cx/v3/webhook_pb.rb +172 -0
  96. data/lib/google/cloud/dialogflow/cx/v3/webhook_services_pb.rb +55 -0
  97. data/lib/google/cloud/dialogflow/cx/v3/webhooks/client.rb +704 -0
  98. data/lib/google/cloud/dialogflow/cx/v3/webhooks/credentials.rb +54 -0
  99. data/lib/google/cloud/dialogflow/cx/v3/webhooks/paths.rb +96 -0
  100. data/lib/google/cloud/dialogflow/cx/v3/webhooks.rb +51 -0
  101. data/lib/google/cloud/dialogflow/cx/v3.rb +53 -0
  102. data/lib/google-cloud-dialogflow-cx-v3.rb +21 -0
  103. data/proto_docs/README.md +4 -0
  104. data/proto_docs/google/api/field_behavior.rb +71 -0
  105. data/proto_docs/google/api/resource.rb +283 -0
  106. data/proto_docs/google/cloud/dialogflow/cx/v3/advanced_settings.rb +57 -0
  107. data/proto_docs/google/cloud/dialogflow/cx/v3/agent.rb +301 -0
  108. data/proto_docs/google/cloud/dialogflow/cx/v3/audio_config.rb +322 -0
  109. data/proto_docs/google/cloud/dialogflow/cx/v3/entity_type.rb +306 -0
  110. data/proto_docs/google/cloud/dialogflow/cx/v3/environment.rb +279 -0
  111. data/proto_docs/google/cloud/dialogflow/cx/v3/experiment.rb +438 -0
  112. data/proto_docs/google/cloud/dialogflow/cx/v3/flow.rb +438 -0
  113. data/proto_docs/google/cloud/dialogflow/cx/v3/fulfillment.rb +126 -0
  114. data/proto_docs/google/cloud/dialogflow/cx/v3/intent.rb +318 -0
  115. data/proto_docs/google/cloud/dialogflow/cx/v3/page.rb +478 -0
  116. data/proto_docs/google/cloud/dialogflow/cx/v3/response_message.rb +220 -0
  117. data/proto_docs/google/cloud/dialogflow/cx/v3/security_settings.rb +222 -0
  118. data/proto_docs/google/cloud/dialogflow/cx/v3/session.rb +798 -0
  119. data/proto_docs/google/cloud/dialogflow/cx/v3/session_entity_type.rb +184 -0
  120. data/proto_docs/google/cloud/dialogflow/cx/v3/test_case.rb +757 -0
  121. data/proto_docs/google/cloud/dialogflow/cx/v3/transition_route_group.rb +195 -0
  122. data/proto_docs/google/cloud/dialogflow/cx/v3/validation_message.rb +121 -0
  123. data/proto_docs/google/cloud/dialogflow/cx/v3/version.rb +182 -0
  124. data/proto_docs/google/cloud/dialogflow/cx/v3/webhook.rb +496 -0
  125. data/proto_docs/google/longrunning/operations.rb +164 -0
  126. data/proto_docs/google/protobuf/any.rb +141 -0
  127. data/proto_docs/google/protobuf/duration.rb +98 -0
  128. data/proto_docs/google/protobuf/empty.rb +36 -0
  129. data/proto_docs/google/protobuf/field_mask.rb +229 -0
  130. data/proto_docs/google/protobuf/struct.rb +96 -0
  131. data/proto_docs/google/protobuf/timestamp.rb +129 -0
  132. data/proto_docs/google/rpc/status.rb +46 -0
  133. data/proto_docs/google/type/latlng.rb +38 -0
  134. metadata +326 -0
@@ -0,0 +1,438 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dialogflow
23
+ module CX
24
+ module V3
25
+ # Represents an experiment in an environment.
26
+ # @!attribute [rw] name
27
+ # @return [::String]
28
+ # The name of the experiment.
29
+ # Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent
30
+ # ID>/environments/<Environment ID>/experiments/<Experiment ID>..
31
+ # @!attribute [rw] display_name
32
+ # @return [::String]
33
+ # Required. The human-readable name of the experiment (unique in an environment). Limit
34
+ # of 64 characters.
35
+ # @!attribute [rw] description
36
+ # @return [::String]
37
+ # The human-readable description of the experiment.
38
+ # @!attribute [rw] state
39
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Experiment::State]
40
+ # The current state of the experiment.
41
+ # Transition triggered by Experiments.StartExperiment: DRAFT->RUNNING.
42
+ # Transition triggered by Experiments.CancelExperiment: DRAFT->DONE or
43
+ # RUNNING->DONE.
44
+ # @!attribute [rw] definition
45
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Experiment::Definition]
46
+ # The definition of the experiment.
47
+ # @!attribute [rw] rollout_config
48
+ # @return [::Google::Cloud::Dialogflow::CX::V3::RolloutConfig]
49
+ # The configuration for auto rollout. If set, there should be exactly two
50
+ # variants in the experiment (control variant being the default version of
51
+ # the flow), the traffic allocation for the non-control variant will
52
+ # gradually increase to 100% when conditions are met, and eventually
53
+ # replace the control variant to become the default version of the flow.
54
+ # @!attribute [rw] rollout_state
55
+ # @return [::Google::Cloud::Dialogflow::CX::V3::RolloutState]
56
+ # State of the auto rollout process.
57
+ # @!attribute [rw] rollout_failure_reason
58
+ # @return [::String]
59
+ # The reason why rollout has failed. Should only be set when state is
60
+ # ROLLOUT_FAILED.
61
+ # @!attribute [rw] result
62
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Experiment::Result]
63
+ # Inference result of the experiment.
64
+ # @!attribute [rw] create_time
65
+ # @return [::Google::Protobuf::Timestamp]
66
+ # Creation time of this experiment.
67
+ # @!attribute [rw] start_time
68
+ # @return [::Google::Protobuf::Timestamp]
69
+ # Start time of this experiment.
70
+ # @!attribute [rw] end_time
71
+ # @return [::Google::Protobuf::Timestamp]
72
+ # End time of this experiment.
73
+ # @!attribute [rw] last_update_time
74
+ # @return [::Google::Protobuf::Timestamp]
75
+ # Last update time of this experiment.
76
+ # @!attribute [rw] experiment_length
77
+ # @return [::Google::Protobuf::Duration]
78
+ # Maximum number of days to run the experiment/rollout. If auto-rollout is
79
+ # not enabled, default value and maximum will be 30 days. If auto-rollout is
80
+ # enabled, default value and maximum will be 6 days.
81
+ # @!attribute [rw] variants_history
82
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::VariantsHistory>]
83
+ # The history of updates to the experiment variants.
84
+ class Experiment
85
+ include ::Google::Protobuf::MessageExts
86
+ extend ::Google::Protobuf::MessageExts::ClassMethods
87
+
88
+ # Definition of the experiment.
89
+ # @!attribute [rw] condition
90
+ # @return [::String]
91
+ # The condition defines which subset of sessions are selected for
92
+ # this experiment. If not specified, all sessions are eligible. E.g.
93
+ # "query_input.language_code=en" See the [conditions
94
+ # reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
95
+ # @!attribute [rw] version_variants
96
+ # @return [::Google::Cloud::Dialogflow::CX::V3::VersionVariants]
97
+ # The flow versions as the variants of this experiment.
98
+ class Definition
99
+ include ::Google::Protobuf::MessageExts
100
+ extend ::Google::Protobuf::MessageExts::ClassMethods
101
+ end
102
+
103
+ # The inference result which includes an objective metric to optimize and the
104
+ # confidence interval.
105
+ # @!attribute [rw] version_metrics
106
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::VersionMetrics>]
107
+ # Version variants and metrics.
108
+ # @!attribute [rw] last_update_time
109
+ # @return [::Google::Protobuf::Timestamp]
110
+ # The last time the experiment's stats data was updated. Will have default
111
+ # value if stats have never been computed for this experiment.
112
+ class Result
113
+ include ::Google::Protobuf::MessageExts
114
+ extend ::Google::Protobuf::MessageExts::ClassMethods
115
+
116
+ # A confidence interval is a range of possible values for the experiment
117
+ # objective you are trying to measure.
118
+ # @!attribute [rw] confidence_level
119
+ # @return [::Float]
120
+ # The confidence level used to construct the interval, i.e. there is X%
121
+ # chance that the true value is within this interval.
122
+ # @!attribute [rw] ratio
123
+ # @return [::Float]
124
+ # The percent change between an experiment metric's value and the value
125
+ # for its control.
126
+ # @!attribute [rw] lower_bound
127
+ # @return [::Float]
128
+ # Lower bound of the interval.
129
+ # @!attribute [rw] upper_bound
130
+ # @return [::Float]
131
+ # Upper bound of the interval.
132
+ class ConfidenceInterval
133
+ include ::Google::Protobuf::MessageExts
134
+ extend ::Google::Protobuf::MessageExts::ClassMethods
135
+ end
136
+
137
+ # Metric and corresponding confidence intervals.
138
+ # @!attribute [rw] type
139
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::MetricType]
140
+ # Ratio-based metric type. Only one of type or count_type is specified in
141
+ # each Metric.
142
+ # @!attribute [rw] count_type
143
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::CountType]
144
+ # Count-based metric type. Only one of type or count_type is specified in
145
+ # each Metric.
146
+ # @!attribute [rw] ratio
147
+ # @return [::Float]
148
+ # Ratio value of a metric.
149
+ # @!attribute [rw] count
150
+ # @return [::Float]
151
+ # Count value of a metric.
152
+ # @!attribute [rw] confidence_interval
153
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::ConfidenceInterval]
154
+ # The probability that the treatment is better than all other treatments
155
+ # in the experiment
156
+ class Metric
157
+ include ::Google::Protobuf::MessageExts
158
+ extend ::Google::Protobuf::MessageExts::ClassMethods
159
+ end
160
+
161
+ # Version variant and associated metrics.
162
+ # @!attribute [rw] version
163
+ # @return [::String]
164
+ # The name of the flow {::Google::Cloud::Dialogflow::CX::V3::Version Version}.
165
+ # Format: `projects/<Project ID>/locations/<Location
166
+ # ID>/agents/<Agent ID>/flows/<Flow ID>/versions/<Version ID>`.
167
+ # @!attribute [rw] metrics
168
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Experiment::Result::Metric>]
169
+ # The metrics and corresponding confidence intervals in the inference
170
+ # result.
171
+ # @!attribute [rw] session_count
172
+ # @return [::Integer]
173
+ # Number of sessions that were allocated to this version.
174
+ class VersionMetrics
175
+ include ::Google::Protobuf::MessageExts
176
+ extend ::Google::Protobuf::MessageExts::ClassMethods
177
+ end
178
+
179
+ # Types of ratio-based metric for Dialogflow experiment.
180
+ module MetricType
181
+ # Metric unspecified.
182
+ METRIC_UNSPECIFIED = 0
183
+
184
+ # Percentage of contained sessions without user calling back in 24 hours.
185
+ CONTAINED_SESSION_NO_CALLBACK_RATE = 1
186
+
187
+ # Percentage of sessions that were handed to a human agent.
188
+ LIVE_AGENT_HANDOFF_RATE = 2
189
+
190
+ # Percentage of sessions with the same user calling back.
191
+ CALLBACK_SESSION_RATE = 3
192
+
193
+ # Percentage of sessions where user hung up.
194
+ ABANDONED_SESSION_RATE = 4
195
+
196
+ # Percentage of sessions reached Dialogflow 'END_PAGE' or
197
+ # 'END_SESSION'.
198
+ SESSION_END_RATE = 5
199
+ end
200
+
201
+ # Types of count-based metric for Dialogflow experiment.
202
+ module CountType
203
+ # Count type unspecified.
204
+ COUNT_TYPE_UNSPECIFIED = 0
205
+
206
+ # Total number of occurrences of a 'NO_MATCH'.
207
+ TOTAL_NO_MATCH_COUNT = 1
208
+
209
+ # Total number of turn counts.
210
+ TOTAL_TURN_COUNT = 2
211
+
212
+ # Average turn count in a session.
213
+ AVERAGE_TURN_COUNT = 3
214
+ end
215
+ end
216
+
217
+ # The state of the experiment.
218
+ module State
219
+ # State unspecified.
220
+ STATE_UNSPECIFIED = 0
221
+
222
+ # The experiment is created but not started yet.
223
+ DRAFT = 1
224
+
225
+ # The experiment is running.
226
+ RUNNING = 2
227
+
228
+ # The experiment is done.
229
+ DONE = 3
230
+
231
+ # The experiment with auto-rollout enabled has failed.
232
+ ROLLOUT_FAILED = 4
233
+ end
234
+ end
235
+
236
+ # A list of flow version variants.
237
+ # @!attribute [rw] variants
238
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::VersionVariants::Variant>]
239
+ # A list of flow version variants.
240
+ class VersionVariants
241
+ include ::Google::Protobuf::MessageExts
242
+ extend ::Google::Protobuf::MessageExts::ClassMethods
243
+
244
+ # A single flow version with specified traffic allocation.
245
+ # @!attribute [rw] version
246
+ # @return [::String]
247
+ # The name of the flow version.
248
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
249
+ # ID>/flows/<Flow ID>/versions/<Version ID>`.
250
+ # @!attribute [rw] traffic_allocation
251
+ # @return [::Float]
252
+ # Percentage of the traffic which should be routed to this
253
+ # version of flow. Traffic allocation for a single flow must sum up to 1.0.
254
+ # @!attribute [rw] is_control_group
255
+ # @return [::Boolean]
256
+ # Whether the variant is for the control group.
257
+ class Variant
258
+ include ::Google::Protobuf::MessageExts
259
+ extend ::Google::Protobuf::MessageExts::ClassMethods
260
+ end
261
+ end
262
+
263
+ # The history of variants update.
264
+ # @!attribute [rw] version_variants
265
+ # @return [::Google::Cloud::Dialogflow::CX::V3::VersionVariants]
266
+ # The flow versions as the variants.
267
+ # @!attribute [rw] update_time
268
+ # @return [::Google::Protobuf::Timestamp]
269
+ # Update time of the variants.
270
+ class VariantsHistory
271
+ include ::Google::Protobuf::MessageExts
272
+ extend ::Google::Protobuf::MessageExts::ClassMethods
273
+ end
274
+
275
+ # The configuration for auto rollout.
276
+ # @!attribute [rw] rollout_steps
277
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::RolloutConfig::RolloutStep>]
278
+ # Steps to roll out a flow version. Steps should be sorted by percentage in
279
+ # ascending order.
280
+ # @!attribute [rw] rollout_condition
281
+ # @return [::String]
282
+ # The conditions that are used to evaluate the success of a rollout
283
+ # step. If not specified, all rollout steps will proceed to the next one
284
+ # unless failure conditions are met. E.g. "containment_rate > 60% AND
285
+ # callback_rate < 20%". See the [conditions
286
+ # reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
287
+ # @!attribute [rw] failure_condition
288
+ # @return [::String]
289
+ # The conditions that are used to evaluate the failure of a rollout
290
+ # step. If not specified, no rollout steps will fail. E.g. "containment_rate
291
+ # < 10% OR average_turn_count < 3". See the [conditions
292
+ # reference](https://cloud.google.com/dialogflow/cx/docs/reference/condition).
293
+ class RolloutConfig
294
+ include ::Google::Protobuf::MessageExts
295
+ extend ::Google::Protobuf::MessageExts::ClassMethods
296
+
297
+ # A single rollout step with specified traffic allocation.
298
+ # @!attribute [rw] display_name
299
+ # @return [::String]
300
+ # The name of the rollout step;
301
+ # @!attribute [rw] traffic_percent
302
+ # @return [::Integer]
303
+ # The percentage of traffic allocated to the flow version of this rollout
304
+ # step. (0%, 100%].
305
+ # @!attribute [rw] min_duration
306
+ # @return [::Google::Protobuf::Duration]
307
+ # The minimum time that this step should last. Should be longer than 1
308
+ # hour. If not set, the default minimum duration for each step will be 1
309
+ # hour.
310
+ class RolloutStep
311
+ include ::Google::Protobuf::MessageExts
312
+ extend ::Google::Protobuf::MessageExts::ClassMethods
313
+ end
314
+ end
315
+
316
+ # State of the auto-rollout process.
317
+ # @!attribute [rw] step
318
+ # @return [::String]
319
+ # Display name of the current auto rollout step.
320
+ # @!attribute [rw] step_index
321
+ # @return [::Integer]
322
+ # Index of the current step in the auto rollout steps list.
323
+ # @!attribute [rw] start_time
324
+ # @return [::Google::Protobuf::Timestamp]
325
+ # Start time of the current step.
326
+ class RolloutState
327
+ include ::Google::Protobuf::MessageExts
328
+ extend ::Google::Protobuf::MessageExts::ClassMethods
329
+ end
330
+
331
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Experiments::Client#list_experiments Experiments.ListExperiments}.
332
+ # @!attribute [rw] parent
333
+ # @return [::String]
334
+ # Required. The {::Google::Cloud::Dialogflow::CX::V3::Environment Environment} to list all environments for.
335
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
336
+ # ID>/environments/<Environment ID>`.
337
+ # @!attribute [rw] page_size
338
+ # @return [::Integer]
339
+ # The maximum number of items to return in a single page. By default 20 and
340
+ # at most 100.
341
+ # @!attribute [rw] page_token
342
+ # @return [::String]
343
+ # The next_page_token value returned from a previous list request.
344
+ class ListExperimentsRequest
345
+ include ::Google::Protobuf::MessageExts
346
+ extend ::Google::Protobuf::MessageExts::ClassMethods
347
+ end
348
+
349
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::Experiments::Client#list_experiments Experiments.ListExperiments}.
350
+ # @!attribute [rw] experiments
351
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Experiment>]
352
+ # The list of experiments. There will be a maximum number of items
353
+ # returned based on the page_size field in the request. The list may in some
354
+ # cases be empty or contain fewer entries than page_size even if this isn't
355
+ # the last page.
356
+ # @!attribute [rw] next_page_token
357
+ # @return [::String]
358
+ # Token to retrieve the next page of results, or empty if there are no more
359
+ # results in the list.
360
+ class ListExperimentsResponse
361
+ include ::Google::Protobuf::MessageExts
362
+ extend ::Google::Protobuf::MessageExts::ClassMethods
363
+ end
364
+
365
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Experiments::Client#get_experiment Experiments.GetExperiment}.
366
+ # @!attribute [rw] name
367
+ # @return [::String]
368
+ # Required. The name of the {::Google::Cloud::Dialogflow::CX::V3::Environment Environment}.
369
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
370
+ # ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
371
+ class GetExperimentRequest
372
+ include ::Google::Protobuf::MessageExts
373
+ extend ::Google::Protobuf::MessageExts::ClassMethods
374
+ end
375
+
376
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Experiments::Client#create_experiment Experiments.CreateExperiment}.
377
+ # @!attribute [rw] parent
378
+ # @return [::String]
379
+ # Required. The {::Google::Cloud::Dialogflow::CX::V3::Agent Agent} to create an {::Google::Cloud::Dialogflow::CX::V3::Environment Environment} for.
380
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
381
+ # ID>/environments/<Environment ID>`.
382
+ # @!attribute [rw] experiment
383
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Experiment]
384
+ # Required. The experiment to create.
385
+ class CreateExperimentRequest
386
+ include ::Google::Protobuf::MessageExts
387
+ extend ::Google::Protobuf::MessageExts::ClassMethods
388
+ end
389
+
390
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Experiments::Client#update_experiment Experiments.UpdateExperiment}.
391
+ # @!attribute [rw] experiment
392
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Experiment]
393
+ # Required. The experiment to update.
394
+ # @!attribute [rw] update_mask
395
+ # @return [::Google::Protobuf::FieldMask]
396
+ # Required. The mask to control which fields get updated.
397
+ class UpdateExperimentRequest
398
+ include ::Google::Protobuf::MessageExts
399
+ extend ::Google::Protobuf::MessageExts::ClassMethods
400
+ end
401
+
402
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Experiments::Client#delete_experiment Experiments.DeleteExperiment}.
403
+ # @!attribute [rw] name
404
+ # @return [::String]
405
+ # Required. The name of the {::Google::Cloud::Dialogflow::CX::V3::Environment Environment} to delete.
406
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
407
+ # ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
408
+ class DeleteExperimentRequest
409
+ include ::Google::Protobuf::MessageExts
410
+ extend ::Google::Protobuf::MessageExts::ClassMethods
411
+ end
412
+
413
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Experiments::Client#start_experiment Experiments.StartExperiment}.
414
+ # @!attribute [rw] name
415
+ # @return [::String]
416
+ # Required. Resource name of the experiment to start.
417
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
418
+ # ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
419
+ class StartExperimentRequest
420
+ include ::Google::Protobuf::MessageExts
421
+ extend ::Google::Protobuf::MessageExts::ClassMethods
422
+ end
423
+
424
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Experiments::Client#stop_experiment Experiments.StopExperiment}.
425
+ # @!attribute [rw] name
426
+ # @return [::String]
427
+ # Required. Resource name of the experiment to stop.
428
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
429
+ # ID>/environments/<Environment ID>/experiments/<Experiment ID>`.
430
+ class StopExperimentRequest
431
+ include ::Google::Protobuf::MessageExts
432
+ extend ::Google::Protobuf::MessageExts::ClassMethods
433
+ end
434
+ end
435
+ end
436
+ end
437
+ end
438
+ end
@@ -0,0 +1,438 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2021 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Dialogflow
23
+ module CX
24
+ module V3
25
+ # Settings related to NLU.
26
+ # @!attribute [rw] model_type
27
+ # @return [::Google::Cloud::Dialogflow::CX::V3::NluSettings::ModelType]
28
+ # Indicates the type of NLU model.
29
+ # @!attribute [rw] classification_threshold
30
+ # @return [::Float]
31
+ # To filter out false positive results and still get variety in matched
32
+ # natural language inputs for your agent, you can tune the machine learning
33
+ # classification threshold. If the returned score value is less than the
34
+ # threshold value, then a no-match event will be triggered. The score values
35
+ # range from 0.0 (completely uncertain) to 1.0 (completely certain). If set
36
+ # to 0.0, the default of 0.3 is used.
37
+ # @!attribute [rw] model_training_mode
38
+ # @return [::Google::Cloud::Dialogflow::CX::V3::NluSettings::ModelTrainingMode]
39
+ # Indicates NLU model training mode.
40
+ class NluSettings
41
+ include ::Google::Protobuf::MessageExts
42
+ extend ::Google::Protobuf::MessageExts::ClassMethods
43
+
44
+ # NLU model type.
45
+ module ModelType
46
+ # Not specified. `MODEL_TYPE_STANDARD` will be used.
47
+ MODEL_TYPE_UNSPECIFIED = 0
48
+
49
+ # Use standard NLU model.
50
+ MODEL_TYPE_STANDARD = 1
51
+
52
+ # Use advanced NLU model.
53
+ MODEL_TYPE_ADVANCED = 3
54
+ end
55
+
56
+ # NLU model training mode.
57
+ module ModelTrainingMode
58
+ # Not specified. `MODEL_TRAINING_MODE_AUTOMATIC` will be used.
59
+ MODEL_TRAINING_MODE_UNSPECIFIED = 0
60
+
61
+ # NLU model training is automatically triggered when a flow gets modified.
62
+ # User can also manually trigger model training in this mode.
63
+ MODEL_TRAINING_MODE_AUTOMATIC = 1
64
+
65
+ # User needs to manually trigger NLU model training. Best for large flows
66
+ # whose models take long time to train.
67
+ MODEL_TRAINING_MODE_MANUAL = 2
68
+ end
69
+ end
70
+
71
+ # Flows represents the conversation flows when you build your chatbot agent.
72
+ #
73
+ # A flow consists of many pages connected by the transition routes.
74
+ # Conversations always start with the built-in Start Flow (with an all-0 ID).
75
+ # Transition routes can direct the conversation session from the current flow
76
+ # (parent flow) to another flow (sub flow). When the sub flow is finished,
77
+ # Dialogflow will bring the session back to the parent flow, where the sub flow
78
+ # is started.
79
+ #
80
+ # Usually, when a transition route is followed by a matched intent, the intent
81
+ # will be "consumed". This means the intent won't activate more transition
82
+ # routes. However, when the followed transition route moves the conversation
83
+ # session into a different flow, the matched intent can be carried over and to
84
+ # be consumed in the target flow.
85
+ # @!attribute [rw] name
86
+ # @return [::String]
87
+ # The unique identifier of the flow.
88
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
89
+ # ID>/flows/<Flow ID>`.
90
+ # @!attribute [rw] display_name
91
+ # @return [::String]
92
+ # Required. The human-readable name of the flow.
93
+ # @!attribute [rw] description
94
+ # @return [::String]
95
+ # The description of the flow. The maximum length is 500 characters. If
96
+ # exceeded, the request is rejected.
97
+ # @!attribute [rw] transition_routes
98
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::TransitionRoute>]
99
+ # A flow's transition routes serve two purposes:
100
+ #
101
+ # * They are responsible for matching the user's first utterances in the
102
+ # flow.
103
+ # * They are inherited by every page's [transition
104
+ # routes][Page.transition_routes] and can support use cases such as the user
105
+ # saying "help" or "can I talk to a human?", which can be handled in a common
106
+ # way regardless of the current page. Transition routes defined in the page
107
+ # have higher priority than those defined in the flow.
108
+ #
109
+ # TransitionRoutes are evalauted in the following order:
110
+ #
111
+ # * TransitionRoutes with intent specified..
112
+ # * TransitionRoutes with only condition specified.
113
+ #
114
+ # TransitionRoutes with intent specified are inherited by pages in the flow.
115
+ # @!attribute [rw] event_handlers
116
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::EventHandler>]
117
+ # A flow's event handlers serve two purposes:
118
+ #
119
+ # * They are responsible for handling events (e.g. no match,
120
+ # webhook errors) in the flow.
121
+ # * They are inherited by every page's [event
122
+ # handlers][Page.event_handlers], which can be used to handle common events
123
+ # regardless of the current page. Event handlers defined in the page
124
+ # have higher priority than those defined in the flow.
125
+ #
126
+ # Unlike {::Google::Cloud::Dialogflow::CX::V3::Flow#transition_routes transition_routes}, these handlers are
127
+ # evaluated on a first-match basis. The first one that matches the event
128
+ # get executed, with the rest being ignored.
129
+ # @!attribute [rw] transition_route_groups
130
+ # @return [::Array<::String>]
131
+ # A flow's transition route group serve two purposes:
132
+ #
133
+ # * They are responsible for matching the user's first utterances in the
134
+ # flow.
135
+ # * They are inherited by every page's [transition
136
+ # route groups][Page.transition_route_groups]. Transition route groups
137
+ # defined in the page have higher priority than those defined in the flow.
138
+ #
139
+ # Format:`projects/<Project ID>/locations/<Location ID>/agents/<Agent
140
+ # ID>/flows/<Flow ID>/transitionRouteGroups/<TransitionRouteGroup ID>`.
141
+ # @!attribute [rw] nlu_settings
142
+ # @return [::Google::Cloud::Dialogflow::CX::V3::NluSettings]
143
+ # NLU related settings of the flow.
144
+ class Flow
145
+ include ::Google::Protobuf::MessageExts
146
+ extend ::Google::Protobuf::MessageExts::ClassMethods
147
+ end
148
+
149
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#create_flow Flows.CreateFlow}.
150
+ # @!attribute [rw] parent
151
+ # @return [::String]
152
+ # Required. The agent to create a flow for.
153
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
154
+ # @!attribute [rw] flow
155
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Flow]
156
+ # Required. The flow to create.
157
+ # @!attribute [rw] language_code
158
+ # @return [::String]
159
+ # The language of the following fields in `flow`:
160
+ #
161
+ # * `Flow.event_handlers.trigger_fulfillment.messages`
162
+ # * `Flow.event_handlers.trigger_fulfillment.conditional_cases`
163
+ # * `Flow.transition_routes.trigger_fulfillment.messages`
164
+ # * `Flow.transition_routes.trigger_fulfillment.conditional_cases`
165
+ #
166
+ # If not specified, the agent's default language is used.
167
+ # [Many
168
+ # languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
169
+ # are supported.
170
+ # Note: languages must be enabled in the agent before they can be used.
171
+ class CreateFlowRequest
172
+ include ::Google::Protobuf::MessageExts
173
+ extend ::Google::Protobuf::MessageExts::ClassMethods
174
+ end
175
+
176
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#delete_flow Flows.DeleteFlow}.
177
+ # @!attribute [rw] name
178
+ # @return [::String]
179
+ # Required. The name of the flow to delete.
180
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
181
+ # ID>/flows/<Flow ID>`.
182
+ # @!attribute [rw] force
183
+ # @return [::Boolean]
184
+ # This field has no effect for flows with no incoming transitions.
185
+ # For flows with incoming transitions:
186
+ #
187
+ # * If `force` is set to false, an error will be returned with message
188
+ # indicating the incoming transitions.
189
+ # * If `force` is set to true, Dialogflow will remove the flow, as well as
190
+ # any transitions to the flow (i.e. [Target
191
+ # flow][EventHandler.target_flow] in event handlers or [Target
192
+ # flow][TransitionRoute.target_flow] in transition routes that point to
193
+ # this flow will be cleared).
194
+ class DeleteFlowRequest
195
+ include ::Google::Protobuf::MessageExts
196
+ extend ::Google::Protobuf::MessageExts::ClassMethods
197
+ end
198
+
199
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#list_flows Flows.ListFlows}.
200
+ # @!attribute [rw] parent
201
+ # @return [::String]
202
+ # Required. The agent containing the flows.
203
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
204
+ # @!attribute [rw] page_size
205
+ # @return [::Integer]
206
+ # The maximum number of items to return in a single page. By default 100 and
207
+ # at most 1000.
208
+ # @!attribute [rw] page_token
209
+ # @return [::String]
210
+ # The next_page_token value returned from a previous list request.
211
+ # @!attribute [rw] language_code
212
+ # @return [::String]
213
+ # The language to list flows for. The following fields are language
214
+ # dependent:
215
+ #
216
+ # * `Flow.event_handlers.trigger_fulfillment.messages`
217
+ # * `Flow.event_handlers.trigger_fulfillment.conditional_cases`
218
+ # * `Flow.transition_routes.trigger_fulfillment.messages`
219
+ # * `Flow.transition_routes.trigger_fulfillment.conditional_cases`
220
+ #
221
+ # If not specified, the agent's default language is used.
222
+ # [Many
223
+ # languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
224
+ # are supported.
225
+ # Note: languages must be enabled in the agent before they can be used.
226
+ class ListFlowsRequest
227
+ include ::Google::Protobuf::MessageExts
228
+ extend ::Google::Protobuf::MessageExts::ClassMethods
229
+ end
230
+
231
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#list_flows Flows.ListFlows}.
232
+ # @!attribute [rw] flows
233
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::Flow>]
234
+ # The list of flows. There will be a maximum number of items returned based
235
+ # on the page_size field in the request.
236
+ # @!attribute [rw] next_page_token
237
+ # @return [::String]
238
+ # Token to retrieve the next page of results, or empty if there are no more
239
+ # results in the list.
240
+ class ListFlowsResponse
241
+ include ::Google::Protobuf::MessageExts
242
+ extend ::Google::Protobuf::MessageExts::ClassMethods
243
+ end
244
+
245
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#get_flow Flows.GetFlow}.
246
+ # @!attribute [rw] name
247
+ # @return [::String]
248
+ # Required. The name of the flow to get.
249
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
250
+ # ID>/flows/<Flow ID>`.
251
+ # @!attribute [rw] language_code
252
+ # @return [::String]
253
+ # The language to retrieve the flow for. The following fields are language
254
+ # dependent:
255
+ #
256
+ # * `Flow.event_handlers.trigger_fulfillment.messages`
257
+ # * `Flow.event_handlers.trigger_fulfillment.conditional_cases`
258
+ # * `Flow.transition_routes.trigger_fulfillment.messages`
259
+ # * `Flow.transition_routes.trigger_fulfillment.conditional_cases`
260
+ #
261
+ # If not specified, the agent's default language is used.
262
+ # [Many
263
+ # languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
264
+ # are supported.
265
+ # Note: languages must be enabled in the agent before they can be used.
266
+ class GetFlowRequest
267
+ include ::Google::Protobuf::MessageExts
268
+ extend ::Google::Protobuf::MessageExts::ClassMethods
269
+ end
270
+
271
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#update_flow Flows.UpdateFlow}.
272
+ # @!attribute [rw] flow
273
+ # @return [::Google::Cloud::Dialogflow::CX::V3::Flow]
274
+ # Required. The flow to update.
275
+ # @!attribute [rw] update_mask
276
+ # @return [::Google::Protobuf::FieldMask]
277
+ # Required. The mask to control which fields get updated. If `update_mask` is not
278
+ # specified, an error will be returned.
279
+ # @!attribute [rw] language_code
280
+ # @return [::String]
281
+ # The language of the following fields in `flow`:
282
+ #
283
+ # * `Flow.event_handlers.trigger_fulfillment.messages`
284
+ # * `Flow.event_handlers.trigger_fulfillment.conditional_cases`
285
+ # * `Flow.transition_routes.trigger_fulfillment.messages`
286
+ # * `Flow.transition_routes.trigger_fulfillment.conditional_cases`
287
+ #
288
+ # If not specified, the agent's default language is used.
289
+ # [Many
290
+ # languages](https://cloud.google.com/dialogflow/cx/docs/reference/language)
291
+ # are supported.
292
+ # Note: languages must be enabled in the agent before they can be used.
293
+ class UpdateFlowRequest
294
+ include ::Google::Protobuf::MessageExts
295
+ extend ::Google::Protobuf::MessageExts::ClassMethods
296
+ end
297
+
298
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#train_flow Flows.TrainFlow}.
299
+ # @!attribute [rw] name
300
+ # @return [::String]
301
+ # Required. The flow to train.
302
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
303
+ # ID>/flows/<Flow ID>`.
304
+ class TrainFlowRequest
305
+ include ::Google::Protobuf::MessageExts
306
+ extend ::Google::Protobuf::MessageExts::ClassMethods
307
+ end
308
+
309
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#validate_flow Flows.ValidateFlow}.
310
+ # @!attribute [rw] name
311
+ # @return [::String]
312
+ # Required. The flow to validate.
313
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
314
+ # ID>/flows/<Flow ID>`.
315
+ # @!attribute [rw] language_code
316
+ # @return [::String]
317
+ # If not specified, the agent's default language is used.
318
+ class ValidateFlowRequest
319
+ include ::Google::Protobuf::MessageExts
320
+ extend ::Google::Protobuf::MessageExts::ClassMethods
321
+ end
322
+
323
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#get_flow_validation_result Flows.GetFlowValidationResult}.
324
+ # @!attribute [rw] name
325
+ # @return [::String]
326
+ # Required. The flow name.
327
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
328
+ # ID>/flows/<Flow ID>/validationResult`.
329
+ # @!attribute [rw] language_code
330
+ # @return [::String]
331
+ # If not specified, the agent's default language is used.
332
+ class GetFlowValidationResultRequest
333
+ include ::Google::Protobuf::MessageExts
334
+ extend ::Google::Protobuf::MessageExts::ClassMethods
335
+ end
336
+
337
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#get_flow_validation_result Flows.GetFlowValidationResult}.
338
+ # @!attribute [rw] name
339
+ # @return [::String]
340
+ # The unique identifier of the flow validation result.
341
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
342
+ # ID>/flows/<Flow ID>/validationResult`.
343
+ # @!attribute [rw] validation_messages
344
+ # @return [::Array<::Google::Cloud::Dialogflow::CX::V3::ValidationMessage>]
345
+ # Contains all validation messages.
346
+ # @!attribute [rw] update_time
347
+ # @return [::Google::Protobuf::Timestamp]
348
+ # Last time the flow was validated.
349
+ class FlowValidationResult
350
+ include ::Google::Protobuf::MessageExts
351
+ extend ::Google::Protobuf::MessageExts::ClassMethods
352
+ end
353
+
354
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#import_flow Flows.ImportFlow}.
355
+ # @!attribute [rw] parent
356
+ # @return [::String]
357
+ # Required. The agent to import the flow into.
358
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
359
+ # @!attribute [rw] flow_uri
360
+ # @return [::String]
361
+ # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI
362
+ # to import flow from. The format of this URI must be
363
+ # `gs://<bucket-name>/<object-name>`.
364
+ # @!attribute [rw] flow_content
365
+ # @return [::String]
366
+ # Uncompressed raw byte content for flow.
367
+ # @!attribute [rw] import_option
368
+ # @return [::Google::Cloud::Dialogflow::CX::V3::ImportFlowRequest::ImportOption]
369
+ # Flow import mode. If not specified, `KEEP` is assumed.
370
+ class ImportFlowRequest
371
+ include ::Google::Protobuf::MessageExts
372
+ extend ::Google::Protobuf::MessageExts::ClassMethods
373
+
374
+ # Import option.
375
+ module ImportOption
376
+ # Unspecified. Treated as `KEEP`.
377
+ IMPORT_OPTION_UNSPECIFIED = 0
378
+
379
+ # Always respect settings in exported flow content. It may cause a
380
+ # import failure if some settings (e.g. custom NLU) are not supported in
381
+ # the agent to import into.
382
+ KEEP = 1
383
+
384
+ # Fallback to default settings if some settings are not supported in the
385
+ # agent to import into. E.g. Standard NLU will be used if custom NLU is
386
+ # not available.
387
+ FALLBACK = 2
388
+ end
389
+ end
390
+
391
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#import_flow Flows.ImportFlow}.
392
+ # @!attribute [rw] flow
393
+ # @return [::String]
394
+ # The unique identifier of the new flow.
395
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
396
+ # ID>/flows/<Flow ID>`.
397
+ class ImportFlowResponse
398
+ include ::Google::Protobuf::MessageExts
399
+ extend ::Google::Protobuf::MessageExts::ClassMethods
400
+ end
401
+
402
+ # The request message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#export_flow Flows.ExportFlow}.
403
+ # @!attribute [rw] name
404
+ # @return [::String]
405
+ # Required. The name of the flow to export.
406
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
407
+ # ID>/flows/<Flow ID>`.
408
+ # @!attribute [rw] flow_uri
409
+ # @return [::String]
410
+ # Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
411
+ # export the flow to. The format of this URI must be
412
+ # `gs://<bucket-name>/<object-name>`.
413
+ # If left unspecified, the serialized flow is returned inline.
414
+ # @!attribute [rw] include_referenced_flows
415
+ # @return [::Boolean]
416
+ # Optional. Whether to export flows referenced by the specified flow.
417
+ class ExportFlowRequest
418
+ include ::Google::Protobuf::MessageExts
419
+ extend ::Google::Protobuf::MessageExts::ClassMethods
420
+ end
421
+
422
+ # The response message for {::Google::Cloud::Dialogflow::CX::V3::Flows::Client#export_flow Flows.ExportFlow}.
423
+ # @!attribute [rw] flow_uri
424
+ # @return [::String]
425
+ # The URI to a file containing the exported flow. This field is populated
426
+ # only if `flow_uri` is specified in {::Google::Cloud::Dialogflow::CX::V3::ExportFlowRequest ExportFlowRequest}.
427
+ # @!attribute [rw] flow_content
428
+ # @return [::String]
429
+ # Uncompressed raw byte content for flow.
430
+ class ExportFlowResponse
431
+ include ::Google::Protobuf::MessageExts
432
+ extend ::Google::Protobuf::MessageExts::ClassMethods
433
+ end
434
+ end
435
+ end
436
+ end
437
+ end
438
+ end