google-apis-contactcenterinsights_v1 0.23.0 → 0.25.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1118,37 +1118,6 @@ module Google
1118
1118
  end
1119
1119
  end
1120
1120
 
1121
- # Metadata for creating an issue.
1122
- class GoogleCloudContactcenterinsightsV1CreateIssueMetadata
1123
- include Google::Apis::Core::Hashable
1124
-
1125
- # Output only. The time the operation was created.
1126
- # Corresponds to the JSON property `createTime`
1127
- # @return [String]
1128
- attr_accessor :create_time
1129
-
1130
- # Output only. The time the operation finished running.
1131
- # Corresponds to the JSON property `endTime`
1132
- # @return [String]
1133
- attr_accessor :end_time
1134
-
1135
- # The request to create an issue.
1136
- # Corresponds to the JSON property `request`
1137
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1CreateIssueRequest]
1138
- attr_accessor :request
1139
-
1140
- def initialize(**args)
1141
- update!(**args)
1142
- end
1143
-
1144
- # Update properties of this object
1145
- def update!(**args)
1146
- @create_time = args[:create_time] if args.key?(:create_time)
1147
- @end_time = args[:end_time] if args.key?(:end_time)
1148
- @request = args[:request] if args.key?(:request)
1149
- end
1150
- end
1151
-
1152
1121
  # Metadata for creating an issue model.
1153
1122
  class GoogleCloudContactcenterinsightsV1CreateIssueModelMetadata
1154
1123
  include Google::Apis::Core::Hashable
@@ -1205,31 +1174,6 @@ module Google
1205
1174
  end
1206
1175
  end
1207
1176
 
1208
- # The request to create an issue.
1209
- class GoogleCloudContactcenterinsightsV1CreateIssueRequest
1210
- include Google::Apis::Core::Hashable
1211
-
1212
- # The issue resource.
1213
- # Corresponds to the JSON property `issue`
1214
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Issue]
1215
- attr_accessor :issue
1216
-
1217
- # Required. The parent resource of the issue.
1218
- # Corresponds to the JSON property `parent`
1219
- # @return [String]
1220
- attr_accessor :parent
1221
-
1222
- def initialize(**args)
1223
- update!(**args)
1224
- end
1225
-
1226
- # Update properties of this object
1227
- def update!(**args)
1228
- @issue = args[:issue] if args.key?(:issue)
1229
- @parent = args[:parent] if args.key?(:parent)
1230
- end
1231
- end
1232
-
1233
1177
  # Metadata for deleting an issue model.
1234
1178
  class GoogleCloudContactcenterinsightsV1DeleteIssueModelMetadata
1235
1179
  include Google::Apis::Core::Hashable
@@ -2616,6 +2560,33 @@ module Google
2616
2560
  end
2617
2561
  end
2618
2562
 
2563
+ # DLP resources used for redaction while ingesting conversations.
2564
+ class GoogleCloudContactcenterinsightsV1RedactionConfig
2565
+ include Google::Apis::Core::Hashable
2566
+
2567
+ # The fully-qualified DLP deidentify template resource name. Format: `projects/`
2568
+ # project`/deidentifyTemplates/`template``
2569
+ # Corresponds to the JSON property `deidentifyTemplate`
2570
+ # @return [String]
2571
+ attr_accessor :deidentify_template
2572
+
2573
+ # The fully-qualified DLP inspect template resource name. Format: `projects/`
2574
+ # project`/inspectTemplates/`template``
2575
+ # Corresponds to the JSON property `inspectTemplate`
2576
+ # @return [String]
2577
+ attr_accessor :inspect_template
2578
+
2579
+ def initialize(**args)
2580
+ update!(**args)
2581
+ end
2582
+
2583
+ # Update properties of this object
2584
+ def update!(**args)
2585
+ @deidentify_template = args[:deidentify_template] if args.key?(:deidentify_template)
2586
+ @inspect_template = args[:inspect_template] if args.key?(:inspect_template)
2587
+ end
2588
+ end
2589
+
2619
2590
  # An annotation that was generated during the customer and agent interaction.
2620
2591
  class GoogleCloudContactcenterinsightsV1RuntimeAnnotation
2621
2592
  include Google::Apis::Core::Hashable
@@ -2765,6 +2736,11 @@ module Google
2765
2736
  # @return [Hash<String,String>]
2766
2737
  attr_accessor :pubsub_notification_settings
2767
2738
 
2739
+ # DLP resources used for redaction while ingesting conversations.
2740
+ # Corresponds to the JSON property `redactionConfig`
2741
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1RedactionConfig]
2742
+ attr_accessor :redaction_config
2743
+
2768
2744
  # Output only. The time at which the settings were last updated.
2769
2745
  # Corresponds to the JSON property `updateTime`
2770
2746
  # @return [String]
@@ -2782,6 +2758,7 @@ module Google
2782
2758
  @language_code = args[:language_code] if args.key?(:language_code)
2783
2759
  @name = args[:name] if args.key?(:name)
2784
2760
  @pubsub_notification_settings = args[:pubsub_notification_settings] if args.key?(:pubsub_notification_settings)
2761
+ @redaction_config = args[:redaction_config] if args.key?(:redaction_config)
2785
2762
  @update_time = args[:update_time] if args.key?(:update_time)
2786
2763
  end
2787
2764
  end
@@ -2977,6 +2954,90 @@ module Google
2977
2954
  end
2978
2955
  end
2979
2956
 
2957
+ # The metadata for an UploadConversation operation.
2958
+ class GoogleCloudContactcenterinsightsV1UploadConversationMetadata
2959
+ include Google::Apis::Core::Hashable
2960
+
2961
+ # Output only. The operation name for a successfully created analysis operation,
2962
+ # if any.
2963
+ # Corresponds to the JSON property `analysisOperation`
2964
+ # @return [String]
2965
+ attr_accessor :analysis_operation
2966
+
2967
+ # DLP resources used for redaction while ingesting conversations.
2968
+ # Corresponds to the JSON property `appliedRedactionConfig`
2969
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1RedactionConfig]
2970
+ attr_accessor :applied_redaction_config
2971
+
2972
+ # Output only. The time the operation was created.
2973
+ # Corresponds to the JSON property `createTime`
2974
+ # @return [String]
2975
+ attr_accessor :create_time
2976
+
2977
+ # Output only. The time the operation finished running.
2978
+ # Corresponds to the JSON property `endTime`
2979
+ # @return [String]
2980
+ attr_accessor :end_time
2981
+
2982
+ # Request to upload a conversation.
2983
+ # Corresponds to the JSON property `request`
2984
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1UploadConversationRequest]
2985
+ attr_accessor :request
2986
+
2987
+ def initialize(**args)
2988
+ update!(**args)
2989
+ end
2990
+
2991
+ # Update properties of this object
2992
+ def update!(**args)
2993
+ @analysis_operation = args[:analysis_operation] if args.key?(:analysis_operation)
2994
+ @applied_redaction_config = args[:applied_redaction_config] if args.key?(:applied_redaction_config)
2995
+ @create_time = args[:create_time] if args.key?(:create_time)
2996
+ @end_time = args[:end_time] if args.key?(:end_time)
2997
+ @request = args[:request] if args.key?(:request)
2998
+ end
2999
+ end
3000
+
3001
+ # Request to upload a conversation.
3002
+ class GoogleCloudContactcenterinsightsV1UploadConversationRequest
3003
+ include Google::Apis::Core::Hashable
3004
+
3005
+ # The conversation resource.
3006
+ # Corresponds to the JSON property `conversation`
3007
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1Conversation]
3008
+ attr_accessor :conversation
3009
+
3010
+ # Optional. A unique ID for the new conversation. This ID will become the final
3011
+ # component of the conversation's resource name. If no ID is specified, a server-
3012
+ # generated ID will be used. This value should be 4-64 characters and must match
3013
+ # the regular expression `^[a-z0-9-]`4,64`$`. Valid characters are `a-z-`
3014
+ # Corresponds to the JSON property `conversationId`
3015
+ # @return [String]
3016
+ attr_accessor :conversation_id
3017
+
3018
+ # Required. The parent resource of the conversation.
3019
+ # Corresponds to the JSON property `parent`
3020
+ # @return [String]
3021
+ attr_accessor :parent
3022
+
3023
+ # DLP resources used for redaction while ingesting conversations.
3024
+ # Corresponds to the JSON property `redactionConfig`
3025
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1RedactionConfig]
3026
+ attr_accessor :redaction_config
3027
+
3028
+ def initialize(**args)
3029
+ update!(**args)
3030
+ end
3031
+
3032
+ # Update properties of this object
3033
+ def update!(**args)
3034
+ @conversation = args[:conversation] if args.key?(:conversation)
3035
+ @conversation_id = args[:conversation_id] if args.key?(:conversation_id)
3036
+ @parent = args[:parent] if args.key?(:parent)
3037
+ @redaction_config = args[:redaction_config] if args.key?(:redaction_config)
3038
+ end
3039
+ end
3040
+
2980
3041
  # The View resource.
2981
3042
  class GoogleCloudContactcenterinsightsV1View
2982
3043
  include Google::Apis::Core::Hashable
@@ -3021,6 +3082,152 @@ module Google
3021
3082
  end
3022
3083
  end
3023
3084
 
3085
+ # The analysis resource.
3086
+ class GoogleCloudContactcenterinsightsV1alpha1Analysis
3087
+ include Google::Apis::Core::Hashable
3088
+
3089
+ # The result of an analysis.
3090
+ # Corresponds to the JSON property `analysisResult`
3091
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnalysisResult]
3092
+ attr_accessor :analysis_result
3093
+
3094
+ # Selector of all available annotators and phrase matchers to run.
3095
+ # Corresponds to the JSON property `annotatorSelector`
3096
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector]
3097
+ attr_accessor :annotator_selector
3098
+
3099
+ # Output only. The time at which the analysis was created, which occurs when the
3100
+ # long-running operation completes.
3101
+ # Corresponds to the JSON property `createTime`
3102
+ # @return [String]
3103
+ attr_accessor :create_time
3104
+
3105
+ # Immutable. The resource name of the analysis. Format: projects/`project`/
3106
+ # locations/`location`/conversations/`conversation`/analyses/`analysis`
3107
+ # Corresponds to the JSON property `name`
3108
+ # @return [String]
3109
+ attr_accessor :name
3110
+
3111
+ # Output only. The time at which the analysis was requested.
3112
+ # Corresponds to the JSON property `requestTime`
3113
+ # @return [String]
3114
+ attr_accessor :request_time
3115
+
3116
+ def initialize(**args)
3117
+ update!(**args)
3118
+ end
3119
+
3120
+ # Update properties of this object
3121
+ def update!(**args)
3122
+ @analysis_result = args[:analysis_result] if args.key?(:analysis_result)
3123
+ @annotator_selector = args[:annotator_selector] if args.key?(:annotator_selector)
3124
+ @create_time = args[:create_time] if args.key?(:create_time)
3125
+ @name = args[:name] if args.key?(:name)
3126
+ @request_time = args[:request_time] if args.key?(:request_time)
3127
+ end
3128
+ end
3129
+
3130
+ # The result of an analysis.
3131
+ class GoogleCloudContactcenterinsightsV1alpha1AnalysisResult
3132
+ include Google::Apis::Core::Hashable
3133
+
3134
+ # Call-specific metadata created during analysis.
3135
+ # Corresponds to the JSON property `callAnalysisMetadata`
3136
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata]
3137
+ attr_accessor :call_analysis_metadata
3138
+
3139
+ # The time at which the analysis ended.
3140
+ # Corresponds to the JSON property `endTime`
3141
+ # @return [String]
3142
+ attr_accessor :end_time
3143
+
3144
+ def initialize(**args)
3145
+ update!(**args)
3146
+ end
3147
+
3148
+ # Update properties of this object
3149
+ def update!(**args)
3150
+ @call_analysis_metadata = args[:call_analysis_metadata] if args.key?(:call_analysis_metadata)
3151
+ @end_time = args[:end_time] if args.key?(:end_time)
3152
+ end
3153
+ end
3154
+
3155
+ # Call-specific metadata created during analysis.
3156
+ class GoogleCloudContactcenterinsightsV1alpha1AnalysisResultCallAnalysisMetadata
3157
+ include Google::Apis::Core::Hashable
3158
+
3159
+ # A list of call annotations that apply to this call.
3160
+ # Corresponds to the JSON property `annotations`
3161
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1CallAnnotation>]
3162
+ attr_accessor :annotations
3163
+
3164
+ # All the entities in the call.
3165
+ # Corresponds to the JSON property `entities`
3166
+ # @return [Hash<String,Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1Entity>]
3167
+ attr_accessor :entities
3168
+
3169
+ # All the matched intents in the call.
3170
+ # Corresponds to the JSON property `intents`
3171
+ # @return [Hash<String,Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1Intent>]
3172
+ attr_accessor :intents
3173
+
3174
+ # Issue Modeling result on a conversation.
3175
+ # Corresponds to the JSON property `issueModelResult`
3176
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModelResult]
3177
+ attr_accessor :issue_model_result
3178
+
3179
+ # All the matched phrase matchers in the call.
3180
+ # Corresponds to the JSON property `phraseMatchers`
3181
+ # @return [Hash<String,Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData>]
3182
+ attr_accessor :phrase_matchers
3183
+
3184
+ # Overall conversation-level sentiment for each channel of the call.
3185
+ # Corresponds to the JSON property `sentiments`
3186
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment>]
3187
+ attr_accessor :sentiments
3188
+
3189
+ def initialize(**args)
3190
+ update!(**args)
3191
+ end
3192
+
3193
+ # Update properties of this object
3194
+ def update!(**args)
3195
+ @annotations = args[:annotations] if args.key?(:annotations)
3196
+ @entities = args[:entities] if args.key?(:entities)
3197
+ @intents = args[:intents] if args.key?(:intents)
3198
+ @issue_model_result = args[:issue_model_result] if args.key?(:issue_model_result)
3199
+ @phrase_matchers = args[:phrase_matchers] if args.key?(:phrase_matchers)
3200
+ @sentiments = args[:sentiments] if args.key?(:sentiments)
3201
+ end
3202
+ end
3203
+
3204
+ # A point in a conversation that marks the start or the end of an annotation.
3205
+ class GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary
3206
+ include Google::Apis::Core::Hashable
3207
+
3208
+ # The index in the sequence of transcribed pieces of the conversation where the
3209
+ # boundary is located. This index starts at zero.
3210
+ # Corresponds to the JSON property `transcriptIndex`
3211
+ # @return [Fixnum]
3212
+ attr_accessor :transcript_index
3213
+
3214
+ # The word index of this boundary with respect to the first word in the
3215
+ # transcript piece. This index starts at zero.
3216
+ # Corresponds to the JSON property `wordIndex`
3217
+ # @return [Fixnum]
3218
+ attr_accessor :word_index
3219
+
3220
+ def initialize(**args)
3221
+ update!(**args)
3222
+ end
3223
+
3224
+ # Update properties of this object
3225
+ def update!(**args)
3226
+ @transcript_index = args[:transcript_index] if args.key?(:transcript_index)
3227
+ @word_index = args[:word_index] if args.key?(:word_index)
3228
+ end
3229
+ end
3230
+
3024
3231
  # Selector of all available annotators and phrase matchers to run.
3025
3232
  class GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector
3026
3233
  include Google::Apis::Core::Hashable
@@ -3104,13 +3311,101 @@ module Google
3104
3311
  end
3105
3312
  end
3106
3313
 
3107
- # The metadata for a bulk analyze conversations operation.
3108
- class GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata
3314
+ # The feedback that the customer has about a certain answer in the conversation.
3315
+ class GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback
3109
3316
  include Google::Apis::Core::Hashable
3110
3317
 
3111
- # The number of requested analyses that have completed successfully so far.
3112
- # Corresponds to the JSON property `completedAnalysesCount`
3113
- # @return [Fixnum]
3318
+ # Indicates whether an answer or item was clicked by the human agent.
3319
+ # Corresponds to the JSON property `clicked`
3320
+ # @return [Boolean]
3321
+ attr_accessor :clicked
3322
+ alias_method :clicked?, :clicked
3323
+
3324
+ # The correctness level of an answer.
3325
+ # Corresponds to the JSON property `correctnessLevel`
3326
+ # @return [String]
3327
+ attr_accessor :correctness_level
3328
+
3329
+ # Indicates whether an answer or item was displayed to the human agent in the
3330
+ # agent desktop UI.
3331
+ # Corresponds to the JSON property `displayed`
3332
+ # @return [Boolean]
3333
+ attr_accessor :displayed
3334
+ alias_method :displayed?, :displayed
3335
+
3336
+ def initialize(**args)
3337
+ update!(**args)
3338
+ end
3339
+
3340
+ # Update properties of this object
3341
+ def update!(**args)
3342
+ @clicked = args[:clicked] if args.key?(:clicked)
3343
+ @correctness_level = args[:correctness_level] if args.key?(:correctness_level)
3344
+ @displayed = args[:displayed] if args.key?(:displayed)
3345
+ end
3346
+ end
3347
+
3348
+ # Agent Assist Article Suggestion data.
3349
+ class GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData
3350
+ include Google::Apis::Core::Hashable
3351
+
3352
+ # The system's confidence score that this article is a good match for this
3353
+ # conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely
3354
+ # certain).
3355
+ # Corresponds to the JSON property `confidenceScore`
3356
+ # @return [Float]
3357
+ attr_accessor :confidence_score
3358
+
3359
+ # Map that contains metadata about the Article Suggestion and the document that
3360
+ # it originates from.
3361
+ # Corresponds to the JSON property `metadata`
3362
+ # @return [Hash<String,String>]
3363
+ attr_accessor :metadata
3364
+
3365
+ # The name of the answer record. Format: projects/`project`/locations/`location`/
3366
+ # answerRecords/`answer_record`
3367
+ # Corresponds to the JSON property `queryRecord`
3368
+ # @return [String]
3369
+ attr_accessor :query_record
3370
+
3371
+ # The knowledge document that this answer was extracted from. Format: projects/`
3372
+ # project`/knowledgeBases/`knowledge_base`/documents/`document`
3373
+ # Corresponds to the JSON property `source`
3374
+ # @return [String]
3375
+ attr_accessor :source
3376
+
3377
+ # Article title.
3378
+ # Corresponds to the JSON property `title`
3379
+ # @return [String]
3380
+ attr_accessor :title
3381
+
3382
+ # Article URI.
3383
+ # Corresponds to the JSON property `uri`
3384
+ # @return [String]
3385
+ attr_accessor :uri
3386
+
3387
+ def initialize(**args)
3388
+ update!(**args)
3389
+ end
3390
+
3391
+ # Update properties of this object
3392
+ def update!(**args)
3393
+ @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
3394
+ @metadata = args[:metadata] if args.key?(:metadata)
3395
+ @query_record = args[:query_record] if args.key?(:query_record)
3396
+ @source = args[:source] if args.key?(:source)
3397
+ @title = args[:title] if args.key?(:title)
3398
+ @uri = args[:uri] if args.key?(:uri)
3399
+ end
3400
+ end
3401
+
3402
+ # The metadata for a bulk analyze conversations operation.
3403
+ class GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata
3404
+ include Google::Apis::Core::Hashable
3405
+
3406
+ # The number of requested analyses that have completed successfully so far.
3407
+ # Corresponds to the JSON property `completedAnalysesCount`
3408
+ # @return [Fixnum]
3114
3409
  attr_accessor :completed_analyses_count
3115
3410
 
3116
3411
  # The time the operation was created.
@@ -3216,61 +3511,69 @@ module Google
3216
3511
  end
3217
3512
  end
3218
3513
 
3219
- # Metadata for a create analysis operation.
3220
- class GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata
3514
+ # A piece of metadata that applies to a window of a call.
3515
+ class GoogleCloudContactcenterinsightsV1alpha1CallAnnotation
3221
3516
  include Google::Apis::Core::Hashable
3222
3517
 
3223
- # Selector of all available annotators and phrase matchers to run.
3224
- # Corresponds to the JSON property `annotatorSelector`
3225
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector]
3226
- attr_accessor :annotator_selector
3518
+ # A point in a conversation that marks the start or the end of an annotation.
3519
+ # Corresponds to the JSON property `annotationEndBoundary`
3520
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary]
3521
+ attr_accessor :annotation_end_boundary
3227
3522
 
3228
- # Output only. The Conversation that this Analysis Operation belongs to.
3229
- # Corresponds to the JSON property `conversation`
3230
- # @return [String]
3231
- attr_accessor :conversation
3523
+ # A point in a conversation that marks the start or the end of an annotation.
3524
+ # Corresponds to the JSON property `annotationStartBoundary`
3525
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary]
3526
+ attr_accessor :annotation_start_boundary
3232
3527
 
3233
- # Output only. The time the operation was created.
3234
- # Corresponds to the JSON property `createTime`
3235
- # @return [String]
3236
- attr_accessor :create_time
3528
+ # The channel of the audio where the annotation occurs. For single-channel audio,
3529
+ # this field is not populated.
3530
+ # Corresponds to the JSON property `channelTag`
3531
+ # @return [Fixnum]
3532
+ attr_accessor :channel_tag
3237
3533
 
3238
- # Output only. The time the operation finished running.
3239
- # Corresponds to the JSON property `endTime`
3240
- # @return [String]
3241
- attr_accessor :end_time
3534
+ # The data for an entity mention annotation. This represents a mention of an `
3535
+ # Entity` in the conversation.
3536
+ # Corresponds to the JSON property `entityMentionData`
3537
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1EntityMentionData]
3538
+ attr_accessor :entity_mention_data
3242
3539
 
3243
- def initialize(**args)
3244
- update!(**args)
3245
- end
3540
+ # The data for a hold annotation.
3541
+ # Corresponds to the JSON property `holdData`
3542
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1HoldData]
3543
+ attr_accessor :hold_data
3246
3544
 
3247
- # Update properties of this object
3248
- def update!(**args)
3249
- @annotator_selector = args[:annotator_selector] if args.key?(:annotator_selector)
3250
- @conversation = args[:conversation] if args.key?(:conversation)
3251
- @create_time = args[:create_time] if args.key?(:create_time)
3252
- @end_time = args[:end_time] if args.key?(:end_time)
3253
- end
3254
- end
3545
+ # The data for an intent match. Represents an intent match for a text segment in
3546
+ # the conversation. A text segment can be part of a sentence, a complete
3547
+ # sentence, or an utterance with multiple sentences.
3548
+ # Corresponds to the JSON property `intentMatchData`
3549
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IntentMatchData]
3550
+ attr_accessor :intent_match_data
3255
3551
 
3256
- # Metadata for creating an issue model.
3257
- class GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata
3258
- include Google::Apis::Core::Hashable
3552
+ # The data for an interruption annotation.
3553
+ # Corresponds to the JSON property `interruptionData`
3554
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1InterruptionData]
3555
+ attr_accessor :interruption_data
3259
3556
 
3260
- # Output only. The time the operation was created.
3261
- # Corresponds to the JSON property `createTime`
3262
- # @return [String]
3263
- attr_accessor :create_time
3557
+ # The data for an issue match annotation.
3558
+ # Corresponds to the JSON property `issueMatchData`
3559
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueMatchData]
3560
+ attr_accessor :issue_match_data
3264
3561
 
3265
- # Output only. The time the operation finished running.
3266
- # Corresponds to the JSON property `endTime`
3267
- # @return [String]
3268
- attr_accessor :end_time
3562
+ # The data for a matched phrase matcher. Represents information identifying a
3563
+ # phrase matcher for a given match.
3564
+ # Corresponds to the JSON property `phraseMatchData`
3565
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData]
3566
+ attr_accessor :phrase_match_data
3269
3567
 
3270
- # The request to create an issue model.
3271
- # Corresponds to the JSON property `request`
3272
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest]
3273
- attr_accessor :request
3568
+ # The data for a sentiment annotation.
3569
+ # Corresponds to the JSON property `sentimentData`
3570
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SentimentData]
3571
+ attr_accessor :sentiment_data
3572
+
3573
+ # The data for a silence annotation.
3574
+ # Corresponds to the JSON property `silenceData`
3575
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SilenceData]
3576
+ attr_accessor :silence_data
3274
3577
 
3275
3578
  def initialize(**args)
3276
3579
  update!(**args)
@@ -3278,105 +3581,126 @@ module Google
3278
3581
 
3279
3582
  # Update properties of this object
3280
3583
  def update!(**args)
3281
- @create_time = args[:create_time] if args.key?(:create_time)
3282
- @end_time = args[:end_time] if args.key?(:end_time)
3283
- @request = args[:request] if args.key?(:request)
3584
+ @annotation_end_boundary = args[:annotation_end_boundary] if args.key?(:annotation_end_boundary)
3585
+ @annotation_start_boundary = args[:annotation_start_boundary] if args.key?(:annotation_start_boundary)
3586
+ @channel_tag = args[:channel_tag] if args.key?(:channel_tag)
3587
+ @entity_mention_data = args[:entity_mention_data] if args.key?(:entity_mention_data)
3588
+ @hold_data = args[:hold_data] if args.key?(:hold_data)
3589
+ @intent_match_data = args[:intent_match_data] if args.key?(:intent_match_data)
3590
+ @interruption_data = args[:interruption_data] if args.key?(:interruption_data)
3591
+ @issue_match_data = args[:issue_match_data] if args.key?(:issue_match_data)
3592
+ @phrase_match_data = args[:phrase_match_data] if args.key?(:phrase_match_data)
3593
+ @sentiment_data = args[:sentiment_data] if args.key?(:sentiment_data)
3594
+ @silence_data = args[:silence_data] if args.key?(:silence_data)
3284
3595
  end
3285
3596
  end
3286
3597
 
3287
- # The request to create an issue model.
3288
- class GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest
3598
+ # The conversation resource.
3599
+ class GoogleCloudContactcenterinsightsV1alpha1Conversation
3289
3600
  include Google::Apis::Core::Hashable
3290
3601
 
3291
- # The issue model resource.
3292
- # Corresponds to the JSON property `issueModel`
3293
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModel]
3294
- attr_accessor :issue_model
3295
-
3296
- # Required. The parent resource of the issue model.
3297
- # Corresponds to the JSON property `parent`
3602
+ # An opaque, user-specified string representing the human agent who handled the
3603
+ # conversation.
3604
+ # Corresponds to the JSON property `agentId`
3298
3605
  # @return [String]
3299
- attr_accessor :parent
3300
-
3301
- def initialize(**args)
3302
- update!(**args)
3303
- end
3304
-
3305
- # Update properties of this object
3306
- def update!(**args)
3307
- @issue_model = args[:issue_model] if args.key?(:issue_model)
3308
- @parent = args[:parent] if args.key?(:parent)
3309
- end
3310
- end
3606
+ attr_accessor :agent_id
3311
3607
 
3312
- # Metadata for deleting an issue model.
3313
- class GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata
3314
- include Google::Apis::Core::Hashable
3608
+ # Call-specific metadata.
3609
+ # Corresponds to the JSON property `callMetadata`
3610
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata]
3611
+ attr_accessor :call_metadata
3315
3612
 
3316
- # Output only. The time the operation was created.
3613
+ # Output only. The time at which the conversation was created.
3317
3614
  # Corresponds to the JSON property `createTime`
3318
3615
  # @return [String]
3319
3616
  attr_accessor :create_time
3320
3617
 
3321
- # Output only. The time the operation finished running.
3322
- # Corresponds to the JSON property `endTime`
3618
+ # The conversation source, which is a combination of transcript and audio.
3619
+ # Corresponds to the JSON property `dataSource`
3620
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource]
3621
+ attr_accessor :data_source
3622
+
3623
+ # Output only. All the matched Dialogflow intents in the call. The key
3624
+ # corresponds to a Dialogflow intent, format: projects/`project`/agent/`agent`/
3625
+ # intents/`intent`
3626
+ # Corresponds to the JSON property `dialogflowIntents`
3627
+ # @return [Hash<String,Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent>]
3628
+ attr_accessor :dialogflow_intents
3629
+
3630
+ # Output only. The duration of the conversation.
3631
+ # Corresponds to the JSON property `duration`
3323
3632
  # @return [String]
3324
- attr_accessor :end_time
3633
+ attr_accessor :duration
3325
3634
 
3326
- # The request to delete an issue model.
3327
- # Corresponds to the JSON property `request`
3328
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest]
3329
- attr_accessor :request
3635
+ # The time at which this conversation should expire. After this time, the
3636
+ # conversation data and any associated analyses will be deleted.
3637
+ # Corresponds to the JSON property `expireTime`
3638
+ # @return [String]
3639
+ attr_accessor :expire_time
3330
3640
 
3331
- def initialize(**args)
3332
- update!(**args)
3333
- end
3641
+ # A map for the user to specify any custom fields. A maximum of 20 labels per
3642
+ # conversation is allowed, with a maximum of 256 characters per entry.
3643
+ # Corresponds to the JSON property `labels`
3644
+ # @return [Hash<String,String>]
3645
+ attr_accessor :labels
3334
3646
 
3335
- # Update properties of this object
3336
- def update!(**args)
3337
- @create_time = args[:create_time] if args.key?(:create_time)
3338
- @end_time = args[:end_time] if args.key?(:end_time)
3339
- @request = args[:request] if args.key?(:request)
3340
- end
3341
- end
3647
+ # A user-specified language code for the conversation.
3648
+ # Corresponds to the JSON property `languageCode`
3649
+ # @return [String]
3650
+ attr_accessor :language_code
3342
3651
 
3343
- # The request to delete an issue model.
3344
- class GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest
3345
- include Google::Apis::Core::Hashable
3652
+ # The analysis resource.
3653
+ # Corresponds to the JSON property `latestAnalysis`
3654
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1Analysis]
3655
+ attr_accessor :latest_analysis
3346
3656
 
3347
- # Required. The name of the issue model to delete.
3657
+ # Immutable. The conversation medium, if unspecified will default to PHONE_CALL.
3658
+ # Corresponds to the JSON property `medium`
3659
+ # @return [String]
3660
+ attr_accessor :medium
3661
+
3662
+ # Immutable. The resource name of the conversation. Format: projects/`project`/
3663
+ # locations/`location`/conversations/`conversation`
3348
3664
  # Corresponds to the JSON property `name`
3349
3665
  # @return [String]
3350
3666
  attr_accessor :name
3351
3667
 
3352
- def initialize(**args)
3353
- update!(**args)
3354
- end
3355
-
3356
- # Update properties of this object
3357
- def update!(**args)
3358
- @name = args[:name] if args.key?(:name)
3359
- end
3360
- end
3668
+ # Obfuscated user ID which the customer sent to us.
3669
+ # Corresponds to the JSON property `obfuscatedUserId`
3670
+ # @return [String]
3671
+ attr_accessor :obfuscated_user_id
3361
3672
 
3362
- # Metadata for deploying an issue model.
3363
- class GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata
3364
- include Google::Apis::Core::Hashable
3673
+ # Output only. The annotations that were generated during the customer and agent
3674
+ # interaction.
3675
+ # Corresponds to the JSON property `runtimeAnnotations`
3676
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation>]
3677
+ attr_accessor :runtime_annotations
3365
3678
 
3366
- # Output only. The time the operation was created.
3367
- # Corresponds to the JSON property `createTime`
3679
+ # The time at which the conversation started.
3680
+ # Corresponds to the JSON property `startTime`
3368
3681
  # @return [String]
3369
- attr_accessor :create_time
3682
+ attr_accessor :start_time
3370
3683
 
3371
- # Output only. The time the operation finished running.
3372
- # Corresponds to the JSON property `endTime`
3684
+ # A message representing the transcript of a conversation.
3685
+ # Corresponds to the JSON property `transcript`
3686
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript]
3687
+ attr_accessor :transcript
3688
+
3689
+ # Input only. The TTL for this resource. If specified, then this TTL will be
3690
+ # used to calculate the expire time.
3691
+ # Corresponds to the JSON property `ttl`
3373
3692
  # @return [String]
3374
- attr_accessor :end_time
3693
+ attr_accessor :ttl
3375
3694
 
3376
- # The request to deploy an issue model.
3377
- # Corresponds to the JSON property `request`
3378
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest]
3379
- attr_accessor :request
3695
+ # Output only. The number of turns in the conversation.
3696
+ # Corresponds to the JSON property `turnCount`
3697
+ # @return [Fixnum]
3698
+ attr_accessor :turn_count
3699
+
3700
+ # Output only. The most recent time at which the conversation was updated.
3701
+ # Corresponds to the JSON property `updateTime`
3702
+ # @return [String]
3703
+ attr_accessor :update_time
3380
3704
 
3381
3705
  def initialize(**args)
3382
3706
  update!(**args)
@@ -3384,20 +3708,41 @@ module Google
3384
3708
 
3385
3709
  # Update properties of this object
3386
3710
  def update!(**args)
3711
+ @agent_id = args[:agent_id] if args.key?(:agent_id)
3712
+ @call_metadata = args[:call_metadata] if args.key?(:call_metadata)
3387
3713
  @create_time = args[:create_time] if args.key?(:create_time)
3388
- @end_time = args[:end_time] if args.key?(:end_time)
3389
- @request = args[:request] if args.key?(:request)
3714
+ @data_source = args[:data_source] if args.key?(:data_source)
3715
+ @dialogflow_intents = args[:dialogflow_intents] if args.key?(:dialogflow_intents)
3716
+ @duration = args[:duration] if args.key?(:duration)
3717
+ @expire_time = args[:expire_time] if args.key?(:expire_time)
3718
+ @labels = args[:labels] if args.key?(:labels)
3719
+ @language_code = args[:language_code] if args.key?(:language_code)
3720
+ @latest_analysis = args[:latest_analysis] if args.key?(:latest_analysis)
3721
+ @medium = args[:medium] if args.key?(:medium)
3722
+ @name = args[:name] if args.key?(:name)
3723
+ @obfuscated_user_id = args[:obfuscated_user_id] if args.key?(:obfuscated_user_id)
3724
+ @runtime_annotations = args[:runtime_annotations] if args.key?(:runtime_annotations)
3725
+ @start_time = args[:start_time] if args.key?(:start_time)
3726
+ @transcript = args[:transcript] if args.key?(:transcript)
3727
+ @ttl = args[:ttl] if args.key?(:ttl)
3728
+ @turn_count = args[:turn_count] if args.key?(:turn_count)
3729
+ @update_time = args[:update_time] if args.key?(:update_time)
3390
3730
  end
3391
3731
  end
3392
3732
 
3393
- # The request to deploy an issue model.
3394
- class GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest
3733
+ # Call-specific metadata.
3734
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata
3395
3735
  include Google::Apis::Core::Hashable
3396
3736
 
3397
- # Required. The issue model to deploy.
3398
- # Corresponds to the JSON property `name`
3399
- # @return [String]
3400
- attr_accessor :name
3737
+ # The audio channel that contains the agent.
3738
+ # Corresponds to the JSON property `agentChannel`
3739
+ # @return [Fixnum]
3740
+ attr_accessor :agent_channel
3741
+
3742
+ # The audio channel that contains the customer.
3743
+ # Corresponds to the JSON property `customerChannel`
3744
+ # @return [Fixnum]
3745
+ attr_accessor :customer_channel
3401
3746
 
3402
3747
  def initialize(**args)
3403
3748
  update!(**args)
@@ -3405,47 +3750,49 @@ module Google
3405
3750
 
3406
3751
  # Update properties of this object
3407
3752
  def update!(**args)
3408
- @name = args[:name] if args.key?(:name)
3753
+ @agent_channel = args[:agent_channel] if args.key?(:agent_channel)
3754
+ @customer_channel = args[:customer_channel] if args.key?(:customer_channel)
3409
3755
  end
3410
3756
  end
3411
3757
 
3412
- # The response to deploy an issue model.
3413
- class GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse
3758
+ # The conversation source, which is a combination of transcript and audio.
3759
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource
3414
3760
  include Google::Apis::Core::Hashable
3415
3761
 
3762
+ # A Dialogflow source of conversation data.
3763
+ # Corresponds to the JSON property `dialogflowSource`
3764
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1DialogflowSource]
3765
+ attr_accessor :dialogflow_source
3766
+
3767
+ # A Cloud Storage source of conversation data.
3768
+ # Corresponds to the JSON property `gcsSource`
3769
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GcsSource]
3770
+ attr_accessor :gcs_source
3771
+
3416
3772
  def initialize(**args)
3417
3773
  update!(**args)
3418
3774
  end
3419
3775
 
3420
3776
  # Update properties of this object
3421
3777
  def update!(**args)
3778
+ @dialogflow_source = args[:dialogflow_source] if args.key?(:dialogflow_source)
3779
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
3422
3780
  end
3423
3781
  end
3424
3782
 
3425
- # Metadata for an export insights operation.
3426
- class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata
3783
+ # One channel of conversation-level sentiment data.
3784
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment
3427
3785
  include Google::Apis::Core::Hashable
3428
3786
 
3429
- # Output only. The time the operation was created.
3430
- # Corresponds to the JSON property `createTime`
3431
- # @return [String]
3432
- attr_accessor :create_time
3433
-
3434
- # Output only. The time the operation finished running.
3435
- # Corresponds to the JSON property `endTime`
3436
- # @return [String]
3437
- attr_accessor :end_time
3438
-
3439
- # Partial errors during export operation that might cause the operation output
3440
- # to be incomplete.
3441
- # Corresponds to the JSON property `partialErrors`
3442
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
3443
- attr_accessor :partial_errors
3787
+ # The channel of the audio that the data applies to.
3788
+ # Corresponds to the JSON property `channelTag`
3789
+ # @return [Fixnum]
3790
+ attr_accessor :channel_tag
3444
3791
 
3445
- # The request to export insights.
3446
- # Corresponds to the JSON property `request`
3447
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest]
3448
- attr_accessor :request
3792
+ # The data for a sentiment annotation.
3793
+ # Corresponds to the JSON property `sentimentData`
3794
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SentimentData]
3795
+ attr_accessor :sentiment_data
3449
3796
 
3450
3797
  def initialize(**args)
3451
3798
  update!(**args)
@@ -3453,44 +3800,42 @@ module Google
3453
3800
 
3454
3801
  # Update properties of this object
3455
3802
  def update!(**args)
3456
- @create_time = args[:create_time] if args.key?(:create_time)
3457
- @end_time = args[:end_time] if args.key?(:end_time)
3458
- @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
3459
- @request = args[:request] if args.key?(:request)
3803
+ @channel_tag = args[:channel_tag] if args.key?(:channel_tag)
3804
+ @sentiment_data = args[:sentiment_data] if args.key?(:sentiment_data)
3460
3805
  end
3461
3806
  end
3462
3807
 
3463
- # The request to export insights.
3464
- class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest
3808
+ # The call participant speaking for a given utterance.
3809
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant
3465
3810
  include Google::Apis::Core::Hashable
3466
3811
 
3467
- # A BigQuery Table Reference.
3468
- # Corresponds to the JSON property `bigQueryDestination`
3469
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination]
3470
- attr_accessor :big_query_destination
3812
+ # Deprecated. Use `dialogflow_participant_name` instead. The name of the
3813
+ # Dialogflow participant. Format: projects/`project`/locations/`location`/
3814
+ # conversations/`conversation`/participants/`participant`
3815
+ # Corresponds to the JSON property `dialogflowParticipant`
3816
+ # @return [String]
3817
+ attr_accessor :dialogflow_participant
3471
3818
 
3472
- # A filter to reduce results to a specific subset. Useful for exporting
3473
- # conversations with specific properties.
3474
- # Corresponds to the JSON property `filter`
3819
+ # The name of the participant provided by Dialogflow. Format: projects/`project`/
3820
+ # locations/`location`/conversations/`conversation`/participants/`participant`
3821
+ # Corresponds to the JSON property `dialogflowParticipantName`
3475
3822
  # @return [String]
3476
- attr_accessor :filter
3823
+ attr_accessor :dialogflow_participant_name
3477
3824
 
3478
- # A fully qualified KMS key name for BigQuery tables protected by CMEK. Format:
3479
- # projects/`project`/locations/`location`/keyRings/`keyring`/cryptoKeys/`key`/
3480
- # cryptoKeyVersions/`version`
3481
- # Corresponds to the JSON property `kmsKey`
3825
+ # Obfuscated user ID from Dialogflow.
3826
+ # Corresponds to the JSON property `obfuscatedExternalUserId`
3482
3827
  # @return [String]
3483
- attr_accessor :kms_key
3828
+ attr_accessor :obfuscated_external_user_id
3484
3829
 
3485
- # Required. The parent resource to export data from.
3486
- # Corresponds to the JSON property `parent`
3830
+ # The role of the participant.
3831
+ # Corresponds to the JSON property `role`
3487
3832
  # @return [String]
3488
- attr_accessor :parent
3833
+ attr_accessor :role
3489
3834
 
3490
- # Options for what to do if the destination table already exists.
3491
- # Corresponds to the JSON property `writeDisposition`
3835
+ # A user-specified ID representing the participant.
3836
+ # Corresponds to the JSON property `userId`
3492
3837
  # @return [String]
3493
- attr_accessor :write_disposition
3838
+ attr_accessor :user_id
3494
3839
 
3495
3840
  def initialize(**args)
3496
3841
  update!(**args)
@@ -3498,37 +3843,22 @@ module Google
3498
3843
 
3499
3844
  # Update properties of this object
3500
3845
  def update!(**args)
3501
- @big_query_destination = args[:big_query_destination] if args.key?(:big_query_destination)
3502
- @filter = args[:filter] if args.key?(:filter)
3503
- @kms_key = args[:kms_key] if args.key?(:kms_key)
3504
- @parent = args[:parent] if args.key?(:parent)
3505
- @write_disposition = args[:write_disposition] if args.key?(:write_disposition)
3846
+ @dialogflow_participant = args[:dialogflow_participant] if args.key?(:dialogflow_participant)
3847
+ @dialogflow_participant_name = args[:dialogflow_participant_name] if args.key?(:dialogflow_participant_name)
3848
+ @obfuscated_external_user_id = args[:obfuscated_external_user_id] if args.key?(:obfuscated_external_user_id)
3849
+ @role = args[:role] if args.key?(:role)
3850
+ @user_id = args[:user_id] if args.key?(:user_id)
3506
3851
  end
3507
3852
  end
3508
3853
 
3509
- # A BigQuery Table Reference.
3510
- class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination
3854
+ # A message representing the transcript of a conversation.
3855
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript
3511
3856
  include Google::Apis::Core::Hashable
3512
3857
 
3513
- # Required. The name of the BigQuery dataset that the snapshot result should be
3514
- # exported to. If this dataset does not exist, the export call returns an
3515
- # INVALID_ARGUMENT error.
3516
- # Corresponds to the JSON property `dataset`
3517
- # @return [String]
3518
- attr_accessor :dataset
3519
-
3520
- # A project ID or number. If specified, then export will attempt to write data
3521
- # to this project instead of the resource project. Otherwise, the resource
3522
- # project will be used.
3523
- # Corresponds to the JSON property `projectId`
3524
- # @return [String]
3525
- attr_accessor :project_id
3526
-
3527
- # The BigQuery table name to which the insights data should be written. If this
3528
- # table does not exist, the export call returns an INVALID_ARGUMENT error.
3529
- # Corresponds to the JSON property `table`
3530
- # @return [String]
3531
- attr_accessor :table
3858
+ # A list of sequential transcript segments that comprise the conversation.
3859
+ # Corresponds to the JSON property `transcriptSegments`
3860
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment>]
3861
+ attr_accessor :transcript_segments
3532
3862
 
3533
3863
  def initialize(**args)
3534
3864
  update!(**args)
@@ -3536,29 +3866,157 @@ module Google
3536
3866
 
3537
3867
  # Update properties of this object
3538
3868
  def update!(**args)
3539
- @dataset = args[:dataset] if args.key?(:dataset)
3540
- @project_id = args[:project_id] if args.key?(:project_id)
3541
- @table = args[:table] if args.key?(:table)
3869
+ @transcript_segments = args[:transcript_segments] if args.key?(:transcript_segments)
3542
3870
  end
3543
3871
  end
3544
3872
 
3545
- # Response for an export insights operation.
3546
- class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse
3873
+ # A segment of a full transcript.
3874
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment
3547
3875
  include Google::Apis::Core::Hashable
3548
3876
 
3549
- def initialize(**args)
3550
- update!(**args)
3551
- end
3877
+ # For conversations derived from multi-channel audio, this is the channel number
3878
+ # corresponding to the audio from that channel. For audioChannelCount = N, its
3879
+ # output values can range from '1' to 'N'. A channel tag of 0 indicates that the
3880
+ # audio is mono.
3881
+ # Corresponds to the JSON property `channelTag`
3882
+ # @return [Fixnum]
3883
+ attr_accessor :channel_tag
3552
3884
 
3553
- # Update properties of this object
3885
+ # A confidence estimate between 0.0 and 1.0 of the fidelity of this segment. A
3886
+ # default value of 0.0 indicates that the value is unset.
3887
+ # Corresponds to the JSON property `confidence`
3888
+ # @return [Float]
3889
+ attr_accessor :confidence
3890
+
3891
+ # Metadata from Dialogflow relating to the current transcript segment.
3892
+ # Corresponds to the JSON property `dialogflowSegmentMetadata`
3893
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata]
3894
+ attr_accessor :dialogflow_segment_metadata
3895
+
3896
+ # The language code of this segment as a [BCP-47](https://www.rfc-editor.org/rfc/
3897
+ # bcp/bcp47.txt) language tag. Example: "en-US".
3898
+ # Corresponds to the JSON property `languageCode`
3899
+ # @return [String]
3900
+ attr_accessor :language_code
3901
+
3902
+ # The time that the message occurred, if provided.
3903
+ # Corresponds to the JSON property `messageTime`
3904
+ # @return [String]
3905
+ attr_accessor :message_time
3906
+
3907
+ # The call participant speaking for a given utterance.
3908
+ # Corresponds to the JSON property `segmentParticipant`
3909
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant]
3910
+ attr_accessor :segment_participant
3911
+
3912
+ # The data for a sentiment annotation.
3913
+ # Corresponds to the JSON property `sentiment`
3914
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SentimentData]
3915
+ attr_accessor :sentiment
3916
+
3917
+ # The text of this segment.
3918
+ # Corresponds to the JSON property `text`
3919
+ # @return [String]
3920
+ attr_accessor :text
3921
+
3922
+ # A list of the word-specific information for each word in the segment.
3923
+ # Corresponds to the JSON property `words`
3924
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo>]
3925
+ attr_accessor :words
3926
+
3927
+ def initialize(**args)
3928
+ update!(**args)
3929
+ end
3930
+
3931
+ # Update properties of this object
3554
3932
  def update!(**args)
3933
+ @channel_tag = args[:channel_tag] if args.key?(:channel_tag)
3934
+ @confidence = args[:confidence] if args.key?(:confidence)
3935
+ @dialogflow_segment_metadata = args[:dialogflow_segment_metadata] if args.key?(:dialogflow_segment_metadata)
3936
+ @language_code = args[:language_code] if args.key?(:language_code)
3937
+ @message_time = args[:message_time] if args.key?(:message_time)
3938
+ @segment_participant = args[:segment_participant] if args.key?(:segment_participant)
3939
+ @sentiment = args[:sentiment] if args.key?(:sentiment)
3940
+ @text = args[:text] if args.key?(:text)
3941
+ @words = args[:words] if args.key?(:words)
3555
3942
  end
3556
3943
  end
3557
3944
 
3558
- # The metadata for an IngestConversations operation.
3559
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata
3945
+ # Metadata from Dialogflow relating to the current transcript segment.
3946
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentDialogflowSegmentMetadata
3947
+ include Google::Apis::Core::Hashable
3948
+
3949
+ # Whether the transcript segment was covered under the configured smart reply
3950
+ # allowlist in Agent Assist.
3951
+ # Corresponds to the JSON property `smartReplyAllowlistCovered`
3952
+ # @return [Boolean]
3953
+ attr_accessor :smart_reply_allowlist_covered
3954
+ alias_method :smart_reply_allowlist_covered?, :smart_reply_allowlist_covered
3955
+
3956
+ def initialize(**args)
3957
+ update!(**args)
3958
+ end
3959
+
3960
+ # Update properties of this object
3961
+ def update!(**args)
3962
+ @smart_reply_allowlist_covered = args[:smart_reply_allowlist_covered] if args.key?(:smart_reply_allowlist_covered)
3963
+ end
3964
+ end
3965
+
3966
+ # Word-level info for words in a transcript.
3967
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegmentWordInfo
3968
+ include Google::Apis::Core::Hashable
3969
+
3970
+ # A confidence estimate between 0.0 and 1.0 of the fidelity of this word. A
3971
+ # default value of 0.0 indicates that the value is unset.
3972
+ # Corresponds to the JSON property `confidence`
3973
+ # @return [Float]
3974
+ attr_accessor :confidence
3975
+
3976
+ # Time offset of the end of this word relative to the beginning of the total
3977
+ # conversation.
3978
+ # Corresponds to the JSON property `endOffset`
3979
+ # @return [String]
3980
+ attr_accessor :end_offset
3981
+
3982
+ # Time offset of the start of this word relative to the beginning of the total
3983
+ # conversation.
3984
+ # Corresponds to the JSON property `startOffset`
3985
+ # @return [String]
3986
+ attr_accessor :start_offset
3987
+
3988
+ # The word itself. Includes punctuation marks that surround the word.
3989
+ # Corresponds to the JSON property `word`
3990
+ # @return [String]
3991
+ attr_accessor :word
3992
+
3993
+ def initialize(**args)
3994
+ update!(**args)
3995
+ end
3996
+
3997
+ # Update properties of this object
3998
+ def update!(**args)
3999
+ @confidence = args[:confidence] if args.key?(:confidence)
4000
+ @end_offset = args[:end_offset] if args.key?(:end_offset)
4001
+ @start_offset = args[:start_offset] if args.key?(:start_offset)
4002
+ @word = args[:word] if args.key?(:word)
4003
+ end
4004
+ end
4005
+
4006
+ # Metadata for a create analysis operation.
4007
+ class GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata
3560
4008
  include Google::Apis::Core::Hashable
3561
4009
 
4010
+ # Selector of all available annotators and phrase matchers to run.
4011
+ # Corresponds to the JSON property `annotatorSelector`
4012
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector]
4013
+ attr_accessor :annotator_selector
4014
+
4015
+ # Output only. The Conversation that this Analysis Operation belongs to.
4016
+ # Corresponds to the JSON property `conversation`
4017
+ # @return [String]
4018
+ attr_accessor :conversation
4019
+
3562
4020
  # Output only. The time the operation was created.
3563
4021
  # Corresponds to the JSON property `createTime`
3564
4022
  # @return [String]
@@ -3569,20 +4027,36 @@ module Google
3569
4027
  # @return [String]
3570
4028
  attr_accessor :end_time
3571
4029
 
3572
- # Statistics for IngestConversations operation.
3573
- # Corresponds to the JSON property `ingestConversationsStats`
3574
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats]
3575
- attr_accessor :ingest_conversations_stats
4030
+ def initialize(**args)
4031
+ update!(**args)
4032
+ end
3576
4033
 
3577
- # Output only. Partial errors during ingest operation that might cause the
3578
- # operation output to be incomplete.
3579
- # Corresponds to the JSON property `partialErrors`
3580
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
3581
- attr_accessor :partial_errors
4034
+ # Update properties of this object
4035
+ def update!(**args)
4036
+ @annotator_selector = args[:annotator_selector] if args.key?(:annotator_selector)
4037
+ @conversation = args[:conversation] if args.key?(:conversation)
4038
+ @create_time = args[:create_time] if args.key?(:create_time)
4039
+ @end_time = args[:end_time] if args.key?(:end_time)
4040
+ end
4041
+ end
3582
4042
 
3583
- # The request to ingest conversations.
4043
+ # Metadata for creating an issue model.
4044
+ class GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata
4045
+ include Google::Apis::Core::Hashable
4046
+
4047
+ # Output only. The time the operation was created.
4048
+ # Corresponds to the JSON property `createTime`
4049
+ # @return [String]
4050
+ attr_accessor :create_time
4051
+
4052
+ # Output only. The time the operation finished running.
4053
+ # Corresponds to the JSON property `endTime`
4054
+ # @return [String]
4055
+ attr_accessor :end_time
4056
+
4057
+ # The request to create an issue model.
3584
4058
  # Corresponds to the JSON property `request`
3585
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest]
4059
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest]
3586
4060
  attr_accessor :request
3587
4061
 
3588
4062
  def initialize(**args)
@@ -3593,38 +4067,23 @@ module Google
3593
4067
  def update!(**args)
3594
4068
  @create_time = args[:create_time] if args.key?(:create_time)
3595
4069
  @end_time = args[:end_time] if args.key?(:end_time)
3596
- @ingest_conversations_stats = args[:ingest_conversations_stats] if args.key?(:ingest_conversations_stats)
3597
- @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
3598
4070
  @request = args[:request] if args.key?(:request)
3599
4071
  end
3600
4072
  end
3601
4073
 
3602
- # Statistics for IngestConversations operation.
3603
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats
4074
+ # The request to create an issue model.
4075
+ class GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest
3604
4076
  include Google::Apis::Core::Hashable
3605
4077
 
3606
- # Output only. The number of objects skipped because another conversation with
3607
- # the same transcript uri had already been ingested.
3608
- # Corresponds to the JSON property `duplicatesSkippedCount`
3609
- # @return [Fixnum]
3610
- attr_accessor :duplicates_skipped_count
3611
-
3612
- # Output only. The number of objects which were unable to be ingested due to
3613
- # errors. The errors are populated in the partial_errors field.
3614
- # Corresponds to the JSON property `failedIngestCount`
3615
- # @return [Fixnum]
3616
- attr_accessor :failed_ingest_count
3617
-
3618
- # Output only. The number of objects processed during the ingest operation.
3619
- # Corresponds to the JSON property `processedObjectCount`
3620
- # @return [Fixnum]
3621
- attr_accessor :processed_object_count
4078
+ # The issue model resource.
4079
+ # Corresponds to the JSON property `issueModel`
4080
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModel]
4081
+ attr_accessor :issue_model
3622
4082
 
3623
- # Output only. The number of new conversations added during this ingest
3624
- # operation.
3625
- # Corresponds to the JSON property `successfulIngestCount`
3626
- # @return [Fixnum]
3627
- attr_accessor :successful_ingest_count
4083
+ # Required. The parent resource of the issue model.
4084
+ # Corresponds to the JSON property `parent`
4085
+ # @return [String]
4086
+ attr_accessor :parent
3628
4087
 
3629
4088
  def initialize(**args)
3630
4089
  update!(**args)
@@ -3632,36 +4091,29 @@ module Google
3632
4091
 
3633
4092
  # Update properties of this object
3634
4093
  def update!(**args)
3635
- @duplicates_skipped_count = args[:duplicates_skipped_count] if args.key?(:duplicates_skipped_count)
3636
- @failed_ingest_count = args[:failed_ingest_count] if args.key?(:failed_ingest_count)
3637
- @processed_object_count = args[:processed_object_count] if args.key?(:processed_object_count)
3638
- @successful_ingest_count = args[:successful_ingest_count] if args.key?(:successful_ingest_count)
4094
+ @issue_model = args[:issue_model] if args.key?(:issue_model)
4095
+ @parent = args[:parent] if args.key?(:parent)
3639
4096
  end
3640
4097
  end
3641
4098
 
3642
- # The request to ingest conversations.
3643
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest
4099
+ # Metadata for deleting an issue model.
4100
+ class GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata
3644
4101
  include Google::Apis::Core::Hashable
3645
4102
 
3646
- # Configuration that applies to all conversations.
3647
- # Corresponds to the JSON property `conversationConfig`
3648
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig]
3649
- attr_accessor :conversation_config
3650
-
3651
- # Configuration for Cloud Storage bucket sources.
3652
- # Corresponds to the JSON property `gcsSource`
3653
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource]
3654
- attr_accessor :gcs_source
4103
+ # Output only. The time the operation was created.
4104
+ # Corresponds to the JSON property `createTime`
4105
+ # @return [String]
4106
+ attr_accessor :create_time
3655
4107
 
3656
- # Required. The parent resource for new conversations.
3657
- # Corresponds to the JSON property `parent`
4108
+ # Output only. The time the operation finished running.
4109
+ # Corresponds to the JSON property `endTime`
3658
4110
  # @return [String]
3659
- attr_accessor :parent
4111
+ attr_accessor :end_time
3660
4112
 
3661
- # Configuration for processing transcript objects.
3662
- # Corresponds to the JSON property `transcriptObjectConfig`
3663
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig]
3664
- attr_accessor :transcript_object_config
4113
+ # The request to delete an issue model.
4114
+ # Corresponds to the JSON property `request`
4115
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest]
4116
+ attr_accessor :request
3665
4117
 
3666
4118
  def initialize(**args)
3667
4119
  update!(**args)
@@ -3669,22 +4121,1076 @@ module Google
3669
4121
 
3670
4122
  # Update properties of this object
3671
4123
  def update!(**args)
3672
- @conversation_config = args[:conversation_config] if args.key?(:conversation_config)
3673
- @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
3674
- @parent = args[:parent] if args.key?(:parent)
3675
- @transcript_object_config = args[:transcript_object_config] if args.key?(:transcript_object_config)
4124
+ @create_time = args[:create_time] if args.key?(:create_time)
4125
+ @end_time = args[:end_time] if args.key?(:end_time)
4126
+ @request = args[:request] if args.key?(:request)
3676
4127
  end
3677
4128
  end
3678
4129
 
3679
- # Configuration that applies to all conversations.
3680
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig
4130
+ # The request to delete an issue model.
4131
+ class GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest
3681
4132
  include Google::Apis::Core::Hashable
3682
4133
 
3683
- # An opaque, user-specified string representing the human agent who handled the
3684
- # conversations.
3685
- # Corresponds to the JSON property `agentId`
4134
+ # Required. The name of the issue model to delete.
4135
+ # Corresponds to the JSON property `name`
3686
4136
  # @return [String]
3687
- attr_accessor :agent_id
4137
+ attr_accessor :name
4138
+
4139
+ def initialize(**args)
4140
+ update!(**args)
4141
+ end
4142
+
4143
+ # Update properties of this object
4144
+ def update!(**args)
4145
+ @name = args[:name] if args.key?(:name)
4146
+ end
4147
+ end
4148
+
4149
+ # Metadata for deploying an issue model.
4150
+ class GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata
4151
+ include Google::Apis::Core::Hashable
4152
+
4153
+ # Output only. The time the operation was created.
4154
+ # Corresponds to the JSON property `createTime`
4155
+ # @return [String]
4156
+ attr_accessor :create_time
4157
+
4158
+ # Output only. The time the operation finished running.
4159
+ # Corresponds to the JSON property `endTime`
4160
+ # @return [String]
4161
+ attr_accessor :end_time
4162
+
4163
+ # The request to deploy an issue model.
4164
+ # Corresponds to the JSON property `request`
4165
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest]
4166
+ attr_accessor :request
4167
+
4168
+ def initialize(**args)
4169
+ update!(**args)
4170
+ end
4171
+
4172
+ # Update properties of this object
4173
+ def update!(**args)
4174
+ @create_time = args[:create_time] if args.key?(:create_time)
4175
+ @end_time = args[:end_time] if args.key?(:end_time)
4176
+ @request = args[:request] if args.key?(:request)
4177
+ end
4178
+ end
4179
+
4180
+ # The request to deploy an issue model.
4181
+ class GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest
4182
+ include Google::Apis::Core::Hashable
4183
+
4184
+ # Required. The issue model to deploy.
4185
+ # Corresponds to the JSON property `name`
4186
+ # @return [String]
4187
+ attr_accessor :name
4188
+
4189
+ def initialize(**args)
4190
+ update!(**args)
4191
+ end
4192
+
4193
+ # Update properties of this object
4194
+ def update!(**args)
4195
+ @name = args[:name] if args.key?(:name)
4196
+ end
4197
+ end
4198
+
4199
+ # The response to deploy an issue model.
4200
+ class GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse
4201
+ include Google::Apis::Core::Hashable
4202
+
4203
+ def initialize(**args)
4204
+ update!(**args)
4205
+ end
4206
+
4207
+ # Update properties of this object
4208
+ def update!(**args)
4209
+ end
4210
+ end
4211
+
4212
+ # The data for a Dialogflow intent. Represents a detected intent in the
4213
+ # conversation, e.g. MAKES_PROMISE.
4214
+ class GoogleCloudContactcenterinsightsV1alpha1DialogflowIntent
4215
+ include Google::Apis::Core::Hashable
4216
+
4217
+ # The human-readable name of the intent.
4218
+ # Corresponds to the JSON property `displayName`
4219
+ # @return [String]
4220
+ attr_accessor :display_name
4221
+
4222
+ def initialize(**args)
4223
+ update!(**args)
4224
+ end
4225
+
4226
+ # Update properties of this object
4227
+ def update!(**args)
4228
+ @display_name = args[:display_name] if args.key?(:display_name)
4229
+ end
4230
+ end
4231
+
4232
+ # Dialogflow interaction data.
4233
+ class GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData
4234
+ include Google::Apis::Core::Hashable
4235
+
4236
+ # The confidence of the match ranging from 0.0 (completely uncertain) to 1.0 (
4237
+ # completely certain).
4238
+ # Corresponds to the JSON property `confidence`
4239
+ # @return [Float]
4240
+ attr_accessor :confidence
4241
+
4242
+ # The Dialogflow intent resource path. Format: projects/`project`/agent/`agent`/
4243
+ # intents/`intent`
4244
+ # Corresponds to the JSON property `dialogflowIntentId`
4245
+ # @return [String]
4246
+ attr_accessor :dialogflow_intent_id
4247
+
4248
+ def initialize(**args)
4249
+ update!(**args)
4250
+ end
4251
+
4252
+ # Update properties of this object
4253
+ def update!(**args)
4254
+ @confidence = args[:confidence] if args.key?(:confidence)
4255
+ @dialogflow_intent_id = args[:dialogflow_intent_id] if args.key?(:dialogflow_intent_id)
4256
+ end
4257
+ end
4258
+
4259
+ # A Dialogflow source of conversation data.
4260
+ class GoogleCloudContactcenterinsightsV1alpha1DialogflowSource
4261
+ include Google::Apis::Core::Hashable
4262
+
4263
+ # Cloud Storage URI that points to a file that contains the conversation audio.
4264
+ # Corresponds to the JSON property `audioUri`
4265
+ # @return [String]
4266
+ attr_accessor :audio_uri
4267
+
4268
+ # Output only. The name of the Dialogflow conversation that this conversation
4269
+ # resource is derived from. Format: projects/`project`/locations/`location`/
4270
+ # conversations/`conversation`
4271
+ # Corresponds to the JSON property `dialogflowConversation`
4272
+ # @return [String]
4273
+ attr_accessor :dialogflow_conversation
4274
+
4275
+ def initialize(**args)
4276
+ update!(**args)
4277
+ end
4278
+
4279
+ # Update properties of this object
4280
+ def update!(**args)
4281
+ @audio_uri = args[:audio_uri] if args.key?(:audio_uri)
4282
+ @dialogflow_conversation = args[:dialogflow_conversation] if args.key?(:dialogflow_conversation)
4283
+ end
4284
+ end
4285
+
4286
+ # The data for an entity annotation. Represents a phrase in the conversation
4287
+ # that is a known entity, such as a person, an organization, or location.
4288
+ class GoogleCloudContactcenterinsightsV1alpha1Entity
4289
+ include Google::Apis::Core::Hashable
4290
+
4291
+ # The representative name for the entity.
4292
+ # Corresponds to the JSON property `displayName`
4293
+ # @return [String]
4294
+ attr_accessor :display_name
4295
+
4296
+ # Metadata associated with the entity. For most entity types, the metadata is a
4297
+ # Wikipedia URL (`wikipedia_url`) and Knowledge Graph MID (`mid`), if they are
4298
+ # available. For the metadata associated with other entity types, see the Type
4299
+ # table below.
4300
+ # Corresponds to the JSON property `metadata`
4301
+ # @return [Hash<String,String>]
4302
+ attr_accessor :metadata
4303
+
4304
+ # The salience score associated with the entity in the [0, 1.0] range. The
4305
+ # salience score for an entity provides information about the importance or
4306
+ # centrality of that entity to the entire document text. Scores closer to 0 are
4307
+ # less salient, while scores closer to 1.0 are highly salient.
4308
+ # Corresponds to the JSON property `salience`
4309
+ # @return [Float]
4310
+ attr_accessor :salience
4311
+
4312
+ # The data for a sentiment annotation.
4313
+ # Corresponds to the JSON property `sentiment`
4314
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SentimentData]
4315
+ attr_accessor :sentiment
4316
+
4317
+ # The entity type.
4318
+ # Corresponds to the JSON property `type`
4319
+ # @return [String]
4320
+ attr_accessor :type
4321
+
4322
+ def initialize(**args)
4323
+ update!(**args)
4324
+ end
4325
+
4326
+ # Update properties of this object
4327
+ def update!(**args)
4328
+ @display_name = args[:display_name] if args.key?(:display_name)
4329
+ @metadata = args[:metadata] if args.key?(:metadata)
4330
+ @salience = args[:salience] if args.key?(:salience)
4331
+ @sentiment = args[:sentiment] if args.key?(:sentiment)
4332
+ @type = args[:type] if args.key?(:type)
4333
+ end
4334
+ end
4335
+
4336
+ # The data for an entity mention annotation. This represents a mention of an `
4337
+ # Entity` in the conversation.
4338
+ class GoogleCloudContactcenterinsightsV1alpha1EntityMentionData
4339
+ include Google::Apis::Core::Hashable
4340
+
4341
+ # The key of this entity in conversation entities. Can be used to retrieve the
4342
+ # exact `Entity` this mention is attached to.
4343
+ # Corresponds to the JSON property `entityUniqueId`
4344
+ # @return [String]
4345
+ attr_accessor :entity_unique_id
4346
+
4347
+ # The data for a sentiment annotation.
4348
+ # Corresponds to the JSON property `sentiment`
4349
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SentimentData]
4350
+ attr_accessor :sentiment
4351
+
4352
+ # The type of the entity mention.
4353
+ # Corresponds to the JSON property `type`
4354
+ # @return [String]
4355
+ attr_accessor :type
4356
+
4357
+ def initialize(**args)
4358
+ update!(**args)
4359
+ end
4360
+
4361
+ # Update properties of this object
4362
+ def update!(**args)
4363
+ @entity_unique_id = args[:entity_unique_id] if args.key?(:entity_unique_id)
4364
+ @sentiment = args[:sentiment] if args.key?(:sentiment)
4365
+ @type = args[:type] if args.key?(:type)
4366
+ end
4367
+ end
4368
+
4369
+ # Metadata for an export insights operation.
4370
+ class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata
4371
+ include Google::Apis::Core::Hashable
4372
+
4373
+ # Output only. The time the operation was created.
4374
+ # Corresponds to the JSON property `createTime`
4375
+ # @return [String]
4376
+ attr_accessor :create_time
4377
+
4378
+ # Output only. The time the operation finished running.
4379
+ # Corresponds to the JSON property `endTime`
4380
+ # @return [String]
4381
+ attr_accessor :end_time
4382
+
4383
+ # Partial errors during export operation that might cause the operation output
4384
+ # to be incomplete.
4385
+ # Corresponds to the JSON property `partialErrors`
4386
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
4387
+ attr_accessor :partial_errors
4388
+
4389
+ # The request to export insights.
4390
+ # Corresponds to the JSON property `request`
4391
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest]
4392
+ attr_accessor :request
4393
+
4394
+ def initialize(**args)
4395
+ update!(**args)
4396
+ end
4397
+
4398
+ # Update properties of this object
4399
+ def update!(**args)
4400
+ @create_time = args[:create_time] if args.key?(:create_time)
4401
+ @end_time = args[:end_time] if args.key?(:end_time)
4402
+ @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
4403
+ @request = args[:request] if args.key?(:request)
4404
+ end
4405
+ end
4406
+
4407
+ # The request to export insights.
4408
+ class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest
4409
+ include Google::Apis::Core::Hashable
4410
+
4411
+ # A BigQuery Table Reference.
4412
+ # Corresponds to the JSON property `bigQueryDestination`
4413
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination]
4414
+ attr_accessor :big_query_destination
4415
+
4416
+ # A filter to reduce results to a specific subset. Useful for exporting
4417
+ # conversations with specific properties.
4418
+ # Corresponds to the JSON property `filter`
4419
+ # @return [String]
4420
+ attr_accessor :filter
4421
+
4422
+ # A fully qualified KMS key name for BigQuery tables protected by CMEK. Format:
4423
+ # projects/`project`/locations/`location`/keyRings/`keyring`/cryptoKeys/`key`/
4424
+ # cryptoKeyVersions/`version`
4425
+ # Corresponds to the JSON property `kmsKey`
4426
+ # @return [String]
4427
+ attr_accessor :kms_key
4428
+
4429
+ # Required. The parent resource to export data from.
4430
+ # Corresponds to the JSON property `parent`
4431
+ # @return [String]
4432
+ attr_accessor :parent
4433
+
4434
+ # Options for what to do if the destination table already exists.
4435
+ # Corresponds to the JSON property `writeDisposition`
4436
+ # @return [String]
4437
+ attr_accessor :write_disposition
4438
+
4439
+ def initialize(**args)
4440
+ update!(**args)
4441
+ end
4442
+
4443
+ # Update properties of this object
4444
+ def update!(**args)
4445
+ @big_query_destination = args[:big_query_destination] if args.key?(:big_query_destination)
4446
+ @filter = args[:filter] if args.key?(:filter)
4447
+ @kms_key = args[:kms_key] if args.key?(:kms_key)
4448
+ @parent = args[:parent] if args.key?(:parent)
4449
+ @write_disposition = args[:write_disposition] if args.key?(:write_disposition)
4450
+ end
4451
+ end
4452
+
4453
+ # A BigQuery Table Reference.
4454
+ class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination
4455
+ include Google::Apis::Core::Hashable
4456
+
4457
+ # Required. The name of the BigQuery dataset that the snapshot result should be
4458
+ # exported to. If this dataset does not exist, the export call returns an
4459
+ # INVALID_ARGUMENT error.
4460
+ # Corresponds to the JSON property `dataset`
4461
+ # @return [String]
4462
+ attr_accessor :dataset
4463
+
4464
+ # A project ID or number. If specified, then export will attempt to write data
4465
+ # to this project instead of the resource project. Otherwise, the resource
4466
+ # project will be used.
4467
+ # Corresponds to the JSON property `projectId`
4468
+ # @return [String]
4469
+ attr_accessor :project_id
4470
+
4471
+ # The BigQuery table name to which the insights data should be written. If this
4472
+ # table does not exist, the export call returns an INVALID_ARGUMENT error.
4473
+ # Corresponds to the JSON property `table`
4474
+ # @return [String]
4475
+ attr_accessor :table
4476
+
4477
+ def initialize(**args)
4478
+ update!(**args)
4479
+ end
4480
+
4481
+ # Update properties of this object
4482
+ def update!(**args)
4483
+ @dataset = args[:dataset] if args.key?(:dataset)
4484
+ @project_id = args[:project_id] if args.key?(:project_id)
4485
+ @table = args[:table] if args.key?(:table)
4486
+ end
4487
+ end
4488
+
4489
+ # Response for an export insights operation.
4490
+ class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse
4491
+ include Google::Apis::Core::Hashable
4492
+
4493
+ def initialize(**args)
4494
+ update!(**args)
4495
+ end
4496
+
4497
+ # Update properties of this object
4498
+ def update!(**args)
4499
+ end
4500
+ end
4501
+
4502
+ # Agent Assist frequently-asked-question answer data.
4503
+ class GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData
4504
+ include Google::Apis::Core::Hashable
4505
+
4506
+ # The piece of text from the `source` knowledge base document.
4507
+ # Corresponds to the JSON property `answer`
4508
+ # @return [String]
4509
+ attr_accessor :answer
4510
+
4511
+ # The system's confidence score that this answer is a good match for this
4512
+ # conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely
4513
+ # certain).
4514
+ # Corresponds to the JSON property `confidenceScore`
4515
+ # @return [Float]
4516
+ attr_accessor :confidence_score
4517
+
4518
+ # Map that contains metadata about the FAQ answer and the document that it
4519
+ # originates from.
4520
+ # Corresponds to the JSON property `metadata`
4521
+ # @return [Hash<String,String>]
4522
+ attr_accessor :metadata
4523
+
4524
+ # The name of the answer record. Format: projects/`project`/locations/`location`/
4525
+ # answerRecords/`answer_record`
4526
+ # Corresponds to the JSON property `queryRecord`
4527
+ # @return [String]
4528
+ attr_accessor :query_record
4529
+
4530
+ # The corresponding FAQ question.
4531
+ # Corresponds to the JSON property `question`
4532
+ # @return [String]
4533
+ attr_accessor :question
4534
+
4535
+ # The knowledge document that this answer was extracted from. Format: projects/`
4536
+ # project`/knowledgeBases/`knowledge_base`/documents/`document`.
4537
+ # Corresponds to the JSON property `source`
4538
+ # @return [String]
4539
+ attr_accessor :source
4540
+
4541
+ def initialize(**args)
4542
+ update!(**args)
4543
+ end
4544
+
4545
+ # Update properties of this object
4546
+ def update!(**args)
4547
+ @answer = args[:answer] if args.key?(:answer)
4548
+ @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
4549
+ @metadata = args[:metadata] if args.key?(:metadata)
4550
+ @query_record = args[:query_record] if args.key?(:query_record)
4551
+ @question = args[:question] if args.key?(:question)
4552
+ @source = args[:source] if args.key?(:source)
4553
+ end
4554
+ end
4555
+
4556
+ # A Cloud Storage source of conversation data.
4557
+ class GoogleCloudContactcenterinsightsV1alpha1GcsSource
4558
+ include Google::Apis::Core::Hashable
4559
+
4560
+ # Cloud Storage URI that points to a file that contains the conversation audio.
4561
+ # Corresponds to the JSON property `audioUri`
4562
+ # @return [String]
4563
+ attr_accessor :audio_uri
4564
+
4565
+ # Immutable. Cloud Storage URI that points to a file that contains the
4566
+ # conversation transcript.
4567
+ # Corresponds to the JSON property `transcriptUri`
4568
+ # @return [String]
4569
+ attr_accessor :transcript_uri
4570
+
4571
+ def initialize(**args)
4572
+ update!(**args)
4573
+ end
4574
+
4575
+ # Update properties of this object
4576
+ def update!(**args)
4577
+ @audio_uri = args[:audio_uri] if args.key?(:audio_uri)
4578
+ @transcript_uri = args[:transcript_uri] if args.key?(:transcript_uri)
4579
+ end
4580
+ end
4581
+
4582
+ # The data for a hold annotation.
4583
+ class GoogleCloudContactcenterinsightsV1alpha1HoldData
4584
+ include Google::Apis::Core::Hashable
4585
+
4586
+ def initialize(**args)
4587
+ update!(**args)
4588
+ end
4589
+
4590
+ # Update properties of this object
4591
+ def update!(**args)
4592
+ end
4593
+ end
4594
+
4595
+ # The metadata for an IngestConversations operation.
4596
+ class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata
4597
+ include Google::Apis::Core::Hashable
4598
+
4599
+ # Output only. The time the operation was created.
4600
+ # Corresponds to the JSON property `createTime`
4601
+ # @return [String]
4602
+ attr_accessor :create_time
4603
+
4604
+ # Output only. The time the operation finished running.
4605
+ # Corresponds to the JSON property `endTime`
4606
+ # @return [String]
4607
+ attr_accessor :end_time
4608
+
4609
+ # Statistics for IngestConversations operation.
4610
+ # Corresponds to the JSON property `ingestConversationsStats`
4611
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats]
4612
+ attr_accessor :ingest_conversations_stats
4613
+
4614
+ # Output only. Partial errors during ingest operation that might cause the
4615
+ # operation output to be incomplete.
4616
+ # Corresponds to the JSON property `partialErrors`
4617
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
4618
+ attr_accessor :partial_errors
4619
+
4620
+ # The request to ingest conversations.
4621
+ # Corresponds to the JSON property `request`
4622
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest]
4623
+ attr_accessor :request
4624
+
4625
+ def initialize(**args)
4626
+ update!(**args)
4627
+ end
4628
+
4629
+ # Update properties of this object
4630
+ def update!(**args)
4631
+ @create_time = args[:create_time] if args.key?(:create_time)
4632
+ @end_time = args[:end_time] if args.key?(:end_time)
4633
+ @ingest_conversations_stats = args[:ingest_conversations_stats] if args.key?(:ingest_conversations_stats)
4634
+ @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
4635
+ @request = args[:request] if args.key?(:request)
4636
+ end
4637
+ end
4638
+
4639
+ # Statistics for IngestConversations operation.
4640
+ class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats
4641
+ include Google::Apis::Core::Hashable
4642
+
4643
+ # Output only. The number of objects skipped because another conversation with
4644
+ # the same transcript uri had already been ingested.
4645
+ # Corresponds to the JSON property `duplicatesSkippedCount`
4646
+ # @return [Fixnum]
4647
+ attr_accessor :duplicates_skipped_count
4648
+
4649
+ # Output only. The number of objects which were unable to be ingested due to
4650
+ # errors. The errors are populated in the partial_errors field.
4651
+ # Corresponds to the JSON property `failedIngestCount`
4652
+ # @return [Fixnum]
4653
+ attr_accessor :failed_ingest_count
4654
+
4655
+ # Output only. The number of objects processed during the ingest operation.
4656
+ # Corresponds to the JSON property `processedObjectCount`
4657
+ # @return [Fixnum]
4658
+ attr_accessor :processed_object_count
4659
+
4660
+ # Output only. The number of new conversations added during this ingest
4661
+ # operation.
4662
+ # Corresponds to the JSON property `successfulIngestCount`
4663
+ # @return [Fixnum]
4664
+ attr_accessor :successful_ingest_count
4665
+
4666
+ def initialize(**args)
4667
+ update!(**args)
4668
+ end
4669
+
4670
+ # Update properties of this object
4671
+ def update!(**args)
4672
+ @duplicates_skipped_count = args[:duplicates_skipped_count] if args.key?(:duplicates_skipped_count)
4673
+ @failed_ingest_count = args[:failed_ingest_count] if args.key?(:failed_ingest_count)
4674
+ @processed_object_count = args[:processed_object_count] if args.key?(:processed_object_count)
4675
+ @successful_ingest_count = args[:successful_ingest_count] if args.key?(:successful_ingest_count)
4676
+ end
4677
+ end
4678
+
4679
+ # The request to ingest conversations.
4680
+ class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest
4681
+ include Google::Apis::Core::Hashable
4682
+
4683
+ # Configuration that applies to all conversations.
4684
+ # Corresponds to the JSON property `conversationConfig`
4685
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig]
4686
+ attr_accessor :conversation_config
4687
+
4688
+ # Configuration for Cloud Storage bucket sources.
4689
+ # Corresponds to the JSON property `gcsSource`
4690
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource]
4691
+ attr_accessor :gcs_source
4692
+
4693
+ # Required. The parent resource for new conversations.
4694
+ # Corresponds to the JSON property `parent`
4695
+ # @return [String]
4696
+ attr_accessor :parent
4697
+
4698
+ # Configuration for processing transcript objects.
4699
+ # Corresponds to the JSON property `transcriptObjectConfig`
4700
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig]
4701
+ attr_accessor :transcript_object_config
4702
+
4703
+ def initialize(**args)
4704
+ update!(**args)
4705
+ end
4706
+
4707
+ # Update properties of this object
4708
+ def update!(**args)
4709
+ @conversation_config = args[:conversation_config] if args.key?(:conversation_config)
4710
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
4711
+ @parent = args[:parent] if args.key?(:parent)
4712
+ @transcript_object_config = args[:transcript_object_config] if args.key?(:transcript_object_config)
4713
+ end
4714
+ end
4715
+
4716
+ # Configuration that applies to all conversations.
4717
+ class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig
4718
+ include Google::Apis::Core::Hashable
4719
+
4720
+ # An opaque, user-specified string representing the human agent who handled the
4721
+ # conversations.
4722
+ # Corresponds to the JSON property `agentId`
4723
+ # @return [String]
4724
+ attr_accessor :agent_id
4725
+
4726
+ def initialize(**args)
4727
+ update!(**args)
4728
+ end
4729
+
4730
+ # Update properties of this object
4731
+ def update!(**args)
4732
+ @agent_id = args[:agent_id] if args.key?(:agent_id)
4733
+ end
4734
+ end
4735
+
4736
+ # Configuration for Cloud Storage bucket sources.
4737
+ class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource
4738
+ include Google::Apis::Core::Hashable
4739
+
4740
+ # Required. The Cloud Storage bucket containing source objects.
4741
+ # Corresponds to the JSON property `bucketUri`
4742
+ # @return [String]
4743
+ attr_accessor :bucket_uri
4744
+
4745
+ def initialize(**args)
4746
+ update!(**args)
4747
+ end
4748
+
4749
+ # Update properties of this object
4750
+ def update!(**args)
4751
+ @bucket_uri = args[:bucket_uri] if args.key?(:bucket_uri)
4752
+ end
4753
+ end
4754
+
4755
+ # Configuration for processing transcript objects.
4756
+ class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig
4757
+ include Google::Apis::Core::Hashable
4758
+
4759
+ # Required. The medium transcript objects represent.
4760
+ # Corresponds to the JSON property `medium`
4761
+ # @return [String]
4762
+ attr_accessor :medium
4763
+
4764
+ def initialize(**args)
4765
+ update!(**args)
4766
+ end
4767
+
4768
+ # Update properties of this object
4769
+ def update!(**args)
4770
+ @medium = args[:medium] if args.key?(:medium)
4771
+ end
4772
+ end
4773
+
4774
+ # The response to an IngestConversations operation.
4775
+ class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse
4776
+ include Google::Apis::Core::Hashable
4777
+
4778
+ def initialize(**args)
4779
+ update!(**args)
4780
+ end
4781
+
4782
+ # Update properties of this object
4783
+ def update!(**args)
4784
+ end
4785
+ end
4786
+
4787
+ # The data for an intent. Represents a detected intent in the conversation, for
4788
+ # example MAKES_PROMISE.
4789
+ class GoogleCloudContactcenterinsightsV1alpha1Intent
4790
+ include Google::Apis::Core::Hashable
4791
+
4792
+ # The human-readable name of the intent.
4793
+ # Corresponds to the JSON property `displayName`
4794
+ # @return [String]
4795
+ attr_accessor :display_name
4796
+
4797
+ # The unique identifier of the intent.
4798
+ # Corresponds to the JSON property `id`
4799
+ # @return [String]
4800
+ attr_accessor :id
4801
+
4802
+ def initialize(**args)
4803
+ update!(**args)
4804
+ end
4805
+
4806
+ # Update properties of this object
4807
+ def update!(**args)
4808
+ @display_name = args[:display_name] if args.key?(:display_name)
4809
+ @id = args[:id] if args.key?(:id)
4810
+ end
4811
+ end
4812
+
4813
+ # The data for an intent match. Represents an intent match for a text segment in
4814
+ # the conversation. A text segment can be part of a sentence, a complete
4815
+ # sentence, or an utterance with multiple sentences.
4816
+ class GoogleCloudContactcenterinsightsV1alpha1IntentMatchData
4817
+ include Google::Apis::Core::Hashable
4818
+
4819
+ # The id of the matched intent. Can be used to retrieve the corresponding intent
4820
+ # information.
4821
+ # Corresponds to the JSON property `intentUniqueId`
4822
+ # @return [String]
4823
+ attr_accessor :intent_unique_id
4824
+
4825
+ def initialize(**args)
4826
+ update!(**args)
4827
+ end
4828
+
4829
+ # Update properties of this object
4830
+ def update!(**args)
4831
+ @intent_unique_id = args[:intent_unique_id] if args.key?(:intent_unique_id)
4832
+ end
4833
+ end
4834
+
4835
+ # The data for an interruption annotation.
4836
+ class GoogleCloudContactcenterinsightsV1alpha1InterruptionData
4837
+ include Google::Apis::Core::Hashable
4838
+
4839
+ def initialize(**args)
4840
+ update!(**args)
4841
+ end
4842
+
4843
+ # Update properties of this object
4844
+ def update!(**args)
4845
+ end
4846
+ end
4847
+
4848
+ # Information about the issue.
4849
+ class GoogleCloudContactcenterinsightsV1alpha1IssueAssignment
4850
+ include Google::Apis::Core::Hashable
4851
+
4852
+ # Immutable. Display name of the assigned issue. This field is set at time of
4853
+ # analyis and immutable since then.
4854
+ # Corresponds to the JSON property `displayName`
4855
+ # @return [String]
4856
+ attr_accessor :display_name
4857
+
4858
+ # Resource name of the assigned issue.
4859
+ # Corresponds to the JSON property `issue`
4860
+ # @return [String]
4861
+ attr_accessor :issue
4862
+
4863
+ # Score indicating the likelihood of the issue assignment. currently bounded on [
4864
+ # 0,1].
4865
+ # Corresponds to the JSON property `score`
4866
+ # @return [Float]
4867
+ attr_accessor :score
4868
+
4869
+ def initialize(**args)
4870
+ update!(**args)
4871
+ end
4872
+
4873
+ # Update properties of this object
4874
+ def update!(**args)
4875
+ @display_name = args[:display_name] if args.key?(:display_name)
4876
+ @issue = args[:issue] if args.key?(:issue)
4877
+ @score = args[:score] if args.key?(:score)
4878
+ end
4879
+ end
4880
+
4881
+ # The data for an issue match annotation.
4882
+ class GoogleCloudContactcenterinsightsV1alpha1IssueMatchData
4883
+ include Google::Apis::Core::Hashable
4884
+
4885
+ # Information about the issue.
4886
+ # Corresponds to the JSON property `issueAssignment`
4887
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueAssignment]
4888
+ attr_accessor :issue_assignment
4889
+
4890
+ def initialize(**args)
4891
+ update!(**args)
4892
+ end
4893
+
4894
+ # Update properties of this object
4895
+ def update!(**args)
4896
+ @issue_assignment = args[:issue_assignment] if args.key?(:issue_assignment)
4897
+ end
4898
+ end
4899
+
4900
+ # The issue model resource.
4901
+ class GoogleCloudContactcenterinsightsV1alpha1IssueModel
4902
+ include Google::Apis::Core::Hashable
4903
+
4904
+ # Output only. The time at which this issue model was created.
4905
+ # Corresponds to the JSON property `createTime`
4906
+ # @return [String]
4907
+ attr_accessor :create_time
4908
+
4909
+ # The representative name for the issue model.
4910
+ # Corresponds to the JSON property `displayName`
4911
+ # @return [String]
4912
+ attr_accessor :display_name
4913
+
4914
+ # Configs for the input data used to create the issue model.
4915
+ # Corresponds to the JSON property `inputDataConfig`
4916
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig]
4917
+ attr_accessor :input_data_config
4918
+
4919
+ # Output only. Number of issues in this issue model.
4920
+ # Corresponds to the JSON property `issueCount`
4921
+ # @return [Fixnum]
4922
+ attr_accessor :issue_count
4923
+
4924
+ # Immutable. The resource name of the issue model. Format: projects/`project`/
4925
+ # locations/`location`/issueModels/`issue_model`
4926
+ # Corresponds to the JSON property `name`
4927
+ # @return [String]
4928
+ attr_accessor :name
4929
+
4930
+ # Output only. State of the model.
4931
+ # Corresponds to the JSON property `state`
4932
+ # @return [String]
4933
+ attr_accessor :state
4934
+
4935
+ # Aggregated statistics about an issue model.
4936
+ # Corresponds to the JSON property `trainingStats`
4937
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats]
4938
+ attr_accessor :training_stats
4939
+
4940
+ # Output only. The most recent time at which the issue model was updated.
4941
+ # Corresponds to the JSON property `updateTime`
4942
+ # @return [String]
4943
+ attr_accessor :update_time
4944
+
4945
+ def initialize(**args)
4946
+ update!(**args)
4947
+ end
4948
+
4949
+ # Update properties of this object
4950
+ def update!(**args)
4951
+ @create_time = args[:create_time] if args.key?(:create_time)
4952
+ @display_name = args[:display_name] if args.key?(:display_name)
4953
+ @input_data_config = args[:input_data_config] if args.key?(:input_data_config)
4954
+ @issue_count = args[:issue_count] if args.key?(:issue_count)
4955
+ @name = args[:name] if args.key?(:name)
4956
+ @state = args[:state] if args.key?(:state)
4957
+ @training_stats = args[:training_stats] if args.key?(:training_stats)
4958
+ @update_time = args[:update_time] if args.key?(:update_time)
4959
+ end
4960
+ end
4961
+
4962
+ # Configs for the input data used to create the issue model.
4963
+ class GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig
4964
+ include Google::Apis::Core::Hashable
4965
+
4966
+ # A filter to reduce the conversations used for training the model to a specific
4967
+ # subset.
4968
+ # Corresponds to the JSON property `filter`
4969
+ # @return [String]
4970
+ attr_accessor :filter
4971
+
4972
+ # Medium of conversations used in training data. This field is being deprecated.
4973
+ # To specify the medium to be used in training a new issue model, set the `
4974
+ # medium` field on `filter`.
4975
+ # Corresponds to the JSON property `medium`
4976
+ # @return [String]
4977
+ attr_accessor :medium
4978
+
4979
+ # Output only. Number of conversations used in training. Output only.
4980
+ # Corresponds to the JSON property `trainingConversationsCount`
4981
+ # @return [Fixnum]
4982
+ attr_accessor :training_conversations_count
4983
+
4984
+ def initialize(**args)
4985
+ update!(**args)
4986
+ end
4987
+
4988
+ # Update properties of this object
4989
+ def update!(**args)
4990
+ @filter = args[:filter] if args.key?(:filter)
4991
+ @medium = args[:medium] if args.key?(:medium)
4992
+ @training_conversations_count = args[:training_conversations_count] if args.key?(:training_conversations_count)
4993
+ end
4994
+ end
4995
+
4996
+ # Aggregated statistics about an issue model.
4997
+ class GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats
4998
+ include Google::Apis::Core::Hashable
4999
+
5000
+ # Number of conversations the issue model has analyzed at this point in time.
5001
+ # Corresponds to the JSON property `analyzedConversationsCount`
5002
+ # @return [Fixnum]
5003
+ attr_accessor :analyzed_conversations_count
5004
+
5005
+ # Statistics on each issue. Key is the issue's resource name.
5006
+ # Corresponds to the JSON property `issueStats`
5007
+ # @return [Hash<String,Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats>]
5008
+ attr_accessor :issue_stats
5009
+
5010
+ # Number of analyzed conversations for which no issue was applicable at this
5011
+ # point in time.
5012
+ # Corresponds to the JSON property `unclassifiedConversationsCount`
5013
+ # @return [Fixnum]
5014
+ attr_accessor :unclassified_conversations_count
5015
+
5016
+ def initialize(**args)
5017
+ update!(**args)
5018
+ end
5019
+
5020
+ # Update properties of this object
5021
+ def update!(**args)
5022
+ @analyzed_conversations_count = args[:analyzed_conversations_count] if args.key?(:analyzed_conversations_count)
5023
+ @issue_stats = args[:issue_stats] if args.key?(:issue_stats)
5024
+ @unclassified_conversations_count = args[:unclassified_conversations_count] if args.key?(:unclassified_conversations_count)
5025
+ end
5026
+ end
5027
+
5028
+ # Aggregated statistics about an issue.
5029
+ class GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats
5030
+ include Google::Apis::Core::Hashable
5031
+
5032
+ # Display name of the issue.
5033
+ # Corresponds to the JSON property `displayName`
5034
+ # @return [String]
5035
+ attr_accessor :display_name
5036
+
5037
+ # Issue resource. Format: projects/`project`/locations/`location`/issueModels/`
5038
+ # issue_model`/issues/`issue`
5039
+ # Corresponds to the JSON property `issue`
5040
+ # @return [String]
5041
+ attr_accessor :issue
5042
+
5043
+ # Number of conversations attached to the issue at this point in time.
5044
+ # Corresponds to the JSON property `labeledConversationsCount`
5045
+ # @return [Fixnum]
5046
+ attr_accessor :labeled_conversations_count
5047
+
5048
+ def initialize(**args)
5049
+ update!(**args)
5050
+ end
5051
+
5052
+ # Update properties of this object
5053
+ def update!(**args)
5054
+ @display_name = args[:display_name] if args.key?(:display_name)
5055
+ @issue = args[:issue] if args.key?(:issue)
5056
+ @labeled_conversations_count = args[:labeled_conversations_count] if args.key?(:labeled_conversations_count)
5057
+ end
5058
+ end
5059
+
5060
+ # Issue Modeling result on a conversation.
5061
+ class GoogleCloudContactcenterinsightsV1alpha1IssueModelResult
5062
+ include Google::Apis::Core::Hashable
5063
+
5064
+ # Issue model that generates the result. Format: projects/`project`/locations/`
5065
+ # location`/issueModels/`issue_model`
5066
+ # Corresponds to the JSON property `issueModel`
5067
+ # @return [String]
5068
+ attr_accessor :issue_model
5069
+
5070
+ # All the matched issues.
5071
+ # Corresponds to the JSON property `issues`
5072
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueAssignment>]
5073
+ attr_accessor :issues
5074
+
5075
+ def initialize(**args)
5076
+ update!(**args)
5077
+ end
5078
+
5079
+ # Update properties of this object
5080
+ def update!(**args)
5081
+ @issue_model = args[:issue_model] if args.key?(:issue_model)
5082
+ @issues = args[:issues] if args.key?(:issues)
5083
+ end
5084
+ end
5085
+
5086
+ # The data for a matched phrase matcher. Represents information identifying a
5087
+ # phrase matcher for a given match.
5088
+ class GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData
5089
+ include Google::Apis::Core::Hashable
5090
+
5091
+ # The human-readable name of the phrase matcher.
5092
+ # Corresponds to the JSON property `displayName`
5093
+ # @return [String]
5094
+ attr_accessor :display_name
5095
+
5096
+ # The unique identifier (the resource name) of the phrase matcher.
5097
+ # Corresponds to the JSON property `phraseMatcher`
5098
+ # @return [String]
5099
+ attr_accessor :phrase_matcher
5100
+
5101
+ def initialize(**args)
5102
+ update!(**args)
5103
+ end
5104
+
5105
+ # Update properties of this object
5106
+ def update!(**args)
5107
+ @display_name = args[:display_name] if args.key?(:display_name)
5108
+ @phrase_matcher = args[:phrase_matcher] if args.key?(:phrase_matcher)
5109
+ end
5110
+ end
5111
+
5112
+ # DLP resources used for redaction while ingesting conversations.
5113
+ class GoogleCloudContactcenterinsightsV1alpha1RedactionConfig
5114
+ include Google::Apis::Core::Hashable
5115
+
5116
+ # The fully-qualified DLP deidentify template resource name. Format: `projects/`
5117
+ # project`/deidentifyTemplates/`template``
5118
+ # Corresponds to the JSON property `deidentifyTemplate`
5119
+ # @return [String]
5120
+ attr_accessor :deidentify_template
5121
+
5122
+ # The fully-qualified DLP inspect template resource name. Format: `projects/`
5123
+ # project`/inspectTemplates/`template``
5124
+ # Corresponds to the JSON property `inspectTemplate`
5125
+ # @return [String]
5126
+ attr_accessor :inspect_template
5127
+
5128
+ def initialize(**args)
5129
+ update!(**args)
5130
+ end
5131
+
5132
+ # Update properties of this object
5133
+ def update!(**args)
5134
+ @deidentify_template = args[:deidentify_template] if args.key?(:deidentify_template)
5135
+ @inspect_template = args[:inspect_template] if args.key?(:inspect_template)
5136
+ end
5137
+ end
5138
+
5139
+ # An annotation that was generated during the customer and agent interaction.
5140
+ class GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation
5141
+ include Google::Apis::Core::Hashable
5142
+
5143
+ # The unique identifier of the annotation. Format: projects/`project`/locations/`
5144
+ # location`/conversationDatasets/`dataset`/conversationDataItems/`data_item`/
5145
+ # conversationAnnotations/`annotation`
5146
+ # Corresponds to the JSON property `annotationId`
5147
+ # @return [String]
5148
+ attr_accessor :annotation_id
5149
+
5150
+ # The feedback that the customer has about a certain answer in the conversation.
5151
+ # Corresponds to the JSON property `answerFeedback`
5152
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback]
5153
+ attr_accessor :answer_feedback
5154
+
5155
+ # Agent Assist Article Suggestion data.
5156
+ # Corresponds to the JSON property `articleSuggestion`
5157
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ArticleSuggestionData]
5158
+ attr_accessor :article_suggestion
5159
+
5160
+ # The time at which this annotation was created.
5161
+ # Corresponds to the JSON property `createTime`
5162
+ # @return [String]
5163
+ attr_accessor :create_time
5164
+
5165
+ # Dialogflow interaction data.
5166
+ # Corresponds to the JSON property `dialogflowInteraction`
5167
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1DialogflowInteractionData]
5168
+ attr_accessor :dialogflow_interaction
5169
+
5170
+ # A point in a conversation that marks the start or the end of an annotation.
5171
+ # Corresponds to the JSON property `endBoundary`
5172
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary]
5173
+ attr_accessor :end_boundary
5174
+
5175
+ # Agent Assist frequently-asked-question answer data.
5176
+ # Corresponds to the JSON property `faqAnswer`
5177
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData]
5178
+ attr_accessor :faq_answer
5179
+
5180
+ # Agent Assist Smart Compose suggestion data.
5181
+ # Corresponds to the JSON property `smartComposeSuggestion`
5182
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData]
5183
+ attr_accessor :smart_compose_suggestion
5184
+
5185
+ # Agent Assist Smart Reply data.
5186
+ # Corresponds to the JSON property `smartReply`
5187
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SmartReplyData]
5188
+ attr_accessor :smart_reply
5189
+
5190
+ # A point in a conversation that marks the start or the end of an annotation.
5191
+ # Corresponds to the JSON property `startBoundary`
5192
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary]
5193
+ attr_accessor :start_boundary
3688
5194
 
3689
5195
  def initialize(**args)
3690
5196
  update!(**args)
@@ -3692,18 +5198,33 @@ module Google
3692
5198
 
3693
5199
  # Update properties of this object
3694
5200
  def update!(**args)
3695
- @agent_id = args[:agent_id] if args.key?(:agent_id)
5201
+ @annotation_id = args[:annotation_id] if args.key?(:annotation_id)
5202
+ @answer_feedback = args[:answer_feedback] if args.key?(:answer_feedback)
5203
+ @article_suggestion = args[:article_suggestion] if args.key?(:article_suggestion)
5204
+ @create_time = args[:create_time] if args.key?(:create_time)
5205
+ @dialogflow_interaction = args[:dialogflow_interaction] if args.key?(:dialogflow_interaction)
5206
+ @end_boundary = args[:end_boundary] if args.key?(:end_boundary)
5207
+ @faq_answer = args[:faq_answer] if args.key?(:faq_answer)
5208
+ @smart_compose_suggestion = args[:smart_compose_suggestion] if args.key?(:smart_compose_suggestion)
5209
+ @smart_reply = args[:smart_reply] if args.key?(:smart_reply)
5210
+ @start_boundary = args[:start_boundary] if args.key?(:start_boundary)
3696
5211
  end
3697
5212
  end
3698
5213
 
3699
- # Configuration for Cloud Storage bucket sources.
3700
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource
5214
+ # The data for a sentiment annotation.
5215
+ class GoogleCloudContactcenterinsightsV1alpha1SentimentData
3701
5216
  include Google::Apis::Core::Hashable
3702
5217
 
3703
- # Required. The Cloud Storage bucket containing source objects.
3704
- # Corresponds to the JSON property `bucketUri`
3705
- # @return [String]
3706
- attr_accessor :bucket_uri
5218
+ # A non-negative number from 0 to infinity which represents the abolute
5219
+ # magnitude of sentiment regardless of score.
5220
+ # Corresponds to the JSON property `magnitude`
5221
+ # @return [Float]
5222
+ attr_accessor :magnitude
5223
+
5224
+ # The sentiment score between -1.0 (negative) and 1.0 (positive).
5225
+ # Corresponds to the JSON property `score`
5226
+ # @return [Float]
5227
+ attr_accessor :score
3707
5228
 
3708
5229
  def initialize(**args)
3709
5230
  update!(**args)
@@ -3711,86 +5232,92 @@ module Google
3711
5232
 
3712
5233
  # Update properties of this object
3713
5234
  def update!(**args)
3714
- @bucket_uri = args[:bucket_uri] if args.key?(:bucket_uri)
5235
+ @magnitude = args[:magnitude] if args.key?(:magnitude)
5236
+ @score = args[:score] if args.key?(:score)
3715
5237
  end
3716
5238
  end
3717
5239
 
3718
- # Configuration for processing transcript objects.
3719
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig
5240
+ # The data for a silence annotation.
5241
+ class GoogleCloudContactcenterinsightsV1alpha1SilenceData
3720
5242
  include Google::Apis::Core::Hashable
3721
5243
 
3722
- # Required. The medium transcript objects represent.
3723
- # Corresponds to the JSON property `medium`
3724
- # @return [String]
3725
- attr_accessor :medium
3726
-
3727
5244
  def initialize(**args)
3728
5245
  update!(**args)
3729
5246
  end
3730
5247
 
3731
5248
  # Update properties of this object
3732
5249
  def update!(**args)
3733
- @medium = args[:medium] if args.key?(:medium)
3734
5250
  end
3735
5251
  end
3736
5252
 
3737
- # The response to an IngestConversations operation.
3738
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse
5253
+ # Agent Assist Smart Compose suggestion data.
5254
+ class GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData
3739
5255
  include Google::Apis::Core::Hashable
3740
5256
 
5257
+ # The system's confidence score that this suggestion is a good match for this
5258
+ # conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely
5259
+ # certain).
5260
+ # Corresponds to the JSON property `confidenceScore`
5261
+ # @return [Float]
5262
+ attr_accessor :confidence_score
5263
+
5264
+ # Map that contains metadata about the Smart Compose suggestion and the document
5265
+ # from which it originates.
5266
+ # Corresponds to the JSON property `metadata`
5267
+ # @return [Hash<String,String>]
5268
+ attr_accessor :metadata
5269
+
5270
+ # The name of the answer record. Format: projects/`project`/locations/`location`/
5271
+ # answerRecords/`answer_record`
5272
+ # Corresponds to the JSON property `queryRecord`
5273
+ # @return [String]
5274
+ attr_accessor :query_record
5275
+
5276
+ # The content of the suggestion.
5277
+ # Corresponds to the JSON property `suggestion`
5278
+ # @return [String]
5279
+ attr_accessor :suggestion
5280
+
3741
5281
  def initialize(**args)
3742
5282
  update!(**args)
3743
5283
  end
3744
5284
 
3745
5285
  # Update properties of this object
3746
5286
  def update!(**args)
5287
+ @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
5288
+ @metadata = args[:metadata] if args.key?(:metadata)
5289
+ @query_record = args[:query_record] if args.key?(:query_record)
5290
+ @suggestion = args[:suggestion] if args.key?(:suggestion)
3747
5291
  end
3748
5292
  end
3749
5293
 
3750
- # The issue model resource.
3751
- class GoogleCloudContactcenterinsightsV1alpha1IssueModel
5294
+ # Agent Assist Smart Reply data.
5295
+ class GoogleCloudContactcenterinsightsV1alpha1SmartReplyData
3752
5296
  include Google::Apis::Core::Hashable
3753
5297
 
3754
- # Output only. The time at which this issue model was created.
3755
- # Corresponds to the JSON property `createTime`
3756
- # @return [String]
3757
- attr_accessor :create_time
3758
-
3759
- # The representative name for the issue model.
3760
- # Corresponds to the JSON property `displayName`
3761
- # @return [String]
3762
- attr_accessor :display_name
3763
-
3764
- # Configs for the input data used to create the issue model.
3765
- # Corresponds to the JSON property `inputDataConfig`
3766
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig]
3767
- attr_accessor :input_data_config
3768
-
3769
- # Output only. Number of issues in this issue model.
3770
- # Corresponds to the JSON property `issueCount`
3771
- # @return [Fixnum]
3772
- attr_accessor :issue_count
5298
+ # The system's confidence score that this reply is a good match for this
5299
+ # conversation, ranging from 0.0 (completely uncertain) to 1.0 (completely
5300
+ # certain).
5301
+ # Corresponds to the JSON property `confidenceScore`
5302
+ # @return [Float]
5303
+ attr_accessor :confidence_score
3773
5304
 
3774
- # Immutable. The resource name of the issue model. Format: projects/`project`/
3775
- # locations/`location`/issueModels/`issue_model`
3776
- # Corresponds to the JSON property `name`
3777
- # @return [String]
3778
- attr_accessor :name
5305
+ # Map that contains metadata about the Smart Reply and the document from which
5306
+ # it originates.
5307
+ # Corresponds to the JSON property `metadata`
5308
+ # @return [Hash<String,String>]
5309
+ attr_accessor :metadata
3779
5310
 
3780
- # Output only. State of the model.
3781
- # Corresponds to the JSON property `state`
5311
+ # The name of the answer record. Format: projects/`project`/locations/`location`/
5312
+ # answerRecords/`answer_record`
5313
+ # Corresponds to the JSON property `queryRecord`
3782
5314
  # @return [String]
3783
- attr_accessor :state
3784
-
3785
- # Aggregated statistics about an issue model.
3786
- # Corresponds to the JSON property `trainingStats`
3787
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats]
3788
- attr_accessor :training_stats
5315
+ attr_accessor :query_record
3789
5316
 
3790
- # Output only. The most recent time at which the issue model was updated.
3791
- # Corresponds to the JSON property `updateTime`
5317
+ # The content of the reply.
5318
+ # Corresponds to the JSON property `reply`
3792
5319
  # @return [String]
3793
- attr_accessor :update_time
5320
+ attr_accessor :reply
3794
5321
 
3795
5322
  def initialize(**args)
3796
5323
  update!(**args)
@@ -3798,38 +5325,31 @@ module Google
3798
5325
 
3799
5326
  # Update properties of this object
3800
5327
  def update!(**args)
3801
- @create_time = args[:create_time] if args.key?(:create_time)
3802
- @display_name = args[:display_name] if args.key?(:display_name)
3803
- @input_data_config = args[:input_data_config] if args.key?(:input_data_config)
3804
- @issue_count = args[:issue_count] if args.key?(:issue_count)
3805
- @name = args[:name] if args.key?(:name)
3806
- @state = args[:state] if args.key?(:state)
3807
- @training_stats = args[:training_stats] if args.key?(:training_stats)
3808
- @update_time = args[:update_time] if args.key?(:update_time)
5328
+ @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
5329
+ @metadata = args[:metadata] if args.key?(:metadata)
5330
+ @query_record = args[:query_record] if args.key?(:query_record)
5331
+ @reply = args[:reply] if args.key?(:reply)
3809
5332
  end
3810
5333
  end
3811
5334
 
3812
- # Configs for the input data used to create the issue model.
3813
- class GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig
5335
+ # Metadata for undeploying an issue model.
5336
+ class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata
3814
5337
  include Google::Apis::Core::Hashable
3815
5338
 
3816
- # A filter to reduce the conversations used for training the model to a specific
3817
- # subset.
3818
- # Corresponds to the JSON property `filter`
5339
+ # Output only. The time the operation was created.
5340
+ # Corresponds to the JSON property `createTime`
3819
5341
  # @return [String]
3820
- attr_accessor :filter
5342
+ attr_accessor :create_time
3821
5343
 
3822
- # Medium of conversations used in training data. This field is being deprecated.
3823
- # To specify the medium to be used in training a new issue model, set the `
3824
- # medium` field on `filter`.
3825
- # Corresponds to the JSON property `medium`
5344
+ # Output only. The time the operation finished running.
5345
+ # Corresponds to the JSON property `endTime`
3826
5346
  # @return [String]
3827
- attr_accessor :medium
5347
+ attr_accessor :end_time
3828
5348
 
3829
- # Output only. Number of conversations used in training. Output only.
3830
- # Corresponds to the JSON property `trainingConversationsCount`
3831
- # @return [Fixnum]
3832
- attr_accessor :training_conversations_count
5349
+ # The request to undeploy an issue model.
5350
+ # Corresponds to the JSON property `request`
5351
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest]
5352
+ attr_accessor :request
3833
5353
 
3834
5354
  def initialize(**args)
3835
5355
  update!(**args)
@@ -3837,31 +5357,20 @@ module Google
3837
5357
 
3838
5358
  # Update properties of this object
3839
5359
  def update!(**args)
3840
- @filter = args[:filter] if args.key?(:filter)
3841
- @medium = args[:medium] if args.key?(:medium)
3842
- @training_conversations_count = args[:training_conversations_count] if args.key?(:training_conversations_count)
5360
+ @create_time = args[:create_time] if args.key?(:create_time)
5361
+ @end_time = args[:end_time] if args.key?(:end_time)
5362
+ @request = args[:request] if args.key?(:request)
3843
5363
  end
3844
5364
  end
3845
5365
 
3846
- # Aggregated statistics about an issue model.
3847
- class GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats
5366
+ # The request to undeploy an issue model.
5367
+ class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest
3848
5368
  include Google::Apis::Core::Hashable
3849
5369
 
3850
- # Number of conversations the issue model has analyzed at this point in time.
3851
- # Corresponds to the JSON property `analyzedConversationsCount`
3852
- # @return [Fixnum]
3853
- attr_accessor :analyzed_conversations_count
3854
-
3855
- # Statistics on each issue. Key is the issue's resource name.
3856
- # Corresponds to the JSON property `issueStats`
3857
- # @return [Hash<String,Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats>]
3858
- attr_accessor :issue_stats
3859
-
3860
- # Number of analyzed conversations for which no issue was applicable at this
3861
- # point in time.
3862
- # Corresponds to the JSON property `unclassifiedConversationsCount`
3863
- # @return [Fixnum]
3864
- attr_accessor :unclassified_conversations_count
5370
+ # Required. The issue model to undeploy.
5371
+ # Corresponds to the JSON property `name`
5372
+ # @return [String]
5373
+ attr_accessor :name
3865
5374
 
3866
5375
  def initialize(**args)
3867
5376
  update!(**args)
@@ -3869,48 +5378,38 @@ module Google
3869
5378
 
3870
5379
  # Update properties of this object
3871
5380
  def update!(**args)
3872
- @analyzed_conversations_count = args[:analyzed_conversations_count] if args.key?(:analyzed_conversations_count)
3873
- @issue_stats = args[:issue_stats] if args.key?(:issue_stats)
3874
- @unclassified_conversations_count = args[:unclassified_conversations_count] if args.key?(:unclassified_conversations_count)
5381
+ @name = args[:name] if args.key?(:name)
3875
5382
  end
3876
5383
  end
3877
5384
 
3878
- # Aggregated statistics about an issue.
3879
- class GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats
5385
+ # The response to undeploy an issue model.
5386
+ class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelResponse
3880
5387
  include Google::Apis::Core::Hashable
3881
5388
 
3882
- # Display name of the issue.
3883
- # Corresponds to the JSON property `displayName`
3884
- # @return [String]
3885
- attr_accessor :display_name
3886
-
3887
- # Issue resource. Format: projects/`project`/locations/`location`/issueModels/`
3888
- # issue_model`/issues/`issue`
3889
- # Corresponds to the JSON property `issue`
3890
- # @return [String]
3891
- attr_accessor :issue
3892
-
3893
- # Number of conversations attached to the issue at this point in time.
3894
- # Corresponds to the JSON property `labeledConversationsCount`
3895
- # @return [Fixnum]
3896
- attr_accessor :labeled_conversations_count
3897
-
3898
5389
  def initialize(**args)
3899
5390
  update!(**args)
3900
5391
  end
3901
5392
 
3902
5393
  # Update properties of this object
3903
5394
  def update!(**args)
3904
- @display_name = args[:display_name] if args.key?(:display_name)
3905
- @issue = args[:issue] if args.key?(:issue)
3906
- @labeled_conversations_count = args[:labeled_conversations_count] if args.key?(:labeled_conversations_count)
3907
5395
  end
3908
5396
  end
3909
5397
 
3910
- # Metadata for undeploying an issue model.
3911
- class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata
5398
+ # The metadata for an UploadConversation operation.
5399
+ class GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata
3912
5400
  include Google::Apis::Core::Hashable
3913
5401
 
5402
+ # Output only. The operation name for a successfully created analysis operation,
5403
+ # if any.
5404
+ # Corresponds to the JSON property `analysisOperation`
5405
+ # @return [String]
5406
+ attr_accessor :analysis_operation
5407
+
5408
+ # DLP resources used for redaction while ingesting conversations.
5409
+ # Corresponds to the JSON property `appliedRedactionConfig`
5410
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1RedactionConfig]
5411
+ attr_accessor :applied_redaction_config
5412
+
3914
5413
  # Output only. The time the operation was created.
3915
5414
  # Corresponds to the JSON property `createTime`
3916
5415
  # @return [String]
@@ -3921,9 +5420,9 @@ module Google
3921
5420
  # @return [String]
3922
5421
  attr_accessor :end_time
3923
5422
 
3924
- # The request to undeploy an issue model.
5423
+ # Request to upload a conversation.
3925
5424
  # Corresponds to the JSON property `request`
3926
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest]
5425
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest]
3927
5426
  attr_accessor :request
3928
5427
 
3929
5428
  def initialize(**args)
@@ -3932,34 +5431,40 @@ module Google
3932
5431
 
3933
5432
  # Update properties of this object
3934
5433
  def update!(**args)
5434
+ @analysis_operation = args[:analysis_operation] if args.key?(:analysis_operation)
5435
+ @applied_redaction_config = args[:applied_redaction_config] if args.key?(:applied_redaction_config)
3935
5436
  @create_time = args[:create_time] if args.key?(:create_time)
3936
5437
  @end_time = args[:end_time] if args.key?(:end_time)
3937
5438
  @request = args[:request] if args.key?(:request)
3938
5439
  end
3939
5440
  end
3940
5441
 
3941
- # The request to undeploy an issue model.
3942
- class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest
5442
+ # Request to upload a conversation.
5443
+ class GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest
3943
5444
  include Google::Apis::Core::Hashable
3944
5445
 
3945
- # Required. The issue model to undeploy.
3946
- # Corresponds to the JSON property `name`
3947
- # @return [String]
3948
- attr_accessor :name
5446
+ # The conversation resource.
5447
+ # Corresponds to the JSON property `conversation`
5448
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1Conversation]
5449
+ attr_accessor :conversation
3949
5450
 
3950
- def initialize(**args)
3951
- update!(**args)
3952
- end
5451
+ # Optional. A unique ID for the new conversation. This ID will become the final
5452
+ # component of the conversation's resource name. If no ID is specified, a server-
5453
+ # generated ID will be used. This value should be 4-64 characters and must match
5454
+ # the regular expression `^[a-z0-9-]`4,64`$`. Valid characters are `a-z-`
5455
+ # Corresponds to the JSON property `conversationId`
5456
+ # @return [String]
5457
+ attr_accessor :conversation_id
3953
5458
 
3954
- # Update properties of this object
3955
- def update!(**args)
3956
- @name = args[:name] if args.key?(:name)
3957
- end
3958
- end
5459
+ # Required. The parent resource of the conversation.
5460
+ # Corresponds to the JSON property `parent`
5461
+ # @return [String]
5462
+ attr_accessor :parent
3959
5463
 
3960
- # The response to undeploy an issue model.
3961
- class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelResponse
3962
- include Google::Apis::Core::Hashable
5464
+ # DLP resources used for redaction while ingesting conversations.
5465
+ # Corresponds to the JSON property `redactionConfig`
5466
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1RedactionConfig]
5467
+ attr_accessor :redaction_config
3963
5468
 
3964
5469
  def initialize(**args)
3965
5470
  update!(**args)
@@ -3967,6 +5472,10 @@ module Google
3967
5472
 
3968
5473
  # Update properties of this object
3969
5474
  def update!(**args)
5475
+ @conversation = args[:conversation] if args.key?(:conversation)
5476
+ @conversation_id = args[:conversation_id] if args.key?(:conversation_id)
5477
+ @parent = args[:parent] if args.key?(:parent)
5478
+ @redaction_config = args[:redaction_config] if args.key?(:redaction_config)
3970
5479
  end
3971
5480
  end
3972
5481