google-cloud-contact_center_insights-v1 0.12.0 → 0.14.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: 62988acad6291fafe6e2d1d05716a9695fb17420cf19e58b9a1b8ee897733fe3
4
- data.tar.gz: 1c6234bd0a50808ba0e6e1c2e714aa01e9d6c028c94b4d650d6aa12cfb966073
3
+ metadata.gz: a0171ef1b64daedca6c39be10d220f5a9964ac40df5e77a3238cace85904b45f
4
+ data.tar.gz: 0b1fa984f9dd96695af103a9cbaf5d0efb740a454c160204975312d3ec7c41d4
5
5
  SHA512:
6
- metadata.gz: af1b6bc9d886eb28c1bf6734f372484476c7988eabc2b29c9a723feac76083ab270478eb7d750930b4aec50464cca5ae7bbbf5f6900441ef3d7f761f47afed11
7
- data.tar.gz: dedb460cb305d339f2a57087b39a91afac1cf0e213c039598f11c11c6e8e56be7d9202a5cf96e27a1d98250a73b8da027b8e94fecd6e10f4544c5d30b92fa72f
6
+ metadata.gz: b1fe44bd1bbd967265601f69f8e7ecbd1116551157aaf1ae0b263c1f0b3bf3be2dcb7eac64779fd5e57aa87e0b04bf35b57349c2f712f4ab58537504ce5a826d
7
+ data.tar.gz: 7021d389090c25705e02e2a44615742325d98d38e0c753dcd3800c0137a8115c893825c862bd165fe87f5367cf2fd7c18ed4f54be62eda4567310f03bdd9d397
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -256,6 +256,113 @@ module Google
256
256
  raise ::Google::Cloud::Error.from_error(e)
257
257
  end
258
258
 
259
+ ##
260
+ # Create a longrunning conversation upload operation. This method differs
261
+ # from CreateConversation by allowing audio transcription and optional DLP
262
+ # redaction.
263
+ #
264
+ # @overload upload_conversation(request, options = nil)
265
+ # Pass arguments to `upload_conversation` via a request object, either of type
266
+ # {::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest} or an equivalent Hash.
267
+ #
268
+ # @param request [::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest, ::Hash]
269
+ # A request object representing the call parameters. Required. To specify no
270
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
271
+ # @param options [::Gapic::CallOptions, ::Hash]
272
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
273
+ #
274
+ # @overload upload_conversation(parent: nil, conversation: nil, conversation_id: nil, redaction_config: nil)
275
+ # Pass arguments to `upload_conversation` via keyword arguments. Note that at
276
+ # least one keyword argument is required. To specify no parameters, or to keep all
277
+ # the default parameter values, pass an empty Hash as a request object (see above).
278
+ #
279
+ # @param parent [::String]
280
+ # Required. The parent resource of the conversation.
281
+ # @param conversation [::Google::Cloud::ContactCenterInsights::V1::Conversation, ::Hash]
282
+ # Required. The conversation resource to create.
283
+ # @param conversation_id [::String]
284
+ # Optional. A unique ID for the new conversation. This ID will become the
285
+ # final component of the conversation's resource name. If no ID is specified,
286
+ # a server-generated ID will be used.
287
+ #
288
+ # This value should be 4-64 characters and must match the regular
289
+ # expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
290
+ # @param redaction_config [::Google::Cloud::ContactCenterInsights::V1::RedactionConfig, ::Hash]
291
+ # Optional. DLP settings for transcript redaction. Optional, will default to
292
+ # the config specified in Settings.
293
+ #
294
+ # @yield [response, operation] Access the result along with the RPC operation
295
+ # @yieldparam response [::Gapic::Operation]
296
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
297
+ #
298
+ # @return [::Gapic::Operation]
299
+ #
300
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
301
+ #
302
+ # @example Basic example
303
+ # require "google/cloud/contact_center_insights/v1"
304
+ #
305
+ # # Create a client object. The client can be reused for multiple calls.
306
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
307
+ #
308
+ # # Create a request. To set request fields, pass in keyword arguments.
309
+ # request = Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest.new
310
+ #
311
+ # # Call the upload_conversation method.
312
+ # result = client.upload_conversation request
313
+ #
314
+ # # The returned object is of type Gapic::Operation. You can use it to
315
+ # # check the status of an operation, cancel it, or wait for results.
316
+ # # Here is how to wait for a response.
317
+ # result.wait_until_done! timeout: 60
318
+ # if result.response?
319
+ # p result.response
320
+ # else
321
+ # puts "No response received."
322
+ # end
323
+ #
324
+ def upload_conversation request, options = nil
325
+ raise ::ArgumentError, "request must be provided" if request.nil?
326
+
327
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest
328
+
329
+ # Converts hash and nil to an options object
330
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
331
+
332
+ # Customize the options with defaults
333
+ metadata = @config.rpcs.upload_conversation.metadata.to_h
334
+
335
+ # Set x-goog-api-client and x-goog-user-project headers
336
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
337
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
338
+ gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
339
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
340
+
341
+ header_params = {}
342
+ if request.parent
343
+ header_params["parent"] = request.parent
344
+ end
345
+
346
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
347
+ metadata[:"x-goog-request-params"] ||= request_params_header
348
+
349
+ options.apply_defaults timeout: @config.rpcs.upload_conversation.timeout,
350
+ metadata: metadata,
351
+ retry_policy: @config.rpcs.upload_conversation.retry_policy
352
+
353
+ options.apply_defaults timeout: @config.timeout,
354
+ metadata: @config.metadata,
355
+ retry_policy: @config.retry_policy
356
+
357
+ @contact_center_insights_stub.call_rpc :upload_conversation, request, options: options do |response, operation|
358
+ response = ::Gapic::Operation.new response, @operations_client, options: options
359
+ yield response, operation if block_given?
360
+ return response
361
+ end
362
+ rescue ::GRPC::BadStatus => e
363
+ raise ::Google::Cloud::Error.from_error(e)
364
+ end
365
+
259
366
  ##
260
367
  # Updates a conversation.
261
368
  #
@@ -3549,9 +3656,9 @@ module Google
3549
3656
  # * (`String`) The path to a service account key file in JSON format
3550
3657
  # * (`Hash`) A service account key as a Hash
3551
3658
  # * (`Google::Auth::Credentials`) A googleauth credentials object
3552
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
3659
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
3553
3660
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
3554
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
3661
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
3555
3662
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
3556
3663
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
3557
3664
  # * (`nil`) indicating no credentials
@@ -3652,6 +3759,11 @@ module Google
3652
3759
  #
3653
3760
  attr_reader :create_conversation
3654
3761
  ##
3762
+ # RPC-specific configuration for `upload_conversation`
3763
+ # @return [::Gapic::Config::Method]
3764
+ #
3765
+ attr_reader :upload_conversation
3766
+ ##
3655
3767
  # RPC-specific configuration for `update_conversation`
3656
3768
  # @return [::Gapic::Config::Method]
3657
3769
  #
@@ -3836,6 +3948,8 @@ module Google
3836
3948
  def initialize parent_rpcs = nil
3837
3949
  create_conversation_config = parent_rpcs.create_conversation if parent_rpcs.respond_to? :create_conversation
3838
3950
  @create_conversation = ::Gapic::Config::Method.new create_conversation_config
3951
+ upload_conversation_config = parent_rpcs.upload_conversation if parent_rpcs.respond_to? :upload_conversation
3952
+ @upload_conversation = ::Gapic::Config::Method.new upload_conversation_config
3839
3953
  update_conversation_config = parent_rpcs.update_conversation if parent_rpcs.respond_to? :update_conversation
3840
3954
  @update_conversation = ::Gapic::Config::Method.new update_conversation_config
3841
3955
  get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation
@@ -620,9 +620,9 @@ module Google
620
620
  # * (`String`) The path to a service account key file in JSON format
621
621
  # * (`Hash`) A service account key as a Hash
622
622
  # * (`Google::Auth::Credentials`) A googleauth credentials object
623
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
623
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
624
624
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
625
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
625
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
626
626
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
627
627
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
628
628
  # * (`nil`) indicating no credentials
@@ -64,6 +64,25 @@ module Google
64
64
  "projects/#{project}/locations/#{location}/conversations/#{conversation}"
65
65
  end
66
66
 
67
+ ##
68
+ # Create a fully-qualified ConversationProfile resource string.
69
+ #
70
+ # The resource will be in the following format:
71
+ #
72
+ # `projects/{project}/locations/{location}/conversationProfiles/{conversation_profile}`
73
+ #
74
+ # @param project [String]
75
+ # @param location [String]
76
+ # @param conversation_profile [String]
77
+ #
78
+ # @return [::String]
79
+ def conversation_profile_path project:, location:, conversation_profile:
80
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
81
+ raise ::ArgumentError, "location cannot contain /" if location.to_s.include? "/"
82
+
83
+ "projects/#{project}/locations/#{location}/conversationProfiles/#{conversation_profile}"
84
+ end
85
+
67
86
  ##
68
87
  # Create a fully-qualified Issue resource string.
69
88
  #
@@ -224,6 +224,83 @@ module Google
224
224
  raise ::Google::Cloud::Error.from_error(e)
225
225
  end
226
226
 
227
+ ##
228
+ # Create a longrunning conversation upload operation. This method differs
229
+ # from CreateConversation by allowing audio transcription and optional DLP
230
+ # redaction.
231
+ #
232
+ # @overload upload_conversation(request, options = nil)
233
+ # Pass arguments to `upload_conversation` via a request object, either of type
234
+ # {::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest} or an equivalent Hash.
235
+ #
236
+ # @param request [::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest, ::Hash]
237
+ # A request object representing the call parameters. Required. To specify no
238
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
239
+ # @param options [::Gapic::CallOptions, ::Hash]
240
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
241
+ #
242
+ # @overload upload_conversation(parent: nil, conversation: nil, conversation_id: nil, redaction_config: nil)
243
+ # Pass arguments to `upload_conversation` via keyword arguments. Note that at
244
+ # least one keyword argument is required. To specify no parameters, or to keep all
245
+ # the default parameter values, pass an empty Hash as a request object (see above).
246
+ #
247
+ # @param parent [::String]
248
+ # Required. The parent resource of the conversation.
249
+ # @param conversation [::Google::Cloud::ContactCenterInsights::V1::Conversation, ::Hash]
250
+ # Required. The conversation resource to create.
251
+ # @param conversation_id [::String]
252
+ # Optional. A unique ID for the new conversation. This ID will become the
253
+ # final component of the conversation's resource name. If no ID is specified,
254
+ # a server-generated ID will be used.
255
+ #
256
+ # This value should be 4-64 characters and must match the regular
257
+ # expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
258
+ # @param redaction_config [::Google::Cloud::ContactCenterInsights::V1::RedactionConfig, ::Hash]
259
+ # Optional. DLP settings for transcript redaction. Optional, will default to
260
+ # the config specified in Settings.
261
+ # @yield [result, operation] Access the result along with the TransportOperation object
262
+ # @yieldparam result [::Gapic::Operation]
263
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
264
+ #
265
+ # @return [::Gapic::Operation]
266
+ #
267
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
268
+ def upload_conversation request, options = nil
269
+ raise ::ArgumentError, "request must be provided" if request.nil?
270
+
271
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest
272
+
273
+ # Converts hash and nil to an options object
274
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
275
+
276
+ # Customize the options with defaults
277
+ call_metadata = @config.rpcs.upload_conversation.metadata.to_h
278
+
279
+ # Set x-goog-api-client and x-goog-user-project headers
280
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
281
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
282
+ gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
283
+ transports_version_send: [:rest]
284
+
285
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
286
+
287
+ options.apply_defaults timeout: @config.rpcs.upload_conversation.timeout,
288
+ metadata: call_metadata,
289
+ retry_policy: @config.rpcs.upload_conversation.retry_policy
290
+
291
+ options.apply_defaults timeout: @config.timeout,
292
+ metadata: @config.metadata,
293
+ retry_policy: @config.retry_policy
294
+
295
+ @contact_center_insights_stub.upload_conversation request, options do |result, operation|
296
+ result = ::Gapic::Operation.new result, @operations_client, options: options
297
+ yield result, operation if block_given?
298
+ return result
299
+ end
300
+ rescue ::Gapic::Rest::Error => e
301
+ raise ::Google::Cloud::Error.from_error(e)
302
+ end
303
+
227
304
  ##
228
305
  # Updates a conversation.
229
306
  #
@@ -2617,9 +2694,9 @@ module Google
2617
2694
  # * (`String`) The path to a service account key file in JSON format
2618
2695
  # * (`Hash`) A service account key as a Hash
2619
2696
  # * (`Google::Auth::Credentials`) A googleauth credentials object
2620
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
2697
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
2621
2698
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2622
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
2699
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2623
2700
  # * (`nil`) indicating no credentials
2624
2701
  # @return [::Object]
2625
2702
  # @!attribute [rw] scope
@@ -2708,6 +2785,11 @@ module Google
2708
2785
  #
2709
2786
  attr_reader :create_conversation
2710
2787
  ##
2788
+ # RPC-specific configuration for `upload_conversation`
2789
+ # @return [::Gapic::Config::Method]
2790
+ #
2791
+ attr_reader :upload_conversation
2792
+ ##
2711
2793
  # RPC-specific configuration for `update_conversation`
2712
2794
  # @return [::Gapic::Config::Method]
2713
2795
  #
@@ -2892,6 +2974,8 @@ module Google
2892
2974
  def initialize parent_rpcs = nil
2893
2975
  create_conversation_config = parent_rpcs.create_conversation if parent_rpcs.respond_to? :create_conversation
2894
2976
  @create_conversation = ::Gapic::Config::Method.new create_conversation_config
2977
+ upload_conversation_config = parent_rpcs.upload_conversation if parent_rpcs.respond_to? :upload_conversation
2978
+ @upload_conversation = ::Gapic::Config::Method.new upload_conversation_config
2895
2979
  update_conversation_config = parent_rpcs.update_conversation if parent_rpcs.respond_to? :update_conversation
2896
2980
  @update_conversation = ::Gapic::Config::Method.new update_conversation_config
2897
2981
  get_conversation_config = parent_rpcs.get_conversation if parent_rpcs.respond_to? :get_conversation
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -78,6 +78,44 @@ module Google
78
78
  result
79
79
  end
80
80
 
81
+ ##
82
+ # Baseline implementation for the upload_conversation REST call
83
+ #
84
+ # @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest]
85
+ # A request object representing the call parameters. Required.
86
+ # @param options [::Gapic::CallOptions]
87
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
88
+ #
89
+ # @yield [result, operation] Access the result along with the TransportOperation object
90
+ # @yieldparam result [::Google::Longrunning::Operation]
91
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
92
+ #
93
+ # @return [::Google::Longrunning::Operation]
94
+ # A result object deserialized from the server's reply
95
+ def upload_conversation request_pb, options = nil
96
+ raise ::ArgumentError, "request must be provided" if request_pb.nil?
97
+
98
+ verb, uri, query_string_params, body = ServiceStub.transcode_upload_conversation_request request_pb
99
+ query_string_params = if query_string_params.any?
100
+ query_string_params.to_h { |p| p.split("=", 2) }
101
+ else
102
+ {}
103
+ end
104
+
105
+ response = @client_stub.make_http_request(
106
+ verb,
107
+ uri: uri,
108
+ body: body || "",
109
+ params: query_string_params,
110
+ options: options
111
+ )
112
+ operation = ::Gapic::Rest::TransportOperation.new response
113
+ result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
114
+
115
+ yield result, operation if block_given?
116
+ result
117
+ end
118
+
81
119
  ##
82
120
  # Baseline implementation for the update_conversation REST call
83
121
  #
@@ -1468,6 +1506,28 @@ module Google
1468
1506
  transcoder.transcode request_pb
1469
1507
  end
1470
1508
 
1509
+ ##
1510
+ # @private
1511
+ #
1512
+ # GRPC transcoding helper method for the upload_conversation REST call
1513
+ #
1514
+ # @param request_pb [::Google::Cloud::ContactCenterInsights::V1::UploadConversationRequest]
1515
+ # A request object representing the call parameters. Required.
1516
+ # @return [Array(String, [String, nil], Hash{String => String})]
1517
+ # Uri, Body, Query string parameters
1518
+ def self.transcode_upload_conversation_request request_pb
1519
+ transcoder = Gapic::Rest::GrpcTranscoder.new
1520
+ .with_bindings(
1521
+ uri_method: :post,
1522
+ uri_template: "/v1/{parent}/conversations:upload",
1523
+ body: "*",
1524
+ matches: [
1525
+ ["parent", %r{^projects/[^/]+/locations/[^/]+/?$}, false]
1526
+ ]
1527
+ )
1528
+ transcoder.transcode request_pb
1529
+ end
1530
+
1471
1531
  ##
1472
1532
  # @private
1473
1533
  #
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ContactCenterInsights
23
23
  module V1
24
- VERSION = "0.12.0"
24
+ VERSION = "0.14.0"
25
25
  end
26
26
  end
27
27
  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.
@@ -24,6 +24,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
24
24
  optional :duration, :message, 10, "google.protobuf.Duration"
25
25
  optional :turn_count, :int32, 11
26
26
  optional :latest_analysis, :message, 12, "google.cloud.contactcenterinsights.v1.Analysis"
27
+ optional :latest_summary, :message, 20, "google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData"
27
28
  repeated :runtime_annotations, :message, 13, "google.cloud.contactcenterinsights.v1.RuntimeAnnotation"
28
29
  map :dialogflow_intents, :string, :message, 18, "google.cloud.contactcenterinsights.v1.DialogflowIntent"
29
30
  optional :obfuscated_user_id, :string, 21
@@ -283,12 +284,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
283
284
  optional :conversation_ttl, :message, 5, "google.protobuf.Duration"
284
285
  map :pubsub_notification_settings, :string, :string, 6
285
286
  optional :analysis_config, :message, 7, "google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig"
287
+ optional :redaction_config, :message, 10, "google.cloud.contactcenterinsights.v1.RedactionConfig"
286
288
  end
287
289
  add_message "google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig" do
288
290
  optional :runtime_integration_analysis_percentage, :double, 1
289
291
  optional :upload_conversation_analysis_percentage, :double, 6
290
292
  optional :annotator_selector, :message, 5, "google.cloud.contactcenterinsights.v1.AnnotatorSelector"
291
293
  end
294
+ add_message "google.cloud.contactcenterinsights.v1.RedactionConfig" do
295
+ optional :deidentify_template, :string, 1
296
+ optional :inspect_template, :string, 2
297
+ end
292
298
  add_message "google.cloud.contactcenterinsights.v1.RuntimeAnnotation" do
293
299
  optional :annotation_id, :string, 1
294
300
  optional :create_time, :message, 2, "google.protobuf.Timestamp"
@@ -301,6 +307,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
301
307
  optional :smart_reply, :message, 8, "google.cloud.contactcenterinsights.v1.SmartReplyData"
302
308
  optional :smart_compose_suggestion, :message, 9, "google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData"
303
309
  optional :dialogflow_interaction, :message, 10, "google.cloud.contactcenterinsights.v1.DialogflowInteractionData"
310
+ optional :conversation_summarization_suggestion, :message, 12, "google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData"
304
311
  end
305
312
  end
306
313
  add_message "google.cloud.contactcenterinsights.v1.AnswerFeedback" do
@@ -346,6 +353,14 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
346
353
  optional :dialogflow_intent_id, :string, 1
347
354
  optional :confidence, :float, 2
348
355
  end
356
+ add_message "google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData" do
357
+ optional :text, :string, 1
358
+ map :text_sections, :string, :string, 5
359
+ optional :confidence, :float, 2
360
+ map :metadata, :string, :string, 3
361
+ optional :answer_record, :string, 4
362
+ optional :conversation_model, :string, 6
363
+ end
349
364
  add_message "google.cloud.contactcenterinsights.v1.ConversationParticipant" do
350
365
  optional :dialogflow_participant, :string, 1
351
366
  optional :obfuscated_external_user_id, :string, 3
@@ -379,6 +394,18 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
379
394
  optional :run_intent_annotator, :bool, 7
380
395
  optional :run_issue_model_annotator, :bool, 8
381
396
  repeated :issue_models, :string, 10
397
+ optional :run_summarization_annotator, :bool, 9
398
+ optional :summarization_config, :message, 11, "google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig"
399
+ end
400
+ add_message "google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig" do
401
+ oneof :model_source do
402
+ optional :conversation_profile, :string, 1
403
+ optional :summarization_model, :enum, 2, "google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig.SummarizationModel"
404
+ end
405
+ end
406
+ add_enum "google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig.SummarizationModel" do
407
+ value :SUMMARIZATION_MODEL_UNSPECIFIED, 0
408
+ value :BASELINE_MODEL, 1
382
409
  end
383
410
  end
384
411
  end
@@ -433,6 +460,7 @@ module Google
433
460
  ExactMatchConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExactMatchConfig").msgclass
434
461
  Settings = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Settings").msgclass
435
462
  Settings::AnalysisConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig").msgclass
463
+ RedactionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.RedactionConfig").msgclass
436
464
  RuntimeAnnotation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.RuntimeAnnotation").msgclass
437
465
  AnswerFeedback = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnswerFeedback").msgclass
438
466
  AnswerFeedback::CorrectnessLevel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnswerFeedback.CorrectnessLevel").enummodule
@@ -441,10 +469,13 @@ module Google
441
469
  SmartReplyData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.SmartReplyData").msgclass
442
470
  SmartComposeSuggestionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.SmartComposeSuggestionData").msgclass
443
471
  DialogflowInteractionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DialogflowInteractionData").msgclass
472
+ ConversationSummarizationSuggestionData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationSummarizationSuggestionData").msgclass
444
473
  ConversationParticipant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationParticipant").msgclass
445
474
  ConversationParticipant::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationParticipant.Role").enummodule
446
475
  View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.View").msgclass
447
476
  AnnotatorSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnnotatorSelector").msgclass
477
+ AnnotatorSelector::SummarizationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig").msgclass
478
+ AnnotatorSelector::SummarizationConfig::SummarizationModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnnotatorSelector.SummarizationConfig.SummarizationModel").enummodule
448
479
  end
449
480
  end
450
481
  end
@@ -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.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -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
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
355
  STREET_VIEW = 4
356
+
357
+ # Shopping Org.
358
+ SHOPPING = 5
359
+
360
+ # Geo Org.
361
+ GEO = 6
362
+
363
+ # Generative AI - https://developers.generativeai.google
364
+ GENERATIVE_AI = 7
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?
@@ -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]
@@ -77,6 +77,9 @@ module Google
77
77
  # @!attribute [r] latest_analysis
78
78
  # @return [::Google::Cloud::ContactCenterInsights::V1::Analysis]
79
79
  # Output only. The conversation's latest analysis, if one exists.
80
+ # @!attribute [r] latest_summary
81
+ # @return [::Google::Cloud::ContactCenterInsights::V1::ConversationSummarizationSuggestionData]
82
+ # Output only. Latest summary of the conversation.
80
83
  # @!attribute [r] runtime_annotations
81
84
  # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::RuntimeAnnotation>]
82
85
  # Output only. The annotations that were generated during the customer and
@@ -886,7 +889,7 @@ module Google
886
889
  # Required. The type of this phrase match rule group.
887
890
  # @!attribute [rw] phrase_match_rules
888
891
  # @return [::Array<::Google::Cloud::ContactCenterInsights::V1::PhraseMatchRule>]
889
- # A list of phase match rules that are included in this group.
892
+ # A list of phrase match rules that are included in this group.
890
893
  class PhraseMatchRuleGroup
891
894
  include ::Google::Protobuf::MessageExts
892
895
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -983,6 +986,10 @@ module Google
983
986
  # @!attribute [rw] analysis_config
984
987
  # @return [::Google::Cloud::ContactCenterInsights::V1::Settings::AnalysisConfig]
985
988
  # Default analysis settings.
989
+ # @!attribute [rw] redaction_config
990
+ # @return [::Google::Cloud::ContactCenterInsights::V1::RedactionConfig]
991
+ # Default DLP redaction resources to be applied while ingesting
992
+ # conversations.
986
993
  class Settings
987
994
  include ::Google::Protobuf::MessageExts
988
995
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1015,6 +1022,22 @@ module Google
1015
1022
  end
1016
1023
  end
1017
1024
 
1025
+ # DLP resources used for redaction while ingesting conversations.
1026
+ # @!attribute [rw] deidentify_template
1027
+ # @return [::String]
1028
+ # The fully-qualified DLP deidentify template resource name.
1029
+ # Format:
1030
+ # `projects/{project}/deidentifyTemplates/{template}`
1031
+ # @!attribute [rw] inspect_template
1032
+ # @return [::String]
1033
+ # The fully-qualified DLP inspect template resource name.
1034
+ # Format:
1035
+ # `projects/{project}/inspectTemplates/{template}`
1036
+ class RedactionConfig
1037
+ include ::Google::Protobuf::MessageExts
1038
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1039
+ end
1040
+
1018
1041
  # An annotation that was generated during the customer and agent interaction.
1019
1042
  # @!attribute [rw] article_suggestion
1020
1043
  # @return [::Google::Cloud::ContactCenterInsights::V1::ArticleSuggestionData]
@@ -1031,6 +1054,9 @@ module Google
1031
1054
  # @!attribute [rw] dialogflow_interaction
1032
1055
  # @return [::Google::Cloud::ContactCenterInsights::V1::DialogflowInteractionData]
1033
1056
  # Dialogflow interaction data.
1057
+ # @!attribute [rw] conversation_summarization_suggestion
1058
+ # @return [::Google::Cloud::ContactCenterInsights::V1::ConversationSummarizationSuggestionData]
1059
+ # Conversation summarization suggestion data.
1034
1060
  # @!attribute [rw] annotation_id
1035
1061
  # @return [::String]
1036
1062
  # The unique identifier of the annotation.
@@ -1243,6 +1269,55 @@ module Google
1243
1269
  extend ::Google::Protobuf::MessageExts::ClassMethods
1244
1270
  end
1245
1271
 
1272
+ # Conversation summarization suggestion data.
1273
+ # @!attribute [rw] text
1274
+ # @return [::String]
1275
+ # The summarization content that is concatenated into one string.
1276
+ # @!attribute [rw] text_sections
1277
+ # @return [::Google::Protobuf::Map{::String => ::String}]
1278
+ # The summarization content that is divided into sections. The key is the
1279
+ # section's name and the value is the section's content. There is no
1280
+ # specific format for the key or value.
1281
+ # @!attribute [rw] confidence
1282
+ # @return [::Float]
1283
+ # The confidence score of the summarization.
1284
+ # @!attribute [rw] metadata
1285
+ # @return [::Google::Protobuf::Map{::String => ::String}]
1286
+ # A map that contains metadata about the summarization and the document
1287
+ # from which it originates.
1288
+ # @!attribute [rw] answer_record
1289
+ # @return [::String]
1290
+ # The name of the answer record.
1291
+ # Format:
1292
+ # projects/\\{project}/locations/\\{location}/answerRecords/\\{answer_record}
1293
+ # @!attribute [rw] conversation_model
1294
+ # @return [::String]
1295
+ # The name of the model that generates this summary.
1296
+ # Format:
1297
+ # projects/\\{project}/locations/\\{location}/conversationModels/\\{conversation_model}
1298
+ class ConversationSummarizationSuggestionData
1299
+ include ::Google::Protobuf::MessageExts
1300
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1301
+
1302
+ # @!attribute [rw] key
1303
+ # @return [::String]
1304
+ # @!attribute [rw] value
1305
+ # @return [::String]
1306
+ class TextSectionsEntry
1307
+ include ::Google::Protobuf::MessageExts
1308
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1309
+ end
1310
+
1311
+ # @!attribute [rw] key
1312
+ # @return [::String]
1313
+ # @!attribute [rw] value
1314
+ # @return [::String]
1315
+ class MetadataEntry
1316
+ include ::Google::Protobuf::MessageExts
1317
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1318
+ end
1319
+ end
1320
+
1246
1321
  # The call participant speaking for a given utterance.
1247
1322
  # @!attribute [rw] dialogflow_participant_name
1248
1323
  # @return [::String]
@@ -1345,9 +1420,38 @@ module Google
1345
1420
  # inference if the issue model is deployed and if run_issue_model_annotator
1346
1421
  # is set to true. If more than one issue model is provided, only the first
1347
1422
  # provided issue model will be used for inference.
1423
+ # @!attribute [rw] run_summarization_annotator
1424
+ # @return [::Boolean]
1425
+ # Whether to run the summarization annotator.
1426
+ # @!attribute [rw] summarization_config
1427
+ # @return [::Google::Cloud::ContactCenterInsights::V1::AnnotatorSelector::SummarizationConfig]
1428
+ # Configuration for the summarization annotator.
1348
1429
  class AnnotatorSelector
1349
1430
  include ::Google::Protobuf::MessageExts
1350
1431
  extend ::Google::Protobuf::MessageExts::ClassMethods
1432
+
1433
+ # Configuration for summarization.
1434
+ # @!attribute [rw] conversation_profile
1435
+ # @return [::String]
1436
+ # Resource name of the Dialogflow conversation profile.
1437
+ # Format:
1438
+ # projects/\\{project}/locations/\\{location}/conversationProfiles/\\{conversation_profile}
1439
+ # @!attribute [rw] summarization_model
1440
+ # @return [::Google::Cloud::ContactCenterInsights::V1::AnnotatorSelector::SummarizationConfig::SummarizationModel]
1441
+ # Default summarization model to be used.
1442
+ class SummarizationConfig
1443
+ include ::Google::Protobuf::MessageExts
1444
+ extend ::Google::Protobuf::MessageExts::ClassMethods
1445
+
1446
+ # Summarization model to use, if `conversation_profile` is not used.
1447
+ module SummarizationModel
1448
+ # Unspecified summarization model.
1449
+ SUMMARIZATION_MODEL_UNSPECIFIED = 0
1450
+
1451
+ # The Insights baseline model.
1452
+ BASELINE_MODEL = 1
1453
+ end
1454
+ end
1351
1455
  end
1352
1456
  end
1353
1457
  end
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.12.0
4
+ version: 0.14.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-08 00:00:00.000000000 Z
11
+ date: 2023-05-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common