google-apis-dialogflow_v2beta1 0.56.0 → 0.58.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: '03308464997f4bee66d1b176d54899eff5fdab036decd85a79b6a4a4df789dc9'
4
- data.tar.gz: cc66ea2a80d578f5387b52cccb1501588db0e5bc5191206a13f3141a72003d9a
3
+ metadata.gz: 90b2fbee32f2436200e3abd7d7fcb1824683b32f8be4f755c329ea821804868c
4
+ data.tar.gz: 1161d0c629fa5a5d8d1f7f96411117f94266bd7b2aff9778cc8555946318c275
5
5
  SHA512:
6
- metadata.gz: e7a6790ee6ce3f27376f9e269471a3972fb2b24f21337b29a92c9cb3a6d17a344701e701b6d10cdc3b066d914285cd76e45ce5c94b0fcd9cf1d93fc8c86cda33
7
- data.tar.gz: 00354b7da7dad2886dc47d2ddd9826c1c49a70629ecebce4266abf53bfd5513076c40baa8cab85362e451fc2eef46e80e064ea68ee209b1498cc06aff2e89ab3
6
+ metadata.gz: 3142448c40a059aba553d06c5475beede34d2f2d61b04d2f8d134b7b8e8cb4317fca7ea3ce737a6ee46ecf73efdf244684c360511c1a2617152400d8827301a1
7
+ data.tar.gz: b380c0aba8f6988e8246aff5b61ccb6d0faa617b6cc0b026e37f8ba645a24a2a4d5b1789839066b19276138a4e7b9f53475d3c3b71364854986481356e4b8bac
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-dialogflow_v2beta1
2
2
 
3
+ ### v0.58.0 (2023-05-28)
4
+
5
+ * Regenerated from discovery document revision 20230522
6
+
7
+ ### v0.57.0 (2023-05-21)
8
+
9
+ * Regenerated from discovery document revision 20230516
10
+
3
11
  ### v0.56.0 (2023-05-07)
4
12
 
5
13
  * Regenerated from discovery document revision 20230501
@@ -2421,7 +2421,8 @@ module Google
2421
2421
  class GoogleCloudDialogflowCxV3TestRunDifference
2422
2422
  include Google::Apis::Core::Hashable
2423
2423
 
2424
- # A description of the diff, showing the actual output vs expected output.
2424
+ # A human readable description of the diff, showing the actual output vs
2425
+ # expected output.
2425
2426
  # Corresponds to the JSON property `description`
2426
2427
  # @return [String]
2427
2428
  attr_accessor :description
@@ -2573,6 +2574,18 @@ module Google
2573
2574
  attr_accessor :reached_end_page
2574
2575
  alias_method :reached_end_page?, :reached_end_page
2575
2576
 
2577
+ # Sentiment magnitude of the user utterance if [sentiment](https://cloud.google.
2578
+ # com/dialogflow/cx/docs/concept/sentiment) was enabled.
2579
+ # Corresponds to the JSON property `sentimentMagnitude`
2580
+ # @return [Float]
2581
+ attr_accessor :sentiment_magnitude
2582
+
2583
+ # Sentiment score of the user utterance if [sentiment](https://cloud.google.com/
2584
+ # dialogflow/cx/docs/concept/sentiment) was enabled.
2585
+ # Corresponds to the JSON property `sentimentScore`
2586
+ # @return [Float]
2587
+ attr_accessor :sentiment_score
2588
+
2576
2589
  # Whether user was specifically asking for a live agent.
2577
2590
  # Corresponds to the JSON property `userEscalated`
2578
2591
  # @return [Boolean]
@@ -2596,6 +2609,8 @@ module Google
2596
2609
  @no_match = args[:no_match] if args.key?(:no_match)
2597
2610
  @no_user_input = args[:no_user_input] if args.key?(:no_user_input)
2598
2611
  @reached_end_page = args[:reached_end_page] if args.key?(:reached_end_page)
2612
+ @sentiment_magnitude = args[:sentiment_magnitude] if args.key?(:sentiment_magnitude)
2613
+ @sentiment_score = args[:sentiment_score] if args.key?(:sentiment_score)
2599
2614
  @user_escalated = args[:user_escalated] if args.key?(:user_escalated)
2600
2615
  @webhook_statuses = args[:webhook_statuses] if args.key?(:webhook_statuses)
2601
2616
  end
@@ -2694,11 +2709,30 @@ module Google
2694
2709
  # @return [Array<String>]
2695
2710
  attr_accessor :allowed_ca_certs
2696
2711
 
2712
+ # Optional. HTTP method for the flexible webhook calls. Standard webhook always
2713
+ # uses POST.
2714
+ # Corresponds to the JSON property `httpMethod`
2715
+ # @return [String]
2716
+ attr_accessor :http_method
2717
+
2718
+ # Optional. Maps the values extracted from specific fields of the flexible
2719
+ # webhook response into session parameters. - Key: session parameter name -
2720
+ # Value: field path in the webhook response
2721
+ # Corresponds to the JSON property `parameterMapping`
2722
+ # @return [Hash<String,String>]
2723
+ attr_accessor :parameter_mapping
2724
+
2697
2725
  # The password for HTTP Basic authentication.
2698
2726
  # Corresponds to the JSON property `password`
2699
2727
  # @return [String]
2700
2728
  attr_accessor :password
2701
2729
 
2730
+ # Optional. Defines a custom JSON object as request body to send to flexible
2731
+ # webhook.
2732
+ # Corresponds to the JSON property `requestBody`
2733
+ # @return [String]
2734
+ attr_accessor :request_body
2735
+
2702
2736
  # The HTTP request headers to send together with webhook requests.
2703
2737
  # Corresponds to the JSON property `requestHeaders`
2704
2738
  # @return [Hash<String,String>]
@@ -2715,6 +2749,11 @@ module Google
2715
2749
  # @return [String]
2716
2750
  attr_accessor :username
2717
2751
 
2752
+ # Optional. Type of the webhook.
2753
+ # Corresponds to the JSON property `webhookType`
2754
+ # @return [String]
2755
+ attr_accessor :webhook_type
2756
+
2718
2757
  def initialize(**args)
2719
2758
  update!(**args)
2720
2759
  end
@@ -2722,10 +2761,14 @@ module Google
2722
2761
  # Update properties of this object
2723
2762
  def update!(**args)
2724
2763
  @allowed_ca_certs = args[:allowed_ca_certs] if args.key?(:allowed_ca_certs)
2764
+ @http_method = args[:http_method] if args.key?(:http_method)
2765
+ @parameter_mapping = args[:parameter_mapping] if args.key?(:parameter_mapping)
2725
2766
  @password = args[:password] if args.key?(:password)
2767
+ @request_body = args[:request_body] if args.key?(:request_body)
2726
2768
  @request_headers = args[:request_headers] if args.key?(:request_headers)
2727
2769
  @uri = args[:uri] if args.key?(:uri)
2728
2770
  @username = args[:username] if args.key?(:username)
2771
+ @webhook_type = args[:webhook_type] if args.key?(:webhook_type)
2729
2772
  end
2730
2773
  end
2731
2774
 
@@ -5455,7 +5498,8 @@ module Google
5455
5498
  class GoogleCloudDialogflowCxV3beta1TestRunDifference
5456
5499
  include Google::Apis::Core::Hashable
5457
5500
 
5458
- # A description of the diff, showing the actual output vs expected output.
5501
+ # A human readable description of the diff, showing the actual output vs
5502
+ # expected output.
5459
5503
  # Corresponds to the JSON property `description`
5460
5504
  # @return [String]
5461
5505
  attr_accessor :description
@@ -5607,6 +5651,18 @@ module Google
5607
5651
  attr_accessor :reached_end_page
5608
5652
  alias_method :reached_end_page?, :reached_end_page
5609
5653
 
5654
+ # Sentiment magnitude of the user utterance if [sentiment](https://cloud.google.
5655
+ # com/dialogflow/cx/docs/concept/sentiment) was enabled.
5656
+ # Corresponds to the JSON property `sentimentMagnitude`
5657
+ # @return [Float]
5658
+ attr_accessor :sentiment_magnitude
5659
+
5660
+ # Sentiment score of the user utterance if [sentiment](https://cloud.google.com/
5661
+ # dialogflow/cx/docs/concept/sentiment) was enabled.
5662
+ # Corresponds to the JSON property `sentimentScore`
5663
+ # @return [Float]
5664
+ attr_accessor :sentiment_score
5665
+
5610
5666
  # Whether user was specifically asking for a live agent.
5611
5667
  # Corresponds to the JSON property `userEscalated`
5612
5668
  # @return [Boolean]
@@ -5630,6 +5686,8 @@ module Google
5630
5686
  @no_match = args[:no_match] if args.key?(:no_match)
5631
5687
  @no_user_input = args[:no_user_input] if args.key?(:no_user_input)
5632
5688
  @reached_end_page = args[:reached_end_page] if args.key?(:reached_end_page)
5689
+ @sentiment_magnitude = args[:sentiment_magnitude] if args.key?(:sentiment_magnitude)
5690
+ @sentiment_score = args[:sentiment_score] if args.key?(:sentiment_score)
5633
5691
  @user_escalated = args[:user_escalated] if args.key?(:user_escalated)
5634
5692
  @webhook_statuses = args[:webhook_statuses] if args.key?(:webhook_statuses)
5635
5693
  end
@@ -5728,11 +5786,30 @@ module Google
5728
5786
  # @return [Array<String>]
5729
5787
  attr_accessor :allowed_ca_certs
5730
5788
 
5789
+ # Optional. HTTP method for the flexible webhook calls. Standard webhook always
5790
+ # uses POST.
5791
+ # Corresponds to the JSON property `httpMethod`
5792
+ # @return [String]
5793
+ attr_accessor :http_method
5794
+
5795
+ # Optional. Maps the values extracted from specific fields of the flexible
5796
+ # webhook response into session parameters. - Key: session parameter name -
5797
+ # Value: field path in the webhook response
5798
+ # Corresponds to the JSON property `parameterMapping`
5799
+ # @return [Hash<String,String>]
5800
+ attr_accessor :parameter_mapping
5801
+
5731
5802
  # The password for HTTP Basic authentication.
5732
5803
  # Corresponds to the JSON property `password`
5733
5804
  # @return [String]
5734
5805
  attr_accessor :password
5735
5806
 
5807
+ # Optional. Defines a custom JSON object as request body to send to flexible
5808
+ # webhook.
5809
+ # Corresponds to the JSON property `requestBody`
5810
+ # @return [String]
5811
+ attr_accessor :request_body
5812
+
5736
5813
  # The HTTP request headers to send together with webhook requests.
5737
5814
  # Corresponds to the JSON property `requestHeaders`
5738
5815
  # @return [Hash<String,String>]
@@ -5749,6 +5826,11 @@ module Google
5749
5826
  # @return [String]
5750
5827
  attr_accessor :username
5751
5828
 
5829
+ # Optional. Type of the webhook.
5830
+ # Corresponds to the JSON property `webhookType`
5831
+ # @return [String]
5832
+ attr_accessor :webhook_type
5833
+
5752
5834
  def initialize(**args)
5753
5835
  update!(**args)
5754
5836
  end
@@ -5756,10 +5838,14 @@ module Google
5756
5838
  # Update properties of this object
5757
5839
  def update!(**args)
5758
5840
  @allowed_ca_certs = args[:allowed_ca_certs] if args.key?(:allowed_ca_certs)
5841
+ @http_method = args[:http_method] if args.key?(:http_method)
5842
+ @parameter_mapping = args[:parameter_mapping] if args.key?(:parameter_mapping)
5759
5843
  @password = args[:password] if args.key?(:password)
5844
+ @request_body = args[:request_body] if args.key?(:request_body)
5760
5845
  @request_headers = args[:request_headers] if args.key?(:request_headers)
5761
5846
  @uri = args[:uri] if args.key?(:uri)
5762
5847
  @username = args[:username] if args.key?(:username)
5848
+ @webhook_type = args[:webhook_type] if args.key?(:webhook_type)
5763
5849
  end
5764
5850
  end
5765
5851
 
@@ -9281,6 +9367,11 @@ module Google
9281
9367
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ArticleAnswer]
9282
9368
  attr_accessor :article_suggestion_answer
9283
9369
 
9370
+ # Represents a Dialogflow assist answer.
9371
+ # Corresponds to the JSON property `dialogflowAssistAnswer`
9372
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DialogflowAssistAnswer]
9373
+ attr_accessor :dialogflow_assist_answer
9374
+
9284
9375
  # Represents answer from "frequently asked questions".
9285
9376
  # Corresponds to the JSON property `faqAnswer`
9286
9377
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FaqAnswer]
@@ -9293,6 +9384,7 @@ module Google
9293
9384
  # Update properties of this object
9294
9385
  def update!(**args)
9295
9386
  @article_suggestion_answer = args[:article_suggestion_answer] if args.key?(:article_suggestion_answer)
9387
+ @dialogflow_assist_answer = args[:dialogflow_assist_answer] if args.key?(:dialogflow_assist_answer)
9296
9388
  @faq_answer = args[:faq_answer] if args.key?(:faq_answer)
9297
9389
  end
9298
9390
  end
@@ -9370,6 +9462,11 @@ module Google
9370
9462
  # @return [String]
9371
9463
  attr_accessor :request_id
9372
9464
 
9465
+ # Represents the selection of a suggestion.
9466
+ # Corresponds to the JSON property `suggestionInput`
9467
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionInput]
9468
+ attr_accessor :suggestion_input
9469
+
9373
9470
  # Represents the natural language text to be processed.
9374
9471
  # Corresponds to the JSON property `textInput`
9375
9472
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput]
@@ -9390,6 +9487,7 @@ module Google
9390
9487
  @query_params = args[:query_params] if args.key?(:query_params)
9391
9488
  @reply_audio_config = args[:reply_audio_config] if args.key?(:reply_audio_config)
9392
9489
  @request_id = args[:request_id] if args.key?(:request_id)
9490
+ @suggestion_input = args[:suggestion_input] if args.key?(:suggestion_input)
9393
9491
  @text_input = args[:text_input] if args.key?(:text_input)
9394
9492
  end
9395
9493
  end
@@ -10750,6 +10848,38 @@ module Google
10750
10848
  end
10751
10849
  end
10752
10850
 
10851
+ # Represents a Dialogflow assist answer.
10852
+ class GoogleCloudDialogflowV2beta1DialogflowAssistAnswer
10853
+ include Google::Apis::Core::Hashable
10854
+
10855
+ # The name of answer record, in the format of "projects//locations//
10856
+ # answerRecords/"
10857
+ # Corresponds to the JSON property `answerRecord`
10858
+ # @return [String]
10859
+ attr_accessor :answer_record
10860
+
10861
+ # Represents an intent suggestion.
10862
+ # Corresponds to the JSON property `intentSuggestion`
10863
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentSuggestion]
10864
+ attr_accessor :intent_suggestion
10865
+
10866
+ # Represents the result of conversational query or event processing.
10867
+ # Corresponds to the JSON property `queryResult`
10868
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult]
10869
+ attr_accessor :query_result
10870
+
10871
+ def initialize(**args)
10872
+ update!(**args)
10873
+ end
10874
+
10875
+ # Update properties of this object
10876
+ def update!(**args)
10877
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
10878
+ @intent_suggestion = args[:intent_suggestion] if args.key?(:intent_suggestion)
10879
+ @query_result = args[:query_result] if args.key?(:query_result)
10880
+ end
10881
+ end
10882
+
10753
10883
  # A knowledge document to be used by a KnowledgeBase. For more information, see
10754
10884
  # the [knowledge base guide](https://cloud.google.com/dialogflow/docs/how/
10755
10885
  # knowledge-bases). Note: The `projects.agent.knowledgeBases.documents` resource
@@ -11525,6 +11655,134 @@ module Google
11525
11655
  end
11526
11656
  end
11527
11657
 
11658
+ # The request message for Conversations.GenerateStatelessSummary.
11659
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
11660
+ include Google::Apis::Core::Hashable
11661
+
11662
+ # Defines the services to connect to incoming Dialogflow conversations.
11663
+ # Corresponds to the JSON property `conversationProfile`
11664
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile]
11665
+ attr_accessor :conversation_profile
11666
+
11667
+ # The name of the latest conversation message used as context for generating a
11668
+ # Summary. If empty, the latest message of the conversation will be used. The
11669
+ # format is specific to the user and the names of the messages provided.
11670
+ # Corresponds to the JSON property `latestMessage`
11671
+ # @return [String]
11672
+ attr_accessor :latest_message
11673
+
11674
+ # Max number of messages prior to and including [latest_message] to use as
11675
+ # context when compiling the suggestion. By default 500 and at most 1000.
11676
+ # Corresponds to the JSON property `maxContextSize`
11677
+ # @return [Fixnum]
11678
+ attr_accessor :max_context_size
11679
+
11680
+ # The minimum amount of information required to generate a Summary without
11681
+ # having a Conversation resource created.
11682
+ # Corresponds to the JSON property `statelessConversation`
11683
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation]
11684
+ attr_accessor :stateless_conversation
11685
+
11686
+ def initialize(**args)
11687
+ update!(**args)
11688
+ end
11689
+
11690
+ # Update properties of this object
11691
+ def update!(**args)
11692
+ @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
11693
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
11694
+ @max_context_size = args[:max_context_size] if args.key?(:max_context_size)
11695
+ @stateless_conversation = args[:stateless_conversation] if args.key?(:stateless_conversation)
11696
+ end
11697
+ end
11698
+
11699
+ # The minimum amount of information required to generate a Summary without
11700
+ # having a Conversation resource created.
11701
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation
11702
+ include Google::Apis::Core::Hashable
11703
+
11704
+ # Required. The messages that the Summary will be generated from. It is expected
11705
+ # that this message content is already redacted and does not contain any PII.
11706
+ # Required fields: `content, language_code, participant, participant_role`
11707
+ # Optional fields: `send_time` If send_time is not provided, then the messages
11708
+ # must be provided in chronological order.
11709
+ # Corresponds to the JSON property `messages`
11710
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Message>]
11711
+ attr_accessor :messages
11712
+
11713
+ def initialize(**args)
11714
+ update!(**args)
11715
+ end
11716
+
11717
+ # Update properties of this object
11718
+ def update!(**args)
11719
+ @messages = args[:messages] if args.key?(:messages)
11720
+ end
11721
+ end
11722
+
11723
+ # The response message for Conversations.GenerateStatelessSummary.
11724
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse
11725
+ include Google::Apis::Core::Hashable
11726
+
11727
+ # Number of messages prior to and including last_conversation_message used to
11728
+ # compile the suggestion. It may be smaller than the
11729
+ # GenerateStatelessSummaryRequest.context_size field in the request if there
11730
+ # weren't that many messages in the conversation.
11731
+ # Corresponds to the JSON property `contextSize`
11732
+ # @return [Fixnum]
11733
+ attr_accessor :context_size
11734
+
11735
+ # The name of the latest conversation message used as context for compiling
11736
+ # suggestion. The format is specific to the user and the names of the messages
11737
+ # provided.
11738
+ # Corresponds to the JSON property `latestMessage`
11739
+ # @return [String]
11740
+ attr_accessor :latest_message
11741
+
11742
+ # Generated summary for a conversation.
11743
+ # Corresponds to the JSON property `summary`
11744
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary]
11745
+ attr_accessor :summary
11746
+
11747
+ def initialize(**args)
11748
+ update!(**args)
11749
+ end
11750
+
11751
+ # Update properties of this object
11752
+ def update!(**args)
11753
+ @context_size = args[:context_size] if args.key?(:context_size)
11754
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
11755
+ @summary = args[:summary] if args.key?(:summary)
11756
+ end
11757
+ end
11758
+
11759
+ # Generated summary for a conversation.
11760
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary
11761
+ include Google::Apis::Core::Hashable
11762
+
11763
+ # The summary content that is concatenated into one string.
11764
+ # Corresponds to the JSON property `text`
11765
+ # @return [String]
11766
+ attr_accessor :text
11767
+
11768
+ # The summary content that is divided into sections. The key is the section's
11769
+ # name and the value is the section's content. There is no specific format for
11770
+ # the key or value.
11771
+ # Corresponds to the JSON property `textSections`
11772
+ # @return [Hash<String,String>]
11773
+ attr_accessor :text_sections
11774
+
11775
+ def initialize(**args)
11776
+ update!(**args)
11777
+ end
11778
+
11779
+ # Update properties of this object
11780
+ def update!(**args)
11781
+ @text = args[:text] if args.key?(:text)
11782
+ @text_sections = args[:text_sections] if args.key?(:text_sections)
11783
+ end
11784
+ end
11785
+
11528
11786
  # Defines the Human Agent Assistant to connect to a conversation.
11529
11787
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
11530
11788
  include Google::Apis::Core::Hashable
@@ -11567,6 +11825,13 @@ module Google
11567
11825
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig
11568
11826
  include Google::Apis::Core::Hashable
11569
11827
 
11828
+ # Version of current baseline model. It will be ignored if model is set. Valid
11829
+ # versions are: Article Suggestion baseline model: - 0.9 - 1.0 (default)
11830
+ # Summarization baseline model: - 1.0
11831
+ # Corresponds to the JSON property `baselineModelVersion`
11832
+ # @return [String]
11833
+ attr_accessor :baseline_model_version
11834
+
11570
11835
  # Conversation model resource name. Format: `projects//conversationModels/`.
11571
11836
  # Corresponds to the JSON property `model`
11572
11837
  # @return [String]
@@ -11578,6 +11843,7 @@ module Google
11578
11843
 
11579
11844
  # Update properties of this object
11580
11845
  def update!(**args)
11846
+ @baseline_model_version = args[:baseline_model_version] if args.key?(:baseline_model_version)
11581
11847
  @model = args[:model] if args.key?(:model)
11582
11848
  end
11583
11849
  end
@@ -11746,7 +12012,7 @@ module Google
11746
12012
  # a very low value and slowly increasing until you have desired results. If this
11747
12013
  # field is not set, it is default to 0.0, which means that all suggestions are
11748
12014
  # returned. Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY,
11749
- # SMART_COMPOSE.
12015
+ # SMART_COMPOSE, KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
11750
12016
  # Corresponds to the JSON property `confidenceThreshold`
11751
12017
  # @return [Float]
11752
12018
  attr_accessor :confidence_threshold
@@ -11840,6 +12106,32 @@ module Google
11840
12106
  # @return [String]
11841
12107
  attr_accessor :agent
11842
12108
 
12109
+ # The configuration used for human agent side Dialogflow assist suggestion.
12110
+ # Corresponds to the JSON property `humanAgentSideConfig`
12111
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig]
12112
+ attr_accessor :human_agent_side_config
12113
+
12114
+ def initialize(**args)
12115
+ update!(**args)
12116
+ end
12117
+
12118
+ # Update properties of this object
12119
+ def update!(**args)
12120
+ @agent = args[:agent] if args.key?(:agent)
12121
+ @human_agent_side_config = args[:human_agent_side_config] if args.key?(:human_agent_side_config)
12122
+ end
12123
+ end
12124
+
12125
+ # The configuration used for human agent side Dialogflow assist suggestion.
12126
+ class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig
12127
+ include Google::Apis::Core::Hashable
12128
+
12129
+ # Optional. The name of a dialogflow virtual agent used for intent detection and
12130
+ # suggestion triggered by human agent. Format: `projects//locations//agent`.
12131
+ # Corresponds to the JSON property `agent`
12132
+ # @return [String]
12133
+ attr_accessor :agent
12134
+
11843
12135
  def initialize(**args)
11844
12136
  update!(**args)
11845
12137
  end
@@ -12537,6 +12829,35 @@ module Google
12537
12829
  end
12538
12830
  end
12539
12831
 
12832
+ # Represents the intent to trigger programmatically rather than as a result of
12833
+ # natural language processing. The intent input is only used for V3 agent.
12834
+ class GoogleCloudDialogflowV2beta1IntentInput
12835
+ include Google::Apis::Core::Hashable
12836
+
12837
+ # Required. The unique identifier of the intent in V3 agent. Format: `projects//
12838
+ # locations//locations//agents//intents/`.
12839
+ # Corresponds to the JSON property `intent`
12840
+ # @return [String]
12841
+ attr_accessor :intent
12842
+
12843
+ # Required. The language of this conversational query. See [Language Support](
12844
+ # https://cloud.google.com/dialogflow/docs/reference/language) for a list of the
12845
+ # currently supported language codes.
12846
+ # Corresponds to the JSON property `languageCode`
12847
+ # @return [String]
12848
+ attr_accessor :language_code
12849
+
12850
+ def initialize(**args)
12851
+ update!(**args)
12852
+ end
12853
+
12854
+ # Update properties of this object
12855
+ def update!(**args)
12856
+ @intent = args[:intent] if args.key?(:intent)
12857
+ @language_code = args[:language_code] if args.key?(:language_code)
12858
+ end
12859
+ end
12860
+
12540
12861
  # Corresponds to the `Response` field in the Dialogflow console.
12541
12862
  class GoogleCloudDialogflowV2beta1IntentMessage
12542
12863
  include Google::Apis::Core::Hashable
@@ -13951,6 +14272,39 @@ module Google
13951
14272
  end
13952
14273
  end
13953
14274
 
14275
+ # Represents an intent suggestion.
14276
+ class GoogleCloudDialogflowV2beta1IntentSuggestion
14277
+ include Google::Apis::Core::Hashable
14278
+
14279
+ # Human readable description for better understanding an intent like its scope,
14280
+ # content, result etc. Maximum character limit: 140 characters.
14281
+ # Corresponds to the JSON property `description`
14282
+ # @return [String]
14283
+ attr_accessor :description
14284
+
14285
+ # The display name of the intent.
14286
+ # Corresponds to the JSON property `displayName`
14287
+ # @return [String]
14288
+ attr_accessor :display_name
14289
+
14290
+ # The unique identifier of this intent. Format: `projects//locations//agent/
14291
+ # intents/`.
14292
+ # Corresponds to the JSON property `intentV2`
14293
+ # @return [String]
14294
+ attr_accessor :intent_v2
14295
+
14296
+ def initialize(**args)
14297
+ update!(**args)
14298
+ end
14299
+
14300
+ # Update properties of this object
14301
+ def update!(**args)
14302
+ @description = args[:description] if args.key?(:description)
14303
+ @display_name = args[:display_name] if args.key?(:display_name)
14304
+ @intent_v2 = args[:intent_v2] if args.key?(:intent_v2)
14305
+ end
14306
+ end
14307
+
13954
14308
  # Represents an example that the agent is trained on.
13955
14309
  class GoogleCloudDialogflowV2beta1IntentTrainingPhrase
13956
14310
  include Google::Apis::Core::Hashable
@@ -15873,11 +16227,6 @@ module Google
15873
16227
  class GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
15874
16228
  include Google::Apis::Core::Hashable
15875
16229
 
15876
- # Represents the parameters of human assist query.
15877
- # Corresponds to the JSON property `assistQueryParams`
15878
- # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AssistQueryParameters]
15879
- attr_accessor :assist_query_params
15880
-
15881
16230
  # Max number of messages prior to and including [latest_message] to use as
15882
16231
  # context when compiling the suggestion. By default 500 and at most 1000.
15883
16232
  # Corresponds to the JSON property `contextSize`
@@ -15897,7 +16246,6 @@ module Google
15897
16246
 
15898
16247
  # Update properties of this object
15899
16248
  def update!(**args)
15900
- @assist_query_params = args[:assist_query_params] if args.key?(:assist_query_params)
15901
16249
  @context_size = args[:context_size] if args.key?(:context_size)
15902
16250
  @latest_message = args[:latest_message] if args.key?(:latest_message)
15903
16251
  end
@@ -15971,6 +16319,42 @@ module Google
15971
16319
  end
15972
16320
  end
15973
16321
 
16322
+ # The response message for Participants.SuggestDialogflowAssists.
16323
+ class GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse
16324
+ include Google::Apis::Core::Hashable
16325
+
16326
+ # Number of messages prior to and including latest_message to compile the
16327
+ # suggestion. It may be smaller than the SuggestDialogflowAssistsRequest.
16328
+ # context_size field in the request if there aren't that many messages in the
16329
+ # conversation.
16330
+ # Corresponds to the JSON property `contextSize`
16331
+ # @return [Fixnum]
16332
+ attr_accessor :context_size
16333
+
16334
+ # Output only. Multiple reply options provided by Dialogflow assist service. The
16335
+ # order is based on the rank of the model prediction.
16336
+ # Corresponds to the JSON property `dialogflowAssistAnswers`
16337
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DialogflowAssistAnswer>]
16338
+ attr_accessor :dialogflow_assist_answers
16339
+
16340
+ # The name of the latest conversation message used to suggest answer. Format: `
16341
+ # projects//locations//conversations//messages/`.
16342
+ # Corresponds to the JSON property `latestMessage`
16343
+ # @return [String]
16344
+ attr_accessor :latest_message
16345
+
16346
+ def initialize(**args)
16347
+ update!(**args)
16348
+ end
16349
+
16350
+ # Update properties of this object
16351
+ def update!(**args)
16352
+ @context_size = args[:context_size] if args.key?(:context_size)
16353
+ @dialogflow_assist_answers = args[:dialogflow_assist_answers] if args.key?(:dialogflow_assist_answers)
16354
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
16355
+ end
16356
+ end
16357
+
15974
16358
  # The request message for Participants.SuggestFaqAnswers.
15975
16359
  class GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
15976
16360
  include Google::Apis::Core::Hashable
@@ -16274,6 +16658,57 @@ module Google
16274
16658
  end
16275
16659
  end
16276
16660
 
16661
+ # Represents the selection of a suggestion.
16662
+ class GoogleCloudDialogflowV2beta1SuggestionInput
16663
+ include Google::Apis::Core::Hashable
16664
+
16665
+ # Required. The ID of a suggestion selected by the human agent. The suggestion(s)
16666
+ # were generated in a previous call to request Dialogflow assist. The format is:
16667
+ # `projects//locations//answerRecords/` where is an alphanumeric string.
16668
+ # Corresponds to the JSON property `answerRecord`
16669
+ # @return [String]
16670
+ attr_accessor :answer_record
16671
+
16672
+ # Represents the intent to trigger programmatically rather than as a result of
16673
+ # natural language processing. The intent input is only used for V3 agent.
16674
+ # Corresponds to the JSON property `intentInput`
16675
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentInput]
16676
+ attr_accessor :intent_input
16677
+
16678
+ # In Dialogflow assist for v3, the user can submit a form by sending a
16679
+ # SuggestionInput. The form is uniquely determined by the answer_record field,
16680
+ # which identifies a v3 QueryResult containing the current page. The form
16681
+ # parameters are specified via the parameters field. Depending on your protocol
16682
+ # or client library language, this is a map, associative array, symbol table,
16683
+ # dictionary, or JSON object composed of a collection of (MapKey, MapValue)
16684
+ # pairs: - MapKey type: string - MapKey value: parameter name - MapValue type: -
16685
+ # If parameter's entity type is a composite entity: map - Else: depending on
16686
+ # parameter value type, could be one of string, number, boolean, null, list or
16687
+ # map - MapValue value: - If parameter's entity type is a composite entity: map
16688
+ # from composite entity property names to property values - Else: parameter
16689
+ # value
16690
+ # Corresponds to the JSON property `parameters`
16691
+ # @return [Hash<String,Object>]
16692
+ attr_accessor :parameters
16693
+
16694
+ # Represents the natural language text to be processed.
16695
+ # Corresponds to the JSON property `textOverride`
16696
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput]
16697
+ attr_accessor :text_override
16698
+
16699
+ def initialize(**args)
16700
+ update!(**args)
16701
+ end
16702
+
16703
+ # Update properties of this object
16704
+ def update!(**args)
16705
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
16706
+ @intent_input = args[:intent_input] if args.key?(:intent_input)
16707
+ @parameters = args[:parameters] if args.key?(:parameters)
16708
+ @text_override = args[:text_override] if args.key?(:text_override)
16709
+ end
16710
+ end
16711
+
16277
16712
  # One response of different type of suggestion response which is used in the
16278
16713
  # response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
16279
16714
  # well as HumanAgentAssistantEvent.
@@ -16295,6 +16730,11 @@ module Google
16295
16730
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestArticlesResponse]
16296
16731
  attr_accessor :suggest_articles_response
16297
16732
 
16733
+ # The response message for Participants.SuggestDialogflowAssists.
16734
+ # Corresponds to the JSON property `suggestDialogflowAssistsResponse`
16735
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse]
16736
+ attr_accessor :suggest_dialogflow_assists_response
16737
+
16298
16738
  # The request message for Participants.SuggestFaqAnswers.
16299
16739
  # Corresponds to the JSON property `suggestFaqAnswersResponse`
16300
16740
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse]
@@ -16313,6 +16753,7 @@ module Google
16313
16753
  def update!(**args)
16314
16754
  @error = args[:error] if args.key?(:error)
16315
16755
  @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
16756
+ @suggest_dialogflow_assists_response = args[:suggest_dialogflow_assists_response] if args.key?(:suggest_dialogflow_assists_response)
16316
16757
  @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
16317
16758
  @suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
16318
16759
  end
@@ -16951,6 +17392,18 @@ module Google
16951
17392
  attr_accessor :reached_end_page
16952
17393
  alias_method :reached_end_page?, :reached_end_page
16953
17394
 
17395
+ # Sentiment magnitude of the user utterance if [sentiment](https://cloud.google.
17396
+ # com/dialogflow/cx/docs/concept/sentiment) was enabled.
17397
+ # Corresponds to the JSON property `sentimentMagnitude`
17398
+ # @return [Float]
17399
+ attr_accessor :sentiment_magnitude
17400
+
17401
+ # Sentiment score of the user utterance if [sentiment](https://cloud.google.com/
17402
+ # dialogflow/cx/docs/concept/sentiment) was enabled.
17403
+ # Corresponds to the JSON property `sentimentScore`
17404
+ # @return [Float]
17405
+ attr_accessor :sentiment_score
17406
+
16954
17407
  # Whether agent has triggered the event corresponding to user abandoning the
16955
17408
  # conversation.
16956
17409
  # Corresponds to the JSON property `triggeredAbandonmentEvent`
@@ -16981,6 +17434,8 @@ module Google
16981
17434
  @no_match = args[:no_match] if args.key?(:no_match)
16982
17435
  @no_user_input = args[:no_user_input] if args.key?(:no_user_input)
16983
17436
  @reached_end_page = args[:reached_end_page] if args.key?(:reached_end_page)
17437
+ @sentiment_magnitude = args[:sentiment_magnitude] if args.key?(:sentiment_magnitude)
17438
+ @sentiment_score = args[:sentiment_score] if args.key?(:sentiment_score)
16984
17439
  @triggered_abandonment_event = args[:triggered_abandonment_event] if args.key?(:triggered_abandonment_event)
16985
17440
  @user_escalated = args[:user_escalated] if args.key?(:user_escalated)
16986
17441
  @webhook_statuses = args[:webhook_statuses] if args.key?(:webhook_statuses)
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module DialogflowV2beta1
18
18
  # Version of the google-apis-dialogflow_v2beta1 gem
19
- GEM_VERSION = "0.56.0"
19
+ GEM_VERSION = "0.58.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.12.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20230501"
25
+ REVISION = "20230522"
26
26
  end
27
27
  end
28
28
  end
@@ -1744,6 +1744,12 @@ module Google
1744
1744
  include Google::Apis::Core::JsonObjectSupport
1745
1745
  end
1746
1746
 
1747
+ class GoogleCloudDialogflowV2beta1DialogflowAssistAnswer
1748
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1749
+
1750
+ include Google::Apis::Core::JsonObjectSupport
1751
+ end
1752
+
1747
1753
  class GoogleCloudDialogflowV2beta1Document
1748
1754
  class Representation < Google::Apis::Core::JsonRepresentation; end
1749
1755
 
@@ -1864,6 +1870,30 @@ module Google
1864
1870
  include Google::Apis::Core::JsonObjectSupport
1865
1871
  end
1866
1872
 
1873
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
1874
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1875
+
1876
+ include Google::Apis::Core::JsonObjectSupport
1877
+ end
1878
+
1879
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation
1880
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1881
+
1882
+ include Google::Apis::Core::JsonObjectSupport
1883
+ end
1884
+
1885
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse
1886
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1887
+
1888
+ include Google::Apis::Core::JsonObjectSupport
1889
+ end
1890
+
1891
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary
1892
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1893
+
1894
+ include Google::Apis::Core::JsonObjectSupport
1895
+ end
1896
+
1867
1897
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
1868
1898
  class Representation < Google::Apis::Core::JsonRepresentation; end
1869
1899
 
@@ -1918,6 +1948,12 @@ module Google
1918
1948
  include Google::Apis::Core::JsonObjectSupport
1919
1949
  end
1920
1950
 
1951
+ class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig
1952
+ class Representation < Google::Apis::Core::JsonRepresentation; end
1953
+
1954
+ include Google::Apis::Core::JsonObjectSupport
1955
+ end
1956
+
1921
1957
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDocumentQuerySource
1922
1958
  class Representation < Google::Apis::Core::JsonRepresentation; end
1923
1959
 
@@ -2008,6 +2044,12 @@ module Google
2008
2044
  include Google::Apis::Core::JsonObjectSupport
2009
2045
  end
2010
2046
 
2047
+ class GoogleCloudDialogflowV2beta1IntentInput
2048
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2049
+
2050
+ include Google::Apis::Core::JsonObjectSupport
2051
+ end
2052
+
2011
2053
  class GoogleCloudDialogflowV2beta1IntentMessage
2012
2054
  class Representation < Google::Apis::Core::JsonRepresentation; end
2013
2055
 
@@ -2266,6 +2308,12 @@ module Google
2266
2308
  include Google::Apis::Core::JsonObjectSupport
2267
2309
  end
2268
2310
 
2311
+ class GoogleCloudDialogflowV2beta1IntentSuggestion
2312
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2313
+
2314
+ include Google::Apis::Core::JsonObjectSupport
2315
+ end
2316
+
2269
2317
  class GoogleCloudDialogflowV2beta1IntentTrainingPhrase
2270
2318
  class Representation < Google::Apis::Core::JsonRepresentation; end
2271
2319
 
@@ -2602,6 +2650,12 @@ module Google
2602
2650
  include Google::Apis::Core::JsonObjectSupport
2603
2651
  end
2604
2652
 
2653
+ class GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse
2654
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2655
+
2656
+ include Google::Apis::Core::JsonObjectSupport
2657
+ end
2658
+
2605
2659
  class GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
2606
2660
  class Representation < Google::Apis::Core::JsonRepresentation; end
2607
2661
 
@@ -2650,6 +2704,12 @@ module Google
2650
2704
  include Google::Apis::Core::JsonObjectSupport
2651
2705
  end
2652
2706
 
2707
+ class GoogleCloudDialogflowV2beta1SuggestionInput
2708
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2709
+
2710
+ include Google::Apis::Core::JsonObjectSupport
2711
+ end
2712
+
2653
2713
  class GoogleCloudDialogflowV2beta1SuggestionResult
2654
2714
  class Representation < Google::Apis::Core::JsonRepresentation; end
2655
2715
 
@@ -3525,6 +3585,8 @@ module Google
3525
3585
  property :no_match, as: 'noMatch'
3526
3586
  property :no_user_input, as: 'noUserInput'
3527
3587
  property :reached_end_page, as: 'reachedEndPage'
3588
+ property :sentiment_magnitude, as: 'sentimentMagnitude'
3589
+ property :sentiment_score, as: 'sentimentScore'
3528
3590
  property :user_escalated, as: 'userEscalated'
3529
3591
  collection :webhook_statuses, as: 'webhookStatuses'
3530
3592
  end
@@ -3556,10 +3618,14 @@ module Google
3556
3618
  # @private
3557
3619
  class Representation < Google::Apis::Core::JsonRepresentation
3558
3620
  collection :allowed_ca_certs, as: 'allowedCaCerts'
3621
+ property :http_method, as: 'httpMethod'
3622
+ hash :parameter_mapping, as: 'parameterMapping'
3559
3623
  property :password, as: 'password'
3624
+ property :request_body, as: 'requestBody'
3560
3625
  hash :request_headers, as: 'requestHeaders'
3561
3626
  property :uri, as: 'uri'
3562
3627
  property :username, as: 'username'
3628
+ property :webhook_type, as: 'webhookType'
3563
3629
  end
3564
3630
  end
3565
3631
 
@@ -4363,6 +4429,8 @@ module Google
4363
4429
  property :no_match, as: 'noMatch'
4364
4430
  property :no_user_input, as: 'noUserInput'
4365
4431
  property :reached_end_page, as: 'reachedEndPage'
4432
+ property :sentiment_magnitude, as: 'sentimentMagnitude'
4433
+ property :sentiment_score, as: 'sentimentScore'
4366
4434
  property :user_escalated, as: 'userEscalated'
4367
4435
  collection :webhook_statuses, as: 'webhookStatuses'
4368
4436
  end
@@ -4394,10 +4462,14 @@ module Google
4394
4462
  # @private
4395
4463
  class Representation < Google::Apis::Core::JsonRepresentation
4396
4464
  collection :allowed_ca_certs, as: 'allowedCaCerts'
4465
+ property :http_method, as: 'httpMethod'
4466
+ hash :parameter_mapping, as: 'parameterMapping'
4397
4467
  property :password, as: 'password'
4468
+ property :request_body, as: 'requestBody'
4398
4469
  hash :request_headers, as: 'requestHeaders'
4399
4470
  property :uri, as: 'uri'
4400
4471
  property :username, as: 'username'
4472
+ property :webhook_type, as: 'webhookType'
4401
4473
  end
4402
4474
  end
4403
4475
 
@@ -5350,6 +5422,8 @@ module Google
5350
5422
  class Representation < Google::Apis::Core::JsonRepresentation
5351
5423
  property :article_suggestion_answer, as: 'articleSuggestionAnswer', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ArticleAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ArticleAnswer::Representation
5352
5424
 
5425
+ property :dialogflow_assist_answer, as: 'dialogflowAssistAnswer', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DialogflowAssistAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DialogflowAssistAnswer::Representation
5426
+
5353
5427
  property :faq_answer, as: 'faqAnswer', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FaqAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1FaqAnswer::Representation
5354
5428
 
5355
5429
  end
@@ -5372,6 +5446,8 @@ module Google
5372
5446
  property :reply_audio_config, as: 'replyAudioConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1OutputAudioConfig::Representation
5373
5447
 
5374
5448
  property :request_id, as: 'requestId'
5449
+ property :suggestion_input, as: 'suggestionInput', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionInput, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionInput::Representation
5450
+
5375
5451
  property :text_input, as: 'textInput', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput::Representation
5376
5452
 
5377
5453
  end
@@ -5738,6 +5814,17 @@ module Google
5738
5814
  end
5739
5815
  end
5740
5816
 
5817
+ class GoogleCloudDialogflowV2beta1DialogflowAssistAnswer
5818
+ # @private
5819
+ class Representation < Google::Apis::Core::JsonRepresentation
5820
+ property :answer_record, as: 'answerRecord'
5821
+ property :intent_suggestion, as: 'intentSuggestion', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentSuggestion, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentSuggestion::Representation
5822
+
5823
+ property :query_result, as: 'queryResult', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1QueryResult::Representation
5824
+
5825
+ end
5826
+ end
5827
+
5741
5828
  class GoogleCloudDialogflowV2beta1Document
5742
5829
  # @private
5743
5830
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5931,6 +6018,44 @@ module Google
5931
6018
  end
5932
6019
  end
5933
6020
 
6021
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest
6022
+ # @private
6023
+ class Representation < Google::Apis::Core::JsonRepresentation
6024
+ property :conversation_profile, as: 'conversationProfile', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ConversationProfile::Representation
6025
+
6026
+ property :latest_message, as: 'latestMessage'
6027
+ property :max_context_size, as: 'maxContextSize'
6028
+ property :stateless_conversation, as: 'statelessConversation', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation::Representation
6029
+
6030
+ end
6031
+ end
6032
+
6033
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequestMinimalConversation
6034
+ # @private
6035
+ class Representation < Google::Apis::Core::JsonRepresentation
6036
+ collection :messages, as: 'messages', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Message, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Message::Representation
6037
+
6038
+ end
6039
+ end
6040
+
6041
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse
6042
+ # @private
6043
+ class Representation < Google::Apis::Core::JsonRepresentation
6044
+ property :context_size, as: 'contextSize'
6045
+ property :latest_message, as: 'latestMessage'
6046
+ property :summary, as: 'summary', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary::Representation
6047
+
6048
+ end
6049
+ end
6050
+
6051
+ class GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponseSummary
6052
+ # @private
6053
+ class Representation < Google::Apis::Core::JsonRepresentation
6054
+ property :text, as: 'text'
6055
+ hash :text_sections, as: 'textSections'
6056
+ end
6057
+ end
6058
+
5934
6059
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
5935
6060
  # @private
5936
6061
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -5948,6 +6073,7 @@ module Google
5948
6073
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig
5949
6074
  # @private
5950
6075
  class Representation < Google::Apis::Core::JsonRepresentation
6076
+ property :baseline_model_version, as: 'baselineModelVersion'
5951
6077
  property :model, as: 'model'
5952
6078
  end
5953
6079
  end
@@ -6019,6 +6145,15 @@ module Google
6019
6145
  end
6020
6146
 
6021
6147
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySource
6148
+ # @private
6149
+ class Representation < Google::Apis::Core::JsonRepresentation
6150
+ property :agent, as: 'agent'
6151
+ property :human_agent_side_config, as: 'humanAgentSideConfig', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig::Representation
6152
+
6153
+ end
6154
+ end
6155
+
6156
+ class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig
6022
6157
  # @private
6023
6158
  class Representation < Google::Apis::Core::JsonRepresentation
6024
6159
  property :agent, as: 'agent'
@@ -6188,6 +6323,14 @@ module Google
6188
6323
  end
6189
6324
  end
6190
6325
 
6326
+ class GoogleCloudDialogflowV2beta1IntentInput
6327
+ # @private
6328
+ class Representation < Google::Apis::Core::JsonRepresentation
6329
+ property :intent, as: 'intent'
6330
+ property :language_code, as: 'languageCode'
6331
+ end
6332
+ end
6333
+
6191
6334
  class GoogleCloudDialogflowV2beta1IntentMessage
6192
6335
  # @private
6193
6336
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -6624,6 +6767,15 @@ module Google
6624
6767
  end
6625
6768
  end
6626
6769
 
6770
+ class GoogleCloudDialogflowV2beta1IntentSuggestion
6771
+ # @private
6772
+ class Representation < Google::Apis::Core::JsonRepresentation
6773
+ property :description, as: 'description'
6774
+ property :display_name, as: 'displayName'
6775
+ property :intent_v2, as: 'intentV2'
6776
+ end
6777
+ end
6778
+
6627
6779
  class GoogleCloudDialogflowV2beta1IntentTrainingPhrase
6628
6780
  # @private
6629
6781
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7147,8 +7299,6 @@ module Google
7147
7299
  class GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
7148
7300
  # @private
7149
7301
  class Representation < Google::Apis::Core::JsonRepresentation
7150
- property :assist_query_params, as: 'assistQueryParams', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AssistQueryParameters, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AssistQueryParameters::Representation
7151
-
7152
7302
  property :context_size, as: 'contextSize'
7153
7303
  property :latest_message, as: 'latestMessage'
7154
7304
  end
@@ -7173,6 +7323,16 @@ module Google
7173
7323
  end
7174
7324
  end
7175
7325
 
7326
+ class GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse
7327
+ # @private
7328
+ class Representation < Google::Apis::Core::JsonRepresentation
7329
+ property :context_size, as: 'contextSize'
7330
+ collection :dialogflow_assist_answers, as: 'dialogflowAssistAnswers', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DialogflowAssistAnswer, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DialogflowAssistAnswer::Representation
7331
+
7332
+ property :latest_message, as: 'latestMessage'
7333
+ end
7334
+ end
7335
+
7176
7336
  class GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
7177
7337
  # @private
7178
7338
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7256,6 +7416,18 @@ module Google
7256
7416
  end
7257
7417
  end
7258
7418
 
7419
+ class GoogleCloudDialogflowV2beta1SuggestionInput
7420
+ # @private
7421
+ class Representation < Google::Apis::Core::JsonRepresentation
7422
+ property :answer_record, as: 'answerRecord'
7423
+ property :intent_input, as: 'intentInput', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentInput, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1IntentInput::Representation
7424
+
7425
+ hash :parameters, as: 'parameters'
7426
+ property :text_override, as: 'textOverride', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput::Representation
7427
+
7428
+ end
7429
+ end
7430
+
7259
7431
  class GoogleCloudDialogflowV2beta1SuggestionResult
7260
7432
  # @private
7261
7433
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -7263,6 +7435,8 @@ module Google
7263
7435
 
7264
7436
  property :suggest_articles_response, as: 'suggestArticlesResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestArticlesResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestArticlesResponse::Representation
7265
7437
 
7438
+ property :suggest_dialogflow_assists_response, as: 'suggestDialogflowAssistsResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestDialogflowAssistsResponse::Representation
7439
+
7266
7440
  property :suggest_faq_answers_response, as: 'suggestFaqAnswersResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse::Representation
7267
7441
 
7268
7442
  property :suggest_smart_replies_response, as: 'suggestSmartRepliesResponse', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse::Representation
@@ -7447,6 +7621,8 @@ module Google
7447
7621
  property :no_match, as: 'noMatch'
7448
7622
  property :no_user_input, as: 'noUserInput'
7449
7623
  property :reached_end_page, as: 'reachedEndPage'
7624
+ property :sentiment_magnitude, as: 'sentimentMagnitude'
7625
+ property :sentiment_score, as: 'sentimentScore'
7450
7626
  property :triggered_abandonment_event, as: 'triggeredAbandonmentEvent'
7451
7627
  property :user_escalated, as: 'userEscalated'
7452
7628
  collection :webhook_statuses, as: 'webhookStatuses'
@@ -8805,6 +8805,41 @@ module Google
8805
8805
  execute_or_queue_command(command, &block)
8806
8806
  end
8807
8807
 
8808
+ # Generates and returns a summary for a conversation that does not have a
8809
+ # resource created for it.
8810
+ # @param [String] parent
8811
+ # Required. The parent resource to charge for the Summary's generation. Format: `
8812
+ # projects//locations/`.
8813
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest] google_cloud_dialogflow_v2beta1_generate_stateless_summary_request_object
8814
+ # @param [String] fields
8815
+ # Selector specifying which fields to include in a partial response.
8816
+ # @param [String] quota_user
8817
+ # Available to use for quota purposes for server-side applications. Can be any
8818
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8819
+ # @param [Google::Apis::RequestOptions] options
8820
+ # Request-specific options
8821
+ #
8822
+ # @yield [result, err] Result & error if block supplied
8823
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse] parsed result object
8824
+ # @yieldparam err [StandardError] error object if request failed
8825
+ #
8826
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse]
8827
+ #
8828
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8829
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8830
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8831
+ def generate_project_location_suggestion_stateless_summary(parent, google_cloud_dialogflow_v2beta1_generate_stateless_summary_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
8832
+ command = make_simple_command(:post, 'v2beta1/{+parent}/suggestions:generateStatelessSummary', options)
8833
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest::Representation
8834
+ command.request_object = google_cloud_dialogflow_v2beta1_generate_stateless_summary_request_object
8835
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse::Representation
8836
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse
8837
+ command.params['parent'] = parent unless parent.nil?
8838
+ command.query['fields'] = fields unless fields.nil?
8839
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8840
+ execute_or_queue_command(command, &block)
8841
+ end
8842
+
8808
8843
  # Starts asynchronous cancellation on a long-running operation. The server makes
8809
8844
  # a best effort to cancel the operation, but success is not guaranteed. If the
8810
8845
  # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
@@ -8912,6 +8947,41 @@ module Google
8912
8947
  command.query['quotaUser'] = quota_user unless quota_user.nil?
8913
8948
  execute_or_queue_command(command, &block)
8914
8949
  end
8950
+
8951
+ # Generates and returns a summary for a conversation that does not have a
8952
+ # resource created for it.
8953
+ # @param [String] parent
8954
+ # Required. The parent resource to charge for the Summary's generation. Format: `
8955
+ # projects//locations/`.
8956
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest] google_cloud_dialogflow_v2beta1_generate_stateless_summary_request_object
8957
+ # @param [String] fields
8958
+ # Selector specifying which fields to include in a partial response.
8959
+ # @param [String] quota_user
8960
+ # Available to use for quota purposes for server-side applications. Can be any
8961
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8962
+ # @param [Google::Apis::RequestOptions] options
8963
+ # Request-specific options
8964
+ #
8965
+ # @yield [result, err] Result & error if block supplied
8966
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse] parsed result object
8967
+ # @yieldparam err [StandardError] error object if request failed
8968
+ #
8969
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse]
8970
+ #
8971
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8972
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8973
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8974
+ def generate_project_suggestion_stateless_summary(parent, google_cloud_dialogflow_v2beta1_generate_stateless_summary_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
8975
+ command = make_simple_command(:post, 'v2beta1/{+parent}/suggestions:generateStatelessSummary', options)
8976
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryRequest::Representation
8977
+ command.request_object = google_cloud_dialogflow_v2beta1_generate_stateless_summary_request_object
8978
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse::Representation
8979
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1GenerateStatelessSummaryResponse
8980
+ command.params['parent'] = parent unless parent.nil?
8981
+ command.query['fields'] = fields unless fields.nil?
8982
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8983
+ execute_or_queue_command(command, &block)
8984
+ end
8915
8985
 
8916
8986
  protected
8917
8987
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-dialogflow_v2beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.56.0
4
+ version: 0.58.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-14 00:00:00.000000000 Z
11
+ date: 2023-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.56.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.58.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-dialogflow_v2beta1
63
63
  post_install_message:
64
64
  rdoc_options: []