google-apis-dialogflow_v3beta1 0.4.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecd1e4bc8abe8190417a4ac6ab9f1d4683ec30324e0cb3a29d0a3155768771d5
4
- data.tar.gz: f2afed3206b008a79d2720231bd9de4e31c41ab0b3facb6097d39525d0853d6c
3
+ metadata.gz: 4ca6dc11c50fcdf30617fbe4dad9a86dcc5fcd935ecf3d258cd86ab4cd5cc41c
4
+ data.tar.gz: dcd71a688d4dbfd9f9611ee14564e623f4c123f9611cbfdeb82d9355057c3bd1
5
5
  SHA512:
6
- metadata.gz: 1f47b524f9d331cce659ca3d4a20aaf001f53898b8b55bb299c02fa5656d670b5f71af537c478e0d7dcc9b2ae2c597e3545ba8325a6e3fc95deb1185c826f76a
7
- data.tar.gz: 6af32fef2d92ab037078e1de07cc66c487a13f8be34b905fd3945700d7201543d34a63f648e7cc1eb1af30e7da0b25e547eb2054a53a0e5a75896fa84f116df5
6
+ metadata.gz: 51a3fa8fc17d4ef572ab250519122e0ada854eb109d1c5b892617a378d8115280ac8ccc582fc526e9236da016db4d4f73c506d573e32d167499b003992953175
7
+ data.tar.gz: 4e99b0eb83b98f886e14427429fb106a2de11504d318499db5bcf22a46ec69ba89fc0f3a53f6664d1982df8dd8b714896174a13cf4986dd9f35dfea3435e2dce
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-dialogflow_v3beta1
2
2
 
3
+ ### v0.9.0 (2021-03-23)
4
+
5
+ * Regenerated from discovery document revision 20210320
6
+
7
+ ### v0.8.0 (2021-03-16)
8
+
9
+ * Regenerated from discovery document revision 20210314
10
+
11
+ ### v0.7.0 (2021-03-09)
12
+
13
+ * Regenerated from discovery document revision 20210307
14
+ * Regenerated using generator version 0.2.0
15
+
16
+ ### v0.6.0 (2021-03-04)
17
+
18
+ * Unspecified changes
19
+
20
+ ### v0.5.0 (2021-02-24)
21
+
22
+ * Regenerated from discovery document revision 20210222
23
+
3
24
  ### v0.4.0 (2021-02-17)
4
25
 
5
26
  * Regenerated from discovery document revision 20210213
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V3beta1'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
 
36
36
  # View, manage and query your Dialogflow agents
@@ -1371,7 +1371,7 @@ module Google
1371
1371
  attr_accessor :intent
1372
1372
 
1373
1373
  # Required. The language of the input. See [Language Support](https://cloud.
1374
- # google.com/dialogflow/docs/reference/language) for a list of the currently
1374
+ # google.com/dialogflow/cx/docs/reference/language) for a list of the currently
1375
1375
  # supported language codes. Note that queries in the same session do not
1376
1376
  # necessarily need to specify the same language.
1377
1377
  # Corresponds to the JSON property `languageCode`
@@ -2128,7 +2128,8 @@ module Google
2128
2128
  end
2129
2129
  end
2130
2130
 
2131
- # The request message for a webhook call.
2131
+ # The request message for a webhook call. The request is sent as a JSON object
2132
+ # and the field names will be presented in camel cases.
2132
2133
  class GoogleCloudDialogflowCxV3WebhookRequest
2133
2134
  include Google::Apis::Core::Hashable
2134
2135
 
@@ -2396,7 +2397,7 @@ module Google
2396
2397
  attr_accessor :avatar_uri
2397
2398
 
2398
2399
  # Immutable. The default language of the agent as a language tag. See [Language
2399
- # Support](https://cloud.google.com/dialogflow/docs/reference/language) for a
2400
+ # Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a
2400
2401
  # list of the currently supported language codes. This field cannot be set by
2401
2402
  # the Agents.UpdateAgent method.
2402
2403
  # Corresponds to the JSON property `defaultLanguageCode`
@@ -3278,7 +3279,9 @@ module Google
3278
3279
  # @return [String]
3279
3280
  attr_accessor :end_time
3280
3281
 
3281
- # Maximum number of days to run the experiment.
3282
+ # Maximum number of days to run the experiment. If auto-rollout is not enabled,
3283
+ # default value and maximum will be 30 days. If auto-rollout is enabled, default
3284
+ # value and maximum will be 6 days.
3282
3285
  # Corresponds to the JSON property `experimentLength`
3283
3286
  # @return [String]
3284
3287
  attr_accessor :experiment_length
@@ -5149,7 +5152,7 @@ module Google
5149
5152
  attr_accessor :text
5150
5153
 
5151
5154
  # If natural language speech audio was provided as input, this field will
5152
- # contain the trascript for the audio.
5155
+ # contain the transcript for the audio.
5153
5156
  # Corresponds to the JSON property `transcript`
5154
5157
  # @return [String]
5155
5158
  attr_accessor :transcript
@@ -5161,7 +5164,7 @@ module Google
5161
5164
  attr_accessor :trigger_event
5162
5165
 
5163
5166
  # If an intent was provided as input, this field will contain a copy of the
5164
- # intent identifier.
5167
+ # intent identifier. Format: `projects//locations//agents//intents/`.
5165
5168
  # Corresponds to the JSON property `triggerIntent`
5166
5169
  # @return [String]
5167
5170
  attr_accessor :trigger_intent
@@ -5476,7 +5479,7 @@ module Google
5476
5479
  attr_accessor :intent
5477
5480
 
5478
5481
  # Required. The language of the input. See [Language Support](https://cloud.
5479
- # google.com/dialogflow/docs/reference/language) for a list of the currently
5482
+ # google.com/dialogflow/cx/docs/reference/language) for a list of the currently
5480
5483
  # supported language codes. Note that queries in the same session do not
5481
5484
  # necessarily need to specify the same language.
5482
5485
  # Corresponds to the JSON property `languageCode`
@@ -5514,6 +5517,12 @@ module Google
5514
5517
  attr_accessor :analyze_query_text_sentiment
5515
5518
  alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment
5516
5519
 
5520
+ # Whether to disable webhook calls for this request.
5521
+ # Corresponds to the JSON property `disableWebhook`
5522
+ # @return [Boolean]
5523
+ attr_accessor :disable_webhook
5524
+ alias_method :disable_webhook?, :disable_webhook
5525
+
5517
5526
  # An object that represents a latitude/longitude pair. This is expressed as a
5518
5527
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
5519
5528
  # specified otherwise, this must conform to the WGS84 standard. Values must be
@@ -5575,6 +5584,7 @@ module Google
5575
5584
  # Update properties of this object
5576
5585
  def update!(**args)
5577
5586
  @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
5587
+ @disable_webhook = args[:disable_webhook] if args.key?(:disable_webhook)
5578
5588
  @geo_location = args[:geo_location] if args.key?(:geo_location)
5579
5589
  @parameters = args[:parameters] if args.key?(:parameters)
5580
5590
  @payload = args[:payload] if args.key?(:payload)
@@ -5630,7 +5640,7 @@ module Google
5630
5640
  attr_accessor :intent_detection_confidence
5631
5641
 
5632
5642
  # The language that was triggered during intent detection. See [Language Support]
5633
- # (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
5643
+ # (https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of
5634
5644
  # the currently supported language codes.
5635
5645
  # Corresponds to the JSON property `languageCode`
5636
5646
  # @return [String]
@@ -5674,7 +5684,7 @@ module Google
5674
5684
  attr_accessor :text
5675
5685
 
5676
5686
  # If natural language speech audio was provided as input, this field will
5677
- # contain the trascript for the audio.
5687
+ # contain the transcript for the audio.
5678
5688
  # Corresponds to the JSON property `transcript`
5679
5689
  # @return [String]
5680
5690
  attr_accessor :transcript
@@ -5686,7 +5696,7 @@ module Google
5686
5696
  attr_accessor :trigger_event
5687
5697
 
5688
5698
  # If an intent was provided as input, this field will contain a copy of the
5689
- # intent identifier.
5699
+ # intent identifier. Format: `projects//locations//agents//intents/`.
5690
5700
  # Corresponds to the JSON property `triggerIntent`
5691
5701
  # @return [String]
5692
5702
  attr_accessor :trigger_intent
@@ -6093,6 +6103,11 @@ module Google
6093
6103
  # @return [String]
6094
6104
  attr_accessor :agent_uri
6095
6105
 
6106
+ # Agent restore mode. If not specified, `KEEP` is assumed.
6107
+ # Corresponds to the JSON property `restoreOption`
6108
+ # @return [String]
6109
+ attr_accessor :restore_option
6110
+
6096
6111
  def initialize(**args)
6097
6112
  update!(**args)
6098
6113
  end
@@ -6101,6 +6116,7 @@ module Google
6101
6116
  def update!(**args)
6102
6117
  @agent_content = args[:agent_content] if args.key?(:agent_content)
6103
6118
  @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
6119
+ @restore_option = args[:restore_option] if args.key?(:restore_option)
6104
6120
  end
6105
6121
  end
6106
6122
 
@@ -7378,7 +7394,8 @@ module Google
7378
7394
  end
7379
7395
  end
7380
7396
 
7381
- # The request message for a webhook call.
7397
+ # The request message for a webhook call. The request is sent as a JSON object
7398
+ # and the field names will be presented in camel cases.
7382
7399
  class GoogleCloudDialogflowCxV3beta1WebhookRequest
7383
7400
  include Google::Apis::Core::Hashable
7384
7401
 
@@ -7668,6 +7685,59 @@ module Google
7668
7685
  end
7669
7686
  end
7670
7687
 
7688
+ # Represents article answer.
7689
+ class GoogleCloudDialogflowV2ArticleAnswer
7690
+ include Google::Apis::Core::Hashable
7691
+
7692
+ # The name of answer record, in the format of "projects//locations//
7693
+ # answerRecords/"
7694
+ # Corresponds to the JSON property `answerRecord`
7695
+ # @return [String]
7696
+ attr_accessor :answer_record
7697
+
7698
+ # Article match confidence. The system's confidence score that this article is a
7699
+ # good match for this conversation, as a value from 0.0 (completely uncertain)
7700
+ # to 1.0 (completely certain).
7701
+ # Corresponds to the JSON property `confidence`
7702
+ # @return [Float]
7703
+ attr_accessor :confidence
7704
+
7705
+ # A map that contains metadata about the answer and the document from which it
7706
+ # originates.
7707
+ # Corresponds to the JSON property `metadata`
7708
+ # @return [Hash<String,String>]
7709
+ attr_accessor :metadata
7710
+
7711
+ # Article snippets.
7712
+ # Corresponds to the JSON property `snippets`
7713
+ # @return [Array<String>]
7714
+ attr_accessor :snippets
7715
+
7716
+ # The article title.
7717
+ # Corresponds to the JSON property `title`
7718
+ # @return [String]
7719
+ attr_accessor :title
7720
+
7721
+ # The article URI.
7722
+ # Corresponds to the JSON property `uri`
7723
+ # @return [String]
7724
+ attr_accessor :uri
7725
+
7726
+ def initialize(**args)
7727
+ update!(**args)
7728
+ end
7729
+
7730
+ # Update properties of this object
7731
+ def update!(**args)
7732
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
7733
+ @confidence = args[:confidence] if args.key?(:confidence)
7734
+ @metadata = args[:metadata] if args.key?(:metadata)
7735
+ @snippets = args[:snippets] if args.key?(:snippets)
7736
+ @title = args[:title] if args.key?(:title)
7737
+ @uri = args[:uri] if args.key?(:uri)
7738
+ end
7739
+ end
7740
+
7671
7741
  # The response message for EntityTypes.BatchUpdateEntityTypes.
7672
7742
  class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
7673
7743
  include Google::Apis::Core::Hashable
@@ -7975,6 +8045,94 @@ module Google
7975
8045
  end
7976
8046
  end
7977
8047
 
8048
+ # Represents answer from "frequently asked questions".
8049
+ class GoogleCloudDialogflowV2FaqAnswer
8050
+ include Google::Apis::Core::Hashable
8051
+
8052
+ # The piece of text from the `source` knowledge base document.
8053
+ # Corresponds to the JSON property `answer`
8054
+ # @return [String]
8055
+ attr_accessor :answer
8056
+
8057
+ # The name of answer record, in the format of "projects//locations//
8058
+ # answerRecords/"
8059
+ # Corresponds to the JSON property `answerRecord`
8060
+ # @return [String]
8061
+ attr_accessor :answer_record
8062
+
8063
+ # The system's confidence score that this Knowledge answer is a good match for
8064
+ # this conversational query, range from 0.0 (completely uncertain) to 1.0 (
8065
+ # completely certain).
8066
+ # Corresponds to the JSON property `confidence`
8067
+ # @return [Float]
8068
+ attr_accessor :confidence
8069
+
8070
+ # A map that contains metadata about the answer and the document from which it
8071
+ # originates.
8072
+ # Corresponds to the JSON property `metadata`
8073
+ # @return [Hash<String,String>]
8074
+ attr_accessor :metadata
8075
+
8076
+ # The corresponding FAQ question.
8077
+ # Corresponds to the JSON property `question`
8078
+ # @return [String]
8079
+ attr_accessor :question
8080
+
8081
+ # Indicates which Knowledge Document this answer was extracted from. Format: `
8082
+ # projects//locations//agent/knowledgeBases//documents/`.
8083
+ # Corresponds to the JSON property `source`
8084
+ # @return [String]
8085
+ attr_accessor :source
8086
+
8087
+ def initialize(**args)
8088
+ update!(**args)
8089
+ end
8090
+
8091
+ # Update properties of this object
8092
+ def update!(**args)
8093
+ @answer = args[:answer] if args.key?(:answer)
8094
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
8095
+ @confidence = args[:confidence] if args.key?(:confidence)
8096
+ @metadata = args[:metadata] if args.key?(:metadata)
8097
+ @question = args[:question] if args.key?(:question)
8098
+ @source = args[:source] if args.key?(:source)
8099
+ end
8100
+ end
8101
+
8102
+ # Represents a notification sent to Cloud Pub/Sub subscribers for human agent
8103
+ # assistant events in a specific conversation.
8104
+ class GoogleCloudDialogflowV2HumanAgentAssistantEvent
8105
+ include Google::Apis::Core::Hashable
8106
+
8107
+ # The conversation this notification refers to. Format: `projects//conversations/
8108
+ # `.
8109
+ # Corresponds to the JSON property `conversation`
8110
+ # @return [String]
8111
+ attr_accessor :conversation
8112
+
8113
+ # The participant that the suggestion is compiled for. Format: `projects//
8114
+ # conversations//participants/`. It will not be set in legacy workflow.
8115
+ # Corresponds to the JSON property `participant`
8116
+ # @return [String]
8117
+ attr_accessor :participant
8118
+
8119
+ # The suggestion results payload that this notification refers to.
8120
+ # Corresponds to the JSON property `suggestionResults`
8121
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SuggestionResult>]
8122
+ attr_accessor :suggestion_results
8123
+
8124
+ def initialize(**args)
8125
+ update!(**args)
8126
+ end
8127
+
8128
+ # Update properties of this object
8129
+ def update!(**args)
8130
+ @conversation = args[:conversation] if args.key?(:conversation)
8131
+ @participant = args[:participant] if args.key?(:participant)
8132
+ @suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
8133
+ end
8134
+ end
8135
+
7978
8136
  # An intent categorizes an end-user's intention for one conversation turn. For
7979
8137
  # each agent, you define many intents, where your combined intents can handle a
7980
8138
  # complete conversation. When an end-user writes or says something, referred to
@@ -8002,6 +8160,14 @@ module Google
8002
8160
  # @return [String]
8003
8161
  attr_accessor :display_name
8004
8162
 
8163
+ # Optional. Indicates that this intent ends an interaction. Some integrations (e.
8164
+ # g., Actions on Google or Dialogflow phone gateway) use this information to
8165
+ # close interaction with an end user. Default is false.
8166
+ # Corresponds to the JSON property `endInteraction`
8167
+ # @return [Boolean]
8168
+ attr_accessor :end_interaction
8169
+ alias_method :end_interaction?, :end_interaction
8170
+
8005
8171
  # Optional. The collection of event names that trigger the intent. If the
8006
8172
  # collection of input contexts is not empty, all of the contexts must be present
8007
8173
  # in the active user session for an event to trigger this intent. Event names
@@ -8028,6 +8194,14 @@ module Google
8028
8194
  attr_accessor :is_fallback
8029
8195
  alias_method :is_fallback?, :is_fallback
8030
8196
 
8197
+ # Optional. Indicates that a live agent should be brought in to handle the
8198
+ # interaction with the user. In most cases, when you set this flag to true, you
8199
+ # would also want to set end_interaction to true as well. Default is false.
8200
+ # Corresponds to the JSON property `liveAgentHandoff`
8201
+ # @return [Boolean]
8202
+ attr_accessor :live_agent_handoff
8203
+ alias_method :live_agent_handoff?, :live_agent_handoff
8204
+
8031
8205
  # Optional. The collection of rich messages corresponding to the `Response`
8032
8206
  # field in the Dialogflow console.
8033
8207
  # Corresponds to the JSON property `messages`
@@ -8114,10 +8288,12 @@ module Google
8114
8288
  @action = args[:action] if args.key?(:action)
8115
8289
  @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms)
8116
8290
  @display_name = args[:display_name] if args.key?(:display_name)
8291
+ @end_interaction = args[:end_interaction] if args.key?(:end_interaction)
8117
8292
  @events = args[:events] if args.key?(:events)
8118
8293
  @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
8119
8294
  @input_context_names = args[:input_context_names] if args.key?(:input_context_names)
8120
8295
  @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
8296
+ @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
8121
8297
  @messages = args[:messages] if args.key?(:messages)
8122
8298
  @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
8123
8299
  @name = args[:name] if args.key?(:name)
@@ -9206,6 +9382,25 @@ module Google
9206
9382
  end
9207
9383
  end
9208
9384
 
9385
+ # Metadata in google::longrunning::Operation for Knowledge operations.
9386
+ class GoogleCloudDialogflowV2KnowledgeOperationMetadata
9387
+ include Google::Apis::Core::Hashable
9388
+
9389
+ # Output only. The current state of this operation.
9390
+ # Corresponds to the JSON property `state`
9391
+ # @return [String]
9392
+ attr_accessor :state
9393
+
9394
+ def initialize(**args)
9395
+ update!(**args)
9396
+ end
9397
+
9398
+ # Update properties of this object
9399
+ def update!(**args)
9400
+ @state = args[:state] if args.key?(:state)
9401
+ end
9402
+ end
9403
+
9209
9404
  # Represents a message posted into a conversation.
9210
9405
  class GoogleCloudDialogflowV2Message
9211
9406
  include Google::Apis::Core::Hashable
@@ -9582,6 +9777,112 @@ module Google
9582
9777
  end
9583
9778
  end
9584
9779
 
9780
+ # The response message for Participants.SuggestArticles.
9781
+ class GoogleCloudDialogflowV2SuggestArticlesResponse
9782
+ include Google::Apis::Core::Hashable
9783
+
9784
+ # Articles ordered by score in descending order.
9785
+ # Corresponds to the JSON property `articleAnswers`
9786
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2ArticleAnswer>]
9787
+ attr_accessor :article_answers
9788
+
9789
+ # Number of messages prior to and including latest_message to compile the
9790
+ # suggestion. It may be smaller than the SuggestArticlesRequest.context_size
9791
+ # field in the request if there aren't that many messages in the conversation.
9792
+ # Corresponds to the JSON property `contextSize`
9793
+ # @return [Fixnum]
9794
+ attr_accessor :context_size
9795
+
9796
+ # The name of the latest conversation message used to compile suggestion for.
9797
+ # Format: `projects//locations//conversations//messages/`.
9798
+ # Corresponds to the JSON property `latestMessage`
9799
+ # @return [String]
9800
+ attr_accessor :latest_message
9801
+
9802
+ def initialize(**args)
9803
+ update!(**args)
9804
+ end
9805
+
9806
+ # Update properties of this object
9807
+ def update!(**args)
9808
+ @article_answers = args[:article_answers] if args.key?(:article_answers)
9809
+ @context_size = args[:context_size] if args.key?(:context_size)
9810
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
9811
+ end
9812
+ end
9813
+
9814
+ # The request message for Participants.SuggestFaqAnswers.
9815
+ class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
9816
+ include Google::Apis::Core::Hashable
9817
+
9818
+ # Number of messages prior to and including latest_message to compile the
9819
+ # suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size
9820
+ # field in the request if there aren't that many messages in the conversation.
9821
+ # Corresponds to the JSON property `contextSize`
9822
+ # @return [Fixnum]
9823
+ attr_accessor :context_size
9824
+
9825
+ # Answers extracted from FAQ documents.
9826
+ # Corresponds to the JSON property `faqAnswers`
9827
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2FaqAnswer>]
9828
+ attr_accessor :faq_answers
9829
+
9830
+ # The name of the latest conversation message used to compile suggestion for.
9831
+ # Format: `projects//locations//conversations//messages/`.
9832
+ # Corresponds to the JSON property `latestMessage`
9833
+ # @return [String]
9834
+ attr_accessor :latest_message
9835
+
9836
+ def initialize(**args)
9837
+ update!(**args)
9838
+ end
9839
+
9840
+ # Update properties of this object
9841
+ def update!(**args)
9842
+ @context_size = args[:context_size] if args.key?(:context_size)
9843
+ @faq_answers = args[:faq_answers] if args.key?(:faq_answers)
9844
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
9845
+ end
9846
+ end
9847
+
9848
+ # One response of different type of suggestion response which is used in the
9849
+ # response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
9850
+ # well as HumanAgentAssistantEvent.
9851
+ class GoogleCloudDialogflowV2SuggestionResult
9852
+ include Google::Apis::Core::Hashable
9853
+
9854
+ # The `Status` type defines a logical error model that is suitable for different
9855
+ # programming environments, including REST APIs and RPC APIs. It is used by [
9856
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
9857
+ # data: error code, error message, and error details. You can find out more
9858
+ # about this error model and how to work with it in the [API Design Guide](https:
9859
+ # //cloud.google.com/apis/design/errors).
9860
+ # Corresponds to the JSON property `error`
9861
+ # @return [Google::Apis::DialogflowV3beta1::GoogleRpcStatus]
9862
+ attr_accessor :error
9863
+
9864
+ # The response message for Participants.SuggestArticles.
9865
+ # Corresponds to the JSON property `suggestArticlesResponse`
9866
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SuggestArticlesResponse]
9867
+ attr_accessor :suggest_articles_response
9868
+
9869
+ # The request message for Participants.SuggestFaqAnswers.
9870
+ # Corresponds to the JSON property `suggestFaqAnswersResponse`
9871
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
9872
+ attr_accessor :suggest_faq_answers_response
9873
+
9874
+ def initialize(**args)
9875
+ update!(**args)
9876
+ end
9877
+
9878
+ # Update properties of this object
9879
+ def update!(**args)
9880
+ @error = args[:error] if args.key?(:error)
9881
+ @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
9882
+ @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
9883
+ end
9884
+ end
9885
+
9585
9886
  # The request message for a webhook call.
9586
9887
  class GoogleCloudDialogflowV2WebhookRequest
9587
9888
  include Google::Apis::Core::Hashable
@@ -9708,6 +10009,89 @@ module Google
9708
10009
  end
9709
10010
  end
9710
10011
 
10012
+ # Represents a part of a message possibly annotated with an entity. The part can
10013
+ # be an entity or purely a part of the message between two entities or message
10014
+ # start/end.
10015
+ class GoogleCloudDialogflowV2beta1AnnotatedMessagePart
10016
+ include Google::Apis::Core::Hashable
10017
+
10018
+ # Optional. The [Dialogflow system entity type](https://cloud.google.com/
10019
+ # dialogflow/docs/reference/system-entities) of this message part. If this is
10020
+ # empty, Dialogflow could not annotate the phrase part with a system entity.
10021
+ # Corresponds to the JSON property `entityType`
10022
+ # @return [String]
10023
+ attr_accessor :entity_type
10024
+
10025
+ # Optional. The [Dialogflow system entity formatted value ](https://cloud.google.
10026
+ # com/dialogflow/docs/reference/system-entities) of this message part. For
10027
+ # example for a system entity of type `@sys.unit-currency`, this may contain: ` "
10028
+ # amount": 5, "currency": "USD" `
10029
+ # Corresponds to the JSON property `formattedValue`
10030
+ # @return [Object]
10031
+ attr_accessor :formatted_value
10032
+
10033
+ # Required. A part of a message possibly annotated with an entity.
10034
+ # Corresponds to the JSON property `text`
10035
+ # @return [String]
10036
+ attr_accessor :text
10037
+
10038
+ def initialize(**args)
10039
+ update!(**args)
10040
+ end
10041
+
10042
+ # Update properties of this object
10043
+ def update!(**args)
10044
+ @entity_type = args[:entity_type] if args.key?(:entity_type)
10045
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
10046
+ @text = args[:text] if args.key?(:text)
10047
+ end
10048
+ end
10049
+
10050
+ # Represents article answer.
10051
+ class GoogleCloudDialogflowV2beta1ArticleAnswer
10052
+ include Google::Apis::Core::Hashable
10053
+
10054
+ # The name of answer record, in the format of "projects//locations//
10055
+ # answerRecords/"
10056
+ # Corresponds to the JSON property `answerRecord`
10057
+ # @return [String]
10058
+ attr_accessor :answer_record
10059
+
10060
+ # A map that contains metadata about the answer and the document from which it
10061
+ # originates.
10062
+ # Corresponds to the JSON property `metadata`
10063
+ # @return [Hash<String,String>]
10064
+ attr_accessor :metadata
10065
+
10066
+ # Output only. Article snippets.
10067
+ # Corresponds to the JSON property `snippets`
10068
+ # @return [Array<String>]
10069
+ attr_accessor :snippets
10070
+
10071
+ # The article title.
10072
+ # Corresponds to the JSON property `title`
10073
+ # @return [String]
10074
+ attr_accessor :title
10075
+
10076
+ # The article URI.
10077
+ # Corresponds to the JSON property `uri`
10078
+ # @return [String]
10079
+ attr_accessor :uri
10080
+
10081
+ def initialize(**args)
10082
+ update!(**args)
10083
+ end
10084
+
10085
+ # Update properties of this object
10086
+ def update!(**args)
10087
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
10088
+ @metadata = args[:metadata] if args.key?(:metadata)
10089
+ @snippets = args[:snippets] if args.key?(:snippets)
10090
+ @title = args[:title] if args.key?(:title)
10091
+ @uri = args[:uri] if args.key?(:uri)
10092
+ end
10093
+ end
10094
+
9711
10095
  # The response message for EntityTypes.BatchUpdateEntityTypes.
9712
10096
  class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
9713
10097
  include Google::Apis::Core::Hashable
@@ -9808,12 +10192,56 @@ module Google
9808
10192
  end
9809
10193
  end
9810
10194
 
9811
- # Each intent parameter has a type, called the entity type, which dictates
9812
- # exactly how data from an end-user expression is extracted. Dialogflow provides
9813
- # predefined system entities that can match many common types of data. For
9814
- # example, there are system entities for matching dates, times, colors, email
9815
- # addresses, and so on. You can also create your own custom entities for
9816
- # matching custom data. For example, you could define a vegetable entity that
10195
+ # Represents a notification sent to Pub/Sub subscribers for conversation
10196
+ # lifecycle events.
10197
+ class GoogleCloudDialogflowV2beta1ConversationEvent
10198
+ include Google::Apis::Core::Hashable
10199
+
10200
+ # Required. The unique identifier of the conversation this notification refers
10201
+ # to. Format: `projects//conversations/`.
10202
+ # Corresponds to the JSON property `conversation`
10203
+ # @return [String]
10204
+ attr_accessor :conversation
10205
+
10206
+ # The `Status` type defines a logical error model that is suitable for different
10207
+ # programming environments, including REST APIs and RPC APIs. It is used by [
10208
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
10209
+ # data: error code, error message, and error details. You can find out more
10210
+ # about this error model and how to work with it in the [API Design Guide](https:
10211
+ # //cloud.google.com/apis/design/errors).
10212
+ # Corresponds to the JSON property `errorStatus`
10213
+ # @return [Google::Apis::DialogflowV3beta1::GoogleRpcStatus]
10214
+ attr_accessor :error_status
10215
+
10216
+ # Represents a message posted into a conversation.
10217
+ # Corresponds to the JSON property `newMessagePayload`
10218
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1Message]
10219
+ attr_accessor :new_message_payload
10220
+
10221
+ # Required. The type of the event that this notification refers to.
10222
+ # Corresponds to the JSON property `type`
10223
+ # @return [String]
10224
+ attr_accessor :type
10225
+
10226
+ def initialize(**args)
10227
+ update!(**args)
10228
+ end
10229
+
10230
+ # Update properties of this object
10231
+ def update!(**args)
10232
+ @conversation = args[:conversation] if args.key?(:conversation)
10233
+ @error_status = args[:error_status] if args.key?(:error_status)
10234
+ @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
10235
+ @type = args[:type] if args.key?(:type)
10236
+ end
10237
+ end
10238
+
10239
+ # Each intent parameter has a type, called the entity type, which dictates
10240
+ # exactly how data from an end-user expression is extracted. Dialogflow provides
10241
+ # predefined system entities that can match many common types of data. For
10242
+ # example, there are system entities for matching dates, times, colors, email
10243
+ # addresses, and so on. You can also create your own custom entities for
10244
+ # matching custom data. For example, you could define a vegetable entity that
9817
10245
  # can match the types of vegetables available for purchase with a grocery store
9818
10246
  # agent. For more information, see the [Entity guide](https://cloud.google.com/
9819
10247
  # dialogflow/docs/entities-overview).
@@ -9973,6 +10401,117 @@ module Google
9973
10401
  end
9974
10402
  end
9975
10403
 
10404
+ # Represents answer from "frequently asked questions".
10405
+ class GoogleCloudDialogflowV2beta1FaqAnswer
10406
+ include Google::Apis::Core::Hashable
10407
+
10408
+ # The piece of text from the `source` knowledge base document.
10409
+ # Corresponds to the JSON property `answer`
10410
+ # @return [String]
10411
+ attr_accessor :answer
10412
+
10413
+ # The name of answer record, in the format of "projects//locations//
10414
+ # answerRecords/"
10415
+ # Corresponds to the JSON property `answerRecord`
10416
+ # @return [String]
10417
+ attr_accessor :answer_record
10418
+
10419
+ # The system's confidence score that this Knowledge answer is a good match for
10420
+ # this conversational query, range from 0.0 (completely uncertain) to 1.0 (
10421
+ # completely certain).
10422
+ # Corresponds to the JSON property `confidence`
10423
+ # @return [Float]
10424
+ attr_accessor :confidence
10425
+
10426
+ # A map that contains metadata about the answer and the document from which it
10427
+ # originates.
10428
+ # Corresponds to the JSON property `metadata`
10429
+ # @return [Hash<String,String>]
10430
+ attr_accessor :metadata
10431
+
10432
+ # The corresponding FAQ question.
10433
+ # Corresponds to the JSON property `question`
10434
+ # @return [String]
10435
+ attr_accessor :question
10436
+
10437
+ # Indicates which Knowledge Document this answer was extracted from. Format: `
10438
+ # projects//locations//agent/knowledgeBases//documents/`.
10439
+ # Corresponds to the JSON property `source`
10440
+ # @return [String]
10441
+ attr_accessor :source
10442
+
10443
+ def initialize(**args)
10444
+ update!(**args)
10445
+ end
10446
+
10447
+ # Update properties of this object
10448
+ def update!(**args)
10449
+ @answer = args[:answer] if args.key?(:answer)
10450
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
10451
+ @confidence = args[:confidence] if args.key?(:confidence)
10452
+ @metadata = args[:metadata] if args.key?(:metadata)
10453
+ @question = args[:question] if args.key?(:question)
10454
+ @source = args[:source] if args.key?(:source)
10455
+ end
10456
+ end
10457
+
10458
+ # Output only. Represents a notification sent to Pub/Sub subscribers for agent
10459
+ # assistant events in a specific conversation.
10460
+ class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
10461
+ include Google::Apis::Core::Hashable
10462
+
10463
+ # The conversation this notification refers to. Format: `projects//conversations/
10464
+ # `.
10465
+ # Corresponds to the JSON property `conversation`
10466
+ # @return [String]
10467
+ attr_accessor :conversation
10468
+
10469
+ # The participant that the suggestion is compiled for. And This field is used to
10470
+ # call Participants.ListSuggestions API. Format: `projects//conversations//
10471
+ # participants/`. It will not be set in legacy workflow.
10472
+ # HumanAgentAssistantConfig.name for more information.
10473
+ # Corresponds to the JSON property `participant`
10474
+ # @return [String]
10475
+ attr_accessor :participant
10476
+
10477
+ # The suggestion results payload that this notification refers to. It will only
10478
+ # be set when HumanAgentAssistantConfig.SuggestionConfig.
10479
+ # group_suggestion_responses sets to true.
10480
+ # Corresponds to the JSON property `suggestionResults`
10481
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestionResult>]
10482
+ attr_accessor :suggestion_results
10483
+
10484
+ def initialize(**args)
10485
+ update!(**args)
10486
+ end
10487
+
10488
+ # Update properties of this object
10489
+ def update!(**args)
10490
+ @conversation = args[:conversation] if args.key?(:conversation)
10491
+ @participant = args[:participant] if args.key?(:participant)
10492
+ @suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
10493
+ end
10494
+ end
10495
+
10496
+ # Response message for Documents.ImportDocuments.
10497
+ class GoogleCloudDialogflowV2beta1ImportDocumentsResponse
10498
+ include Google::Apis::Core::Hashable
10499
+
10500
+ # Includes details about skipped documents or any other warnings.
10501
+ # Corresponds to the JSON property `warnings`
10502
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleRpcStatus>]
10503
+ attr_accessor :warnings
10504
+
10505
+ def initialize(**args)
10506
+ update!(**args)
10507
+ end
10508
+
10509
+ # Update properties of this object
10510
+ def update!(**args)
10511
+ @warnings = args[:warnings] if args.key?(:warnings)
10512
+ end
10513
+ end
10514
+
9976
10515
  # An intent categorizes an end-user's intention for one conversation turn. For
9977
10516
  # each agent, you define many intents, where your combined intents can handle a
9978
10517
  # complete conversation. When an end-user writes or says something, referred to
@@ -10035,6 +10574,14 @@ module Google
10035
10574
  attr_accessor :is_fallback
10036
10575
  alias_method :is_fallback?, :is_fallback
10037
10576
 
10577
+ # Optional. Indicates that a live agent should be brought in to handle the
10578
+ # interaction with the user. In most cases, when you set this flag to true, you
10579
+ # would also want to set end_interaction to true as well. Default is false.
10580
+ # Corresponds to the JSON property `liveAgentHandoff`
10581
+ # @return [Boolean]
10582
+ attr_accessor :live_agent_handoff
10583
+ alias_method :live_agent_handoff?, :live_agent_handoff
10584
+
10038
10585
  # Optional. The collection of rich messages corresponding to the `Response`
10039
10586
  # field in the Dialogflow console.
10040
10587
  # Corresponds to the JSON property `messages`
@@ -10139,6 +10686,7 @@ module Google
10139
10686
  @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
10140
10687
  @input_context_names = args[:input_context_names] if args.key?(:input_context_names)
10141
10688
  @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
10689
+ @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
10142
10690
  @messages = args[:messages] if args.key?(:messages)
10143
10691
  @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
10144
10692
  @ml_enabled = args[:ml_enabled] if args.key?(:ml_enabled)
@@ -11781,6 +12329,110 @@ module Google
11781
12329
  end
11782
12330
  end
11783
12331
 
12332
+ # Represents a message posted into a conversation.
12333
+ class GoogleCloudDialogflowV2beta1Message
12334
+ include Google::Apis::Core::Hashable
12335
+
12336
+ # Required. The message content.
12337
+ # Corresponds to the JSON property `content`
12338
+ # @return [String]
12339
+ attr_accessor :content
12340
+
12341
+ # Output only. The time when the message was created in Contact Center AI.
12342
+ # Corresponds to the JSON property `createTime`
12343
+ # @return [String]
12344
+ attr_accessor :create_time
12345
+
12346
+ # Optional. The message language. This should be a [BCP-47](https://www.rfc-
12347
+ # editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
12348
+ # Corresponds to the JSON property `languageCode`
12349
+ # @return [String]
12350
+ attr_accessor :language_code
12351
+
12352
+ # Represents the result of annotation for the message.
12353
+ # Corresponds to the JSON property `messageAnnotation`
12354
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1MessageAnnotation]
12355
+ attr_accessor :message_annotation
12356
+
12357
+ # Optional. The unique identifier of the message. Format: `projects//locations//
12358
+ # conversations//messages/`.
12359
+ # Corresponds to the JSON property `name`
12360
+ # @return [String]
12361
+ attr_accessor :name
12362
+
12363
+ # Output only. The participant that sends this message.
12364
+ # Corresponds to the JSON property `participant`
12365
+ # @return [String]
12366
+ attr_accessor :participant
12367
+
12368
+ # Output only. The role of the participant.
12369
+ # Corresponds to the JSON property `participantRole`
12370
+ # @return [String]
12371
+ attr_accessor :participant_role
12372
+
12373
+ # Optional. The time when the message was sent.
12374
+ # Corresponds to the JSON property `sendTime`
12375
+ # @return [String]
12376
+ attr_accessor :send_time
12377
+
12378
+ # The result of sentiment analysis. Sentiment analysis inspects user input and
12379
+ # identifies the prevailing subjective opinion, especially to determine a user's
12380
+ # attitude as positive, negative, or neutral. For Participants.DetectIntent, it
12381
+ # needs to be configured in DetectIntentRequest.query_params. For Participants.
12382
+ # StreamingDetectIntent, it needs to be configured in
12383
+ # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent
12384
+ # and Participants.StreamingAnalyzeContent, it needs to be configured in
12385
+ # ConversationProfile.human_agent_assistant_config
12386
+ # Corresponds to the JSON property `sentimentAnalysis`
12387
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisResult]
12388
+ attr_accessor :sentiment_analysis
12389
+
12390
+ def initialize(**args)
12391
+ update!(**args)
12392
+ end
12393
+
12394
+ # Update properties of this object
12395
+ def update!(**args)
12396
+ @content = args[:content] if args.key?(:content)
12397
+ @create_time = args[:create_time] if args.key?(:create_time)
12398
+ @language_code = args[:language_code] if args.key?(:language_code)
12399
+ @message_annotation = args[:message_annotation] if args.key?(:message_annotation)
12400
+ @name = args[:name] if args.key?(:name)
12401
+ @participant = args[:participant] if args.key?(:participant)
12402
+ @participant_role = args[:participant_role] if args.key?(:participant_role)
12403
+ @send_time = args[:send_time] if args.key?(:send_time)
12404
+ @sentiment_analysis = args[:sentiment_analysis] if args.key?(:sentiment_analysis)
12405
+ end
12406
+ end
12407
+
12408
+ # Represents the result of annotation for the message.
12409
+ class GoogleCloudDialogflowV2beta1MessageAnnotation
12410
+ include Google::Apis::Core::Hashable
12411
+
12412
+ # Required. Indicates whether the text message contains entities.
12413
+ # Corresponds to the JSON property `containEntities`
12414
+ # @return [Boolean]
12415
+ attr_accessor :contain_entities
12416
+ alias_method :contain_entities?, :contain_entities
12417
+
12418
+ # Optional. The collection of annotated message parts ordered by their position
12419
+ # in the message. You can recover the annotated message by concatenating [
12420
+ # AnnotatedMessagePart.text].
12421
+ # Corresponds to the JSON property `parts`
12422
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1AnnotatedMessagePart>]
12423
+ attr_accessor :parts
12424
+
12425
+ def initialize(**args)
12426
+ update!(**args)
12427
+ end
12428
+
12429
+ # Update properties of this object
12430
+ def update!(**args)
12431
+ @contain_entities = args[:contain_entities] if args.key?(:contain_entities)
12432
+ @parts = args[:parts] if args.key?(:parts)
12433
+ end
12434
+ end
12435
+
11784
12436
  # Represents the contents of the original request that was passed to the `[
11785
12437
  # Streaming]DetectIntent` call.
11786
12438
  class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
@@ -12081,6 +12733,188 @@ module Google
12081
12733
  end
12082
12734
  end
12083
12735
 
12736
+ # Represents a smart reply answer.
12737
+ class GoogleCloudDialogflowV2beta1SmartReplyAnswer
12738
+ include Google::Apis::Core::Hashable
12739
+
12740
+ # The name of answer record, in the format of "projects//locations//
12741
+ # answerRecords/"
12742
+ # Corresponds to the JSON property `answerRecord`
12743
+ # @return [String]
12744
+ attr_accessor :answer_record
12745
+
12746
+ # Smart reply confidence. The system's confidence score that this reply is a
12747
+ # good match for this conversation, as a value from 0.0 (completely uncertain)
12748
+ # to 1.0 (completely certain).
12749
+ # Corresponds to the JSON property `confidence`
12750
+ # @return [Float]
12751
+ attr_accessor :confidence
12752
+
12753
+ # The content of the reply.
12754
+ # Corresponds to the JSON property `reply`
12755
+ # @return [String]
12756
+ attr_accessor :reply
12757
+
12758
+ def initialize(**args)
12759
+ update!(**args)
12760
+ end
12761
+
12762
+ # Update properties of this object
12763
+ def update!(**args)
12764
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
12765
+ @confidence = args[:confidence] if args.key?(:confidence)
12766
+ @reply = args[:reply] if args.key?(:reply)
12767
+ end
12768
+ end
12769
+
12770
+ # The response message for Participants.SuggestArticles.
12771
+ class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
12772
+ include Google::Apis::Core::Hashable
12773
+
12774
+ # Output only. Articles ordered by score in descending order.
12775
+ # Corresponds to the JSON property `articleAnswers`
12776
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1ArticleAnswer>]
12777
+ attr_accessor :article_answers
12778
+
12779
+ # Number of messages prior to and including latest_message to compile the
12780
+ # suggestion. It may be smaller than the SuggestArticlesResponse.context_size
12781
+ # field in the request if there aren't that many messages in the conversation.
12782
+ # Corresponds to the JSON property `contextSize`
12783
+ # @return [Fixnum]
12784
+ attr_accessor :context_size
12785
+
12786
+ # The name of the latest conversation message used to compile suggestion for.
12787
+ # Format: `projects//locations//conversations//messages/`.
12788
+ # Corresponds to the JSON property `latestMessage`
12789
+ # @return [String]
12790
+ attr_accessor :latest_message
12791
+
12792
+ def initialize(**args)
12793
+ update!(**args)
12794
+ end
12795
+
12796
+ # Update properties of this object
12797
+ def update!(**args)
12798
+ @article_answers = args[:article_answers] if args.key?(:article_answers)
12799
+ @context_size = args[:context_size] if args.key?(:context_size)
12800
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
12801
+ end
12802
+ end
12803
+
12804
+ # The request message for Participants.SuggestFaqAnswers.
12805
+ class GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
12806
+ include Google::Apis::Core::Hashable
12807
+
12808
+ # Number of messages prior to and including latest_message to compile the
12809
+ # suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size
12810
+ # field in the request if there aren't that many messages in the conversation.
12811
+ # Corresponds to the JSON property `contextSize`
12812
+ # @return [Fixnum]
12813
+ attr_accessor :context_size
12814
+
12815
+ # Output only. Answers extracted from FAQ documents.
12816
+ # Corresponds to the JSON property `faqAnswers`
12817
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1FaqAnswer>]
12818
+ attr_accessor :faq_answers
12819
+
12820
+ # The name of the latest conversation message used to compile suggestion for.
12821
+ # Format: `projects//locations//conversations//messages/`.
12822
+ # Corresponds to the JSON property `latestMessage`
12823
+ # @return [String]
12824
+ attr_accessor :latest_message
12825
+
12826
+ def initialize(**args)
12827
+ update!(**args)
12828
+ end
12829
+
12830
+ # Update properties of this object
12831
+ def update!(**args)
12832
+ @context_size = args[:context_size] if args.key?(:context_size)
12833
+ @faq_answers = args[:faq_answers] if args.key?(:faq_answers)
12834
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
12835
+ end
12836
+ end
12837
+
12838
+ # The response message for Participants.SuggestSmartReplies.
12839
+ class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
12840
+ include Google::Apis::Core::Hashable
12841
+
12842
+ # Number of messages prior to and including latest_message to compile the
12843
+ # suggestion. It may be smaller than the SuggestSmartRepliesRequest.context_size
12844
+ # field in the request if there aren't that many messages in the conversation.
12845
+ # Corresponds to the JSON property `contextSize`
12846
+ # @return [Fixnum]
12847
+ attr_accessor :context_size
12848
+
12849
+ # The name of the latest conversation message used to compile suggestion for.
12850
+ # Format: `projects//locations//conversations//messages/`.
12851
+ # Corresponds to the JSON property `latestMessage`
12852
+ # @return [String]
12853
+ attr_accessor :latest_message
12854
+
12855
+ # Output only. Multiple reply options provided by smart reply service. The order
12856
+ # is based on the rank of the model prediction. The maximum number of the
12857
+ # returned replies is set in SmartReplyConfig.
12858
+ # Corresponds to the JSON property `smartReplyAnswers`
12859
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SmartReplyAnswer>]
12860
+ attr_accessor :smart_reply_answers
12861
+
12862
+ def initialize(**args)
12863
+ update!(**args)
12864
+ end
12865
+
12866
+ # Update properties of this object
12867
+ def update!(**args)
12868
+ @context_size = args[:context_size] if args.key?(:context_size)
12869
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
12870
+ @smart_reply_answers = args[:smart_reply_answers] if args.key?(:smart_reply_answers)
12871
+ end
12872
+ end
12873
+
12874
+ # One response of different type of suggestion response which is used in the
12875
+ # response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
12876
+ # well as HumanAgentAssistantEvent.
12877
+ class GoogleCloudDialogflowV2beta1SuggestionResult
12878
+ include Google::Apis::Core::Hashable
12879
+
12880
+ # The `Status` type defines a logical error model that is suitable for different
12881
+ # programming environments, including REST APIs and RPC APIs. It is used by [
12882
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
12883
+ # data: error code, error message, and error details. You can find out more
12884
+ # about this error model and how to work with it in the [API Design Guide](https:
12885
+ # //cloud.google.com/apis/design/errors).
12886
+ # Corresponds to the JSON property `error`
12887
+ # @return [Google::Apis::DialogflowV3beta1::GoogleRpcStatus]
12888
+ attr_accessor :error
12889
+
12890
+ # The response message for Participants.SuggestArticles.
12891
+ # Corresponds to the JSON property `suggestArticlesResponse`
12892
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestArticlesResponse]
12893
+ attr_accessor :suggest_articles_response
12894
+
12895
+ # The request message for Participants.SuggestFaqAnswers.
12896
+ # Corresponds to the JSON property `suggestFaqAnswersResponse`
12897
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse]
12898
+ attr_accessor :suggest_faq_answers_response
12899
+
12900
+ # The response message for Participants.SuggestSmartReplies.
12901
+ # Corresponds to the JSON property `suggestSmartRepliesResponse`
12902
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse]
12903
+ attr_accessor :suggest_smart_replies_response
12904
+
12905
+ def initialize(**args)
12906
+ update!(**args)
12907
+ end
12908
+
12909
+ # Update properties of this object
12910
+ def update!(**args)
12911
+ @error = args[:error] if args.key?(:error)
12912
+ @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
12913
+ @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
12914
+ @suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
12915
+ end
12916
+ end
12917
+
12084
12918
  # The request message for a webhook call.
12085
12919
  class GoogleCloudDialogflowV2beta1WebhookRequest
12086
12920
  include Google::Apis::Core::Hashable
@@ -12171,6 +13005,14 @@ module Google
12171
13005
  # @return [String]
12172
13006
  attr_accessor :fulfillment_text
12173
13007
 
13008
+ # Indicates that a live agent should be brought in to handle the interaction
13009
+ # with the user. In most cases, when you set this flag to true, you would also
13010
+ # want to set end_interaction to true as well. Default is false.
13011
+ # Corresponds to the JSON property `liveAgentHandoff`
13012
+ # @return [Boolean]
13013
+ attr_accessor :live_agent_handoff
13014
+ alias_method :live_agent_handoff?, :live_agent_handoff
13015
+
12174
13016
  # Optional. The collection of output contexts that will overwrite currently
12175
13017
  # active contexts for the session and reset their lifespans. When provided,
12176
13018
  # Dialogflow uses this field to populate QueryResult.output_contexts sent to the
@@ -12217,6 +13059,7 @@ module Google
12217
13059
  @followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input)
12218
13060
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
12219
13061
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
13062
+ @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
12220
13063
  @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
12221
13064
  @payload = args[:payload] if args.key?(:payload)
12222
13065
  @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types)