google-cloud-contact_center_insights-v1 0.8.2 → 0.10.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: 5248734a9c0d15b337f362a7266d6fcf2b2706b1ae9305eb221641830e81595d
4
- data.tar.gz: d9611f26272e7f5cee9d67f938dff777bb54dc566d7311552b771957fb32b291
3
+ metadata.gz: 89c53fc69a390e0d29064d866754deb7fc1b489f24f4f4f320dd81e9c40efa6c
4
+ data.tar.gz: ae3b33f1523d706966edbf3a1161c0790558547dedf6b565049afbb4e3bd7717
5
5
  SHA512:
6
- metadata.gz: befd59f2e67739949ee652f432ef9f89ec5b613e87a8aa79d4371b6281a968965c8b66007951d977e54b7cefd742d16c7e7a804b35a1b1baf49766a011965f2a
7
- data.tar.gz: 026fd9877da9e1ef137484b8509d2a2bd00140e8d1267ecfb0c27fe4c3b592e8fae5856d51ddc74ad69e0c73f21cb0bce94a4c27ffc847a0c849e577adaf6a0e
6
+ metadata.gz: 04cf72069fe8f4cf0e96468162c7ecc692cdad3d3eefd14118a4b29c64a28526f8cd4f46a066071c72067b62f3a737663851e10d0bf1bfd30a50d419a44efba9
7
+ data.tar.gz: 6045b158ba7a9ef6fcae8cdccfa206af40c51eb5e4f1bb23172da1fc070aef128c4bc82fc7e053a0ddabfb0584842b2949e5b896f1c6641386fbe2c3deb211ad
data/AUTHENTICATION.md CHANGED
@@ -112,7 +112,7 @@ credentials are discovered.
112
112
  To configure your system for this, simply:
113
113
 
114
114
  1. [Download and install the Cloud SDK](https://cloud.google.com/sdk)
115
- 2. Authenticate using OAuth 2.0 `$ gcloud auth login`
115
+ 2. Authenticate using OAuth 2.0 `$ gcloud auth application-default login`
116
116
  3. Write code as if already authenticated.
117
117
 
118
118
  **NOTE:** This is _not_ recommended for running in production. The Cloud SDK
data/README.md CHANGED
@@ -46,7 +46,7 @@ for general usage information.
46
46
  ## Enabling Logging
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
- The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/stdlib/libdoc/logger/rdoc/Logger.html) as shown below,
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
50
  or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/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.
@@ -995,6 +995,207 @@ module Google
995
995
  raise ::Google::Cloud::Error.from_error(e)
996
996
  end
997
997
 
998
+ ##
999
+ # Analyzes multiple conversations in a single request.
1000
+ #
1001
+ # @overload bulk_analyze_conversations(request, options = nil)
1002
+ # Pass arguments to `bulk_analyze_conversations` via a request object, either of type
1003
+ # {::Google::Cloud::ContactCenterInsights::V1::BulkAnalyzeConversationsRequest} or an equivalent Hash.
1004
+ #
1005
+ # @param request [::Google::Cloud::ContactCenterInsights::V1::BulkAnalyzeConversationsRequest, ::Hash]
1006
+ # A request object representing the call parameters. Required. To specify no
1007
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1008
+ # @param options [::Gapic::CallOptions, ::Hash]
1009
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1010
+ #
1011
+ # @overload bulk_analyze_conversations(parent: nil, filter: nil, analysis_percentage: nil, annotator_selector: nil)
1012
+ # Pass arguments to `bulk_analyze_conversations` via keyword arguments. Note that at
1013
+ # least one keyword argument is required. To specify no parameters, or to keep all
1014
+ # the default parameter values, pass an empty Hash as a request object (see above).
1015
+ #
1016
+ # @param parent [::String]
1017
+ # Required. The parent resource to create analyses in.
1018
+ # @param filter [::String]
1019
+ # Required. Filter used to select the subset of conversations to analyze.
1020
+ # @param analysis_percentage [::Float]
1021
+ # Required. Percentage of selected conversation to analyze, between
1022
+ # [0, 100].
1023
+ # @param annotator_selector [::Google::Cloud::ContactCenterInsights::V1::AnnotatorSelector, ::Hash]
1024
+ # To select the annotators to run and the phrase matchers to use
1025
+ # (if any). If not specified, all annotators will be run.
1026
+ #
1027
+ # @yield [response, operation] Access the result along with the RPC operation
1028
+ # @yieldparam response [::Gapic::Operation]
1029
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1030
+ #
1031
+ # @return [::Gapic::Operation]
1032
+ #
1033
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1034
+ #
1035
+ # @example Basic example
1036
+ # require "google/cloud/contact_center_insights/v1"
1037
+ #
1038
+ # # Create a client object. The client can be reused for multiple calls.
1039
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
1040
+ #
1041
+ # # Create a request. To set request fields, pass in keyword arguments.
1042
+ # request = Google::Cloud::ContactCenterInsights::V1::BulkAnalyzeConversationsRequest.new
1043
+ #
1044
+ # # Call the bulk_analyze_conversations method.
1045
+ # result = client.bulk_analyze_conversations request
1046
+ #
1047
+ # # The returned object is of type Gapic::Operation. You can use this
1048
+ # # object to check the status of an operation, cancel it, or wait
1049
+ # # for results. Here is how to block until completion:
1050
+ # result.wait_until_done! timeout: 60
1051
+ # if result.response?
1052
+ # p result.response
1053
+ # else
1054
+ # puts "Error!"
1055
+ # end
1056
+ #
1057
+ def bulk_analyze_conversations request, options = nil
1058
+ raise ::ArgumentError, "request must be provided" if request.nil?
1059
+
1060
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::BulkAnalyzeConversationsRequest
1061
+
1062
+ # Converts hash and nil to an options object
1063
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1064
+
1065
+ # Customize the options with defaults
1066
+ metadata = @config.rpcs.bulk_analyze_conversations.metadata.to_h
1067
+
1068
+ # Set x-goog-api-client and x-goog-user-project headers
1069
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1070
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1071
+ gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1072
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1073
+
1074
+ header_params = {}
1075
+ if request.parent
1076
+ header_params["parent"] = request.parent
1077
+ end
1078
+
1079
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1080
+ metadata[:"x-goog-request-params"] ||= request_params_header
1081
+
1082
+ options.apply_defaults timeout: @config.rpcs.bulk_analyze_conversations.timeout,
1083
+ metadata: metadata,
1084
+ retry_policy: @config.rpcs.bulk_analyze_conversations.retry_policy
1085
+
1086
+ options.apply_defaults timeout: @config.timeout,
1087
+ metadata: @config.metadata,
1088
+ retry_policy: @config.retry_policy
1089
+
1090
+ @contact_center_insights_stub.call_rpc :bulk_analyze_conversations, request, options: options do |response, operation|
1091
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1092
+ yield response, operation if block_given?
1093
+ return response
1094
+ end
1095
+ rescue ::GRPC::BadStatus => e
1096
+ raise ::Google::Cloud::Error.from_error(e)
1097
+ end
1098
+
1099
+ ##
1100
+ # Imports conversations and processes them according to the user's
1101
+ # configuration.
1102
+ #
1103
+ # @overload ingest_conversations(request, options = nil)
1104
+ # Pass arguments to `ingest_conversations` via a request object, either of type
1105
+ # {::Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest} or an equivalent Hash.
1106
+ #
1107
+ # @param request [::Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest, ::Hash]
1108
+ # A request object representing the call parameters. Required. To specify no
1109
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
1110
+ # @param options [::Gapic::CallOptions, ::Hash]
1111
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
1112
+ #
1113
+ # @overload ingest_conversations(gcs_source: nil, transcript_object_config: nil, parent: nil, conversation_config: nil)
1114
+ # Pass arguments to `ingest_conversations` via keyword arguments. Note that at
1115
+ # least one keyword argument is required. To specify no parameters, or to keep all
1116
+ # the default parameter values, pass an empty Hash as a request object (see above).
1117
+ #
1118
+ # @param gcs_source [::Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest::GcsSource, ::Hash]
1119
+ # A cloud storage bucket source.
1120
+ # @param transcript_object_config [::Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest::TranscriptObjectConfig, ::Hash]
1121
+ # Configuration for when `source` contains conversation transcripts.
1122
+ # @param parent [::String]
1123
+ # Required. The parent resource for new conversations.
1124
+ # @param conversation_config [::Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest::ConversationConfig, ::Hash]
1125
+ # Configuration that applies to all conversations.
1126
+ #
1127
+ # @yield [response, operation] Access the result along with the RPC operation
1128
+ # @yieldparam response [::Gapic::Operation]
1129
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
1130
+ #
1131
+ # @return [::Gapic::Operation]
1132
+ #
1133
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
1134
+ #
1135
+ # @example Basic example
1136
+ # require "google/cloud/contact_center_insights/v1"
1137
+ #
1138
+ # # Create a client object. The client can be reused for multiple calls.
1139
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
1140
+ #
1141
+ # # Create a request. To set request fields, pass in keyword arguments.
1142
+ # request = Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest.new
1143
+ #
1144
+ # # Call the ingest_conversations method.
1145
+ # result = client.ingest_conversations request
1146
+ #
1147
+ # # The returned object is of type Gapic::Operation. You can use this
1148
+ # # object to check the status of an operation, cancel it, or wait
1149
+ # # for results. Here is how to block until completion:
1150
+ # result.wait_until_done! timeout: 60
1151
+ # if result.response?
1152
+ # p result.response
1153
+ # else
1154
+ # puts "Error!"
1155
+ # end
1156
+ #
1157
+ def ingest_conversations request, options = nil
1158
+ raise ::ArgumentError, "request must be provided" if request.nil?
1159
+
1160
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest
1161
+
1162
+ # Converts hash and nil to an options object
1163
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
1164
+
1165
+ # Customize the options with defaults
1166
+ metadata = @config.rpcs.ingest_conversations.metadata.to_h
1167
+
1168
+ # Set x-goog-api-client and x-goog-user-project headers
1169
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1170
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
1171
+ gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
1172
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1173
+
1174
+ header_params = {}
1175
+ if request.parent
1176
+ header_params["parent"] = request.parent
1177
+ end
1178
+
1179
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
1180
+ metadata[:"x-goog-request-params"] ||= request_params_header
1181
+
1182
+ options.apply_defaults timeout: @config.rpcs.ingest_conversations.timeout,
1183
+ metadata: metadata,
1184
+ retry_policy: @config.rpcs.ingest_conversations.retry_policy
1185
+
1186
+ options.apply_defaults timeout: @config.timeout,
1187
+ metadata: @config.metadata,
1188
+ retry_policy: @config.retry_policy
1189
+
1190
+ @contact_center_insights_stub.call_rpc :ingest_conversations, request, options: options do |response, operation|
1191
+ response = ::Gapic::Operation.new response, @operations_client, options: options
1192
+ yield response, operation if block_given?
1193
+ return response
1194
+ end
1195
+ rescue ::GRPC::BadStatus => e
1196
+ raise ::Google::Cloud::Error.from_error(e)
1197
+ end
1198
+
998
1199
  ##
999
1200
  # Export insights data to a destination defined in the request body.
1000
1201
  #
@@ -1989,6 +2190,91 @@ module Google
1989
2190
  raise ::Google::Cloud::Error.from_error(e)
1990
2191
  end
1991
2192
 
2193
+ ##
2194
+ # Deletes an issue.
2195
+ #
2196
+ # @overload delete_issue(request, options = nil)
2197
+ # Pass arguments to `delete_issue` via a request object, either of type
2198
+ # {::Google::Cloud::ContactCenterInsights::V1::DeleteIssueRequest} or an equivalent Hash.
2199
+ #
2200
+ # @param request [::Google::Cloud::ContactCenterInsights::V1::DeleteIssueRequest, ::Hash]
2201
+ # A request object representing the call parameters. Required. To specify no
2202
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
2203
+ # @param options [::Gapic::CallOptions, ::Hash]
2204
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
2205
+ #
2206
+ # @overload delete_issue(name: nil)
2207
+ # Pass arguments to `delete_issue` via keyword arguments. Note that at
2208
+ # least one keyword argument is required. To specify no parameters, or to keep all
2209
+ # the default parameter values, pass an empty Hash as a request object (see above).
2210
+ #
2211
+ # @param name [::String]
2212
+ # Required. The name of the issue to delete.
2213
+ #
2214
+ # @yield [response, operation] Access the result along with the RPC operation
2215
+ # @yieldparam response [::Google::Protobuf::Empty]
2216
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
2217
+ #
2218
+ # @return [::Google::Protobuf::Empty]
2219
+ #
2220
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
2221
+ #
2222
+ # @example Basic example
2223
+ # require "google/cloud/contact_center_insights/v1"
2224
+ #
2225
+ # # Create a client object. The client can be reused for multiple calls.
2226
+ # client = Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
2227
+ #
2228
+ # # Create a request. To set request fields, pass in keyword arguments.
2229
+ # request = Google::Cloud::ContactCenterInsights::V1::DeleteIssueRequest.new
2230
+ #
2231
+ # # Call the delete_issue method.
2232
+ # result = client.delete_issue request
2233
+ #
2234
+ # # The returned object is of type Google::Protobuf::Empty.
2235
+ # p result
2236
+ #
2237
+ def delete_issue request, options = nil
2238
+ raise ::ArgumentError, "request must be provided" if request.nil?
2239
+
2240
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::ContactCenterInsights::V1::DeleteIssueRequest
2241
+
2242
+ # Converts hash and nil to an options object
2243
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
2244
+
2245
+ # Customize the options with defaults
2246
+ metadata = @config.rpcs.delete_issue.metadata.to_h
2247
+
2248
+ # Set x-goog-api-client and x-goog-user-project headers
2249
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2250
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
2251
+ gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
2252
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2253
+
2254
+ header_params = {}
2255
+ if request.name
2256
+ header_params["name"] = request.name
2257
+ end
2258
+
2259
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
2260
+ metadata[:"x-goog-request-params"] ||= request_params_header
2261
+
2262
+ options.apply_defaults timeout: @config.rpcs.delete_issue.timeout,
2263
+ metadata: metadata,
2264
+ retry_policy: @config.rpcs.delete_issue.retry_policy
2265
+
2266
+ options.apply_defaults timeout: @config.timeout,
2267
+ metadata: @config.metadata,
2268
+ retry_policy: @config.retry_policy
2269
+
2270
+ @contact_center_insights_stub.call_rpc :delete_issue, request, options: options do |response, operation|
2271
+ yield response, operation if block_given?
2272
+ return response
2273
+ end
2274
+ rescue ::GRPC::BadStatus => e
2275
+ raise ::Google::Cloud::Error.from_error(e)
2276
+ end
2277
+
1992
2278
  ##
1993
2279
  # Gets an issue model's statistics.
1994
2280
  #
@@ -2093,10 +2379,10 @@ module Google
2093
2379
  # the default parameter values, pass an empty Hash as a request object (see above).
2094
2380
  #
2095
2381
  # @param parent [::String]
2096
- # Required. The parent resource of the phrase matcher. Required. The location to create
2097
- # a phrase matcher for.
2098
- # Format: `projects/<Project ID>/locations/<Location ID>` or
2099
- # `projects/<Project Number>/locations/<Location ID>`
2382
+ # Required. The parent resource of the phrase matcher. Required. The location
2383
+ # to create a phrase matcher for. Format: `projects/<Project
2384
+ # ID>/locations/<Location ID>` or `projects/<Project
2385
+ # Number>/locations/<Location ID>`
2100
2386
  # @param phrase_matcher [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher, ::Hash]
2101
2387
  # Required. The phrase matcher resource to create.
2102
2388
  #
@@ -3414,6 +3700,16 @@ module Google
3414
3700
  #
3415
3701
  attr_reader :delete_analysis
3416
3702
  ##
3703
+ # RPC-specific configuration for `bulk_analyze_conversations`
3704
+ # @return [::Gapic::Config::Method]
3705
+ #
3706
+ attr_reader :bulk_analyze_conversations
3707
+ ##
3708
+ # RPC-specific configuration for `ingest_conversations`
3709
+ # @return [::Gapic::Config::Method]
3710
+ #
3711
+ attr_reader :ingest_conversations
3712
+ ##
3417
3713
  # RPC-specific configuration for `export_insights_data`
3418
3714
  # @return [::Gapic::Config::Method]
3419
3715
  #
@@ -3469,6 +3765,11 @@ module Google
3469
3765
  #
3470
3766
  attr_reader :update_issue
3471
3767
  ##
3768
+ # RPC-specific configuration for `delete_issue`
3769
+ # @return [::Gapic::Config::Method]
3770
+ #
3771
+ attr_reader :delete_issue
3772
+ ##
3472
3773
  # RPC-specific configuration for `calculate_issue_model_stats`
3473
3774
  # @return [::Gapic::Config::Method]
3474
3775
  #
@@ -3559,6 +3860,10 @@ module Google
3559
3860
  @list_analyses = ::Gapic::Config::Method.new list_analyses_config
3560
3861
  delete_analysis_config = parent_rpcs.delete_analysis if parent_rpcs.respond_to? :delete_analysis
3561
3862
  @delete_analysis = ::Gapic::Config::Method.new delete_analysis_config
3863
+ bulk_analyze_conversations_config = parent_rpcs.bulk_analyze_conversations if parent_rpcs.respond_to? :bulk_analyze_conversations
3864
+ @bulk_analyze_conversations = ::Gapic::Config::Method.new bulk_analyze_conversations_config
3865
+ ingest_conversations_config = parent_rpcs.ingest_conversations if parent_rpcs.respond_to? :ingest_conversations
3866
+ @ingest_conversations = ::Gapic::Config::Method.new ingest_conversations_config
3562
3867
  export_insights_data_config = parent_rpcs.export_insights_data if parent_rpcs.respond_to? :export_insights_data
3563
3868
  @export_insights_data = ::Gapic::Config::Method.new export_insights_data_config
3564
3869
  create_issue_model_config = parent_rpcs.create_issue_model if parent_rpcs.respond_to? :create_issue_model
@@ -3581,6 +3886,8 @@ module Google
3581
3886
  @list_issues = ::Gapic::Config::Method.new list_issues_config
3582
3887
  update_issue_config = parent_rpcs.update_issue if parent_rpcs.respond_to? :update_issue
3583
3888
  @update_issue = ::Gapic::Config::Method.new update_issue_config
3889
+ delete_issue_config = parent_rpcs.delete_issue if parent_rpcs.respond_to? :delete_issue
3890
+ @delete_issue = ::Gapic::Config::Method.new delete_issue_config
3584
3891
  calculate_issue_model_stats_config = parent_rpcs.calculate_issue_model_stats if parent_rpcs.respond_to? :calculate_issue_model_stats
3585
3892
  @calculate_issue_model_stats = ::Gapic::Config::Method.new calculate_issue_model_stats_config
3586
3893
  create_phrase_matcher_config = parent_rpcs.create_phrase_matcher if parent_rpcs.respond_to? :create_phrase_matcher
@@ -34,7 +34,7 @@ module Google
34
34
  ##
35
35
  # An API that lets users analyze and explore their business conversation data.
36
36
  #
37
- # To load this service and instantiate a client:
37
+ # @example Load this service and instantiate a gRPC client
38
38
  #
39
39
  # require "google/cloud/contact_center_insights/v1/contact_center_insights"
40
40
  # client = ::Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ContactCenterInsights
23
23
  module V1
24
- VERSION = "0.8.2"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -23,9 +23,9 @@ module Google
23
23
  module Cloud
24
24
  module ContactCenterInsights
25
25
  ##
26
- # To load this package, including all its services, and instantiate a client:
26
+ # API client module.
27
27
  #
28
- # @example
28
+ # @example Load this package, including all its services, and instantiate a gRPC client
29
29
  #
30
30
  # require "google/cloud/contact_center_insights/v1"
31
31
  # client = ::Google::Cloud::ContactCenterInsights::V1::ContactCenterInsights::Client.new
@@ -43,6 +43,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
43
43
  optional :create_time, :message, 1, "google.protobuf.Timestamp"
44
44
  optional :end_time, :message, 2, "google.protobuf.Timestamp"
45
45
  optional :conversation, :string, 3
46
+ optional :annotator_selector, :message, 4, "google.cloud.contactcenterinsights.v1.AnnotatorSelector"
46
47
  end
47
48
  add_message "google.cloud.contactcenterinsights.v1.CreateConversationRequest" do
48
49
  optional :parent, :string, 1
@@ -72,6 +73,40 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
72
73
  optional :name, :string, 1
73
74
  optional :force, :bool, 2
74
75
  end
76
+ add_message "google.cloud.contactcenterinsights.v1.IngestConversationsRequest" do
77
+ optional :parent, :string, 1
78
+ optional :conversation_config, :message, 4, "google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig"
79
+ oneof :source do
80
+ optional :gcs_source, :message, 2, "google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource"
81
+ end
82
+ oneof :object_config do
83
+ optional :transcript_object_config, :message, 3, "google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig"
84
+ end
85
+ end
86
+ add_message "google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource" do
87
+ optional :bucket_uri, :string, 1
88
+ end
89
+ add_message "google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig" do
90
+ optional :medium, :enum, 1, "google.cloud.contactcenterinsights.v1.Conversation.Medium"
91
+ end
92
+ add_message "google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig" do
93
+ optional :agent_id, :string, 1
94
+ end
95
+ add_message "google.cloud.contactcenterinsights.v1.IngestConversationsMetadata" do
96
+ optional :create_time, :message, 1, "google.protobuf.Timestamp"
97
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
98
+ optional :request, :message, 3, "google.cloud.contactcenterinsights.v1.IngestConversationsRequest"
99
+ repeated :partial_errors, :message, 4, "google.rpc.Status"
100
+ optional :ingest_conversations_stats, :message, 5, "google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats"
101
+ end
102
+ add_message "google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats" do
103
+ optional :processed_object_count, :int32, 1
104
+ optional :duplicates_skipped_count, :int32, 2
105
+ optional :successful_ingest_count, :int32, 3
106
+ optional :failed_ingest_count, :int32, 4
107
+ end
108
+ add_message "google.cloud.contactcenterinsights.v1.IngestConversationsResponse" do
109
+ end
75
110
  add_message "google.cloud.contactcenterinsights.v1.CreateAnalysisRequest" do
76
111
  optional :parent, :string, 1
77
112
  optional :analysis, :message, 2, "google.cloud.contactcenterinsights.v1.Analysis"
@@ -92,6 +127,24 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
92
127
  add_message "google.cloud.contactcenterinsights.v1.DeleteAnalysisRequest" do
93
128
  optional :name, :string, 1
94
129
  end
130
+ add_message "google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest" do
131
+ optional :parent, :string, 1
132
+ optional :filter, :string, 2
133
+ optional :analysis_percentage, :float, 3
134
+ optional :annotator_selector, :message, 8, "google.cloud.contactcenterinsights.v1.AnnotatorSelector"
135
+ end
136
+ add_message "google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata" do
137
+ optional :create_time, :message, 1, "google.protobuf.Timestamp"
138
+ optional :end_time, :message, 2, "google.protobuf.Timestamp"
139
+ optional :request, :message, 3, "google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest"
140
+ optional :completed_analyses_count, :int32, 4
141
+ optional :failed_analyses_count, :int32, 5
142
+ optional :total_requested_analyses_count, :int32, 6
143
+ end
144
+ add_message "google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse" do
145
+ optional :successful_analysis_count, :int32, 1
146
+ optional :failed_analysis_count, :int32, 2
147
+ end
95
148
  add_message "google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest" do
96
149
  optional :parent, :string, 1
97
150
  optional :filter, :string, 3
@@ -182,6 +235,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
182
235
  optional :issue, :message, 1, "google.cloud.contactcenterinsights.v1.Issue"
183
236
  optional :update_mask, :message, 2, "google.protobuf.FieldMask"
184
237
  end
238
+ add_message "google.cloud.contactcenterinsights.v1.DeleteIssueRequest" do
239
+ optional :name, :string, 1
240
+ end
185
241
  add_message "google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest" do
186
242
  optional :issue_model, :string, 1
187
243
  end
@@ -265,11 +321,21 @@ module Google
265
321
  GetConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetConversationRequest").msgclass
266
322
  UpdateConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdateConversationRequest").msgclass
267
323
  DeleteConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DeleteConversationRequest").msgclass
324
+ IngestConversationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsRequest").msgclass
325
+ IngestConversationsRequest::GcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource").msgclass
326
+ IngestConversationsRequest::TranscriptObjectConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig").msgclass
327
+ IngestConversationsRequest::ConversationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig").msgclass
328
+ IngestConversationsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsMetadata").msgclass
329
+ IngestConversationsMetadata::IngestConversationsStats = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsMetadata.IngestConversationsStats").msgclass
330
+ IngestConversationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsResponse").msgclass
268
331
  CreateAnalysisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CreateAnalysisRequest").msgclass
269
332
  ListAnalysesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListAnalysesRequest").msgclass
270
333
  ListAnalysesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListAnalysesResponse").msgclass
271
334
  GetAnalysisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetAnalysisRequest").msgclass
272
335
  DeleteAnalysisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DeleteAnalysisRequest").msgclass
336
+ BulkAnalyzeConversationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest").msgclass
337
+ BulkAnalyzeConversationsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata").msgclass
338
+ BulkAnalyzeConversationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse").msgclass
273
339
  ExportInsightsDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest").msgclass
274
340
  ExportInsightsDataRequest::BigQueryDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.BigQueryDestination").msgclass
275
341
  ExportInsightsDataRequest::WriteDisposition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.WriteDisposition").enummodule
@@ -293,6 +359,7 @@ module Google
293
359
  ListIssuesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListIssuesRequest").msgclass
294
360
  ListIssuesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListIssuesResponse").msgclass
295
361
  UpdateIssueRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdateIssueRequest").msgclass
362
+ DeleteIssueRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DeleteIssueRequest").msgclass
296
363
  CalculateIssueModelStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest").msgclass
297
364
  CalculateIssueModelStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse").msgclass
298
365
  CreatePhraseMatcherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CreatePhraseMatcherRequest").msgclass
@@ -52,6 +52,11 @@ module Google
52
52
  rpc :ListAnalyses, ::Google::Cloud::ContactCenterInsights::V1::ListAnalysesRequest, ::Google::Cloud::ContactCenterInsights::V1::ListAnalysesResponse
53
53
  # Deletes an analysis.
54
54
  rpc :DeleteAnalysis, ::Google::Cloud::ContactCenterInsights::V1::DeleteAnalysisRequest, ::Google::Protobuf::Empty
55
+ # Analyzes multiple conversations in a single request.
56
+ rpc :BulkAnalyzeConversations, ::Google::Cloud::ContactCenterInsights::V1::BulkAnalyzeConversationsRequest, ::Google::Longrunning::Operation
57
+ # Imports conversations and processes them according to the user's
58
+ # configuration.
59
+ rpc :IngestConversations, ::Google::Cloud::ContactCenterInsights::V1::IngestConversationsRequest, ::Google::Longrunning::Operation
55
60
  # Export insights data to a destination defined in the request body.
56
61
  rpc :ExportInsightsData, ::Google::Cloud::ContactCenterInsights::V1::ExportInsightsDataRequest, ::Google::Longrunning::Operation
57
62
  # Creates an issue model.
@@ -76,6 +81,8 @@ module Google
76
81
  rpc :ListIssues, ::Google::Cloud::ContactCenterInsights::V1::ListIssuesRequest, ::Google::Cloud::ContactCenterInsights::V1::ListIssuesResponse
77
82
  # Updates an issue.
78
83
  rpc :UpdateIssue, ::Google::Cloud::ContactCenterInsights::V1::UpdateIssueRequest, ::Google::Cloud::ContactCenterInsights::V1::Issue
84
+ # Deletes an issue.
85
+ rpc :DeleteIssue, ::Google::Cloud::ContactCenterInsights::V1::DeleteIssueRequest, ::Google::Protobuf::Empty
79
86
  # Gets an issue model's statistics.
80
87
  rpc :CalculateIssueModelStats, ::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsRequest, ::Google::Cloud::ContactCenterInsights::V1::CalculateIssueModelStatsResponse
81
88
  # Creates a phrase matcher.
@@ -72,6 +72,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
72
72
  optional :request_time, :message, 2, "google.protobuf.Timestamp"
73
73
  optional :create_time, :message, 3, "google.protobuf.Timestamp"
74
74
  optional :analysis_result, :message, 7, "google.cloud.contactcenterinsights.v1.AnalysisResult"
75
+ optional :annotator_selector, :message, 8, "google.cloud.contactcenterinsights.v1.AnnotatorSelector"
75
76
  end
76
77
  add_message "google.cloud.contactcenterinsights.v1.ConversationDataSource" do
77
78
  oneof :source do
@@ -126,6 +127,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
126
127
  optional :entity_mention_data, :message, 15, "google.cloud.contactcenterinsights.v1.EntityMentionData"
127
128
  optional :intent_match_data, :message, 16, "google.cloud.contactcenterinsights.v1.IntentMatchData"
128
129
  optional :phrase_match_data, :message, 17, "google.cloud.contactcenterinsights.v1.PhraseMatchData"
130
+ optional :issue_match_data, :message, 18, "google.cloud.contactcenterinsights.v1.IssueMatchData"
129
131
  end
130
132
  end
131
133
  add_message "google.cloud.contactcenterinsights.v1.AnnotationBoundary" do
@@ -190,11 +192,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
190
192
  optional :magnitude, :float, 1
191
193
  optional :score, :float, 2
192
194
  end
195
+ add_message "google.cloud.contactcenterinsights.v1.IssueMatchData" do
196
+ optional :issue_assignment, :message, 1, "google.cloud.contactcenterinsights.v1.IssueAssignment"
197
+ end
193
198
  add_message "google.cloud.contactcenterinsights.v1.IssueModel" do
194
199
  optional :name, :string, 1
195
200
  optional :display_name, :string, 2
196
201
  optional :create_time, :message, 3, "google.protobuf.Timestamp"
197
202
  optional :update_time, :message, 4, "google.protobuf.Timestamp"
203
+ optional :issue_count, :int64, 8
198
204
  optional :state, :enum, 5, "google.cloud.contactcenterinsights.v1.IssueModel.State"
199
205
  optional :input_data_config, :message, 6, "google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig"
200
206
  optional :training_stats, :message, 7, "google.cloud.contactcenterinsights.v1.IssueModelLabelStats"
@@ -217,6 +223,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
217
223
  optional :display_name, :string, 2
218
224
  optional :create_time, :message, 3, "google.protobuf.Timestamp"
219
225
  optional :update_time, :message, 4, "google.protobuf.Timestamp"
226
+ repeated :sample_utterances, :string, 6
220
227
  end
221
228
  add_message "google.cloud.contactcenterinsights.v1.IssueModelLabelStats" do
222
229
  optional :analyzed_conversations_count, :int64, 1
@@ -279,6 +286,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
279
286
  end
280
287
  add_message "google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig" do
281
288
  optional :runtime_integration_analysis_percentage, :double, 1
289
+ optional :annotator_selector, :message, 5, "google.cloud.contactcenterinsights.v1.AnnotatorSelector"
282
290
  end
283
291
  add_message "google.cloud.contactcenterinsights.v1.RuntimeAnnotation" do
284
292
  optional :annotation_id, :string, 1
@@ -360,6 +368,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
360
368
  optional :update_time, :message, 4, "google.protobuf.Timestamp"
361
369
  optional :value, :string, 5
362
370
  end
371
+ add_message "google.cloud.contactcenterinsights.v1.AnnotatorSelector" do
372
+ optional :run_interruption_annotator, :bool, 1
373
+ optional :run_silence_annotator, :bool, 2
374
+ optional :run_phrase_matcher_annotator, :bool, 3
375
+ repeated :phrase_matchers, :string, 4
376
+ optional :run_sentiment_annotator, :bool, 5
377
+ optional :run_entity_annotator, :bool, 6
378
+ optional :run_intent_annotator, :bool, 7
379
+ optional :run_issue_model_annotator, :bool, 8
380
+ repeated :issue_models, :string, 10
381
+ end
363
382
  end
364
383
  end
365
384
 
@@ -397,6 +416,7 @@ module Google
397
416
  EntityMentionData::MentionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType").enummodule
398
417
  IntentMatchData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IntentMatchData").msgclass
399
418
  SentimentData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.SentimentData").msgclass
419
+ IssueMatchData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IssueMatchData").msgclass
400
420
  IssueModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IssueModel").msgclass
401
421
  IssueModel::InputDataConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig").msgclass
402
422
  IssueModel::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IssueModel.State").enummodule
@@ -423,6 +443,7 @@ module Google
423
443
  ConversationParticipant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationParticipant").msgclass
424
444
  ConversationParticipant::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationParticipant.Role").enummodule
425
445
  View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.View").msgclass
446
+ AnnotatorSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnnotatorSelector").msgclass
426
447
  end
427
448
  end
428
449
  end