google-cloud-contact_center_insights-v1 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/README.md +1 -1
- data/lib/google/cloud/contact_center_insights/v1/contact_center_insights/client.rb +307 -0
- data/lib/google/cloud/contact_center_insights/v1/version.rb +1 -1
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_pb.rb +59 -0
- data/lib/google/cloud/contactcenterinsights/v1/contact_center_insights_services_pb.rb +7 -0
- data/lib/google/cloud/contactcenterinsights/v1/resources_pb.rb +20 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/cloud/contactcenterinsights/v1/contact_center_insights.rb +140 -0
- data/proto_docs/google/cloud/contactcenterinsights/v1/resources.rb +74 -8
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +6 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dfb43cdf370e3fb52ba7c1313893c092420b67fcb1edf75006b043992f5894a4
|
4
|
+
data.tar.gz: f6eb715985210b02dad55cefc83d30f366cf39d7340dbc292257e13964a1082c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7fff0a86aa1b7dc7c34fc93256d322c7a27f02508eae365047c803bf90bea0f6189782cecbebdf7f8751a3ace419c9064e3d9353a74e13ce894dd1ab5f83d6c8
|
7
|
+
data.tar.gz: 27c50d4b1e48b5f7bc1c23571d01bf40c5ab2caf37c0d72293447e583a47b95d6198aee907147db56730e4800491e2afe79050c9e246a284883a7d41d12ac641
|
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/
|
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
|
#
|
@@ -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
|
@@ -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,33 @@ 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
|
+
end
|
101
|
+
add_message "google.cloud.contactcenterinsights.v1.IngestConversationsResponse" do
|
102
|
+
end
|
75
103
|
add_message "google.cloud.contactcenterinsights.v1.CreateAnalysisRequest" do
|
76
104
|
optional :parent, :string, 1
|
77
105
|
optional :analysis, :message, 2, "google.cloud.contactcenterinsights.v1.Analysis"
|
@@ -92,6 +120,24 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
92
120
|
add_message "google.cloud.contactcenterinsights.v1.DeleteAnalysisRequest" do
|
93
121
|
optional :name, :string, 1
|
94
122
|
end
|
123
|
+
add_message "google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest" do
|
124
|
+
optional :parent, :string, 1
|
125
|
+
optional :filter, :string, 2
|
126
|
+
optional :analysis_percentage, :float, 3
|
127
|
+
optional :annotator_selector, :message, 8, "google.cloud.contactcenterinsights.v1.AnnotatorSelector"
|
128
|
+
end
|
129
|
+
add_message "google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata" do
|
130
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
131
|
+
optional :end_time, :message, 2, "google.protobuf.Timestamp"
|
132
|
+
optional :request, :message, 3, "google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest"
|
133
|
+
optional :completed_analyses_count, :int32, 4
|
134
|
+
optional :failed_analyses_count, :int32, 5
|
135
|
+
optional :total_requested_analyses_count, :int32, 6
|
136
|
+
end
|
137
|
+
add_message "google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse" do
|
138
|
+
optional :successful_analysis_count, :int32, 1
|
139
|
+
optional :failed_analysis_count, :int32, 2
|
140
|
+
end
|
95
141
|
add_message "google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest" do
|
96
142
|
optional :parent, :string, 1
|
97
143
|
optional :filter, :string, 3
|
@@ -182,6 +228,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
182
228
|
optional :issue, :message, 1, "google.cloud.contactcenterinsights.v1.Issue"
|
183
229
|
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
184
230
|
end
|
231
|
+
add_message "google.cloud.contactcenterinsights.v1.DeleteIssueRequest" do
|
232
|
+
optional :name, :string, 1
|
233
|
+
end
|
185
234
|
add_message "google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest" do
|
186
235
|
optional :issue_model, :string, 1
|
187
236
|
end
|
@@ -265,11 +314,20 @@ module Google
|
|
265
314
|
GetConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetConversationRequest").msgclass
|
266
315
|
UpdateConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdateConversationRequest").msgclass
|
267
316
|
DeleteConversationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DeleteConversationRequest").msgclass
|
317
|
+
IngestConversationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsRequest").msgclass
|
318
|
+
IngestConversationsRequest::GcsSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsRequest.GcsSource").msgclass
|
319
|
+
IngestConversationsRequest::TranscriptObjectConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsRequest.TranscriptObjectConfig").msgclass
|
320
|
+
IngestConversationsRequest::ConversationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsRequest.ConversationConfig").msgclass
|
321
|
+
IngestConversationsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsMetadata").msgclass
|
322
|
+
IngestConversationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IngestConversationsResponse").msgclass
|
268
323
|
CreateAnalysisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CreateAnalysisRequest").msgclass
|
269
324
|
ListAnalysesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListAnalysesRequest").msgclass
|
270
325
|
ListAnalysesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListAnalysesResponse").msgclass
|
271
326
|
GetAnalysisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetAnalysisRequest").msgclass
|
272
327
|
DeleteAnalysisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DeleteAnalysisRequest").msgclass
|
328
|
+
BulkAnalyzeConversationsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsRequest").msgclass
|
329
|
+
BulkAnalyzeConversationsMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsMetadata").msgclass
|
330
|
+
BulkAnalyzeConversationsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.BulkAnalyzeConversationsResponse").msgclass
|
273
331
|
ExportInsightsDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest").msgclass
|
274
332
|
ExportInsightsDataRequest::BigQueryDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.BigQueryDestination").msgclass
|
275
333
|
ExportInsightsDataRequest::WriteDisposition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.WriteDisposition").enummodule
|
@@ -293,6 +351,7 @@ module Google
|
|
293
351
|
ListIssuesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListIssuesRequest").msgclass
|
294
352
|
ListIssuesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListIssuesResponse").msgclass
|
295
353
|
UpdateIssueRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdateIssueRequest").msgclass
|
354
|
+
DeleteIssueRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DeleteIssueRequest").msgclass
|
296
355
|
CalculateIssueModelStatsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsRequest").msgclass
|
297
356
|
CalculateIssueModelStatsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CalculateIssueModelStatsResponse").msgclass
|
298
357
|
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,6 +192,9 @@ 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
|
@@ -217,6 +222,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
217
222
|
optional :display_name, :string, 2
|
218
223
|
optional :create_time, :message, 3, "google.protobuf.Timestamp"
|
219
224
|
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
225
|
+
repeated :sample_utterances, :string, 6
|
220
226
|
end
|
221
227
|
add_message "google.cloud.contactcenterinsights.v1.IssueModelLabelStats" do
|
222
228
|
optional :analyzed_conversations_count, :int64, 1
|
@@ -279,6 +285,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
279
285
|
end
|
280
286
|
add_message "google.cloud.contactcenterinsights.v1.Settings.AnalysisConfig" do
|
281
287
|
optional :runtime_integration_analysis_percentage, :double, 1
|
288
|
+
optional :annotator_selector, :message, 5, "google.cloud.contactcenterinsights.v1.AnnotatorSelector"
|
282
289
|
end
|
283
290
|
add_message "google.cloud.contactcenterinsights.v1.RuntimeAnnotation" do
|
284
291
|
optional :annotation_id, :string, 1
|
@@ -360,6 +367,17 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
360
367
|
optional :update_time, :message, 4, "google.protobuf.Timestamp"
|
361
368
|
optional :value, :string, 5
|
362
369
|
end
|
370
|
+
add_message "google.cloud.contactcenterinsights.v1.AnnotatorSelector" do
|
371
|
+
optional :run_interruption_annotator, :bool, 1
|
372
|
+
optional :run_silence_annotator, :bool, 2
|
373
|
+
optional :run_phrase_matcher_annotator, :bool, 3
|
374
|
+
repeated :phrase_matchers, :string, 4
|
375
|
+
optional :run_sentiment_annotator, :bool, 5
|
376
|
+
optional :run_entity_annotator, :bool, 6
|
377
|
+
optional :run_intent_annotator, :bool, 7
|
378
|
+
optional :run_issue_model_annotator, :bool, 8
|
379
|
+
repeated :issue_models, :string, 10
|
380
|
+
end
|
363
381
|
end
|
364
382
|
end
|
365
383
|
|
@@ -397,6 +415,7 @@ module Google
|
|
397
415
|
EntityMentionData::MentionType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.EntityMentionData.MentionType").enummodule
|
398
416
|
IntentMatchData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IntentMatchData").msgclass
|
399
417
|
SentimentData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.SentimentData").msgclass
|
418
|
+
IssueMatchData = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IssueMatchData").msgclass
|
400
419
|
IssueModel = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IssueModel").msgclass
|
401
420
|
IssueModel::InputDataConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig").msgclass
|
402
421
|
IssueModel::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.IssueModel.State").enummodule
|
@@ -423,6 +442,7 @@ module Google
|
|
423
442
|
ConversationParticipant = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationParticipant").msgclass
|
424
443
|
ConversationParticipant::Role = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationParticipant.Role").enummodule
|
425
444
|
View = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.View").msgclass
|
445
|
+
AnnotatorSelector = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.AnnotatorSelector").msgclass
|
426
446
|
end
|
427
447
|
end
|
428
448
|
end
|