google-cloud-contact_center_insights-v1 0.2.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -143,6 +143,27 @@ module Google
143
143
  #
144
144
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
145
145
  #
146
+ # @example Basic example
147
+ # require "google/longrunning"
148
+ #
149
+ # # Create a client object. The client can be reused for multiple calls.
150
+ # client = Google::Longrunning::Operations::Client.new
151
+ #
152
+ # # Create a request. To set request fields, pass in keyword arguments.
153
+ # request = Google::Longrunning::ListOperationsRequest.new
154
+ #
155
+ # # Call the list_operations method.
156
+ # result = client.list_operations request
157
+ #
158
+ # # The returned object is of type Gapic::PagedEnumerable. You can
159
+ # # iterate over all elements by calling #each, and the enumerable
160
+ # # will lazily make API calls to fetch subsequent pages. Other
161
+ # # methods are also available for managing paging directly.
162
+ # result.each do |response|
163
+ # # Each element is of type ::Google::Longrunning::Operation.
164
+ # p response
165
+ # end
166
+ #
146
167
  def list_operations request, options = nil
147
168
  raise ::ArgumentError, "request must be provided" if request.nil?
148
169
 
@@ -160,9 +181,11 @@ module Google
160
181
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
161
182
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
162
183
 
163
- header_params = {
164
- "name" => request.name
165
- }
184
+ header_params = {}
185
+ if request.name
186
+ header_params["name"] = request.name
187
+ end
188
+
166
189
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
167
190
  metadata[:"x-goog-request-params"] ||= request_params_header
168
191
 
@@ -215,6 +238,28 @@ module Google
215
238
  #
216
239
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
217
240
  #
241
+ # @example Basic example
242
+ # require "google/longrunning"
243
+ #
244
+ # # Create a client object. The client can be reused for multiple calls.
245
+ # client = Google::Longrunning::Operations::Client.new
246
+ #
247
+ # # Create a request. To set request fields, pass in keyword arguments.
248
+ # request = Google::Longrunning::GetOperationRequest.new
249
+ #
250
+ # # Call the get_operation method.
251
+ # result = client.get_operation request
252
+ #
253
+ # # The returned object is of type Gapic::Operation. You can use this
254
+ # # object to check the status of an operation, cancel it, or wait
255
+ # # for results. Here is how to block until completion:
256
+ # result.wait_until_done! timeout: 60
257
+ # if result.response?
258
+ # p result.response
259
+ # else
260
+ # puts "Error!"
261
+ # end
262
+ #
218
263
  def get_operation request, options = nil
219
264
  raise ::ArgumentError, "request must be provided" if request.nil?
220
265
 
@@ -232,9 +277,11 @@ module Google
232
277
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
233
278
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
234
279
 
235
- header_params = {
236
- "name" => request.name
237
- }
280
+ header_params = {}
281
+ if request.name
282
+ header_params["name"] = request.name
283
+ end
284
+
238
285
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
239
286
  metadata[:"x-goog-request-params"] ||= request_params_header
240
287
 
@@ -287,6 +334,21 @@ module Google
287
334
  #
288
335
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
289
336
  #
337
+ # @example Basic example
338
+ # require "google/longrunning"
339
+ #
340
+ # # Create a client object. The client can be reused for multiple calls.
341
+ # client = Google::Longrunning::Operations::Client.new
342
+ #
343
+ # # Create a request. To set request fields, pass in keyword arguments.
344
+ # request = Google::Longrunning::DeleteOperationRequest.new
345
+ #
346
+ # # Call the delete_operation method.
347
+ # result = client.delete_operation request
348
+ #
349
+ # # The returned object is of type Google::Protobuf::Empty.
350
+ # p result
351
+ #
290
352
  def delete_operation request, options = nil
291
353
  raise ::ArgumentError, "request must be provided" if request.nil?
292
354
 
@@ -304,9 +366,11 @@ module Google
304
366
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
305
367
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
306
368
 
307
- header_params = {
308
- "name" => request.name
309
- }
369
+ header_params = {}
370
+ if request.name
371
+ header_params["name"] = request.name
372
+ end
373
+
310
374
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
311
375
  metadata[:"x-goog-request-params"] ||= request_params_header
312
376
 
@@ -364,6 +428,21 @@ module Google
364
428
  #
365
429
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
366
430
  #
431
+ # @example Basic example
432
+ # require "google/longrunning"
433
+ #
434
+ # # Create a client object. The client can be reused for multiple calls.
435
+ # client = Google::Longrunning::Operations::Client.new
436
+ #
437
+ # # Create a request. To set request fields, pass in keyword arguments.
438
+ # request = Google::Longrunning::CancelOperationRequest.new
439
+ #
440
+ # # Call the cancel_operation method.
441
+ # result = client.cancel_operation request
442
+ #
443
+ # # The returned object is of type Google::Protobuf::Empty.
444
+ # p result
445
+ #
367
446
  def cancel_operation request, options = nil
368
447
  raise ::ArgumentError, "request must be provided" if request.nil?
369
448
 
@@ -381,9 +460,11 @@ module Google
381
460
  gapic_version: ::Google::Cloud::ContactCenterInsights::V1::VERSION
382
461
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
383
462
 
384
- header_params = {
385
- "name" => request.name
386
- }
463
+ header_params = {}
464
+ if request.name
465
+ header_params["name"] = request.name
466
+ end
467
+
387
468
  request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
388
469
  metadata[:"x-goog-request-params"] ||= request_params_header
389
470
 
@@ -444,6 +525,28 @@ module Google
444
525
  #
445
526
  # @raise [::Google::Cloud::Error] if the RPC is aborted.
446
527
  #
528
+ # @example Basic example
529
+ # require "google/longrunning"
530
+ #
531
+ # # Create a client object. The client can be reused for multiple calls.
532
+ # client = Google::Longrunning::Operations::Client.new
533
+ #
534
+ # # Create a request. To set request fields, pass in keyword arguments.
535
+ # request = Google::Longrunning::WaitOperationRequest.new
536
+ #
537
+ # # Call the wait_operation method.
538
+ # result = client.wait_operation request
539
+ #
540
+ # # The returned object is of type Gapic::Operation. You can use this
541
+ # # object to check the status of an operation, cancel it, or wait
542
+ # # for results. Here is how to block until completion:
543
+ # result.wait_until_done! timeout: 60
544
+ # if result.response?
545
+ # p result.response
546
+ # else
547
+ # puts "Error!"
548
+ # end
549
+ #
447
550
  def wait_operation request, options = nil
448
551
  raise ::ArgumentError, "request must be provided" if request.nil?
449
552
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module ContactCenterInsights
23
23
  module V1
24
- VERSION = "0.2.0"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,8 +1,6 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/contactcenterinsights/v1/contact_center_insights.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/annotations_pb'
7
5
  require 'google/api/client_pb'
8
6
  require 'google/api/field_behavior_pb'
@@ -14,6 +12,8 @@ require 'google/protobuf/empty_pb'
14
12
  require 'google/protobuf/field_mask_pb'
15
13
  require 'google/protobuf/timestamp_pb'
16
14
  require 'google/rpc/status_pb'
15
+ require 'google/protobuf'
16
+
17
17
  Google::Protobuf::DescriptorPool.generated_pool.build do
18
18
  add_file("google/cloud/contactcenterinsights/v1/contact_center_insights.proto", :syntax => :proto3) do
19
19
  add_message "google.cloud.contactcenterinsights.v1.CalculateStatsRequest" do
@@ -27,6 +27,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
27
27
  map :smart_highlighter_matches, :string, :int32, 4
28
28
  map :custom_highlighter_matches, :string, :int32, 5
29
29
  map :issue_matches, :string, :int32, 6
30
+ map :issue_matches_stats, :string, :message, 8, "google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats"
30
31
  optional :conversation_count_time_series, :message, 7, "google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries"
31
32
  end
32
33
  add_message "google.cloud.contactcenterinsights.v1.CalculateStatsResponse.TimeSeries" do
@@ -94,6 +95,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
94
95
  optional :parent, :string, 1
95
96
  optional :filter, :string, 3
96
97
  optional :kms_key, :string, 4
98
+ optional :write_disposition, :enum, 5, "google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.WriteDisposition"
97
99
  oneof :destination do
98
100
  optional :big_query_destination, :message, 2, "google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.BigQueryDestination"
99
101
  end
@@ -103,6 +105,11 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
103
105
  optional :dataset, :string, 1
104
106
  optional :table, :string, 2
105
107
  end
108
+ add_enum "google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.WriteDisposition" do
109
+ value :WRITE_DISPOSITION_UNSPECIFIED, 0
110
+ value :WRITE_TRUNCATE, 1
111
+ value :WRITE_APPEND, 2
112
+ end
106
113
  add_message "google.cloud.contactcenterinsights.v1.ExportInsightsDataMetadata" do
107
114
  optional :create_time, :message, 1, "google.protobuf.Timestamp"
108
115
  optional :end_time, :message, 2, "google.protobuf.Timestamp"
@@ -200,6 +207,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
200
207
  add_message "google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest" do
201
208
  optional :name, :string, 1
202
209
  end
210
+ add_message "google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest" do
211
+ optional :phrase_matcher, :message, 1, "google.cloud.contactcenterinsights.v1.PhraseMatcher"
212
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
213
+ end
203
214
  add_message "google.cloud.contactcenterinsights.v1.GetSettingsRequest" do
204
215
  optional :name, :string, 1
205
216
  end
@@ -237,6 +248,7 @@ module Google
237
248
  DeleteAnalysisRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DeleteAnalysisRequest").msgclass
238
249
  ExportInsightsDataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest").msgclass
239
250
  ExportInsightsDataRequest::BigQueryDestination = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.BigQueryDestination").msgclass
251
+ ExportInsightsDataRequest::WriteDisposition = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExportInsightsDataRequest.WriteDisposition").enummodule
240
252
  ExportInsightsDataMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExportInsightsDataMetadata").msgclass
241
253
  ExportInsightsDataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ExportInsightsDataResponse").msgclass
242
254
  CreateIssueModelRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.CreateIssueModelRequest").msgclass
@@ -264,6 +276,7 @@ module Google
264
276
  ListPhraseMatchersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListPhraseMatchersResponse").msgclass
265
277
  GetPhraseMatcherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetPhraseMatcherRequest").msgclass
266
278
  DeletePhraseMatcherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest").msgclass
279
+ UpdatePhraseMatcherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest").msgclass
267
280
  GetSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetSettingsRequest").msgclass
268
281
  UpdateSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdateSettingsRequest").msgclass
269
282
  ConversationView = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationView").enummodule
@@ -27,7 +27,7 @@ module Google
27
27
  # An API that lets users analyze and explore their business conversation data.
28
28
  class Service
29
29
 
30
- include GRPC::GenericService
30
+ include ::GRPC::GenericService
31
31
 
32
32
  self.marshal_class_method = :encode
33
33
  self.unmarshal_class_method = :decode
@@ -86,6 +86,8 @@ module Google
86
86
  rpc :ListPhraseMatchers, ::Google::Cloud::ContactCenterInsights::V1::ListPhraseMatchersRequest, ::Google::Cloud::ContactCenterInsights::V1::ListPhraseMatchersResponse
87
87
  # Deletes a phrase matcher.
88
88
  rpc :DeletePhraseMatcher, ::Google::Cloud::ContactCenterInsights::V1::DeletePhraseMatcherRequest, ::Google::Protobuf::Empty
89
+ # Updates a phrase matcher.
90
+ rpc :UpdatePhraseMatcher, ::Google::Cloud::ContactCenterInsights::V1::UpdatePhraseMatcherRequest, ::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher
89
91
  # Gets conversation statistics.
90
92
  rpc :CalculateStats, ::Google::Cloud::ContactCenterInsights::V1::CalculateStatsRequest, ::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse
91
93
  # Gets project-level settings.
@@ -1,13 +1,13 @@
1
1
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
2
  # source: google/cloud/contactcenterinsights/v1/resources.proto
3
3
 
4
- require 'google/protobuf'
5
-
6
4
  require 'google/api/field_behavior_pb'
7
5
  require 'google/api/resource_pb'
8
6
  require 'google/protobuf/duration_pb'
9
7
  require 'google/protobuf/timestamp_pb'
10
8
  require 'google/api/annotations_pb'
9
+ require 'google/protobuf'
10
+
11
11
  Google::Protobuf::DescriptorPool.generated_pool.build do
12
12
  add_file("google/cloud/contactcenterinsights/v1/resources.proto", :syntax => :proto3) do
13
13
  add_message "google.cloud.contactcenterinsights.v1.Conversation" do
@@ -42,12 +42,15 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
42
42
  repeated :transcript_segments, :message, 1, "google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment"
43
43
  end
44
44
  add_message "google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment" do
45
+ optional :message_time, :message, 6, "google.protobuf.Timestamp"
45
46
  optional :text, :string, 1
46
47
  optional :confidence, :float, 2
47
48
  repeated :words, :message, 3, "google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo"
48
49
  optional :language_code, :string, 4
49
50
  optional :channel_tag, :int32, 5
50
51
  optional :segment_participant, :message, 9, "google.cloud.contactcenterinsights.v1.ConversationParticipant"
52
+ optional :dialogflow_segment_metadata, :message, 10, "google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata"
53
+ optional :sentiment, :message, 11, "google.cloud.contactcenterinsights.v1.SentimentData"
51
54
  end
52
55
  add_message "google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo" do
53
56
  optional :start_offset, :message, 1, "google.protobuf.Duration"
@@ -55,6 +58,9 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
55
58
  optional :word, :string, 3
56
59
  optional :confidence, :float, 4
57
60
  end
61
+ add_message "google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata" do
62
+ optional :smart_reply_allowlist_covered, :bool, 1
63
+ end
58
64
  add_enum "google.cloud.contactcenterinsights.v1.Conversation.Medium" do
59
65
  value :MEDIUM_UNSPECIFIED, 0
60
66
  value :PHONE_CALL, 1
@@ -195,6 +201,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
195
201
  add_message "google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig" do
196
202
  optional :medium, :enum, 1, "google.cloud.contactcenterinsights.v1.Conversation.Medium"
197
203
  optional :training_conversations_count, :int64, 2
204
+ optional :filter, :string, 3
198
205
  end
199
206
  add_enum "google.cloud.contactcenterinsights.v1.IssueModel.State" do
200
207
  value :STATE_UNSPECIFIED, 0
@@ -218,6 +225,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
218
225
  add_message "google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats" do
219
226
  optional :issue, :string, 1
220
227
  optional :labeled_conversations_count, :int64, 2
228
+ optional :display_name, :string, 3
221
229
  end
222
230
  add_message "google.cloud.contactcenterinsights.v1.PhraseMatcher" do
223
231
  optional :name, :string, 1
@@ -230,6 +238,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
230
238
  repeated :phrase_match_rule_groups, :message, 8, "google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup"
231
239
  optional :activation_update_time, :message, 9, "google.protobuf.Timestamp"
232
240
  optional :role_match, :enum, 10, "google.cloud.contactcenterinsights.v1.ConversationParticipant.Role"
241
+ optional :update_time, :message, 11, "google.protobuf.Timestamp"
233
242
  end
234
243
  add_enum "google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType" do
235
244
  value :PHRASE_MATCHER_TYPE_UNSPECIFIED, 0
@@ -329,6 +338,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
329
338
  end
330
339
  add_message "google.cloud.contactcenterinsights.v1.ConversationParticipant" do
331
340
  optional :dialogflow_participant, :string, 1
341
+ optional :obfuscated_external_user_id, :string, 3
332
342
  optional :role, :enum, 2, "google.cloud.contactcenterinsights.v1.ConversationParticipant.Role"
333
343
  oneof :participant do
334
344
  optional :dialogflow_participant_name, :string, 5
@@ -354,6 +364,7 @@ module Google
354
364
  Conversation::Transcript = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Conversation.Transcript").msgclass
355
365
  Conversation::Transcript::TranscriptSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment").msgclass
356
366
  Conversation::Transcript::TranscriptSegment::WordInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.WordInfo").msgclass
367
+ Conversation::Transcript::TranscriptSegment::DialogflowSegmentMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment.DialogflowSegmentMetadata").msgclass
357
368
  Conversation::Medium = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Conversation.Medium").enummodule
358
369
  Analysis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Analysis").msgclass
359
370
  ConversationDataSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationDataSource").msgclass
@@ -57,8 +57,13 @@ module Google
57
57
  # @return [::Google::Protobuf::Map{::String => ::Integer}]
58
58
  # A map associating each issue resource name with its respective number of
59
59
  # matches in the set of conversations. Key has the format:
60
- # `projects/<Project ID>/locations/<Location ID>/issueModels/<Issue Model
61
- # ID>/issues/<Issue ID>`
60
+ # `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
61
+ # Deprecated, use `issue_matches_stats` field instead.
62
+ # @!attribute [rw] issue_matches_stats
63
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ContactCenterInsights::V1::IssueModelLabelStats::IssueStats}]
64
+ # A map associating each issue resource name with its respective number of
65
+ # matches in the set of conversations. Key has the format:
66
+ # `projects/<Project-ID>/locations/<Location-ID>/issueModels/<Issue-Model-ID>/issues/<Issue-ID>`
62
67
  # @!attribute [rw] conversation_count_time_series
63
68
  # @return [::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse::TimeSeries]
64
69
  # A time series representing the count of conversations created over time
@@ -119,6 +124,15 @@ module Google
119
124
  include ::Google::Protobuf::MessageExts
120
125
  extend ::Google::Protobuf::MessageExts::ClassMethods
121
126
  end
127
+
128
+ # @!attribute [rw] key
129
+ # @return [::String]
130
+ # @!attribute [rw] value
131
+ # @return [::Google::Cloud::ContactCenterInsights::V1::IssueModelLabelStats::IssueStats]
132
+ class IssueMatchesStatsEntry
133
+ include ::Google::Protobuf::MessageExts
134
+ extend ::Google::Protobuf::MessageExts::ClassMethods
135
+ end
122
136
  end
123
137
 
124
138
  # Metadata for a create analysis operation.
@@ -149,8 +163,8 @@ module Google
149
163
  # component of the conversation's resource name. If no ID is specified, a
150
164
  # server-generated ID will be used.
151
165
  #
152
- # This value should be 4-32 characters and must match the regular
153
- # expression /^[a-z0-9-]\\{4,32}$/. Valid characters are /[a-z][0-9]-/
166
+ # This value should be 4-64 characters and must match the regular
167
+ # expression `^[a-z0-9-]{4,64}$`. Valid characters are `[a-z][0-9]-`
154
168
  class CreateConversationRequest
155
169
  include ::Google::Protobuf::MessageExts
156
170
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -318,6 +332,9 @@ module Google
318
332
  # A fully qualified KMS key name for BigQuery tables protected by CMEK.
319
333
  # Format:
320
334
  # projects/\\{project}/locations/\\{location}/keyRings/\\{keyring}/cryptoKeys/\\{key}/cryptoKeyVersions/\\{version}
335
+ # @!attribute [rw] write_disposition
336
+ # @return [::Google::Cloud::ContactCenterInsights::V1::ExportInsightsDataRequest::WriteDisposition]
337
+ # Options for what to do if the destination table already exists.
321
338
  class ExportInsightsDataRequest
322
339
  include ::Google::Protobuf::MessageExts
323
340
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -342,6 +359,19 @@ module Google
342
359
  include ::Google::Protobuf::MessageExts
343
360
  extend ::Google::Protobuf::MessageExts::ClassMethods
344
361
  end
362
+
363
+ # Specifies the action that occurs if the destination table already exists.
364
+ module WriteDisposition
365
+ # Write disposition is not specified. Defaults to WRITE_TRUNCATE.
366
+ WRITE_DISPOSITION_UNSPECIFIED = 0
367
+
368
+ # If the table already exists, BigQuery will overwrite the table data and
369
+ # use the schema from the load.
370
+ WRITE_TRUNCATE = 1
371
+
372
+ # If the table already exists, BigQuery will append data to the table.
373
+ WRITE_APPEND = 2
374
+ end
345
375
  end
346
376
 
347
377
  # Metadata for an export insights operation.
@@ -647,6 +677,18 @@ module Google
647
677
  extend ::Google::Protobuf::MessageExts::ClassMethods
648
678
  end
649
679
 
680
+ # The request to update a phrase matcher.
681
+ # @!attribute [rw] phrase_matcher
682
+ # @return [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher]
683
+ # Required. The new values for the phrase matcher.
684
+ # @!attribute [rw] update_mask
685
+ # @return [::Google::Protobuf::FieldMask]
686
+ # The list of fields to be updated.
687
+ class UpdatePhraseMatcherRequest
688
+ include ::Google::Protobuf::MessageExts
689
+ extend ::Google::Protobuf::MessageExts::ClassMethods
690
+ end
691
+
650
692
  # The request to get project-level settings.
651
693
  # @!attribute [rw] name
652
694
  # @return [::String]
@@ -66,7 +66,7 @@ module Google
66
66
  # Output only. The conversation transcript.
67
67
  # @!attribute [rw] medium
68
68
  # @return [::Google::Cloud::ContactCenterInsights::V1::Conversation::Medium]
69
- # Immutable. The conversation medium.
69
+ # Immutable. The conversation medium, if unspecified will default to PHONE_CALL.
70
70
  # @!attribute [r] duration
71
71
  # @return [::Google::Protobuf::Duration]
72
72
  # Output only. The duration of the conversation.
@@ -110,6 +110,9 @@ module Google
110
110
  extend ::Google::Protobuf::MessageExts::ClassMethods
111
111
 
112
112
  # A segment of a full transcript.
113
+ # @!attribute [rw] message_time
114
+ # @return [::Google::Protobuf::Timestamp]
115
+ # The time that the message occurred, if provided.
113
116
  # @!attribute [rw] text
114
117
  # @return [::String]
115
118
  # The text of this segment.
@@ -134,6 +137,12 @@ module Google
134
137
  # @!attribute [rw] segment_participant
135
138
  # @return [::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant]
136
139
  # The participant of this segment.
140
+ # @!attribute [rw] dialogflow_segment_metadata
141
+ # @return [::Google::Cloud::ContactCenterInsights::V1::Conversation::Transcript::TranscriptSegment::DialogflowSegmentMetadata]
142
+ # CCAI metadata relating to the current transcript segment.
143
+ # @!attribute [rw] sentiment
144
+ # @return [::Google::Cloud::ContactCenterInsights::V1::SentimentData]
145
+ # The sentiment for this transcript segment.
137
146
  class TranscriptSegment
138
147
  include ::Google::Protobuf::MessageExts
139
148
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -158,6 +167,16 @@ module Google
158
167
  include ::Google::Protobuf::MessageExts
159
168
  extend ::Google::Protobuf::MessageExts::ClassMethods
160
169
  end
170
+
171
+ # Metadata from Dialogflow relating to the current transcript segment.
172
+ # @!attribute [rw] smart_reply_allowlist_covered
173
+ # @return [::Boolean]
174
+ # Whether the transcript segment was covered under the configured smart
175
+ # reply allowlist in Agent Assist.
176
+ class DialogflowSegmentMetadata
177
+ include ::Google::Protobuf::MessageExts
178
+ extend ::Google::Protobuf::MessageExts::ClassMethods
179
+ end
161
180
  end
162
181
  end
163
182
 
@@ -181,7 +200,7 @@ module Google
181
200
 
182
201
  # Possible media for the conversation.
183
202
  module Medium
184
- # Default value.
203
+ # Default value, if unspecified will default to PHONE_CALL.
185
204
  MEDIUM_UNSPECIFIED = 0
186
205
 
187
206
  # The format for conversations that took place over the phone.
@@ -670,10 +689,16 @@ module Google
670
689
  # Configs for the input data used to create the issue model.
671
690
  # @!attribute [rw] medium
672
691
  # @return [::Google::Cloud::ContactCenterInsights::V1::Conversation::Medium]
673
- # Required. Medium of conversations used in training data.
692
+ # Medium of conversations used in training data. This field is being
693
+ # deprecated. To specify the medium to be used in training a new issue
694
+ # model, set the `medium` field on `filter`.
674
695
  # @!attribute [r] training_conversations_count
675
696
  # @return [::Integer]
676
697
  # Output only. Number of conversations used in training. Output only.
698
+ # @!attribute [rw] filter
699
+ # @return [::String]
700
+ # A filter to reduce the conversations used for training the model to a
701
+ # specific subset.
677
702
  class InputDataConfig
678
703
  include ::Google::Protobuf::MessageExts
679
704
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -746,6 +771,9 @@ module Google
746
771
  # @!attribute [rw] labeled_conversations_count
747
772
  # @return [::Integer]
748
773
  # Number of conversations attached to the issue at this point in time.
774
+ # @!attribute [rw] display_name
775
+ # @return [::String]
776
+ # Display name of the issue.
749
777
  class IssueStats
750
778
  include ::Google::Protobuf::MessageExts
751
779
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -801,6 +829,9 @@ module Google
801
829
  # The role whose utterances the phrase matcher should be matched
802
830
  # against. If the role is ROLE_UNSPECIFIED it will be matched against any
803
831
  # utterances in the transcript.
832
+ # @!attribute [r] update_time
833
+ # @return [::Google::Protobuf::Timestamp]
834
+ # Output only. The most recent time at which the phrase matcher was updated.
804
835
  class PhraseMatcher
805
836
  include ::Google::Protobuf::MessageExts
806
837
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1187,6 +1218,9 @@ module Google
1187
1218
  # Deprecated. Use `dialogflow_participant_name` instead.
1188
1219
  # The name of the Dialogflow participant. Format:
1189
1220
  # projects/\\{project}/locations/\\{location}/conversations/\\{conversation}/participants/\\{participant}
1221
+ # @!attribute [rw] obfuscated_external_user_id
1222
+ # @return [::String]
1223
+ # Obfuscated user ID from Dialogflow.
1190
1224
  # @!attribute [rw] role
1191
1225
  # @return [::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant::Role]
1192
1226
  # The role of the participant.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-contact_center_insights-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-30 00:00:00.000000000 Z
11
+ date: 2021-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common