google-apis-contactcenterinsights_v1 0.24.0 → 0.25.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2560,6 +2560,33 @@ module Google
2560
2560
  end
2561
2561
  end
2562
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
+
2563
2590
  # An annotation that was generated during the customer and agent interaction.
2564
2591
  class GoogleCloudContactcenterinsightsV1RuntimeAnnotation
2565
2592
  include Google::Apis::Core::Hashable
@@ -2709,6 +2736,11 @@ module Google
2709
2736
  # @return [Hash<String,String>]
2710
2737
  attr_accessor :pubsub_notification_settings
2711
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
+
2712
2744
  # Output only. The time at which the settings were last updated.
2713
2745
  # Corresponds to the JSON property `updateTime`
2714
2746
  # @return [String]
@@ -2726,6 +2758,7 @@ module Google
2726
2758
  @language_code = args[:language_code] if args.key?(:language_code)
2727
2759
  @name = args[:name] if args.key?(:name)
2728
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)
2729
2762
  @update_time = args[:update_time] if args.key?(:update_time)
2730
2763
  end
2731
2764
  end
@@ -2921,6 +2954,90 @@ module Google
2921
2954
  end
2922
2955
  end
2923
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
+
2924
3041
  # The View resource.
2925
3042
  class GoogleCloudContactcenterinsightsV1View
2926
3043
  include Google::Apis::Core::Hashable
@@ -2965,6 +3082,152 @@ module Google
2965
3082
  end
2966
3083
  end
2967
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
+
2968
3231
  # Selector of all available annotators and phrase matchers to run.
2969
3232
  class GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector
2970
3233
  include Google::Apis::Core::Hashable
@@ -3048,40 +3311,27 @@ module Google
3048
3311
  end
3049
3312
  end
3050
3313
 
3051
- # The metadata for a bulk analyze conversations operation.
3052
- class GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsMetadata
3314
+ # The feedback that the customer has about a certain answer in the conversation.
3315
+ class GoogleCloudContactcenterinsightsV1alpha1AnswerFeedback
3053
3316
  include Google::Apis::Core::Hashable
3054
3317
 
3055
- # The number of requested analyses that have completed successfully so far.
3056
- # Corresponds to the JSON property `completedAnalysesCount`
3057
- # @return [Fixnum]
3058
- attr_accessor :completed_analyses_count
3059
-
3060
- # The time the operation was created.
3061
- # Corresponds to the JSON property `createTime`
3062
- # @return [String]
3063
- attr_accessor :create_time
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
3064
3323
 
3065
- # The time the operation finished running.
3066
- # Corresponds to the JSON property `endTime`
3324
+ # The correctness level of an answer.
3325
+ # Corresponds to the JSON property `correctnessLevel`
3067
3326
  # @return [String]
3068
- attr_accessor :end_time
3069
-
3070
- # The number of requested analyses that have failed so far.
3071
- # Corresponds to the JSON property `failedAnalysesCount`
3072
- # @return [Fixnum]
3073
- attr_accessor :failed_analyses_count
3074
-
3075
- # The request to analyze conversations in bulk.
3076
- # Corresponds to the JSON property `request`
3077
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest]
3078
- attr_accessor :request
3327
+ attr_accessor :correctness_level
3079
3328
 
3080
- # Total number of analyses requested. Computed by the number of conversations
3081
- # returned by `filter` multiplied by `analysis_percentage` in the request.
3082
- # Corresponds to the JSON property `totalRequestedAnalysesCount`
3083
- # @return [Fixnum]
3084
- attr_accessor :total_requested_analyses_count
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
3085
3335
 
3086
3336
  def initialize(**args)
3087
3337
  update!(**args)
@@ -3089,12 +3339,113 @@ module Google
3089
3339
 
3090
3340
  # Update properties of this object
3091
3341
  def update!(**args)
3092
- @completed_analyses_count = args[:completed_analyses_count] if args.key?(:completed_analyses_count)
3093
- @create_time = args[:create_time] if args.key?(:create_time)
3094
- @end_time = args[:end_time] if args.key?(:end_time)
3095
- @failed_analyses_count = args[:failed_analyses_count] if args.key?(:failed_analyses_count)
3096
- @request = args[:request] if args.key?(:request)
3097
- @total_requested_analyses_count = args[:total_requested_analyses_count] if args.key?(:total_requested_analyses_count)
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]
3409
+ attr_accessor :completed_analyses_count
3410
+
3411
+ # The time the operation was created.
3412
+ # Corresponds to the JSON property `createTime`
3413
+ # @return [String]
3414
+ attr_accessor :create_time
3415
+
3416
+ # The time the operation finished running.
3417
+ # Corresponds to the JSON property `endTime`
3418
+ # @return [String]
3419
+ attr_accessor :end_time
3420
+
3421
+ # The number of requested analyses that have failed so far.
3422
+ # Corresponds to the JSON property `failedAnalysesCount`
3423
+ # @return [Fixnum]
3424
+ attr_accessor :failed_analyses_count
3425
+
3426
+ # The request to analyze conversations in bulk.
3427
+ # Corresponds to the JSON property `request`
3428
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1BulkAnalyzeConversationsRequest]
3429
+ attr_accessor :request
3430
+
3431
+ # Total number of analyses requested. Computed by the number of conversations
3432
+ # returned by `filter` multiplied by `analysis_percentage` in the request.
3433
+ # Corresponds to the JSON property `totalRequestedAnalysesCount`
3434
+ # @return [Fixnum]
3435
+ attr_accessor :total_requested_analyses_count
3436
+
3437
+ def initialize(**args)
3438
+ update!(**args)
3439
+ end
3440
+
3441
+ # Update properties of this object
3442
+ def update!(**args)
3443
+ @completed_analyses_count = args[:completed_analyses_count] if args.key?(:completed_analyses_count)
3444
+ @create_time = args[:create_time] if args.key?(:create_time)
3445
+ @end_time = args[:end_time] if args.key?(:end_time)
3446
+ @failed_analyses_count = args[:failed_analyses_count] if args.key?(:failed_analyses_count)
3447
+ @request = args[:request] if args.key?(:request)
3448
+ @total_requested_analyses_count = args[:total_requested_analyses_count] if args.key?(:total_requested_analyses_count)
3098
3449
  end
3099
3450
  end
3100
3451
 
@@ -3160,61 +3511,69 @@ module Google
3160
3511
  end
3161
3512
  end
3162
3513
 
3163
- # Metadata for a create analysis operation.
3164
- class GoogleCloudContactcenterinsightsV1alpha1CreateAnalysisOperationMetadata
3514
+ # A piece of metadata that applies to a window of a call.
3515
+ class GoogleCloudContactcenterinsightsV1alpha1CallAnnotation
3165
3516
  include Google::Apis::Core::Hashable
3166
3517
 
3167
- # Selector of all available annotators and phrase matchers to run.
3168
- # Corresponds to the JSON property `annotatorSelector`
3169
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnnotatorSelector]
3170
- 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
3171
3522
 
3172
- # Output only. The Conversation that this Analysis Operation belongs to.
3173
- # Corresponds to the JSON property `conversation`
3174
- # @return [String]
3175
- 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
3176
3527
 
3177
- # Output only. The time the operation was created.
3178
- # Corresponds to the JSON property `createTime`
3179
- # @return [String]
3180
- 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
3181
3533
 
3182
- # Output only. The time the operation finished running.
3183
- # Corresponds to the JSON property `endTime`
3184
- # @return [String]
3185
- 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
3186
3539
 
3187
- def initialize(**args)
3188
- update!(**args)
3189
- 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
3190
3544
 
3191
- # Update properties of this object
3192
- def update!(**args)
3193
- @annotator_selector = args[:annotator_selector] if args.key?(:annotator_selector)
3194
- @conversation = args[:conversation] if args.key?(:conversation)
3195
- @create_time = args[:create_time] if args.key?(:create_time)
3196
- @end_time = args[:end_time] if args.key?(:end_time)
3197
- end
3198
- 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
3199
3551
 
3200
- # Metadata for creating an issue model.
3201
- class GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelMetadata
3202
- 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
3203
3556
 
3204
- # Output only. The time the operation was created.
3205
- # Corresponds to the JSON property `createTime`
3206
- # @return [String]
3207
- 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
3208
3561
 
3209
- # Output only. The time the operation finished running.
3210
- # Corresponds to the JSON property `endTime`
3211
- # @return [String]
3212
- 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
3213
3567
 
3214
- # The request to create an issue model.
3215
- # Corresponds to the JSON property `request`
3216
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest]
3217
- 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
3218
3577
 
3219
3578
  def initialize(**args)
3220
3579
  update!(**args)
@@ -3222,76 +3581,1147 @@ module Google
3222
3581
 
3223
3582
  # Update properties of this object
3224
3583
  def update!(**args)
3225
- @create_time = args[:create_time] if args.key?(:create_time)
3226
- @end_time = args[:end_time] if args.key?(:end_time)
3227
- @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)
3228
3595
  end
3229
3596
  end
3230
3597
 
3231
- # The request to create an issue model.
3232
- class GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest
3598
+ # The conversation resource.
3599
+ class GoogleCloudContactcenterinsightsV1alpha1Conversation
3233
3600
  include Google::Apis::Core::Hashable
3234
3601
 
3235
- # The issue model resource.
3236
- # Corresponds to the JSON property `issueModel`
3237
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModel]
3238
- attr_accessor :issue_model
3239
-
3240
- # Required. The parent resource of the issue model.
3241
- # 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`
3242
3605
  # @return [String]
3243
- attr_accessor :parent
3244
-
3245
- def initialize(**args)
3246
- update!(**args)
3247
- end
3248
-
3249
- # Update properties of this object
3250
- def update!(**args)
3251
- @issue_model = args[:issue_model] if args.key?(:issue_model)
3252
- @parent = args[:parent] if args.key?(:parent)
3253
- end
3254
- end
3606
+ attr_accessor :agent_id
3255
3607
 
3256
- # Metadata for deleting an issue model.
3257
- class GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata
3258
- 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
3259
3612
 
3260
- # Output only. The time the operation was created.
3613
+ # Output only. The time at which the conversation was created.
3261
3614
  # Corresponds to the JSON property `createTime`
3262
3615
  # @return [String]
3263
3616
  attr_accessor :create_time
3264
3617
 
3265
- # Output only. The time the operation finished running.
3266
- # Corresponds to the JSON property `endTime`
3267
- # @return [String]
3268
- attr_accessor :end_time
3269
-
3270
- # The request to delete an issue model.
3271
- # Corresponds to the JSON property `request`
3272
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest]
3273
- attr_accessor :request
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
3274
3622
 
3275
- def initialize(**args)
3276
- update!(**args)
3277
- end
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`
3632
+ # @return [String]
3633
+ attr_accessor :duration
3634
+
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
3640
+
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
3646
+
3647
+ # A user-specified language code for the conversation.
3648
+ # Corresponds to the JSON property `languageCode`
3649
+ # @return [String]
3650
+ attr_accessor :language_code
3651
+
3652
+ # The analysis resource.
3653
+ # Corresponds to the JSON property `latestAnalysis`
3654
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1Analysis]
3655
+ attr_accessor :latest_analysis
3656
+
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`
3664
+ # Corresponds to the JSON property `name`
3665
+ # @return [String]
3666
+ attr_accessor :name
3667
+
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
3672
+
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
3678
+
3679
+ # The time at which the conversation started.
3680
+ # Corresponds to the JSON property `startTime`
3681
+ # @return [String]
3682
+ attr_accessor :start_time
3683
+
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`
3692
+ # @return [String]
3693
+ attr_accessor :ttl
3694
+
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
3704
+
3705
+ def initialize(**args)
3706
+ update!(**args)
3707
+ end
3708
+
3709
+ # Update properties of this object
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)
3713
+ @create_time = args[:create_time] if args.key?(:create_time)
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)
3730
+ end
3731
+ end
3732
+
3733
+ # Call-specific metadata.
3734
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationCallMetadata
3735
+ include Google::Apis::Core::Hashable
3736
+
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
3746
+
3747
+ def initialize(**args)
3748
+ update!(**args)
3749
+ end
3750
+
3751
+ # Update properties of this object
3752
+ def update!(**args)
3753
+ @agent_channel = args[:agent_channel] if args.key?(:agent_channel)
3754
+ @customer_channel = args[:customer_channel] if args.key?(:customer_channel)
3755
+ end
3756
+ end
3757
+
3758
+ # The conversation source, which is a combination of transcript and audio.
3759
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationDataSource
3760
+ include Google::Apis::Core::Hashable
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
+
3772
+ def initialize(**args)
3773
+ update!(**args)
3774
+ end
3775
+
3776
+ # Update properties of this object
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)
3780
+ end
3781
+ end
3782
+
3783
+ # One channel of conversation-level sentiment data.
3784
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationLevelSentiment
3785
+ include Google::Apis::Core::Hashable
3786
+
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
3791
+
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
3796
+
3797
+ def initialize(**args)
3798
+ update!(**args)
3799
+ end
3800
+
3801
+ # Update properties of this object
3802
+ def update!(**args)
3803
+ @channel_tag = args[:channel_tag] if args.key?(:channel_tag)
3804
+ @sentiment_data = args[:sentiment_data] if args.key?(:sentiment_data)
3805
+ end
3806
+ end
3807
+
3808
+ # The call participant speaking for a given utterance.
3809
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationParticipant
3810
+ include Google::Apis::Core::Hashable
3811
+
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
3818
+
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`
3822
+ # @return [String]
3823
+ attr_accessor :dialogflow_participant_name
3824
+
3825
+ # Obfuscated user ID from Dialogflow.
3826
+ # Corresponds to the JSON property `obfuscatedExternalUserId`
3827
+ # @return [String]
3828
+ attr_accessor :obfuscated_external_user_id
3829
+
3830
+ # The role of the participant.
3831
+ # Corresponds to the JSON property `role`
3832
+ # @return [String]
3833
+ attr_accessor :role
3834
+
3835
+ # A user-specified ID representing the participant.
3836
+ # Corresponds to the JSON property `userId`
3837
+ # @return [String]
3838
+ attr_accessor :user_id
3839
+
3840
+ def initialize(**args)
3841
+ update!(**args)
3842
+ end
3843
+
3844
+ # Update properties of this object
3845
+ def update!(**args)
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)
3851
+ end
3852
+ end
3853
+
3854
+ # A message representing the transcript of a conversation.
3855
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationTranscript
3856
+ include Google::Apis::Core::Hashable
3857
+
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
3862
+
3863
+ def initialize(**args)
3864
+ update!(**args)
3865
+ end
3866
+
3867
+ # Update properties of this object
3868
+ def update!(**args)
3869
+ @transcript_segments = args[:transcript_segments] if args.key?(:transcript_segments)
3870
+ end
3871
+ end
3872
+
3873
+ # A segment of a full transcript.
3874
+ class GoogleCloudContactcenterinsightsV1alpha1ConversationTranscriptTranscriptSegment
3875
+ include Google::Apis::Core::Hashable
3876
+
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
3884
+
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
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)
3942
+ end
3943
+ end
3944
+
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
4008
+ include Google::Apis::Core::Hashable
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
+
4020
+ # Output only. The time the operation was created.
4021
+ # Corresponds to the JSON property `createTime`
4022
+ # @return [String]
4023
+ attr_accessor :create_time
4024
+
4025
+ # Output only. The time the operation finished running.
4026
+ # Corresponds to the JSON property `endTime`
4027
+ # @return [String]
4028
+ attr_accessor :end_time
4029
+
4030
+ def initialize(**args)
4031
+ update!(**args)
4032
+ end
4033
+
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
4042
+
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.
4058
+ # Corresponds to the JSON property `request`
4059
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest]
4060
+ attr_accessor :request
4061
+
4062
+ def initialize(**args)
4063
+ update!(**args)
4064
+ end
4065
+
4066
+ # Update properties of this object
4067
+ def update!(**args)
4068
+ @create_time = args[:create_time] if args.key?(:create_time)
4069
+ @end_time = args[:end_time] if args.key?(:end_time)
4070
+ @request = args[:request] if args.key?(:request)
4071
+ end
4072
+ end
4073
+
4074
+ # The request to create an issue model.
4075
+ class GoogleCloudContactcenterinsightsV1alpha1CreateIssueModelRequest
4076
+ include Google::Apis::Core::Hashable
4077
+
4078
+ # The issue model resource.
4079
+ # Corresponds to the JSON property `issueModel`
4080
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModel]
4081
+ attr_accessor :issue_model
4082
+
4083
+ # Required. The parent resource of the issue model.
4084
+ # Corresponds to the JSON property `parent`
4085
+ # @return [String]
4086
+ attr_accessor :parent
4087
+
4088
+ def initialize(**args)
4089
+ update!(**args)
4090
+ end
4091
+
4092
+ # Update properties of this object
4093
+ def update!(**args)
4094
+ @issue_model = args[:issue_model] if args.key?(:issue_model)
4095
+ @parent = args[:parent] if args.key?(:parent)
4096
+ end
4097
+ end
4098
+
4099
+ # Metadata for deleting an issue model.
4100
+ class GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelMetadata
4101
+ include Google::Apis::Core::Hashable
4102
+
4103
+ # Output only. The time the operation was created.
4104
+ # Corresponds to the JSON property `createTime`
4105
+ # @return [String]
4106
+ attr_accessor :create_time
4107
+
4108
+ # Output only. The time the operation finished running.
4109
+ # Corresponds to the JSON property `endTime`
4110
+ # @return [String]
4111
+ attr_accessor :end_time
4112
+
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
4117
+
4118
+ def initialize(**args)
4119
+ update!(**args)
4120
+ end
4121
+
4122
+ # Update properties of this object
4123
+ def update!(**args)
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)
4127
+ end
4128
+ end
4129
+
4130
+ # The request to delete an issue model.
4131
+ class GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest
4132
+ include Google::Apis::Core::Hashable
4133
+
4134
+ # Required. The name of the issue model to delete.
4135
+ # Corresponds to the JSON property `name`
4136
+ # @return [String]
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
3278
4706
 
3279
4707
  # Update properties of this object
3280
4708
  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)
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)
3284
4713
  end
3285
4714
  end
3286
4715
 
3287
- # The request to delete an issue model.
3288
- class GoogleCloudContactcenterinsightsV1alpha1DeleteIssueModelRequest
4716
+ # Configuration that applies to all conversations.
4717
+ class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig
3289
4718
  include Google::Apis::Core::Hashable
3290
4719
 
3291
- # Required. The name of the issue model to delete.
3292
- # Corresponds to the JSON property `name`
4720
+ # An opaque, user-specified string representing the human agent who handled the
4721
+ # conversations.
4722
+ # Corresponds to the JSON property `agentId`
3293
4723
  # @return [String]
3294
- attr_accessor :name
4724
+ attr_accessor :agent_id
3295
4725
 
3296
4726
  def initialize(**args)
3297
4727
  update!(**args)
@@ -3299,28 +4729,51 @@ module Google
3299
4729
 
3300
4730
  # Update properties of this object
3301
4731
  def update!(**args)
3302
- @name = args[:name] if args.key?(:name)
4732
+ @agent_id = args[:agent_id] if args.key?(:agent_id)
3303
4733
  end
3304
4734
  end
3305
4735
 
3306
- # Metadata for deploying an issue model.
3307
- class GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelMetadata
4736
+ # Configuration for Cloud Storage bucket sources.
4737
+ class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource
3308
4738
  include Google::Apis::Core::Hashable
3309
4739
 
3310
- # Output only. The time the operation was created.
3311
- # Corresponds to the JSON property `createTime`
4740
+ # Required. The Cloud Storage bucket containing source objects.
4741
+ # Corresponds to the JSON property `bucketUri`
3312
4742
  # @return [String]
3313
- attr_accessor :create_time
4743
+ attr_accessor :bucket_uri
3314
4744
 
3315
- # Output only. The time the operation finished running.
3316
- # Corresponds to the JSON property `endTime`
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`
3317
4761
  # @return [String]
3318
- attr_accessor :end_time
4762
+ attr_accessor :medium
3319
4763
 
3320
- # The request to deploy an issue model.
3321
- # Corresponds to the JSON property `request`
3322
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest]
3323
- attr_accessor :request
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
3324
4777
 
3325
4778
  def initialize(**args)
3326
4779
  update!(**args)
@@ -3328,20 +4781,23 @@ module Google
3328
4781
 
3329
4782
  # Update properties of this object
3330
4783
  def update!(**args)
3331
- @create_time = args[:create_time] if args.key?(:create_time)
3332
- @end_time = args[:end_time] if args.key?(:end_time)
3333
- @request = args[:request] if args.key?(:request)
3334
4784
  end
3335
4785
  end
3336
4786
 
3337
- # The request to deploy an issue model.
3338
- class GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelRequest
4787
+ # The data for an intent. Represents a detected intent in the conversation, for
4788
+ # example MAKES_PROMISE.
4789
+ class GoogleCloudContactcenterinsightsV1alpha1Intent
3339
4790
  include Google::Apis::Core::Hashable
3340
4791
 
3341
- # Required. The issue model to deploy.
3342
- # Corresponds to the JSON property `name`
4792
+ # The human-readable name of the intent.
4793
+ # Corresponds to the JSON property `displayName`
3343
4794
  # @return [String]
3344
- attr_accessor :name
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
3345
4801
 
3346
4802
  def initialize(**args)
3347
4803
  update!(**args)
@@ -3349,47 +4805,142 @@ module Google
3349
4805
 
3350
4806
  # Update properties of this object
3351
4807
  def update!(**args)
3352
- @name = args[:name] if args.key?(:name)
4808
+ @display_name = args[:display_name] if args.key?(:display_name)
4809
+ @id = args[:id] if args.key?(:id)
3353
4810
  end
3354
4811
  end
3355
4812
 
3356
- # The response to deploy an issue model.
3357
- class GoogleCloudContactcenterinsightsV1alpha1DeployIssueModelResponse
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
3358
4817
  include Google::Apis::Core::Hashable
3359
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
+
3360
4825
  def initialize(**args)
3361
4826
  update!(**args)
3362
4827
  end
3363
4828
 
3364
4829
  # Update properties of this object
3365
4830
  def update!(**args)
4831
+ @intent_unique_id = args[:intent_unique_id] if args.key?(:intent_unique_id)
3366
4832
  end
3367
4833
  end
3368
4834
 
3369
- # Metadata for an export insights operation.
3370
- class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataMetadata
4835
+ # The data for an interruption annotation.
4836
+ class GoogleCloudContactcenterinsightsV1alpha1InterruptionData
3371
4837
  include Google::Apis::Core::Hashable
3372
4838
 
3373
- # Output only. The time the operation was created.
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.
3374
4905
  # Corresponds to the JSON property `createTime`
3375
4906
  # @return [String]
3376
4907
  attr_accessor :create_time
3377
4908
 
3378
- # Output only. The time the operation finished running.
3379
- # Corresponds to the JSON property `endTime`
4909
+ # The representative name for the issue model.
4910
+ # Corresponds to the JSON property `displayName`
3380
4911
  # @return [String]
3381
- attr_accessor :end_time
4912
+ attr_accessor :display_name
3382
4913
 
3383
- # Partial errors during export operation that might cause the operation output
3384
- # to be incomplete.
3385
- # Corresponds to the JSON property `partialErrors`
3386
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
3387
- attr_accessor :partial_errors
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
3388
4918
 
3389
- # The request to export insights.
3390
- # Corresponds to the JSON property `request`
3391
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest]
3392
- attr_accessor :request
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
3393
4944
 
3394
4945
  def initialize(**args)
3395
4946
  update!(**args)
@@ -3398,43 +4949,37 @@ module Google
3398
4949
  # Update properties of this object
3399
4950
  def update!(**args)
3400
4951
  @create_time = args[:create_time] if args.key?(:create_time)
3401
- @end_time = args[:end_time] if args.key?(:end_time)
3402
- @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
3403
- @request = args[:request] if args.key?(:request)
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)
3404
4959
  end
3405
4960
  end
3406
4961
 
3407
- # The request to export insights.
3408
- class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequest
4962
+ # Configs for the input data used to create the issue model.
4963
+ class GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig
3409
4964
  include Google::Apis::Core::Hashable
3410
4965
 
3411
- # A BigQuery Table Reference.
3412
- # Corresponds to the JSON property `bigQueryDestination`
3413
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination]
3414
- attr_accessor :big_query_destination
3415
-
3416
- # A filter to reduce results to a specific subset. Useful for exporting
3417
- # conversations with specific properties.
4966
+ # A filter to reduce the conversations used for training the model to a specific
4967
+ # subset.
3418
4968
  # Corresponds to the JSON property `filter`
3419
4969
  # @return [String]
3420
4970
  attr_accessor :filter
3421
4971
 
3422
- # A fully qualified KMS key name for BigQuery tables protected by CMEK. Format:
3423
- # projects/`project`/locations/`location`/keyRings/`keyring`/cryptoKeys/`key`/
3424
- # cryptoKeyVersions/`version`
3425
- # Corresponds to the JSON property `kmsKey`
3426
- # @return [String]
3427
- attr_accessor :kms_key
3428
-
3429
- # Required. The parent resource to export data from.
3430
- # Corresponds to the JSON property `parent`
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`
3431
4976
  # @return [String]
3432
- attr_accessor :parent
4977
+ attr_accessor :medium
3433
4978
 
3434
- # Options for what to do if the destination table already exists.
3435
- # Corresponds to the JSON property `writeDisposition`
3436
- # @return [String]
3437
- attr_accessor :write_disposition
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
3438
4983
 
3439
4984
  def initialize(**args)
3440
4985
  update!(**args)
@@ -3442,37 +4987,31 @@ module Google
3442
4987
 
3443
4988
  # Update properties of this object
3444
4989
  def update!(**args)
3445
- @big_query_destination = args[:big_query_destination] if args.key?(:big_query_destination)
3446
4990
  @filter = args[:filter] if args.key?(:filter)
3447
- @kms_key = args[:kms_key] if args.key?(:kms_key)
3448
- @parent = args[:parent] if args.key?(:parent)
3449
- @write_disposition = args[:write_disposition] if args.key?(:write_disposition)
4991
+ @medium = args[:medium] if args.key?(:medium)
4992
+ @training_conversations_count = args[:training_conversations_count] if args.key?(:training_conversations_count)
3450
4993
  end
3451
4994
  end
3452
4995
 
3453
- # A BigQuery Table Reference.
3454
- class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataRequestBigQueryDestination
4996
+ # Aggregated statistics about an issue model.
4997
+ class GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats
3455
4998
  include Google::Apis::Core::Hashable
3456
4999
 
3457
- # Required. The name of the BigQuery dataset that the snapshot result should be
3458
- # exported to. If this dataset does not exist, the export call returns an
3459
- # INVALID_ARGUMENT error.
3460
- # Corresponds to the JSON property `dataset`
3461
- # @return [String]
3462
- attr_accessor :dataset
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
3463
5004
 
3464
- # A project ID or number. If specified, then export will attempt to write data
3465
- # to this project instead of the resource project. Otherwise, the resource
3466
- # project will be used.
3467
- # Corresponds to the JSON property `projectId`
3468
- # @return [String]
3469
- attr_accessor :project_id
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
3470
5009
 
3471
- # The BigQuery table name to which the insights data should be written. If this
3472
- # table does not exist, the export call returns an INVALID_ARGUMENT error.
3473
- # Corresponds to the JSON property `table`
3474
- # @return [String]
3475
- attr_accessor :table
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
3476
5015
 
3477
5016
  def initialize(**args)
3478
5017
  update!(**args)
@@ -3480,54 +5019,58 @@ module Google
3480
5019
 
3481
5020
  # Update properties of this object
3482
5021
  def update!(**args)
3483
- @dataset = args[:dataset] if args.key?(:dataset)
3484
- @project_id = args[:project_id] if args.key?(:project_id)
3485
- @table = args[:table] if args.key?(:table)
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)
3486
5025
  end
3487
5026
  end
3488
5027
 
3489
- # Response for an export insights operation.
3490
- class GoogleCloudContactcenterinsightsV1alpha1ExportInsightsDataResponse
5028
+ # Aggregated statistics about an issue.
5029
+ class GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats
3491
5030
  include Google::Apis::Core::Hashable
3492
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
+
3493
5048
  def initialize(**args)
3494
5049
  update!(**args)
3495
5050
  end
3496
5051
 
3497
5052
  # Update properties of this object
3498
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)
3499
5057
  end
3500
5058
  end
3501
5059
 
3502
- # The metadata for an IngestConversations operation.
3503
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadata
5060
+ # Issue Modeling result on a conversation.
5061
+ class GoogleCloudContactcenterinsightsV1alpha1IssueModelResult
3504
5062
  include Google::Apis::Core::Hashable
3505
5063
 
3506
- # Output only. The time the operation was created.
3507
- # Corresponds to the JSON property `createTime`
3508
- # @return [String]
3509
- attr_accessor :create_time
3510
-
3511
- # Output only. The time the operation finished running.
3512
- # Corresponds to the JSON property `endTime`
5064
+ # Issue model that generates the result. Format: projects/`project`/locations/`
5065
+ # location`/issueModels/`issue_model`
5066
+ # Corresponds to the JSON property `issueModel`
3513
5067
  # @return [String]
3514
- attr_accessor :end_time
3515
-
3516
- # Statistics for IngestConversations operation.
3517
- # Corresponds to the JSON property `ingestConversationsStats`
3518
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats]
3519
- attr_accessor :ingest_conversations_stats
3520
-
3521
- # Output only. Partial errors during ingest operation that might cause the
3522
- # operation output to be incomplete.
3523
- # Corresponds to the JSON property `partialErrors`
3524
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleRpcStatus>]
3525
- attr_accessor :partial_errors
5068
+ attr_accessor :issue_model
3526
5069
 
3527
- # The request to ingest conversations.
3528
- # Corresponds to the JSON property `request`
3529
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest]
3530
- attr_accessor :request
5070
+ # All the matched issues.
5071
+ # Corresponds to the JSON property `issues`
5072
+ # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueAssignment>]
5073
+ attr_accessor :issues
3531
5074
 
3532
5075
  def initialize(**args)
3533
5076
  update!(**args)
@@ -3535,40 +5078,25 @@ module Google
3535
5078
 
3536
5079
  # Update properties of this object
3537
5080
  def update!(**args)
3538
- @create_time = args[:create_time] if args.key?(:create_time)
3539
- @end_time = args[:end_time] if args.key?(:end_time)
3540
- @ingest_conversations_stats = args[:ingest_conversations_stats] if args.key?(:ingest_conversations_stats)
3541
- @partial_errors = args[:partial_errors] if args.key?(:partial_errors)
3542
- @request = args[:request] if args.key?(:request)
5081
+ @issue_model = args[:issue_model] if args.key?(:issue_model)
5082
+ @issues = args[:issues] if args.key?(:issues)
3543
5083
  end
3544
5084
  end
3545
5085
 
3546
- # Statistics for IngestConversations operation.
3547
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsMetadataIngestConversationsStats
5086
+ # The data for a matched phrase matcher. Represents information identifying a
5087
+ # phrase matcher for a given match.
5088
+ class GoogleCloudContactcenterinsightsV1alpha1PhraseMatchData
3548
5089
  include Google::Apis::Core::Hashable
3549
5090
 
3550
- # Output only. The number of objects skipped because another conversation with
3551
- # the same transcript uri had already been ingested.
3552
- # Corresponds to the JSON property `duplicatesSkippedCount`
3553
- # @return [Fixnum]
3554
- attr_accessor :duplicates_skipped_count
3555
-
3556
- # Output only. The number of objects which were unable to be ingested due to
3557
- # errors. The errors are populated in the partial_errors field.
3558
- # Corresponds to the JSON property `failedIngestCount`
3559
- # @return [Fixnum]
3560
- attr_accessor :failed_ingest_count
3561
-
3562
- # Output only. The number of objects processed during the ingest operation.
3563
- # Corresponds to the JSON property `processedObjectCount`
3564
- # @return [Fixnum]
3565
- attr_accessor :processed_object_count
5091
+ # The human-readable name of the phrase matcher.
5092
+ # Corresponds to the JSON property `displayName`
5093
+ # @return [String]
5094
+ attr_accessor :display_name
3566
5095
 
3567
- # Output only. The number of new conversations added during this ingest
3568
- # operation.
3569
- # Corresponds to the JSON property `successfulIngestCount`
3570
- # @return [Fixnum]
3571
- attr_accessor :successful_ingest_count
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
3572
5100
 
3573
5101
  def initialize(**args)
3574
5102
  update!(**args)
@@ -3576,36 +5104,26 @@ module Google
3576
5104
 
3577
5105
  # Update properties of this object
3578
5106
  def update!(**args)
3579
- @duplicates_skipped_count = args[:duplicates_skipped_count] if args.key?(:duplicates_skipped_count)
3580
- @failed_ingest_count = args[:failed_ingest_count] if args.key?(:failed_ingest_count)
3581
- @processed_object_count = args[:processed_object_count] if args.key?(:processed_object_count)
3582
- @successful_ingest_count = args[:successful_ingest_count] if args.key?(:successful_ingest_count)
5107
+ @display_name = args[:display_name] if args.key?(:display_name)
5108
+ @phrase_matcher = args[:phrase_matcher] if args.key?(:phrase_matcher)
3583
5109
  end
3584
5110
  end
3585
5111
 
3586
- # The request to ingest conversations.
3587
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequest
5112
+ # DLP resources used for redaction while ingesting conversations.
5113
+ class GoogleCloudContactcenterinsightsV1alpha1RedactionConfig
3588
5114
  include Google::Apis::Core::Hashable
3589
5115
 
3590
- # Configuration that applies to all conversations.
3591
- # Corresponds to the JSON property `conversationConfig`
3592
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig]
3593
- attr_accessor :conversation_config
3594
-
3595
- # Configuration for Cloud Storage bucket sources.
3596
- # Corresponds to the JSON property `gcsSource`
3597
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource]
3598
- attr_accessor :gcs_source
3599
-
3600
- # Required. The parent resource for new conversations.
3601
- # Corresponds to the JSON property `parent`
5116
+ # The fully-qualified DLP deidentify template resource name. Format: `projects/`
5117
+ # project`/deidentifyTemplates/`template``
5118
+ # Corresponds to the JSON property `deidentifyTemplate`
3602
5119
  # @return [String]
3603
- attr_accessor :parent
5120
+ attr_accessor :deidentify_template
3604
5121
 
3605
- # Configuration for processing transcript objects.
3606
- # Corresponds to the JSON property `transcriptObjectConfig`
3607
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig]
3608
- attr_accessor :transcript_object_config
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
3609
5127
 
3610
5128
  def initialize(**args)
3611
5129
  update!(**args)
@@ -3613,22 +5131,66 @@ module Google
3613
5131
 
3614
5132
  # Update properties of this object
3615
5133
  def update!(**args)
3616
- @conversation_config = args[:conversation_config] if args.key?(:conversation_config)
3617
- @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
3618
- @parent = args[:parent] if args.key?(:parent)
3619
- @transcript_object_config = args[:transcript_object_config] if args.key?(:transcript_object_config)
5134
+ @deidentify_template = args[:deidentify_template] if args.key?(:deidentify_template)
5135
+ @inspect_template = args[:inspect_template] if args.key?(:inspect_template)
3620
5136
  end
3621
5137
  end
3622
5138
 
3623
- # Configuration that applies to all conversations.
3624
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestConversationConfig
5139
+ # An annotation that was generated during the customer and agent interaction.
5140
+ class GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotation
3625
5141
  include Google::Apis::Core::Hashable
3626
5142
 
3627
- # An opaque, user-specified string representing the human agent who handled the
3628
- # conversations.
3629
- # Corresponds to the JSON property `agentId`
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`
3630
5147
  # @return [String]
3631
- attr_accessor :agent_id
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
3632
5194
 
3633
5195
  def initialize(**args)
3634
5196
  update!(**args)
@@ -3636,18 +5198,33 @@ module Google
3636
5198
 
3637
5199
  # Update properties of this object
3638
5200
  def update!(**args)
3639
- @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)
3640
5211
  end
3641
5212
  end
3642
5213
 
3643
- # Configuration for Cloud Storage bucket sources.
3644
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestGcsSource
5214
+ # The data for a sentiment annotation.
5215
+ class GoogleCloudContactcenterinsightsV1alpha1SentimentData
3645
5216
  include Google::Apis::Core::Hashable
3646
5217
 
3647
- # Required. The Cloud Storage bucket containing source objects.
3648
- # Corresponds to the JSON property `bucketUri`
3649
- # @return [String]
3650
- 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
3651
5228
 
3652
5229
  def initialize(**args)
3653
5230
  update!(**args)
@@ -3655,86 +5232,92 @@ module Google
3655
5232
 
3656
5233
  # Update properties of this object
3657
5234
  def update!(**args)
3658
- @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)
3659
5237
  end
3660
5238
  end
3661
5239
 
3662
- # Configuration for processing transcript objects.
3663
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsRequestTranscriptObjectConfig
5240
+ # The data for a silence annotation.
5241
+ class GoogleCloudContactcenterinsightsV1alpha1SilenceData
3664
5242
  include Google::Apis::Core::Hashable
3665
5243
 
3666
- # Required. The medium transcript objects represent.
3667
- # Corresponds to the JSON property `medium`
3668
- # @return [String]
3669
- attr_accessor :medium
3670
-
3671
5244
  def initialize(**args)
3672
5245
  update!(**args)
3673
5246
  end
3674
5247
 
3675
5248
  # Update properties of this object
3676
5249
  def update!(**args)
3677
- @medium = args[:medium] if args.key?(:medium)
3678
5250
  end
3679
5251
  end
3680
5252
 
3681
- # The response to an IngestConversations operation.
3682
- class GoogleCloudContactcenterinsightsV1alpha1IngestConversationsResponse
5253
+ # Agent Assist Smart Compose suggestion data.
5254
+ class GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData
3683
5255
  include Google::Apis::Core::Hashable
3684
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
+
3685
5281
  def initialize(**args)
3686
5282
  update!(**args)
3687
5283
  end
3688
5284
 
3689
5285
  # Update properties of this object
3690
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)
3691
5291
  end
3692
5292
  end
3693
5293
 
3694
- # The issue model resource.
3695
- class GoogleCloudContactcenterinsightsV1alpha1IssueModel
5294
+ # Agent Assist Smart Reply data.
5295
+ class GoogleCloudContactcenterinsightsV1alpha1SmartReplyData
3696
5296
  include Google::Apis::Core::Hashable
3697
5297
 
3698
- # Output only. The time at which this issue model was created.
3699
- # Corresponds to the JSON property `createTime`
3700
- # @return [String]
3701
- attr_accessor :create_time
3702
-
3703
- # The representative name for the issue model.
3704
- # Corresponds to the JSON property `displayName`
3705
- # @return [String]
3706
- attr_accessor :display_name
3707
-
3708
- # Configs for the input data used to create the issue model.
3709
- # Corresponds to the JSON property `inputDataConfig`
3710
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig]
3711
- attr_accessor :input_data_config
3712
-
3713
- # Output only. Number of issues in this issue model.
3714
- # Corresponds to the JSON property `issueCount`
3715
- # @return [Fixnum]
3716
- 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
3717
5304
 
3718
- # Immutable. The resource name of the issue model. Format: projects/`project`/
3719
- # locations/`location`/issueModels/`issue_model`
3720
- # Corresponds to the JSON property `name`
3721
- # @return [String]
3722
- 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
3723
5310
 
3724
- # Output only. State of the model.
3725
- # 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`
3726
5314
  # @return [String]
3727
- attr_accessor :state
3728
-
3729
- # Aggregated statistics about an issue model.
3730
- # Corresponds to the JSON property `trainingStats`
3731
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats]
3732
- attr_accessor :training_stats
5315
+ attr_accessor :query_record
3733
5316
 
3734
- # Output only. The most recent time at which the issue model was updated.
3735
- # Corresponds to the JSON property `updateTime`
5317
+ # The content of the reply.
5318
+ # Corresponds to the JSON property `reply`
3736
5319
  # @return [String]
3737
- attr_accessor :update_time
5320
+ attr_accessor :reply
3738
5321
 
3739
5322
  def initialize(**args)
3740
5323
  update!(**args)
@@ -3742,38 +5325,31 @@ module Google
3742
5325
 
3743
5326
  # Update properties of this object
3744
5327
  def update!(**args)
3745
- @create_time = args[:create_time] if args.key?(:create_time)
3746
- @display_name = args[:display_name] if args.key?(:display_name)
3747
- @input_data_config = args[:input_data_config] if args.key?(:input_data_config)
3748
- @issue_count = args[:issue_count] if args.key?(:issue_count)
3749
- @name = args[:name] if args.key?(:name)
3750
- @state = args[:state] if args.key?(:state)
3751
- @training_stats = args[:training_stats] if args.key?(:training_stats)
3752
- @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)
3753
5332
  end
3754
5333
  end
3755
5334
 
3756
- # Configs for the input data used to create the issue model.
3757
- class GoogleCloudContactcenterinsightsV1alpha1IssueModelInputDataConfig
5335
+ # Metadata for undeploying an issue model.
5336
+ class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata
3758
5337
  include Google::Apis::Core::Hashable
3759
5338
 
3760
- # A filter to reduce the conversations used for training the model to a specific
3761
- # subset.
3762
- # Corresponds to the JSON property `filter`
5339
+ # Output only. The time the operation was created.
5340
+ # Corresponds to the JSON property `createTime`
3763
5341
  # @return [String]
3764
- attr_accessor :filter
5342
+ attr_accessor :create_time
3765
5343
 
3766
- # Medium of conversations used in training data. This field is being deprecated.
3767
- # To specify the medium to be used in training a new issue model, set the `
3768
- # medium` field on `filter`.
3769
- # Corresponds to the JSON property `medium`
5344
+ # Output only. The time the operation finished running.
5345
+ # Corresponds to the JSON property `endTime`
3770
5346
  # @return [String]
3771
- attr_accessor :medium
5347
+ attr_accessor :end_time
3772
5348
 
3773
- # Output only. Number of conversations used in training. Output only.
3774
- # Corresponds to the JSON property `trainingConversationsCount`
3775
- # @return [Fixnum]
3776
- 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
3777
5353
 
3778
5354
  def initialize(**args)
3779
5355
  update!(**args)
@@ -3781,31 +5357,20 @@ module Google
3781
5357
 
3782
5358
  # Update properties of this object
3783
5359
  def update!(**args)
3784
- @filter = args[:filter] if args.key?(:filter)
3785
- @medium = args[:medium] if args.key?(:medium)
3786
- @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)
3787
5363
  end
3788
5364
  end
3789
5365
 
3790
- # Aggregated statistics about an issue model.
3791
- class GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStats
5366
+ # The request to undeploy an issue model.
5367
+ class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest
3792
5368
  include Google::Apis::Core::Hashable
3793
5369
 
3794
- # Number of conversations the issue model has analyzed at this point in time.
3795
- # Corresponds to the JSON property `analyzedConversationsCount`
3796
- # @return [Fixnum]
3797
- attr_accessor :analyzed_conversations_count
3798
-
3799
- # Statistics on each issue. Key is the issue's resource name.
3800
- # Corresponds to the JSON property `issueStats`
3801
- # @return [Hash<String,Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats>]
3802
- attr_accessor :issue_stats
3803
-
3804
- # Number of analyzed conversations for which no issue was applicable at this
3805
- # point in time.
3806
- # Corresponds to the JSON property `unclassifiedConversationsCount`
3807
- # @return [Fixnum]
3808
- 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
3809
5374
 
3810
5375
  def initialize(**args)
3811
5376
  update!(**args)
@@ -3813,48 +5378,38 @@ module Google
3813
5378
 
3814
5379
  # Update properties of this object
3815
5380
  def update!(**args)
3816
- @analyzed_conversations_count = args[:analyzed_conversations_count] if args.key?(:analyzed_conversations_count)
3817
- @issue_stats = args[:issue_stats] if args.key?(:issue_stats)
3818
- @unclassified_conversations_count = args[:unclassified_conversations_count] if args.key?(:unclassified_conversations_count)
5381
+ @name = args[:name] if args.key?(:name)
3819
5382
  end
3820
5383
  end
3821
5384
 
3822
- # Aggregated statistics about an issue.
3823
- class GoogleCloudContactcenterinsightsV1alpha1IssueModelLabelStatsIssueStats
5385
+ # The response to undeploy an issue model.
5386
+ class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelResponse
3824
5387
  include Google::Apis::Core::Hashable
3825
5388
 
3826
- # Display name of the issue.
3827
- # Corresponds to the JSON property `displayName`
3828
- # @return [String]
3829
- attr_accessor :display_name
3830
-
3831
- # Issue resource. Format: projects/`project`/locations/`location`/issueModels/`
3832
- # issue_model`/issues/`issue`
3833
- # Corresponds to the JSON property `issue`
3834
- # @return [String]
3835
- attr_accessor :issue
3836
-
3837
- # Number of conversations attached to the issue at this point in time.
3838
- # Corresponds to the JSON property `labeledConversationsCount`
3839
- # @return [Fixnum]
3840
- attr_accessor :labeled_conversations_count
3841
-
3842
5389
  def initialize(**args)
3843
5390
  update!(**args)
3844
5391
  end
3845
5392
 
3846
5393
  # Update properties of this object
3847
5394
  def update!(**args)
3848
- @display_name = args[:display_name] if args.key?(:display_name)
3849
- @issue = args[:issue] if args.key?(:issue)
3850
- @labeled_conversations_count = args[:labeled_conversations_count] if args.key?(:labeled_conversations_count)
3851
5395
  end
3852
5396
  end
3853
5397
 
3854
- # Metadata for undeploying an issue model.
3855
- class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata
5398
+ # The metadata for an UploadConversation operation.
5399
+ class GoogleCloudContactcenterinsightsV1alpha1UploadConversationMetadata
3856
5400
  include Google::Apis::Core::Hashable
3857
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
+
3858
5413
  # Output only. The time the operation was created.
3859
5414
  # Corresponds to the JSON property `createTime`
3860
5415
  # @return [String]
@@ -3865,9 +5420,9 @@ module Google
3865
5420
  # @return [String]
3866
5421
  attr_accessor :end_time
3867
5422
 
3868
- # The request to undeploy an issue model.
5423
+ # Request to upload a conversation.
3869
5424
  # Corresponds to the JSON property `request`
3870
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest]
5425
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest]
3871
5426
  attr_accessor :request
3872
5427
 
3873
5428
  def initialize(**args)
@@ -3876,34 +5431,40 @@ module Google
3876
5431
 
3877
5432
  # Update properties of this object
3878
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)
3879
5436
  @create_time = args[:create_time] if args.key?(:create_time)
3880
5437
  @end_time = args[:end_time] if args.key?(:end_time)
3881
5438
  @request = args[:request] if args.key?(:request)
3882
5439
  end
3883
5440
  end
3884
5441
 
3885
- # The request to undeploy an issue model.
3886
- class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelRequest
5442
+ # Request to upload a conversation.
5443
+ class GoogleCloudContactcenterinsightsV1alpha1UploadConversationRequest
3887
5444
  include Google::Apis::Core::Hashable
3888
5445
 
3889
- # Required. The issue model to undeploy.
3890
- # Corresponds to the JSON property `name`
3891
- # @return [String]
3892
- attr_accessor :name
5446
+ # The conversation resource.
5447
+ # Corresponds to the JSON property `conversation`
5448
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1Conversation]
5449
+ attr_accessor :conversation
3893
5450
 
3894
- def initialize(**args)
3895
- update!(**args)
3896
- 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
3897
5458
 
3898
- # Update properties of this object
3899
- def update!(**args)
3900
- @name = args[:name] if args.key?(:name)
3901
- end
3902
- end
5459
+ # Required. The parent resource of the conversation.
5460
+ # Corresponds to the JSON property `parent`
5461
+ # @return [String]
5462
+ attr_accessor :parent
3903
5463
 
3904
- # The response to undeploy an issue model.
3905
- class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelResponse
3906
- 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
3907
5468
 
3908
5469
  def initialize(**args)
3909
5470
  update!(**args)
@@ -3911,6 +5472,10 @@ module Google
3911
5472
 
3912
5473
  # Update properties of this object
3913
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)
3914
5479
  end
3915
5480
  end
3916
5481