google-cloud-contact_center_insights-v1 1.0.1 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -177,6 +177,8 @@ module Google
177
177
 
178
178
  ##
179
179
  # Creates a conversation.
180
+ # Note that this method does not support audio transcription or redaction.
181
+ # Use `conversations.upload` instead.
180
182
  #
181
183
  # @overload create_conversation(request, options = nil)
182
184
  # Pass arguments to `create_conversation` via a request object, either of type
@@ -264,8 +266,8 @@ module Google
264
266
  end
265
267
 
266
268
  ##
267
- # Create a longrunning conversation upload operation. This method differs
268
- # from CreateConversation by allowing audio transcription and optional DLP
269
+ # Create a long-running conversation upload operation. This method differs
270
+ # from `CreateConversation` by allowing audio transcription and optional DLP
269
271
  # redaction.
270
272
  #
271
273
  # @overload upload_conversation(request, options = nil)
@@ -388,7 +390,20 @@ module Google
388
390
  # @param conversation [::Google::Cloud::ContactCenterInsights::V1::Conversation, ::Hash]
389
391
  # Required. The new values for the conversation.
390
392
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
391
- # The list of fields to be updated.
393
+ # The list of fields to be updated. All possible fields can be updated by
394
+ # passing `*`, or a subset of the following updateable fields can be
395
+ # provided:
396
+ #
397
+ # * `agent_id`
398
+ # * `language_code`
399
+ # * `labels`
400
+ # * `metadata`
401
+ # * `quality_metadata`
402
+ # * `call_metadata`
403
+ # * `start_time`
404
+ # * `expire_time` or `ttl`
405
+ # * `data_source.gcs_source.audio_uri` or
406
+ # `data_source.dialogflow_source.audio_uri`
392
407
  # @yield [result, operation] Access the result along with the TransportOperation object
393
408
  # @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::Conversation]
394
409
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -542,7 +557,7 @@ module Google
542
557
  # @param options [::Gapic::CallOptions, ::Hash]
543
558
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
544
559
  #
545
- # @overload list_conversations(parent: nil, page_size: nil, page_token: nil, filter: nil, view: nil)
560
+ # @overload list_conversations(parent: nil, page_size: nil, page_token: nil, filter: nil, order_by: nil, view: nil)
546
561
  # Pass arguments to `list_conversations` via keyword arguments. Note that at
547
562
  # least one keyword argument is required. To specify no parameters, or to keep all
548
563
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -551,7 +566,7 @@ module Google
551
566
  # Required. The parent resource of the conversation.
552
567
  # @param page_size [::Integer]
553
568
  # The maximum number of conversations to return in the response. A valid page
554
- # size ranges from 0 to 1,000 inclusive. If the page size is zero or
569
+ # size ranges from 0 to 100,000 inclusive. If the page size is zero or
555
570
  # unspecified, a default page size of 100 will be chosen. Note that a call
556
571
  # might return fewer results than the requested page size.
557
572
  # @param page_token [::String]
@@ -561,6 +576,22 @@ module Google
561
576
  # @param filter [::String]
562
577
  # A filter to reduce results to a specific subset. Useful for querying
563
578
  # conversations with specific properties.
579
+ # @param order_by [::String]
580
+ # Optional. The attribute by which to order conversations in the response.
581
+ # If empty, conversations will be ordered by descending creation time.
582
+ # Supported values are one of the following:
583
+ #
584
+ # * create_time
585
+ # * customer_satisfaction_rating
586
+ # * duration
587
+ # * latest_analysis
588
+ # * start_time
589
+ # * turn_count
590
+ #
591
+ # The default sort order is ascending. To specify order, append `asc` or
592
+ # `desc` (`create_time desc`).
593
+ # For more details, see [Google AIPs
594
+ # Ordering](https://google.aip.dev/132#ordering).
564
595
  # @param view [::Google::Cloud::ContactCenterInsights::V1::ConversationView]
565
596
  # The level of details of the conversation. Default is `BASIC`.
566
597
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -1260,7 +1291,7 @@ module Google
1260
1291
  # @param options [::Gapic::CallOptions, ::Hash]
1261
1292
  # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
1262
1293
  #
1263
- # @overload ingest_conversations(gcs_source: nil, transcript_object_config: nil, parent: nil, conversation_config: nil, redaction_config: nil, speech_config: nil)
1294
+ # @overload ingest_conversations(gcs_source: nil, transcript_object_config: nil, parent: nil, conversation_config: nil, redaction_config: nil, speech_config: nil, sample_size: nil)
1264
1295
  # Pass arguments to `ingest_conversations` via keyword arguments. Note that at
1265
1296
  # least one keyword argument is required. To specify no parameters, or to keep all
1266
1297
  # the default parameter values, pass an empty Hash as a request object (see above).
@@ -1280,6 +1311,11 @@ module Google
1280
1311
  # @param speech_config [::Google::Cloud::ContactCenterInsights::V1::SpeechConfig, ::Hash]
1281
1312
  # Optional. Default Speech-to-Text configuration. Optional, will default to
1282
1313
  # the config specified in Settings.
1314
+ # @param sample_size [::Integer]
1315
+ # Optional. If set, this fields indicates the number of objects to ingest
1316
+ # from the Cloud Storage bucket. If empty, the entire bucket will be
1317
+ # ingested. Unless they are first deleted, conversations produced through
1318
+ # sampling won't be ingested by subsequent ingest requests.
1283
1319
  # @yield [result, operation] Access the result along with the TransportOperation object
1284
1320
  # @yieldparam result [::Gapic::Operation]
1285
1321
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2036,6 +2072,188 @@ module Google
2036
2072
  raise ::Google::Cloud::Error.from_error(e)
2037
2073
  end
2038
2074
 
2075
+ ##
2076
+ # Exports an issue model to the provided destination.
2077
+ #
2078
+ # @overload export_issue_model(request, options = nil)
2079
+ # Pass arguments to `export_issue_model` via a request object, either of type
2080
+ # {::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest} or an equivalent Hash.
2081
+ #
2082
+ # @param request [::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest, ::Hash]
2083
+ # A request object representing the call parameters. Required. To specify no
2084
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2085
+ # @param options [::Gapic::CallOptions, ::Hash]
2086
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2087
+ #
2088
+ # @overload export_issue_model(gcs_destination: nil, name: nil)
2089
+ # Pass arguments to `export_issue_model` via keyword arguments. Note that at
2090
+ # least one keyword argument is required. To specify no parameters, or to keep all
2091
+ # the default parameter values, pass an empty Hash as a request object (see above).
2092
+ #
2093
+ # @param gcs_destination [::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest::GcsDestination, ::Hash]
2094
+ # Google Cloud Storage URI to export the issue model to.
2095
+ # @param name [::String]
2096
+ # Required. The issue model to export.
2097
+ # @yield [result, operation] Access the result along with the TransportOperation object
2098
+ # @yieldparam result [::Gapic::Operation]
2099
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2100
+ #
2101
+ # @return [::Gapic::Operation]
2102
+ #
2103
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2104
+ #
2105
+ # @example Basic example
2106
+ # require "google/cloud/contact_center_insights/v1"
2107
+ #
2108
+ # # Create a client object. The client can be reused for multiple calls.
2109
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2110
+ #
2111
+ # # Create a request. To set request fields, pass in keyword arguments.
2112
+ # request = Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest.new
2113
+ #
2114
+ # # Call the export_issue_model method.
2115
+ # result = client.export_issue_model request
2116
+ #
2117
+ # # The returned object is of type Gapic::Operation. You can use it to
2118
+ # # check the status of an operation, cancel it, or wait for results.
2119
+ # # Here is how to wait for a response.
2120
+ # result.wait_until_done! timeout: 60
2121
+ # if result.response?
2122
+ # p result.response
2123
+ # else
2124
+ # puts "No response received."
2125
+ # end
2126
+ #
2127
+ def export_issue_model request, options = nil
2128
+ raise ::ArgumentError, "request must be provided" if request.nil?
2129
+
2130
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ExportIssueModelRequest
2131
+
2132
+ # Converts hash and nil to an options object
2133
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2134
+
2135
+ # Customize the options with defaults
2136
+ call_metadata = @config.rpcs.export_issue_model.metadata.to_h
2137
+
2138
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2139
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2140
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2141
+ gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2142
+ transports_version_send: [:rest]
2143
+
2144
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2145
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2146
+
2147
+ options.apply_defaults timeout: @config.rpcs.export_issue_model.timeout,
2148
+ metadata: call_metadata,
2149
+ retry_policy: @config.rpcs.export_issue_model.retry_policy
2150
+
2151
+ options.apply_defaults timeout: @config.timeout,
2152
+ metadata: @config.metadata,
2153
+ retry_policy: @config.retry_policy
2154
+
2155
+ @contact_center_insights_stub.export_issue_model request, options do |result, operation|
2156
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2157
+ yield result, operation if block_given?
2158
+ return result
2159
+ end
2160
+ rescue ::Gapic::Rest::Error => e
2161
+ raise ::Google::Cloud::Error.from_error(e)
2162
+ end
2163
+
2164
+ ##
2165
+ # Imports an issue model from a Cloud Storage bucket.
2166
+ #
2167
+ # @overload import_issue_model(request, options = nil)
2168
+ # Pass arguments to `import_issue_model` via a request object, either of type
2169
+ # {::Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest} or an equivalent Hash.
2170
+ #
2171
+ # @param request [::Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest, ::Hash]
2172
+ # A request object representing the call parameters. Required. To specify no
2173
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2174
+ # @param options [::Gapic::CallOptions, ::Hash]
2175
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
2176
+ #
2177
+ # @overload import_issue_model(gcs_source: nil, parent: nil, create_new_model: nil)
2178
+ # Pass arguments to `import_issue_model` via keyword arguments. Note that at
2179
+ # least one keyword argument is required. To specify no parameters, or to keep all
2180
+ # the default parameter values, pass an empty Hash as a request object (see above).
2181
+ #
2182
+ # @param gcs_source [::Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest::GcsSource, ::Hash]
2183
+ # Google Cloud Storage source message.
2184
+ # @param parent [::String]
2185
+ # Required. The parent resource of the issue model.
2186
+ # @param create_new_model [::Boolean]
2187
+ # Optional. If set to true, will create an issue model from the imported file
2188
+ # with randomly generated IDs for the issue model and corresponding issues.
2189
+ # Otherwise, replaces an existing model with the same ID as the file.
2190
+ # @yield [result, operation] Access the result along with the TransportOperation object
2191
+ # @yieldparam result [::Gapic::Operation]
2192
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
2193
+ #
2194
+ # @return [::Gapic::Operation]
2195
+ #
2196
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
2197
+ #
2198
+ # @example Basic example
2199
+ # require "google/cloud/contact_center_insights/v1"
2200
+ #
2201
+ # # Create a client object. The client can be reused for multiple calls.
2202
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
2203
+ #
2204
+ # # Create a request. To set request fields, pass in keyword arguments.
2205
+ # request = Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest.new
2206
+ #
2207
+ # # Call the import_issue_model method.
2208
+ # result = client.import_issue_model request
2209
+ #
2210
+ # # The returned object is of type Gapic::Operation. You can use it to
2211
+ # # check the status of an operation, cancel it, or wait for results.
2212
+ # # Here is how to wait for a response.
2213
+ # result.wait_until_done! timeout: 60
2214
+ # if result.response?
2215
+ # p result.response
2216
+ # else
2217
+ # puts "No response received."
2218
+ # end
2219
+ #
2220
+ def import_issue_model request, options = nil
2221
+ raise ::ArgumentError, "request must be provided" if request.nil?
2222
+
2223
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::ImportIssueModelRequest
2224
+
2225
+ # Converts hash and nil to an options object
2226
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2227
+
2228
+ # Customize the options with defaults
2229
+ call_metadata = @config.rpcs.import_issue_model.metadata.to_h
2230
+
2231
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2232
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2233
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2234
+ gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
2235
+ transports_version_send: [:rest]
2236
+
2237
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2238
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2239
+
2240
+ options.apply_defaults timeout: @config.rpcs.import_issue_model.timeout,
2241
+ metadata: call_metadata,
2242
+ retry_policy: @config.rpcs.import_issue_model.retry_policy
2243
+
2244
+ options.apply_defaults timeout: @config.timeout,
2245
+ metadata: @config.metadata,
2246
+ retry_policy: @config.retry_policy
2247
+
2248
+ @contact_center_insights_stub.import_issue_model request, options do |result, operation|
2249
+ result = ::Gapic::Operation.new result, @operations_client, options: options
2250
+ yield result, operation if block_given?
2251
+ return result
2252
+ end
2253
+ rescue ::Gapic::Rest::Error => e
2254
+ raise ::Google::Cloud::Error.from_error(e)
2255
+ end
2256
+
2039
2257
  ##
2040
2258
  # Gets an issue.
2041
2259
  #
@@ -3094,6 +3312,179 @@ module Google
3094
3312
  raise ::Google::Cloud::Error.from_error(e)
3095
3313
  end
3096
3314
 
3315
+ ##
3316
+ # Gets location-level encryption key specification.
3317
+ #
3318
+ # @overload get_encryption_spec(request, options = nil)
3319
+ # Pass arguments to `get_encryption_spec` via a request object, either of type
3320
+ # {::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest} or an equivalent Hash.
3321
+ #
3322
+ # @param request [::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest, ::Hash]
3323
+ # A request object representing the call parameters. Required. To specify no
3324
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3325
+ # @param options [::Gapic::CallOptions, ::Hash]
3326
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3327
+ #
3328
+ # @overload get_encryption_spec(name: nil)
3329
+ # Pass arguments to `get_encryption_spec` via keyword arguments. Note that at
3330
+ # least one keyword argument is required. To specify no parameters, or to keep all
3331
+ # the default parameter values, pass an empty Hash as a request object (see above).
3332
+ #
3333
+ # @param name [::String]
3334
+ # Required. The name of the encryption spec resource to get.
3335
+ # @yield [result, operation] Access the result along with the TransportOperation object
3336
+ # @yieldparam result [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec]
3337
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3338
+ #
3339
+ # @return [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec]
3340
+ #
3341
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3342
+ #
3343
+ # @example Basic example
3344
+ # require "google/cloud/contact_center_insights/v1"
3345
+ #
3346
+ # # Create a client object. The client can be reused for multiple calls.
3347
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
3348
+ #
3349
+ # # Create a request. To set request fields, pass in keyword arguments.
3350
+ # request = Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest.new
3351
+ #
3352
+ # # Call the get_encryption_spec method.
3353
+ # result = client.get_encryption_spec request
3354
+ #
3355
+ # # The returned object is of type Google::Cloud::ContactCenterInsights::V1::EncryptionSpec.
3356
+ # p result
3357
+ #
3358
+ def get_encryption_spec request, options = nil
3359
+ raise ::ArgumentError, "request must be provided" if request.nil?
3360
+
3361
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::GetEncryptionSpecRequest
3362
+
3363
+ # Converts hash and nil to an options object
3364
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3365
+
3366
+ # Customize the options with defaults
3367
+ call_metadata = @config.rpcs.get_encryption_spec.metadata.to_h
3368
+
3369
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3370
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3371
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3372
+ gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
3373
+ transports_version_send: [:rest]
3374
+
3375
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3376
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3377
+
3378
+ options.apply_defaults timeout: @config.rpcs.get_encryption_spec.timeout,
3379
+ metadata: call_metadata,
3380
+ retry_policy: @config.rpcs.get_encryption_spec.retry_policy
3381
+
3382
+ options.apply_defaults timeout: @config.timeout,
3383
+ metadata: @config.metadata,
3384
+ retry_policy: @config.retry_policy
3385
+
3386
+ @contact_center_insights_stub.get_encryption_spec request, options do |result, operation|
3387
+ yield result, operation if block_given?
3388
+ return result
3389
+ end
3390
+ rescue ::Gapic::Rest::Error => e
3391
+ raise ::Google::Cloud::Error.from_error(e)
3392
+ end
3393
+
3394
+ ##
3395
+ # Initializes a location-level encryption key specification. An error will
3396
+ # be thrown if the location has resources already created before the
3397
+ # initialization. Once the encryption specification is initialized at a
3398
+ # location, it is immutable and all newly created resources under the
3399
+ # location will be encrypted with the existing specification.
3400
+ #
3401
+ # @overload initialize_encryption_spec(request, options = nil)
3402
+ # Pass arguments to `initialize_encryption_spec` via a request object, either of type
3403
+ # {::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest} or an equivalent Hash.
3404
+ #
3405
+ # @param request [::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest, ::Hash]
3406
+ # A request object representing the call parameters. Required. To specify no
3407
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3408
+ # @param options [::Gapic::CallOptions, ::Hash]
3409
+ # Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
3410
+ #
3411
+ # @overload initialize_encryption_spec(encryption_spec: nil)
3412
+ # Pass arguments to `initialize_encryption_spec` via keyword arguments. Note that at
3413
+ # least one keyword argument is required. To specify no parameters, or to keep all
3414
+ # the default parameter values, pass an empty Hash as a request object (see above).
3415
+ #
3416
+ # @param encryption_spec [::Google::Cloud::ContactCenterInsights::V1::EncryptionSpec, ::Hash]
3417
+ # Required. The encryption spec used for CMEK encryption. It is required that
3418
+ # the kms key is in the same region as the endpoint. The same key will be
3419
+ # used for all provisioned resources, if encryption is available. If the
3420
+ # kms_key_name is left empty, no encryption will be enforced.
3421
+ # @yield [result, operation] Access the result along with the TransportOperation object
3422
+ # @yieldparam result [::Gapic::Operation]
3423
+ # @yieldparam operation [::Gapic::Rest::TransportOperation]
3424
+ #
3425
+ # @return [::Gapic::Operation]
3426
+ #
3427
+ # @raise [::Google::Cloud::Error] if the REST call is aborted.
3428
+ #
3429
+ # @example Basic example
3430
+ # require "google/cloud/contact_center_insights/v1"
3431
+ #
3432
+ # # Create a client object. The client can be reused for multiple calls.
3433
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Rest::Client.new
3434
+ #
3435
+ # # Create a request. To set request fields, pass in keyword arguments.
3436
+ # request = Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest.new
3437
+ #
3438
+ # # Call the initialize_encryption_spec method.
3439
+ # result = client.initialize_encryption_spec request
3440
+ #
3441
+ # # The returned object is of type Gapic::Operation. You can use it to
3442
+ # # check the status of an operation, cancel it, or wait for results.
3443
+ # # Here is how to wait for a response.
3444
+ # result.wait_until_done! timeout: 60
3445
+ # if result.response?
3446
+ # p result.response
3447
+ # else
3448
+ # puts "No response received."
3449
+ # end
3450
+ #
3451
+ def initialize_encryption_spec request, options = nil
3452
+ raise ::ArgumentError, "request must be provided" if request.nil?
3453
+
3454
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::InitializeEncryptionSpecRequest
3455
+
3456
+ # Converts hash and nil to an options object
3457
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3458
+
3459
+ # Customize the options with defaults
3460
+ call_metadata = @config.rpcs.initialize_encryption_spec.metadata.to_h
3461
+
3462
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3463
+ call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3464
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3465
+ gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION,
3466
+ transports_version_send: [:rest]
3467
+
3468
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3469
+ call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3470
+
3471
+ options.apply_defaults timeout: @config.rpcs.initialize_encryption_spec.timeout,
3472
+ metadata: call_metadata,
3473
+ retry_policy: @config.rpcs.initialize_encryption_spec.retry_policy
3474
+
3475
+ options.apply_defaults timeout: @config.timeout,
3476
+ metadata: @config.metadata,
3477
+ retry_policy: @config.retry_policy
3478
+
3479
+ @contact_center_insights_stub.initialize_encryption_spec request, options do |result, operation|
3480
+ result = ::Gapic::Operation.new result, @operations_client, options: options
3481
+ yield result, operation if block_given?
3482
+ return result
3483
+ end
3484
+ rescue ::Gapic::Rest::Error => e
3485
+ raise ::Google::Cloud::Error.from_error(e)
3486
+ end
3487
+
3097
3488
  ##
3098
3489
  # Creates a view.
3099
3490
  #
@@ -3749,6 +4140,16 @@ module Google
3749
4140
  #
3750
4141
  attr_reader :undeploy_issue_model
3751
4142
  ##
4143
+ # RPC-specific configuration for `export_issue_model`
4144
+ # @return [::Gapic::Config::Method]
4145
+ #
4146
+ attr_reader :export_issue_model
4147
+ ##
4148
+ # RPC-specific configuration for `import_issue_model`
4149
+ # @return [::Gapic::Config::Method]
4150
+ #
4151
+ attr_reader :import_issue_model
4152
+ ##
3752
4153
  # RPC-specific configuration for `get_issue`
3753
4154
  # @return [::Gapic::Config::Method]
3754
4155
  #
@@ -3814,6 +4215,16 @@ module Google
3814
4215
  #
3815
4216
  attr_reader :update_settings
3816
4217
  ##
4218
+ # RPC-specific configuration for `get_encryption_spec`
4219
+ # @return [::Gapic::Config::Method]
4220
+ #
4221
+ attr_reader :get_encryption_spec
4222
+ ##
4223
+ # RPC-specific configuration for `initialize_encryption_spec`
4224
+ # @return [::Gapic::Config::Method]
4225
+ #
4226
+ attr_reader :initialize_encryption_spec
4227
+ ##
3817
4228
  # RPC-specific configuration for `create_view`
3818
4229
  # @return [::Gapic::Config::Method]
3819
4230
  #
@@ -3883,6 +4294,10 @@ module Google
3883
4294
  @deploy_issue_model = ::Gapic::Config::Method.new deploy_issue_model_config
3884
4295
  undeploy_issue_model_config = parent_rpcs.undeploy_issue_model if parent_rpcs.respond_to? :undeploy_issue_model
3885
4296
  @undeploy_issue_model = ::Gapic::Config::Method.new undeploy_issue_model_config
4297
+ export_issue_model_config = parent_rpcs.export_issue_model if parent_rpcs.respond_to? :export_issue_model
4298
+ @export_issue_model = ::Gapic::Config::Method.new export_issue_model_config
4299
+ import_issue_model_config = parent_rpcs.import_issue_model if parent_rpcs.respond_to? :import_issue_model
4300
+ @import_issue_model = ::Gapic::Config::Method.new import_issue_model_config
3886
4301
  get_issue_config = parent_rpcs.get_issue if parent_rpcs.respond_to? :get_issue
3887
4302
  @get_issue = ::Gapic::Config::Method.new get_issue_config
3888
4303
  list_issues_config = parent_rpcs.list_issues if parent_rpcs.respond_to? :list_issues
@@ -3909,6 +4324,10 @@ module Google
3909
4324
  @get_settings = ::Gapic::Config::Method.new get_settings_config
3910
4325
  update_settings_config = parent_rpcs.update_settings if parent_rpcs.respond_to? :update_settings
3911
4326
  @update_settings = ::Gapic::Config::Method.new update_settings_config
4327
+ get_encryption_spec_config = parent_rpcs.get_encryption_spec if parent_rpcs.respond_to? :get_encryption_spec
4328
+ @get_encryption_spec = ::Gapic::Config::Method.new get_encryption_spec_config
4329
+ initialize_encryption_spec_config = parent_rpcs.initialize_encryption_spec if parent_rpcs.respond_to? :initialize_encryption_spec
4330
+ @initialize_encryption_spec = ::Gapic::Config::Method.new initialize_encryption_spec_config
3912
4331
  create_view_config = parent_rpcs.create_view if parent_rpcs.respond_to? :create_view
3913
4332
  @create_view = ::Gapic::Config::Method.new create_view_config
3914
4333
  get_view_config = parent_rpcs.get_view if parent_rpcs.respond_to? :get_view