google-cloud-dialogflow-v2 0.12.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +1 -1
- data/AUTHENTICATION.md +7 -25
- data/README.md +1 -1
- data/lib/google/cloud/dialogflow/v2/agents/client.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/answer_record_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2/audio_config_pb.rb +0 -2
- data/lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb +92 -0
- data/lib/google/cloud/dialogflow/v2/conversation_dataset_services_pb.rb +81 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +849 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +767 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets/paths.rb +69 -0
- data/lib/google/cloud/dialogflow/v2/conversation_datasets.rb +53 -0
- data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2/conversation_model_pb.rb +205 -0
- data/lib/google/cloud/dialogflow/v2/conversation_model_services_pb.rb +98 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +1257 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/credentials.rb +52 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +767 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models/paths.rb +179 -0
- data/lib/google/cloud/dialogflow/v2/conversation_models.rb +50 -0
- data/lib/google/cloud/dialogflow/v2/conversation_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +31 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb +27 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +250 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +767 -0
- data/lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb +31 -9
- data/lib/google/cloud/dialogflow/v2/conversation_profiles.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/document_pb.rb +51 -0
- data/lib/google/cloud/dialogflow/v2/document_services_pb.rb +21 -0
- data/lib/google/cloud/dialogflow/v2/documents/client.rb +272 -2
- data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/gcs_pb.rb +8 -1
- data/lib/google/cloud/dialogflow/v2/human_agent_assistant_event_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2/intent_pb.rb +0 -2
- data/lib/google/cloud/dialogflow/v2/intents/client.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/knowledge_base_pb.rb +1 -0
- data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +28 -1
- data/lib/google/cloud/dialogflow/v2/participant_pb.rb +22 -2
- data/lib/google/cloud/dialogflow/v2/participant_services_pb.rb +3 -0
- data/lib/google/cloud/dialogflow/v2/participants/client.rb +115 -7
- data/lib/google/cloud/dialogflow/v2/validation_result_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
- data/lib/google/cloud/dialogflow/v2/webhook_pb.rb +0 -1
- data/lib/google/cloud/dialogflow/v2.rb +4 -0
- data/proto_docs/google/api/resource.rb +10 -71
- data/proto_docs/google/cloud/dialogflow/v2/audio_config.rb +4 -1
- data/proto_docs/google/cloud/dialogflow/v2/conversation_dataset.rb +211 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +522 -0
- data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +100 -2
- data/proto_docs/google/cloud/dialogflow/v2/document.rb +157 -0
- data/proto_docs/google/cloud/dialogflow/v2/gcs.rb +50 -0
- data/proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb +28 -0
- data/proto_docs/google/cloud/dialogflow/v2/participant.rb +123 -65
- metadata +21 -3
@@ -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
|
33
|
-
#
|
32
|
+
# Immutable. The role this participant plays in the conversation. This field must be set
|
33
|
+
# 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,10 +38,9 @@ module Google
|
|
38
38
|
# media stream to this participant. This field can be updated.
|
39
39
|
# @!attribute [rw] documents_metadata_filters
|
40
40
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
41
|
-
# Optional. Key-value filters on the metadata of documents returned by
|
42
|
-
#
|
43
|
-
# documents that match all filters in their
|
44
|
-
# {::Google::Cloud::Dialogflow::V2::Document#metadata Document.metadata}. Multiple
|
41
|
+
# Optional. Key-value filters on the metadata of documents returned by article
|
42
|
+
# suggestion. If specified, article suggestion only returns suggested
|
43
|
+
# documents that match all filters in their {::Google::Cloud::Dialogflow::V2::Document#metadata Document.metadata}. Multiple
|
45
44
|
# values for a metadata key should be concatenated by comma. For example,
|
46
45
|
# filters to match all documents that have 'US' or 'CA' in their market
|
47
46
|
# metadata values and 'agent' in their user metadata values will be
|
@@ -88,7 +87,7 @@ module Google
|
|
88
87
|
# Represents a message posted into a conversation.
|
89
88
|
# @!attribute [rw] name
|
90
89
|
# @return [::String]
|
91
|
-
# The unique identifier of the message.
|
90
|
+
# Optional. The unique identifier of the message.
|
92
91
|
# Format: `projects/<Project ID>/locations/<Location
|
93
92
|
# ID>/conversations/<Conversation ID>/messages/<Message ID>`.
|
94
93
|
# @!attribute [rw] content
|
@@ -107,17 +106,22 @@ module Google
|
|
107
106
|
# Output only. The role of the participant.
|
108
107
|
# @!attribute [r] create_time
|
109
108
|
# @return [::Google::Protobuf::Timestamp]
|
110
|
-
# Output only. The time when the message was created.
|
109
|
+
# Output only. The time when the message was created in Contact Center AI.
|
110
|
+
# @!attribute [rw] send_time
|
111
|
+
# @return [::Google::Protobuf::Timestamp]
|
112
|
+
# Optional. The time when the message was sent.
|
111
113
|
# @!attribute [r] message_annotation
|
112
114
|
# @return [::Google::Cloud::Dialogflow::V2::MessageAnnotation]
|
113
115
|
# Output only. The annotation for the message.
|
116
|
+
# @!attribute [r] sentiment_analysis
|
117
|
+
# @return [::Google::Cloud::Dialogflow::V2::SentimentAnalysisResult]
|
118
|
+
# Output only. The sentiment analysis result for the message.
|
114
119
|
class Message
|
115
120
|
include ::Google::Protobuf::MessageExts
|
116
121
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
117
122
|
end
|
118
123
|
|
119
|
-
# The request message for
|
120
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#create_participant Participants.CreateParticipant}.
|
124
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#create_participant Participants.CreateParticipant}.
|
121
125
|
# @!attribute [rw] parent
|
122
126
|
# @return [::String]
|
123
127
|
# Required. Resource identifier of the conversation adding the participant.
|
@@ -131,8 +135,7 @@ module Google
|
|
131
135
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
132
136
|
end
|
133
137
|
|
134
|
-
# The request message for
|
135
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#get_participant Participants.GetParticipant}.
|
138
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#get_participant Participants.GetParticipant}.
|
136
139
|
# @!attribute [rw] name
|
137
140
|
# @return [::String]
|
138
141
|
# Required. The name of the participant. Format:
|
@@ -143,8 +146,7 @@ module Google
|
|
143
146
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
144
147
|
end
|
145
148
|
|
146
|
-
# The request message for
|
147
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
|
149
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
|
148
150
|
# @!attribute [rw] parent
|
149
151
|
# @return [::String]
|
150
152
|
# Required. The conversation to list all participants from.
|
@@ -162,8 +164,7 @@ module Google
|
|
162
164
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
163
165
|
end
|
164
166
|
|
165
|
-
# The response message for
|
166
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
|
167
|
+
# The response message for {::Google::Cloud::Dialogflow::V2::Participants::Client#list_participants Participants.ListParticipants}.
|
167
168
|
# @!attribute [rw] participants
|
168
169
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::Participant>]
|
169
170
|
# The list of participants. There is a maximum number of items
|
@@ -177,8 +178,7 @@ module Google
|
|
177
178
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
178
179
|
end
|
179
180
|
|
180
|
-
# The request message for
|
181
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#update_participant Participants.UpdateParticipant}.
|
181
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#update_participant Participants.UpdateParticipant}.
|
182
182
|
# @!attribute [rw] participant
|
183
183
|
# @return [::Google::Cloud::Dialogflow::V2::Participant]
|
184
184
|
# Required. The participant to update.
|
@@ -190,8 +190,7 @@ module Google
|
|
190
190
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
191
191
|
end
|
192
192
|
|
193
|
-
# The request message for
|
194
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
|
193
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
|
195
194
|
# @!attribute [rw] participant
|
196
195
|
# @return [::String]
|
197
196
|
# Required. The name of the participant this text comes from.
|
@@ -235,8 +234,7 @@ module Google
|
|
235
234
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
236
235
|
end
|
237
236
|
|
238
|
-
# The response message for
|
239
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
|
237
|
+
# The response message for {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}.
|
240
238
|
# @!attribute [rw] reply_text
|
241
239
|
# @return [::String]
|
242
240
|
# The output text content.
|
@@ -260,23 +258,19 @@ module Google
|
|
260
258
|
# Only set if a Dialogflow automated agent has responded.
|
261
259
|
# Note that: [AutomatedAgentReply.detect_intent_response.output_audio][]
|
262
260
|
# and [AutomatedAgentReply.detect_intent_response.output_audio_config][]
|
263
|
-
# are always empty, use
|
264
|
-
# {::Google::Cloud::Dialogflow::V2::AnalyzeContentResponse#reply_audio reply_audio}
|
265
|
-
# instead.
|
261
|
+
# are always empty, use {::Google::Cloud::Dialogflow::V2::AnalyzeContentResponse#reply_audio reply_audio} instead.
|
266
262
|
# @!attribute [rw] message
|
267
263
|
# @return [::Google::Cloud::Dialogflow::V2::Message]
|
268
264
|
# Message analyzed by CCAI.
|
269
265
|
# @!attribute [rw] human_agent_suggestion_results
|
270
266
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>]
|
271
267
|
# The suggestions for most recent human agent. The order is the same as
|
272
|
-
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs}
|
273
|
-
# of
|
268
|
+
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs} of
|
274
269
|
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#human_agent_suggestion_config HumanAgentAssistantConfig.human_agent_suggestion_config}.
|
275
270
|
# @!attribute [rw] end_user_suggestion_results
|
276
271
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::SuggestionResult>]
|
277
272
|
# The suggestions for end user. The order is the same as
|
278
|
-
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs}
|
279
|
-
# of
|
273
|
+
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionConfig#feature_configs HumanAgentAssistantConfig.SuggestionConfig.feature_configs} of
|
280
274
|
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig#end_user_suggestion_config HumanAgentAssistantConfig.end_user_suggestion_config}.
|
281
275
|
# @!attribute [rw] dtmf_parameters
|
282
276
|
# @return [::Google::Cloud::Dialogflow::V2::DtmfParameters]
|
@@ -286,8 +280,7 @@ module Google
|
|
286
280
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
287
281
|
end
|
288
282
|
|
289
|
-
# The request message for
|
290
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
|
283
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
|
291
284
|
# @!attribute [rw] parent
|
292
285
|
# @return [::String]
|
293
286
|
# Required. The name of the participant to fetch suggestion for.
|
@@ -295,17 +288,16 @@ module Google
|
|
295
288
|
# ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
|
296
289
|
# @!attribute [rw] latest_message
|
297
290
|
# @return [::String]
|
298
|
-
# The name of the latest conversation message to compile suggestion
|
291
|
+
# Optional. The name of the latest conversation message to compile suggestion
|
299
292
|
# for. If empty, it will be the latest message of the conversation.
|
300
293
|
#
|
301
294
|
# Format: `projects/<Project ID>/locations/<Location
|
302
295
|
# ID>/conversations/<Conversation ID>/messages/<Message ID>`.
|
303
296
|
# @!attribute [rw] context_size
|
304
297
|
# @return [::Integer]
|
305
|
-
# Max number of messages prior to and including
|
306
|
-
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#latest_message latest_message}
|
307
|
-
#
|
308
|
-
# most 50.
|
298
|
+
# Optional. Max number of messages prior to and including
|
299
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#latest_message latest_message} to use as context
|
300
|
+
# when compiling the suggestion. By default 20 and at most 50.
|
309
301
|
# @!attribute [rw] assist_query_params
|
310
302
|
# @return [::Google::Cloud::Dialogflow::V2::AssistQueryParameters]
|
311
303
|
# Parameters for a human assist query.
|
@@ -314,8 +306,7 @@ module Google
|
|
314
306
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
315
307
|
end
|
316
308
|
|
317
|
-
# The response message for
|
318
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
|
309
|
+
# The response message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_articles Participants.SuggestArticles}.
|
319
310
|
# @!attribute [rw] article_answers
|
320
311
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::ArticleAnswer>]
|
321
312
|
# Articles ordered by score in descending order.
|
@@ -329,18 +320,16 @@ module Google
|
|
329
320
|
# @!attribute [rw] context_size
|
330
321
|
# @return [::Integer]
|
331
322
|
# Number of messages prior to and including
|
332
|
-
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse#latest_message latest_message}
|
333
|
-
#
|
334
|
-
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#context_size SuggestArticlesRequest.context_size}
|
335
|
-
#
|
336
|
-
# conversation.
|
323
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse#latest_message latest_message} to compile the
|
324
|
+
# suggestion. It may be smaller than the
|
325
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestArticlesRequest#context_size SuggestArticlesRequest.context_size} field in the request if there
|
326
|
+
# aren't that many messages in the conversation.
|
337
327
|
class SuggestArticlesResponse
|
338
328
|
include ::Google::Protobuf::MessageExts
|
339
329
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
340
330
|
end
|
341
331
|
|
342
|
-
# The request message for
|
343
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
|
332
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
|
344
333
|
# @!attribute [rw] parent
|
345
334
|
# @return [::String]
|
346
335
|
# Required. The name of the participant to fetch suggestion for.
|
@@ -348,14 +337,14 @@ module Google
|
|
348
337
|
# ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
|
349
338
|
# @!attribute [rw] latest_message
|
350
339
|
# @return [::String]
|
351
|
-
# The name of the latest conversation message to compile suggestion
|
340
|
+
# Optional. The name of the latest conversation message to compile suggestion
|
352
341
|
# for. If empty, it will be the latest message of the conversation.
|
353
342
|
#
|
354
343
|
# Format: `projects/<Project ID>/locations/<Location
|
355
344
|
# ID>/conversations/<Conversation ID>/messages/<Message ID>`.
|
356
345
|
# @!attribute [rw] context_size
|
357
346
|
# @return [::Integer]
|
358
|
-
# Max number of messages prior to and including
|
347
|
+
# Optional. Max number of messages prior to and including
|
359
348
|
# [latest_message] to use as context when compiling the
|
360
349
|
# suggestion. By default 20 and at most 50.
|
361
350
|
# @!attribute [rw] assist_query_params
|
@@ -366,8 +355,7 @@ module Google
|
|
366
355
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
367
356
|
end
|
368
357
|
|
369
|
-
# The request message for
|
370
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
|
358
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_faq_answers Participants.SuggestFaqAnswers}.
|
371
359
|
# @!attribute [rw] faq_answers
|
372
360
|
# @return [::Array<::Google::Cloud::Dialogflow::V2::FaqAnswer>]
|
373
361
|
# Answers extracted from FAQ documents.
|
@@ -381,16 +369,68 @@ module Google
|
|
381
369
|
# @!attribute [rw] context_size
|
382
370
|
# @return [::Integer]
|
383
371
|
# Number of messages prior to and including
|
384
|
-
# {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse#latest_message latest_message}
|
385
|
-
#
|
386
|
-
# {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersRequest#context_size SuggestFaqAnswersRequest.context_size}
|
387
|
-
#
|
388
|
-
# conversation.
|
372
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse#latest_message latest_message} to compile the
|
373
|
+
# suggestion. It may be smaller than the
|
374
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersRequest#context_size SuggestFaqAnswersRequest.context_size} field in the request if there
|
375
|
+
# aren't that many messages in the conversation.
|
389
376
|
class SuggestFaqAnswersResponse
|
390
377
|
include ::Google::Protobuf::MessageExts
|
391
378
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
392
379
|
end
|
393
380
|
|
381
|
+
# The request message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_smart_replies Participants.SuggestSmartReplies}.
|
382
|
+
# @!attribute [rw] parent
|
383
|
+
# @return [::String]
|
384
|
+
# Required. The name of the participant to fetch suggestion for.
|
385
|
+
# Format: `projects/<Project ID>/locations/<Location
|
386
|
+
# ID>/conversations/<Conversation ID>/participants/<Participant ID>`.
|
387
|
+
# @!attribute [rw] current_text_input
|
388
|
+
# @return [::Google::Cloud::Dialogflow::V2::TextInput]
|
389
|
+
# The current natural language text segment to compile suggestion
|
390
|
+
# for. This provides a way for user to get follow up smart reply suggestion
|
391
|
+
# after a smart reply selection, without sending a text message.
|
392
|
+
# @!attribute [rw] latest_message
|
393
|
+
# @return [::String]
|
394
|
+
# The name of the latest conversation message to compile suggestion
|
395
|
+
# for. If empty, it will be the latest message of the conversation.
|
396
|
+
#
|
397
|
+
# Format: `projects/<Project ID>/locations/<Location
|
398
|
+
# ID>/conversations/<Conversation ID>/messages/<Message ID>`.
|
399
|
+
# @!attribute [rw] context_size
|
400
|
+
# @return [::Integer]
|
401
|
+
# Max number of messages prior to and including
|
402
|
+
# [latest_message] to use as context when compiling the
|
403
|
+
# suggestion. By default 20 and at most 50.
|
404
|
+
class SuggestSmartRepliesRequest
|
405
|
+
include ::Google::Protobuf::MessageExts
|
406
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
407
|
+
end
|
408
|
+
|
409
|
+
# The response message for {::Google::Cloud::Dialogflow::V2::Participants::Client#suggest_smart_replies Participants.SuggestSmartReplies}.
|
410
|
+
# @!attribute [r] smart_reply_answers
|
411
|
+
# @return [::Array<::Google::Cloud::Dialogflow::V2::SmartReplyAnswer>]
|
412
|
+
# Output only. Multiple reply options provided by smart reply service. The
|
413
|
+
# order is based on the rank of the model prediction.
|
414
|
+
# The maximum number of the returned replies is set in SmartReplyConfig.
|
415
|
+
# @!attribute [rw] latest_message
|
416
|
+
# @return [::String]
|
417
|
+
# The name of the latest conversation message used to compile
|
418
|
+
# suggestion for.
|
419
|
+
#
|
420
|
+
# Format: `projects/<Project ID>/locations/<Location
|
421
|
+
# ID>/conversations/<Conversation ID>/messages/<Message ID>`.
|
422
|
+
# @!attribute [rw] context_size
|
423
|
+
# @return [::Integer]
|
424
|
+
# Number of messages prior to and including
|
425
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse#latest_message latest_message} to compile the
|
426
|
+
# suggestion. It may be smaller than the
|
427
|
+
# {::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesRequest#context_size SuggestSmartRepliesRequest.context_size} field in the request if there
|
428
|
+
# aren't that many messages in the conversation.
|
429
|
+
class SuggestSmartRepliesResponse
|
430
|
+
include ::Google::Protobuf::MessageExts
|
431
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
432
|
+
end
|
433
|
+
|
394
434
|
# Represents the natural language speech audio to be played to the end user.
|
395
435
|
# @!attribute [rw] config
|
396
436
|
# @return [::Google::Cloud::Dialogflow::V2::OutputAudioConfig]
|
@@ -407,9 +447,7 @@ module Google
|
|
407
447
|
# Represents a response from an automated agent.
|
408
448
|
# @!attribute [rw] detect_intent_response
|
409
449
|
# @return [::Google::Cloud::Dialogflow::V2::DetectIntentResponse]
|
410
|
-
# Response of the Dialogflow
|
411
|
-
# {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent Sessions.DetectIntent}
|
412
|
-
# call.
|
450
|
+
# Response of the Dialogflow {::Google::Cloud::Dialogflow::V2::Sessions::Client#detect_intent Sessions.DetectIntent} call.
|
413
451
|
# @!attribute [rw] automated_agent_reply_type
|
414
452
|
# @return [::Google::Cloud::Dialogflow::V2::AutomatedAgentReply::AutomatedAgentReplyType]
|
415
453
|
# AutomatedAgentReply type.
|
@@ -517,13 +555,29 @@ module Google
|
|
517
555
|
end
|
518
556
|
end
|
519
557
|
|
558
|
+
# Represents a smart reply answer.
|
559
|
+
# @!attribute [rw] reply
|
560
|
+
# @return [::String]
|
561
|
+
# The content of the reply.
|
562
|
+
# @!attribute [rw] confidence
|
563
|
+
# @return [::Float]
|
564
|
+
# Smart reply confidence.
|
565
|
+
# The system's confidence score that this reply is a good match for
|
566
|
+
# this conversation, as a value from 0.0 (completely uncertain) to 1.0
|
567
|
+
# (completely certain).
|
568
|
+
# @!attribute [rw] answer_record
|
569
|
+
# @return [::String]
|
570
|
+
# The name of answer record, in the format of
|
571
|
+
# "projects/<Project ID>/locations/<Location ID>/answerRecords/<Answer Record
|
572
|
+
# ID>"
|
573
|
+
class SmartReplyAnswer
|
574
|
+
include ::Google::Protobuf::MessageExts
|
575
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
576
|
+
end
|
577
|
+
|
520
578
|
# One response of different type of suggestion response which is used in
|
521
|
-
# the response of
|
522
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}
|
523
|
-
# and
|
524
|
-
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent},
|
525
|
-
# as well as
|
526
|
-
# {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantEvent HumanAgentAssistantEvent}.
|
579
|
+
# the response of {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent} and
|
580
|
+
# {::Google::Cloud::Dialogflow::V2::Participants::Client#analyze_content Participants.AnalyzeContent}, as well as {::Google::Cloud::Dialogflow::V2::HumanAgentAssistantEvent HumanAgentAssistantEvent}.
|
527
581
|
# @!attribute [rw] error
|
528
582
|
# @return [::Google::Rpc::Status]
|
529
583
|
# Error status if the request failed.
|
@@ -533,6 +587,9 @@ module Google
|
|
533
587
|
# @!attribute [rw] suggest_faq_answers_response
|
534
588
|
# @return [::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse]
|
535
589
|
# SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
|
590
|
+
# @!attribute [rw] suggest_smart_replies_response
|
591
|
+
# @return [::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse]
|
592
|
+
# SuggestSmartRepliesResponse if request is for SMART_REPLY.
|
536
593
|
class SuggestionResult
|
537
594
|
include ::Google::Protobuf::MessageExts
|
538
595
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -586,11 +643,11 @@ module Google
|
|
586
643
|
# @return [::Google::Protobuf::Map{::String => ::String}]
|
587
644
|
# Key-value filters on the metadata of documents returned by article
|
588
645
|
# suggestion. If specified, article suggestion only returns suggested
|
589
|
-
# documents that match all filters in their
|
590
|
-
# {::Google::Cloud::Dialogflow::V2::Document#metadata Document.metadata}. Multiple
|
646
|
+
# documents that match all filters in their {::Google::Cloud::Dialogflow::V2::Document#metadata Document.metadata}. Multiple
|
591
647
|
# values for a metadata key should be concatenated by comma. For example,
|
592
648
|
# filters to match all documents that have 'US' or 'CA' in their market
|
593
649
|
# metadata values and 'agent' in their user metadata values will be
|
650
|
+
# ```
|
594
651
|
# documents_metadata_filters {
|
595
652
|
# key: "market"
|
596
653
|
# value: "US,CA"
|
@@ -599,6 +656,7 @@ module Google
|
|
599
656
|
# key: "user"
|
600
657
|
# value: "agent"
|
601
658
|
# }
|
659
|
+
# ```
|
602
660
|
class AssistQueryParameters
|
603
661
|
include ::Google::Protobuf::MessageExts
|
604
662
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-dialogflow-v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.15.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -195,13 +195,28 @@ files:
|
|
195
195
|
- lib/google/cloud/dialogflow/v2/contexts/client.rb
|
196
196
|
- lib/google/cloud/dialogflow/v2/contexts/credentials.rb
|
197
197
|
- lib/google/cloud/dialogflow/v2/contexts/paths.rb
|
198
|
+
- lib/google/cloud/dialogflow/v2/conversation_dataset_pb.rb
|
199
|
+
- lib/google/cloud/dialogflow/v2/conversation_dataset_services_pb.rb
|
200
|
+
- lib/google/cloud/dialogflow/v2/conversation_datasets.rb
|
201
|
+
- lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb
|
202
|
+
- lib/google/cloud/dialogflow/v2/conversation_datasets/credentials.rb
|
203
|
+
- lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb
|
204
|
+
- lib/google/cloud/dialogflow/v2/conversation_datasets/paths.rb
|
198
205
|
- lib/google/cloud/dialogflow/v2/conversation_event_pb.rb
|
206
|
+
- lib/google/cloud/dialogflow/v2/conversation_model_pb.rb
|
207
|
+
- lib/google/cloud/dialogflow/v2/conversation_model_services_pb.rb
|
208
|
+
- lib/google/cloud/dialogflow/v2/conversation_models.rb
|
209
|
+
- lib/google/cloud/dialogflow/v2/conversation_models/client.rb
|
210
|
+
- lib/google/cloud/dialogflow/v2/conversation_models/credentials.rb
|
211
|
+
- lib/google/cloud/dialogflow/v2/conversation_models/operations.rb
|
212
|
+
- lib/google/cloud/dialogflow/v2/conversation_models/paths.rb
|
199
213
|
- lib/google/cloud/dialogflow/v2/conversation_pb.rb
|
200
214
|
- lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb
|
201
215
|
- lib/google/cloud/dialogflow/v2/conversation_profile_services_pb.rb
|
202
216
|
- lib/google/cloud/dialogflow/v2/conversation_profiles.rb
|
203
217
|
- lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb
|
204
218
|
- lib/google/cloud/dialogflow/v2/conversation_profiles/credentials.rb
|
219
|
+
- lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb
|
205
220
|
- lib/google/cloud/dialogflow/v2/conversation_profiles/paths.rb
|
206
221
|
- lib/google/cloud/dialogflow/v2/conversation_services_pb.rb
|
207
222
|
- lib/google/cloud/dialogflow/v2/conversations.rb
|
@@ -284,12 +299,15 @@ files:
|
|
284
299
|
- proto_docs/google/cloud/dialogflow/v2/audio_config.rb
|
285
300
|
- proto_docs/google/cloud/dialogflow/v2/context.rb
|
286
301
|
- proto_docs/google/cloud/dialogflow/v2/conversation.rb
|
302
|
+
- proto_docs/google/cloud/dialogflow/v2/conversation_dataset.rb
|
287
303
|
- proto_docs/google/cloud/dialogflow/v2/conversation_event.rb
|
304
|
+
- proto_docs/google/cloud/dialogflow/v2/conversation_model.rb
|
288
305
|
- proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb
|
289
306
|
- proto_docs/google/cloud/dialogflow/v2/document.rb
|
290
307
|
- proto_docs/google/cloud/dialogflow/v2/entity_type.rb
|
291
308
|
- proto_docs/google/cloud/dialogflow/v2/environment.rb
|
292
309
|
- proto_docs/google/cloud/dialogflow/v2/fulfillment.rb
|
310
|
+
- proto_docs/google/cloud/dialogflow/v2/gcs.rb
|
293
311
|
- proto_docs/google/cloud/dialogflow/v2/human_agent_assistant_event.rb
|
294
312
|
- proto_docs/google/cloud/dialogflow/v2/intent.rb
|
295
313
|
- proto_docs/google/cloud/dialogflow/v2/knowledge_base.rb
|
@@ -327,7 +345,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
327
345
|
- !ruby/object:Gem::Version
|
328
346
|
version: '0'
|
329
347
|
requirements: []
|
330
|
-
rubygems_version: 3.
|
348
|
+
rubygems_version: 3.3.5
|
331
349
|
signing_key:
|
332
350
|
specification_version: 4
|
333
351
|
summary: API Client library for the Dialogflow V2 API
|