google-apis-dialogflow_v2beta1 0.39.0 → 0.42.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: 773362d6526e2ba7c91c0aa99fd2373e6205bfd39bd1c64733eae4a47ff0044d
4
- data.tar.gz: 59d968266948ed4f80b0273b62d40fdbe535eb6571e120cf1ed19db054390b0c
3
+ metadata.gz: e4012a61cd79699cc549c79e89869448d2a4f4b1085f011e3eb2138b63462820
4
+ data.tar.gz: 86b668ce3b2f215790d840a1b9f6285b75bdc761510287e69fe2dbb4f54a2da4
5
5
  SHA512:
6
- metadata.gz: 4d2c7cc2746af64183e6f7d93b957115a831ec522fe75d7536a2029a45394e4b4c5b9a9b7a838d027eb4f291b675e83d49d53969d487d4757c521a665908cd07
7
- data.tar.gz: f7c7e0bb022980c46f6cc96f1963860d430e674c9a63439a6a8b8fae0711936a2c6c3c950c4be34a22e1e9e537cc78cb7eb3dda35f259865e9b96b392c1f29bc
6
+ metadata.gz: 669fe6b7d84c5df8539b4a8c2a712dd199e229dbc2ecdfa7aeed42f8b3803e0279d087b4346905c16a0e0b5324dec267605cea2d0a99178b00b2abdb7fb27cfa
7
+ data.tar.gz: c8bc63797e0dd3c1e292abd0b5c4cda95eedb04b80d84d04385e3766033fb1e43c7ab81d2edbbd3cd36ce7fa83629333126ce33d0dd1b412697f4d51118d06d0
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-dialogflow_v2beta1
2
2
 
3
+ ### v0.42.0 (2022-09-10)
4
+
5
+ * Regenerated from discovery document revision 20220901
6
+
7
+ ### v0.41.0 (2022-08-27)
8
+
9
+ * Regenerated from discovery document revision 20220824
10
+
11
+ ### v0.40.0 (2022-07-22)
12
+
13
+ * Regenerated from discovery document revision 20220714
14
+ * Regenerated using generator version 0.9.0
15
+
3
16
  ### v0.39.0 (2022-07-02)
4
17
 
5
18
  * Regenerated using generator version 0.8.0
@@ -6240,12 +6240,19 @@ module Google
6240
6240
  class GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
6241
6241
  include Google::Apis::Core::Hashable
6242
6242
 
6243
+ # The resource name of the conversation dataset that will be created. Format: `
6244
+ # projects//locations//conversationDatasets/`
6245
+ # Corresponds to the JSON property `conversationDataset`
6246
+ # @return [String]
6247
+ attr_accessor :conversation_dataset
6248
+
6243
6249
  def initialize(**args)
6244
6250
  update!(**args)
6245
6251
  end
6246
6252
 
6247
6253
  # Update properties of this object
6248
6254
  def update!(**args)
6255
+ @conversation_dataset = args[:conversation_dataset] if args.key?(:conversation_dataset)
6249
6256
  end
6250
6257
  end
6251
6258
 
@@ -9450,7 +9457,7 @@ module Google
9450
9457
 
9451
9458
  # Required. The natural language speech audio to be processed. A single request
9452
9459
  # can contain up to 1 minute of speech audio data. The transcribed text cannot
9453
- # contain more than 256 bytes.
9460
+ # contain more than 256 bytes for virtual agent interactions.
9454
9461
  # Corresponds to the JSON property `audio`
9455
9462
  # NOTE: Values are automatically base64 encoded/decoded in the client library.
9456
9463
  # @return [String]
@@ -15542,6 +15549,102 @@ module Google
15542
15549
  end
15543
15550
  end
15544
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
+
15545
15648
  # The request message for Participants.SuggestFaqAnswers.
15546
15649
  class GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
15547
15650
  include Google::Apis::Core::Hashable
@@ -15978,7 +16081,7 @@ module Google
15978
16081
  attr_accessor :language_code
15979
16082
 
15980
16083
  # Required. The UTF-8 encoded natural language text to be processed. Text length
15981
- # must not exceed 256 characters.
16084
+ # must not exceed 256 characters for virtual agent interactions.
15982
16085
  # Corresponds to the JSON property `text`
15983
16086
  # @return [String]
15984
16087
  attr_accessor :text
@@ -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.39.0"
19
+ GEM_VERSION = "0.42.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220616"
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
 
@@ -4481,6 +4499,7 @@ module Google
4481
4499
  class GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
4482
4500
  # @private
4483
4501
  class Representation < Google::Apis::Core::JsonRepresentation
4502
+ property :conversation_dataset, as: 'conversationDataset'
4484
4503
  end
4485
4504
  end
4486
4505
 
@@ -7020,6 +7039,33 @@ module Google
7020
7039
  end
7021
7040
  end
7022
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
+
7023
7069
  class GoogleCloudDialogflowV2beta1SuggestFaqAnswersRequest
7024
7070
  # @private
7025
7071
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -3122,6 +3122,9 @@ module Google
3122
3122
  # @param [String] parent
3123
3123
  # Required. The project to list all answer records for in reverse chronological
3124
3124
  # order. Format: `projects//locations/`.
3125
+ # @param [String] filter
3126
+ # Optional. Filters to restrict results to specific answer records. For more
3127
+ # information about filtering, see [API Filtering](https://aip.dev/160).
3125
3128
  # @param [Fixnum] page_size
3126
3129
  # Optional. The maximum number of records to return in a single page. The server
3127
3130
  # may return fewer records than this. If unspecified, we use 10. The maximum is
@@ -3146,11 +3149,12 @@ module Google
3146
3149
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
3147
3150
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
3148
3151
  # @raise [Google::Apis::AuthorizationError] Authorization is required
3149
- def list_project_answer_records(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3152
+ def list_project_answer_records(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
3150
3153
  command = make_simple_command(:get, 'v2beta1/{+parent}/answerRecords', options)
3151
3154
  command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse::Representation
3152
3155
  command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
3153
3156
  command.params['parent'] = parent unless parent.nil?
3157
+ command.query['filter'] = filter unless filter.nil?
3154
3158
  command.query['pageSize'] = page_size unless page_size.nil?
3155
3159
  command.query['pageToken'] = page_token unless page_token.nil?
3156
3160
  command.query['fields'] = fields unless fields.nil?
@@ -4081,6 +4085,41 @@ module Google
4081
4085
  execute_or_queue_command(command, &block)
4082
4086
  end
4083
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
+
4084
4123
  # Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource
4085
4124
  # is deprecated; only use `projects.knowledgeBases`.
4086
4125
  # @param [String] parent
@@ -7265,6 +7304,9 @@ module Google
7265
7304
  # @param [String] parent
7266
7305
  # Required. The project to list all answer records for in reverse chronological
7267
7306
  # order. Format: `projects//locations/`.
7307
+ # @param [String] filter
7308
+ # Optional. Filters to restrict results to specific answer records. For more
7309
+ # information about filtering, see [API Filtering](https://aip.dev/160).
7268
7310
  # @param [Fixnum] page_size
7269
7311
  # Optional. The maximum number of records to return in a single page. The server
7270
7312
  # may return fewer records than this. If unspecified, we use 10. The maximum is
@@ -7289,11 +7331,12 @@ module Google
7289
7331
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7290
7332
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7291
7333
  # @raise [Google::Apis::AuthorizationError] Authorization is required
7292
- def list_project_location_answer_records(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
7334
+ def list_project_location_answer_records(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
7293
7335
  command = make_simple_command(:get, 'v2beta1/{+parent}/answerRecords', options)
7294
7336
  command.response_representation = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse::Representation
7295
7337
  command.response_class = Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ListAnswerRecordsResponse
7296
7338
  command.params['parent'] = parent unless parent.nil?
7339
+ command.query['filter'] = filter unless filter.nil?
7297
7340
  command.query['pageSize'] = page_size unless page_size.nil?
7298
7341
  command.query['pageToken'] = page_token unless page_token.nil?
7299
7342
  command.query['fields'] = fields unless fields.nil?
@@ -8130,6 +8173,41 @@ module Google
8130
8173
  execute_or_queue_command(command, &block)
8131
8174
  end
8132
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
+
8133
8211
  # Creates a knowledge base. Note: The `projects.agent.knowledgeBases` resource
8134
8212
  # is deprecated; only use `projects.knowledgeBases`.
8135
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.39.0
4
+ version: 0.42.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-07-04 00:00:00.000000000 Z
11
+ date: 2022-09-12 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.39.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2beta1/v0.42.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: []