google-cloud-contact_center_insights-v1 0.12.0 → 0.13.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: b2e8806467adb8026553fe6fe3460d50f52f63b42ff878d50ce4ff602b28aa72
4
+ data.tar.gz: a3342786addd45af791dc5f228fef5cab12ca73c62ac532521a413ea308d3c78
5
5
  SHA512:
6
- metadata.gz: af1b6bc9d886eb28c1bf6734f372484476c7988eabc2b29c9a723feac76083ab270478eb7d750930b4aec50464cca5ae7bbbf5f6900441ef3d7f761f47afed11
7
- data.tar.gz: dedb460cb305d339f2a57087b39a91afac1cf0e213c039598f11c11c6e8e56be7d9202a5cf96e27a1d98250a73b8da027b8e94fecd6e10f4544c5d30b92fa72f
6
+ metadata.gz: d34e9396aca68eb6199319d46b267104b7ab46aef4536884415ef1b7c1b16dc312d8a10c84739c3e17a3cf62c2a942bd6dde9e7fb7f0e12008d3b3599890cdee
7
+ data.tar.gz: 5da5ea195cf1765d85269485118dc6e1d9358c271d6d1be618d339664ebf817d4aa26849d16c43400a37aeb1c5fcf41b4451338c95c81c790b8b311a09201bd3
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
@@ -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.13.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.
@@ -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.12.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-08 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