google-cloud-dialogflow-v2 0.6.4 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (100) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +188 -190
  3. data/README.md +66 -2
  4. data/lib/google/cloud/dialogflow/v2.rb +11 -2
  5. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +9 -9
  6. data/lib/google/cloud/dialogflow/v2/agents/client.rb +24 -18
  7. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +96 -11
  8. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +100 -0
  9. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +49 -0
  10. data/lib/google/cloud/dialogflow/v2/answer_records.rb +50 -0
  11. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +479 -0
  12. data/lib/google/cloud/dialogflow/v2/answer_records/credentials.rb +52 -0
  13. data/lib/google/cloud/dialogflow/v2/answer_records/paths.rb +105 -0
  14. data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +7 -0
  15. data/lib/google/cloud/dialogflow/v2/context_services_pb.rb +7 -24
  16. data/lib/google/cloud/dialogflow/v2/contexts.rb +1 -18
  17. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +22 -33
  18. data/lib/google/cloud/dialogflow/v2/contexts/paths.rb +2 -2
  19. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +39 -0
  20. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +89 -0
  21. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +182 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +61 -0
  23. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +49 -0
  24. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +699 -0
  25. data/lib/google/cloud/dialogflow/v2/conversation_profiles/credentials.rb +52 -0
  26. data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +205 -0
  27. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +75 -0
  28. data/lib/google/cloud/dialogflow/v2/conversations.rb +49 -0
  29. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +757 -0
  30. data/lib/google/cloud/dialogflow/v2/conversations/credentials.rb +52 -0
  31. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +146 -0
  32. data/lib/google/cloud/dialogflow/v2/document_pb.rb +99 -0
  33. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +73 -0
  34. data/lib/google/cloud/dialogflow/v2/documents.rb +50 -0
  35. data/lib/google/cloud/dialogflow/v2/documents/client.rb +810 -0
  36. data/lib/google/cloud/dialogflow/v2/documents/credentials.rb +52 -0
  37. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +655 -0
  38. data/lib/google/cloud/dialogflow/v2/documents/paths.rb +119 -0
  39. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +11 -38
  40. data/lib/google/cloud/dialogflow/v2/entity_types.rb +1 -28
  41. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +26 -47
  42. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +96 -11
  43. data/lib/google/cloud/dialogflow/v2/environment_services_pb.rb +2 -2
  44. data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
  45. data/lib/google/cloud/dialogflow/v2/environments/client.rb +17 -11
  46. data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +20 -0
  47. data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +26 -0
  48. data/lib/google/cloud/dialogflow/v2/intent_pb.rb +2 -0
  49. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +8 -39
  50. data/lib/google/cloud/dialogflow/v2/intents.rb +1 -32
  51. data/lib/google/cloud/dialogflow/v2/intents/client.rb +23 -48
  52. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +96 -11
  53. data/lib/google/cloud/dialogflow/v2/intents/paths.rb +1 -1
  54. data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +60 -0
  55. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +53 -0
  56. data/lib/google/cloud/dialogflow/v2/knowledge_bases.rb +49 -0
  57. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +696 -0
  58. data/lib/google/cloud/dialogflow/v2/knowledge_bases/credentials.rb +52 -0
  59. data/lib/google/cloud/dialogflow/v2/knowledge_bases/paths.rb +105 -0
  60. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +172 -0
  61. data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +64 -0
  62. data/lib/google/cloud/dialogflow/v2/participants.rb +49 -0
  63. data/lib/google/cloud/dialogflow/v2/participants/client.rb +894 -0
  64. data/lib/google/cloud/dialogflow/v2/participants/credentials.rb +52 -0
  65. data/lib/google/cloud/dialogflow/v2/participants/paths.rb +258 -0
  66. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +6 -22
  67. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +1 -17
  68. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +21 -31
  69. data/lib/google/cloud/dialogflow/v2/session_entity_types/paths.rb +2 -2
  70. data/lib/google/cloud/dialogflow/v2/session_pb.rb +1 -0
  71. data/lib/google/cloud/dialogflow/v2/session_services_pb.rb +14 -6
  72. data/lib/google/cloud/dialogflow/v2/sessions.rb +4 -4
  73. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +43 -21
  74. data/lib/google/cloud/dialogflow/v2/sessions/paths.rb +3 -3
  75. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  76. data/proto_docs/google/api/field_behavior.rb +6 -0
  77. data/proto_docs/google/api/resource.rb +50 -14
  78. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +1 -2
  79. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +259 -0
  80. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +25 -0
  81. data/proto_docs/google/cloud/dialogflow/v2/context.rb +17 -2
  82. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +253 -0
  83. data/proto_docs/google/cloud/dialogflow/v2/conversation_event.rb +83 -0
  84. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +510 -0
  85. data/proto_docs/google/cloud/dialogflow/v2/document.rb +267 -0
  86. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +12 -3
  87. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +18 -1
  88. data/proto_docs/google/cloud/dialogflow/v2/human_agent_assistant_event.rb +45 -0
  89. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +20 -3
  90. data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +139 -0
  91. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +503 -0
  92. data/proto_docs/google/cloud/dialogflow/v2/session.rb +52 -7
  93. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +7 -6
  94. data/proto_docs/google/cloud/dialogflow/v2/validation_result.rb +1 -1
  95. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +2 -2
  96. data/proto_docs/google/longrunning/operations.rb +17 -3
  97. data/proto_docs/google/protobuf/any.rb +5 -2
  98. data/proto_docs/google/protobuf/timestamp.rb +10 -1
  99. data/proto_docs/google/type/latlng.rb +2 -2
  100. metadata +59 -9
@@ -0,0 +1,503 @@
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 V2
24
+ # Represents a conversation participant (human agent, virtual agent, end-user).
25
+ # @!attribute [rw] name
26
+ # @return [::String]
27
+ # Optional. The unique identifier of this participant.
28
+ # Format: `projects/<Project ID>/locations/<Location
29
+ # ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
30
+ # @!attribute [rw] role
31
+ # @return [::Google::Cloud::Dialogflow::V2::Participant::Role]
32
+ # Immutable. The role this participant plays in the conversation. This field must be set
33
+ # during participant creation and is then immutable.
34
+ # @!attribute [rw] sip_recording_media_label
35
+ # @return [::String]
36
+ # Optional. Label applied to streams representing this participant in SIPREC
37
+ # XML metadata and SDP. This is used to assign transcriptions from that
38
+ # media stream to this participant. This field can be updated.
39
+ class Participant
40
+ include ::Google::Protobuf::MessageExts
41
+ extend ::Google::Protobuf::MessageExts::ClassMethods
42
+
43
+ # Enumeration of the roles a participant can play in a conversation.
44
+ module Role
45
+ # Participant role not set.
46
+ ROLE_UNSPECIFIED = 0
47
+
48
+ # Participant is a human agent.
49
+ HUMAN_AGENT = 1
50
+
51
+ # Participant is an automated agent, such as a Dialogflow agent.
52
+ AUTOMATED_AGENT = 2
53
+
54
+ # Participant is an end user that has called or chatted with
55
+ # Dialogflow services.
56
+ END_USER = 3
57
+ end
58
+ end
59
+
60
+ # Represents a message posted into a conversation.
61
+ # @!attribute [rw] name
62
+ # @return [::String]
63
+ # The unique identifier of the message.
64
+ # Format: `projects/<Project ID>/locations/<Location
65
+ # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
66
+ # @!attribute [rw] content
67
+ # @return [::String]
68
+ # Required. The message content.
69
+ # @!attribute [rw] language_code
70
+ # @return [::String]
71
+ # Optional. The message language.
72
+ # This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
73
+ # language tag. Example: "en-US".
74
+ # @!attribute [r] participant
75
+ # @return [::String]
76
+ # Output only. The participant that sends this message.
77
+ # @!attribute [r] participant_role
78
+ # @return [::Google::Cloud::Dialogflow::V2::Participant::Role]
79
+ # Output only. The role of the participant.
80
+ # @!attribute [r] create_time
81
+ # @return [::Google::Protobuf::Timestamp]
82
+ # Output only. The time when the message was created.
83
+ # @!attribute [r] message_annotation
84
+ # @return [::Google::Cloud::Dialogflow::V2::MessageAnnotation]
85
+ # Output only. The annotation for the message.
86
+ class Message
87
+ include ::Google::Protobuf::MessageExts
88
+ extend ::Google::Protobuf::MessageExts::ClassMethods
89
+ end
90
+
91
+ # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#create_participant Participants.CreateParticipant}.
92
+ # @!attribute [rw] parent
93
+ # @return [::String]
94
+ # Required. Resource identifier of the conversation adding the participant.
95
+ # Format: `projects/<Project ID>/locations/<Location
96
+ # ID>/conversations/<Conversation ID>`.
97
+ # @!attribute [rw] participant
98
+ # @return [::Google::Cloud::Dialogflow::V2::Participant]
99
+ # Required. The participant to create.
100
+ class CreateParticipantRequest
101
+ include ::Google::Protobuf::MessageExts
102
+ extend ::Google::Protobuf::MessageExts::ClassMethods
103
+ end
104
+
105
+ # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#get_participant Participants.GetParticipant}.
106
+ # @!attribute [rw] name
107
+ # @return [::String]
108
+ # Required. The name of the participant. Format:
109
+ # `projects/<Project ID>/locations/<Location ID>/conversations/<Conversation
110
+ # ID>/participants/<Participant ID>`.
111
+ class GetParticipantRequest
112
+ include ::Google::Protobuf::MessageExts
113
+ extend ::Google::Protobuf::MessageExts::ClassMethods
114
+ end
115
+
116
+ # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
117
+ # @!attribute [rw] parent
118
+ # @return [::String]
119
+ # Required. The conversation to list all participants from.
120
+ # Format: `projects/<Project ID>/locations/<Location
121
+ # ID>/conversations/<Conversation ID>`.
122
+ # @!attribute [rw] page_size
123
+ # @return [::Integer]
124
+ # Optional. The maximum number of items to return in a single page. By
125
+ # default 100 and at most 1000.
126
+ # @!attribute [rw] page_token
127
+ # @return [::String]
128
+ # Optional. The next_page_token value returned from a previous list request.
129
+ class ListParticipantsRequest
130
+ include ::Google::Protobuf::MessageExts
131
+ extend ::Google::Protobuf::MessageExts::ClassMethods
132
+ end
133
+
134
+ # The response message for {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
135
+ # @!attribute [rw] participants
136
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::Participant>]
137
+ # The list of participants. There is a maximum number of items
138
+ # returned based on the page_size field in the request.
139
+ # @!attribute [rw] next_page_token
140
+ # @return [::String]
141
+ # Token to retrieve the next page of results or empty if there are no
142
+ # more results in the list.
143
+ class ListParticipantsResponse
144
+ include ::Google::Protobuf::MessageExts
145
+ extend ::Google::Protobuf::MessageExts::ClassMethods
146
+ end
147
+
148
+ # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#update_participant Participants.UpdateParticipant}.
149
+ # @!attribute [rw] participant
150
+ # @return [::Google::Cloud::Dialogflow::V2::Participant]
151
+ # Required. The participant to update.
152
+ # @!attribute [rw] update_mask
153
+ # @return [::Google::Protobuf::FieldMask]
154
+ # Required. The mask to specify which fields to update.
155
+ class UpdateParticipantRequest
156
+ include ::Google::Protobuf::MessageExts
157
+ extend ::Google::Protobuf::MessageExts::ClassMethods
158
+ end
159
+
160
+ # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
161
+ # @!attribute [rw] participant
162
+ # @return [::String]
163
+ # Required. The name of the participant this text comes from.
164
+ # Format: `projects/<Project ID>/locations/<Location
165
+ # ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
166
+ # @!attribute [rw] text_input
167
+ # @return [::Google::Cloud::Dialogflow::V2::TextInput]
168
+ # The natural language text to be processed.
169
+ # @!attribute [rw] event_input
170
+ # @return [::Google::Cloud::Dialogflow::V2::EventInput]
171
+ # An input event to send to Dialogflow.
172
+ # @!attribute [rw] reply_audio_config
173
+ # @return [::Google::Cloud::Dialogflow::V2::OutputAudioConfig]
174
+ # Speech synthesis configuration.
175
+ # The speech synthesis settings for a virtual agent that may be configured
176
+ # for the associated conversation profile are not used when calling
177
+ # AnalyzeContent. If this configuration is not supplied, speech synthesis
178
+ # is disabled.
179
+ # @!attribute [rw] query_params
180
+ # @return [::Google::Cloud::Dialogflow::V2::QueryParameters]
181
+ # Parameters for a Dialogflow virtual-agent query.
182
+ # @!attribute [rw] request_id
183
+ # @return [::String]
184
+ # A unique identifier for this request. Restricted to 36 ASCII characters.
185
+ # A random UUID is recommended.
186
+ # This request is only idempotent if a `request_id` is provided.
187
+ class AnalyzeContentRequest
188
+ include ::Google::Protobuf::MessageExts
189
+ extend ::Google::Protobuf::MessageExts::ClassMethods
190
+ end
191
+
192
+ # The message in the response that indicates the parameters of DTMF.
193
+ # @!attribute [rw] accepts_dtmf_input
194
+ # @return [::Boolean]
195
+ # Indicates whether DTMF input can be handled in the next request.
196
+ class DtmfParameters
197
+ include ::Google::Protobuf::MessageExts
198
+ extend ::Google::Protobuf::MessageExts::ClassMethods
199
+ end
200
+
201
+ # The response message for {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
202
+ # @!attribute [rw] reply_text
203
+ # @return [::String]
204
+ # The output text content.
205
+ # This field is set if the automated agent responded with text to show to
206
+ # the user.
207
+ # @!attribute [rw] reply_audio
208
+ # @return [::Google::Cloud::Dialogflow::V2::OutputAudio]
209
+ # The audio data bytes encoded as specified in the request.
210
+ # This field is set if:
211
+ #
212
+ # - `reply_audio_config` was specified in the request, or
213
+ # - The automated agent responded with audio to play to the user. In such
214
+ # case, `reply_audio.config` contains settings used to synthesize the
215
+ # speech.
216
+ #
217
+ # In some scenarios, multiple output audio fields may be present in the
218
+ # response structure. In these cases, only the top-most-level audio output
219
+ # has content.
220
+ # @!attribute [rw] automated_agent_reply
221
+ # @return [::Google::Cloud::Dialogflow::V2::AutomatedAgentReply]
222
+ # Only set if a Dialogflow automated agent has responded.
223
+ # Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
224
+ # and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
225
+ # are always empty, use {::Google::Cloud::Dialogflow::V2::AnalyzeContentResponse#reply_audio reply_audio} instead.
226
+ # @!attribute [rw] message
227
+ # @return [::Google::Cloud::Dialogflow::V2::Message]
228
+ # Message analyzed by CCAI.
229
+ # @!attribute [rw] human_agent_suggestion_results
230
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>]
231
+ # The suggestions for most recent human agent. The order is the same as
232
+ # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs} of
233
+ # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#human_agent_suggestion_config HumanAgentAssistantConfig.human_agent_suggestion_config}.
234
+ # @!attribute [rw] end_user_suggestion_results
235
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>]
236
+ # The suggestions for end user. The order is the same as
237
+ # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs} of
238
+ # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#end_user_suggestion_config HumanAgentAssistantConfig.end_user_suggestion_config}.
239
+ # @!attribute [rw] dtmf_parameters
240
+ # @return [::Google::Cloud::Dialogflow::V2::DtmfParameters]
241
+ # Indicates the parameters of DTMF.
242
+ class AnalyzeContentResponse
243
+ include ::Google::Protobuf::MessageExts
244
+ extend ::Google::Protobuf::MessageExts::ClassMethods
245
+ end
246
+
247
+ # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
248
+ # @!attribute [rw] parent
249
+ # @return [::String]
250
+ # Required. The name of the participant to fetch suggestion for.
251
+ # Format: `projects/<Project ID>/locations/<Location
252
+ # ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
253
+ # @!attribute [rw] latest_message
254
+ # @return [::String]
255
+ # The name of the latest conversation message to compile suggestion
256
+ # for. If empty, it will be the latest message of the conversation.
257
+ #
258
+ # Format: `projects/<Project ID>/locations/<Location
259
+ # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
260
+ # @!attribute [rw] context_size
261
+ # @return [::Integer]
262
+ # Max number of messages prior to and including
263
+ # {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#latest_message latest_message} to use as context
264
+ # when compiling the suggestion. By default 20 and at most 50.
265
+ class SuggestArticlesRequest
266
+ include ::Google::Protobuf::MessageExts
267
+ extend ::Google::Protobuf::MessageExts::ClassMethods
268
+ end
269
+
270
+ # The response message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
271
+ # @!attribute [rw] article_answers
272
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::ArticleAnswer>]
273
+ # Articles ordered by score in descending order.
274
+ # @!attribute [rw] latest_message
275
+ # @return [::String]
276
+ # The name of the latest conversation message used to compile
277
+ # suggestion for.
278
+ #
279
+ # Format: `projects/<Project ID>/locations/<Location
280
+ # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
281
+ # @!attribute [rw] context_size
282
+ # @return [::Integer]
283
+ # Number of messages prior to and including
284
+ # {::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse#latest_message latest_message} to compile the
285
+ # suggestion. It may be smaller than the
286
+ # {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#context_size SuggestArticlesRequest.context_size} field in the request if there
287
+ # aren't that many messages in the conversation.
288
+ class SuggestArticlesResponse
289
+ include ::Google::Protobuf::MessageExts
290
+ extend ::Google::Protobuf::MessageExts::ClassMethods
291
+ end
292
+
293
+ # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
294
+ # @!attribute [rw] parent
295
+ # @return [::String]
296
+ # Required. The name of the participant to fetch suggestion for.
297
+ # Format: `projects/<Project ID>/locations/<Location
298
+ # ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
299
+ # @!attribute [rw] latest_message
300
+ # @return [::String]
301
+ # The name of the latest conversation message to compile suggestion
302
+ # for. If empty, it will be the latest message of the conversation.
303
+ #
304
+ # Format: `projects/<Project ID>/locations/<Location
305
+ # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
306
+ # @!attribute [rw] context_size
307
+ # @return [::Integer]
308
+ # Max number of messages prior to and including
309
+ # [latest_message] to use as context when compiling the
310
+ # suggestion. By default 20 and at most 50.
311
+ class SuggestFaqAnswersRequest
312
+ include ::Google::Protobuf::MessageExts
313
+ extend ::Google::Protobuf::MessageExts::ClassMethods
314
+ end
315
+
316
+ # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
317
+ # @!attribute [rw] faq_answers
318
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::FaqAnswer>]
319
+ # Answers extracted from FAQ documents.
320
+ # @!attribute [rw] latest_message
321
+ # @return [::String]
322
+ # The name of the latest conversation message used to compile
323
+ # suggestion for.
324
+ #
325
+ # Format: `projects/<Project ID>/locations/<Location
326
+ # ID>/conversations/<Conversation ID>/messages/<Message ID>`.
327
+ # @!attribute [rw] context_size
328
+ # @return [::Integer]
329
+ # Number of messages prior to and including
330
+ # {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse#latest_message latest_message} to compile the
331
+ # suggestion. It may be smaller than the
332
+ # {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersRequest#context_size SuggestFaqAnswersRequest.context_size} field in the request if there
333
+ # aren't that many messages in the conversation.
334
+ class SuggestFaqAnswersResponse
335
+ include ::Google::Protobuf::MessageExts
336
+ extend ::Google::Protobuf::MessageExts::ClassMethods
337
+ end
338
+
339
+ # Represents the natural language speech audio to be played to the end user.
340
+ # @!attribute [rw] config
341
+ # @return [::Google::Cloud::Dialogflow::V2::OutputAudioConfig]
342
+ # Instructs the speech synthesizer how to generate the speech
343
+ # audio.
344
+ # @!attribute [rw] audio
345
+ # @return [::String]
346
+ # The natural language speech audio.
347
+ class OutputAudio
348
+ include ::Google::Protobuf::MessageExts
349
+ extend ::Google::Protobuf::MessageExts::ClassMethods
350
+ end
351
+
352
+ # Represents a response from an automated agent.
353
+ # @!attribute [rw] detect_intent_response
354
+ # @return [::Google::Cloud::Dialogflow::V2::DetectIntentResponse]
355
+ # Response of the Dialogflow {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent Sessions.DetectIntent} call.
356
+ class AutomatedAgentReply
357
+ include ::Google::Protobuf::MessageExts
358
+ extend ::Google::Protobuf::MessageExts::ClassMethods
359
+ end
360
+
361
+ # Represents article answer.
362
+ # @!attribute [rw] title
363
+ # @return [::String]
364
+ # The article title.
365
+ # @!attribute [rw] uri
366
+ # @return [::String]
367
+ # The article URI.
368
+ # @!attribute [rw] snippets
369
+ # @return [::Array<::String>]
370
+ # Article snippets.
371
+ # @!attribute [rw] confidence
372
+ # @return [::Float]
373
+ # Article match confidence.
374
+ # The system's confidence score that this article is a good match for this
375
+ # conversation, as a value from 0.0 (completely uncertain) to 1.0
376
+ # (completely certain).
377
+ # @!attribute [rw] metadata
378
+ # @return [::Google::Protobuf::Map{::String => ::String}]
379
+ # A map that contains metadata about the answer and the
380
+ # document from which it originates.
381
+ # @!attribute [rw] answer_record
382
+ # @return [::String]
383
+ # The name of answer record, in the format of
384
+ # "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
385
+ # ID>"
386
+ class ArticleAnswer
387
+ include ::Google::Protobuf::MessageExts
388
+ extend ::Google::Protobuf::MessageExts::ClassMethods
389
+
390
+ # @!attribute [rw] key
391
+ # @return [::String]
392
+ # @!attribute [rw] value
393
+ # @return [::String]
394
+ class MetadataEntry
395
+ include ::Google::Protobuf::MessageExts
396
+ extend ::Google::Protobuf::MessageExts::ClassMethods
397
+ end
398
+ end
399
+
400
+ # Represents answer from "frequently asked questions".
401
+ # @!attribute [rw] answer
402
+ # @return [::String]
403
+ # The piece of text from the `source` knowledge base document.
404
+ # @!attribute [rw] confidence
405
+ # @return [::Float]
406
+ # The system's confidence score that this Knowledge answer is a good match
407
+ # for this conversational query, range from 0.0 (completely uncertain)
408
+ # to 1.0 (completely certain).
409
+ # @!attribute [rw] question
410
+ # @return [::String]
411
+ # The corresponding FAQ question.
412
+ # @!attribute [rw] source
413
+ # @return [::String]
414
+ # Indicates which Knowledge Document this answer was extracted
415
+ # from.
416
+ # Format: `projects/<Project ID>/locations/<Location
417
+ # ID>/agent/knowledgeBases/<Knowledge Base ID>/documents/<Document ID>`.
418
+ # @!attribute [rw] metadata
419
+ # @return [::Google::Protobuf::Map{::String => ::String}]
420
+ # A map that contains metadata about the answer and the
421
+ # document from which it originates.
422
+ # @!attribute [rw] answer_record
423
+ # @return [::String]
424
+ # The name of answer record, in the format of
425
+ # "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
426
+ # ID>"
427
+ class FaqAnswer
428
+ include ::Google::Protobuf::MessageExts
429
+ extend ::Google::Protobuf::MessageExts::ClassMethods
430
+
431
+ # @!attribute [rw] key
432
+ # @return [::String]
433
+ # @!attribute [rw] value
434
+ # @return [::String]
435
+ class MetadataEntry
436
+ include ::Google::Protobuf::MessageExts
437
+ extend ::Google::Protobuf::MessageExts::ClassMethods
438
+ end
439
+ end
440
+
441
+ # One response of different type of suggestion response which is used in
442
+ # the response of {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent} and
443
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}, as well as {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantEvent HumanAgentAssistantEvent}.
444
+ # @!attribute [rw] error
445
+ # @return [::Google::Rpc::Status]
446
+ # Error status if the request failed.
447
+ # @!attribute [rw] suggest_articles_response
448
+ # @return [::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse]
449
+ # SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
450
+ # @!attribute [rw] suggest_faq_answers_response
451
+ # @return [::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse]
452
+ # SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
453
+ class SuggestionResult
454
+ include ::Google::Protobuf::MessageExts
455
+ extend ::Google::Protobuf::MessageExts::ClassMethods
456
+ end
457
+
458
+ # Represents a part of a message possibly annotated with an entity. The part
459
+ # can be an entity or purely a part of the message between two entities or
460
+ # message start/end.
461
+ # @!attribute [rw] text
462
+ # @return [::String]
463
+ # A part of a message possibly annotated with an entity.
464
+ # @!attribute [rw] entity_type
465
+ # @return [::String]
466
+ # The [Dialogflow system entity
467
+ # type](https://cloud.google.com/dialogflow/docs/reference/system-entities)
468
+ # of this message part. If this is empty, Dialogflow could not annotate the
469
+ # phrase part with a system entity.
470
+ # @!attribute [rw] formatted_value
471
+ # @return [::Google::Protobuf::Value]
472
+ # The [Dialogflow system entity formatted value
473
+ # ](https://cloud.google.com/dialogflow/docs/reference/system-entities) of
474
+ # this message part. For example for a system entity of type
475
+ # `@sys.unit-currency`, this may contain:
476
+ # <pre>
477
+ # {
478
+ # "amount": 5,
479
+ # "currency": "USD"
480
+ # }
481
+ # </pre>
482
+ class AnnotatedMessagePart
483
+ include ::Google::Protobuf::MessageExts
484
+ extend ::Google::Protobuf::MessageExts::ClassMethods
485
+ end
486
+
487
+ # Represents the result of annotation for the message.
488
+ # @!attribute [rw] parts
489
+ # @return [::Array<::Google::Cloud::Dialogflow::V2::AnnotatedMessagePart>]
490
+ # The collection of annotated message parts ordered by their
491
+ # position in the message. You can recover the annotated message by
492
+ # concatenating [AnnotatedMessagePart.text].
493
+ # @!attribute [rw] contain_entities
494
+ # @return [::Boolean]
495
+ # Indicates whether the text message contains entities.
496
+ class MessageAnnotation
497
+ include ::Google::Protobuf::MessageExts
498
+ extend ::Google::Protobuf::MessageExts::ClassMethods
499
+ end
500
+ end
501
+ end
502
+ end
503
+ end