google-apis-dialogflow_v2beta1 0.41.0 → 0.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dddb55e2fa221eea806b485321d5c60a2c330e8cd672935fe6b41cbb6cc3dcf6
4
- data.tar.gz: 9dd7f7bf4d70cadb1b10d9d5fd115d6fba49fd2d79f060fffd4fd13cadb34042
3
+ metadata.gz: 7d0a6a526d58c8333937ea15510a430012d292f287a9fe04d3de8d2dda9f3d87
4
+ data.tar.gz: 03c0112257e50848eddd4135dda35d64c3f770f3f8dc0537e671480f01e8b4f9
5
5
  SHA512:
6
- metadata.gz: e9e4e310ad65d168c37d27c8d385079141b6cc470e62cd09fef460d82b82900fae6c22c492dce610ba458fc71ee8299c34b9b36f229148b8c348ad633db7cfa7
7
- data.tar.gz: 42aa7b32a07d83e2734efaf467fade062973cb011ceb1ba63ab3ea91356b14bd83b8abfc96c0821a1e8a986e51ce059174c9ebf947ad075847450c4d4f0edfe0
6
+ metadata.gz: c28feab69ff408c671907bb0a867b144c1a3336b2d3a945a558f2fec0cbc5861382c88d453de8b7ff38b13be41b43051b92aeb2c72bc400c1b0e77d8e603bea2
7
+ data.tar.gz: 858baf55abe07b949c6bc3f04d86446c971e25086e1c5df6f1174cfd28ae7c0e1622764a60f49c22455afac8b46b34315503dae8ac525ba6ff6a66432b5ad28e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-dialogflow_v2beta1
2
2
 
3
+ ### v0.43.0 (2022-09-18)
4
+
5
+ * Unspecified changes
6
+
7
+ ### v0.42.0 (2022-09-10)
8
+
9
+ * Regenerated from discovery document revision 20220901
10
+
3
11
  ### v0.41.0 (2022-08-27)
4
12
 
5
13
  * Regenerated from discovery document revision 20220824
@@ -15549,6 +15549,102 @@ module Google
15549
15549
  end
15550
15550
  end
15551
15551
 
15552
+ # The request message for Conversations.SuggestConversationSummary.
15553
+ class GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
15554
+ include Google::Apis::Core::Hashable
15555
+
15556
+ # Max number of messages prior to and including [latest_message] to use as
15557
+ # context when compiling the suggestion. By default 500 and at most 1000.
15558
+ # Corresponds to the JSON property `contextSize`
15559
+ # @return [Fixnum]
15560
+ attr_accessor :context_size
15561
+
15562
+ # The name of the latest conversation message used as context for compiling
15563
+ # suggestion. If empty, the latest message of the conversation will be used.
15564
+ # Format: `projects//locations//conversations//messages/`.
15565
+ # Corresponds to the JSON property `latestMessage`
15566
+ # @return [String]
15567
+ attr_accessor :latest_message
15568
+
15569
+ def initialize(**args)
15570
+ update!(**args)
15571
+ end
15572
+
15573
+ # Update properties of this object
15574
+ def update!(**args)
15575
+ @context_size = args[:context_size] if args.key?(:context_size)
15576
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
15577
+ end
15578
+ end
15579
+
15580
+ # The response message for Conversations.SuggestConversationSummary.
15581
+ class GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse
15582
+ include Google::Apis::Core::Hashable
15583
+
15584
+ # Number of messages prior to and including last_conversation_message used to
15585
+ # compile the suggestion. It may be smaller than the SuggestSummaryRequest.
15586
+ # context_size field in the request if there weren't that many messages in the
15587
+ # conversation.
15588
+ # Corresponds to the JSON property `contextSize`
15589
+ # @return [Fixnum]
15590
+ attr_accessor :context_size
15591
+
15592
+ # The name of the latest conversation message used as context for compiling
15593
+ # suggestion. Format: `projects//locations//conversations//messages/`.
15594
+ # Corresponds to the JSON property `latestMessage`
15595
+ # @return [String]
15596
+ attr_accessor :latest_message
15597
+
15598
+ # Generated summary for a conversation.
15599
+ # Corresponds to the JSON property `summary`
15600
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary]
15601
+ attr_accessor :summary
15602
+
15603
+ def initialize(**args)
15604
+ update!(**args)
15605
+ end
15606
+
15607
+ # Update properties of this object
15608
+ def update!(**args)
15609
+ @context_size = args[:context_size] if args.key?(:context_size)
15610
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
15611
+ @summary = args[:summary] if args.key?(:summary)
15612
+ end
15613
+ end
15614
+
15615
+ # Generated summary for a conversation.
15616
+ class GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary
15617
+ include Google::Apis::Core::Hashable
15618
+
15619
+ # The name of the answer record. Format: "projects//answerRecords/"
15620
+ # Corresponds to the JSON property `answerRecord`
15621
+ # @return [String]
15622
+ attr_accessor :answer_record
15623
+
15624
+ # The summary content that is concatenated into one string.
15625
+ # Corresponds to the JSON property `text`
15626
+ # @return [String]
15627
+ attr_accessor :text
15628
+
15629
+ # The summary content that is divided into sections. The key is the section's
15630
+ # name and the value is the section's content. There is no specific format for
15631
+ # the key or value.
15632
+ # Corresponds to the JSON property `textSections`
15633
+ # @return [Hash<String,String>]
15634
+ attr_accessor :text_sections
15635
+
15636
+ def initialize(**args)
15637
+ update!(**args)
15638
+ end
15639
+
15640
+ # Update properties of this object
15641
+ def update!(**args)
15642
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
15643
+ @text = args[:text] if args.key?(:text)
15644
+ @text_sections = args[:text_sections] if args.key?(:text_sections)
15645
+ end
15646
+ end
15647
+
15552
15648
  # The request message for Participants.SuggestFaqAnswers.
15553
15649
  class GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
15554
15650
  include Google::Apis::Core::Hashable
@@ -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.41.0"
19
+ GEM_VERSION = "0.43.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220824"
25
+ REVISION = "20220901"
26
26
  end
27
27
  end
28
28
  end
@@ -2554,6 +2554,24 @@ module Google
2554
2554
  include Google::Apis::Core::JsonObjectSupport
2555
2555
  end
2556
2556
 
2557
+ class GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
2558
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2559
+
2560
+ include Google::Apis::Core::JsonObjectSupport
2561
+ end
2562
+
2563
+ class GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse
2564
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2565
+
2566
+ include Google::Apis::Core::JsonObjectSupport
2567
+ end
2568
+
2569
+ class GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary
2570
+ class Representation < Google::Apis::Core::JsonRepresentation; end
2571
+
2572
+ include Google::Apis::Core::JsonObjectSupport
2573
+ end
2574
+
2557
2575
  class GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
2558
2576
  class Representation < Google::Apis::Core::JsonRepresentation; end
2559
2577
 
@@ -7021,6 +7039,33 @@ module Google
7021
7039
  end
7022
7040
  end
7023
7041
 
7042
+ class GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest
7043
+ # @private
7044
+ class Representation < Google::Apis::Core::JsonRepresentation
7045
+ property :context_size, as: 'contextSize'
7046
+ property :latest_message, as: 'latestMessage'
7047
+ end
7048
+ end
7049
+
7050
+ class GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse
7051
+ # @private
7052
+ class Representation < Google::Apis::Core::JsonRepresentation
7053
+ property :context_size, as: 'contextSize'
7054
+ property :latest_message, as: 'latestMessage'
7055
+ property :summary, as: 'summary', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary::Representation
7056
+
7057
+ end
7058
+ end
7059
+
7060
+ class GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponseSummary
7061
+ # @private
7062
+ class Representation < Google::Apis::Core::JsonRepresentation
7063
+ property :answer_record, as: 'answerRecord'
7064
+ property :text, as: 'text'
7065
+ hash :text_sections, as: 'textSections'
7066
+ end
7067
+ end
7068
+
7024
7069
  class GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
7025
7070
  # @private
7026
7071
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -4085,6 +4085,41 @@ module Google
4085
4085
  execute_or_queue_command(command, &block)
4086
4086
  end
4087
4087
 
4088
+ # Suggest summary for a conversation based on specific historical messages. The
4089
+ # range of the messages to be used for summary can be specified in the request.
4090
+ # @param [String] conversation
4091
+ # Required. The conversation to fetch suggestion for. Format: `projects//
4092
+ # locations//conversations/`.
4093
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest] google_cloud_dialogflow_v2beta1_suggest_conversation_summary_request_object
4094
+ # @param [String] fields
4095
+ # Selector specifying which fields to include in a partial response.
4096
+ # @param [String] quota_user
4097
+ # Available to use for quota purposes for server-side applications. Can be any
4098
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
4099
+ # @param [Google::Apis::RequestOptions] options
4100
+ # Request-specific options
4101
+ #
4102
+ # @yield [result, err] Result & error if block supplied
4103
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse] parsed result object
4104
+ # @yieldparam err [StandardError] error object if request failed
4105
+ #
4106
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse]
4107
+ #
4108
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
4109
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
4110
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
4111
+ def suggest_project_conversation_suggestion_conversation_summary(conversation, google_cloud_dialogflow_v2beta1_suggest_conversation_summary_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
4112
+ command = make_simple_command(:post, 'v2beta1/{+conversation}/suggestions:suggestConversationSummary', options)
4113
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest::Representation
4114
+ command.request_object = google_cloud_dialogflow_v2beta1_suggest_conversation_summary_request_object
4115
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse::Representation
4116
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse
4117
+ command.params['conversation'] = conversation unless conversation.nil?
4118
+ command.query['fields'] = fields unless fields.nil?
4119
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
4120
+ execute_or_queue_command(command, &block)
4121
+ end
4122
+
4088
4123
  # Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource
4089
4124
  # is deprecated; only use `projects.knowledgeBases`.
4090
4125
  # @param [String] parent
@@ -8138,6 +8173,41 @@ module Google
8138
8173
  execute_or_queue_command(command, &block)
8139
8174
  end
8140
8175
 
8176
+ # Suggest summary for a conversation based on specific historical messages. The
8177
+ # range of the messages to be used for summary can be specified in the request.
8178
+ # @param [String] conversation
8179
+ # Required. The conversation to fetch suggestion for. Format: `projects//
8180
+ # locations//conversations/`.
8181
+ # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest] google_cloud_dialogflow_v2beta1_suggest_conversation_summary_request_object
8182
+ # @param [String] fields
8183
+ # Selector specifying which fields to include in a partial response.
8184
+ # @param [String] quota_user
8185
+ # Available to use for quota purposes for server-side applications. Can be any
8186
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
8187
+ # @param [Google::Apis::RequestOptions] options
8188
+ # Request-specific options
8189
+ #
8190
+ # @yield [result, err] Result & error if block supplied
8191
+ # @yieldparam result [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse] parsed result object
8192
+ # @yieldparam err [StandardError] error object if request failed
8193
+ #
8194
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse]
8195
+ #
8196
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8197
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8198
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
8199
+ def suggest_project_location_conversation_suggestion_conversation_summary(conversation, google_cloud_dialogflow_v2beta1_suggest_conversation_summary_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
8200
+ command = make_simple_command(:post, 'v2beta1/{+conversation}/suggestions:suggestConversationSummary', options)
8201
+ command.request_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryRequest::Representation
8202
+ command.request_object = google_cloud_dialogflow_v2beta1_suggest_conversation_summary_request_object
8203
+ command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse::Representation
8204
+ command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestConversationSummaryResponse
8205
+ command.params['conversation'] = conversation unless conversation.nil?
8206
+ command.query['fields'] = fields unless fields.nil?
8207
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
8208
+ execute_or_queue_command(command, &block)
8209
+ end
8210
+
8141
8211
  # Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource
8142
8212
  # is deprecated; only use `projects.knowledgeBases`.
8143
8213
  # @param [String] parent
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.41.0
4
+ version: 0.43.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: 2022-08-29 00:00:00.000000000 Z
11
+ date: 2022-09-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.7'
19
+ version: 0.7.2
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.7'
29
+ version: 0.7.2
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.41.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.43.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: []