google-cloud-dialogflow-v2 1.5.0 → 1.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (73) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/google/cloud/dialogflow/v2/agents/client.rb +15 -0
  4. data/lib/google/cloud/dialogflow/v2/agents/operations.rb +7 -0
  5. data/lib/google/cloud/dialogflow/v2/agents/rest/client.rb +15 -0
  6. data/lib/google/cloud/dialogflow/v2/agents/rest/operations.rb +7 -0
  7. data/lib/google/cloud/dialogflow/v2/answer_records/client.rb +7 -0
  8. data/lib/google/cloud/dialogflow/v2/answer_records/rest/client.rb +7 -0
  9. data/lib/google/cloud/dialogflow/v2/contexts/client.rb +7 -0
  10. data/lib/google/cloud/dialogflow/v2/contexts/rest/client.rb +7 -0
  11. data/lib/google/cloud/dialogflow/v2/conversation_datasets/client.rb +7 -0
  12. data/lib/google/cloud/dialogflow/v2/conversation_datasets/operations.rb +7 -0
  13. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/client.rb +7 -0
  14. data/lib/google/cloud/dialogflow/v2/conversation_datasets/rest/operations.rb +7 -0
  15. data/lib/google/cloud/dialogflow/v2/conversation_event_pb.rb +3 -1
  16. data/lib/google/cloud/dialogflow/v2/conversation_models/client.rb +7 -0
  17. data/lib/google/cloud/dialogflow/v2/conversation_models/operations.rb +7 -0
  18. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/client.rb +7 -0
  19. data/lib/google/cloud/dialogflow/v2/conversation_models/rest/operations.rb +7 -0
  20. data/lib/google/cloud/dialogflow/v2/conversation_profile_pb.rb +1 -1
  21. data/lib/google/cloud/dialogflow/v2/conversation_profiles/client.rb +7 -0
  22. data/lib/google/cloud/dialogflow/v2/conversation_profiles/operations.rb +7 -0
  23. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/client.rb +7 -0
  24. data/lib/google/cloud/dialogflow/v2/conversation_profiles/rest/operations.rb +7 -0
  25. data/lib/google/cloud/dialogflow/v2/conversations/client.rb +11 -0
  26. data/lib/google/cloud/dialogflow/v2/conversations/rest/client.rb +11 -0
  27. data/lib/google/cloud/dialogflow/v2/documents/client.rb +7 -0
  28. data/lib/google/cloud/dialogflow/v2/documents/operations.rb +7 -0
  29. data/lib/google/cloud/dialogflow/v2/documents/rest/client.rb +7 -0
  30. data/lib/google/cloud/dialogflow/v2/documents/rest/operations.rb +7 -0
  31. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/client.rb +7 -0
  32. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/operations.rb +7 -0
  33. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/client.rb +7 -0
  34. data/lib/google/cloud/dialogflow/v2/encryption_spec_service/rest/operations.rb +7 -0
  35. data/lib/google/cloud/dialogflow/v2/entity_types/client.rb +11 -0
  36. data/lib/google/cloud/dialogflow/v2/entity_types/operations.rb +7 -0
  37. data/lib/google/cloud/dialogflow/v2/entity_types/rest/client.rb +11 -0
  38. data/lib/google/cloud/dialogflow/v2/entity_types/rest/operations.rb +7 -0
  39. data/lib/google/cloud/dialogflow/v2/environments/client.rb +7 -0
  40. data/lib/google/cloud/dialogflow/v2/environments/rest/client.rb +7 -0
  41. data/lib/google/cloud/dialogflow/v2/fulfillments/client.rb +7 -0
  42. data/lib/google/cloud/dialogflow/v2/fulfillments/rest/client.rb +7 -0
  43. data/lib/google/cloud/dialogflow/v2/generators/client.rb +7 -0
  44. data/lib/google/cloud/dialogflow/v2/generators/rest/client.rb +7 -0
  45. data/lib/google/cloud/dialogflow/v2/intents/client.rb +11 -0
  46. data/lib/google/cloud/dialogflow/v2/intents/operations.rb +7 -0
  47. data/lib/google/cloud/dialogflow/v2/intents/rest/client.rb +11 -0
  48. data/lib/google/cloud/dialogflow/v2/intents/rest/operations.rb +7 -0
  49. data/lib/google/cloud/dialogflow/v2/knowledge_bases/client.rb +7 -0
  50. data/lib/google/cloud/dialogflow/v2/knowledge_bases/rest/client.rb +7 -0
  51. data/lib/google/cloud/dialogflow/v2/participants/client.rb +13 -0
  52. data/lib/google/cloud/dialogflow/v2/participants/rest/client.rb +13 -0
  53. data/lib/google/cloud/dialogflow/v2/session_entity_types/client.rb +7 -0
  54. data/lib/google/cloud/dialogflow/v2/session_entity_types/rest/client.rb +7 -0
  55. data/lib/google/cloud/dialogflow/v2/sessions/client.rb +7 -0
  56. data/lib/google/cloud/dialogflow/v2/sessions/rest/client.rb +7 -0
  57. data/lib/google/cloud/dialogflow/v2/version.rb +1 -1
  58. data/lib/google/cloud/dialogflow/v2/versions/client.rb +7 -0
  59. data/lib/google/cloud/dialogflow/v2/versions/rest/client.rb +7 -0
  60. data/proto_docs/google/cloud/dialogflow/v2/agent.rb +12 -0
  61. data/proto_docs/google/cloud/dialogflow/v2/answer_record.rb +6 -0
  62. data/proto_docs/google/cloud/dialogflow/v2/conversation.rb +4 -0
  63. data/proto_docs/google/cloud/dialogflow/v2/conversation_event.rb +13 -0
  64. data/proto_docs/google/cloud/dialogflow/v2/conversation_model.rb +8 -0
  65. data/proto_docs/google/cloud/dialogflow/v2/conversation_profile.rb +21 -0
  66. data/proto_docs/google/cloud/dialogflow/v2/document.rb +4 -0
  67. data/proto_docs/google/cloud/dialogflow/v2/entity_type.rb +4 -0
  68. data/proto_docs/google/cloud/dialogflow/v2/intent.rb +36 -0
  69. data/proto_docs/google/cloud/dialogflow/v2/participant.rb +34 -0
  70. data/proto_docs/google/cloud/dialogflow/v2/session.rb +6 -0
  71. data/proto_docs/google/longrunning/operations.rb +4 -0
  72. data/proto_docs/google/protobuf/struct.rb +12 -0
  73. metadata +6 -9
@@ -38,6 +38,13 @@ module Google
38
38
  # @!attribute [rw] new_message_payload
39
39
  # @return [::Google::Cloud::Dialogflow::V2::Message]
40
40
  # Payload of NEW_MESSAGE event.
41
+ #
42
+ # Note: The following fields are mutually exclusive: `new_message_payload`, `new_recognition_result_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
+ # @!attribute [rw] new_recognition_result_payload
44
+ # @return [::Google::Cloud::Dialogflow::V2::StreamingRecognitionResult]
45
+ # Payload of NEW_RECOGNITION_RESULT event.
46
+ #
47
+ # Note: The following fields are mutually exclusive: `new_recognition_result_payload`, `new_message_payload`. If a field in that set is populated, all other fields in the set will automatically be cleared.
41
48
  class ConversationEvent
42
49
  include ::Google::Protobuf::MessageExts
43
50
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -64,6 +71,12 @@ module Google
64
71
  # {::Google::Cloud::Dialogflow::V2::ConversationProfile#new_message_event_notification_config ConversationProfile.new_message_event_notification_config}
65
72
  NEW_MESSAGE = 5
66
73
 
74
+ # An existing conversation has received a new speech recognition result.
75
+ # This is mainly for delivering intermediate transcripts. The notification
76
+ # is configured in
77
+ # [ConversationProfile.new_recognition_event_notification_config][].
78
+ NEW_RECOGNITION_RESULT = 7
79
+
67
80
  # Unrecoverable error during a telephone call.
68
81
  #
69
82
  # In general non-recoverable errors only occur if something was
@@ -49,9 +49,13 @@ module Google
49
49
  # @!attribute [rw] article_suggestion_model_metadata
50
50
  # @return [::Google::Cloud::Dialogflow::V2::ArticleSuggestionModelMetadata]
51
51
  # Metadata for article suggestion models.
52
+ #
53
+ # Note: The following fields are mutually exclusive: `article_suggestion_model_metadata`, `smart_reply_model_metadata`. If a field in that set is populated, all other fields in the set will automatically be cleared.
52
54
  # @!attribute [rw] smart_reply_model_metadata
53
55
  # @return [::Google::Cloud::Dialogflow::V2::SmartReplyModelMetadata]
54
56
  # Metadata for smart reply models.
57
+ #
58
+ # Note: The following fields are mutually exclusive: `smart_reply_model_metadata`, `article_suggestion_model_metadata`. If a field in that set is populated, all other fields in the set will automatically be cleared.
55
59
  # @!attribute [r] satisfies_pzs
56
60
  # @return [::Boolean]
57
61
  # Output only. A read only boolean field reflecting Zone Separation
@@ -156,9 +160,13 @@ module Google
156
160
  # @!attribute [rw] smart_reply_config
157
161
  # @return [::Google::Cloud::Dialogflow::V2::EvaluationConfig::SmartReplyConfig]
158
162
  # Configuration for smart reply model evalution.
163
+ #
164
+ # Note: The following fields are mutually exclusive: `smart_reply_config`, `smart_compose_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
159
165
  # @!attribute [rw] smart_compose_config
160
166
  # @return [::Google::Cloud::Dialogflow::V2::EvaluationConfig::SmartComposeConfig]
161
167
  # Configuration for smart compose model evalution.
168
+ #
169
+ # Note: The following fields are mutually exclusive: `smart_compose_config`, `smart_reply_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
162
170
  class EvaluationConfig
163
171
  include ::Google::Protobuf::MessageExts
164
172
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -58,6 +58,17 @@ module Google
58
58
  # @return [::Google::Cloud::Dialogflow::V2::NotificationConfig]
59
59
  # Configuration for publishing new message events. Event will be sent in
60
60
  # format of {::Google::Cloud::Dialogflow::V2::ConversationEvent ConversationEvent}
61
+ # @!attribute [rw] new_recognition_result_notification_config
62
+ # @return [::Google::Cloud::Dialogflow::V2::NotificationConfig]
63
+ # Optional. Configuration for publishing transcription intermediate results.
64
+ # Event will be sent in format of
65
+ # {::Google::Cloud::Dialogflow::V2::ConversationEvent ConversationEvent}. If
66
+ # configured, the following information will be populated as
67
+ # {::Google::Cloud::Dialogflow::V2::ConversationEvent ConversationEvent} Pub/Sub
68
+ # message attributes:
69
+ # - "participant_id"
70
+ # - "participant_role"
71
+ # - "message_id"
61
72
  # @!attribute [rw] stt_config
62
73
  # @return [::Google::Cloud::Dialogflow::V2::SpeechToTextConfig]
63
74
  # Settings for speech transcription.
@@ -329,13 +340,19 @@ module Google
329
340
  # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::KnowledgeBaseQuerySource]
330
341
  # Query from knowledgebase. It is used by:
331
342
  # ARTICLE_SUGGESTION, FAQ.
343
+ #
344
+ # Note: The following fields are mutually exclusive: `knowledge_base_query_source`, `document_query_source`, `dialogflow_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
332
345
  # @!attribute [rw] document_query_source
333
346
  # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DocumentQuerySource]
334
347
  # Query from knowledge base document. It is used by:
335
348
  # SMART_REPLY, SMART_COMPOSE.
349
+ #
350
+ # Note: The following fields are mutually exclusive: `document_query_source`, `knowledge_base_query_source`, `dialogflow_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
336
351
  # @!attribute [rw] dialogflow_query_source
337
352
  # @return [::Google::Cloud::Dialogflow::V2::HumanAgentAssistantConfig::SuggestionQueryConfig::DialogflowQuerySource]
338
353
  # Query from Dialogflow agent. It is used by DIALOGFLOW_ASSIST.
354
+ #
355
+ # Note: The following fields are mutually exclusive: `dialogflow_query_source`, `knowledge_base_query_source`, `document_query_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
339
356
  # @!attribute [rw] max_results
340
357
  # @return [::Integer]
341
358
  # Maximum number of results to return. Currently, if unset, defaults to 10.
@@ -582,9 +599,13 @@ module Google
582
599
  # @!attribute [rw] live_person_config
583
600
  # @return [::Google::Cloud::Dialogflow::V2::HumanAgentHandoffConfig::LivePersonConfig]
584
601
  # Uses [LivePerson](https://www.liveperson.com).
602
+ #
603
+ # Note: The following fields are mutually exclusive: `live_person_config`, `salesforce_live_agent_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
585
604
  # @!attribute [rw] salesforce_live_agent_config
586
605
  # @return [::Google::Cloud::Dialogflow::V2::HumanAgentHandoffConfig::SalesforceLiveAgentConfig]
587
606
  # Uses Salesforce Live Agent.
607
+ #
608
+ # Note: The following fields are mutually exclusive: `salesforce_live_agent_config`, `live_person_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
588
609
  class HumanAgentHandoffConfig
589
610
  include ::Google::Protobuf::MessageExts
590
611
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -56,10 +56,14 @@ module Google
56
56
  # be indexed by Google Search. In particular, URLs for showing documents in
57
57
  # Google Cloud Storage (i.e. the URL in your browser) are not supported.
58
58
  # Instead use the `gs://` format URI described above.
59
+ #
60
+ # Note: The following fields are mutually exclusive: `content_uri`, `raw_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
59
61
  # @!attribute [rw] raw_content
60
62
  # @return [::String]
61
63
  # The raw content of the document. This field is only permitted for
62
64
  # EXTRACTIVE_QA and FAQ knowledge types.
65
+ #
66
+ # Note: The following fields are mutually exclusive: `raw_content`, `content_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
63
67
  # @!attribute [rw] enable_auto_reload
64
68
  # @return [::Boolean]
65
69
  # Optional. If true, we try to automatically reload the document every day
@@ -245,9 +245,13 @@ module Google
245
245
  # or create. The file format can either be a serialized proto (of
246
246
  # EntityBatch type) or a JSON object. Note: The URI must start with
247
247
  # "gs://".
248
+ #
249
+ # Note: The following fields are mutually exclusive: `entity_type_batch_uri`, `entity_type_batch_inline`. If a field in that set is populated, all other fields in the set will automatically be cleared.
248
250
  # @!attribute [rw] entity_type_batch_inline
249
251
  # @return [::Google::Cloud::Dialogflow::V2::EntityTypeBatch]
250
252
  # The collection of entity types to update or create.
253
+ #
254
+ # Note: The following fields are mutually exclusive: `entity_type_batch_inline`, `entity_type_batch_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
251
255
  # @!attribute [rw] language_code
252
256
  # @return [::String]
253
257
  # Optional. The language used to access language-specific data.
@@ -277,45 +277,73 @@ module Google
277
277
  # @!attribute [rw] text
278
278
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Text]
279
279
  # The text response.
280
+ #
281
+ # Note: The following fields are mutually exclusive: `text`, `image`, `quick_replies`, `card`, `payload`, `simple_responses`, `basic_card`, `suggestions`, `link_out_suggestion`, `list_select`, `carousel_select`, `browse_carousel_card`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
280
282
  # @!attribute [rw] image
281
283
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image]
282
284
  # The image response.
285
+ #
286
+ # Note: The following fields are mutually exclusive: `image`, `text`, `quick_replies`, `card`, `payload`, `simple_responses`, `basic_card`, `suggestions`, `link_out_suggestion`, `list_select`, `carousel_select`, `browse_carousel_card`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
283
287
  # @!attribute [rw] quick_replies
284
288
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::QuickReplies]
285
289
  # The quick replies response.
290
+ #
291
+ # Note: The following fields are mutually exclusive: `quick_replies`, `text`, `image`, `card`, `payload`, `simple_responses`, `basic_card`, `suggestions`, `link_out_suggestion`, `list_select`, `carousel_select`, `browse_carousel_card`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
286
292
  # @!attribute [rw] card
287
293
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Card]
288
294
  # The card response.
295
+ #
296
+ # Note: The following fields are mutually exclusive: `card`, `text`, `image`, `quick_replies`, `payload`, `simple_responses`, `basic_card`, `suggestions`, `link_out_suggestion`, `list_select`, `carousel_select`, `browse_carousel_card`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
289
297
  # @!attribute [rw] payload
290
298
  # @return [::Google::Protobuf::Struct]
291
299
  # A custom platform-specific response.
300
+ #
301
+ # Note: The following fields are mutually exclusive: `payload`, `text`, `image`, `quick_replies`, `card`, `simple_responses`, `basic_card`, `suggestions`, `link_out_suggestion`, `list_select`, `carousel_select`, `browse_carousel_card`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
292
302
  # @!attribute [rw] simple_responses
293
303
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::SimpleResponses]
294
304
  # The voice and text-only responses for Actions on Google.
305
+ #
306
+ # Note: The following fields are mutually exclusive: `simple_responses`, `text`, `image`, `quick_replies`, `card`, `payload`, `basic_card`, `suggestions`, `link_out_suggestion`, `list_select`, `carousel_select`, `browse_carousel_card`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
295
307
  # @!attribute [rw] basic_card
296
308
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BasicCard]
297
309
  # The basic card response for Actions on Google.
310
+ #
311
+ # Note: The following fields are mutually exclusive: `basic_card`, `text`, `image`, `quick_replies`, `card`, `payload`, `simple_responses`, `suggestions`, `link_out_suggestion`, `list_select`, `carousel_select`, `browse_carousel_card`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
298
312
  # @!attribute [rw] suggestions
299
313
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Suggestions]
300
314
  # The suggestion chips for Actions on Google.
315
+ #
316
+ # Note: The following fields are mutually exclusive: `suggestions`, `text`, `image`, `quick_replies`, `card`, `payload`, `simple_responses`, `basic_card`, `link_out_suggestion`, `list_select`, `carousel_select`, `browse_carousel_card`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
301
317
  # @!attribute [rw] link_out_suggestion
302
318
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::LinkOutSuggestion]
303
319
  # The link out suggestion chip for Actions on Google.
320
+ #
321
+ # Note: The following fields are mutually exclusive: `link_out_suggestion`, `text`, `image`, `quick_replies`, `card`, `payload`, `simple_responses`, `basic_card`, `suggestions`, `list_select`, `carousel_select`, `browse_carousel_card`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
304
322
  # @!attribute [rw] list_select
305
323
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::ListSelect]
306
324
  # The list card response for Actions on Google.
325
+ #
326
+ # Note: The following fields are mutually exclusive: `list_select`, `text`, `image`, `quick_replies`, `card`, `payload`, `simple_responses`, `basic_card`, `suggestions`, `link_out_suggestion`, `carousel_select`, `browse_carousel_card`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
307
327
  # @!attribute [rw] carousel_select
308
328
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::CarouselSelect]
309
329
  # The carousel card response for Actions on Google.
330
+ #
331
+ # Note: The following fields are mutually exclusive: `carousel_select`, `text`, `image`, `quick_replies`, `card`, `payload`, `simple_responses`, `basic_card`, `suggestions`, `link_out_suggestion`, `list_select`, `browse_carousel_card`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
310
332
  # @!attribute [rw] browse_carousel_card
311
333
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::BrowseCarouselCard]
312
334
  # Browse carousel card for Actions on Google.
335
+ #
336
+ # Note: The following fields are mutually exclusive: `browse_carousel_card`, `text`, `image`, `quick_replies`, `card`, `payload`, `simple_responses`, `basic_card`, `suggestions`, `link_out_suggestion`, `list_select`, `carousel_select`, `table_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
313
337
  # @!attribute [rw] table_card
314
338
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::TableCard]
315
339
  # Table card for Actions on Google.
340
+ #
341
+ # Note: The following fields are mutually exclusive: `table_card`, `text`, `image`, `quick_replies`, `card`, `payload`, `simple_responses`, `basic_card`, `suggestions`, `link_out_suggestion`, `list_select`, `carousel_select`, `browse_carousel_card`, `media_content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
316
342
  # @!attribute [rw] media_content
317
343
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::MediaContent]
318
344
  # The media content card for Actions on Google.
345
+ #
346
+ # Note: The following fields are mutually exclusive: `media_content`, `text`, `image`, `quick_replies`, `card`, `payload`, `simple_responses`, `basic_card`, `suggestions`, `link_out_suggestion`, `list_select`, `carousel_select`, `browse_carousel_card`, `table_card`. If a field in that set is populated, all other fields in the set will automatically be cleared.
319
347
  # @!attribute [rw] platform
320
348
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Platform]
321
349
  # Optional. The platform that this message is intended for.
@@ -589,9 +617,13 @@ module Google
589
617
  # @!attribute [rw] large_image
590
618
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image]
591
619
  # Optional. Image to display above media content.
620
+ #
621
+ # Note: The following fields are mutually exclusive: `large_image`, `icon`. If a field in that set is populated, all other fields in the set will automatically be cleared.
592
622
  # @!attribute [rw] icon
593
623
  # @return [::Google::Cloud::Dialogflow::V2::Intent::Message::Image]
594
624
  # Optional. Icon to display above media content.
625
+ #
626
+ # Note: The following fields are mutually exclusive: `icon`, `large_image`. If a field in that set is populated, all other fields in the set will automatically be cleared.
595
627
  # @!attribute [rw] content_url
596
628
  # @return [::String]
597
629
  # Required. Url where the media is stored.
@@ -982,9 +1014,13 @@ module Google
982
1014
  # The URI to a Google Cloud Storage file containing intents to update or
983
1015
  # create. The file format can either be a serialized proto (of IntentBatch
984
1016
  # type) or JSON object. Note: The URI must start with "gs://".
1017
+ #
1018
+ # Note: The following fields are mutually exclusive: `intent_batch_uri`, `intent_batch_inline`. If a field in that set is populated, all other fields in the set will automatically be cleared.
985
1019
  # @!attribute [rw] intent_batch_inline
986
1020
  # @return [::Google::Cloud::Dialogflow::V2::IntentBatch]
987
1021
  # The collection of intents to update or create.
1022
+ #
1023
+ # Note: The following fields are mutually exclusive: `intent_batch_inline`, `intent_batch_uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
988
1024
  # @!attribute [rw] language_code
989
1025
  # @return [::String]
990
1026
  # Optional. The language used to access language-specific data.
@@ -241,12 +241,18 @@ module Google
241
241
  # @!attribute [rw] text_input
242
242
  # @return [::Google::Cloud::Dialogflow::V2::TextInput]
243
243
  # The natural language text to be processed.
244
+ #
245
+ # Note: The following fields are mutually exclusive: `text_input`, `event_input`, `suggestion_input`. If a field in that set is populated, all other fields in the set will automatically be cleared.
244
246
  # @!attribute [rw] event_input
245
247
  # @return [::Google::Cloud::Dialogflow::V2::EventInput]
246
248
  # An input event to send to Dialogflow.
249
+ #
250
+ # Note: The following fields are mutually exclusive: `event_input`, `text_input`, `suggestion_input`. If a field in that set is populated, all other fields in the set will automatically be cleared.
247
251
  # @!attribute [rw] suggestion_input
248
252
  # @return [::Google::Cloud::Dialogflow::V2::SuggestionInput]
249
253
  # An input representing the selection of a suggestion.
254
+ #
255
+ # Note: The following fields are mutually exclusive: `suggestion_input`, `text_input`, `event_input`. If a field in that set is populated, all other fields in the set will automatically be cleared.
250
256
  # @!attribute [rw] reply_audio_config
251
257
  # @return [::Google::Cloud::Dialogflow::V2::OutputAudioConfig]
252
258
  # Speech synthesis configuration.
@@ -396,9 +402,13 @@ module Google
396
402
  # @!attribute [rw] audio_config
397
403
  # @return [::Google::Cloud::Dialogflow::V2::InputAudioConfig]
398
404
  # Instructs the speech recognizer how to process the speech audio.
405
+ #
406
+ # Note: The following fields are mutually exclusive: `audio_config`, `text_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
399
407
  # @!attribute [rw] text_config
400
408
  # @return [::Google::Cloud::Dialogflow::V2::InputTextConfig]
401
409
  # The natural language text to be processed.
410
+ #
411
+ # Note: The following fields are mutually exclusive: `text_config`, `audio_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
402
412
  # @!attribute [rw] reply_audio_config
403
413
  # @return [::Google::Cloud::Dialogflow::V2::OutputAudioConfig]
404
414
  # Speech synthesis configuration.
@@ -411,18 +421,24 @@ module Google
411
421
  # The input audio content to be recognized. Must be sent if `audio_config`
412
422
  # is set in the first message. The complete audio over all streaming
413
423
  # messages must not exceed 1 minute.
424
+ #
425
+ # Note: The following fields are mutually exclusive: `input_audio`, `input_text`, `input_dtmf`. If a field in that set is populated, all other fields in the set will automatically be cleared.
414
426
  # @!attribute [rw] input_text
415
427
  # @return [::String]
416
428
  # The UTF-8 encoded natural language text to be processed. Must be sent if
417
429
  # `text_config` is set in the first message. Text length must not exceed
418
430
  # 256 bytes for virtual agent interactions. The `input_text` field can be
419
431
  # only sent once, and would cancel the speech recognition if any ongoing.
432
+ #
433
+ # Note: The following fields are mutually exclusive: `input_text`, `input_audio`, `input_dtmf`. If a field in that set is populated, all other fields in the set will automatically be cleared.
420
434
  # @!attribute [rw] input_dtmf
421
435
  # @return [::Google::Cloud::Dialogflow::V2::TelephonyDtmfEvents]
422
436
  # The DTMF digits used to invoke intent and fill in parameter value.
423
437
  #
424
438
  # This input is ignored if the previous response indicated that DTMF input
425
439
  # is not accepted.
440
+ #
441
+ # Note: The following fields are mutually exclusive: `input_dtmf`, `input_audio`, `input_text`. If a field in that set is populated, all other fields in the set will automatically be cleared.
426
442
  # @!attribute [rw] query_params
427
443
  # @return [::Google::Cloud::Dialogflow::V2::QueryParameters]
428
444
  # Parameters for a Dialogflow virtual-agent query.
@@ -885,9 +901,13 @@ module Google
885
901
  # @!attribute [rw] query_result
886
902
  # @return [::Google::Cloud::Dialogflow::V2::QueryResult]
887
903
  # Result from v2 agent.
904
+ #
905
+ # Note: The following fields are mutually exclusive: `query_result`, `intent_suggestion`. If a field in that set is populated, all other fields in the set will automatically be cleared.
888
906
  # @!attribute [rw] intent_suggestion
889
907
  # @return [::Google::Cloud::Dialogflow::V2::IntentSuggestion]
890
908
  # An intent suggestion generated from conversation.
909
+ #
910
+ # Note: The following fields are mutually exclusive: `intent_suggestion`, `query_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
891
911
  # @!attribute [rw] answer_record
892
912
  # @return [::String]
893
913
  # The name of answer record, in the format of
@@ -908,18 +928,28 @@ module Google
908
928
  # @!attribute [rw] error
909
929
  # @return [::Google::Rpc::Status]
910
930
  # Error status if the request failed.
931
+ #
932
+ # Note: The following fields are mutually exclusive: `error`, `suggest_articles_response`, `suggest_knowledge_assist_response`, `suggest_faq_answers_response`, `suggest_smart_replies_response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
911
933
  # @!attribute [rw] suggest_articles_response
912
934
  # @return [::Google::Cloud::Dialogflow::V2::SuggestArticlesResponse]
913
935
  # SuggestArticlesResponse if request is for ARTICLE_SUGGESTION.
936
+ #
937
+ # Note: The following fields are mutually exclusive: `suggest_articles_response`, `error`, `suggest_knowledge_assist_response`, `suggest_faq_answers_response`, `suggest_smart_replies_response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
914
938
  # @!attribute [rw] suggest_knowledge_assist_response
915
939
  # @return [::Google::Cloud::Dialogflow::V2::SuggestKnowledgeAssistResponse]
916
940
  # SuggestKnowledgeAssistResponse if request is for KNOWLEDGE_ASSIST.
941
+ #
942
+ # Note: The following fields are mutually exclusive: `suggest_knowledge_assist_response`, `error`, `suggest_articles_response`, `suggest_faq_answers_response`, `suggest_smart_replies_response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
917
943
  # @!attribute [rw] suggest_faq_answers_response
918
944
  # @return [::Google::Cloud::Dialogflow::V2::SuggestFaqAnswersResponse]
919
945
  # SuggestFaqAnswersResponse if request is for FAQ_ANSWER.
946
+ #
947
+ # Note: The following fields are mutually exclusive: `suggest_faq_answers_response`, `error`, `suggest_articles_response`, `suggest_knowledge_assist_response`, `suggest_smart_replies_response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
920
948
  # @!attribute [rw] suggest_smart_replies_response
921
949
  # @return [::Google::Cloud::Dialogflow::V2::SuggestSmartRepliesResponse]
922
950
  # SuggestSmartRepliesResponse if request is for SMART_REPLY.
951
+ #
952
+ # Note: The following fields are mutually exclusive: `suggest_smart_replies_response`, `error`, `suggest_articles_response`, `suggest_knowledge_assist_response`, `suggest_faq_answers_response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
923
953
  class SuggestionResult
924
954
  include ::Google::Protobuf::MessageExts
925
955
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1114,9 +1144,13 @@ module Google
1114
1144
  # @!attribute [rw] faq_source
1115
1145
  # @return [::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::FaqSource]
1116
1146
  # Populated if the prediction came from FAQ.
1147
+ #
1148
+ # Note: The following fields are mutually exclusive: `faq_source`, `generative_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1117
1149
  # @!attribute [rw] generative_source
1118
1150
  # @return [::Google::Cloud::Dialogflow::V2::KnowledgeAssistAnswer::KnowledgeAnswer::GenerativeSource]
1119
1151
  # Populated if the prediction was Generative.
1152
+ #
1153
+ # Note: The following fields are mutually exclusive: `generative_source`, `faq_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1120
1154
  class KnowledgeAnswer
1121
1155
  include ::Google::Protobuf::MessageExts
1122
1156
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -188,13 +188,19 @@ module Google
188
188
  # @!attribute [rw] audio_config
189
189
  # @return [::Google::Cloud::Dialogflow::V2::InputAudioConfig]
190
190
  # Instructs the speech recognizer how to process the speech audio.
191
+ #
192
+ # Note: The following fields are mutually exclusive: `audio_config`, `text`, `event`. If a field in that set is populated, all other fields in the set will automatically be cleared.
191
193
  # @!attribute [rw] text
192
194
  # @return [::Google::Cloud::Dialogflow::V2::TextInput]
193
195
  # The natural language text to be processed. Text length must not exceed
194
196
  # 256 character for virtual agent interactions.
197
+ #
198
+ # Note: The following fields are mutually exclusive: `text`, `audio_config`, `event`. If a field in that set is populated, all other fields in the set will automatically be cleared.
195
199
  # @!attribute [rw] event
196
200
  # @return [::Google::Cloud::Dialogflow::V2::EventInput]
197
201
  # The event to be processed.
202
+ #
203
+ # Note: The following fields are mutually exclusive: `event`, `audio_config`, `text`. If a field in that set is populated, all other fields in the set will automatically be cleared.
198
204
  class QueryInput
199
205
  include ::Google::Protobuf::MessageExts
200
206
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -53,21 +53,33 @@ module Google
53
53
  # @!attribute [rw] null_value
54
54
  # @return [::Google::Protobuf::NullValue]
55
55
  # Represents a null value.
56
+ #
57
+ # Note: The following fields are mutually exclusive: `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
56
58
  # @!attribute [rw] number_value
57
59
  # @return [::Float]
58
60
  # Represents a double value.
61
+ #
62
+ # Note: The following fields are mutually exclusive: `number_value`, `null_value`, `string_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
59
63
  # @!attribute [rw] string_value
60
64
  # @return [::String]
61
65
  # Represents a string value.
66
+ #
67
+ # Note: The following fields are mutually exclusive: `string_value`, `null_value`, `number_value`, `bool_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
62
68
  # @!attribute [rw] bool_value
63
69
  # @return [::Boolean]
64
70
  # Represents a boolean value.
71
+ #
72
+ # Note: The following fields are mutually exclusive: `bool_value`, `null_value`, `number_value`, `string_value`, `struct_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
65
73
  # @!attribute [rw] struct_value
66
74
  # @return [::Google::Protobuf::Struct]
67
75
  # Represents a structured value.
76
+ #
77
+ # Note: The following fields are mutually exclusive: `struct_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `list_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
68
78
  # @!attribute [rw] list_value
69
79
  # @return [::Google::Protobuf::ListValue]
70
80
  # Represents a repeated `Value`.
81
+ #
82
+ # Note: The following fields are mutually exclusive: `list_value`, `null_value`, `number_value`, `string_value`, `bool_value`, `struct_value`. If a field in that set is populated, all other fields in the set will automatically be cleared.
71
83
  class Value
72
84
  include ::Google::Protobuf::MessageExts
73
85
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-dialogflow-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-12-10 00:00:00.000000000 Z
10
+ date: 2025-01-29 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -322,7 +321,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
322
321
  licenses:
323
322
  - Apache-2.0
324
323
  metadata: {}
325
- post_install_message:
326
324
  rdoc_options: []
327
325
  require_paths:
328
326
  - lib
@@ -330,15 +328,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
330
328
  requirements:
331
329
  - - ">="
332
330
  - !ruby/object:Gem::Version
333
- version: '2.7'
331
+ version: '3.0'
334
332
  required_rubygems_version: !ruby/object:Gem::Requirement
335
333
  requirements:
336
334
  - - ">="
337
335
  - !ruby/object:Gem::Version
338
336
  version: '0'
339
337
  requirements: []
340
- rubygems_version: 3.5.23
341
- signing_key:
338
+ rubygems_version: 3.6.2
342
339
  specification_version: 4
343
340
  summary: Builds conversational interfaces (for example, chatbots, and voice-powered
344
341
  apps and devices).