google-apis-dialogflow_v2 0.2.0 → 0.7.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: 61b62546d636a92aba7f70d6911b147daa59691a1f9f89c383c8404e42a6759b
4
- data.tar.gz: 394f7d1e238ac59efa69284cc6ae9dd6cbbd0376b53bda55d3fc0978c92297fc
3
+ metadata.gz: 42e0155dd3ce4c44f1d37ab0bbb3abfb49c5d6525a1044a2297a19ff835474df
4
+ data.tar.gz: 38639d48a7a7800fea6e4489266dc203089cb45410d54e6c56bb2906a0fe8d7f
5
5
  SHA512:
6
- metadata.gz: 58001206272b1936450847d064c44bcd2546d3ca9763b57543655d0311688584b79857e04b3294a0713016b739ace43057d6e53969d8db3e258d3d3523dc16aa
7
- data.tar.gz: 7e030c7cbe18908fb89a5c318444fb85fa54b7020c36777a22f1f6b0952148fee716bc792c70fcac15b8763100085c3cb204bee97e7ae90f80a5bfb9cdd981f8
6
+ metadata.gz: 4d42d565fae71bbf5b60c01b5095dd95b5f9f6b79e8aab8dda0f931602ec41972175d456b05acc8351ece930f83a6a1cf20969ad757fc8e5468f5abaf97f1f85
7
+ data.tar.gz: 344aa9945c531b38e9948804691ebbd42bceda379465163334df1c9f6a6944f0ee8b2e95d57ab4ba368df386d02899ba2fb1c14af0f93545d445784716a2967d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-dialogflow_v2
2
2
 
3
+ ### v0.7.0 (2021-03-09)
4
+
5
+ * Regenerated from discovery document revision 20210307
6
+ * Regenerated using generator version 0.2.0
7
+
8
+ ### v0.6.0 (2021-03-04)
9
+
10
+ * Unspecified changes
11
+
12
+ ### v0.5.0 (2021-02-24)
13
+
14
+ * Regenerated from discovery document revision 20210222
15
+
16
+ ### v0.4.0 (2021-02-17)
17
+
18
+ * Regenerated from discovery document revision 20210213
19
+
20
+ ### v0.3.0 (2021-02-12)
21
+
22
+ * Regenerated from discovery document revision 20210209
23
+
3
24
  ### v0.2.0 (2021-02-03)
4
25
 
5
26
  * Regenerated from discovery document revision 20210130
@@ -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`
@@ -2164,6 +2164,11 @@ module Google
2164
2164
  # @return [Hash<String,Object>]
2165
2165
  attr_accessor :payload
2166
2166
 
2167
+ # Represents the result of sentiment analysis.
2168
+ # Corresponds to the JSON property `sentimentAnalysisResult`
2169
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult]
2170
+ attr_accessor :sentiment_analysis_result
2171
+
2167
2172
  # Represents session information communicated to and from the webhook.
2168
2173
  # Corresponds to the JSON property `sessionInfo`
2169
2174
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3SessionInfo]
@@ -2181,6 +2186,7 @@ module Google
2181
2186
  @messages = args[:messages] if args.key?(:messages)
2182
2187
  @page_info = args[:page_info] if args.key?(:page_info)
2183
2188
  @payload = args[:payload] if args.key?(:payload)
2189
+ @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
2184
2190
  @session_info = args[:session_info] if args.key?(:session_info)
2185
2191
  end
2186
2192
  end
@@ -2272,6 +2278,32 @@ module Google
2272
2278
  end
2273
2279
  end
2274
2280
 
2281
+ # Represents the result of sentiment analysis.
2282
+ class GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
2283
+ include Google::Apis::Core::Hashable
2284
+
2285
+ # A non-negative number in the [0, +inf) range, which represents the absolute
2286
+ # magnitude of sentiment, regardless of score (positive or negative).
2287
+ # Corresponds to the JSON property `magnitude`
2288
+ # @return [Float]
2289
+ attr_accessor :magnitude
2290
+
2291
+ # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
2292
+ # Corresponds to the JSON property `score`
2293
+ # @return [Float]
2294
+ attr_accessor :score
2295
+
2296
+ def initialize(**args)
2297
+ update!(**args)
2298
+ end
2299
+
2300
+ # Update properties of this object
2301
+ def update!(**args)
2302
+ @magnitude = args[:magnitude] if args.key?(:magnitude)
2303
+ @score = args[:score] if args.key?(:score)
2304
+ end
2305
+ end
2306
+
2275
2307
  # The response message for a webhook call.
2276
2308
  class GoogleCloudDialogflowCxV3WebhookResponse
2277
2309
  include Google::Apis::Core::Hashable
@@ -3697,7 +3729,7 @@ module Google
3697
3729
  attr_accessor :intent
3698
3730
 
3699
3731
  # Required. The language of the input. See [Language Support](https://cloud.
3700
- # google.com/dialogflow/docs/reference/language) for a list of the currently
3732
+ # google.com/dialogflow/cx/docs/reference/language) for a list of the currently
3701
3733
  # supported language codes. Note that queries in the same session do not
3702
3734
  # necessarily need to specify the same language.
3703
3735
  # Corresponds to the JSON property `languageCode`
@@ -4490,6 +4522,11 @@ module Google
4490
4522
  # @return [Hash<String,Object>]
4491
4523
  attr_accessor :payload
4492
4524
 
4525
+ # Represents the result of sentiment analysis.
4526
+ # Corresponds to the JSON property `sentimentAnalysisResult`
4527
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult]
4528
+ attr_accessor :sentiment_analysis_result
4529
+
4493
4530
  # Represents session information communicated to and from the webhook.
4494
4531
  # Corresponds to the JSON property `sessionInfo`
4495
4532
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1SessionInfo]
@@ -4507,6 +4544,7 @@ module Google
4507
4544
  @messages = args[:messages] if args.key?(:messages)
4508
4545
  @page_info = args[:page_info] if args.key?(:page_info)
4509
4546
  @payload = args[:payload] if args.key?(:payload)
4547
+ @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
4510
4548
  @session_info = args[:session_info] if args.key?(:session_info)
4511
4549
  end
4512
4550
  end
@@ -4598,6 +4636,32 @@ module Google
4598
4636
  end
4599
4637
  end
4600
4638
 
4639
+ # Represents the result of sentiment analysis.
4640
+ class GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
4641
+ include Google::Apis::Core::Hashable
4642
+
4643
+ # A non-negative number in the [0, +inf) range, which represents the absolute
4644
+ # magnitude of sentiment, regardless of score (positive or negative).
4645
+ # Corresponds to the JSON property `magnitude`
4646
+ # @return [Float]
4647
+ attr_accessor :magnitude
4648
+
4649
+ # Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
4650
+ # Corresponds to the JSON property `score`
4651
+ # @return [Float]
4652
+ attr_accessor :score
4653
+
4654
+ def initialize(**args)
4655
+ update!(**args)
4656
+ end
4657
+
4658
+ # Update properties of this object
4659
+ def update!(**args)
4660
+ @magnitude = args[:magnitude] if args.key?(:magnitude)
4661
+ @score = args[:score] if args.key?(:score)
4662
+ end
4663
+ end
4664
+
4601
4665
  # The response message for a webhook call.
4602
4666
  class GoogleCloudDialogflowCxV3beta1WebhookResponse
4603
4667
  include Google::Apis::Core::Hashable
@@ -4783,31 +4847,33 @@ module Google
4783
4847
  end
4784
4848
  end
4785
4849
 
4786
- # Represents a part of a message possibly annotated with an entity. The part can
4787
- # be an entity or purely a part of the message between two entities or message
4788
- # start/end.
4789
- class GoogleCloudDialogflowV2AnnotatedMessagePart
4850
+ # Detail feedback of Agent Assist result.
4851
+ class GoogleCloudDialogflowV2AgentAssistantFeedback
4790
4852
  include Google::Apis::Core::Hashable
4791
4853
 
4792
- # The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/
4793
- # reference/system-entities) of this message part. If this is empty, Dialogflow
4794
- # could not annotate the phrase part with a system entity.
4795
- # Corresponds to the JSON property `entityType`
4854
+ # Optional. Whether or not the suggested answer is relevant. For example: *
4855
+ # Query: "Can I change my mailing address?" * Suggested document says: "Items
4856
+ # must be returned/exchanged within 60 days of the purchase date." *
4857
+ # answer_relevance: AnswerRelevance.IRRELEVANT
4858
+ # Corresponds to the JSON property `answerRelevance`
4796
4859
  # @return [String]
4797
- attr_accessor :entity_type
4860
+ attr_accessor :answer_relevance
4798
4861
 
4799
- # The [Dialogflow system entity formatted value ](https://cloud.google.com/
4800
- # dialogflow/docs/reference/system-entities) of this message part. For example
4801
- # for a system entity of type `@sys.unit-currency`, this may contain: ` "amount":
4802
- # 5, "currency": "USD" `
4803
- # Corresponds to the JSON property `formattedValue`
4804
- # @return [Object]
4805
- attr_accessor :formatted_value
4862
+ # Optional. Whether or not the information in the document is correct. For
4863
+ # example: * Query: "Can I return the package in 2 days once received?" *
4864
+ # Suggested document says: "Items must be returned/exchanged within 60 days of
4865
+ # the purchase date." * Ground truth: "No return or exchange is allowed." * [
4866
+ # document_correctness]: INCORRECT
4867
+ # Corresponds to the JSON property `documentCorrectness`
4868
+ # @return [String]
4869
+ attr_accessor :document_correctness
4806
4870
 
4807
- # A part of a message possibly annotated with an entity.
4808
- # Corresponds to the JSON property `text`
4871
+ # Optional. Whether or not the suggested document is efficient. For example, if
4872
+ # the document is poorly written, hard to understand, hard to use or too long to
4873
+ # find useful information, document_efficiency is DocumentEfficiency.INEFFICIENT.
4874
+ # Corresponds to the JSON property `documentEfficiency`
4809
4875
  # @return [String]
4810
- attr_accessor :text
4876
+ attr_accessor :document_efficiency
4811
4877
 
4812
4878
  def initialize(**args)
4813
4879
  update!(**args)
@@ -4815,28 +4881,25 @@ module Google
4815
4881
 
4816
4882
  # Update properties of this object
4817
4883
  def update!(**args)
4818
- @entity_type = args[:entity_type] if args.key?(:entity_type)
4819
- @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
4820
- @text = args[:text] if args.key?(:text)
4884
+ @answer_relevance = args[:answer_relevance] if args.key?(:answer_relevance)
4885
+ @document_correctness = args[:document_correctness] if args.key?(:document_correctness)
4886
+ @document_efficiency = args[:document_efficiency] if args.key?(:document_efficiency)
4821
4887
  end
4822
4888
  end
4823
4889
 
4824
- # The request message for EntityTypes.BatchCreateEntities.
4825
- class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
4890
+ # Represents a record of a human agent assist answer.
4891
+ class GoogleCloudDialogflowV2AgentAssistantRecord
4826
4892
  include Google::Apis::Core::Hashable
4827
4893
 
4828
- # Required. The entities to create.
4829
- # Corresponds to the JSON property `entities`
4830
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
4831
- attr_accessor :entities
4894
+ # Represents article answer.
4895
+ # Corresponds to the JSON property `articleSuggestionAnswer`
4896
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer]
4897
+ attr_accessor :article_suggestion_answer
4832
4898
 
4833
- # Optional. The language used to access language-specific data. If not specified,
4834
- # the agent's default language is used. For more information, see [Multilingual
4835
- # intent and entity data](https://cloud.google.com/dialogflow/docs/agents-
4836
- # multilingual#intent-entity).
4837
- # Corresponds to the JSON property `languageCode`
4838
- # @return [String]
4839
- attr_accessor :language_code
4899
+ # Represents answer from "frequently asked questions".
4900
+ # Corresponds to the JSON property `faqAnswer`
4901
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer]
4902
+ attr_accessor :faq_answer
4840
4903
 
4841
4904
  def initialize(**args)
4842
4905
  update!(**args)
@@ -4844,28 +4907,51 @@ module Google
4844
4907
 
4845
4908
  # Update properties of this object
4846
4909
  def update!(**args)
4847
- @entities = args[:entities] if args.key?(:entities)
4848
- @language_code = args[:language_code] if args.key?(:language_code)
4910
+ @article_suggestion_answer = args[:article_suggestion_answer] if args.key?(:article_suggestion_answer)
4911
+ @faq_answer = args[:faq_answer] if args.key?(:faq_answer)
4849
4912
  end
4850
4913
  end
4851
4914
 
4852
- # The request message for EntityTypes.BatchDeleteEntities.
4853
- class GoogleCloudDialogflowV2BatchDeleteEntitiesRequest
4915
+ # The request message for Participants.AnalyzeContent.
4916
+ class GoogleCloudDialogflowV2AnalyzeContentRequest
4854
4917
  include Google::Apis::Core::Hashable
4855
4918
 
4856
- # Required. The reference `values` of the entities to delete. Note that these
4857
- # are not fully-qualified names, i.e. they don't start with `projects/`.
4858
- # Corresponds to the JSON property `entityValues`
4859
- # @return [Array<String>]
4860
- attr_accessor :entity_values
4919
+ # Represents the natural language speech audio to be processed.
4920
+ # Corresponds to the JSON property `audioInput`
4921
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AudioInput]
4922
+ attr_accessor :audio_input
4861
4923
 
4862
- # Optional. The language used to access language-specific data. If not specified,
4863
- # the agent's default language is used. For more information, see [Multilingual
4864
- # intent and entity data](https://cloud.google.com/dialogflow/docs/agents-
4865
- # multilingual#intent-entity).
4866
- # Corresponds to the JSON property `languageCode`
4924
+ # Events allow for matching intents by event name instead of the natural
4925
+ # language input. For instance, input `` can trigger a personalized welcome
4926
+ # response. The parameter `name` may be used by the agent in the response: `"
4927
+ # Hello #welcome_event.name! What can I do for you today?"`.
4928
+ # Corresponds to the JSON property `eventInput`
4929
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EventInput]
4930
+ attr_accessor :event_input
4931
+
4932
+ # Represents the parameters of the conversational query.
4933
+ # Corresponds to the JSON property `queryParams`
4934
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters]
4935
+ attr_accessor :query_params
4936
+
4937
+ # Instructs the speech synthesizer on how to generate the output audio content.
4938
+ # If this audio config is supplied in a request, it overrides all existing text-
4939
+ # to-speech settings applied to the agent.
4940
+ # Corresponds to the JSON property `replyAudioConfig`
4941
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
4942
+ attr_accessor :reply_audio_config
4943
+
4944
+ # A unique identifier for this request. Restricted to 36 ASCII characters. A
4945
+ # random UUID is recommended. This request is only idempotent if a `request_id`
4946
+ # is provided.
4947
+ # Corresponds to the JSON property `requestId`
4867
4948
  # @return [String]
4868
- attr_accessor :language_code
4949
+ attr_accessor :request_id
4950
+
4951
+ # Represents the natural language text to be processed.
4952
+ # Corresponds to the JSON property `textInput`
4953
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput]
4954
+ attr_accessor :text_input
4869
4955
 
4870
4956
  def initialize(**args)
4871
4957
  update!(**args)
@@ -4873,40 +4959,58 @@ module Google
4873
4959
 
4874
4960
  # Update properties of this object
4875
4961
  def update!(**args)
4876
- @entity_values = args[:entity_values] if args.key?(:entity_values)
4877
- @language_code = args[:language_code] if args.key?(:language_code)
4962
+ @audio_input = args[:audio_input] if args.key?(:audio_input)
4963
+ @event_input = args[:event_input] if args.key?(:event_input)
4964
+ @query_params = args[:query_params] if args.key?(:query_params)
4965
+ @reply_audio_config = args[:reply_audio_config] if args.key?(:reply_audio_config)
4966
+ @request_id = args[:request_id] if args.key?(:request_id)
4967
+ @text_input = args[:text_input] if args.key?(:text_input)
4878
4968
  end
4879
4969
  end
4880
4970
 
4881
- # The request message for EntityTypes.BatchDeleteEntityTypes.
4882
- class GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest
4971
+ # The response message for Participants.AnalyzeContent.
4972
+ class GoogleCloudDialogflowV2AnalyzeContentResponse
4883
4973
  include Google::Apis::Core::Hashable
4884
4974
 
4885
- # Required. The names entity types to delete. All names must point to the same
4886
- # agent as `parent`.
4887
- # Corresponds to the JSON property `entityTypeNames`
4888
- # @return [Array<String>]
4889
- attr_accessor :entity_type_names
4975
+ # Represents a response from an automated agent.
4976
+ # Corresponds to the JSON property `automatedAgentReply`
4977
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AutomatedAgentReply]
4978
+ attr_accessor :automated_agent_reply
4890
4979
 
4891
- def initialize(**args)
4892
- update!(**args)
4893
- end
4980
+ # The message in the response that indicates the parameters of DTMF.
4981
+ # Corresponds to the JSON property `dtmfParameters`
4982
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DtmfParameters]
4983
+ attr_accessor :dtmf_parameters
4894
4984
 
4895
- # Update properties of this object
4896
- def update!(**args)
4897
- @entity_type_names = args[:entity_type_names] if args.key?(:entity_type_names)
4898
- end
4899
- end
4985
+ # The suggestions for end user. The order is the same as
4986
+ # HumanAgentAssistantConfig.SuggestionConfig.feature_configs of
4987
+ # HumanAgentAssistantConfig.end_user_suggestion_config.
4988
+ # Corresponds to the JSON property `endUserSuggestionResults`
4989
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult>]
4990
+ attr_accessor :end_user_suggestion_results
4900
4991
 
4901
- # The request message for Intents.BatchDeleteIntents.
4902
- class GoogleCloudDialogflowV2BatchDeleteIntentsRequest
4903
- include Google::Apis::Core::Hashable
4992
+ # The suggestions for most recent human agent. The order is the same as
4993
+ # HumanAgentAssistantConfig.SuggestionConfig.feature_configs of
4994
+ # HumanAgentAssistantConfig.human_agent_suggestion_config.
4995
+ # Corresponds to the JSON property `humanAgentSuggestionResults`
4996
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult>]
4997
+ attr_accessor :human_agent_suggestion_results
4904
4998
 
4905
- # Required. The collection of intents to delete. Only intent `name` must be
4906
- # filled in.
4907
- # Corresponds to the JSON property `intents`
4908
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent>]
4909
- attr_accessor :intents
4999
+ # Represents a message posted into a conversation.
5000
+ # Corresponds to the JSON property `message`
5001
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Message]
5002
+ attr_accessor :message
5003
+
5004
+ # Represents the natural language speech audio to be played to the end user.
5005
+ # Corresponds to the JSON property `replyAudio`
5006
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudio]
5007
+ attr_accessor :reply_audio
5008
+
5009
+ # The output text content. This field is set if the automated agent responded
5010
+ # with text to show to the user.
5011
+ # Corresponds to the JSON property `replyText`
5012
+ # @return [String]
5013
+ attr_accessor :reply_text
4910
5014
 
4911
5015
  def initialize(**args)
4912
5016
  update!(**args)
@@ -4914,31 +5018,41 @@ module Google
4914
5018
 
4915
5019
  # Update properties of this object
4916
5020
  def update!(**args)
4917
- @intents = args[:intents] if args.key?(:intents)
5021
+ @automated_agent_reply = args[:automated_agent_reply] if args.key?(:automated_agent_reply)
5022
+ @dtmf_parameters = args[:dtmf_parameters] if args.key?(:dtmf_parameters)
5023
+ @end_user_suggestion_results = args[:end_user_suggestion_results] if args.key?(:end_user_suggestion_results)
5024
+ @human_agent_suggestion_results = args[:human_agent_suggestion_results] if args.key?(:human_agent_suggestion_results)
5025
+ @message = args[:message] if args.key?(:message)
5026
+ @reply_audio = args[:reply_audio] if args.key?(:reply_audio)
5027
+ @reply_text = args[:reply_text] if args.key?(:reply_text)
4918
5028
  end
4919
5029
  end
4920
5030
 
4921
- # The request message for EntityTypes.BatchUpdateEntities.
4922
- class GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
5031
+ # Represents a part of a message possibly annotated with an entity. The part can
5032
+ # be an entity or purely a part of the message between two entities or message
5033
+ # start/end.
5034
+ class GoogleCloudDialogflowV2AnnotatedMessagePart
4923
5035
  include Google::Apis::Core::Hashable
4924
5036
 
4925
- # Required. The entities to update or create.
4926
- # Corresponds to the JSON property `entities`
4927
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
4928
- attr_accessor :entities
4929
-
4930
- # Optional. The language used to access language-specific data. If not specified,
4931
- # the agent's default language is used. For more information, see [Multilingual
4932
- # intent and entity data](https://cloud.google.com/dialogflow/docs/agents-
4933
- # multilingual#intent-entity).
4934
- # Corresponds to the JSON property `languageCode`
5037
+ # The [Dialogflow system entity type](https://cloud.google.com/dialogflow/docs/
5038
+ # reference/system-entities) of this message part. If this is empty, Dialogflow
5039
+ # could not annotate the phrase part with a system entity.
5040
+ # Corresponds to the JSON property `entityType`
4935
5041
  # @return [String]
4936
- attr_accessor :language_code
5042
+ attr_accessor :entity_type
4937
5043
 
4938
- # Optional. The mask to control which fields get updated.
4939
- # Corresponds to the JSON property `updateMask`
5044
+ # The [Dialogflow system entity formatted value ](https://cloud.google.com/
5045
+ # dialogflow/docs/reference/system-entities) of this message part. For example
5046
+ # for a system entity of type `@sys.unit-currency`, this may contain: ` "amount":
5047
+ # 5, "currency": "USD" `
5048
+ # Corresponds to the JSON property `formattedValue`
5049
+ # @return [Object]
5050
+ attr_accessor :formatted_value
5051
+
5052
+ # A part of a message possibly annotated with an entity.
5053
+ # Corresponds to the JSON property `text`
4940
5054
  # @return [String]
4941
- attr_accessor :update_mask
5055
+ attr_accessor :text
4942
5056
 
4943
5057
  def initialize(**args)
4944
5058
  update!(**args)
@@ -4946,40 +5060,50 @@ module Google
4946
5060
 
4947
5061
  # Update properties of this object
4948
5062
  def update!(**args)
4949
- @entities = args[:entities] if args.key?(:entities)
4950
- @language_code = args[:language_code] if args.key?(:language_code)
4951
- @update_mask = args[:update_mask] if args.key?(:update_mask)
5063
+ @entity_type = args[:entity_type] if args.key?(:entity_type)
5064
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
5065
+ @text = args[:text] if args.key?(:text)
4952
5066
  end
4953
5067
  end
4954
5068
 
4955
- # The request message for EntityTypes.BatchUpdateEntityTypes.
4956
- class GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest
5069
+ # Represents feedback the customer has about the quality & correctness of a
5070
+ # certain answer in a conversation.
5071
+ class GoogleCloudDialogflowV2AnswerFeedback
4957
5072
  include Google::Apis::Core::Hashable
4958
5073
 
4959
- # This message is a wrapper around a collection of entity types.
4960
- # Corresponds to the JSON property `entityTypeBatchInline`
4961
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeBatch]
4962
- attr_accessor :entity_type_batch_inline
5074
+ # Detail feedback of Agent Assist result.
5075
+ # Corresponds to the JSON property `agentAssistantDetailFeedback`
5076
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedback]
5077
+ attr_accessor :agent_assistant_detail_feedback
4963
5078
 
4964
- # The URI to a Google Cloud Storage file containing entity types to update or
4965
- # create. The file format can either be a serialized proto (of EntityBatch type)
4966
- # or a JSON object. Note: The URI must start with "gs://".
4967
- # Corresponds to the JSON property `entityTypeBatchUri`
5079
+ # Time when the answer/item was clicked.
5080
+ # Corresponds to the JSON property `clickTime`
4968
5081
  # @return [String]
4969
- attr_accessor :entity_type_batch_uri
5082
+ attr_accessor :click_time
4970
5083
 
4971
- # Optional. The language used to access language-specific data. If not specified,
4972
- # the agent's default language is used. For more information, see [Multilingual
4973
- # intent and entity data](https://cloud.google.com/dialogflow/docs/agents-
4974
- # multilingual#intent-entity).
4975
- # Corresponds to the JSON property `languageCode`
5084
+ # Indicates whether the answer/item was clicked by the human agent or not.
5085
+ # Default to false.
5086
+ # Corresponds to the JSON property `clicked`
5087
+ # @return [Boolean]
5088
+ attr_accessor :clicked
5089
+ alias_method :clicked?, :clicked
5090
+
5091
+ # The correctness level of the specific answer.
5092
+ # Corresponds to the JSON property `correctnessLevel`
4976
5093
  # @return [String]
4977
- attr_accessor :language_code
5094
+ attr_accessor :correctness_level
4978
5095
 
4979
- # Optional. The mask to control which fields get updated.
4980
- # Corresponds to the JSON property `updateMask`
5096
+ # Time when the answer/item was displayed.
5097
+ # Corresponds to the JSON property `displayTime`
4981
5098
  # @return [String]
4982
- attr_accessor :update_mask
5099
+ attr_accessor :display_time
5100
+
5101
+ # Indicates whether the answer/item was displayed to the human agent in the
5102
+ # agent desktop UI. Default to false.
5103
+ # Corresponds to the JSON property `displayed`
5104
+ # @return [Boolean]
5105
+ attr_accessor :displayed
5106
+ alias_method :displayed?, :displayed
4983
5107
 
4984
5108
  def initialize(**args)
4985
5109
  update!(**args)
@@ -4987,21 +5111,46 @@ module Google
4987
5111
 
4988
5112
  # Update properties of this object
4989
5113
  def update!(**args)
4990
- @entity_type_batch_inline = args[:entity_type_batch_inline] if args.key?(:entity_type_batch_inline)
4991
- @entity_type_batch_uri = args[:entity_type_batch_uri] if args.key?(:entity_type_batch_uri)
4992
- @language_code = args[:language_code] if args.key?(:language_code)
4993
- @update_mask = args[:update_mask] if args.key?(:update_mask)
5114
+ @agent_assistant_detail_feedback = args[:agent_assistant_detail_feedback] if args.key?(:agent_assistant_detail_feedback)
5115
+ @click_time = args[:click_time] if args.key?(:click_time)
5116
+ @clicked = args[:clicked] if args.key?(:clicked)
5117
+ @correctness_level = args[:correctness_level] if args.key?(:correctness_level)
5118
+ @display_time = args[:display_time] if args.key?(:display_time)
5119
+ @displayed = args[:displayed] if args.key?(:displayed)
4994
5120
  end
4995
5121
  end
4996
5122
 
4997
- # The response message for EntityTypes.BatchUpdateEntityTypes.
4998
- class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
5123
+ # Answer records are records to manage answer history and feedbacks for
5124
+ # Dialogflow. Currently, answer record includes: - human agent assistant article
5125
+ # suggestion - human agent assistant faq article It doesn't include: - `
5126
+ # DetectIntent` intent matching - `DetectIntent` knowledge Answer records are
5127
+ # not related to the conversation history in the Dialogflow Console. A Record is
5128
+ # generated even when the end-user disables conversation history in the console.
5129
+ # Records are created when there's a human agent assistant suggestion generated.
5130
+ # A typical workflow for customers provide feedback to an answer is: 1. For
5131
+ # human agent assistant, customers get suggestion via ListSuggestions API.
5132
+ # Together with the answers, AnswerRecord.name are returned to the customers. 2.
5133
+ # The customer uses the AnswerRecord.name to call the UpdateAnswerRecord method
5134
+ # to send feedback about a specific answer that they believe is wrong.
5135
+ class GoogleCloudDialogflowV2AnswerRecord
4999
5136
  include Google::Apis::Core::Hashable
5000
5137
 
5001
- # The collection of updated or created entity types.
5002
- # Corresponds to the JSON property `entityTypes`
5003
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType>]
5004
- attr_accessor :entity_types
5138
+ # Represents a record of a human agent assist answer.
5139
+ # Corresponds to the JSON property `agentAssistantRecord`
5140
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantRecord]
5141
+ attr_accessor :agent_assistant_record
5142
+
5143
+ # Represents feedback the customer has about the quality & correctness of a
5144
+ # certain answer in a conversation.
5145
+ # Corresponds to the JSON property `answerFeedback`
5146
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnswerFeedback]
5147
+ attr_accessor :answer_feedback
5148
+
5149
+ # The unique identifier of this answer record. Format: `projects//locations//
5150
+ # answerRecords/`.
5151
+ # Corresponds to the JSON property `name`
5152
+ # @return [String]
5153
+ attr_accessor :name
5005
5154
 
5006
5155
  def initialize(**args)
5007
5156
  update!(**args)
@@ -5009,30 +5158,283 @@ module Google
5009
5158
 
5010
5159
  # Update properties of this object
5011
5160
  def update!(**args)
5012
- @entity_types = args[:entity_types] if args.key?(:entity_types)
5161
+ @agent_assistant_record = args[:agent_assistant_record] if args.key?(:agent_assistant_record)
5162
+ @answer_feedback = args[:answer_feedback] if args.key?(:answer_feedback)
5163
+ @name = args[:name] if args.key?(:name)
5013
5164
  end
5014
5165
  end
5015
5166
 
5016
- #
5017
- class GoogleCloudDialogflowV2BatchUpdateIntentsRequest
5167
+ # Represents article answer.
5168
+ class GoogleCloudDialogflowV2ArticleAnswer
5018
5169
  include Google::Apis::Core::Hashable
5019
5170
 
5020
- # This message is a wrapper around a collection of intents.
5021
- # Corresponds to the JSON property `intentBatchInline`
5022
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentBatch]
5023
- attr_accessor :intent_batch_inline
5171
+ # The name of answer record, in the format of "projects//locations//
5172
+ # answerRecords/"
5173
+ # Corresponds to the JSON property `answerRecord`
5174
+ # @return [String]
5175
+ attr_accessor :answer_record
5024
5176
 
5025
- # The URI to a Google Cloud Storage file containing intents to update or create.
5026
- # The file format can either be a serialized proto (of IntentBatch type) or JSON
5027
- # object. Note: The URI must start with "gs://".
5028
- # Corresponds to the JSON property `intentBatchUri`
5177
+ # Article match confidence. The system's confidence score that this article is a
5178
+ # good match for this conversation, as a value from 0.0 (completely uncertain)
5179
+ # to 1.0 (completely certain).
5180
+ # Corresponds to the JSON property `confidence`
5181
+ # @return [Float]
5182
+ attr_accessor :confidence
5183
+
5184
+ # A map that contains metadata about the answer and the document from which it
5185
+ # originates.
5186
+ # Corresponds to the JSON property `metadata`
5187
+ # @return [Hash<String,String>]
5188
+ attr_accessor :metadata
5189
+
5190
+ # Article snippets.
5191
+ # Corresponds to the JSON property `snippets`
5192
+ # @return [Array<String>]
5193
+ attr_accessor :snippets
5194
+
5195
+ # The article title.
5196
+ # Corresponds to the JSON property `title`
5029
5197
  # @return [String]
5030
- attr_accessor :intent_batch_uri
5198
+ attr_accessor :title
5031
5199
 
5032
- # Optional. The resource view to apply to the returned intent.
5033
- # Corresponds to the JSON property `intentView`
5200
+ # The article URI.
5201
+ # Corresponds to the JSON property `uri`
5034
5202
  # @return [String]
5035
- attr_accessor :intent_view
5203
+ attr_accessor :uri
5204
+
5205
+ def initialize(**args)
5206
+ update!(**args)
5207
+ end
5208
+
5209
+ # Update properties of this object
5210
+ def update!(**args)
5211
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
5212
+ @confidence = args[:confidence] if args.key?(:confidence)
5213
+ @metadata = args[:metadata] if args.key?(:metadata)
5214
+ @snippets = args[:snippets] if args.key?(:snippets)
5215
+ @title = args[:title] if args.key?(:title)
5216
+ @uri = args[:uri] if args.key?(:uri)
5217
+ end
5218
+ end
5219
+
5220
+ # Represents the natural language speech audio to be processed.
5221
+ class GoogleCloudDialogflowV2AudioInput
5222
+ include Google::Apis::Core::Hashable
5223
+
5224
+ # Required. The natural language speech audio to be processed. A single request
5225
+ # can contain up to 1 minute of speech audio data. The transcribed text cannot
5226
+ # contain more than 256 bytes.
5227
+ # Corresponds to the JSON property `audio`
5228
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5229
+ # @return [String]
5230
+ attr_accessor :audio
5231
+
5232
+ # Instructs the speech recognizer how to process the audio content.
5233
+ # Corresponds to the JSON property `config`
5234
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig]
5235
+ attr_accessor :config
5236
+
5237
+ def initialize(**args)
5238
+ update!(**args)
5239
+ end
5240
+
5241
+ # Update properties of this object
5242
+ def update!(**args)
5243
+ @audio = args[:audio] if args.key?(:audio)
5244
+ @config = args[:config] if args.key?(:config)
5245
+ end
5246
+ end
5247
+
5248
+ # Defines the Automated Agent to connect to a conversation.
5249
+ class GoogleCloudDialogflowV2AutomatedAgentConfig
5250
+ include Google::Apis::Core::Hashable
5251
+
5252
+ # Required. ID of the Dialogflow agent environment to use. This project needs to
5253
+ # either be the same project as the conversation or you need to grant `service-@
5254
+ # gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API Service Agent`
5255
+ # role in this project. Format: `projects//locations//agent/environments/`. If
5256
+ # environment is not specified, the default `draft` environment is used. Refer
5257
+ # to [DetectIntentRequest](/dialogflow/docs/reference/rpc/google.cloud.
5258
+ # dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest) for more details.
5259
+ # Corresponds to the JSON property `agent`
5260
+ # @return [String]
5261
+ attr_accessor :agent
5262
+
5263
+ def initialize(**args)
5264
+ update!(**args)
5265
+ end
5266
+
5267
+ # Update properties of this object
5268
+ def update!(**args)
5269
+ @agent = args[:agent] if args.key?(:agent)
5270
+ end
5271
+ end
5272
+
5273
+ # Represents a response from an automated agent.
5274
+ class GoogleCloudDialogflowV2AutomatedAgentReply
5275
+ include Google::Apis::Core::Hashable
5276
+
5277
+ # The message returned from the DetectIntent method.
5278
+ # Corresponds to the JSON property `detectIntentResponse`
5279
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse]
5280
+ attr_accessor :detect_intent_response
5281
+
5282
+ def initialize(**args)
5283
+ update!(**args)
5284
+ end
5285
+
5286
+ # Update properties of this object
5287
+ def update!(**args)
5288
+ @detect_intent_response = args[:detect_intent_response] if args.key?(:detect_intent_response)
5289
+ end
5290
+ end
5291
+
5292
+ # The request message for EntityTypes.BatchCreateEntities.
5293
+ class GoogleCloudDialogflowV2BatchCreateEntitiesRequest
5294
+ include Google::Apis::Core::Hashable
5295
+
5296
+ # Required. The entities to create.
5297
+ # Corresponds to the JSON property `entities`
5298
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
5299
+ attr_accessor :entities
5300
+
5301
+ # Optional. The language used to access language-specific data. If not specified,
5302
+ # the agent's default language is used. For more information, see [Multilingual
5303
+ # intent and entity data](https://cloud.google.com/dialogflow/docs/agents-
5304
+ # multilingual#intent-entity).
5305
+ # Corresponds to the JSON property `languageCode`
5306
+ # @return [String]
5307
+ attr_accessor :language_code
5308
+
5309
+ def initialize(**args)
5310
+ update!(**args)
5311
+ end
5312
+
5313
+ # Update properties of this object
5314
+ def update!(**args)
5315
+ @entities = args[:entities] if args.key?(:entities)
5316
+ @language_code = args[:language_code] if args.key?(:language_code)
5317
+ end
5318
+ end
5319
+
5320
+ # The request message for EntityTypes.BatchDeleteEntities.
5321
+ class GoogleCloudDialogflowV2BatchDeleteEntitiesRequest
5322
+ include Google::Apis::Core::Hashable
5323
+
5324
+ # Required. The reference `values` of the entities to delete. Note that these
5325
+ # are not fully-qualified names, i.e. they don't start with `projects/`.
5326
+ # Corresponds to the JSON property `entityValues`
5327
+ # @return [Array<String>]
5328
+ attr_accessor :entity_values
5329
+
5330
+ # Optional. The language used to access language-specific data. If not specified,
5331
+ # the agent's default language is used. For more information, see [Multilingual
5332
+ # intent and entity data](https://cloud.google.com/dialogflow/docs/agents-
5333
+ # multilingual#intent-entity).
5334
+ # Corresponds to the JSON property `languageCode`
5335
+ # @return [String]
5336
+ attr_accessor :language_code
5337
+
5338
+ def initialize(**args)
5339
+ update!(**args)
5340
+ end
5341
+
5342
+ # Update properties of this object
5343
+ def update!(**args)
5344
+ @entity_values = args[:entity_values] if args.key?(:entity_values)
5345
+ @language_code = args[:language_code] if args.key?(:language_code)
5346
+ end
5347
+ end
5348
+
5349
+ # The request message for EntityTypes.BatchDeleteEntityTypes.
5350
+ class GoogleCloudDialogflowV2BatchDeleteEntityTypesRequest
5351
+ include Google::Apis::Core::Hashable
5352
+
5353
+ # Required. The names entity types to delete. All names must point to the same
5354
+ # agent as `parent`.
5355
+ # Corresponds to the JSON property `entityTypeNames`
5356
+ # @return [Array<String>]
5357
+ attr_accessor :entity_type_names
5358
+
5359
+ def initialize(**args)
5360
+ update!(**args)
5361
+ end
5362
+
5363
+ # Update properties of this object
5364
+ def update!(**args)
5365
+ @entity_type_names = args[:entity_type_names] if args.key?(:entity_type_names)
5366
+ end
5367
+ end
5368
+
5369
+ # The request message for Intents.BatchDeleteIntents.
5370
+ class GoogleCloudDialogflowV2BatchDeleteIntentsRequest
5371
+ include Google::Apis::Core::Hashable
5372
+
5373
+ # Required. The collection of intents to delete. Only intent `name` must be
5374
+ # filled in.
5375
+ # Corresponds to the JSON property `intents`
5376
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent>]
5377
+ attr_accessor :intents
5378
+
5379
+ def initialize(**args)
5380
+ update!(**args)
5381
+ end
5382
+
5383
+ # Update properties of this object
5384
+ def update!(**args)
5385
+ @intents = args[:intents] if args.key?(:intents)
5386
+ end
5387
+ end
5388
+
5389
+ # The request message for EntityTypes.BatchUpdateEntities.
5390
+ class GoogleCloudDialogflowV2BatchUpdateEntitiesRequest
5391
+ include Google::Apis::Core::Hashable
5392
+
5393
+ # Required. The entities to update or create.
5394
+ # Corresponds to the JSON property `entities`
5395
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
5396
+ attr_accessor :entities
5397
+
5398
+ # Optional. The language used to access language-specific data. If not specified,
5399
+ # the agent's default language is used. For more information, see [Multilingual
5400
+ # intent and entity data](https://cloud.google.com/dialogflow/docs/agents-
5401
+ # multilingual#intent-entity).
5402
+ # Corresponds to the JSON property `languageCode`
5403
+ # @return [String]
5404
+ attr_accessor :language_code
5405
+
5406
+ # Optional. The mask to control which fields get updated.
5407
+ # Corresponds to the JSON property `updateMask`
5408
+ # @return [String]
5409
+ attr_accessor :update_mask
5410
+
5411
+ def initialize(**args)
5412
+ update!(**args)
5413
+ end
5414
+
5415
+ # Update properties of this object
5416
+ def update!(**args)
5417
+ @entities = args[:entities] if args.key?(:entities)
5418
+ @language_code = args[:language_code] if args.key?(:language_code)
5419
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
5420
+ end
5421
+ end
5422
+
5423
+ # The request message for EntityTypes.BatchUpdateEntityTypes.
5424
+ class GoogleCloudDialogflowV2BatchUpdateEntityTypesRequest
5425
+ include Google::Apis::Core::Hashable
5426
+
5427
+ # This message is a wrapper around a collection of entity types.
5428
+ # Corresponds to the JSON property `entityTypeBatchInline`
5429
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeBatch]
5430
+ attr_accessor :entity_type_batch_inline
5431
+
5432
+ # The URI to a Google Cloud Storage file containing entity types to update or
5433
+ # create. The file format can either be a serialized proto (of EntityBatch type)
5434
+ # or a JSON object. Note: The URI must start with "gs://".
5435
+ # Corresponds to the JSON property `entityTypeBatchUri`
5436
+ # @return [String]
5437
+ attr_accessor :entity_type_batch_uri
5036
5438
 
5037
5439
  # Optional. The language used to access language-specific data. If not specified,
5038
5440
  # the agent's default language is used. For more information, see [Multilingual
@@ -5042,10 +5444,1136 @@ module Google
5042
5444
  # @return [String]
5043
5445
  attr_accessor :language_code
5044
5446
 
5045
- # Optional. The mask to control which fields get updated.
5046
- # Corresponds to the JSON property `updateMask`
5447
+ # Optional. The mask to control which fields get updated.
5448
+ # Corresponds to the JSON property `updateMask`
5449
+ # @return [String]
5450
+ attr_accessor :update_mask
5451
+
5452
+ def initialize(**args)
5453
+ update!(**args)
5454
+ end
5455
+
5456
+ # Update properties of this object
5457
+ def update!(**args)
5458
+ @entity_type_batch_inline = args[:entity_type_batch_inline] if args.key?(:entity_type_batch_inline)
5459
+ @entity_type_batch_uri = args[:entity_type_batch_uri] if args.key?(:entity_type_batch_uri)
5460
+ @language_code = args[:language_code] if args.key?(:language_code)
5461
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
5462
+ end
5463
+ end
5464
+
5465
+ # The response message for EntityTypes.BatchUpdateEntityTypes.
5466
+ class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
5467
+ include Google::Apis::Core::Hashable
5468
+
5469
+ # The collection of updated or created entity types.
5470
+ # Corresponds to the JSON property `entityTypes`
5471
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType>]
5472
+ attr_accessor :entity_types
5473
+
5474
+ def initialize(**args)
5475
+ update!(**args)
5476
+ end
5477
+
5478
+ # Update properties of this object
5479
+ def update!(**args)
5480
+ @entity_types = args[:entity_types] if args.key?(:entity_types)
5481
+ end
5482
+ end
5483
+
5484
+ #
5485
+ class GoogleCloudDialogflowV2BatchUpdateIntentsRequest
5486
+ include Google::Apis::Core::Hashable
5487
+
5488
+ # This message is a wrapper around a collection of intents.
5489
+ # Corresponds to the JSON property `intentBatchInline`
5490
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentBatch]
5491
+ attr_accessor :intent_batch_inline
5492
+
5493
+ # The URI to a Google Cloud Storage file containing intents to update or create.
5494
+ # The file format can either be a serialized proto (of IntentBatch type) or JSON
5495
+ # object. Note: The URI must start with "gs://".
5496
+ # Corresponds to the JSON property `intentBatchUri`
5497
+ # @return [String]
5498
+ attr_accessor :intent_batch_uri
5499
+
5500
+ # Optional. The resource view to apply to the returned intent.
5501
+ # Corresponds to the JSON property `intentView`
5502
+ # @return [String]
5503
+ attr_accessor :intent_view
5504
+
5505
+ # Optional. The language used to access language-specific data. If not specified,
5506
+ # the agent's default language is used. For more information, see [Multilingual
5507
+ # intent and entity data](https://cloud.google.com/dialogflow/docs/agents-
5508
+ # multilingual#intent-entity).
5509
+ # Corresponds to the JSON property `languageCode`
5510
+ # @return [String]
5511
+ attr_accessor :language_code
5512
+
5513
+ # Optional. The mask to control which fields get updated.
5514
+ # Corresponds to the JSON property `updateMask`
5515
+ # @return [String]
5516
+ attr_accessor :update_mask
5517
+
5518
+ def initialize(**args)
5519
+ update!(**args)
5520
+ end
5521
+
5522
+ # Update properties of this object
5523
+ def update!(**args)
5524
+ @intent_batch_inline = args[:intent_batch_inline] if args.key?(:intent_batch_inline)
5525
+ @intent_batch_uri = args[:intent_batch_uri] if args.key?(:intent_batch_uri)
5526
+ @intent_view = args[:intent_view] if args.key?(:intent_view)
5527
+ @language_code = args[:language_code] if args.key?(:language_code)
5528
+ @update_mask = args[:update_mask] if args.key?(:update_mask)
5529
+ end
5530
+ end
5531
+
5532
+ # The response message for Intents.BatchUpdateIntents.
5533
+ class GoogleCloudDialogflowV2BatchUpdateIntentsResponse
5534
+ include Google::Apis::Core::Hashable
5535
+
5536
+ # The collection of updated or created intents.
5537
+ # Corresponds to the JSON property `intents`
5538
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent>]
5539
+ attr_accessor :intents
5540
+
5541
+ def initialize(**args)
5542
+ update!(**args)
5543
+ end
5544
+
5545
+ # Update properties of this object
5546
+ def update!(**args)
5547
+ @intents = args[:intents] if args.key?(:intents)
5548
+ end
5549
+ end
5550
+
5551
+ # Represents a call matcher that describes criteria for matching incoming SIP
5552
+ # calls to a conversation. When Dialogflow get a SIP call from a third-party
5553
+ # carrier, Dialogflow matches the call to an existing conversation by either: *
5554
+ # Extracting the conversation id from the [Call-Info header](https://tools.ietf.
5555
+ # org/html/rfc3261#section-20.9), e.g. `Call-Info: ;purpose=Goog-ContactCenter-
5556
+ # Conversation`. * Or, if that doesn't work, matching incoming [SIP headers](
5557
+ # https://tools.ietf.org/html/rfc3261#section-7.3) against any CallMatcher for
5558
+ # the conversation. If an incoming SIP call without valid `Call-Info` header
5559
+ # matches to zero or multiple conversations with `CallMatcher`, we reject it. A
5560
+ # call matcher contains equality conditions for SIP headers that all have to be
5561
+ # fulfilled in order for a SIP call to match. The matched SIP headers consist of
5562
+ # well-known headers (`To`, `From`, `Call-ID`) and custom headers. A CallMatcher
5563
+ # is only valid if it specifies: * At least 1 custom header, * or at least 2
5564
+ # well-known headers.
5565
+ class GoogleCloudDialogflowV2CallMatcher
5566
+ include Google::Apis::Core::Hashable
5567
+
5568
+ # Value of the [`Call-ID` header](https://tools.ietf.org/html/rfc3261#section-8.
5569
+ # 1.1.4) to match. If empty or unspecified, we don't match to the [`Call-ID`
5570
+ # header](https://tools.ietf.org/html/rfc3261#section-8.1.1.4).
5571
+ # Corresponds to the JSON property `callIdHeader`
5572
+ # @return [String]
5573
+ attr_accessor :call_id_header
5574
+
5575
+ # Custom SIP headers. See the [description of headers in the RFC](https://tools.
5576
+ # ietf.org/html/rfc3261#section-7.3).
5577
+ # Corresponds to the JSON property `customHeaders`
5578
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CallMatcherCustomHeaders]
5579
+ attr_accessor :custom_headers
5580
+
5581
+ # Value of the [`From` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.
5582
+ # 3) to match. If empty or unspecified, we don't match to the [`From` header](
5583
+ # https://tools.ietf.org/html/rfc3261#section-8.1.1.3).
5584
+ # Corresponds to the JSON property `fromHeader`
5585
+ # @return [String]
5586
+ attr_accessor :from_header
5587
+
5588
+ # Output only. The unique identifier of this call matcher. Format: `projects//
5589
+ # locations//conversations//callMatchers/`.
5590
+ # Corresponds to the JSON property `name`
5591
+ # @return [String]
5592
+ attr_accessor :name
5593
+
5594
+ # Value of the [`To` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.2)
5595
+ # to match. If empty or unspecified, we don't match to the [`To` header](https:/
5596
+ # /tools.ietf.org/html/rfc3261#section-8.1.1.2).
5597
+ # Corresponds to the JSON property `toHeader`
5598
+ # @return [String]
5599
+ attr_accessor :to_header
5600
+
5601
+ def initialize(**args)
5602
+ update!(**args)
5603
+ end
5604
+
5605
+ # Update properties of this object
5606
+ def update!(**args)
5607
+ @call_id_header = args[:call_id_header] if args.key?(:call_id_header)
5608
+ @custom_headers = args[:custom_headers] if args.key?(:custom_headers)
5609
+ @from_header = args[:from_header] if args.key?(:from_header)
5610
+ @name = args[:name] if args.key?(:name)
5611
+ @to_header = args[:to_header] if args.key?(:to_header)
5612
+ end
5613
+ end
5614
+
5615
+ # Custom SIP headers. See the [description of headers in the RFC](https://tools.
5616
+ # ietf.org/html/rfc3261#section-7.3).
5617
+ class GoogleCloudDialogflowV2CallMatcherCustomHeaders
5618
+ include Google::Apis::Core::Hashable
5619
+
5620
+ # Cisco's proprietary `Cisco-Guid` header.
5621
+ # Corresponds to the JSON property `ciscoGuid`
5622
+ # @return [String]
5623
+ attr_accessor :cisco_guid
5624
+
5625
+ def initialize(**args)
5626
+ update!(**args)
5627
+ end
5628
+
5629
+ # Update properties of this object
5630
+ def update!(**args)
5631
+ @cisco_guid = args[:cisco_guid] if args.key?(:cisco_guid)
5632
+ end
5633
+ end
5634
+
5635
+ # The request message for Conversations.CompleteConversation.
5636
+ class GoogleCloudDialogflowV2CompleteConversationRequest
5637
+ include Google::Apis::Core::Hashable
5638
+
5639
+ def initialize(**args)
5640
+ update!(**args)
5641
+ end
5642
+
5643
+ # Update properties of this object
5644
+ def update!(**args)
5645
+ end
5646
+ end
5647
+
5648
+ # Dialogflow contexts are similar to natural language context. If a person says
5649
+ # to you "they are orange", you need context in order to understand what "they"
5650
+ # is referring to. Similarly, for Dialogflow to handle an end-user expression
5651
+ # like that, it needs to be provided with context in order to correctly match an
5652
+ # intent. Using contexts, you can control the flow of a conversation. You can
5653
+ # configure contexts for an intent by setting input and output contexts, which
5654
+ # are identified by string names. When an intent is matched, any configured
5655
+ # output contexts for that intent become active. While any contexts are active,
5656
+ # Dialogflow is more likely to match intents that are configured with input
5657
+ # contexts that correspond to the currently active contexts. For more
5658
+ # information about context, see the [Contexts guide](https://cloud.google.com/
5659
+ # dialogflow/docs/contexts-overview).
5660
+ class GoogleCloudDialogflowV2Context
5661
+ include Google::Apis::Core::Hashable
5662
+
5663
+ # Optional. The number of conversational query requests after which the context
5664
+ # expires. The default is `0`. If set to `0`, the context expires immediately.
5665
+ # Contexts expire automatically after 20 minutes if there are no matching
5666
+ # queries.
5667
+ # Corresponds to the JSON property `lifespanCount`
5668
+ # @return [Fixnum]
5669
+ attr_accessor :lifespan_count
5670
+
5671
+ # Required. The unique identifier of the context. Format: `projects//agent/
5672
+ # sessions//contexts/`, or `projects//agent/environments//users//sessions//
5673
+ # contexts/`. The `Context ID` is always converted to lowercase, may only
5674
+ # contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `
5675
+ # Environment ID` is not specified, we assume default 'draft' environment. If `
5676
+ # User ID` is not specified, we assume default '-' user. The following context
5677
+ # names are reserved for internal use by Dialogflow. You should not use these
5678
+ # contexts or create contexts with these names: * `__system_counters__` * `*
5679
+ # _id_dialog_context` * `*_dialog_params_size`
5680
+ # Corresponds to the JSON property `name`
5681
+ # @return [String]
5682
+ attr_accessor :name
5683
+
5684
+ # Optional. The collection of parameters associated with this context. Depending
5685
+ # on your protocol or client library language, this is a map, associative array,
5686
+ # symbol table, dictionary, or JSON object composed of a collection of (MapKey,
5687
+ # MapValue) pairs: - MapKey type: string - MapKey value: parameter name -
5688
+ # MapValue type: - If parameter's entity type is a composite entity: map - Else:
5689
+ # depending on parameter value type, could be one of string, number, boolean,
5690
+ # null, list or map - MapValue value: - If parameter's entity type is a
5691
+ # composite entity: map from composite entity property names to property values -
5692
+ # Else: parameter value
5693
+ # Corresponds to the JSON property `parameters`
5694
+ # @return [Hash<String,Object>]
5695
+ attr_accessor :parameters
5696
+
5697
+ def initialize(**args)
5698
+ update!(**args)
5699
+ end
5700
+
5701
+ # Update properties of this object
5702
+ def update!(**args)
5703
+ @lifespan_count = args[:lifespan_count] if args.key?(:lifespan_count)
5704
+ @name = args[:name] if args.key?(:name)
5705
+ @parameters = args[:parameters] if args.key?(:parameters)
5706
+ end
5707
+ end
5708
+
5709
+ # Represents a conversation. A conversation is an interaction between an agent,
5710
+ # including live agents and Dialogflow agents, and a support customer.
5711
+ # Conversations can include phone calls and text-based chat sessions.
5712
+ class GoogleCloudDialogflowV2Conversation
5713
+ include Google::Apis::Core::Hashable
5714
+
5715
+ # Required. The Conversation Profile to be used to configure this Conversation.
5716
+ # This field cannot be updated. Format: `projects//locations//
5717
+ # conversationProfiles/`.
5718
+ # Corresponds to the JSON property `conversationProfile`
5719
+ # @return [String]
5720
+ attr_accessor :conversation_profile
5721
+
5722
+ # The stage of a conversation. It indicates whether the virtual agent or a human
5723
+ # agent is handling the conversation. If the conversation is created with the
5724
+ # conversation profile that has Dialogflow config set, defaults to
5725
+ # ConversationStage.VIRTUAL_AGENT_STAGE; Otherwise, defaults to
5726
+ # ConversationStage.HUMAN_ASSIST_STAGE. If the conversation is created with the
5727
+ # conversation profile that has Dialogflow config set but explicitly sets
5728
+ # conversation_stage to ConversationStage.HUMAN_ASSIST_STAGE, it skips
5729
+ # ConversationStage.VIRTUAL_AGENT_STAGE stage and directly goes to
5730
+ # ConversationStage.HUMAN_ASSIST_STAGE.
5731
+ # Corresponds to the JSON property `conversationStage`
5732
+ # @return [String]
5733
+ attr_accessor :conversation_stage
5734
+
5735
+ # Output only. The time the conversation was finished.
5736
+ # Corresponds to the JSON property `endTime`
5737
+ # @return [String]
5738
+ attr_accessor :end_time
5739
+
5740
+ # Output only. The current state of the Conversation.
5741
+ # Corresponds to the JSON property `lifecycleState`
5742
+ # @return [String]
5743
+ attr_accessor :lifecycle_state
5744
+
5745
+ # Output only. The unique identifier of this conversation. Format: `projects//
5746
+ # locations//conversations/`.
5747
+ # Corresponds to the JSON property `name`
5748
+ # @return [String]
5749
+ attr_accessor :name
5750
+
5751
+ # Represents a phone number for telephony integration. It allows for connecting
5752
+ # a particular conversation over telephony.
5753
+ # Corresponds to the JSON property `phoneNumber`
5754
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationPhoneNumber]
5755
+ attr_accessor :phone_number
5756
+
5757
+ # Output only. The time the conversation was started.
5758
+ # Corresponds to the JSON property `startTime`
5759
+ # @return [String]
5760
+ attr_accessor :start_time
5761
+
5762
+ def initialize(**args)
5763
+ update!(**args)
5764
+ end
5765
+
5766
+ # Update properties of this object
5767
+ def update!(**args)
5768
+ @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
5769
+ @conversation_stage = args[:conversation_stage] if args.key?(:conversation_stage)
5770
+ @end_time = args[:end_time] if args.key?(:end_time)
5771
+ @lifecycle_state = args[:lifecycle_state] if args.key?(:lifecycle_state)
5772
+ @name = args[:name] if args.key?(:name)
5773
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
5774
+ @start_time = args[:start_time] if args.key?(:start_time)
5775
+ end
5776
+ end
5777
+
5778
+ # Represents a notification sent to Pub/Sub subscribers for conversation
5779
+ # lifecycle events.
5780
+ class GoogleCloudDialogflowV2ConversationEvent
5781
+ include Google::Apis::Core::Hashable
5782
+
5783
+ # The unique identifier of the conversation this notification refers to. Format:
5784
+ # `projects//conversations/`.
5785
+ # Corresponds to the JSON property `conversation`
5786
+ # @return [String]
5787
+ attr_accessor :conversation
5788
+
5789
+ # The `Status` type defines a logical error model that is suitable for different
5790
+ # programming environments, including REST APIs and RPC APIs. It is used by [
5791
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
5792
+ # data: error code, error message, and error details. You can find out more
5793
+ # about this error model and how to work with it in the [API Design Guide](https:
5794
+ # //cloud.google.com/apis/design/errors).
5795
+ # Corresponds to the JSON property `errorStatus`
5796
+ # @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
5797
+ attr_accessor :error_status
5798
+
5799
+ # Represents a message posted into a conversation.
5800
+ # Corresponds to the JSON property `newMessagePayload`
5801
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Message]
5802
+ attr_accessor :new_message_payload
5803
+
5804
+ # The type of the event that this notification refers to.
5805
+ # Corresponds to the JSON property `type`
5806
+ # @return [String]
5807
+ attr_accessor :type
5808
+
5809
+ def initialize(**args)
5810
+ update!(**args)
5811
+ end
5812
+
5813
+ # Update properties of this object
5814
+ def update!(**args)
5815
+ @conversation = args[:conversation] if args.key?(:conversation)
5816
+ @error_status = args[:error_status] if args.key?(:error_status)
5817
+ @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
5818
+ @type = args[:type] if args.key?(:type)
5819
+ end
5820
+ end
5821
+
5822
+ # Represents a phone number for telephony integration. It allows for connecting
5823
+ # a particular conversation over telephony.
5824
+ class GoogleCloudDialogflowV2ConversationPhoneNumber
5825
+ include Google::Apis::Core::Hashable
5826
+
5827
+ # Output only. The phone number to connect to this conversation.
5828
+ # Corresponds to the JSON property `phoneNumber`
5829
+ # @return [String]
5830
+ attr_accessor :phone_number
5831
+
5832
+ def initialize(**args)
5833
+ update!(**args)
5834
+ end
5835
+
5836
+ # Update properties of this object
5837
+ def update!(**args)
5838
+ @phone_number = args[:phone_number] if args.key?(:phone_number)
5839
+ end
5840
+ end
5841
+
5842
+ # Defines the services to connect to incoming Dialogflow conversations.
5843
+ class GoogleCloudDialogflowV2ConversationProfile
5844
+ include Google::Apis::Core::Hashable
5845
+
5846
+ # Defines the Automated Agent to connect to a conversation.
5847
+ # Corresponds to the JSON property `automatedAgentConfig`
5848
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AutomatedAgentConfig]
5849
+ attr_accessor :automated_agent_config
5850
+
5851
+ # Output only. Create time of the conversation profile.
5852
+ # Corresponds to the JSON property `createTime`
5853
+ # @return [String]
5854
+ attr_accessor :create_time
5855
+
5856
+ # Required. Human readable name for this profile. Max length 1024 bytes.
5857
+ # Corresponds to the JSON property `displayName`
5858
+ # @return [String]
5859
+ attr_accessor :display_name
5860
+
5861
+ # Defines the Human Agent Assist to connect to a conversation.
5862
+ # Corresponds to the JSON property `humanAgentAssistantConfig`
5863
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfig]
5864
+ attr_accessor :human_agent_assistant_config
5865
+
5866
+ # Defines the hand off to a live agent, typically on which external agent
5867
+ # service provider to connect to a conversation.
5868
+ # Corresponds to the JSON property `humanAgentHandoffConfig`
5869
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfig]
5870
+ attr_accessor :human_agent_handoff_config
5871
+
5872
+ # Language which represents the conversationProfile. If unspecified, the default
5873
+ # language code en-us applies. Users need to create a ConversationProfile for
5874
+ # each language they want to support.
5875
+ # Corresponds to the JSON property `languageCode`
5876
+ # @return [String]
5877
+ attr_accessor :language_code
5878
+
5879
+ # Defines logging behavior for conversation lifecycle events.
5880
+ # Corresponds to the JSON property `loggingConfig`
5881
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2LoggingConfig]
5882
+ attr_accessor :logging_config
5883
+
5884
+ # Optional. The unique identifier of this conversation profile. Format: `
5885
+ # projects//locations//conversationProfiles/`.
5886
+ # Corresponds to the JSON property `name`
5887
+ # @return [String]
5888
+ attr_accessor :name
5889
+
5890
+ # Defines notification behavior.
5891
+ # Corresponds to the JSON property `newMessageEventNotificationConfig`
5892
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig]
5893
+ attr_accessor :new_message_event_notification_config
5894
+
5895
+ # Defines notification behavior.
5896
+ # Corresponds to the JSON property `notificationConfig`
5897
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig]
5898
+ attr_accessor :notification_config
5899
+
5900
+ # Configures speech transcription for ConversationProfile.
5901
+ # Corresponds to the JSON property `sttConfig`
5902
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechToTextConfig]
5903
+ attr_accessor :stt_config
5904
+
5905
+ # Output only. Update time of the conversation profile.
5906
+ # Corresponds to the JSON property `updateTime`
5907
+ # @return [String]
5908
+ attr_accessor :update_time
5909
+
5910
+ def initialize(**args)
5911
+ update!(**args)
5912
+ end
5913
+
5914
+ # Update properties of this object
5915
+ def update!(**args)
5916
+ @automated_agent_config = args[:automated_agent_config] if args.key?(:automated_agent_config)
5917
+ @create_time = args[:create_time] if args.key?(:create_time)
5918
+ @display_name = args[:display_name] if args.key?(:display_name)
5919
+ @human_agent_assistant_config = args[:human_agent_assistant_config] if args.key?(:human_agent_assistant_config)
5920
+ @human_agent_handoff_config = args[:human_agent_handoff_config] if args.key?(:human_agent_handoff_config)
5921
+ @language_code = args[:language_code] if args.key?(:language_code)
5922
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
5923
+ @name = args[:name] if args.key?(:name)
5924
+ @new_message_event_notification_config = args[:new_message_event_notification_config] if args.key?(:new_message_event_notification_config)
5925
+ @notification_config = args[:notification_config] if args.key?(:notification_config)
5926
+ @stt_config = args[:stt_config] if args.key?(:stt_config)
5927
+ @update_time = args[:update_time] if args.key?(:update_time)
5928
+ end
5929
+ end
5930
+
5931
+ # The request message for Conversations.CreateCallMatcher.
5932
+ class GoogleCloudDialogflowV2CreateCallMatcherRequest
5933
+ include Google::Apis::Core::Hashable
5934
+
5935
+ # Represents a call matcher that describes criteria for matching incoming SIP
5936
+ # calls to a conversation. When Dialogflow get a SIP call from a third-party
5937
+ # carrier, Dialogflow matches the call to an existing conversation by either: *
5938
+ # Extracting the conversation id from the [Call-Info header](https://tools.ietf.
5939
+ # org/html/rfc3261#section-20.9), e.g. `Call-Info: ;purpose=Goog-ContactCenter-
5940
+ # Conversation`. * Or, if that doesn't work, matching incoming [SIP headers](
5941
+ # https://tools.ietf.org/html/rfc3261#section-7.3) against any CallMatcher for
5942
+ # the conversation. If an incoming SIP call without valid `Call-Info` header
5943
+ # matches to zero or multiple conversations with `CallMatcher`, we reject it. A
5944
+ # call matcher contains equality conditions for SIP headers that all have to be
5945
+ # fulfilled in order for a SIP call to match. The matched SIP headers consist of
5946
+ # well-known headers (`To`, `From`, `Call-ID`) and custom headers. A CallMatcher
5947
+ # is only valid if it specifies: * At least 1 custom header, * or at least 2
5948
+ # well-known headers.
5949
+ # Corresponds to the JSON property `callMatcher`
5950
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CallMatcher]
5951
+ attr_accessor :call_matcher
5952
+
5953
+ def initialize(**args)
5954
+ update!(**args)
5955
+ end
5956
+
5957
+ # Update properties of this object
5958
+ def update!(**args)
5959
+ @call_matcher = args[:call_matcher] if args.key?(:call_matcher)
5960
+ end
5961
+ end
5962
+
5963
+ # The request to detect user's intent.
5964
+ class GoogleCloudDialogflowV2DetectIntentRequest
5965
+ include Google::Apis::Core::Hashable
5966
+
5967
+ # The natural language speech audio to be processed. This field should be
5968
+ # populated iff `query_input` is set to an input audio config. A single request
5969
+ # can contain up to 1 minute of speech audio data.
5970
+ # Corresponds to the JSON property `inputAudio`
5971
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5972
+ # @return [String]
5973
+ attr_accessor :input_audio
5974
+
5975
+ # Instructs the speech synthesizer on how to generate the output audio content.
5976
+ # If this audio config is supplied in a request, it overrides all existing text-
5977
+ # to-speech settings applied to the agent.
5978
+ # Corresponds to the JSON property `outputAudioConfig`
5979
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
5980
+ attr_accessor :output_audio_config
5981
+
5982
+ # Mask for output_audio_config indicating which settings in this request-level
5983
+ # config should override speech synthesizer settings defined at agent-level. If
5984
+ # unspecified or empty, output_audio_config replaces the agent-level config in
5985
+ # its entirety.
5986
+ # Corresponds to the JSON property `outputAudioConfigMask`
5987
+ # @return [String]
5988
+ attr_accessor :output_audio_config_mask
5989
+
5990
+ # Represents the query input. It can contain either: 1. An audio config which
5991
+ # instructs the speech recognizer how to process the speech audio. 2. A
5992
+ # conversational query in the form of text,. 3. An event that specifies which
5993
+ # intent to trigger.
5994
+ # Corresponds to the JSON property `queryInput`
5995
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput]
5996
+ attr_accessor :query_input
5997
+
5998
+ # Represents the parameters of the conversational query.
5999
+ # Corresponds to the JSON property `queryParams`
6000
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters]
6001
+ attr_accessor :query_params
6002
+
6003
+ def initialize(**args)
6004
+ update!(**args)
6005
+ end
6006
+
6007
+ # Update properties of this object
6008
+ def update!(**args)
6009
+ @input_audio = args[:input_audio] if args.key?(:input_audio)
6010
+ @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
6011
+ @output_audio_config_mask = args[:output_audio_config_mask] if args.key?(:output_audio_config_mask)
6012
+ @query_input = args[:query_input] if args.key?(:query_input)
6013
+ @query_params = args[:query_params] if args.key?(:query_params)
6014
+ end
6015
+ end
6016
+
6017
+ # The message returned from the DetectIntent method.
6018
+ class GoogleCloudDialogflowV2DetectIntentResponse
6019
+ include Google::Apis::Core::Hashable
6020
+
6021
+ # The audio data bytes encoded as specified in the request. Note: The output
6022
+ # audio is generated based on the values of default platform text responses
6023
+ # found in the `query_result.fulfillment_messages` field. If multiple default
6024
+ # text responses exist, they will be concatenated when generating audio. If no
6025
+ # default platform text responses exist, the generated audio content will be
6026
+ # empty. In some scenarios, multiple output audio fields may be present in the
6027
+ # response structure. In these cases, only the top-most-level audio output has
6028
+ # content.
6029
+ # Corresponds to the JSON property `outputAudio`
6030
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
6031
+ # @return [String]
6032
+ attr_accessor :output_audio
6033
+
6034
+ # Instructs the speech synthesizer on how to generate the output audio content.
6035
+ # If this audio config is supplied in a request, it overrides all existing text-
6036
+ # to-speech settings applied to the agent.
6037
+ # Corresponds to the JSON property `outputAudioConfig`
6038
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
6039
+ attr_accessor :output_audio_config
6040
+
6041
+ # Represents the result of conversational query or event processing.
6042
+ # Corresponds to the JSON property `queryResult`
6043
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult]
6044
+ attr_accessor :query_result
6045
+
6046
+ # The unique identifier of the response. It can be used to locate a response in
6047
+ # the training example set or for reporting issues.
6048
+ # Corresponds to the JSON property `responseId`
6049
+ # @return [String]
6050
+ attr_accessor :response_id
6051
+
6052
+ # The `Status` type defines a logical error model that is suitable for different
6053
+ # programming environments, including REST APIs and RPC APIs. It is used by [
6054
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
6055
+ # data: error code, error message, and error details. You can find out more
6056
+ # about this error model and how to work with it in the [API Design Guide](https:
6057
+ # //cloud.google.com/apis/design/errors).
6058
+ # Corresponds to the JSON property `webhookStatus`
6059
+ # @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
6060
+ attr_accessor :webhook_status
6061
+
6062
+ def initialize(**args)
6063
+ update!(**args)
6064
+ end
6065
+
6066
+ # Update properties of this object
6067
+ def update!(**args)
6068
+ @output_audio = args[:output_audio] if args.key?(:output_audio)
6069
+ @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
6070
+ @query_result = args[:query_result] if args.key?(:query_result)
6071
+ @response_id = args[:response_id] if args.key?(:response_id)
6072
+ @webhook_status = args[:webhook_status] if args.key?(:webhook_status)
6073
+ end
6074
+ end
6075
+
6076
+ # A knowledge document to be used by a KnowledgeBase. For more information, see
6077
+ # the [knowledge base guide](https://cloud.google.com/dialogflow/docs/how/
6078
+ # knowledge-bases). Note: The `projects.agent.knowledgeBases.documents` resource
6079
+ # is deprecated; only use `projects.knowledgeBases.documents`.
6080
+ class GoogleCloudDialogflowV2Document
6081
+ include Google::Apis::Core::Hashable
6082
+
6083
+ # The URI where the file content is located. For documents stored in Google
6084
+ # Cloud Storage, these URIs must have the form `gs:///`. NOTE: External URLs
6085
+ # must correspond to public webpages, i.e., they must be indexed by Google
6086
+ # Search. In particular, URLs for showing documents in Google Cloud Storage (i.e.
6087
+ # the URL in your browser) are not supported. Instead use the `gs://` format
6088
+ # URI described above.
6089
+ # Corresponds to the JSON property `contentUri`
6090
+ # @return [String]
6091
+ attr_accessor :content_uri
6092
+
6093
+ # Required. The display name of the document. The name must be 1024 bytes or
6094
+ # less; otherwise, the creation request fails.
6095
+ # Corresponds to the JSON property `displayName`
6096
+ # @return [String]
6097
+ attr_accessor :display_name
6098
+
6099
+ # Optional. If true, we try to automatically reload the document every day (at a
6100
+ # time picked by the system). If false or unspecified, we don't try to
6101
+ # automatically reload the document. Currently you can only enable automatic
6102
+ # reload for documents sourced from a public url, see `source` field for the
6103
+ # source types. Reload status can be tracked in `latest_reload_status`. If a
6104
+ # reload fails, we will keep the document unchanged. If a reload fails with
6105
+ # internal errors, the system will try to reload the document on the next day.
6106
+ # If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the
6107
+ # system will not try to reload the document anymore. You need to manually
6108
+ # reload the document successfully by calling `ReloadDocument` and clear the
6109
+ # errors.
6110
+ # Corresponds to the JSON property `enableAutoReload`
6111
+ # @return [Boolean]
6112
+ attr_accessor :enable_auto_reload
6113
+ alias_method :enable_auto_reload?, :enable_auto_reload
6114
+
6115
+ # Required. The knowledge type of document content.
6116
+ # Corresponds to the JSON property `knowledgeTypes`
6117
+ # @return [Array<String>]
6118
+ attr_accessor :knowledge_types
6119
+
6120
+ # The status of a reload attempt.
6121
+ # Corresponds to the JSON property `latestReloadStatus`
6122
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DocumentReloadStatus]
6123
+ attr_accessor :latest_reload_status
6124
+
6125
+ # Optional. Metadata for the document. The metadata supports arbitrary key-value
6126
+ # pairs. Suggested use cases include storing a document's title, an external URL
6127
+ # distinct from the document's content_uri, etc. The max size of a `key` or a `
6128
+ # value` of the metadata is 1024 bytes.
6129
+ # Corresponds to the JSON property `metadata`
6130
+ # @return [Hash<String,String>]
6131
+ attr_accessor :metadata
6132
+
6133
+ # Required. The MIME type of this document.
6134
+ # Corresponds to the JSON property `mimeType`
6135
+ # @return [String]
6136
+ attr_accessor :mime_type
6137
+
6138
+ # Optional. The document resource name. The name must be empty when creating a
6139
+ # document. Format: `projects//locations//knowledgeBases//documents/`.
6140
+ # Corresponds to the JSON property `name`
6141
+ # @return [String]
6142
+ attr_accessor :name
6143
+
6144
+ # The raw content of the document. This field is only permitted for
6145
+ # EXTRACTIVE_QA and FAQ knowledge types.
6146
+ # Corresponds to the JSON property `rawContent`
6147
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
6148
+ # @return [String]
6149
+ attr_accessor :raw_content
6150
+
6151
+ def initialize(**args)
6152
+ update!(**args)
6153
+ end
6154
+
6155
+ # Update properties of this object
6156
+ def update!(**args)
6157
+ @content_uri = args[:content_uri] if args.key?(:content_uri)
6158
+ @display_name = args[:display_name] if args.key?(:display_name)
6159
+ @enable_auto_reload = args[:enable_auto_reload] if args.key?(:enable_auto_reload)
6160
+ @knowledge_types = args[:knowledge_types] if args.key?(:knowledge_types)
6161
+ @latest_reload_status = args[:latest_reload_status] if args.key?(:latest_reload_status)
6162
+ @metadata = args[:metadata] if args.key?(:metadata)
6163
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
6164
+ @name = args[:name] if args.key?(:name)
6165
+ @raw_content = args[:raw_content] if args.key?(:raw_content)
6166
+ end
6167
+ end
6168
+
6169
+ # The status of a reload attempt.
6170
+ class GoogleCloudDialogflowV2DocumentReloadStatus
6171
+ include Google::Apis::Core::Hashable
6172
+
6173
+ # The `Status` type defines a logical error model that is suitable for different
6174
+ # programming environments, including REST APIs and RPC APIs. It is used by [
6175
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
6176
+ # data: error code, error message, and error details. You can find out more
6177
+ # about this error model and how to work with it in the [API Design Guide](https:
6178
+ # //cloud.google.com/apis/design/errors).
6179
+ # Corresponds to the JSON property `status`
6180
+ # @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
6181
+ attr_accessor :status
6182
+
6183
+ # The time of a reload attempt. This reload may have been triggered
6184
+ # automatically or manually and may not have succeeded.
6185
+ # Corresponds to the JSON property `time`
6186
+ # @return [String]
6187
+ attr_accessor :time
6188
+
6189
+ def initialize(**args)
6190
+ update!(**args)
6191
+ end
6192
+
6193
+ # Update properties of this object
6194
+ def update!(**args)
6195
+ @status = args[:status] if args.key?(:status)
6196
+ @time = args[:time] if args.key?(:time)
6197
+ end
6198
+ end
6199
+
6200
+ # The message in the response that indicates the parameters of DTMF.
6201
+ class GoogleCloudDialogflowV2DtmfParameters
6202
+ include Google::Apis::Core::Hashable
6203
+
6204
+ # Indicates whether DTMF input can be handled in the next request.
6205
+ # Corresponds to the JSON property `acceptsDtmfInput`
6206
+ # @return [Boolean]
6207
+ attr_accessor :accepts_dtmf_input
6208
+ alias_method :accepts_dtmf_input?, :accepts_dtmf_input
6209
+
6210
+ def initialize(**args)
6211
+ update!(**args)
6212
+ end
6213
+
6214
+ # Update properties of this object
6215
+ def update!(**args)
6216
+ @accepts_dtmf_input = args[:accepts_dtmf_input] if args.key?(:accepts_dtmf_input)
6217
+ end
6218
+ end
6219
+
6220
+ # Each intent parameter has a type, called the entity type, which dictates
6221
+ # exactly how data from an end-user expression is extracted. Dialogflow provides
6222
+ # predefined system entities that can match many common types of data. For
6223
+ # example, there are system entities for matching dates, times, colors, email
6224
+ # addresses, and so on. You can also create your own custom entities for
6225
+ # matching custom data. For example, you could define a vegetable entity that
6226
+ # can match the types of vegetables available for purchase with a grocery store
6227
+ # agent. For more information, see the [Entity guide](https://cloud.google.com/
6228
+ # dialogflow/docs/entities-overview).
6229
+ class GoogleCloudDialogflowV2EntityType
6230
+ include Google::Apis::Core::Hashable
6231
+
6232
+ # Optional. Indicates whether the entity type can be automatically expanded.
6233
+ # Corresponds to the JSON property `autoExpansionMode`
6234
+ # @return [String]
6235
+ attr_accessor :auto_expansion_mode
6236
+
6237
+ # Required. The name of the entity type.
6238
+ # Corresponds to the JSON property `displayName`
6239
+ # @return [String]
6240
+ attr_accessor :display_name
6241
+
6242
+ # Optional. Enables fuzzy entity extraction during classification.
6243
+ # Corresponds to the JSON property `enableFuzzyExtraction`
6244
+ # @return [Boolean]
6245
+ attr_accessor :enable_fuzzy_extraction
6246
+ alias_method :enable_fuzzy_extraction?, :enable_fuzzy_extraction
6247
+
6248
+ # Optional. The collection of entity entries associated with the entity type.
6249
+ # Corresponds to the JSON property `entities`
6250
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
6251
+ attr_accessor :entities
6252
+
6253
+ # Required. Indicates the kind of entity type.
6254
+ # Corresponds to the JSON property `kind`
6255
+ # @return [String]
6256
+ attr_accessor :kind
6257
+
6258
+ # The unique identifier of the entity type. Required for EntityTypes.
6259
+ # UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: `
6260
+ # projects//agent/entityTypes/`.
6261
+ # Corresponds to the JSON property `name`
6262
+ # @return [String]
6263
+ attr_accessor :name
6264
+
6265
+ def initialize(**args)
6266
+ update!(**args)
6267
+ end
6268
+
6269
+ # Update properties of this object
6270
+ def update!(**args)
6271
+ @auto_expansion_mode = args[:auto_expansion_mode] if args.key?(:auto_expansion_mode)
6272
+ @display_name = args[:display_name] if args.key?(:display_name)
6273
+ @enable_fuzzy_extraction = args[:enable_fuzzy_extraction] if args.key?(:enable_fuzzy_extraction)
6274
+ @entities = args[:entities] if args.key?(:entities)
6275
+ @kind = args[:kind] if args.key?(:kind)
6276
+ @name = args[:name] if args.key?(:name)
6277
+ end
6278
+ end
6279
+
6280
+ # This message is a wrapper around a collection of entity types.
6281
+ class GoogleCloudDialogflowV2EntityTypeBatch
6282
+ include Google::Apis::Core::Hashable
6283
+
6284
+ # A collection of entity types.
6285
+ # Corresponds to the JSON property `entityTypes`
6286
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType>]
6287
+ attr_accessor :entity_types
6288
+
6289
+ def initialize(**args)
6290
+ update!(**args)
6291
+ end
6292
+
6293
+ # Update properties of this object
6294
+ def update!(**args)
6295
+ @entity_types = args[:entity_types] if args.key?(:entity_types)
6296
+ end
6297
+ end
6298
+
6299
+ # An **entity entry** for an associated entity type.
6300
+ class GoogleCloudDialogflowV2EntityTypeEntity
6301
+ include Google::Apis::Core::Hashable
6302
+
6303
+ # Required. A collection of value synonyms. For example, if the entity type is *
6304
+ # vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For
6305
+ # `KIND_LIST` entity types: * This collection must contain exactly one synonym
6306
+ # equal to `value`.
6307
+ # Corresponds to the JSON property `synonyms`
6308
+ # @return [Array<String>]
6309
+ attr_accessor :synonyms
6310
+
6311
+ # Required. The primary value associated with this entity entry. For example, if
6312
+ # the entity type is *vegetable*, the value could be *scallions*. For `KIND_MAP`
6313
+ # entity types: * A reference value to be used in place of synonyms. For `
6314
+ # KIND_LIST` entity types: * A string that can contain references to other
6315
+ # entity types (with or without aliases).
6316
+ # Corresponds to the JSON property `value`
6317
+ # @return [String]
6318
+ attr_accessor :value
6319
+
6320
+ def initialize(**args)
6321
+ update!(**args)
6322
+ end
6323
+
6324
+ # Update properties of this object
6325
+ def update!(**args)
6326
+ @synonyms = args[:synonyms] if args.key?(:synonyms)
6327
+ @value = args[:value] if args.key?(:value)
6328
+ end
6329
+ end
6330
+
6331
+ # You can create multiple versions of your agent and publish them to separate
6332
+ # environments. When you edit an agent, you are editing the draft agent. At any
6333
+ # point, you can save the draft agent as an agent version, which is an immutable
6334
+ # snapshot of your agent. When you save the draft agent, it is published to the
6335
+ # default environment. When you create agent versions, you can publish them to
6336
+ # custom environments. You can create a variety of custom environments for: -
6337
+ # testing - development - production - etc. For more information, see the [
6338
+ # versions and environments guide](https://cloud.google.com/dialogflow/docs/
6339
+ # agents-versions).
6340
+ class GoogleCloudDialogflowV2Environment
6341
+ include Google::Apis::Core::Hashable
6342
+
6343
+ # Optional. The agent version loaded into this environment. Format: `projects//
6344
+ # agent/versions/`.
6345
+ # Corresponds to the JSON property `agentVersion`
6346
+ # @return [String]
6347
+ attr_accessor :agent_version
6348
+
6349
+ # Optional. The developer-provided description for this environment. The maximum
6350
+ # length is 500 characters. If exceeded, the request is rejected.
6351
+ # Corresponds to the JSON property `description`
6352
+ # @return [String]
6353
+ attr_accessor :description
6354
+
6355
+ # Output only. The unique identifier of this agent environment. Format: `
6356
+ # projects//agent/environments/`. For Environment ID, "-" is reserved for 'draft'
6357
+ # environment.
6358
+ # Corresponds to the JSON property `name`
6359
+ # @return [String]
6360
+ attr_accessor :name
6361
+
6362
+ # Output only. The state of this environment. This field is read-only, i.e., it
6363
+ # cannot be set by create and update methods.
6364
+ # Corresponds to the JSON property `state`
6365
+ # @return [String]
6366
+ attr_accessor :state
6367
+
6368
+ # Output only. The last update time of this environment. This field is read-only,
6369
+ # i.e., it cannot be set by create and update methods.
6370
+ # Corresponds to the JSON property `updateTime`
6371
+ # @return [String]
6372
+ attr_accessor :update_time
6373
+
6374
+ def initialize(**args)
6375
+ update!(**args)
6376
+ end
6377
+
6378
+ # Update properties of this object
6379
+ def update!(**args)
6380
+ @agent_version = args[:agent_version] if args.key?(:agent_version)
6381
+ @description = args[:description] if args.key?(:description)
6382
+ @name = args[:name] if args.key?(:name)
6383
+ @state = args[:state] if args.key?(:state)
6384
+ @update_time = args[:update_time] if args.key?(:update_time)
6385
+ end
6386
+ end
6387
+
6388
+ # Events allow for matching intents by event name instead of the natural
6389
+ # language input. For instance, input `` can trigger a personalized welcome
6390
+ # response. The parameter `name` may be used by the agent in the response: `"
6391
+ # Hello #welcome_event.name! What can I do for you today?"`.
6392
+ class GoogleCloudDialogflowV2EventInput
6393
+ include Google::Apis::Core::Hashable
6394
+
6395
+ # Required. The language of this query. See [Language Support](https://cloud.
6396
+ # google.com/dialogflow/docs/reference/language) for a list of the currently
6397
+ # supported language codes. Note that queries in the same session do not
6398
+ # necessarily need to specify the same language.
6399
+ # Corresponds to the JSON property `languageCode`
6400
+ # @return [String]
6401
+ attr_accessor :language_code
6402
+
6403
+ # Required. The unique identifier of the event.
6404
+ # Corresponds to the JSON property `name`
6405
+ # @return [String]
6406
+ attr_accessor :name
6407
+
6408
+ # The collection of parameters associated with the event. Depending on your
6409
+ # protocol or client library language, this is a map, associative array, symbol
6410
+ # table, dictionary, or JSON object composed of a collection of (MapKey,
6411
+ # MapValue) pairs: - MapKey type: string - MapKey value: parameter name -
6412
+ # MapValue type: - If parameter's entity type is a composite entity: map - Else:
6413
+ # depending on parameter value type, could be one of string, number, boolean,
6414
+ # null, list or map - MapValue value: - If parameter's entity type is a
6415
+ # composite entity: map from composite entity property names to property values -
6416
+ # Else: parameter value
6417
+ # Corresponds to the JSON property `parameters`
6418
+ # @return [Hash<String,Object>]
6419
+ attr_accessor :parameters
6420
+
6421
+ def initialize(**args)
6422
+ update!(**args)
6423
+ end
6424
+
6425
+ # Update properties of this object
6426
+ def update!(**args)
6427
+ @language_code = args[:language_code] if args.key?(:language_code)
6428
+ @name = args[:name] if args.key?(:name)
6429
+ @parameters = args[:parameters] if args.key?(:parameters)
6430
+ end
6431
+ end
6432
+
6433
+ # The request message for Agents.ExportAgent.
6434
+ class GoogleCloudDialogflowV2ExportAgentRequest
6435
+ include Google::Apis::Core::Hashable
6436
+
6437
+ # Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
6438
+ # URI to export the agent to. The format of this URI must be `gs:///`. If left
6439
+ # unspecified, the serialized agent is returned inline.
6440
+ # Corresponds to the JSON property `agentUri`
6441
+ # @return [String]
6442
+ attr_accessor :agent_uri
6443
+
6444
+ def initialize(**args)
6445
+ update!(**args)
6446
+ end
6447
+
6448
+ # Update properties of this object
6449
+ def update!(**args)
6450
+ @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
6451
+ end
6452
+ end
6453
+
6454
+ # The response message for Agents.ExportAgent.
6455
+ class GoogleCloudDialogflowV2ExportAgentResponse
6456
+ include Google::Apis::Core::Hashable
6457
+
6458
+ # Zip compressed raw byte content for agent.
6459
+ # Corresponds to the JSON property `agentContent`
6460
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
6461
+ # @return [String]
6462
+ attr_accessor :agent_content
6463
+
6464
+ # The URI to a file containing the exported agent. This field is populated only
6465
+ # if `agent_uri` is specified in `ExportAgentRequest`.
6466
+ # Corresponds to the JSON property `agentUri`
6467
+ # @return [String]
6468
+ attr_accessor :agent_uri
6469
+
6470
+ def initialize(**args)
6471
+ update!(**args)
6472
+ end
6473
+
6474
+ # Update properties of this object
6475
+ def update!(**args)
6476
+ @agent_content = args[:agent_content] if args.key?(:agent_content)
6477
+ @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
6478
+ end
6479
+ end
6480
+
6481
+ # Represents answer from "frequently asked questions".
6482
+ class GoogleCloudDialogflowV2FaqAnswer
6483
+ include Google::Apis::Core::Hashable
6484
+
6485
+ # The piece of text from the `source` knowledge base document.
6486
+ # Corresponds to the JSON property `answer`
6487
+ # @return [String]
6488
+ attr_accessor :answer
6489
+
6490
+ # The name of answer record, in the format of "projects//locations//
6491
+ # answerRecords/"
6492
+ # Corresponds to the JSON property `answerRecord`
6493
+ # @return [String]
6494
+ attr_accessor :answer_record
6495
+
6496
+ # The system's confidence score that this Knowledge answer is a good match for
6497
+ # this conversational query, range from 0.0 (completely uncertain) to 1.0 (
6498
+ # completely certain).
6499
+ # Corresponds to the JSON property `confidence`
6500
+ # @return [Float]
6501
+ attr_accessor :confidence
6502
+
6503
+ # A map that contains metadata about the answer and the document from which it
6504
+ # originates.
6505
+ # Corresponds to the JSON property `metadata`
6506
+ # @return [Hash<String,String>]
6507
+ attr_accessor :metadata
6508
+
6509
+ # The corresponding FAQ question.
6510
+ # Corresponds to the JSON property `question`
6511
+ # @return [String]
6512
+ attr_accessor :question
6513
+
6514
+ # Indicates which Knowledge Document this answer was extracted from. Format: `
6515
+ # projects//locations//agent/knowledgeBases//documents/`.
6516
+ # Corresponds to the JSON property `source`
6517
+ # @return [String]
6518
+ attr_accessor :source
6519
+
6520
+ def initialize(**args)
6521
+ update!(**args)
6522
+ end
6523
+
6524
+ # Update properties of this object
6525
+ def update!(**args)
6526
+ @answer = args[:answer] if args.key?(:answer)
6527
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
6528
+ @confidence = args[:confidence] if args.key?(:confidence)
6529
+ @metadata = args[:metadata] if args.key?(:metadata)
6530
+ @question = args[:question] if args.key?(:question)
6531
+ @source = args[:source] if args.key?(:source)
6532
+ end
6533
+ end
6534
+
6535
+ # By default, your agent responds to a matched intent with a static response. As
6536
+ # an alternative, you can provide a more dynamic response by using fulfillment.
6537
+ # When you enable fulfillment for an intent, Dialogflow responds to that intent
6538
+ # by calling a service that you define. For example, if an end-user wants to
6539
+ # schedule a haircut on Friday, your service can check your database and respond
6540
+ # to the end-user with availability information for Friday. For more information,
6541
+ # see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/
6542
+ # fulfillment-overview).
6543
+ class GoogleCloudDialogflowV2Fulfillment
6544
+ include Google::Apis::Core::Hashable
6545
+
6546
+ # Optional. The human-readable name of the fulfillment, unique within the agent.
6547
+ # Corresponds to the JSON property `displayName`
6548
+ # @return [String]
6549
+ attr_accessor :display_name
6550
+
6551
+ # Optional. Whether fulfillment is enabled.
6552
+ # Corresponds to the JSON property `enabled`
6553
+ # @return [Boolean]
6554
+ attr_accessor :enabled
6555
+ alias_method :enabled?, :enabled
6556
+
6557
+ # Optional. The field defines whether the fulfillment is enabled for certain
6558
+ # features.
6559
+ # Corresponds to the JSON property `features`
6560
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentFeature>]
6561
+ attr_accessor :features
6562
+
6563
+ # Represents configuration for a generic web service. Dialogflow supports two
6564
+ # mechanisms for authentications: - Basic authentication with username and
6565
+ # password. - Authentication with additional authentication headers. More
6566
+ # information could be found at: https://cloud.google.com/dialogflow/docs/
6567
+ # fulfillment-configure.
6568
+ # Corresponds to the JSON property `genericWebService`
6569
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService]
6570
+ attr_accessor :generic_web_service
6571
+
6572
+ # Required. The unique identifier of the fulfillment. Format: `projects//agent/
6573
+ # fulfillment`.
6574
+ # Corresponds to the JSON property `name`
5047
6575
  # @return [String]
5048
- attr_accessor :update_mask
6576
+ attr_accessor :name
5049
6577
 
5050
6578
  def initialize(**args)
5051
6579
  update!(**args)
@@ -5053,22 +6581,22 @@ module Google
5053
6581
 
5054
6582
  # Update properties of this object
5055
6583
  def update!(**args)
5056
- @intent_batch_inline = args[:intent_batch_inline] if args.key?(:intent_batch_inline)
5057
- @intent_batch_uri = args[:intent_batch_uri] if args.key?(:intent_batch_uri)
5058
- @intent_view = args[:intent_view] if args.key?(:intent_view)
5059
- @language_code = args[:language_code] if args.key?(:language_code)
5060
- @update_mask = args[:update_mask] if args.key?(:update_mask)
6584
+ @display_name = args[:display_name] if args.key?(:display_name)
6585
+ @enabled = args[:enabled] if args.key?(:enabled)
6586
+ @features = args[:features] if args.key?(:features)
6587
+ @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
6588
+ @name = args[:name] if args.key?(:name)
5061
6589
  end
5062
6590
  end
5063
6591
 
5064
- # The response message for Intents.BatchUpdateIntents.
5065
- class GoogleCloudDialogflowV2BatchUpdateIntentsResponse
6592
+ # Whether fulfillment is enabled for the specific feature.
6593
+ class GoogleCloudDialogflowV2FulfillmentFeature
5066
6594
  include Google::Apis::Core::Hashable
5067
6595
 
5068
- # The collection of updated or created intents.
5069
- # Corresponds to the JSON property `intents`
5070
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent>]
5071
- attr_accessor :intents
6596
+ # The type of the feature that enabled for fulfillment.
6597
+ # Corresponds to the JSON property `type`
6598
+ # @return [String]
6599
+ attr_accessor :type
5072
6600
 
5073
6601
  def initialize(**args)
5074
6602
  update!(**args)
@@ -5076,58 +6604,45 @@ module Google
5076
6604
 
5077
6605
  # Update properties of this object
5078
6606
  def update!(**args)
5079
- @intents = args[:intents] if args.key?(:intents)
6607
+ @type = args[:type] if args.key?(:type)
5080
6608
  end
5081
6609
  end
5082
6610
 
5083
- # Dialogflow contexts are similar to natural language context. If a person says
5084
- # to you "they are orange", you need context in order to understand what "they"
5085
- # is referring to. Similarly, for Dialogflow to handle an end-user expression
5086
- # like that, it needs to be provided with context in order to correctly match an
5087
- # intent. Using contexts, you can control the flow of a conversation. You can
5088
- # configure contexts for an intent by setting input and output contexts, which
5089
- # are identified by string names. When an intent is matched, any configured
5090
- # output contexts for that intent become active. While any contexts are active,
5091
- # Dialogflow is more likely to match intents that are configured with input
5092
- # contexts that correspond to the currently active contexts. For more
5093
- # information about context, see the [Contexts guide](https://cloud.google.com/
5094
- # dialogflow/docs/contexts-overview).
5095
- class GoogleCloudDialogflowV2Context
6611
+ # Represents configuration for a generic web service. Dialogflow supports two
6612
+ # mechanisms for authentications: - Basic authentication with username and
6613
+ # password. - Authentication with additional authentication headers. More
6614
+ # information could be found at: https://cloud.google.com/dialogflow/docs/
6615
+ # fulfillment-configure.
6616
+ class GoogleCloudDialogflowV2FulfillmentGenericWebService
5096
6617
  include Google::Apis::Core::Hashable
5097
6618
 
5098
- # Optional. The number of conversational query requests after which the context
5099
- # expires. The default is `0`. If set to `0`, the context expires immediately.
5100
- # Contexts expire automatically after 20 minutes if there are no matching
5101
- # queries.
5102
- # Corresponds to the JSON property `lifespanCount`
5103
- # @return [Fixnum]
5104
- attr_accessor :lifespan_count
6619
+ # Optional. Indicates if generic web service is created through Cloud Functions
6620
+ # integration. Defaults to false.
6621
+ # Corresponds to the JSON property `isCloudFunction`
6622
+ # @return [Boolean]
6623
+ attr_accessor :is_cloud_function
6624
+ alias_method :is_cloud_function?, :is_cloud_function
5105
6625
 
5106
- # Required. The unique identifier of the context. Format: `projects//agent/
5107
- # sessions//contexts/`, or `projects//agent/environments//users//sessions//
5108
- # contexts/`. The `Context ID` is always converted to lowercase, may only
5109
- # contain characters in a-zA-Z0-9_-% and may be at most 250 bytes long. If `
5110
- # Environment ID` is not specified, we assume default 'draft' environment. If `
5111
- # User ID` is not specified, we assume default '-' user. The following context
5112
- # names are reserved for internal use by Dialogflow. You should not use these
5113
- # contexts or create contexts with these names: * `__system_counters__` * `*
5114
- # _id_dialog_context` * `*_dialog_params_size`
5115
- # Corresponds to the JSON property `name`
6626
+ # Optional. The password for HTTP Basic authentication.
6627
+ # Corresponds to the JSON property `password`
5116
6628
  # @return [String]
5117
- attr_accessor :name
6629
+ attr_accessor :password
5118
6630
 
5119
- # Optional. The collection of parameters associated with this context. Depending
5120
- # on your protocol or client library language, this is a map, associative array,
5121
- # symbol table, dictionary, or JSON object composed of a collection of (MapKey,
5122
- # MapValue) pairs: - MapKey type: string - MapKey value: parameter name -
5123
- # MapValue type: - If parameter's entity type is a composite entity: map - Else:
5124
- # depending on parameter value type, could be one of string, number, boolean,
5125
- # null, list or map - MapValue value: - If parameter's entity type is a
5126
- # composite entity: map from composite entity property names to property values -
5127
- # Else: parameter value
5128
- # Corresponds to the JSON property `parameters`
5129
- # @return [Hash<String,Object>]
5130
- attr_accessor :parameters
6631
+ # Optional. The HTTP request headers to send together with fulfillment requests.
6632
+ # Corresponds to the JSON property `requestHeaders`
6633
+ # @return [Hash<String,String>]
6634
+ attr_accessor :request_headers
6635
+
6636
+ # Required. The fulfillment URI for receiving POST requests. It must use https
6637
+ # protocol.
6638
+ # Corresponds to the JSON property `uri`
6639
+ # @return [String]
6640
+ attr_accessor :uri
6641
+
6642
+ # Optional. The user name for HTTP Basic authentication.
6643
+ # Corresponds to the JSON property `username`
6644
+ # @return [String]
6645
+ attr_accessor :username
5131
6646
 
5132
6647
  def initialize(**args)
5133
6648
  update!(**args)
@@ -5135,42 +6650,37 @@ module Google
5135
6650
 
5136
6651
  # Update properties of this object
5137
6652
  def update!(**args)
5138
- @lifespan_count = args[:lifespan_count] if args.key?(:lifespan_count)
5139
- @name = args[:name] if args.key?(:name)
5140
- @parameters = args[:parameters] if args.key?(:parameters)
6653
+ @is_cloud_function = args[:is_cloud_function] if args.key?(:is_cloud_function)
6654
+ @password = args[:password] if args.key?(:password)
6655
+ @request_headers = args[:request_headers] if args.key?(:request_headers)
6656
+ @uri = args[:uri] if args.key?(:uri)
6657
+ @username = args[:username] if args.key?(:username)
5141
6658
  end
5142
6659
  end
5143
6660
 
5144
- # Represents a notification sent to Pub/Sub subscribers for conversation
5145
- # lifecycle events.
5146
- class GoogleCloudDialogflowV2ConversationEvent
6661
+ # Defines the Human Agent Assist to connect to a conversation.
6662
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfig
5147
6663
  include Google::Apis::Core::Hashable
5148
6664
 
5149
- # The unique identifier of the conversation this notification refers to. Format:
5150
- # `projects//conversations/`.
5151
- # Corresponds to the JSON property `conversation`
5152
- # @return [String]
5153
- attr_accessor :conversation
6665
+ # Detail human agent assistant config.
6666
+ # Corresponds to the JSON property `endUserSuggestionConfig`
6667
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig]
6668
+ attr_accessor :end_user_suggestion_config
5154
6669
 
5155
- # The `Status` type defines a logical error model that is suitable for different
5156
- # programming environments, including REST APIs and RPC APIs. It is used by [
5157
- # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
5158
- # data: error code, error message, and error details. You can find out more
5159
- # about this error model and how to work with it in the [API Design Guide](https:
5160
- # //cloud.google.com/apis/design/errors).
5161
- # Corresponds to the JSON property `errorStatus`
5162
- # @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
5163
- attr_accessor :error_status
6670
+ # Detail human agent assistant config.
6671
+ # Corresponds to the JSON property `humanAgentSuggestionConfig`
6672
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig]
6673
+ attr_accessor :human_agent_suggestion_config
5164
6674
 
5165
- # Represents a message posted into a conversation.
5166
- # Corresponds to the JSON property `newMessagePayload`
5167
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Message]
5168
- attr_accessor :new_message_payload
6675
+ # Configuration for analyses to run on each conversation message.
6676
+ # Corresponds to the JSON property `messageAnalysisConfig`
6677
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig]
6678
+ attr_accessor :message_analysis_config
5169
6679
 
5170
- # The type of the event that this notification refers to.
5171
- # Corresponds to the JSON property `type`
5172
- # @return [String]
5173
- attr_accessor :type
6680
+ # Defines notification behavior.
6681
+ # Corresponds to the JSON property `notificationConfig`
6682
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig]
6683
+ attr_accessor :notification_config
5174
6684
 
5175
6685
  def initialize(**args)
5176
6686
  update!(**args)
@@ -5178,52 +6688,63 @@ module Google
5178
6688
 
5179
6689
  # Update properties of this object
5180
6690
  def update!(**args)
5181
- @conversation = args[:conversation] if args.key?(:conversation)
5182
- @error_status = args[:error_status] if args.key?(:error_status)
5183
- @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
5184
- @type = args[:type] if args.key?(:type)
6691
+ @end_user_suggestion_config = args[:end_user_suggestion_config] if args.key?(:end_user_suggestion_config)
6692
+ @human_agent_suggestion_config = args[:human_agent_suggestion_config] if args.key?(:human_agent_suggestion_config)
6693
+ @message_analysis_config = args[:message_analysis_config] if args.key?(:message_analysis_config)
6694
+ @notification_config = args[:notification_config] if args.key?(:notification_config)
5185
6695
  end
5186
6696
  end
5187
6697
 
5188
- # The request to detect user's intent.
5189
- class GoogleCloudDialogflowV2DetectIntentRequest
6698
+ # Custom conversation models used in agent assist feature. Supported feature:
6699
+ # ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY.
6700
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig
5190
6701
  include Google::Apis::Core::Hashable
5191
6702
 
5192
- # The natural language speech audio to be processed. This field should be
5193
- # populated iff `query_input` is set to an input audio config. A single request
5194
- # can contain up to 1 minute of speech audio data.
5195
- # Corresponds to the JSON property `inputAudio`
5196
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
6703
+ # Required. Conversation model resource name. Format: `projects//
6704
+ # conversationModels/`.
6705
+ # Corresponds to the JSON property `model`
5197
6706
  # @return [String]
5198
- attr_accessor :input_audio
6707
+ attr_accessor :model
5199
6708
 
5200
- # Instructs the speech synthesizer on how to generate the output audio content.
5201
- # If this audio config is supplied in a request, it overrides all existing text-
5202
- # to-speech settings applied to the agent.
5203
- # Corresponds to the JSON property `outputAudioConfig`
5204
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
5205
- attr_accessor :output_audio_config
6709
+ def initialize(**args)
6710
+ update!(**args)
6711
+ end
5206
6712
 
5207
- # Mask for output_audio_config indicating which settings in this request-level
5208
- # config should override speech synthesizer settings defined at agent-level. If
5209
- # unspecified or empty, output_audio_config replaces the agent-level config in
5210
- # its entirety.
5211
- # Corresponds to the JSON property `outputAudioConfigMask`
5212
- # @return [String]
5213
- attr_accessor :output_audio_config_mask
6713
+ # Update properties of this object
6714
+ def update!(**args)
6715
+ @model = args[:model] if args.key?(:model)
6716
+ end
6717
+ end
5214
6718
 
5215
- # Represents the query input. It can contain either: 1. An audio config which
5216
- # instructs the speech recognizer how to process the speech audio. 2. A
5217
- # conversational query in the form of text,. 3. An event that specifies which
5218
- # intent to trigger.
5219
- # Corresponds to the JSON property `queryInput`
5220
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput]
5221
- attr_accessor :query_input
6719
+ # Configuration for analyses to run on each conversation message.
6720
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig
6721
+ include Google::Apis::Core::Hashable
5222
6722
 
5223
- # Represents the parameters of the conversational query.
5224
- # Corresponds to the JSON property `queryParams`
5225
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters]
5226
- attr_accessor :query_params
6723
+ # Enable entity extraction in conversation messages on [agent assist stage](
6724
+ # https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
6725
+ # If unspecified, defaults to false.
6726
+ # Corresponds to the JSON property `enableEntityExtraction`
6727
+ # @return [Boolean]
6728
+ attr_accessor :enable_entity_extraction
6729
+ alias_method :enable_entity_extraction?, :enable_entity_extraction
6730
+
6731
+ # Enable sentiment analysis in conversation messages on [agent assist stage](
6732
+ # https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
6733
+ # If unspecified, defaults to false. Sentiment analysis inspects user input and
6734
+ # identifies the prevailing subjective opinion, especially to determine a user's
6735
+ # attitude as positive, negative, or neutral: https://cloud.google.com/natural-
6736
+ # language/docs/basics#sentiment_analysis For Participants.
6737
+ # StreamingAnalyzeContent method, result will be in
6738
+ # StreamingAnalyzeContentResponse.message.SentimentAnalysisResult. For
6739
+ # Participants.AnalyzeContent method, result will be in AnalyzeContentResponse.
6740
+ # message.SentimentAnalysisResult For Conversations.ListMessages method, result
6741
+ # will be in ListMessagesResponse.messages.SentimentAnalysisResult If Pub/Sub
6742
+ # notification is configured, result will be in ConversationEvent.
6743
+ # new_message_payload.SentimentAnalysisResult.
6744
+ # Corresponds to the JSON property `enableSentimentAnalysis`
6745
+ # @return [Boolean]
6746
+ attr_accessor :enable_sentiment_analysis
6747
+ alias_method :enable_sentiment_analysis?, :enable_sentiment_analysis
5227
6748
 
5228
6749
  def initialize(**args)
5229
6750
  update!(**args)
@@ -5231,117 +6752,78 @@ module Google
5231
6752
 
5232
6753
  # Update properties of this object
5233
6754
  def update!(**args)
5234
- @input_audio = args[:input_audio] if args.key?(:input_audio)
5235
- @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
5236
- @output_audio_config_mask = args[:output_audio_config_mask] if args.key?(:output_audio_config_mask)
5237
- @query_input = args[:query_input] if args.key?(:query_input)
5238
- @query_params = args[:query_params] if args.key?(:query_params)
6755
+ @enable_entity_extraction = args[:enable_entity_extraction] if args.key?(:enable_entity_extraction)
6756
+ @enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
5239
6757
  end
5240
6758
  end
5241
6759
 
5242
- # The message returned from the DetectIntent method.
5243
- class GoogleCloudDialogflowV2DetectIntentResponse
6760
+ # Detail human agent assistant config.
6761
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig
5244
6762
  include Google::Apis::Core::Hashable
5245
6763
 
5246
- # The audio data bytes encoded as specified in the request. Note: The output
5247
- # audio is generated based on the values of default platform text responses
5248
- # found in the `query_result.fulfillment_messages` field. If multiple default
5249
- # text responses exist, they will be concatenated when generating audio. If no
5250
- # default platform text responses exist, the generated audio content will be
5251
- # empty. In some scenarios, multiple output audio fields may be present in the
5252
- # response structure. In these cases, only the top-most-level audio output has
5253
- # content.
5254
- # Corresponds to the JSON property `outputAudio`
5255
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
5256
- # @return [String]
5257
- attr_accessor :output_audio
5258
-
5259
- # Instructs the speech synthesizer on how to generate the output audio content.
5260
- # If this audio config is supplied in a request, it overrides all existing text-
5261
- # to-speech settings applied to the agent.
5262
- # Corresponds to the JSON property `outputAudioConfig`
5263
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
5264
- attr_accessor :output_audio_config
5265
-
5266
- # Represents the result of conversational query or event processing.
5267
- # Corresponds to the JSON property `queryResult`
5268
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult]
5269
- attr_accessor :query_result
5270
-
5271
- # The unique identifier of the response. It can be used to locate a response in
5272
- # the training example set or for reporting issues.
5273
- # Corresponds to the JSON property `responseId`
5274
- # @return [String]
5275
- attr_accessor :response_id
6764
+ # Configuration of different suggestion features. One feature can have only one
6765
+ # config.
6766
+ # Corresponds to the JSON property `featureConfigs`
6767
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig>]
6768
+ attr_accessor :feature_configs
5276
6769
 
5277
- # The `Status` type defines a logical error model that is suitable for different
5278
- # programming environments, including REST APIs and RPC APIs. It is used by [
5279
- # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
5280
- # data: error code, error message, and error details. You can find out more
5281
- # about this error model and how to work with it in the [API Design Guide](https:
5282
- # //cloud.google.com/apis/design/errors).
5283
- # Corresponds to the JSON property `webhookStatus`
5284
- # @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
5285
- attr_accessor :webhook_status
6770
+ # If `group_suggestion_responses` is false, and there are multiple `
6771
+ # feature_configs` in `event based suggestion` or StreamingAnalyzeContent, we
6772
+ # will try to deliver suggestions to customers as soon as we get new suggestion.
6773
+ # Different type of suggestions based on the same context will be in separate
6774
+ # Pub/Sub event or `StreamingAnalyzeContentResponse`. If `
6775
+ # group_suggestion_responses` set to true. All the suggestions to the same
6776
+ # participant based on the same context will be grouped into a single Pub/Sub
6777
+ # event or StreamingAnalyzeContentResponse.
6778
+ # Corresponds to the JSON property `groupSuggestionResponses`
6779
+ # @return [Boolean]
6780
+ attr_accessor :group_suggestion_responses
6781
+ alias_method :group_suggestion_responses?, :group_suggestion_responses
5286
6782
 
5287
6783
  def initialize(**args)
5288
6784
  update!(**args)
5289
6785
  end
5290
6786
 
5291
- # Update properties of this object
5292
- def update!(**args)
5293
- @output_audio = args[:output_audio] if args.key?(:output_audio)
5294
- @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
5295
- @query_result = args[:query_result] if args.key?(:query_result)
5296
- @response_id = args[:response_id] if args.key?(:response_id)
5297
- @webhook_status = args[:webhook_status] if args.key?(:webhook_status)
6787
+ # Update properties of this object
6788
+ def update!(**args)
6789
+ @feature_configs = args[:feature_configs] if args.key?(:feature_configs)
6790
+ @group_suggestion_responses = args[:group_suggestion_responses] if args.key?(:group_suggestion_responses)
5298
6791
  end
5299
6792
  end
5300
6793
 
5301
- # Each intent parameter has a type, called the entity type, which dictates
5302
- # exactly how data from an end-user expression is extracted. Dialogflow provides
5303
- # predefined system entities that can match many common types of data. For
5304
- # example, there are system entities for matching dates, times, colors, email
5305
- # addresses, and so on. You can also create your own custom entities for
5306
- # matching custom data. For example, you could define a vegetable entity that
5307
- # can match the types of vegetables available for purchase with a grocery store
5308
- # agent. For more information, see the [Entity guide](https://cloud.google.com/
5309
- # dialogflow/docs/entities-overview).
5310
- class GoogleCloudDialogflowV2EntityType
6794
+ # Config for suggestion features.
6795
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig
5311
6796
  include Google::Apis::Core::Hashable
5312
6797
 
5313
- # Optional. Indicates whether the entity type can be automatically expanded.
5314
- # Corresponds to the JSON property `autoExpansionMode`
5315
- # @return [String]
5316
- attr_accessor :auto_expansion_mode
5317
-
5318
- # Required. The name of the entity type.
5319
- # Corresponds to the JSON property `displayName`
5320
- # @return [String]
5321
- attr_accessor :display_name
6798
+ # Custom conversation models used in agent assist feature. Supported feature:
6799
+ # ARTICLE_SUGGESTION, SMART_COMPOSE, SMART_REPLY.
6800
+ # Corresponds to the JSON property `conversationModelConfig`
6801
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig]
6802
+ attr_accessor :conversation_model_config
5322
6803
 
5323
- # Optional. Enables fuzzy entity extraction during classification.
5324
- # Corresponds to the JSON property `enableFuzzyExtraction`
6804
+ # Automatically iterates all participants and tries to compile suggestions.
6805
+ # Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST.
6806
+ # Corresponds to the JSON property `enableEventBasedSuggestion`
5325
6807
  # @return [Boolean]
5326
- attr_accessor :enable_fuzzy_extraction
5327
- alias_method :enable_fuzzy_extraction?, :enable_fuzzy_extraction
6808
+ attr_accessor :enable_event_based_suggestion
6809
+ alias_method :enable_event_based_suggestion?, :enable_event_based_suggestion
5328
6810
 
5329
- # Optional. The collection of entity entries associated with the entity type.
5330
- # Corresponds to the JSON property `entities`
5331
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
5332
- attr_accessor :entities
6811
+ # Config for suggestion query.
6812
+ # Corresponds to the JSON property `queryConfig`
6813
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig]
6814
+ attr_accessor :query_config
5333
6815
 
5334
- # Required. Indicates the kind of entity type.
5335
- # Corresponds to the JSON property `kind`
5336
- # @return [String]
5337
- attr_accessor :kind
6816
+ # The type of Human Agent Assistant API suggestion to perform, and the maximum
6817
+ # number of results to return for that type. Multiple `Feature` objects can be
6818
+ # specified in the `features` list.
6819
+ # Corresponds to the JSON property `suggestionFeature`
6820
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionFeature]
6821
+ attr_accessor :suggestion_feature
5338
6822
 
5339
- # The unique identifier of the entity type. Required for EntityTypes.
5340
- # UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: `
5341
- # projects//agent/entityTypes/`.
5342
- # Corresponds to the JSON property `name`
5343
- # @return [String]
5344
- attr_accessor :name
6823
+ # Settings of suggestion trigger.
6824
+ # Corresponds to the JSON property `suggestionTriggerSettings`
6825
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings]
6826
+ attr_accessor :suggestion_trigger_settings
5345
6827
 
5346
6828
  def initialize(**args)
5347
6829
  update!(**args)
@@ -5349,23 +6831,58 @@ module Google
5349
6831
 
5350
6832
  # Update properties of this object
5351
6833
  def update!(**args)
5352
- @auto_expansion_mode = args[:auto_expansion_mode] if args.key?(:auto_expansion_mode)
5353
- @display_name = args[:display_name] if args.key?(:display_name)
5354
- @enable_fuzzy_extraction = args[:enable_fuzzy_extraction] if args.key?(:enable_fuzzy_extraction)
5355
- @entities = args[:entities] if args.key?(:entities)
5356
- @kind = args[:kind] if args.key?(:kind)
5357
- @name = args[:name] if args.key?(:name)
6834
+ @conversation_model_config = args[:conversation_model_config] if args.key?(:conversation_model_config)
6835
+ @enable_event_based_suggestion = args[:enable_event_based_suggestion] if args.key?(:enable_event_based_suggestion)
6836
+ @query_config = args[:query_config] if args.key?(:query_config)
6837
+ @suggestion_feature = args[:suggestion_feature] if args.key?(:suggestion_feature)
6838
+ @suggestion_trigger_settings = args[:suggestion_trigger_settings] if args.key?(:suggestion_trigger_settings)
5358
6839
  end
5359
6840
  end
5360
6841
 
5361
- # This message is a wrapper around a collection of entity types.
5362
- class GoogleCloudDialogflowV2EntityTypeBatch
6842
+ # Config for suggestion query.
6843
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfig
5363
6844
  include Google::Apis::Core::Hashable
5364
6845
 
5365
- # A collection of entity types.
5366
- # Corresponds to the JSON property `entityTypes`
5367
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType>]
5368
- attr_accessor :entity_types
6846
+ # Confidence threshold of query result. Agent Assist gives each suggestion a
6847
+ # score in the range [0.0, 1.0], based on the relevance between the suggestion
6848
+ # and the current conversation context. A score of 0.0 has no relevance, while a
6849
+ # score of 1.0 has high relevance. Only suggestions with a score greater than or
6850
+ # equal to the value of this field are included in the results. For a baseline
6851
+ # model (the default), the recommended value is in the range [0.05, 0.1]. For a
6852
+ # custom model, there is no recommended value. Tune this value by starting from
6853
+ # a very low value and slowly increasing until you have desired results. If this
6854
+ # field is not set, it defaults to 0.0, which means that all suggestions are
6855
+ # returned. Supported features: ARTICLE_SUGGESTION.
6856
+ # Corresponds to the JSON property `confidenceThreshold`
6857
+ # @return [Float]
6858
+ attr_accessor :confidence_threshold
6859
+
6860
+ # Settings that determine how to filter recent conversation context when
6861
+ # generating suggestions.
6862
+ # Corresponds to the JSON property `contextFilterSettings`
6863
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings]
6864
+ attr_accessor :context_filter_settings
6865
+
6866
+ # Dialogflow source setting. Supported feature: DIALOGFLOW_ASSIST.
6867
+ # Corresponds to the JSON property `dialogflowQuerySource`
6868
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource]
6869
+ attr_accessor :dialogflow_query_source
6870
+
6871
+ # Document source settings. Supported features: SMART_REPLY, SMART_COMPOSE.
6872
+ # Corresponds to the JSON property `documentQuerySource`
6873
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource]
6874
+ attr_accessor :document_query_source
6875
+
6876
+ # Knowledge base source settings. Supported features: ARTICLE_SUGGESTION, FAQ.
6877
+ # Corresponds to the JSON property `knowledgeBaseQuerySource`
6878
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource]
6879
+ attr_accessor :knowledge_base_query_source
6880
+
6881
+ # Maximum number of results to return. Currently, if unset, defaults to 10. And
6882
+ # the max number is 20.
6883
+ # Corresponds to the JSON property `maxResults`
6884
+ # @return [Fixnum]
6885
+ attr_accessor :max_results
5369
6886
 
5370
6887
  def initialize(**args)
5371
6888
  update!(**args)
@@ -5373,30 +6890,38 @@ module Google
5373
6890
 
5374
6891
  # Update properties of this object
5375
6892
  def update!(**args)
5376
- @entity_types = args[:entity_types] if args.key?(:entity_types)
6893
+ @confidence_threshold = args[:confidence_threshold] if args.key?(:confidence_threshold)
6894
+ @context_filter_settings = args[:context_filter_settings] if args.key?(:context_filter_settings)
6895
+ @dialogflow_query_source = args[:dialogflow_query_source] if args.key?(:dialogflow_query_source)
6896
+ @document_query_source = args[:document_query_source] if args.key?(:document_query_source)
6897
+ @knowledge_base_query_source = args[:knowledge_base_query_source] if args.key?(:knowledge_base_query_source)
6898
+ @max_results = args[:max_results] if args.key?(:max_results)
5377
6899
  end
5378
6900
  end
5379
6901
 
5380
- # An **entity entry** for an associated entity type.
5381
- class GoogleCloudDialogflowV2EntityTypeEntity
6902
+ # Settings that determine how to filter recent conversation context when
6903
+ # generating suggestions.
6904
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigContextFilterSettings
5382
6905
  include Google::Apis::Core::Hashable
5383
6906
 
5384
- # Required. A collection of value synonyms. For example, if the entity type is *
5385
- # vegetable*, and `value` is *scallions*, a synonym could be *green onions*. For
5386
- # `KIND_LIST` entity types: * This collection must contain exactly one synonym
5387
- # equal to `value`.
5388
- # Corresponds to the JSON property `synonyms`
5389
- # @return [Array<String>]
5390
- attr_accessor :synonyms
6907
+ # If set to true, the last message from virtual agent (hand off message) and the
6908
+ # message before it (trigger message of hand off) are dropped.
6909
+ # Corresponds to the JSON property `dropHandoffMessages`
6910
+ # @return [Boolean]
6911
+ attr_accessor :drop_handoff_messages
6912
+ alias_method :drop_handoff_messages?, :drop_handoff_messages
5391
6913
 
5392
- # Required. The primary value associated with this entity entry. For example, if
5393
- # the entity type is *vegetable*, the value could be *scallions*. For `KIND_MAP`
5394
- # entity types: * A reference value to be used in place of synonyms. For `
5395
- # KIND_LIST` entity types: * A string that can contain references to other
5396
- # entity types (with or without aliases).
5397
- # Corresponds to the JSON property `value`
5398
- # @return [String]
5399
- attr_accessor :value
6914
+ # If set to true, all messages from ivr stage are dropped.
6915
+ # Corresponds to the JSON property `dropIvrMessages`
6916
+ # @return [Boolean]
6917
+ attr_accessor :drop_ivr_messages
6918
+ alias_method :drop_ivr_messages?, :drop_ivr_messages
6919
+
6920
+ # If set to true, all messages from virtual agent are dropped.
6921
+ # Corresponds to the JSON property `dropVirtualAgentMessages`
6922
+ # @return [Boolean]
6923
+ attr_accessor :drop_virtual_agent_messages
6924
+ alias_method :drop_virtual_agent_messages?, :drop_virtual_agent_messages
5400
6925
 
5401
6926
  def initialize(**args)
5402
6927
  update!(**args)
@@ -5404,53 +6929,42 @@ module Google
5404
6929
 
5405
6930
  # Update properties of this object
5406
6931
  def update!(**args)
5407
- @synonyms = args[:synonyms] if args.key?(:synonyms)
5408
- @value = args[:value] if args.key?(:value)
6932
+ @drop_handoff_messages = args[:drop_handoff_messages] if args.key?(:drop_handoff_messages)
6933
+ @drop_ivr_messages = args[:drop_ivr_messages] if args.key?(:drop_ivr_messages)
6934
+ @drop_virtual_agent_messages = args[:drop_virtual_agent_messages] if args.key?(:drop_virtual_agent_messages)
5409
6935
  end
5410
6936
  end
5411
6937
 
5412
- # You can create multiple versions of your agent and publish them to separate
5413
- # environments. When you edit an agent, you are editing the draft agent. At any
5414
- # point, you can save the draft agent as an agent version, which is an immutable
5415
- # snapshot of your agent. When you save the draft agent, it is published to the
5416
- # default environment. When you create agent versions, you can publish them to
5417
- # custom environments. You can create a variety of custom environments for: -
5418
- # testing - development - production - etc. For more information, see the [
5419
- # versions and environments guide](https://cloud.google.com/dialogflow/docs/
5420
- # agents-versions).
5421
- class GoogleCloudDialogflowV2Environment
6938
+ # Dialogflow source setting. Supported feature: DIALOGFLOW_ASSIST.
6939
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource
5422
6940
  include Google::Apis::Core::Hashable
5423
6941
 
5424
- # Optional. The agent version loaded into this environment. Format: `projects//
5425
- # agent/versions/`.
5426
- # Corresponds to the JSON property `agentVersion`
6942
+ # Required. The name of a Dialogflow virtual agent used for end user side intent
6943
+ # detection and suggestion. Format: `projects//locations//agent`. When multiple
6944
+ # agents are allowed in the same Dialogflow project.
6945
+ # Corresponds to the JSON property `agent`
5427
6946
  # @return [String]
5428
- attr_accessor :agent_version
6947
+ attr_accessor :agent
5429
6948
 
5430
- # Optional. The developer-provided description for this environment. The maximum
5431
- # length is 500 characters. If exceeded, the request is rejected.
5432
- # Corresponds to the JSON property `description`
5433
- # @return [String]
5434
- attr_accessor :description
6949
+ def initialize(**args)
6950
+ update!(**args)
6951
+ end
5435
6952
 
5436
- # Output only. The unique identifier of this agent environment. Format: `
5437
- # projects//agent/environments/`. For Environment ID, "-" is reserved for 'draft'
5438
- # environment.
5439
- # Corresponds to the JSON property `name`
5440
- # @return [String]
5441
- attr_accessor :name
6953
+ # Update properties of this object
6954
+ def update!(**args)
6955
+ @agent = args[:agent] if args.key?(:agent)
6956
+ end
6957
+ end
5442
6958
 
5443
- # Output only. The state of this environment. This field is read-only, i.e., it
5444
- # cannot be set by create and update methods.
5445
- # Corresponds to the JSON property `state`
5446
- # @return [String]
5447
- attr_accessor :state
6959
+ # Document source settings. Supported features: SMART_REPLY, SMART_COMPOSE.
6960
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource
6961
+ include Google::Apis::Core::Hashable
5448
6962
 
5449
- # Output only. The last update time of this environment. This field is read-only,
5450
- # i.e., it cannot be set by create and update methods.
5451
- # Corresponds to the JSON property `updateTime`
5452
- # @return [String]
5453
- attr_accessor :update_time
6963
+ # Required. Knowledge documents to query from. Format: `projects//locations//
6964
+ # knowledgeBases//documents/`. Currently, at most 5 documents are supported.
6965
+ # Corresponds to the JSON property `documents`
6966
+ # @return [Array<String>]
6967
+ attr_accessor :documents
5454
6968
 
5455
6969
  def initialize(**args)
5456
6970
  update!(**args)
@@ -5458,46 +6972,19 @@ module Google
5458
6972
 
5459
6973
  # Update properties of this object
5460
6974
  def update!(**args)
5461
- @agent_version = args[:agent_version] if args.key?(:agent_version)
5462
- @description = args[:description] if args.key?(:description)
5463
- @name = args[:name] if args.key?(:name)
5464
- @state = args[:state] if args.key?(:state)
5465
- @update_time = args[:update_time] if args.key?(:update_time)
6975
+ @documents = args[:documents] if args.key?(:documents)
5466
6976
  end
5467
6977
  end
5468
6978
 
5469
- # Events allow for matching intents by event name instead of the natural
5470
- # language input. For instance, input `` can trigger a personalized welcome
5471
- # response. The parameter `name` may be used by the agent in the response: `"
5472
- # Hello #welcome_event.name! What can I do for you today?"`.
5473
- class GoogleCloudDialogflowV2EventInput
6979
+ # Knowledge base source settings. Supported features: ARTICLE_SUGGESTION, FAQ.
6980
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigKnowledgeBaseQuerySource
5474
6981
  include Google::Apis::Core::Hashable
5475
6982
 
5476
- # Required. The language of this query. See [Language Support](https://cloud.
5477
- # google.com/dialogflow/docs/reference/language) for a list of the currently
5478
- # supported language codes. Note that queries in the same session do not
5479
- # necessarily need to specify the same language.
5480
- # Corresponds to the JSON property `languageCode`
5481
- # @return [String]
5482
- attr_accessor :language_code
5483
-
5484
- # Required. The unique identifier of the event.
5485
- # Corresponds to the JSON property `name`
5486
- # @return [String]
5487
- attr_accessor :name
5488
-
5489
- # The collection of parameters associated with the event. Depending on your
5490
- # protocol or client library language, this is a map, associative array, symbol
5491
- # table, dictionary, or JSON object composed of a collection of (MapKey,
5492
- # MapValue) pairs: - MapKey type: string - MapKey value: parameter name -
5493
- # MapValue type: - If parameter's entity type is a composite entity: map - Else:
5494
- # depending on parameter value type, could be one of string, number, boolean,
5495
- # null, list or map - MapValue value: - If parameter's entity type is a
5496
- # composite entity: map from composite entity property names to property values -
5497
- # Else: parameter value
5498
- # Corresponds to the JSON property `parameters`
5499
- # @return [Hash<String,Object>]
5500
- attr_accessor :parameters
6983
+ # Required. Knowledge bases to query. Format: `projects//locations//
6984
+ # knowledgeBases/`. Currently, at most 5 knowledge bases are supported.
6985
+ # Corresponds to the JSON property `knowledgeBases`
6986
+ # @return [Array<String>]
6987
+ attr_accessor :knowledge_bases
5501
6988
 
5502
6989
  def initialize(**args)
5503
6990
  update!(**args)
@@ -5505,22 +6992,25 @@ module Google
5505
6992
 
5506
6993
  # Update properties of this object
5507
6994
  def update!(**args)
5508
- @language_code = args[:language_code] if args.key?(:language_code)
5509
- @name = args[:name] if args.key?(:name)
5510
- @parameters = args[:parameters] if args.key?(:parameters)
6995
+ @knowledge_bases = args[:knowledge_bases] if args.key?(:knowledge_bases)
5511
6996
  end
5512
6997
  end
5513
6998
 
5514
- # The request message for Agents.ExportAgent.
5515
- class GoogleCloudDialogflowV2ExportAgentRequest
6999
+ # Settings of suggestion trigger.
7000
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionTriggerSettings
5516
7001
  include Google::Apis::Core::Hashable
5517
7002
 
5518
- # Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
5519
- # URI to export the agent to. The format of this URI must be `gs:///`. If left
5520
- # unspecified, the serialized agent is returned inline.
5521
- # Corresponds to the JSON property `agentUri`
5522
- # @return [String]
5523
- attr_accessor :agent_uri
7003
+ # Do not trigger if last utterance is small talk.
7004
+ # Corresponds to the JSON property `noSmalltalk`
7005
+ # @return [Boolean]
7006
+ attr_accessor :no_smalltalk
7007
+ alias_method :no_smalltalk?, :no_smalltalk
7008
+
7009
+ # Only trigger suggestion if participant role of last utterance is END_USER.
7010
+ # Corresponds to the JSON property `onlyEndUser`
7011
+ # @return [Boolean]
7012
+ attr_accessor :only_end_user
7013
+ alias_method :only_end_user?, :only_end_user
5524
7014
 
5525
7015
  def initialize(**args)
5526
7016
  update!(**args)
@@ -5528,25 +7018,32 @@ module Google
5528
7018
 
5529
7019
  # Update properties of this object
5530
7020
  def update!(**args)
5531
- @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
7021
+ @no_smalltalk = args[:no_smalltalk] if args.key?(:no_smalltalk)
7022
+ @only_end_user = args[:only_end_user] if args.key?(:only_end_user)
5532
7023
  end
5533
7024
  end
5534
7025
 
5535
- # The response message for Agents.ExportAgent.
5536
- class GoogleCloudDialogflowV2ExportAgentResponse
7026
+ # Represents a notification sent to Cloud Pub/Sub subscribers for human agent
7027
+ # assistant events in a specific conversation.
7028
+ class GoogleCloudDialogflowV2HumanAgentAssistantEvent
5537
7029
  include Google::Apis::Core::Hashable
5538
7030
 
5539
- # Zip compressed raw byte content for agent.
5540
- # Corresponds to the JSON property `agentContent`
5541
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
7031
+ # The conversation this notification refers to. Format: `projects//conversations/
7032
+ # `.
7033
+ # Corresponds to the JSON property `conversation`
5542
7034
  # @return [String]
5543
- attr_accessor :agent_content
7035
+ attr_accessor :conversation
5544
7036
 
5545
- # The URI to a file containing the exported agent. This field is populated only
5546
- # if `agent_uri` is specified in `ExportAgentRequest`.
5547
- # Corresponds to the JSON property `agentUri`
7037
+ # The participant that the suggestion is compiled for. Format: `projects//
7038
+ # conversations//participants/`. It will not be set in legacy workflow.
7039
+ # Corresponds to the JSON property `participant`
5548
7040
  # @return [String]
5549
- attr_accessor :agent_uri
7041
+ attr_accessor :participant
7042
+
7043
+ # The suggestion results payload that this notification refers to.
7044
+ # Corresponds to the JSON property `suggestionResults`
7045
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionResult>]
7046
+ attr_accessor :suggestion_results
5550
7047
 
5551
7048
  def initialize(**args)
5552
7049
  update!(**args)
@@ -5554,53 +7051,26 @@ module Google
5554
7051
 
5555
7052
  # Update properties of this object
5556
7053
  def update!(**args)
5557
- @agent_content = args[:agent_content] if args.key?(:agent_content)
5558
- @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
7054
+ @conversation = args[:conversation] if args.key?(:conversation)
7055
+ @participant = args[:participant] if args.key?(:participant)
7056
+ @suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
5559
7057
  end
5560
7058
  end
5561
7059
 
5562
- # By default, your agent responds to a matched intent with a static response. As
5563
- # an alternative, you can provide a more dynamic response by using fulfillment.
5564
- # When you enable fulfillment for an intent, Dialogflow responds to that intent
5565
- # by calling a service that you define. For example, if an end-user wants to
5566
- # schedule a haircut on Friday, your service can check your database and respond
5567
- # to the end-user with availability information for Friday. For more information,
5568
- # see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/
5569
- # fulfillment-overview).
5570
- class GoogleCloudDialogflowV2Fulfillment
7060
+ # Defines the hand off to a live agent, typically on which external agent
7061
+ # service provider to connect to a conversation.
7062
+ class GoogleCloudDialogflowV2HumanAgentHandoffConfig
5571
7063
  include Google::Apis::Core::Hashable
5572
7064
 
5573
- # Optional. The human-readable name of the fulfillment, unique within the agent.
5574
- # Corresponds to the JSON property `displayName`
5575
- # @return [String]
5576
- attr_accessor :display_name
5577
-
5578
- # Optional. Whether fulfillment is enabled.
5579
- # Corresponds to the JSON property `enabled`
5580
- # @return [Boolean]
5581
- attr_accessor :enabled
5582
- alias_method :enabled?, :enabled
5583
-
5584
- # Optional. The field defines whether the fulfillment is enabled for certain
5585
- # features.
5586
- # Corresponds to the JSON property `features`
5587
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentFeature>]
5588
- attr_accessor :features
5589
-
5590
- # Represents configuration for a generic web service. Dialogflow supports two
5591
- # mechanisms for authentications: - Basic authentication with username and
5592
- # password. - Authentication with additional authentication headers. More
5593
- # information could be found at: https://cloud.google.com/dialogflow/docs/
5594
- # fulfillment-configure.
5595
- # Corresponds to the JSON property `genericWebService`
5596
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService]
5597
- attr_accessor :generic_web_service
7065
+ # Configuration specific to LivePerson (https://www.liveperson.com).
7066
+ # Corresponds to the JSON property `livePersonConfig`
7067
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig]
7068
+ attr_accessor :live_person_config
5598
7069
 
5599
- # Required. The unique identifier of the fulfillment. Format: `projects//agent/
5600
- # fulfillment`.
5601
- # Corresponds to the JSON property `name`
5602
- # @return [String]
5603
- attr_accessor :name
7070
+ # Configuration specific to Salesforce Live Agent.
7071
+ # Corresponds to the JSON property `salesforceLiveAgentConfig`
7072
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig]
7073
+ attr_accessor :salesforce_live_agent_config
5604
7074
 
5605
7075
  def initialize(**args)
5606
7076
  update!(**args)
@@ -5608,22 +7078,20 @@ module Google
5608
7078
 
5609
7079
  # Update properties of this object
5610
7080
  def update!(**args)
5611
- @display_name = args[:display_name] if args.key?(:display_name)
5612
- @enabled = args[:enabled] if args.key?(:enabled)
5613
- @features = args[:features] if args.key?(:features)
5614
- @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
5615
- @name = args[:name] if args.key?(:name)
7081
+ @live_person_config = args[:live_person_config] if args.key?(:live_person_config)
7082
+ @salesforce_live_agent_config = args[:salesforce_live_agent_config] if args.key?(:salesforce_live_agent_config)
5616
7083
  end
5617
7084
  end
5618
7085
 
5619
- # Whether fulfillment is enabled for the specific feature.
5620
- class GoogleCloudDialogflowV2FulfillmentFeature
7086
+ # Configuration specific to LivePerson (https://www.liveperson.com).
7087
+ class GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig
5621
7088
  include Google::Apis::Core::Hashable
5622
7089
 
5623
- # The type of the feature that enabled for fulfillment.
5624
- # Corresponds to the JSON property `type`
7090
+ # Required. Account number of the LivePerson account to connect. This is the
7091
+ # account number you input at the login page.
7092
+ # Corresponds to the JSON property `accountNumber`
5625
7093
  # @return [String]
5626
- attr_accessor :type
7094
+ attr_accessor :account_number
5627
7095
 
5628
7096
  def initialize(**args)
5629
7097
  update!(**args)
@@ -5631,45 +7099,36 @@ module Google
5631
7099
 
5632
7100
  # Update properties of this object
5633
7101
  def update!(**args)
5634
- @type = args[:type] if args.key?(:type)
7102
+ @account_number = args[:account_number] if args.key?(:account_number)
5635
7103
  end
5636
7104
  end
5637
7105
 
5638
- # Represents configuration for a generic web service. Dialogflow supports two
5639
- # mechanisms for authentications: - Basic authentication with username and
5640
- # password. - Authentication with additional authentication headers. More
5641
- # information could be found at: https://cloud.google.com/dialogflow/docs/
5642
- # fulfillment-configure.
5643
- class GoogleCloudDialogflowV2FulfillmentGenericWebService
5644
- include Google::Apis::Core::Hashable
5645
-
5646
- # Optional. Indicates if generic web service is created through Cloud Functions
5647
- # integration. Defaults to false.
5648
- # Corresponds to the JSON property `isCloudFunction`
5649
- # @return [Boolean]
5650
- attr_accessor :is_cloud_function
5651
- alias_method :is_cloud_function?, :is_cloud_function
7106
+ # Configuration specific to Salesforce Live Agent.
7107
+ class GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig
7108
+ include Google::Apis::Core::Hashable
5652
7109
 
5653
- # Optional. The password for HTTP Basic authentication.
5654
- # Corresponds to the JSON property `password`
7110
+ # Required. Live Agent chat button ID.
7111
+ # Corresponds to the JSON property `buttonId`
5655
7112
  # @return [String]
5656
- attr_accessor :password
7113
+ attr_accessor :button_id
5657
7114
 
5658
- # Optional. The HTTP request headers to send together with fulfillment requests.
5659
- # Corresponds to the JSON property `requestHeaders`
5660
- # @return [Hash<String,String>]
5661
- attr_accessor :request_headers
7115
+ # Required. Live Agent deployment ID.
7116
+ # Corresponds to the JSON property `deploymentId`
7117
+ # @return [String]
7118
+ attr_accessor :deployment_id
5662
7119
 
5663
- # Required. The fulfillment URI for receiving POST requests. It must use https
5664
- # protocol.
5665
- # Corresponds to the JSON property `uri`
7120
+ # Required. Domain of the Live Agent endpoint for this agent. You can find the
7121
+ # endpoint URL in the `Live Agent settings` page. For example if URL has the
7122
+ # form https://d.la4-c2-phx.salesforceliveagent.com/..., you should fill in d.
7123
+ # la4-c2-phx.salesforceliveagent.com.
7124
+ # Corresponds to the JSON property `endpointDomain`
5666
7125
  # @return [String]
5667
- attr_accessor :uri
7126
+ attr_accessor :endpoint_domain
5668
7127
 
5669
- # Optional. The user name for HTTP Basic authentication.
5670
- # Corresponds to the JSON property `username`
7128
+ # Required. The organization ID of the Salesforce account.
7129
+ # Corresponds to the JSON property `organizationId`
5671
7130
  # @return [String]
5672
- attr_accessor :username
7131
+ attr_accessor :organization_id
5673
7132
 
5674
7133
  def initialize(**args)
5675
7134
  update!(**args)
@@ -5677,11 +7136,10 @@ module Google
5677
7136
 
5678
7137
  # Update properties of this object
5679
7138
  def update!(**args)
5680
- @is_cloud_function = args[:is_cloud_function] if args.key?(:is_cloud_function)
5681
- @password = args[:password] if args.key?(:password)
5682
- @request_headers = args[:request_headers] if args.key?(:request_headers)
5683
- @uri = args[:uri] if args.key?(:uri)
5684
- @username = args[:username] if args.key?(:username)
7139
+ @button_id = args[:button_id] if args.key?(:button_id)
7140
+ @deployment_id = args[:deployment_id] if args.key?(:deployment_id)
7141
+ @endpoint_domain = args[:endpoint_domain] if args.key?(:endpoint_domain)
7142
+ @organization_id = args[:organization_id] if args.key?(:organization_id)
5685
7143
  end
5686
7144
  end
5687
7145
 
@@ -5721,6 +7179,14 @@ module Google
5721
7179
  # @return [String]
5722
7180
  attr_accessor :audio_encoding
5723
7181
 
7182
+ # Only used in Participants.AnalyzeContent and Participants.
7183
+ # StreamingAnalyzeContent. If `false` and recognition doesn't return any result,
7184
+ # trigger `NO_SPEECH_RECOGNIZED` event to Dialogflow agent.
7185
+ # Corresponds to the JSON property `disableNoSpeechRecognizedEvent`
7186
+ # @return [Boolean]
7187
+ attr_accessor :disable_no_speech_recognized_event
7188
+ alias_method :disable_no_speech_recognized_event?, :disable_no_speech_recognized_event
7189
+
5724
7190
  # If `true`, Dialogflow returns SpeechWordInfo in StreamingRecognitionResult
5725
7191
  # with information about the recognized speech words, e.g. start and end time
5726
7192
  # offsets. If false or unspecified, Speech doesn't return any word-level
@@ -5800,6 +7266,7 @@ module Google
5800
7266
  # Update properties of this object
5801
7267
  def update!(**args)
5802
7268
  @audio_encoding = args[:audio_encoding] if args.key?(:audio_encoding)
7269
+ @disable_no_speech_recognized_event = args[:disable_no_speech_recognized_event] if args.key?(:disable_no_speech_recognized_event)
5803
7270
  @enable_word_info = args[:enable_word_info] if args.key?(:enable_word_info)
5804
7271
  @language_code = args[:language_code] if args.key?(:language_code)
5805
7272
  @model = args[:model] if args.key?(:model)
@@ -5838,6 +7305,14 @@ module Google
5838
7305
  # @return [String]
5839
7306
  attr_accessor :display_name
5840
7307
 
7308
+ # Optional. Indicates that this intent ends an interaction. Some integrations (e.
7309
+ # g., Actions on Google or Dialogflow phone gateway) use this information to
7310
+ # close interaction with an end user. Default is false.
7311
+ # Corresponds to the JSON property `endInteraction`
7312
+ # @return [Boolean]
7313
+ attr_accessor :end_interaction
7314
+ alias_method :end_interaction?, :end_interaction
7315
+
5841
7316
  # Optional. The collection of event names that trigger the intent. If the
5842
7317
  # collection of input contexts is not empty, all of the contexts must be present
5843
7318
  # in the active user session for an event to trigger this intent. Event names
@@ -5864,6 +7339,14 @@ module Google
5864
7339
  attr_accessor :is_fallback
5865
7340
  alias_method :is_fallback?, :is_fallback
5866
7341
 
7342
+ # Optional. Indicates that a live agent should be brought in to handle the
7343
+ # interaction with the user. In most cases, when you set this flag to true, you
7344
+ # would also want to set end_interaction to true as well. Default is false.
7345
+ # Corresponds to the JSON property `liveAgentHandoff`
7346
+ # @return [Boolean]
7347
+ attr_accessor :live_agent_handoff
7348
+ alias_method :live_agent_handoff?, :live_agent_handoff
7349
+
5867
7350
  # Optional. The collection of rich messages corresponding to the `Response`
5868
7351
  # field in the Dialogflow console.
5869
7352
  # Corresponds to the JSON property `messages`
@@ -5950,10 +7433,12 @@ module Google
5950
7433
  @action = args[:action] if args.key?(:action)
5951
7434
  @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms)
5952
7435
  @display_name = args[:display_name] if args.key?(:display_name)
7436
+ @end_interaction = args[:end_interaction] if args.key?(:end_interaction)
5953
7437
  @events = args[:events] if args.key?(:events)
5954
7438
  @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
5955
7439
  @input_context_names = args[:input_context_names] if args.key?(:input_context_names)
5956
7440
  @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
7441
+ @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
5957
7442
  @messages = args[:messages] if args.key?(:messages)
5958
7443
  @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
5959
7444
  @name = args[:name] if args.key?(:name)
@@ -7061,6 +8546,121 @@ module Google
7061
8546
  end
7062
8547
  end
7063
8548
 
8549
+ # A knowledge base represents a collection of knowledge documents that you
8550
+ # provide to Dialogflow. Your knowledge documents contain information that may
8551
+ # be useful during conversations with end-users. Some Dialogflow features use
8552
+ # knowledge bases when looking for a response to an end-user input. For more
8553
+ # information, see the [knowledge base guide](https://cloud.google.com/
8554
+ # dialogflow/docs/how/knowledge-bases). Note: The `projects.agent.knowledgeBases`
8555
+ # resource is deprecated; only use `projects.knowledgeBases`.
8556
+ class GoogleCloudDialogflowV2KnowledgeBase
8557
+ include Google::Apis::Core::Hashable
8558
+
8559
+ # Required. The display name of the knowledge base. The name must be 1024 bytes
8560
+ # or less; otherwise, the creation request fails.
8561
+ # Corresponds to the JSON property `displayName`
8562
+ # @return [String]
8563
+ attr_accessor :display_name
8564
+
8565
+ # Language which represents the KnowledgeBase. When the KnowledgeBase is created/
8566
+ # updated, expect this to be present for non en-us languages. When unspecified,
8567
+ # the default language code en-us applies.
8568
+ # Corresponds to the JSON property `languageCode`
8569
+ # @return [String]
8570
+ attr_accessor :language_code
8571
+
8572
+ # The knowledge base resource name. The name must be empty when creating a
8573
+ # knowledge base. Format: `projects//locations//knowledgeBases/`.
8574
+ # Corresponds to the JSON property `name`
8575
+ # @return [String]
8576
+ attr_accessor :name
8577
+
8578
+ def initialize(**args)
8579
+ update!(**args)
8580
+ end
8581
+
8582
+ # Update properties of this object
8583
+ def update!(**args)
8584
+ @display_name = args[:display_name] if args.key?(:display_name)
8585
+ @language_code = args[:language_code] if args.key?(:language_code)
8586
+ @name = args[:name] if args.key?(:name)
8587
+ end
8588
+ end
8589
+
8590
+ # Metadata in google::longrunning::Operation for Knowledge operations.
8591
+ class GoogleCloudDialogflowV2KnowledgeOperationMetadata
8592
+ include Google::Apis::Core::Hashable
8593
+
8594
+ # Output only. The current state of this operation.
8595
+ # Corresponds to the JSON property `state`
8596
+ # @return [String]
8597
+ attr_accessor :state
8598
+
8599
+ def initialize(**args)
8600
+ update!(**args)
8601
+ end
8602
+
8603
+ # Update properties of this object
8604
+ def update!(**args)
8605
+ @state = args[:state] if args.key?(:state)
8606
+ end
8607
+ end
8608
+
8609
+ # Response message for AnswerRecords.ListAnswerRecords.
8610
+ class GoogleCloudDialogflowV2ListAnswerRecordsResponse
8611
+ include Google::Apis::Core::Hashable
8612
+
8613
+ # The list of answer records.
8614
+ # Corresponds to the JSON property `answerRecords`
8615
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnswerRecord>]
8616
+ attr_accessor :answer_records
8617
+
8618
+ # A token to retrieve next page of results. Or empty if there are no more
8619
+ # results. Pass this value in the ListAnswerRecordsRequest.page_token field in
8620
+ # the subsequent call to `ListAnswerRecords` method to retrieve the next page of
8621
+ # results.
8622
+ # Corresponds to the JSON property `nextPageToken`
8623
+ # @return [String]
8624
+ attr_accessor :next_page_token
8625
+
8626
+ def initialize(**args)
8627
+ update!(**args)
8628
+ end
8629
+
8630
+ # Update properties of this object
8631
+ def update!(**args)
8632
+ @answer_records = args[:answer_records] if args.key?(:answer_records)
8633
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8634
+ end
8635
+ end
8636
+
8637
+ # The response message for Conversations.ListCallMatchers.
8638
+ class GoogleCloudDialogflowV2ListCallMatchersResponse
8639
+ include Google::Apis::Core::Hashable
8640
+
8641
+ # The list of call matchers. There is a maximum number of items returned based
8642
+ # on the page_size field in the request.
8643
+ # Corresponds to the JSON property `callMatchers`
8644
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CallMatcher>]
8645
+ attr_accessor :call_matchers
8646
+
8647
+ # Token to retrieve the next page of results or empty if there are no more
8648
+ # results in the list.
8649
+ # Corresponds to the JSON property `nextPageToken`
8650
+ # @return [String]
8651
+ attr_accessor :next_page_token
8652
+
8653
+ def initialize(**args)
8654
+ update!(**args)
8655
+ end
8656
+
8657
+ # Update properties of this object
8658
+ def update!(**args)
8659
+ @call_matchers = args[:call_matchers] if args.key?(:call_matchers)
8660
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8661
+ end
8662
+ end
8663
+
7064
8664
  # The response message for Contexts.ListContexts.
7065
8665
  class GoogleCloudDialogflowV2ListContextsResponse
7066
8666
  include Google::Apis::Core::Hashable
@@ -7088,15 +8688,175 @@ module Google
7088
8688
  end
7089
8689
  end
7090
8690
 
7091
- # The response message for EntityTypes.ListEntityTypes.
7092
- class GoogleCloudDialogflowV2ListEntityTypesResponse
8691
+ # The response message for ConversationProfiles.ListConversationProfiles.
8692
+ class GoogleCloudDialogflowV2ListConversationProfilesResponse
8693
+ include Google::Apis::Core::Hashable
8694
+
8695
+ # The list of project conversation profiles. There is a maximum number of items
8696
+ # returned based on the page_size field in the request.
8697
+ # Corresponds to the JSON property `conversationProfiles`
8698
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationProfile>]
8699
+ attr_accessor :conversation_profiles
8700
+
8701
+ # Token to retrieve the next page of results, or empty if there are no more
8702
+ # results in the list.
8703
+ # Corresponds to the JSON property `nextPageToken`
8704
+ # @return [String]
8705
+ attr_accessor :next_page_token
8706
+
8707
+ def initialize(**args)
8708
+ update!(**args)
8709
+ end
8710
+
8711
+ # Update properties of this object
8712
+ def update!(**args)
8713
+ @conversation_profiles = args[:conversation_profiles] if args.key?(:conversation_profiles)
8714
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8715
+ end
8716
+ end
8717
+
8718
+ # The response message for Conversations.ListConversations.
8719
+ class GoogleCloudDialogflowV2ListConversationsResponse
8720
+ include Google::Apis::Core::Hashable
8721
+
8722
+ # The list of conversations. There will be a maximum number of items returned
8723
+ # based on the page_size field in the request.
8724
+ # Corresponds to the JSON property `conversations`
8725
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Conversation>]
8726
+ attr_accessor :conversations
8727
+
8728
+ # Token to retrieve the next page of results, or empty if there are no more
8729
+ # results in the list.
8730
+ # Corresponds to the JSON property `nextPageToken`
8731
+ # @return [String]
8732
+ attr_accessor :next_page_token
8733
+
8734
+ def initialize(**args)
8735
+ update!(**args)
8736
+ end
8737
+
8738
+ # Update properties of this object
8739
+ def update!(**args)
8740
+ @conversations = args[:conversations] if args.key?(:conversations)
8741
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8742
+ end
8743
+ end
8744
+
8745
+ # Response message for Documents.ListDocuments.
8746
+ class GoogleCloudDialogflowV2ListDocumentsResponse
8747
+ include Google::Apis::Core::Hashable
8748
+
8749
+ # The list of documents.
8750
+ # Corresponds to the JSON property `documents`
8751
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Document>]
8752
+ attr_accessor :documents
8753
+
8754
+ # Token to retrieve the next page of results, or empty if there are no more
8755
+ # results in the list.
8756
+ # Corresponds to the JSON property `nextPageToken`
8757
+ # @return [String]
8758
+ attr_accessor :next_page_token
8759
+
8760
+ def initialize(**args)
8761
+ update!(**args)
8762
+ end
8763
+
8764
+ # Update properties of this object
8765
+ def update!(**args)
8766
+ @documents = args[:documents] if args.key?(:documents)
8767
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8768
+ end
8769
+ end
8770
+
8771
+ # The response message for EntityTypes.ListEntityTypes.
8772
+ class GoogleCloudDialogflowV2ListEntityTypesResponse
8773
+ include Google::Apis::Core::Hashable
8774
+
8775
+ # The list of agent entity types. There will be a maximum number of items
8776
+ # returned based on the page_size field in the request.
8777
+ # Corresponds to the JSON property `entityTypes`
8778
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType>]
8779
+ attr_accessor :entity_types
8780
+
8781
+ # Token to retrieve the next page of results, or empty if there are no more
8782
+ # results in the list.
8783
+ # Corresponds to the JSON property `nextPageToken`
8784
+ # @return [String]
8785
+ attr_accessor :next_page_token
8786
+
8787
+ def initialize(**args)
8788
+ update!(**args)
8789
+ end
8790
+
8791
+ # Update properties of this object
8792
+ def update!(**args)
8793
+ @entity_types = args[:entity_types] if args.key?(:entity_types)
8794
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8795
+ end
8796
+ end
8797
+
8798
+ # The response message for Environments.ListEnvironments.
8799
+ class GoogleCloudDialogflowV2ListEnvironmentsResponse
8800
+ include Google::Apis::Core::Hashable
8801
+
8802
+ # The list of agent environments. There will be a maximum number of items
8803
+ # returned based on the page_size field in the request.
8804
+ # Corresponds to the JSON property `environments`
8805
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment>]
8806
+ attr_accessor :environments
8807
+
8808
+ # Token to retrieve the next page of results, or empty if there are no more
8809
+ # results in the list.
8810
+ # Corresponds to the JSON property `nextPageToken`
8811
+ # @return [String]
8812
+ attr_accessor :next_page_token
8813
+
8814
+ def initialize(**args)
8815
+ update!(**args)
8816
+ end
8817
+
8818
+ # Update properties of this object
8819
+ def update!(**args)
8820
+ @environments = args[:environments] if args.key?(:environments)
8821
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8822
+ end
8823
+ end
8824
+
8825
+ # The response message for Intents.ListIntents.
8826
+ class GoogleCloudDialogflowV2ListIntentsResponse
8827
+ include Google::Apis::Core::Hashable
8828
+
8829
+ # The list of agent intents. There will be a maximum number of items returned
8830
+ # based on the page_size field in the request.
8831
+ # Corresponds to the JSON property `intents`
8832
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent>]
8833
+ attr_accessor :intents
8834
+
8835
+ # Token to retrieve the next page of results, or empty if there are no more
8836
+ # results in the list.
8837
+ # Corresponds to the JSON property `nextPageToken`
8838
+ # @return [String]
8839
+ attr_accessor :next_page_token
8840
+
8841
+ def initialize(**args)
8842
+ update!(**args)
8843
+ end
8844
+
8845
+ # Update properties of this object
8846
+ def update!(**args)
8847
+ @intents = args[:intents] if args.key?(:intents)
8848
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8849
+ end
8850
+ end
8851
+
8852
+ # Response message for KnowledgeBases.ListKnowledgeBases.
8853
+ class GoogleCloudDialogflowV2ListKnowledgeBasesResponse
7093
8854
  include Google::Apis::Core::Hashable
7094
8855
 
7095
- # The list of agent entity types. There will be a maximum number of items
7096
- # returned based on the page_size field in the request.
7097
- # Corresponds to the JSON property `entityTypes`
7098
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType>]
7099
- attr_accessor :entity_types
8856
+ # The list of knowledge bases.
8857
+ # Corresponds to the JSON property `knowledgeBases`
8858
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeBase>]
8859
+ attr_accessor :knowledge_bases
7100
8860
 
7101
8861
  # Token to retrieve the next page of results, or empty if there are no more
7102
8862
  # results in the list.
@@ -7110,20 +8870,21 @@ module Google
7110
8870
 
7111
8871
  # Update properties of this object
7112
8872
  def update!(**args)
7113
- @entity_types = args[:entity_types] if args.key?(:entity_types)
8873
+ @knowledge_bases = args[:knowledge_bases] if args.key?(:knowledge_bases)
7114
8874
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
7115
8875
  end
7116
8876
  end
7117
8877
 
7118
- # The response message for Environments.ListEnvironments.
7119
- class GoogleCloudDialogflowV2ListEnvironmentsResponse
8878
+ # The response message for Conversations.ListMessages.
8879
+ class GoogleCloudDialogflowV2ListMessagesResponse
7120
8880
  include Google::Apis::Core::Hashable
7121
8881
 
7122
- # The list of agent environments. There will be a maximum number of items
7123
- # returned based on the page_size field in the request.
7124
- # Corresponds to the JSON property `environments`
7125
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Environment>]
7126
- attr_accessor :environments
8882
+ # The list of messages. There will be a maximum number of items returned based
8883
+ # on the page_size field in the request. `messages` is sorted by `create_time`
8884
+ # in descending order.
8885
+ # Corresponds to the JSON property `messages`
8886
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Message>]
8887
+ attr_accessor :messages
7127
8888
 
7128
8889
  # Token to retrieve the next page of results, or empty if there are no more
7129
8890
  # results in the list.
@@ -7137,35 +8898,35 @@ module Google
7137
8898
 
7138
8899
  # Update properties of this object
7139
8900
  def update!(**args)
7140
- @environments = args[:environments] if args.key?(:environments)
8901
+ @messages = args[:messages] if args.key?(:messages)
7141
8902
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
7142
8903
  end
7143
8904
  end
7144
8905
 
7145
- # The response message for Intents.ListIntents.
7146
- class GoogleCloudDialogflowV2ListIntentsResponse
8906
+ # The response message for Participants.ListParticipants.
8907
+ class GoogleCloudDialogflowV2ListParticipantsResponse
7147
8908
  include Google::Apis::Core::Hashable
7148
8909
 
7149
- # The list of agent intents. There will be a maximum number of items returned
7150
- # based on the page_size field in the request.
7151
- # Corresponds to the JSON property `intents`
7152
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent>]
7153
- attr_accessor :intents
7154
-
7155
- # Token to retrieve the next page of results, or empty if there are no more
8910
+ # Token to retrieve the next page of results or empty if there are no more
7156
8911
  # results in the list.
7157
8912
  # Corresponds to the JSON property `nextPageToken`
7158
8913
  # @return [String]
7159
8914
  attr_accessor :next_page_token
7160
8915
 
8916
+ # The list of participants. There is a maximum number of items returned based on
8917
+ # the page_size field in the request.
8918
+ # Corresponds to the JSON property `participants`
8919
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Participant>]
8920
+ attr_accessor :participants
8921
+
7161
8922
  def initialize(**args)
7162
8923
  update!(**args)
7163
8924
  end
7164
8925
 
7165
8926
  # Update properties of this object
7166
8927
  def update!(**args)
7167
- @intents = args[:intents] if args.key?(:intents)
7168
8928
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
8929
+ @participants = args[:participants] if args.key?(:participants)
7169
8930
  end
7170
8931
  end
7171
8932
 
@@ -7196,6 +8957,27 @@ module Google
7196
8957
  end
7197
8958
  end
7198
8959
 
8960
+ # Defines logging behavior for conversation lifecycle events.
8961
+ class GoogleCloudDialogflowV2LoggingConfig
8962
+ include Google::Apis::Core::Hashable
8963
+
8964
+ # Whether to log conversation events like CONVERSATION_STARTED to Stackdriver in
8965
+ # the conversation project as JSON format ConversationEvent protos.
8966
+ # Corresponds to the JSON property `enableStackdriverLogging`
8967
+ # @return [Boolean]
8968
+ attr_accessor :enable_stackdriver_logging
8969
+ alias_method :enable_stackdriver_logging?, :enable_stackdriver_logging
8970
+
8971
+ def initialize(**args)
8972
+ update!(**args)
8973
+ end
8974
+
8975
+ # Update properties of this object
8976
+ def update!(**args)
8977
+ @enable_stackdriver_logging = args[:enable_stackdriver_logging] if args.key?(:enable_stackdriver_logging)
8978
+ end
8979
+ end
8980
+
7199
8981
  # Represents a message posted into a conversation.
7200
8982
  class GoogleCloudDialogflowV2Message
7201
8983
  include Google::Apis::Core::Hashable
@@ -7281,6 +9063,36 @@ module Google
7281
9063
  end
7282
9064
  end
7283
9065
 
9066
+ # Defines notification behavior.
9067
+ class GoogleCloudDialogflowV2NotificationConfig
9068
+ include Google::Apis::Core::Hashable
9069
+
9070
+ # Format of message.
9071
+ # Corresponds to the JSON property `messageFormat`
9072
+ # @return [String]
9073
+ attr_accessor :message_format
9074
+
9075
+ # Name of the Pub/Sub topic to publish conversation events like
9076
+ # CONVERSATION_STARTED as serialized ConversationEvent protos. Notification
9077
+ # works for phone calls, if this topic either is in the same project as the
9078
+ # conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`
9079
+ # the `Dialogflow Service Agent` role in the topic project. Format: `projects//
9080
+ # locations//topics/`.
9081
+ # Corresponds to the JSON property `topic`
9082
+ # @return [String]
9083
+ attr_accessor :topic
9084
+
9085
+ def initialize(**args)
9086
+ update!(**args)
9087
+ end
9088
+
9089
+ # Update properties of this object
9090
+ def update!(**args)
9091
+ @message_format = args[:message_format] if args.key?(:message_format)
9092
+ @topic = args[:topic] if args.key?(:topic)
9093
+ end
9094
+ end
9095
+
7284
9096
  # Represents the contents of the original request that was passed to the `[
7285
9097
  # Streaming]DetectIntent` call.
7286
9098
  class GoogleCloudDialogflowV2OriginalDetectIntentRequest
@@ -7321,6 +9133,34 @@ module Google
7321
9133
  end
7322
9134
  end
7323
9135
 
9136
+ # Represents the natural language speech audio to be played to the end user.
9137
+ class GoogleCloudDialogflowV2OutputAudio
9138
+ include Google::Apis::Core::Hashable
9139
+
9140
+ # The natural language speech audio.
9141
+ # Corresponds to the JSON property `audio`
9142
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
9143
+ # @return [String]
9144
+ attr_accessor :audio
9145
+
9146
+ # Instructs the speech synthesizer on how to generate the output audio content.
9147
+ # If this audio config is supplied in a request, it overrides all existing text-
9148
+ # to-speech settings applied to the agent.
9149
+ # Corresponds to the JSON property `config`
9150
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
9151
+ attr_accessor :config
9152
+
9153
+ def initialize(**args)
9154
+ update!(**args)
9155
+ end
9156
+
9157
+ # Update properties of this object
9158
+ def update!(**args)
9159
+ @audio = args[:audio] if args.key?(:audio)
9160
+ @config = args[:config] if args.key?(:config)
9161
+ end
9162
+ end
9163
+
7324
9164
  # Instructs the speech synthesizer on how to generate the output audio content.
7325
9165
  # If this audio config is supplied in a request, it overrides all existing text-
7326
9166
  # to-speech settings applied to the agent.
@@ -7358,6 +9198,41 @@ module Google
7358
9198
  end
7359
9199
  end
7360
9200
 
9201
+ # Represents a conversation participant (human agent, virtual agent, end-user).
9202
+ class GoogleCloudDialogflowV2Participant
9203
+ include Google::Apis::Core::Hashable
9204
+
9205
+ # Optional. The unique identifier of this participant. Format: `projects//
9206
+ # locations//conversations//participants/`.
9207
+ # Corresponds to the JSON property `name`
9208
+ # @return [String]
9209
+ attr_accessor :name
9210
+
9211
+ # Immutable. The role this participant plays in the conversation. This field
9212
+ # must be set during participant creation and is then immutable.
9213
+ # Corresponds to the JSON property `role`
9214
+ # @return [String]
9215
+ attr_accessor :role
9216
+
9217
+ # Optional. Label applied to streams representing this participant in SIPREC XML
9218
+ # metadata and SDP. This is used to assign transcriptions from that media stream
9219
+ # to this participant. This field can be updated.
9220
+ # Corresponds to the JSON property `sipRecordingMediaLabel`
9221
+ # @return [String]
9222
+ attr_accessor :sip_recording_media_label
9223
+
9224
+ def initialize(**args)
9225
+ update!(**args)
9226
+ end
9227
+
9228
+ # Update properties of this object
9229
+ def update!(**args)
9230
+ @name = args[:name] if args.key?(:name)
9231
+ @role = args[:role] if args.key?(:role)
9232
+ @sip_recording_media_label = args[:sip_recording_media_label] if args.key?(:sip_recording_media_label)
9233
+ end
9234
+ end
9235
+
7361
9236
  # Represents the query input. It can contain either: 1. An audio config which
7362
9237
  # instructs the speech recognizer how to process the speech audio. 2. A
7363
9238
  # conversational query in the form of text,. 3. An event that specifies which
@@ -7629,6 +9504,27 @@ module Google
7629
9504
  end
7630
9505
  end
7631
9506
 
9507
+ # Request message for Documents.ReloadDocument.
9508
+ class GoogleCloudDialogflowV2ReloadDocumentRequest
9509
+ include Google::Apis::Core::Hashable
9510
+
9511
+ # Optional. The path of gcs source file for reloading document content. For now,
9512
+ # only gcs uri is supported. For documents stored in Google Cloud Storage, these
9513
+ # URIs must have the form `gs:///`.
9514
+ # Corresponds to the JSON property `contentUri`
9515
+ # @return [String]
9516
+ attr_accessor :content_uri
9517
+
9518
+ def initialize(**args)
9519
+ update!(**args)
9520
+ end
9521
+
9522
+ # Update properties of this object
9523
+ def update!(**args)
9524
+ @content_uri = args[:content_uri] if args.key?(:content_uri)
9525
+ end
9526
+ end
9527
+
7632
9528
  # The request message for Agents.RestoreAgent.
7633
9529
  class GoogleCloudDialogflowV2RestoreAgentRequest
7634
9530
  include Google::Apis::Core::Hashable
@@ -7773,21 +9669,226 @@ module Google
7773
9669
  # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
7774
9670
  attr_accessor :entities
7775
9671
 
7776
- # Required. Indicates whether the additional data should override or supplement
7777
- # the custom entity type definition.
7778
- # Corresponds to the JSON property `entityOverrideMode`
7779
- # @return [String]
7780
- attr_accessor :entity_override_mode
9672
+ # Required. Indicates whether the additional data should override or supplement
9673
+ # the custom entity type definition.
9674
+ # Corresponds to the JSON property `entityOverrideMode`
9675
+ # @return [String]
9676
+ attr_accessor :entity_override_mode
9677
+
9678
+ # Required. The unique identifier of this session entity type. Format: `projects/
9679
+ # /agent/sessions//entityTypes/`, or `projects//agent/environments//users//
9680
+ # sessions//entityTypes/`. If `Environment ID` is not specified, we assume
9681
+ # default 'draft' environment. If `User ID` is not specified, we assume default '
9682
+ # -' user. `` must be the display name of an existing entity type in the same
9683
+ # agent that will be overridden or supplemented.
9684
+ # Corresponds to the JSON property `name`
9685
+ # @return [String]
9686
+ attr_accessor :name
9687
+
9688
+ def initialize(**args)
9689
+ update!(**args)
9690
+ end
9691
+
9692
+ # Update properties of this object
9693
+ def update!(**args)
9694
+ @entities = args[:entities] if args.key?(:entities)
9695
+ @entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode)
9696
+ @name = args[:name] if args.key?(:name)
9697
+ end
9698
+ end
9699
+
9700
+ # Hints for the speech recognizer to help with recognition in a specific
9701
+ # conversation state.
9702
+ class GoogleCloudDialogflowV2SpeechContext
9703
+ include Google::Apis::Core::Hashable
9704
+
9705
+ # Optional. Boost for this context compared to other contexts: * If the boost is
9706
+ # positive, Dialogflow will increase the probability that the phrases in this
9707
+ # context are recognized over similar sounding phrases. * If the boost is
9708
+ # unspecified or non-positive, Dialogflow will not apply any boost. Dialogflow
9709
+ # recommends that you use boosts in the range (0, 20] and that you find a value
9710
+ # that fits your use case with binary search.
9711
+ # Corresponds to the JSON property `boost`
9712
+ # @return [Float]
9713
+ attr_accessor :boost
9714
+
9715
+ # Optional. A list of strings containing words and phrases that the speech
9716
+ # recognizer should recognize with higher likelihood. This list can be used to: *
9717
+ # improve accuracy for words and phrases you expect the user to say, e.g.
9718
+ # typical commands for your Dialogflow agent * add additional words to the
9719
+ # speech recognizer vocabulary * ... See the [Cloud Speech documentation](https:/
9720
+ # /cloud.google.com/speech-to-text/quotas) for usage limits.
9721
+ # Corresponds to the JSON property `phrases`
9722
+ # @return [Array<String>]
9723
+ attr_accessor :phrases
9724
+
9725
+ def initialize(**args)
9726
+ update!(**args)
9727
+ end
9728
+
9729
+ # Update properties of this object
9730
+ def update!(**args)
9731
+ @boost = args[:boost] if args.key?(:boost)
9732
+ @phrases = args[:phrases] if args.key?(:phrases)
9733
+ end
9734
+ end
9735
+
9736
+ # Configures speech transcription for ConversationProfile.
9737
+ class GoogleCloudDialogflowV2SpeechToTextConfig
9738
+ include Google::Apis::Core::Hashable
9739
+
9740
+ # Optional. The speech model used in speech to text. `
9741
+ # SPEECH_MODEL_VARIANT_UNSPECIFIED`, `USE_BEST_AVAILABLE` will be treated as `
9742
+ # USE_ENHANCED`. It can be overridden in AnalyzeContentRequest and
9743
+ # StreamingAnalyzeContentRequest request.
9744
+ # Corresponds to the JSON property `speechModelVariant`
9745
+ # @return [String]
9746
+ attr_accessor :speech_model_variant
9747
+
9748
+ def initialize(**args)
9749
+ update!(**args)
9750
+ end
9751
+
9752
+ # Update properties of this object
9753
+ def update!(**args)
9754
+ @speech_model_variant = args[:speech_model_variant] if args.key?(:speech_model_variant)
9755
+ end
9756
+ end
9757
+
9758
+ # The request message for Participants.SuggestArticles.
9759
+ class GoogleCloudDialogflowV2SuggestArticlesRequest
9760
+ include Google::Apis::Core::Hashable
9761
+
9762
+ # Max number of messages prior to and including latest_message to use as context
9763
+ # when compiling the suggestion. By default 20 and at most 50.
9764
+ # Corresponds to the JSON property `contextSize`
9765
+ # @return [Fixnum]
9766
+ attr_accessor :context_size
9767
+
9768
+ # The name of the latest conversation message to compile suggestion for. If
9769
+ # empty, it will be the latest message of the conversation. Format: `projects//
9770
+ # locations//conversations//messages/`.
9771
+ # Corresponds to the JSON property `latestMessage`
9772
+ # @return [String]
9773
+ attr_accessor :latest_message
9774
+
9775
+ def initialize(**args)
9776
+ update!(**args)
9777
+ end
9778
+
9779
+ # Update properties of this object
9780
+ def update!(**args)
9781
+ @context_size = args[:context_size] if args.key?(:context_size)
9782
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
9783
+ end
9784
+ end
9785
+
9786
+ # The response message for Participants.SuggestArticles.
9787
+ class GoogleCloudDialogflowV2SuggestArticlesResponse
9788
+ include Google::Apis::Core::Hashable
9789
+
9790
+ # Articles ordered by score in descending order.
9791
+ # Corresponds to the JSON property `articleAnswers`
9792
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer>]
9793
+ attr_accessor :article_answers
9794
+
9795
+ # Number of messages prior to and including latest_message to compile the
9796
+ # suggestion. It may be smaller than the SuggestArticlesRequest.context_size
9797
+ # field in the request if there aren't that many messages in the conversation.
9798
+ # Corresponds to the JSON property `contextSize`
9799
+ # @return [Fixnum]
9800
+ attr_accessor :context_size
9801
+
9802
+ # The name of the latest conversation message used to compile suggestion for.
9803
+ # Format: `projects//locations//conversations//messages/`.
9804
+ # Corresponds to the JSON property `latestMessage`
9805
+ # @return [String]
9806
+ attr_accessor :latest_message
9807
+
9808
+ def initialize(**args)
9809
+ update!(**args)
9810
+ end
9811
+
9812
+ # Update properties of this object
9813
+ def update!(**args)
9814
+ @article_answers = args[:article_answers] if args.key?(:article_answers)
9815
+ @context_size = args[:context_size] if args.key?(:context_size)
9816
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
9817
+ end
9818
+ end
9819
+
9820
+ # The request message for Participants.SuggestFaqAnswers.
9821
+ class GoogleCloudDialogflowV2SuggestFaqAnswersRequest
9822
+ include Google::Apis::Core::Hashable
9823
+
9824
+ # Max number of messages prior to and including [latest_message] to use as
9825
+ # context when compiling the suggestion. By default 20 and at most 50.
9826
+ # Corresponds to the JSON property `contextSize`
9827
+ # @return [Fixnum]
9828
+ attr_accessor :context_size
9829
+
9830
+ # The name of the latest conversation message to compile suggestion for. If
9831
+ # empty, it will be the latest message of the conversation. Format: `projects//
9832
+ # locations//conversations//messages/`.
9833
+ # Corresponds to the JSON property `latestMessage`
9834
+ # @return [String]
9835
+ attr_accessor :latest_message
9836
+
9837
+ def initialize(**args)
9838
+ update!(**args)
9839
+ end
9840
+
9841
+ # Update properties of this object
9842
+ def update!(**args)
9843
+ @context_size = args[:context_size] if args.key?(:context_size)
9844
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
9845
+ end
9846
+ end
9847
+
9848
+ # The request message for Participants.SuggestFaqAnswers.
9849
+ class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
9850
+ include Google::Apis::Core::Hashable
9851
+
9852
+ # Number of messages prior to and including latest_message to compile the
9853
+ # suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size
9854
+ # field in the request if there aren't that many messages in the conversation.
9855
+ # Corresponds to the JSON property `contextSize`
9856
+ # @return [Fixnum]
9857
+ attr_accessor :context_size
9858
+
9859
+ # Answers extracted from FAQ documents.
9860
+ # Corresponds to the JSON property `faqAnswers`
9861
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer>]
9862
+ attr_accessor :faq_answers
9863
+
9864
+ # The name of the latest conversation message used to compile suggestion for.
9865
+ # Format: `projects//locations//conversations//messages/`.
9866
+ # Corresponds to the JSON property `latestMessage`
9867
+ # @return [String]
9868
+ attr_accessor :latest_message
9869
+
9870
+ def initialize(**args)
9871
+ update!(**args)
9872
+ end
9873
+
9874
+ # Update properties of this object
9875
+ def update!(**args)
9876
+ @context_size = args[:context_size] if args.key?(:context_size)
9877
+ @faq_answers = args[:faq_answers] if args.key?(:faq_answers)
9878
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
9879
+ end
9880
+ end
9881
+
9882
+ # The type of Human Agent Assistant API suggestion to perform, and the maximum
9883
+ # number of results to return for that type. Multiple `Feature` objects can be
9884
+ # specified in the `features` list.
9885
+ class GoogleCloudDialogflowV2SuggestionFeature
9886
+ include Google::Apis::Core::Hashable
7781
9887
 
7782
- # Required. The unique identifier of this session entity type. Format: `projects/
7783
- # /agent/sessions//entityTypes/`, or `projects//agent/environments//users//
7784
- # sessions//entityTypes/`. If `Environment ID` is not specified, we assume
7785
- # default 'draft' environment. If `User ID` is not specified, we assume default '
7786
- # -' user. `` must be the display name of an existing entity type in the same
7787
- # agent that will be overridden or supplemented.
7788
- # Corresponds to the JSON property `name`
9888
+ # Type of Human Agent Assistant API feature to request.
9889
+ # Corresponds to the JSON property `type`
7789
9890
  # @return [String]
7790
- attr_accessor :name
9891
+ attr_accessor :type
7791
9892
 
7792
9893
  def initialize(**args)
7793
9894
  update!(**args)
@@ -7795,36 +9896,35 @@ module Google
7795
9896
 
7796
9897
  # Update properties of this object
7797
9898
  def update!(**args)
7798
- @entities = args[:entities] if args.key?(:entities)
7799
- @entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode)
7800
- @name = args[:name] if args.key?(:name)
9899
+ @type = args[:type] if args.key?(:type)
7801
9900
  end
7802
9901
  end
7803
9902
 
7804
- # Hints for the speech recognizer to help with recognition in a specific
7805
- # conversation state.
7806
- class GoogleCloudDialogflowV2SpeechContext
9903
+ # One response of different type of suggestion response which is used in the
9904
+ # response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
9905
+ # well as HumanAgentAssistantEvent.
9906
+ class GoogleCloudDialogflowV2SuggestionResult
7807
9907
  include Google::Apis::Core::Hashable
7808
9908
 
7809
- # Optional. Boost for this context compared to other contexts: * If the boost is
7810
- # positive, Dialogflow will increase the probability that the phrases in this
7811
- # context are recognized over similar sounding phrases. * If the boost is
7812
- # unspecified or non-positive, Dialogflow will not apply any boost. Dialogflow
7813
- # recommends that you use boosts in the range (0, 20] and that you find a value
7814
- # that fits your use case with binary search.
7815
- # Corresponds to the JSON property `boost`
7816
- # @return [Float]
7817
- attr_accessor :boost
9909
+ # The `Status` type defines a logical error model that is suitable for different
9910
+ # programming environments, including REST APIs and RPC APIs. It is used by [
9911
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
9912
+ # data: error code, error message, and error details. You can find out more
9913
+ # about this error model and how to work with it in the [API Design Guide](https:
9914
+ # //cloud.google.com/apis/design/errors).
9915
+ # Corresponds to the JSON property `error`
9916
+ # @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
9917
+ attr_accessor :error
7818
9918
 
7819
- # Optional. A list of strings containing words and phrases that the speech
7820
- # recognizer should recognize with higher likelihood. This list can be used to: *
7821
- # improve accuracy for words and phrases you expect the user to say, e.g.
7822
- # typical commands for your Dialogflow agent * add additional words to the
7823
- # speech recognizer vocabulary * ... See the [Cloud Speech documentation](https:/
7824
- # /cloud.google.com/speech-to-text/quotas) for usage limits.
7825
- # Corresponds to the JSON property `phrases`
7826
- # @return [Array<String>]
7827
- attr_accessor :phrases
9919
+ # The response message for Participants.SuggestArticles.
9920
+ # Corresponds to the JSON property `suggestArticlesResponse`
9921
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestArticlesResponse]
9922
+ attr_accessor :suggest_articles_response
9923
+
9924
+ # The request message for Participants.SuggestFaqAnswers.
9925
+ # Corresponds to the JSON property `suggestFaqAnswersResponse`
9926
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
9927
+ attr_accessor :suggest_faq_answers_response
7828
9928
 
7829
9929
  def initialize(**args)
7830
9930
  update!(**args)
@@ -7832,8 +9932,9 @@ module Google
7832
9932
 
7833
9933
  # Update properties of this object
7834
9934
  def update!(**args)
7835
- @boost = args[:boost] if args.key?(:boost)
7836
- @phrases = args[:phrases] if args.key?(:phrases)
9935
+ @error = args[:error] if args.key?(:error)
9936
+ @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
9937
+ @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
7837
9938
  end
7838
9939
  end
7839
9940
 
@@ -8148,6 +10249,89 @@ module Google
8148
10249
  end
8149
10250
  end
8150
10251
 
10252
+ # Represents a part of a message possibly annotated with an entity. The part can
10253
+ # be an entity or purely a part of the message between two entities or message
10254
+ # start/end.
10255
+ class GoogleCloudDialogflowV2beta1AnnotatedMessagePart
10256
+ include Google::Apis::Core::Hashable
10257
+
10258
+ # Optional. The [Dialogflow system entity type](https://cloud.google.com/
10259
+ # dialogflow/docs/reference/system-entities) of this message part. If this is
10260
+ # empty, Dialogflow could not annotate the phrase part with a system entity.
10261
+ # Corresponds to the JSON property `entityType`
10262
+ # @return [String]
10263
+ attr_accessor :entity_type
10264
+
10265
+ # Optional. The [Dialogflow system entity formatted value ](https://cloud.google.
10266
+ # com/dialogflow/docs/reference/system-entities) of this message part. For
10267
+ # example for a system entity of type `@sys.unit-currency`, this may contain: ` "
10268
+ # amount": 5, "currency": "USD" `
10269
+ # Corresponds to the JSON property `formattedValue`
10270
+ # @return [Object]
10271
+ attr_accessor :formatted_value
10272
+
10273
+ # Required. A part of a message possibly annotated with an entity.
10274
+ # Corresponds to the JSON property `text`
10275
+ # @return [String]
10276
+ attr_accessor :text
10277
+
10278
+ def initialize(**args)
10279
+ update!(**args)
10280
+ end
10281
+
10282
+ # Update properties of this object
10283
+ def update!(**args)
10284
+ @entity_type = args[:entity_type] if args.key?(:entity_type)
10285
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
10286
+ @text = args[:text] if args.key?(:text)
10287
+ end
10288
+ end
10289
+
10290
+ # Represents article answer.
10291
+ class GoogleCloudDialogflowV2beta1ArticleAnswer
10292
+ include Google::Apis::Core::Hashable
10293
+
10294
+ # The name of answer record, in the format of "projects//locations//
10295
+ # answerRecords/"
10296
+ # Corresponds to the JSON property `answerRecord`
10297
+ # @return [String]
10298
+ attr_accessor :answer_record
10299
+
10300
+ # A map that contains metadata about the answer and the document from which it
10301
+ # originates.
10302
+ # Corresponds to the JSON property `metadata`
10303
+ # @return [Hash<String,String>]
10304
+ attr_accessor :metadata
10305
+
10306
+ # Output only. Article snippets.
10307
+ # Corresponds to the JSON property `snippets`
10308
+ # @return [Array<String>]
10309
+ attr_accessor :snippets
10310
+
10311
+ # The article title.
10312
+ # Corresponds to the JSON property `title`
10313
+ # @return [String]
10314
+ attr_accessor :title
10315
+
10316
+ # The article URI.
10317
+ # Corresponds to the JSON property `uri`
10318
+ # @return [String]
10319
+ attr_accessor :uri
10320
+
10321
+ def initialize(**args)
10322
+ update!(**args)
10323
+ end
10324
+
10325
+ # Update properties of this object
10326
+ def update!(**args)
10327
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
10328
+ @metadata = args[:metadata] if args.key?(:metadata)
10329
+ @snippets = args[:snippets] if args.key?(:snippets)
10330
+ @title = args[:title] if args.key?(:title)
10331
+ @uri = args[:uri] if args.key?(:uri)
10332
+ end
10333
+ end
10334
+
8151
10335
  # The response message for EntityTypes.BatchUpdateEntityTypes.
8152
10336
  class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
8153
10337
  include Google::Apis::Core::Hashable
@@ -8248,6 +10432,50 @@ module Google
8248
10432
  end
8249
10433
  end
8250
10434
 
10435
+ # Represents a notification sent to Pub/Sub subscribers for conversation
10436
+ # lifecycle events.
10437
+ class GoogleCloudDialogflowV2beta1ConversationEvent
10438
+ include Google::Apis::Core::Hashable
10439
+
10440
+ # Required. The unique identifier of the conversation this notification refers
10441
+ # to. Format: `projects//conversations/`.
10442
+ # Corresponds to the JSON property `conversation`
10443
+ # @return [String]
10444
+ attr_accessor :conversation
10445
+
10446
+ # The `Status` type defines a logical error model that is suitable for different
10447
+ # programming environments, including REST APIs and RPC APIs. It is used by [
10448
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
10449
+ # data: error code, error message, and error details. You can find out more
10450
+ # about this error model and how to work with it in the [API Design Guide](https:
10451
+ # //cloud.google.com/apis/design/errors).
10452
+ # Corresponds to the JSON property `errorStatus`
10453
+ # @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
10454
+ attr_accessor :error_status
10455
+
10456
+ # Represents a message posted into a conversation.
10457
+ # Corresponds to the JSON property `newMessagePayload`
10458
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Message]
10459
+ attr_accessor :new_message_payload
10460
+
10461
+ # Required. The type of the event that this notification refers to.
10462
+ # Corresponds to the JSON property `type`
10463
+ # @return [String]
10464
+ attr_accessor :type
10465
+
10466
+ def initialize(**args)
10467
+ update!(**args)
10468
+ end
10469
+
10470
+ # Update properties of this object
10471
+ def update!(**args)
10472
+ @conversation = args[:conversation] if args.key?(:conversation)
10473
+ @error_status = args[:error_status] if args.key?(:error_status)
10474
+ @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
10475
+ @type = args[:type] if args.key?(:type)
10476
+ end
10477
+ end
10478
+
8251
10479
  # Each intent parameter has a type, called the entity type, which dictates
8252
10480
  # exactly how data from an end-user expression is extracted. Dialogflow provides
8253
10481
  # predefined system entities that can match many common types of data. For
@@ -8341,38 +10569,157 @@ module Google
8341
10569
  end
8342
10570
  end
8343
10571
 
8344
- # Events allow for matching intents by event name instead of the natural
8345
- # language input. For instance, input `` can trigger a personalized welcome
8346
- # response. The parameter `name` may be used by the agent in the response: `"
8347
- # Hello #welcome_event.name! What can I do for you today?"`.
8348
- class GoogleCloudDialogflowV2beta1EventInput
10572
+ # Events allow for matching intents by event name instead of the natural
10573
+ # language input. For instance, input `` can trigger a personalized welcome
10574
+ # response. The parameter `name` may be used by the agent in the response: `"
10575
+ # Hello #welcome_event.name! What can I do for you today?"`.
10576
+ class GoogleCloudDialogflowV2beta1EventInput
10577
+ include Google::Apis::Core::Hashable
10578
+
10579
+ # Required. The language of this query. See [Language Support](https://cloud.
10580
+ # google.com/dialogflow/docs/reference/language) for a list of the currently
10581
+ # supported language codes. Note that queries in the same session do not
10582
+ # necessarily need to specify the same language.
10583
+ # Corresponds to the JSON property `languageCode`
10584
+ # @return [String]
10585
+ attr_accessor :language_code
10586
+
10587
+ # Required. The unique identifier of the event.
10588
+ # Corresponds to the JSON property `name`
10589
+ # @return [String]
10590
+ attr_accessor :name
10591
+
10592
+ # The collection of parameters associated with the event. Depending on your
10593
+ # protocol or client library language, this is a map, associative array, symbol
10594
+ # table, dictionary, or JSON object composed of a collection of (MapKey,
10595
+ # MapValue) pairs: - MapKey type: string - MapKey value: parameter name -
10596
+ # MapValue type: - If parameter's entity type is a composite entity: map - Else:
10597
+ # depending on parameter value type, could be one of string, number, boolean,
10598
+ # null, list or map - MapValue value: - If parameter's entity type is a
10599
+ # composite entity: map from composite entity property names to property values -
10600
+ # Else: parameter value
10601
+ # Corresponds to the JSON property `parameters`
10602
+ # @return [Hash<String,Object>]
10603
+ attr_accessor :parameters
10604
+
10605
+ def initialize(**args)
10606
+ update!(**args)
10607
+ end
10608
+
10609
+ # Update properties of this object
10610
+ def update!(**args)
10611
+ @language_code = args[:language_code] if args.key?(:language_code)
10612
+ @name = args[:name] if args.key?(:name)
10613
+ @parameters = args[:parameters] if args.key?(:parameters)
10614
+ end
10615
+ end
10616
+
10617
+ # The response message for Agents.ExportAgent.
10618
+ class GoogleCloudDialogflowV2beta1ExportAgentResponse
10619
+ include Google::Apis::Core::Hashable
10620
+
10621
+ # Zip compressed raw byte content for agent.
10622
+ # Corresponds to the JSON property `agentContent`
10623
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
10624
+ # @return [String]
10625
+ attr_accessor :agent_content
10626
+
10627
+ # The URI to a file containing the exported agent. This field is populated only
10628
+ # if `agent_uri` is specified in `ExportAgentRequest`.
10629
+ # Corresponds to the JSON property `agentUri`
10630
+ # @return [String]
10631
+ attr_accessor :agent_uri
10632
+
10633
+ def initialize(**args)
10634
+ update!(**args)
10635
+ end
10636
+
10637
+ # Update properties of this object
10638
+ def update!(**args)
10639
+ @agent_content = args[:agent_content] if args.key?(:agent_content)
10640
+ @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
10641
+ end
10642
+ end
10643
+
10644
+ # Represents answer from "frequently asked questions".
10645
+ class GoogleCloudDialogflowV2beta1FaqAnswer
10646
+ include Google::Apis::Core::Hashable
10647
+
10648
+ # The piece of text from the `source` knowledge base document.
10649
+ # Corresponds to the JSON property `answer`
10650
+ # @return [String]
10651
+ attr_accessor :answer
10652
+
10653
+ # The name of answer record, in the format of "projects//locations//
10654
+ # answerRecords/"
10655
+ # Corresponds to the JSON property `answerRecord`
10656
+ # @return [String]
10657
+ attr_accessor :answer_record
10658
+
10659
+ # The system's confidence score that this Knowledge answer is a good match for
10660
+ # this conversational query, range from 0.0 (completely uncertain) to 1.0 (
10661
+ # completely certain).
10662
+ # Corresponds to the JSON property `confidence`
10663
+ # @return [Float]
10664
+ attr_accessor :confidence
10665
+
10666
+ # A map that contains metadata about the answer and the document from which it
10667
+ # originates.
10668
+ # Corresponds to the JSON property `metadata`
10669
+ # @return [Hash<String,String>]
10670
+ attr_accessor :metadata
10671
+
10672
+ # The corresponding FAQ question.
10673
+ # Corresponds to the JSON property `question`
10674
+ # @return [String]
10675
+ attr_accessor :question
10676
+
10677
+ # Indicates which Knowledge Document this answer was extracted from. Format: `
10678
+ # projects//locations//agent/knowledgeBases//documents/`.
10679
+ # Corresponds to the JSON property `source`
10680
+ # @return [String]
10681
+ attr_accessor :source
10682
+
10683
+ def initialize(**args)
10684
+ update!(**args)
10685
+ end
10686
+
10687
+ # Update properties of this object
10688
+ def update!(**args)
10689
+ @answer = args[:answer] if args.key?(:answer)
10690
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
10691
+ @confidence = args[:confidence] if args.key?(:confidence)
10692
+ @metadata = args[:metadata] if args.key?(:metadata)
10693
+ @question = args[:question] if args.key?(:question)
10694
+ @source = args[:source] if args.key?(:source)
10695
+ end
10696
+ end
10697
+
10698
+ # Output only. Represents a notification sent to Pub/Sub subscribers for agent
10699
+ # assistant events in a specific conversation.
10700
+ class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
8349
10701
  include Google::Apis::Core::Hashable
8350
10702
 
8351
- # Required. The language of this query. See [Language Support](https://cloud.
8352
- # google.com/dialogflow/docs/reference/language) for a list of the currently
8353
- # supported language codes. Note that queries in the same session do not
8354
- # necessarily need to specify the same language.
8355
- # Corresponds to the JSON property `languageCode`
10703
+ # The conversation this notification refers to. Format: `projects//conversations/
10704
+ # `.
10705
+ # Corresponds to the JSON property `conversation`
8356
10706
  # @return [String]
8357
- attr_accessor :language_code
10707
+ attr_accessor :conversation
8358
10708
 
8359
- # Required. The unique identifier of the event.
8360
- # Corresponds to the JSON property `name`
10709
+ # The participant that the suggestion is compiled for. And This field is used to
10710
+ # call Participants.ListSuggestions API. Format: `projects//conversations//
10711
+ # participants/`. It will not be set in legacy workflow.
10712
+ # HumanAgentAssistantConfig.name for more information.
10713
+ # Corresponds to the JSON property `participant`
8361
10714
  # @return [String]
8362
- attr_accessor :name
10715
+ attr_accessor :participant
8363
10716
 
8364
- # The collection of parameters associated with the event. Depending on your
8365
- # protocol or client library language, this is a map, associative array, symbol
8366
- # table, dictionary, or JSON object composed of a collection of (MapKey,
8367
- # MapValue) pairs: - MapKey type: string - MapKey value: parameter name -
8368
- # MapValue type: - If parameter's entity type is a composite entity: map - Else:
8369
- # depending on parameter value type, could be one of string, number, boolean,
8370
- # null, list or map - MapValue value: - If parameter's entity type is a
8371
- # composite entity: map from composite entity property names to property values -
8372
- # Else: parameter value
8373
- # Corresponds to the JSON property `parameters`
8374
- # @return [Hash<String,Object>]
8375
- attr_accessor :parameters
10717
+ # The suggestion results payload that this notification refers to. It will only
10718
+ # be set when HumanAgentAssistantConfig.SuggestionConfig.
10719
+ # group_suggestion_responses sets to true.
10720
+ # Corresponds to the JSON property `suggestionResults`
10721
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestionResult>]
10722
+ attr_accessor :suggestion_results
8376
10723
 
8377
10724
  def initialize(**args)
8378
10725
  update!(**args)
@@ -8380,27 +10727,20 @@ module Google
8380
10727
 
8381
10728
  # Update properties of this object
8382
10729
  def update!(**args)
8383
- @language_code = args[:language_code] if args.key?(:language_code)
8384
- @name = args[:name] if args.key?(:name)
8385
- @parameters = args[:parameters] if args.key?(:parameters)
10730
+ @conversation = args[:conversation] if args.key?(:conversation)
10731
+ @participant = args[:participant] if args.key?(:participant)
10732
+ @suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
8386
10733
  end
8387
10734
  end
8388
10735
 
8389
- # The response message for Agents.ExportAgent.
8390
- class GoogleCloudDialogflowV2beta1ExportAgentResponse
10736
+ # Response message for Documents.ImportDocuments.
10737
+ class GoogleCloudDialogflowV2beta1ImportDocumentsResponse
8391
10738
  include Google::Apis::Core::Hashable
8392
10739
 
8393
- # Zip compressed raw byte content for agent.
8394
- # Corresponds to the JSON property `agentContent`
8395
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
8396
- # @return [String]
8397
- attr_accessor :agent_content
8398
-
8399
- # The URI to a file containing the exported agent. This field is populated only
8400
- # if `agent_uri` is specified in `ExportAgentRequest`.
8401
- # Corresponds to the JSON property `agentUri`
8402
- # @return [String]
8403
- attr_accessor :agent_uri
10740
+ # Includes details about skipped documents or any other warnings.
10741
+ # Corresponds to the JSON property `warnings`
10742
+ # @return [Array<Google::Apis::DialogflowV2::GoogleRpcStatus>]
10743
+ attr_accessor :warnings
8404
10744
 
8405
10745
  def initialize(**args)
8406
10746
  update!(**args)
@@ -8408,8 +10748,7 @@ module Google
8408
10748
 
8409
10749
  # Update properties of this object
8410
10750
  def update!(**args)
8411
- @agent_content = args[:agent_content] if args.key?(:agent_content)
8412
- @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
10751
+ @warnings = args[:warnings] if args.key?(:warnings)
8413
10752
  end
8414
10753
  end
8415
10754
 
@@ -8475,6 +10814,14 @@ module Google
8475
10814
  attr_accessor :is_fallback
8476
10815
  alias_method :is_fallback?, :is_fallback
8477
10816
 
10817
+ # Optional. Indicates that a live agent should be brought in to handle the
10818
+ # interaction with the user. In most cases, when you set this flag to true, you
10819
+ # would also want to set end_interaction to true as well. Default is false.
10820
+ # Corresponds to the JSON property `liveAgentHandoff`
10821
+ # @return [Boolean]
10822
+ attr_accessor :live_agent_handoff
10823
+ alias_method :live_agent_handoff?, :live_agent_handoff
10824
+
8478
10825
  # Optional. The collection of rich messages corresponding to the `Response`
8479
10826
  # field in the Dialogflow console.
8480
10827
  # Corresponds to the JSON property `messages`
@@ -8579,6 +10926,7 @@ module Google
8579
10926
  @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
8580
10927
  @input_context_names = args[:input_context_names] if args.key?(:input_context_names)
8581
10928
  @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
10929
+ @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
8582
10930
  @messages = args[:messages] if args.key?(:messages)
8583
10931
  @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
8584
10932
  @ml_enabled = args[:ml_enabled] if args.key?(:ml_enabled)
@@ -10221,6 +12569,110 @@ module Google
10221
12569
  end
10222
12570
  end
10223
12571
 
12572
+ # Represents a message posted into a conversation.
12573
+ class GoogleCloudDialogflowV2beta1Message
12574
+ include Google::Apis::Core::Hashable
12575
+
12576
+ # Required. The message content.
12577
+ # Corresponds to the JSON property `content`
12578
+ # @return [String]
12579
+ attr_accessor :content
12580
+
12581
+ # Output only. The time when the message was created in Contact Center AI.
12582
+ # Corresponds to the JSON property `createTime`
12583
+ # @return [String]
12584
+ attr_accessor :create_time
12585
+
12586
+ # Optional. The message language. This should be a [BCP-47](https://www.rfc-
12587
+ # editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
12588
+ # Corresponds to the JSON property `languageCode`
12589
+ # @return [String]
12590
+ attr_accessor :language_code
12591
+
12592
+ # Represents the result of annotation for the message.
12593
+ # Corresponds to the JSON property `messageAnnotation`
12594
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1MessageAnnotation]
12595
+ attr_accessor :message_annotation
12596
+
12597
+ # Optional. The unique identifier of the message. Format: `projects//locations//
12598
+ # conversations//messages/`.
12599
+ # Corresponds to the JSON property `name`
12600
+ # @return [String]
12601
+ attr_accessor :name
12602
+
12603
+ # Output only. The participant that sends this message.
12604
+ # Corresponds to the JSON property `participant`
12605
+ # @return [String]
12606
+ attr_accessor :participant
12607
+
12608
+ # Output only. The role of the participant.
12609
+ # Corresponds to the JSON property `participantRole`
12610
+ # @return [String]
12611
+ attr_accessor :participant_role
12612
+
12613
+ # Optional. The time when the message was sent.
12614
+ # Corresponds to the JSON property `sendTime`
12615
+ # @return [String]
12616
+ attr_accessor :send_time
12617
+
12618
+ # The result of sentiment analysis. Sentiment analysis inspects user input and
12619
+ # identifies the prevailing subjective opinion, especially to determine a user's
12620
+ # attitude as positive, negative, or neutral. For Participants.DetectIntent, it
12621
+ # needs to be configured in DetectIntentRequest.query_params. For Participants.
12622
+ # StreamingDetectIntent, it needs to be configured in
12623
+ # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent
12624
+ # and Participants.StreamingAnalyzeContent, it needs to be configured in
12625
+ # ConversationProfile.human_agent_assistant_config
12626
+ # Corresponds to the JSON property `sentimentAnalysis`
12627
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SentimentAnalysisResult]
12628
+ attr_accessor :sentiment_analysis
12629
+
12630
+ def initialize(**args)
12631
+ update!(**args)
12632
+ end
12633
+
12634
+ # Update properties of this object
12635
+ def update!(**args)
12636
+ @content = args[:content] if args.key?(:content)
12637
+ @create_time = args[:create_time] if args.key?(:create_time)
12638
+ @language_code = args[:language_code] if args.key?(:language_code)
12639
+ @message_annotation = args[:message_annotation] if args.key?(:message_annotation)
12640
+ @name = args[:name] if args.key?(:name)
12641
+ @participant = args[:participant] if args.key?(:participant)
12642
+ @participant_role = args[:participant_role] if args.key?(:participant_role)
12643
+ @send_time = args[:send_time] if args.key?(:send_time)
12644
+ @sentiment_analysis = args[:sentiment_analysis] if args.key?(:sentiment_analysis)
12645
+ end
12646
+ end
12647
+
12648
+ # Represents the result of annotation for the message.
12649
+ class GoogleCloudDialogflowV2beta1MessageAnnotation
12650
+ include Google::Apis::Core::Hashable
12651
+
12652
+ # Required. Indicates whether the text message contains entities.
12653
+ # Corresponds to the JSON property `containEntities`
12654
+ # @return [Boolean]
12655
+ attr_accessor :contain_entities
12656
+ alias_method :contain_entities?, :contain_entities
12657
+
12658
+ # Optional. The collection of annotated message parts ordered by their position
12659
+ # in the message. You can recover the annotated message by concatenating [
12660
+ # AnnotatedMessagePart.text].
12661
+ # Corresponds to the JSON property `parts`
12662
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1AnnotatedMessagePart>]
12663
+ attr_accessor :parts
12664
+
12665
+ def initialize(**args)
12666
+ update!(**args)
12667
+ end
12668
+
12669
+ # Update properties of this object
12670
+ def update!(**args)
12671
+ @contain_entities = args[:contain_entities] if args.key?(:contain_entities)
12672
+ @parts = args[:parts] if args.key?(:parts)
12673
+ end
12674
+ end
12675
+
10224
12676
  # Represents the contents of the original request that was passed to the `[
10225
12677
  # Streaming]DetectIntent` call.
10226
12678
  class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
@@ -10521,6 +12973,188 @@ module Google
10521
12973
  end
10522
12974
  end
10523
12975
 
12976
+ # Represents a smart reply answer.
12977
+ class GoogleCloudDialogflowV2beta1SmartReplyAnswer
12978
+ include Google::Apis::Core::Hashable
12979
+
12980
+ # The name of answer record, in the format of "projects//locations//
12981
+ # answerRecords/"
12982
+ # Corresponds to the JSON property `answerRecord`
12983
+ # @return [String]
12984
+ attr_accessor :answer_record
12985
+
12986
+ # Smart reply confidence. The system's confidence score that this reply is a
12987
+ # good match for this conversation, as a value from 0.0 (completely uncertain)
12988
+ # to 1.0 (completely certain).
12989
+ # Corresponds to the JSON property `confidence`
12990
+ # @return [Float]
12991
+ attr_accessor :confidence
12992
+
12993
+ # The content of the reply.
12994
+ # Corresponds to the JSON property `reply`
12995
+ # @return [String]
12996
+ attr_accessor :reply
12997
+
12998
+ def initialize(**args)
12999
+ update!(**args)
13000
+ end
13001
+
13002
+ # Update properties of this object
13003
+ def update!(**args)
13004
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
13005
+ @confidence = args[:confidence] if args.key?(:confidence)
13006
+ @reply = args[:reply] if args.key?(:reply)
13007
+ end
13008
+ end
13009
+
13010
+ # The response message for Participants.SuggestArticles.
13011
+ class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
13012
+ include Google::Apis::Core::Hashable
13013
+
13014
+ # Output only. Articles ordered by score in descending order.
13015
+ # Corresponds to the JSON property `articleAnswers`
13016
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ArticleAnswer>]
13017
+ attr_accessor :article_answers
13018
+
13019
+ # Number of messages prior to and including latest_message to compile the
13020
+ # suggestion. It may be smaller than the SuggestArticlesResponse.context_size
13021
+ # field in the request if there aren't that many messages in the conversation.
13022
+ # Corresponds to the JSON property `contextSize`
13023
+ # @return [Fixnum]
13024
+ attr_accessor :context_size
13025
+
13026
+ # The name of the latest conversation message used to compile suggestion for.
13027
+ # Format: `projects//locations//conversations//messages/`.
13028
+ # Corresponds to the JSON property `latestMessage`
13029
+ # @return [String]
13030
+ attr_accessor :latest_message
13031
+
13032
+ def initialize(**args)
13033
+ update!(**args)
13034
+ end
13035
+
13036
+ # Update properties of this object
13037
+ def update!(**args)
13038
+ @article_answers = args[:article_answers] if args.key?(:article_answers)
13039
+ @context_size = args[:context_size] if args.key?(:context_size)
13040
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
13041
+ end
13042
+ end
13043
+
13044
+ # The request message for Participants.SuggestFaqAnswers.
13045
+ class GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
13046
+ include Google::Apis::Core::Hashable
13047
+
13048
+ # Number of messages prior to and including latest_message to compile the
13049
+ # suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size
13050
+ # field in the request if there aren't that many messages in the conversation.
13051
+ # Corresponds to the JSON property `contextSize`
13052
+ # @return [Fixnum]
13053
+ attr_accessor :context_size
13054
+
13055
+ # Output only. Answers extracted from FAQ documents.
13056
+ # Corresponds to the JSON property `faqAnswers`
13057
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1FaqAnswer>]
13058
+ attr_accessor :faq_answers
13059
+
13060
+ # The name of the latest conversation message used to compile suggestion for.
13061
+ # Format: `projects//locations//conversations//messages/`.
13062
+ # Corresponds to the JSON property `latestMessage`
13063
+ # @return [String]
13064
+ attr_accessor :latest_message
13065
+
13066
+ def initialize(**args)
13067
+ update!(**args)
13068
+ end
13069
+
13070
+ # Update properties of this object
13071
+ def update!(**args)
13072
+ @context_size = args[:context_size] if args.key?(:context_size)
13073
+ @faq_answers = args[:faq_answers] if args.key?(:faq_answers)
13074
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
13075
+ end
13076
+ end
13077
+
13078
+ # The response message for Participants.SuggestSmartReplies.
13079
+ class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
13080
+ include Google::Apis::Core::Hashable
13081
+
13082
+ # Number of messages prior to and including latest_message to compile the
13083
+ # suggestion. It may be smaller than the SuggestSmartRepliesRequest.context_size
13084
+ # field in the request if there aren't that many messages in the conversation.
13085
+ # Corresponds to the JSON property `contextSize`
13086
+ # @return [Fixnum]
13087
+ attr_accessor :context_size
13088
+
13089
+ # The name of the latest conversation message used to compile suggestion for.
13090
+ # Format: `projects//locations//conversations//messages/`.
13091
+ # Corresponds to the JSON property `latestMessage`
13092
+ # @return [String]
13093
+ attr_accessor :latest_message
13094
+
13095
+ # Output only. Multiple reply options provided by smart reply service. The order
13096
+ # is based on the rank of the model prediction. The maximum number of the
13097
+ # returned replies is set in SmartReplyConfig.
13098
+ # Corresponds to the JSON property `smartReplyAnswers`
13099
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartReplyAnswer>]
13100
+ attr_accessor :smart_reply_answers
13101
+
13102
+ def initialize(**args)
13103
+ update!(**args)
13104
+ end
13105
+
13106
+ # Update properties of this object
13107
+ def update!(**args)
13108
+ @context_size = args[:context_size] if args.key?(:context_size)
13109
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
13110
+ @smart_reply_answers = args[:smart_reply_answers] if args.key?(:smart_reply_answers)
13111
+ end
13112
+ end
13113
+
13114
+ # One response of different type of suggestion response which is used in the
13115
+ # response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
13116
+ # well as HumanAgentAssistantEvent.
13117
+ class GoogleCloudDialogflowV2beta1SuggestionResult
13118
+ include Google::Apis::Core::Hashable
13119
+
13120
+ # The `Status` type defines a logical error model that is suitable for different
13121
+ # programming environments, including REST APIs and RPC APIs. It is used by [
13122
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
13123
+ # data: error code, error message, and error details. You can find out more
13124
+ # about this error model and how to work with it in the [API Design Guide](https:
13125
+ # //cloud.google.com/apis/design/errors).
13126
+ # Corresponds to the JSON property `error`
13127
+ # @return [Google::Apis::DialogflowV2::GoogleRpcStatus]
13128
+ attr_accessor :error
13129
+
13130
+ # The response message for Participants.SuggestArticles.
13131
+ # Corresponds to the JSON property `suggestArticlesResponse`
13132
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestArticlesResponse]
13133
+ attr_accessor :suggest_articles_response
13134
+
13135
+ # The request message for Participants.SuggestFaqAnswers.
13136
+ # Corresponds to the JSON property `suggestFaqAnswersResponse`
13137
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse]
13138
+ attr_accessor :suggest_faq_answers_response
13139
+
13140
+ # The response message for Participants.SuggestSmartReplies.
13141
+ # Corresponds to the JSON property `suggestSmartRepliesResponse`
13142
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse]
13143
+ attr_accessor :suggest_smart_replies_response
13144
+
13145
+ def initialize(**args)
13146
+ update!(**args)
13147
+ end
13148
+
13149
+ # Update properties of this object
13150
+ def update!(**args)
13151
+ @error = args[:error] if args.key?(:error)
13152
+ @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
13153
+ @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
13154
+ @suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
13155
+ end
13156
+ end
13157
+
10524
13158
  # The request message for a webhook call.
10525
13159
  class GoogleCloudDialogflowV2beta1WebhookRequest
10526
13160
  include Google::Apis::Core::Hashable
@@ -10611,6 +13245,14 @@ module Google
10611
13245
  # @return [String]
10612
13246
  attr_accessor :fulfillment_text
10613
13247
 
13248
+ # Indicates that a live agent should be brought in to handle the interaction
13249
+ # with the user. In most cases, when you set this flag to true, you would also
13250
+ # want to set end_interaction to true as well. Default is false.
13251
+ # Corresponds to the JSON property `liveAgentHandoff`
13252
+ # @return [Boolean]
13253
+ attr_accessor :live_agent_handoff
13254
+ alias_method :live_agent_handoff?, :live_agent_handoff
13255
+
10614
13256
  # Optional. The collection of output contexts that will overwrite currently
10615
13257
  # active contexts for the session and reset their lifespans. When provided,
10616
13258
  # Dialogflow uses this field to populate QueryResult.output_contexts sent to the
@@ -10657,6 +13299,7 @@ module Google
10657
13299
  @followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input)
10658
13300
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
10659
13301
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
13302
+ @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
10660
13303
  @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
10661
13304
  @payload = args[:payload] if args.key?(:payload)
10662
13305
  @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types)