google-cloud-dialogflow-v2 0.19.0 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/v2/agent_services_pb.rb +12 -8
  4. data/lib/google/cloud/dialogflow/v2/agents/client.rb +16 -12
  5. data/lib/google/cloud/dialogflow/v2/agents.rb +1 -1
  6. data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +7 -0
  7. data/lib/google/cloud/dialogflow/v2/answer_record_services_pb.rb +2 -1
  8. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +2 -1
  9. data/lib/google/cloud/dialogflow/v2/answer_records.rb +3 -2
  10. data/lib/google/cloud/dialogflow/v2/contexts.rb +1 -1
  11. data/lib/google/cloud/dialogflow/v2/conversation_dataset_services_pb.rb +10 -5
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +12 -7
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets.rb +1 -1
  14. data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +1 -0
  15. data/lib/google/cloud/dialogflow/v2/conversation_model_services_pb.rb +10 -5
  16. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +10 -5
  17. data/lib/google/cloud/dialogflow/v2/conversation_models.rb +1 -1
  18. data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +18 -0
  19. data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +14 -7
  20. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +14 -7
  21. data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +3 -2
  22. data/lib/google/cloud/dialogflow/v2/conversation_services_pb.rb +14 -6
  23. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +119 -8
  24. data/lib/google/cloud/dialogflow/v2/conversations/paths.rb +45 -0
  25. data/lib/google/cloud/dialogflow/v2/conversations.rb +3 -2
  26. data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +16 -8
  27. data/lib/google/cloud/dialogflow/v2/documents/client.rb +20 -12
  28. data/lib/google/cloud/dialogflow/v2/documents.rb +3 -2
  29. data/lib/google/cloud/dialogflow/v2/entity_type_services_pb.rb +2 -1
  30. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +2 -1
  31. data/lib/google/cloud/dialogflow/v2/entity_types.rb +1 -1
  32. data/lib/google/cloud/dialogflow/v2/environments/client.rb +4 -4
  33. data/lib/google/cloud/dialogflow/v2/environments.rb +1 -1
  34. data/lib/google/cloud/dialogflow/v2/fulfillments.rb +1 -1
  35. data/lib/google/cloud/dialogflow/v2/intent_services_pb.rb +2 -1
  36. data/lib/google/cloud/dialogflow/v2/intents/client.rb +2 -1
  37. data/lib/google/cloud/dialogflow/v2/intents.rb +1 -1
  38. data/lib/google/cloud/dialogflow/v2/knowledge_base_services_pb.rb +2 -1
  39. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +2 -1
  40. data/lib/google/cloud/dialogflow/v2/knowledge_bases.rb +3 -2
  41. data/lib/google/cloud/dialogflow/v2/participant_pb.rb +1 -0
  42. data/lib/google/cloud/dialogflow/v2/participants/client.rb +3 -2
  43. data/lib/google/cloud/dialogflow/v2/participants.rb +1 -1
  44. data/lib/google/cloud/dialogflow/v2/session_entity_type_services_pb.rb +2 -1
  45. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +2 -1
  46. data/lib/google/cloud/dialogflow/v2/session_entity_types.rb +3 -2
  47. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +8 -6
  48. data/lib/google/cloud/dialogflow/v2/sessions.rb +1 -1
  49. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  50. data/lib/google/cloud/dialogflow/v2/versions/client.rb +2 -2
  51. data/lib/google/cloud/dialogflow/v2/versions.rb +1 -1
  52. data/lib/google/cloud/dialogflow/v2.rb +2 -2
  53. data/proto_docs/google/api/client.rb +318 -0
  54. data/proto_docs/google/api/launch_stage.rb +71 -0
  55. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +26 -15
  56. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +34 -9
  57. data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +28 -18
  58. data/proto_docs/google/cloud/dialogflow/v2/context.rb +14 -7
  59. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +99 -14
  60. data/proto_docs/google/cloud/dialogflow/v2/conversation_dataset.rb +15 -10
  61. data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +41 -14
  62. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +28 -15
  63. data/proto_docs/google/cloud/dialogflow/v2/document.rb +26 -15
  64. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +30 -15
  65. data/proto_docs/google/cloud/dialogflow/v2/environment.rb +37 -29
  66. data/proto_docs/google/cloud/dialogflow/v2/fulfillment.rb +12 -7
  67. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +33 -17
  68. data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +12 -6
  69. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +110 -59
  70. data/proto_docs/google/cloud/dialogflow/v2/session.rb +63 -46
  71. data/proto_docs/google/cloud/dialogflow/v2/session_entity_type.rb +15 -8
  72. data/proto_docs/google/cloud/dialogflow/v2/version.rb +20 -14
  73. data/proto_docs/google/cloud/dialogflow/v2/webhook.rb +20 -13
  74. data/proto_docs/google/rpc/status.rb +4 -2
  75. metadata +7 -5
@@ -51,7 +51,8 @@ module Google
51
51
  extend ::Google::Protobuf::MessageExts::ClassMethods
52
52
  end
53
53
 
54
- # Request message for {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#list_knowledge_bases KnowledgeBases.ListKnowledgeBases}.
54
+ # Request message for
55
+ # {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#list_knowledge_bases KnowledgeBases.ListKnowledgeBases}.
55
56
  # @!attribute [rw] parent
56
57
  # @return [::String]
57
58
  # Required. The project to list of knowledge bases for.
@@ -96,7 +97,8 @@ module Google
96
97
  extend ::Google::Protobuf::MessageExts::ClassMethods
97
98
  end
98
99
 
99
- # Response message for {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#list_knowledge_bases KnowledgeBases.ListKnowledgeBases}.
100
+ # Response message for
101
+ # {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#list_knowledge_bases KnowledgeBases.ListKnowledgeBases}.
100
102
  # @!attribute [rw] knowledge_bases
101
103
  # @return [::Array<::Google::Cloud::Dialogflow::V2::KnowledgeBase>]
102
104
  # The list of knowledge bases.
@@ -109,7 +111,8 @@ module Google
109
111
  extend ::Google::Protobuf::MessageExts::ClassMethods
110
112
  end
111
113
 
112
- # Request message for {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#get_knowledge_base KnowledgeBases.GetKnowledgeBase}.
114
+ # Request message for
115
+ # {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#get_knowledge_base KnowledgeBases.GetKnowledgeBase}.
113
116
  # @!attribute [rw] name
114
117
  # @return [::String]
115
118
  # Required. The name of the knowledge base to retrieve.
@@ -120,7 +123,8 @@ module Google
120
123
  extend ::Google::Protobuf::MessageExts::ClassMethods
121
124
  end
122
125
 
123
- # Request message for {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#create_knowledge_base KnowledgeBases.CreateKnowledgeBase}.
126
+ # Request message for
127
+ # {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#create_knowledge_base KnowledgeBases.CreateKnowledgeBase}.
124
128
  # @!attribute [rw] parent
125
129
  # @return [::String]
126
130
  # Required. The project to create a knowledge base for.
@@ -133,7 +137,8 @@ module Google
133
137
  extend ::Google::Protobuf::MessageExts::ClassMethods
134
138
  end
135
139
 
136
- # Request message for {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#delete_knowledge_base KnowledgeBases.DeleteKnowledgeBase}.
140
+ # Request message for
141
+ # {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#delete_knowledge_base KnowledgeBases.DeleteKnowledgeBase}.
137
142
  # @!attribute [rw] name
138
143
  # @return [::String]
139
144
  # Required. The name of the knowledge base to delete.
@@ -148,7 +153,8 @@ module Google
148
153
  extend ::Google::Protobuf::MessageExts::ClassMethods
149
154
  end
150
155
 
151
- # Request message for {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#update_knowledge_base KnowledgeBases.UpdateKnowledgeBase}.
156
+ # Request message for
157
+ # {::Google::Cloud::Dialogflow::V2::KnowledgeBases::Client#update_knowledge_base KnowledgeBases.UpdateKnowledgeBase}.
152
158
  # @!attribute [rw] knowledge_base
153
159
  # @return [::Google::Cloud::Dialogflow::V2::KnowledgeBase]
154
160
  # Required. The knowledge base to update.
@@ -29,8 +29,8 @@ module Google
29
29
  # ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
30
30
  # @!attribute [rw] role
31
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.
32
+ # Immutable. The role this participant plays in the conversation. This field
33
+ # must be set during participant creation and is then immutable.
34
34
  # @!attribute [rw] sip_recording_media_label
35
35
  # @return [::String]
36
36
  # Optional. Label applied to streams representing this participant in SIPREC
@@ -38,22 +38,27 @@ module Google
38
38
  # media stream to this participant. This field can be updated.
39
39
  # @!attribute [rw] obfuscated_external_user_id
40
40
  # @return [::String]
41
- # Optional. Obfuscated user id that should be associated with the created participant.
41
+ # Optional. Obfuscated user id that should be associated with the created
42
+ # participant.
42
43
  #
43
44
  # You can specify a user id as follows:
44
45
  #
45
46
  # 1. If you set this field in
46
- # {::Google::Cloud::Dialogflow::V2::CreateParticipantRequest#participant CreateParticipantRequest} or
47
+ # {::Google::Cloud::Dialogflow::V2::CreateParticipantRequest#participant CreateParticipantRequest}
48
+ # or
47
49
  # {::Google::Cloud::Dialogflow::V2::UpdateParticipantRequest#participant UpdateParticipantRequest},
48
50
  # Dialogflow adds the obfuscated user id with the participant.
49
51
  #
50
52
  # 2. If you set this field in
51
- # [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id] or
53
+ # [AnalyzeContent][google.cloud.dialogflow.v2.AnalyzeContentRequest.obfuscated_external_user_id]
54
+ # or
52
55
  # [StreamingAnalyzeContent][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.obfuscated_external_user_id],
53
- # Dialogflow will update {::Google::Cloud::Dialogflow::V2::Participant#obfuscated_external_user_id Participant.obfuscated_external_user_id}.
56
+ # Dialogflow will update
57
+ # {::Google::Cloud::Dialogflow::V2::Participant#obfuscated_external_user_id Participant.obfuscated_external_user_id}.
54
58
  #
55
59
  # Dialogflow returns an error if you try to add a user id for a
56
- # non-{::Google::Cloud::Dialogflow::V2::Participant::Role::END_USER END_USER} participant.
60
+ # non-{::Google::Cloud::Dialogflow::V2::Participant::Role::END_USER END_USER}
61
+ # participant.
57
62
  #
58
63
  # Dialogflow uses this user id for billing and measurement purposes. For
59
64
  # example, Dialogflow determines whether a user in one conversation returned
@@ -68,9 +73,10 @@ module Google
68
73
  # * The length of the user id must be <= 256 characters.
69
74
  # @!attribute [rw] documents_metadata_filters
70
75
  # @return [::Google::Protobuf::Map{::String => ::String}]
71
- # Optional. Key-value filters on the metadata of documents returned by article
72
- # suggestion. If specified, article suggestion only returns suggested
73
- # documents that match all filters in their {::Google::Cloud::Dialogflow::V2::Document#metadata Document.metadata}. Multiple
76
+ # Optional. Key-value filters on the metadata of documents returned by
77
+ # article suggestion. If specified, article suggestion only returns suggested
78
+ # documents that match all filters in their
79
+ # {::Google::Cloud::Dialogflow::V2::Document#metadata Document.metadata}. Multiple
74
80
  # values for a metadata key should be concatenated by comma. For example,
75
81
  # filters to match all documents that have 'US' or 'CA' in their market
76
82
  # metadata values and 'agent' in their user metadata values will be
@@ -151,7 +157,8 @@ module Google
151
157
  extend ::Google::Protobuf::MessageExts::ClassMethods
152
158
  end
153
159
 
154
- # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#create_participant Participants.CreateParticipant}.
160
+ # The request message for
161
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#create_participant Participants.CreateParticipant}.
155
162
  # @!attribute [rw] parent
156
163
  # @return [::String]
157
164
  # Required. Resource identifier of the conversation adding the participant.
@@ -165,7 +172,8 @@ module Google
165
172
  extend ::Google::Protobuf::MessageExts::ClassMethods
166
173
  end
167
174
 
168
- # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#get_participant Participants.GetParticipant}.
175
+ # The request message for
176
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#get_participant Participants.GetParticipant}.
169
177
  # @!attribute [rw] name
170
178
  # @return [::String]
171
179
  # Required. The name of the participant. Format:
@@ -176,7 +184,8 @@ module Google
176
184
  extend ::Google::Protobuf::MessageExts::ClassMethods
177
185
  end
178
186
 
179
- # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
187
+ # The request message for
188
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
180
189
  # @!attribute [rw] parent
181
190
  # @return [::String]
182
191
  # Required. The conversation to list all participants from.
@@ -194,7 +203,8 @@ module Google
194
203
  extend ::Google::Protobuf::MessageExts::ClassMethods
195
204
  end
196
205
 
197
- # The response message for {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
206
+ # The response message for
207
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
198
208
  # @!attribute [rw] participants
199
209
  # @return [::Array<::Google::Cloud::Dialogflow::V2::Participant>]
200
210
  # The list of participants. There is a maximum number of items
@@ -208,7 +218,8 @@ module Google
208
218
  extend ::Google::Protobuf::MessageExts::ClassMethods
209
219
  end
210
220
 
211
- # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#update_participant Participants.UpdateParticipant}.
221
+ # The request message for
222
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#update_participant Participants.UpdateParticipant}.
212
223
  # @!attribute [rw] participant
213
224
  # @return [::Google::Cloud::Dialogflow::V2::Participant]
214
225
  # Required. The participant to update.
@@ -220,7 +231,8 @@ module Google
220
231
  extend ::Google::Protobuf::MessageExts::ClassMethods
221
232
  end
222
233
 
223
- # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
234
+ # The request message for
235
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
224
236
  # @!attribute [rw] participant
225
237
  # @return [::String]
226
238
  # Required. The name of the participant this text comes from.
@@ -272,7 +284,8 @@ module Google
272
284
  extend ::Google::Protobuf::MessageExts::ClassMethods
273
285
  end
274
286
 
275
- # The response message for {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
287
+ # The response message for
288
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
276
289
  # @!attribute [rw] reply_text
277
290
  # @return [::String]
278
291
  # The output text content.
@@ -296,14 +309,17 @@ module Google
296
309
  # Only set if a Dialogflow automated agent has responded.
297
310
  # Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
298
311
  # and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
299
- # are always empty, use {::Google::Cloud::Dialogflow::V2::AnalyzeContentResponse#reply_audio reply_audio} instead.
312
+ # are always empty, use
313
+ # {::Google::Cloud::Dialogflow::V2::AnalyzeContentResponse#reply_audio reply_audio}
314
+ # instead.
300
315
  # @!attribute [rw] message
301
316
  # @return [::Google::Cloud::Dialogflow::V2::Message]
302
317
  # Message analyzed by CCAI.
303
318
  # @!attribute [rw] human_agent_suggestion_results
304
319
  # @return [::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>]
305
320
  # The suggestions for most recent human agent. The order is the same as
306
- # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs} of
321
+ # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs}
322
+ # of
307
323
  # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#human_agent_suggestion_config HumanAgentAssistantConfig.human_agent_suggestion_config}.
308
324
  #
309
325
  # Note that any failure of Agent Assist features will not lead to the overall
@@ -313,7 +329,8 @@ module Google
313
329
  # @!attribute [rw] end_user_suggestion_results
314
330
  # @return [::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>]
315
331
  # The suggestions for end user. The order is the same as
316
- # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs} of
332
+ # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs}
333
+ # of
317
334
  # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#end_user_suggestion_config HumanAgentAssistantConfig.end_user_suggestion_config}.
318
335
  #
319
336
  # Same as human_agent_suggestion_results, any failure of Agent Assist
@@ -329,33 +346,41 @@ module Google
329
346
  end
330
347
 
331
348
  # The top-level message sent by the client to the
332
- # {::Google::Cloud::Dialogflow::V2::Participants::Client#streaming_analyze_content Participants.StreamingAnalyzeContent} method.
349
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#streaming_analyze_content Participants.StreamingAnalyzeContent}
350
+ # method.
333
351
  #
334
352
  # Multiple request messages should be sent in order:
335
353
  #
336
354
  # 1. The first message must contain
337
355
  # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#participant participant},
338
- # [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] and optionally
339
- # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#query_params query_params}. If you want
340
- # to receive an audio response, it should also contain
356
+ # [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config]
357
+ # and optionally
358
+ # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#query_params query_params}.
359
+ # If you want to receive an audio response, it should also contain
341
360
  # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#reply_audio_config reply_audio_config}.
342
361
  # The message must not contain
343
362
  # [input][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.input].
344
363
  #
345
- # 2. If [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in the first message
346
- # was set to {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#audio_config audio_config},
364
+ # 2. If
365
+ # [config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in
366
+ # the first message
367
+ # was set to
368
+ # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#audio_config audio_config},
347
369
  # all subsequent messages must contain
348
- # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#input_audio input_audio} to continue
349
- # with Speech recognition.
350
- # However, note that:
370
+ # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#input_audio input_audio}
371
+ # to continue with Speech recognition. However, note that:
351
372
  #
352
373
  # * Dialogflow will bill you for the audio so far.
353
374
  # * Dialogflow discards all Speech recognition results in favor of the
354
375
  # text input.
355
376
  #
356
- # 3. If [StreamingAnalyzeContentRequest.config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config] in the first message was set
357
- # to {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#text_config StreamingAnalyzeContentRequest.text_config}, then the second message
358
- # must contain only {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#input_text input_text}.
377
+ # 3. If
378
+ # [StreamingAnalyzeContentRequest.config][google.cloud.dialogflow.v2.StreamingAnalyzeContentRequest.config]
379
+ # in the first message was set
380
+ # to
381
+ # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#text_config StreamingAnalyzeContentRequest.text_config},
382
+ # then the second message must contain only
383
+ # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentRequest#input_text input_text}.
359
384
  # Moreover, you must not send more than two messages.
360
385
  #
361
386
  # After you sent all input, you must half-close or abort the request stream.
@@ -466,19 +491,23 @@ module Google
466
491
  # Only set if a Dialogflow automated agent has responded.
467
492
  # Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
468
493
  # and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
469
- # are always empty, use {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentResponse#reply_audio reply_audio} instead.
494
+ # are always empty, use
495
+ # {::Google::Cloud::Dialogflow::V2::StreamingAnalyzeContentResponse#reply_audio reply_audio}
496
+ # instead.
470
497
  # @!attribute [rw] message
471
498
  # @return [::Google::Cloud::Dialogflow::V2::Message]
472
499
  # Message analyzed by CCAI.
473
500
  # @!attribute [rw] human_agent_suggestion_results
474
501
  # @return [::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>]
475
502
  # The suggestions for most recent human agent. The order is the same as
476
- # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs} of
503
+ # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs}
504
+ # of
477
505
  # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#human_agent_suggestion_config HumanAgentAssistantConfig.human_agent_suggestion_config}.
478
506
  # @!attribute [rw] end_user_suggestion_results
479
507
  # @return [::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>]
480
508
  # The suggestions for end user. The order is the same as
481
- # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs} of
509
+ # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs}
510
+ # of
482
511
  # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#end_user_suggestion_config HumanAgentAssistantConfig.end_user_suggestion_config}.
483
512
  # @!attribute [rw] dtmf_parameters
484
513
  # @return [::Google::Cloud::Dialogflow::V2::DtmfParameters]
@@ -488,7 +517,8 @@ module Google
488
517
  extend ::Google::Protobuf::MessageExts::ClassMethods
489
518
  end
490
519
 
491
- # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
520
+ # The request message for
521
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
492
522
  # @!attribute [rw] parent
493
523
  # @return [::String]
494
524
  # Required. The name of the participant to fetch suggestion for.
@@ -504,8 +534,9 @@ module Google
504
534
  # @!attribute [rw] context_size
505
535
  # @return [::Integer]
506
536
  # Optional. Max number of messages prior to and including
507
- # {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#latest_message latest_message} to use as context
508
- # when compiling the suggestion. By default 20 and at most 50.
537
+ # {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#latest_message latest_message}
538
+ # to use as context when compiling the suggestion. By default 20 and at
539
+ # most 50.
509
540
  # @!attribute [rw] assist_query_params
510
541
  # @return [::Google::Cloud::Dialogflow::V2::AssistQueryParameters]
511
542
  # Parameters for a human assist query.
@@ -514,7 +545,8 @@ module Google
514
545
  extend ::Google::Protobuf::MessageExts::ClassMethods
515
546
  end
516
547
 
517
- # The response message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
548
+ # The response message for
549
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
518
550
  # @!attribute [rw] article_answers
519
551
  # @return [::Array<::Google::Cloud::Dialogflow::V2::ArticleAnswer>]
520
552
  # Articles ordered by score in descending order.
@@ -528,16 +560,18 @@ module Google
528
560
  # @!attribute [rw] context_size
529
561
  # @return [::Integer]
530
562
  # Number of messages prior to and including
531
- # {::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse#latest_message latest_message} to compile the
532
- # suggestion. It may be smaller than the
533
- # {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#context_size SuggestArticlesRequest.context_size} field in the request if there
534
- # aren't that many messages in the conversation.
563
+ # {::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse#latest_message latest_message}
564
+ # to compile the suggestion. It may be smaller than the
565
+ # {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#context_size SuggestArticlesRequest.context_size}
566
+ # field in the request if there aren't that many messages in the
567
+ # conversation.
535
568
  class SuggestArticlesResponse
536
569
  include ::Google::Protobuf::MessageExts
537
570
  extend ::Google::Protobuf::MessageExts::ClassMethods
538
571
  end
539
572
 
540
- # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
573
+ # The request message for
574
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
541
575
  # @!attribute [rw] parent
542
576
  # @return [::String]
543
577
  # Required. The name of the participant to fetch suggestion for.
@@ -563,7 +597,8 @@ module Google
563
597
  extend ::Google::Protobuf::MessageExts::ClassMethods
564
598
  end
565
599
 
566
- # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
600
+ # The request message for
601
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
567
602
  # @!attribute [rw] faq_answers
568
603
  # @return [::Array<::Google::Cloud::Dialogflow::V2::FaqAnswer>]
569
604
  # Answers extracted from FAQ documents.
@@ -577,16 +612,18 @@ module Google
577
612
  # @!attribute [rw] context_size
578
613
  # @return [::Integer]
579
614
  # Number of messages prior to and including
580
- # {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse#latest_message latest_message} to compile the
581
- # suggestion. It may be smaller than the
582
- # {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersRequest#context_size SuggestFaqAnswersRequest.context_size} field in the request if there
583
- # aren't that many messages in the conversation.
615
+ # {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse#latest_message latest_message}
616
+ # to compile the suggestion. It may be smaller than the
617
+ # {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersRequest#context_size SuggestFaqAnswersRequest.context_size}
618
+ # field in the request if there aren't that many messages in the
619
+ # conversation.
584
620
  class SuggestFaqAnswersResponse
585
621
  include ::Google::Protobuf::MessageExts
586
622
  extend ::Google::Protobuf::MessageExts::ClassMethods
587
623
  end
588
624
 
589
- # The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_smart_replies Participants.SuggestSmartReplies}.
625
+ # The request message for
626
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_smart_replies Participants.SuggestSmartReplies}.
590
627
  # @!attribute [rw] parent
591
628
  # @return [::String]
592
629
  # Required. The name of the participant to fetch suggestion for.
@@ -614,7 +651,8 @@ module Google
614
651
  extend ::Google::Protobuf::MessageExts::ClassMethods
615
652
  end
616
653
 
617
- # The response message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_smart_replies Participants.SuggestSmartReplies}.
654
+ # The response message for
655
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_smart_replies Participants.SuggestSmartReplies}.
618
656
  # @!attribute [r] smart_reply_answers
619
657
  # @return [::Array<::Google::Cloud::Dialogflow::V2::SmartReplyAnswer>]
620
658
  # Output only. Multiple reply options provided by smart reply service. The
@@ -630,10 +668,11 @@ module Google
630
668
  # @!attribute [rw] context_size
631
669
  # @return [::Integer]
632
670
  # Number of messages prior to and including
633
- # {::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse#latest_message latest_message} to compile the
634
- # suggestion. It may be smaller than the
635
- # {::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesRequest#context_size SuggestSmartRepliesRequest.context_size} field in the request if there
636
- # aren't that many messages in the conversation.
671
+ # {::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse#latest_message latest_message}
672
+ # to compile the suggestion. It may be smaller than the
673
+ # {::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesRequest#context_size SuggestSmartRepliesRequest.context_size}
674
+ # field in the request if there aren't that many messages in the
675
+ # conversation.
637
676
  class SuggestSmartRepliesResponse
638
677
  include ::Google::Protobuf::MessageExts
639
678
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -655,7 +694,9 @@ module Google
655
694
  # Represents a response from an automated agent.
656
695
  # @!attribute [rw] detect_intent_response
657
696
  # @return [::Google::Cloud::Dialogflow::V2::DetectIntentResponse]
658
- # Response of the Dialogflow {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent Sessions.DetectIntent} call.
697
+ # Response of the Dialogflow
698
+ # {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent Sessions.DetectIntent}
699
+ # call.
659
700
  # @!attribute [rw] automated_agent_reply_type
660
701
  # @return [::Google::Cloud::Dialogflow::V2::AutomatedAgentReply::AutomatedAgentReplyType]
661
702
  # AutomatedAgentReply type.
@@ -664,6 +705,11 @@ module Google
664
705
  # Indicates whether the partial automated agent reply is interruptible when a
665
706
  # later reply message arrives. e.g. if the agent specified some music as
666
707
  # partial response, it can be cancelled.
708
+ # @!attribute [rw] cx_current_page
709
+ # @return [::String]
710
+ # The unique identifier of the current Dialogflow CX conversation page.
711
+ # Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent
712
+ # ID>/flows/<Flow ID>/pages/<Page ID>`.
667
713
  class AutomatedAgentReply
668
714
  include ::Google::Protobuf::MessageExts
669
715
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -784,8 +830,12 @@ module Google
784
830
  end
785
831
 
786
832
  # One response of different type of suggestion response which is used in
787
- # the response of {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent} and
788
- # {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}, as well as {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantEvent HumanAgentAssistantEvent}.
833
+ # the response of
834
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}
835
+ # and
836
+ # {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent},
837
+ # as well as
838
+ # {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantEvent HumanAgentAssistantEvent}.
789
839
  # @!attribute [rw] error
790
840
  # @return [::Google::Rpc::Status]
791
841
  # Error status if the request failed.
@@ -862,7 +912,8 @@ module Google
862
912
  # @return [::Google::Protobuf::Map{::String => ::String}]
863
913
  # Key-value filters on the metadata of documents returned by article
864
914
  # suggestion. If specified, article suggestion only returns suggested
865
- # documents that match all filters in their {::Google::Cloud::Dialogflow::V2::Document#metadata Document.metadata}. Multiple
915
+ # documents that match all filters in their
916
+ # {::Google::Cloud::Dialogflow::V2::Document#metadata Document.metadata}. Multiple
866
917
  # values for a metadata key should be concatenated by comma. For example,
867
918
  # filters to match all documents that have 'US' or 'CA' in their market
868
919
  # metadata values and 'agent' in their user metadata values will be