google-cloud-contact_center_insights-v1 0.11.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,53 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "gapic/rest"
20
+ require "gapic/config"
21
+ require "gapic/config/method"
22
+
23
+ require "google/cloud/contact_center_insights/v1/version"
24
+
25
+ require "google/cloud/contact_center_insights/v1/contact_center_insights/credentials"
26
+ require "google/cloud/contact_center_insights/v1/contact_center_insights/paths"
27
+ require "google/cloud/contact_center_insights/v1/contact_center_insights/rest/operations"
28
+ require "google/cloud/contact_center_insights/v1/contact_center_insights/rest/client"
29
+
30
+ module Google
31
+ module Cloud
32
+ module ContactCenterInsights
33
+ module V1
34
+ ##
35
+ # An API that lets users analyze and explore their business conversation data.
36
+ #
37
+ # To load this service and instantiate a REST client:
38
+ #
39
+ # require "google/cloud/contact_center_insights/v1/contact_center_insights/rest"
40
+ # client = ::Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
41
+ #
42
+ module ContactCenterInsights
43
+ # Client for the REST transport
44
+ module Rest
45
+ end
46
+ end
47
+ end
48
+ end
49
+ end
50
+ end
51
+
52
+ helper_path = ::File.join __dir__, "rest", "helpers.rb"
53
+ require "google/cloud/contact_center_insights/v1/contact_center_insights/rest/helpers" if ::File.file? helper_path
@@ -26,6 +26,7 @@ require "google/cloud/contact_center_insights/v1/contact_center_insights/credent
26
26
  require "google/cloud/contact_center_insights/v1/contact_center_insights/paths"
27
27
  require "google/cloud/contact_center_insights/v1/contact_center_insights/operations"
28
28
  require "google/cloud/contact_center_insights/v1/contact_center_insights/client"
29
+ require "google/cloud/contact_center_insights/v1/contact_center_insights/rest"
29
30
 
30
31
  module Google
31
32
  module Cloud
@@ -39,6 +40,11 @@ module Google
39
40
  # require "google/cloud/contact_center_insights/v1/contact_center_insights"
40
41
  # client = ::Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
41
42
  #
43
+ # @example Load this service and instantiate a REST client
44
+ #
45
+ # require "google/cloud/contact_center_insights/v1/contact_center_insights/rest"
46
+ # client = ::Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
47
+ #
42
48
  module ContactCenterInsights
43
49
  end
44
50
  end
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+ require "google/cloud/contact_center_insights/v1/contact_center_insights/rest"
20
+ require "google/cloud/contact_center_insights/v1/version"
21
+
22
+ module Google
23
+ module Cloud
24
+ module ContactCenterInsights
25
+ ##
26
+ # To load just the REST part of this package, including all its services, and instantiate a REST client:
27
+ #
28
+ # @example
29
+ #
30
+ # require "google/cloud/contact_center_insights/v1/rest"
31
+ # client = ::Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
32
+ #
33
+ module V1
34
+ end
35
+ end
36
+ end
37
+ end
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ContactCenterInsights
23
23
  module V1
24
- VERSION = "0.11.0"
24
+ VERSION = "0.13.0"
25
25
  end
26
26
  end
27
27
  end
@@ -30,6 +30,11 @@ module Google
30
30
  # require "google/cloud/contact_center_insights/v1"
31
31
  # client = ::Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
32
32
  #
33
+ # @example Load this package, including all its services, and instantiate a REST client
34
+ #
35
+ # require "google/cloud/contact_center_insights/v1"
36
+ # client = ::Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
37
+ #
33
38
  module V1
34
39
  end
35
40
  end
@@ -50,6 +50,19 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
50
50
  optional :conversation, :message, 2, "google.cloud.contactcenterinsights.v1.Conversation"
51
51
  optional :conversation_id, :string, 3
52
52
  end
53
+ add_message "google.cloud.contactcenterinsights.v1.UploadConversationRequest" do
54
+ optional :parent, :string, 1
55
+ optional :conversation, :message, 2, "google.cloud.contactcenterinsights.v1.Conversation"
56
+ optional :conversation_id, :string, 3
57
+ optional :redaction_config, :message, 4, "google.cloud.contactcenterinsights.v1.RedactionConfig"
58
+ end
59
+ add_message "google.cloud.contactcenterinsights.v1.UploadConversationMetadata" do
60
+ optional :create_time, :message, 1, "google.protobuf.Timestamp"
61
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
62
+ optional :request, :message, 3, "google.cloud.contactcenterinsights.v1.UploadConversationRequest"
63
+ optional :analysis_operation, :string, 4
64
+ optional :applied_redaction_config, :message, 5, "google.cloud.contactcenterinsights.v1.RedactionConfig"
65
+ end
53
66
  add_message "google.cloud.contactcenterinsights.v1.ListConversationsRequest" do
54
67
  optional :parent, :string, 1
55
68
  optional :page_size, :int32, 2
@@ -316,6 +329,8 @@ module Google
316
329
  CalculateStatsResponse::TimeSeries::Interval = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries.Interval").msgclass
317
330
  CreateAnalysisOperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CreateAnalysisOperationMetadata").msgclass
318
331
  CreateConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CreateConversationRequest").msgclass
332
+ UploadConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UploadConversationRequest").msgclass
333
+ UploadConversationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UploadConversationMetadata").msgclass
319
334
  ListConversationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListConversationsRequest").msgclass
320
335
  ListConversationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListConversationsResponse").msgclass
321
336
  GetConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetConversationRequest").msgclass
@@ -35,6 +35,10 @@ module Google
35
35
 
36
36
  # Creates a conversation.
37
37
  rpc :CreateConversation, ::Google::Cloud::ContactCenterInsights::V1::CreateConversationRequest, ::Google::Cloud::ContactCenterInsights::V1::Conversation
38
+ # Create a longrunning conversation upload operation. This method differs
39
+ # from CreateConversation by allowing audio transcription and optional DLP
40
+ # redaction.
41
+ rpc :UploadConversation, ::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest, ::Google::Longrunning::Operation
38
42
  # Updates a conversation.
39
43
  rpc :UpdateConversation, ::Google::Cloud::ContactCenterInsights::V1::UpdateConversationRequest, ::Google::Cloud::ContactCenterInsights::V1::Conversation
40
44
  # Gets a conversation.
@@ -283,12 +283,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
283
283
  optional :conversation_ttl, :message, 5, "google.protobuf.Duration"
284
284
  map :pubsub_notification_settings, :string, :string, 6
285
285
  optional :analysis_config, :message, 7, "google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig"
286
+ optional :redaction_config, :message, 10, "google.cloud.contactcenterinsights.v1.RedactionConfig"
286
287
  end
287
288
  add_message "google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig" do
288
289
  optional :runtime_integration_analysis_percentage, :double, 1
289
290
  optional :upload_conversation_analysis_percentage, :double, 6
290
291
  optional :annotator_selector, :message, 5, "google.cloud.contactcenterinsights.v1.AnnotatorSelector"
291
292
  end
293
+ add_message "google.cloud.contactcenterinsights.v1.RedactionConfig" do
294
+ optional :deidentify_template, :string, 1
295
+ optional :inspect_template, :string, 2
296
+ end
292
297
  add_message "google.cloud.contactcenterinsights.v1.RuntimeAnnotation" do
293
298
  optional :annotation_id, :string, 1
294
299
  optional :create_time, :message, 2, "google.protobuf.Timestamp"
@@ -433,6 +438,7 @@ module Google
433
438
  ExactMatchConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExactMatchConfig").msgclass
434
439
  Settings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Settings").msgclass
435
440
  Settings::AnalysisConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig").msgclass
441
+ RedactionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.RedactionConfig").msgclass
436
442
  RuntimeAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.RuntimeAnnotation").msgclass
437
443
  AnswerFeedback = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnswerFeedback").msgclass
438
444
  AnswerFeedback::CorrectnessLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnswerFeedback.CorrectnessLevel").enummodule
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -173,6 +173,52 @@ module Google
173
173
  extend ::Google::Protobuf::MessageExts::ClassMethods
174
174
  end
175
175
 
176
+ # Request to upload a conversation.
177
+ # @!attribute [rw] parent
178
+ # @return [::String]
179
+ # Required. The parent resource of the conversation.
180
+ # @!attribute [rw] conversation
181
+ # @return [::Google::Cloud::ContactCenterInsights::V1::Conversation]
182
+ # Required. The conversation resource to create.
183
+ # @!attribute [rw] conversation_id
184
+ # @return [::String]
185
+ # Optional. A unique ID for the new conversation. This ID will become the
186
+ # final component of the conversation's resource name. If no ID is specified,
187
+ # a server-generated ID will be used.
188
+ #
189
+ # This value should be 4-64 characters and must match the regular
190
+ # expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
191
+ # @!attribute [rw] redaction_config
192
+ # @return [::Google::Cloud::ContactCenterInsights::V1::RedactionConfig]
193
+ # Optional. DLP settings for transcript redaction. Optional, will default to
194
+ # the config specified in Settings.
195
+ class UploadConversationRequest
196
+ include ::Google::Protobuf::MessageExts
197
+ extend ::Google::Protobuf::MessageExts::ClassMethods
198
+ end
199
+
200
+ # The metadata for an UploadConversation operation.
201
+ # @!attribute [r] create_time
202
+ # @return [::Google::Protobuf::Timestamp]
203
+ # Output only. The time the operation was created.
204
+ # @!attribute [r] end_time
205
+ # @return [::Google::Protobuf::Timestamp]
206
+ # Output only. The time the operation finished running.
207
+ # @!attribute [r] request
208
+ # @return [::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest]
209
+ # Output only. The original request.
210
+ # @!attribute [r] analysis_operation
211
+ # @return [::String]
212
+ # Output only. The operation name for a successfully created analysis
213
+ # operation, if any.
214
+ # @!attribute [r] applied_redaction_config
215
+ # @return [::Google::Cloud::ContactCenterInsights::V1::RedactionConfig]
216
+ # Output only. The redaction config applied to the uploaded conversation.
217
+ class UploadConversationMetadata
218
+ include ::Google::Protobuf::MessageExts
219
+ extend ::Google::Protobuf::MessageExts::ClassMethods
220
+ end
221
+
176
222
  # Request to list conversations.
177
223
  # @!attribute [rw] parent
178
224
  # @return [::String]
@@ -983,6 +983,10 @@ module Google
983
983
  # @!attribute [rw] analysis_config
984
984
  # @return [::Google::Cloud::ContactCenterInsights::V1::Settings::AnalysisConfig]
985
985
  # Default analysis settings.
986
+ # @!attribute [rw] redaction_config
987
+ # @return [::Google::Cloud::ContactCenterInsights::V1::RedactionConfig]
988
+ # Default DLP redaction resources to be applied while ingesting
989
+ # conversations.
986
990
  class Settings
987
991
  include ::Google::Protobuf::MessageExts
988
992
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1015,6 +1019,22 @@ module Google
1015
1019
  end
1016
1020
  end
1017
1021
 
1022
+ # DLP resources used for redaction while ingesting conversations.
1023
+ # @!attribute [rw] deidentify_template
1024
+ # @return [::String]
1025
+ # The fully-qualified DLP deidentify template resource name.
1026
+ # Format:
1027
+ # `projects/{project}/deidentifyTemplates/{template}`
1028
+ # @!attribute [rw] inspect_template
1029
+ # @return [::String]
1030
+ # The fully-qualified DLP inspect template resource name.
1031
+ # Format:
1032
+ # `projects/{project}/inspectTemplates/{template}`
1033
+ class RedactionConfig
1034
+ include ::Google::Protobuf::MessageExts
1035
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1036
+ end
1037
+
1018
1038
  # An annotation that was generated during the customer and agent interaction.
1019
1039
  # @!attribute [rw] article_suggestion
1020
1040
  # @return [::Google::Cloud::ContactCenterInsights::V1::ArticleSuggestionData]
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-contact_center_insights-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.0
4
+ version: 0.13.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-03-04 00:00:00.000000000 Z
11
+ date: 2023-04-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -178,6 +178,11 @@ files:
178
178
  - lib/google/cloud/contact_center_insights/v1/contact_center_insights/credentials.rb
179
179
  - lib/google/cloud/contact_center_insights/v1/contact_center_insights/operations.rb
180
180
  - lib/google/cloud/contact_center_insights/v1/contact_center_insights/paths.rb
181
+ - lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest.rb
182
+ - lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/client.rb
183
+ - lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/operations.rb
184
+ - lib/google/cloud/contact_center_insights/v1/contact_center_insights/rest/service_stub.rb
185
+ - lib/google/cloud/contact_center_insights/v1/rest.rb
181
186
  - lib/google/cloud/contact_center_insights/v1/version.rb
182
187
  - lib/google/cloud/contactcenterinsights/v1/contact_center_insights_pb.rb
183
188
  - lib/google/cloud/contactcenterinsights/v1/contact_center_insights_services_pb.rb