google-cloud-contact_center_insights-v1 0.1.1 → 0.5.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.1.1"
24
+ VERSION = "0.5.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
@@ -200,6 +201,10 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
200
201
  add_message "google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest" do
201
202
  optional :name, :string, 1
202
203
  end
204
+ add_message "google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest" do
205
+ optional :phrase_matcher, :message, 1, "google.cloud.contactcenterinsights.v1.PhraseMatcher"
206
+ optional :update_mask, :message, 2, "google.protobuf.FieldMask"
207
+ end
203
208
  add_message "google.cloud.contactcenterinsights.v1.GetSettingsRequest" do
204
209
  optional :name, :string, 1
205
210
  end
@@ -264,6 +269,7 @@ module Google
264
269
  ListPhraseMatchersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ListPhraseMatchersResponse").msgclass
265
270
  GetPhraseMatcherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetPhraseMatcherRequest").msgclass
266
271
  DeletePhraseMatcherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.DeletePhraseMatcherRequest").msgclass
272
+ UpdatePhraseMatcherRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdatePhraseMatcherRequest").msgclass
267
273
  GetSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.GetSettingsRequest").msgclass
268
274
  UpdateSettingsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.UpdateSettingsRequest").msgclass
269
275
  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
@@ -105,6 +111,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
105
111
  add_message "google.cloud.contactcenterinsights.v1.IssueAssignment" do
106
112
  optional :issue, :string, 1
107
113
  optional :score, :double, 2
114
+ optional :display_name, :string, 3
108
115
  end
109
116
  add_message "google.cloud.contactcenterinsights.v1.CallAnnotation" do
110
117
  optional :channel_tag, :int32, 1
@@ -194,6 +201,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
194
201
  add_message "google.cloud.contactcenterinsights.v1.IssueModel.InputDataConfig" do
195
202
  optional :medium, :enum, 1, "google.cloud.contactcenterinsights.v1.Conversation.Medium"
196
203
  optional :training_conversations_count, :int64, 2
204
+ optional :filter, :string, 3
197
205
  end
198
206
  add_enum "google.cloud.contactcenterinsights.v1.IssueModel.State" do
199
207
  value :STATE_UNSPECIFIED, 0
@@ -217,6 +225,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
217
225
  add_message "google.cloud.contactcenterinsights.v1.IssueModelLabelStats.IssueStats" do
218
226
  optional :issue, :string, 1
219
227
  optional :labeled_conversations_count, :int64, 2
228
+ optional :display_name, :string, 3
220
229
  end
221
230
  add_message "google.cloud.contactcenterinsights.v1.PhraseMatcher" do
222
231
  optional :name, :string, 1
@@ -229,6 +238,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
229
238
  repeated :phrase_match_rule_groups, :message, 8, "google.cloud.contactcenterinsights.v1.PhraseMatchRuleGroup"
230
239
  optional :activation_update_time, :message, 9, "google.protobuf.Timestamp"
231
240
  optional :role_match, :enum, 10, "google.cloud.contactcenterinsights.v1.ConversationParticipant.Role"
241
+ optional :update_time, :message, 11, "google.protobuf.Timestamp"
232
242
  end
233
243
  add_enum "google.cloud.contactcenterinsights.v1.PhraseMatcher.PhraseMatcherType" do
234
244
  value :PHRASE_MATCHER_TYPE_UNSPECIFIED, 0
@@ -328,6 +338,7 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
328
338
  end
329
339
  add_message "google.cloud.contactcenterinsights.v1.ConversationParticipant" do
330
340
  optional :dialogflow_participant, :string, 1
341
+ optional :obfuscated_external_user_id, :string, 3
331
342
  optional :role, :enum, 2, "google.cloud.contactcenterinsights.v1.ConversationParticipant.Role"
332
343
  oneof :participant do
333
344
  optional :dialogflow_participant_name, :string, 5
@@ -353,6 +364,7 @@ module Google
353
364
  Conversation::Transcript = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Conversation.Transcript").msgclass
354
365
  Conversation::Transcript::TranscriptSegment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Conversation.Transcript.TranscriptSegment").msgclass
355
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
356
368
  Conversation::Medium = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Conversation.Medium").enummodule
357
369
  Analysis = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.Analysis").msgclass
358
370
  ConversationDataSource = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.contactcenterinsights.v1.ConversationDataSource").msgclass
@@ -59,6 +59,12 @@ module Google
59
59
  # matches in the set of conversations. Key has the format:
60
60
  # `projects/<Project ID>/locations/<Location ID>/issueModels/<Issue Model
61
61
  # ID>/issues/<Issue ID>`
62
+ # Deprecated, use `issue_matches_stats` field instead.
63
+ # @!attribute [rw] issue_matches_stats
64
+ # @return [::Google::Protobuf::Map{::String => ::Google::Cloud::ContactCenterInsights::V1::IssueModelLabelStats::IssueStats}]
65
+ # A map associating each issue resource name with its respective number of
66
+ # matches in the set of conversations. Key has the format:
67
+ # `projects/<ProjectID>/locations/<LocationID>/issueModels/<IssueModelID>/issues/<IssueID>`
62
68
  # @!attribute [rw] conversation_count_time_series
63
69
  # @return [::Google::Cloud::ContactCenterInsights::V1::CalculateStatsResponse::TimeSeries]
64
70
  # A time series representing the count of conversations created over time
@@ -119,6 +125,15 @@ module Google
119
125
  include ::Google::Protobuf::MessageExts
120
126
  extend ::Google::Protobuf::MessageExts::ClassMethods
121
127
  end
128
+
129
+ # @!attribute [rw] key
130
+ # @return [::String]
131
+ # @!attribute [rw] value
132
+ # @return [::Google::Cloud::ContactCenterInsights::V1::IssueModelLabelStats::IssueStats]
133
+ class IssueMatchesStatsEntry
134
+ include ::Google::Protobuf::MessageExts
135
+ extend ::Google::Protobuf::MessageExts::ClassMethods
136
+ end
122
137
  end
123
138
 
124
139
  # Metadata for a create analysis operation.
@@ -162,10 +177,10 @@ module Google
162
177
  # Required. The parent resource of the conversation.
163
178
  # @!attribute [rw] page_size
164
179
  # @return [::Integer]
165
- # The maximum number of conversations to return in the response. If this
166
- # value is zero, the service will select a default size. A call might return
167
- # fewer objects than requested. A non-empty `next_page_token` in the response
168
- # indicates that more data is available.
180
+ # The maximum number of conversations to return in the response. A valid page
181
+ # size ranges from 0 to 1,000 inclusive. If the page size is zero or
182
+ # unspecified, a default page size of 100 will be chosen. Note that a call
183
+ # might return fewer results than the requested page size.
169
184
  # @!attribute [rw] page_token
170
185
  # @return [::String]
171
186
  # The value returned by the last `ListConversationsResponse`. This value
@@ -189,8 +204,9 @@ module Google
189
204
  # The conversations that match the request.
190
205
  # @!attribute [rw] next_page_token
191
206
  # @return [::String]
192
- # A token, which can be sent as `page_token` to retrieve the next page.
193
- # If this field is omitted, there are no subsequent pages.
207
+ # A token which can be sent as `page_token` to retrieve the next page. If
208
+ # this field is set, it means there is another page available. If it is not
209
+ # set, it means no other pages are available.
194
210
  class ListConversationsResponse
195
211
  include ::Google::Protobuf::MessageExts
196
212
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -329,9 +345,9 @@ module Google
329
345
  # the resource project will be used.
330
346
  # @!attribute [rw] dataset
331
347
  # @return [::String]
332
- # Required. The name of the BigQuery dataset that the snapshot result should be
333
- # exported to. If this dataset does not exist, the export call returns an
334
- # INVALID_ARGUMENT error.
348
+ # Required. The name of the BigQuery dataset that the snapshot result
349
+ # should be exported to. If this dataset does not exist, the export call
350
+ # returns an INVALID_ARGUMENT error.
335
351
  # @!attribute [rw] table
336
352
  # @return [::String]
337
353
  # The BigQuery table name to which the insights data should be written.
@@ -579,10 +595,10 @@ module Google
579
595
  # Request to create a phrase matcher.
580
596
  # @!attribute [rw] parent
581
597
  # @return [::String]
582
- # Required. The parent resource of the phrase matcher. Required. The location to create
583
- # a phrase matcher for.
584
- # Format: `projects/<Project ID>/locations/<Location ID>` or
585
- # `projects/<Project Number>/locations/<Location ID>`
598
+ # Required. The parent resource of the phrase matcher. Required. The location
599
+ # to create a phrase matcher for. Format: `projects/<Project
600
+ # ID>/locations/<Location ID>` or `projects/<Project
601
+ # Number>/locations/<Location ID>`
586
602
  # @!attribute [rw] phrase_matcher
587
603
  # @return [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher]
588
604
  # Required. The phrase matcher resource to create.
@@ -646,6 +662,18 @@ module Google
646
662
  extend ::Google::Protobuf::MessageExts::ClassMethods
647
663
  end
648
664
 
665
+ # The request to update a phrase matcher.
666
+ # @!attribute [rw] phrase_matcher
667
+ # @return [::Google::Cloud::ContactCenterInsights::V1::PhraseMatcher]
668
+ # Required. The new values for the phrase matcher.
669
+ # @!attribute [rw] update_mask
670
+ # @return [::Google::Protobuf::FieldMask]
671
+ # The list of fields to be updated.
672
+ class UpdatePhraseMatcherRequest
673
+ include ::Google::Protobuf::MessageExts
674
+ extend ::Google::Protobuf::MessageExts::ClassMethods
675
+ end
676
+
649
677
  # The request to get project-level settings.
650
678
  # @!attribute [rw] name
651
679
  # @return [::String]
@@ -658,7 +686,7 @@ module Google
658
686
  # The request to update project-level settings.
659
687
  # @!attribute [rw] settings
660
688
  # @return [::Google::Cloud::ContactCenterInsights::V1::Settings]
661
- # Required. The new values for the conversation.
689
+ # Required. The new settings values.
662
690
  # @!attribute [rw] update_mask
663
691
  # @return [::Google::Protobuf::FieldMask]
664
692
  # Required. The list of fields to be updated.
@@ -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.
@@ -350,6 +369,10 @@ module Google
350
369
  # @return [::Float]
351
370
  # Score indicating the likelihood of the issue assignment.
352
371
  # currently bounded on [0,1].
372
+ # @!attribute [rw] display_name
373
+ # @return [::String]
374
+ # Immutable. Display name of the assigned issue. This field is set at time of analyis
375
+ # and immutable since then.
353
376
  class IssueAssignment
354
377
  include ::Google::Protobuf::MessageExts
355
378
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -666,10 +689,16 @@ module Google
666
689
  # Configs for the input data used to create the issue model.
667
690
  # @!attribute [rw] medium
668
691
  # @return [::Google::Cloud::ContactCenterInsights::V1::Conversation::Medium]
669
- # 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`.
670
695
  # @!attribute [r] training_conversations_count
671
696
  # @return [::Integer]
672
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.
673
702
  class InputDataConfig
674
703
  include ::Google::Protobuf::MessageExts
675
704
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -742,6 +771,9 @@ module Google
742
771
  # @!attribute [rw] labeled_conversations_count
743
772
  # @return [::Integer]
744
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.
745
777
  class IssueStats
746
778
  include ::Google::Protobuf::MessageExts
747
779
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -797,6 +829,9 @@ module Google
797
829
  # The role whose utterances the phrase matcher should be matched
798
830
  # against. If the role is ROLE_UNSPECIFIED it will be matched against any
799
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.
800
835
  class PhraseMatcher
801
836
  include ::Google::Protobuf::MessageExts
802
837
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1180,8 +1215,12 @@ module Google
1180
1215
  # A user-specified ID representing the participant.
1181
1216
  # @!attribute [rw] dialogflow_participant
1182
1217
  # @return [::String]
1218
+ # Deprecated. Use `dialogflow_participant_name` instead.
1183
1219
  # The name of the Dialogflow participant. Format:
1184
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.
1185
1224
  # @!attribute [rw] role
1186
1225
  # @return [::Google::Cloud::ContactCenterInsights::V1::ConversationParticipant::Role]
1187
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.1.1
4
+ version: 0.5.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-25 00:00:00.000000000 Z
11
+ date: 2021-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common