google-apis-contactcenterinsights_v1 0.44.0 → 0.45.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,193 +22,6 @@ module Google
22
22
  module Apis
23
23
  module ContactcenterinsightsV1
24
24
 
25
- # Agent Coaching instructions that customer can configure.
26
- class GoogleCloudContactcenterinsightsV1AgentCoachingInstruction
27
- include Google::Apis::Core::Hashable
28
-
29
- # Optional. The action that human agent should take. For example, "apologize for
30
- # the slow shipping". If the users only want to use agent coaching for intent
31
- # detection, agent_action can be empty
32
- # Corresponds to the JSON property `agentAction`
33
- # @return [String]
34
- attr_accessor :agent_action
35
-
36
- # Optional. The condition of the instruction. For example, "the customer wants
37
- # to cancel an order". If the users want the instruction to be triggered
38
- # unconditionally, the condition can be empty.
39
- # Corresponds to the JSON property `condition`
40
- # @return [String]
41
- attr_accessor :condition
42
-
43
- # Optional. The detailed description of this instruction.
44
- # Corresponds to the JSON property `description`
45
- # @return [String]
46
- attr_accessor :description
47
-
48
- # Optional. Display name for the instruction.
49
- # Corresponds to the JSON property `displayName`
50
- # @return [String]
51
- attr_accessor :display_name
52
-
53
- # Optional. Additional information attached to this instruction.
54
- # Corresponds to the JSON property `metadata`
55
- # @return [Hash<String,String>]
56
- attr_accessor :metadata
57
-
58
- # Optional. The action that system should take. For example, "call GetOrderTime
59
- # with order_number=`order number provided by the customer`". If the users don't
60
- # have plugins or don't want to trigger plugins, the system_action can be empty
61
- # Corresponds to the JSON property `systemAction`
62
- # @return [String]
63
- attr_accessor :system_action
64
-
65
- def initialize(**args)
66
- update!(**args)
67
- end
68
-
69
- # Update properties of this object
70
- def update!(**args)
71
- @agent_action = args[:agent_action] if args.key?(:agent_action)
72
- @condition = args[:condition] if args.key?(:condition)
73
- @description = args[:description] if args.key?(:description)
74
- @display_name = args[:display_name] if args.key?(:display_name)
75
- @metadata = args[:metadata] if args.key?(:metadata)
76
- @system_action = args[:system_action] if args.key?(:system_action)
77
- end
78
- end
79
-
80
- # Suggestion for coaching agents.
81
- class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion
82
- include Google::Apis::Core::Hashable
83
-
84
- # Optional. Suggested actions for the agent to take.
85
- # Corresponds to the JSON property `agentActionSuggestions`
86
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion>]
87
- attr_accessor :agent_action_suggestions
88
-
89
- # Optional. Instructions applicable based on the current context.
90
- # Corresponds to the JSON property `applicableInstructions`
91
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingInstruction>]
92
- attr_accessor :applicable_instructions
93
-
94
- # Optional. Sample response for the Agent.
95
- # Corresponds to the JSON property `sampleResponses`
96
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse>]
97
- attr_accessor :sample_responses
98
-
99
- # Self evaluations of the suggestion.
100
- # Corresponds to the JSON property `suggestionEval`
101
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval]
102
- attr_accessor :suggestion_eval
103
-
104
- # Reasoning for the suggestion.
105
- # Corresponds to the JSON property `suggestionReasoning`
106
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning]
107
- attr_accessor :suggestion_reasoning
108
-
109
- def initialize(**args)
110
- update!(**args)
111
- end
112
-
113
- # Update properties of this object
114
- def update!(**args)
115
- @agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
116
- @applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
117
- @sample_responses = args[:sample_responses] if args.key?(:sample_responses)
118
- @suggestion_eval = args[:suggestion_eval] if args.key?(:suggestion_eval)
119
- @suggestion_reasoning = args[:suggestion_reasoning] if args.key?(:suggestion_reasoning)
120
- end
121
- end
122
-
123
- # Actions suggested for the agent. This is based on applicable instructions.
124
- class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentActionSuggestion
125
- include Google::Apis::Core::Hashable
126
-
127
- # Optional. The suggested action for the agent.
128
- # Corresponds to the JSON property `agentAction`
129
- # @return [String]
130
- attr_accessor :agent_action
131
-
132
- def initialize(**args)
133
- update!(**args)
134
- end
135
-
136
- # Update properties of this object
137
- def update!(**args)
138
- @agent_action = args[:agent_action] if args.key?(:agent_action)
139
- end
140
- end
141
-
142
- # Self evaluations of the suggestion.
143
- class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionEval
144
- include Google::Apis::Core::Hashable
145
-
146
- # Optional. Eval for Agent action suggestion.
147
- # Corresponds to the JSON property `actionActionSuggestionEval`
148
- # @return [String]
149
- attr_accessor :action_action_suggestion_eval
150
-
151
- # Optional. Eval for sample response.
152
- # Corresponds to the JSON property `sampleResponseEval`
153
- # @return [String]
154
- attr_accessor :sample_response_eval
155
-
156
- def initialize(**args)
157
- update!(**args)
158
- end
159
-
160
- # Update properties of this object
161
- def update!(**args)
162
- @action_action_suggestion_eval = args[:action_action_suggestion_eval] if args.key?(:action_action_suggestion_eval)
163
- @sample_response_eval = args[:sample_response_eval] if args.key?(:sample_response_eval)
164
- end
165
- end
166
-
167
- # Reasoning for the suggestion.
168
- class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionAgentCoachingSuggestionReasoning
169
- include Google::Apis::Core::Hashable
170
-
171
- # Optional. The actions that the agent has taken already.
172
- # Corresponds to the JSON property `agentActionTaken`
173
- # @return [String]
174
- attr_accessor :agent_action_taken
175
-
176
- # Optional. Summary of the issue.
177
- # Corresponds to the JSON property `issueSummary`
178
- # @return [String]
179
- attr_accessor :issue_summary
180
-
181
- def initialize(**args)
182
- update!(**args)
183
- end
184
-
185
- # Update properties of this object
186
- def update!(**args)
187
- @agent_action_taken = args[:agent_action_taken] if args.key?(:agent_action_taken)
188
- @issue_summary = args[:issue_summary] if args.key?(:issue_summary)
189
- end
190
- end
191
-
192
- # Sample response that the agent can use. This could be based on applicable
193
- # instructions and ingested data from other systems.
194
- class GoogleCloudContactcenterinsightsV1AgentCoachingSuggestionSampleResponse
195
- include Google::Apis::Core::Hashable
196
-
197
- # Optional. Sample response for Agent in text.
198
- # Corresponds to the JSON property `responseText`
199
- # @return [String]
200
- attr_accessor :response_text
201
-
202
- def initialize(**args)
203
- update!(**args)
204
- end
205
-
206
- # Update properties of this object
207
- def update!(**args)
208
- @response_text = args[:response_text] if args.key?(:response_text)
209
- end
210
- end
211
-
212
25
  # The analysis resource.
213
26
  class GoogleCloudContactcenterinsightsV1Analysis
214
27
  include Google::Apis::Core::Hashable
@@ -2235,31 +2048,6 @@ module Google
2235
2048
  end
2236
2049
  end
2237
2050
 
2238
- # Suggestion generated using free form generator.
2239
- class GoogleCloudContactcenterinsightsV1FreeFormSuggestion
2240
- include Google::Apis::Core::Hashable
2241
-
2242
- # Optional. Labels for the generator.
2243
- # Corresponds to the JSON property `labels`
2244
- # @return [Array<String>]
2245
- attr_accessor :labels
2246
-
2247
- # Required. Free form suggestion.
2248
- # Corresponds to the JSON property `response`
2249
- # @return [String]
2250
- attr_accessor :response
2251
-
2252
- def initialize(**args)
2253
- update!(**args)
2254
- end
2255
-
2256
- # Update properties of this object
2257
- def update!(**args)
2258
- @labels = args[:labels] if args.key?(:labels)
2259
- @response = args[:response] if args.key?(:response)
2260
- end
2261
- end
2262
-
2263
2051
  # A Cloud Storage source of conversation data.
2264
2052
  class GoogleCloudContactcenterinsightsV1GcsSource
2265
2053
  include Google::Apis::Core::Hashable
@@ -2286,263 +2074,6 @@ module Google
2286
2074
  end
2287
2075
  end
2288
2076
 
2289
- # Suggestion generated using a Generator.
2290
- class GoogleCloudContactcenterinsightsV1GeneratorSuggestion
2291
- include Google::Apis::Core::Hashable
2292
-
2293
- # Suggestion for coaching agents.
2294
- # Corresponds to the JSON property `agentCoachingSuggestion`
2295
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AgentCoachingSuggestion]
2296
- attr_accessor :agent_coaching_suggestion
2297
-
2298
- # Suggestion generated using free form generator.
2299
- # Corresponds to the JSON property `freeFormSuggestion`
2300
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FreeFormSuggestion]
2301
- attr_accessor :free_form_suggestion
2302
-
2303
- # Suggested summary of the conversation.
2304
- # Corresponds to the JSON property `summarySuggestion`
2305
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SummarySuggestion]
2306
- attr_accessor :summary_suggestion
2307
-
2308
- def initialize(**args)
2309
- update!(**args)
2310
- end
2311
-
2312
- # Update properties of this object
2313
- def update!(**args)
2314
- @agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
2315
- @free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
2316
- @summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
2317
- end
2318
- end
2319
-
2320
- # Represents response from generators.
2321
- class GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse
2322
- include Google::Apis::Core::Hashable
2323
-
2324
- # Suggestion generated using a Generator.
2325
- # Corresponds to the JSON property `generatorSuggestion`
2326
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GeneratorSuggestion]
2327
- attr_accessor :generator_suggestion
2328
-
2329
- def initialize(**args)
2330
- update!(**args)
2331
- end
2332
-
2333
- # Update properties of this object
2334
- def update!(**args)
2335
- @generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
2336
- end
2337
- end
2338
-
2339
- # Response for Knowledge Assist. Contains suggested query and optionally
2340
- # includes an answer for the query.
2341
- class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse
2342
- include Google::Apis::Core::Hashable
2343
-
2344
- # Represents a suggested query.
2345
- # Corresponds to the JSON property `suggestedQuery`
2346
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery]
2347
- attr_accessor :suggested_query
2348
-
2349
- # Represents an answer from Knowledge. Cuurently supports FAQ and Generative
2350
- # answers.
2351
- # Corresponds to the JSON property `suggestedQueryAnswer`
2352
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer]
2353
- attr_accessor :suggested_query_answer
2354
-
2355
- def initialize(**args)
2356
- update!(**args)
2357
- end
2358
-
2359
- # Update properties of this object
2360
- def update!(**args)
2361
- @suggested_query = args[:suggested_query] if args.key?(:suggested_query)
2362
- @suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
2363
- end
2364
- end
2365
-
2366
- # Represents an answer from Knowledge. Cuurently supports FAQ and Generative
2367
- # answers.
2368
- class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswer
2369
- include Google::Apis::Core::Hashable
2370
-
2371
- # The piece of text from the `source` that answers this suggested query.
2372
- # Corresponds to the JSON property `answerText`
2373
- # @return [String]
2374
- attr_accessor :answer_text
2375
-
2376
- # Details about source of FAQ answer.
2377
- # Corresponds to the JSON property `faqSource`
2378
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource]
2379
- attr_accessor :faq_source
2380
-
2381
- # Details about source of Generative answer.
2382
- # Corresponds to the JSON property `generativeSource`
2383
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource]
2384
- attr_accessor :generative_source
2385
-
2386
- # Details about source of Intent Matching answer.
2387
- # Corresponds to the JSON property `intentMatchingSource`
2388
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource]
2389
- attr_accessor :intent_matching_source
2390
-
2391
- # The system's confidence score that this answer is a good match for this
2392
- # conversational query. The range is from 0.0 (completely uncertain) to 1.0 (
2393
- # completely certain).
2394
- # Corresponds to the JSON property `matchConfidence`
2395
- # @return [Float]
2396
- attr_accessor :match_confidence
2397
-
2398
- def initialize(**args)
2399
- update!(**args)
2400
- end
2401
-
2402
- # Update properties of this object
2403
- def update!(**args)
2404
- @answer_text = args[:answer_text] if args.key?(:answer_text)
2405
- @faq_source = args[:faq_source] if args.key?(:faq_source)
2406
- @generative_source = args[:generative_source] if args.key?(:generative_source)
2407
- @intent_matching_source = args[:intent_matching_source] if args.key?(:intent_matching_source)
2408
- @match_confidence = args[:match_confidence] if args.key?(:match_confidence)
2409
- end
2410
- end
2411
-
2412
- # Details about source of FAQ answer.
2413
- class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource
2414
- include Google::Apis::Core::Hashable
2415
-
2416
- # Indicates which Knowledge Document this answer was extracted from. Format: `
2417
- # projects//knowledgeBases//documents/`.
2418
- # Corresponds to the JSON property `document`
2419
- # @return [String]
2420
- attr_accessor :document
2421
-
2422
- # The corresponding FAQ question.
2423
- # Corresponds to the JSON property `question`
2424
- # @return [String]
2425
- attr_accessor :question
2426
-
2427
- def initialize(**args)
2428
- update!(**args)
2429
- end
2430
-
2431
- # Update properties of this object
2432
- def update!(**args)
2433
- @document = args[:document] if args.key?(:document)
2434
- @question = args[:question] if args.key?(:question)
2435
- end
2436
- end
2437
-
2438
- # Details about source of Generative answer.
2439
- class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource
2440
- include Google::Apis::Core::Hashable
2441
-
2442
- # All snippets used for this Generative Prediction, with their source URI and
2443
- # data.
2444
- # Corresponds to the JSON property `snippets`
2445
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet>]
2446
- attr_accessor :snippets
2447
-
2448
- def initialize(**args)
2449
- update!(**args)
2450
- end
2451
-
2452
- # Update properties of this object
2453
- def update!(**args)
2454
- @snippets = args[:snippets] if args.key?(:snippets)
2455
- end
2456
- end
2457
-
2458
- # Snippet Source for a Generative Prediction.
2459
- class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet
2460
- include Google::Apis::Core::Hashable
2461
-
2462
- # Indicates which Knowledge Document this snippet was extracted from. Format: `
2463
- # projects//knowledgeBases//documents/`.
2464
- # Corresponds to the JSON property `document`
2465
- # @return [String]
2466
- attr_accessor :document
2467
-
2468
- # text taken from that URI.
2469
- # Corresponds to the JSON property `text`
2470
- # @return [String]
2471
- attr_accessor :text
2472
-
2473
- # Title of the document.
2474
- # Corresponds to the JSON property `title`
2475
- # @return [String]
2476
- attr_accessor :title
2477
-
2478
- # URI the data is sourced from.
2479
- # Corresponds to the JSON property `uri`
2480
- # @return [String]
2481
- attr_accessor :uri
2482
-
2483
- def initialize(**args)
2484
- update!(**args)
2485
- end
2486
-
2487
- # Update properties of this object
2488
- def update!(**args)
2489
- @document = args[:document] if args.key?(:document)
2490
- @text = args[:text] if args.key?(:text)
2491
- @title = args[:title] if args.key?(:title)
2492
- @uri = args[:uri] if args.key?(:uri)
2493
- end
2494
- end
2495
-
2496
- # Details about source of Intent Matching answer.
2497
- class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource
2498
- include Google::Apis::Core::Hashable
2499
-
2500
- # Title of the document.
2501
- # Corresponds to the JSON property `title`
2502
- # @return [String]
2503
- attr_accessor :title
2504
-
2505
- # URI the data is sourced from.
2506
- # Corresponds to the JSON property `uri`
2507
- # @return [String]
2508
- attr_accessor :uri
2509
-
2510
- def initialize(**args)
2511
- update!(**args)
2512
- end
2513
-
2514
- # Update properties of this object
2515
- def update!(**args)
2516
- @title = args[:title] if args.key?(:title)
2517
- @uri = args[:uri] if args.key?(:uri)
2518
- end
2519
- end
2520
-
2521
- # Represents a suggested query.
2522
- class GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponseSuggestedQuery
2523
- include Google::Apis::Core::Hashable
2524
-
2525
- # Suggested query text.
2526
- # Corresponds to the JSON property `queryText`
2527
- # @return [String]
2528
- attr_accessor :query_text
2529
-
2530
- # Suggested query score.
2531
- # Corresponds to the JSON property `score`
2532
- # @return [Float]
2533
- attr_accessor :score
2534
-
2535
- def initialize(**args)
2536
- update!(**args)
2537
- end
2538
-
2539
- # Update properties of this object
2540
- def update!(**args)
2541
- @query_text = args[:query_text] if args.key?(:query_text)
2542
- @score = args[:score] if args.key?(:score)
2543
- end
2544
- end
2545
-
2546
2077
  # The data for a hold annotation.
2547
2078
  class GoogleCloudContactcenterinsightsV1HoldData
2548
2079
  include Google::Apis::Core::Hashable
@@ -3682,22 +3213,6 @@ module Google
3682
3213
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1FaqAnswerData]
3683
3214
  attr_accessor :faq_answer
3684
3215
 
3685
- # Represents response from generators.
3686
- # Corresponds to the JSON property `generatorSuggestionResult`
3687
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetGeneratorSuggestionResponse]
3688
- attr_accessor :generator_suggestion_result
3689
-
3690
- # Response for Knowledge Assist. Contains suggested query and optionally
3691
- # includes an answer for the query.
3692
- # Corresponds to the JSON property `knowledgeAssistResult`
3693
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1GetKnowledgeAssistResponse]
3694
- attr_accessor :knowledge_assist_result
3695
-
3696
- # Represents a SearchKnowledge answer.
3697
- # Corresponds to the JSON property `knowledgeSearchResult`
3698
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer]
3699
- attr_accessor :knowledge_search_result
3700
-
3701
3216
  # Agent Assist Smart Compose suggestion data.
3702
3217
  # Corresponds to the JSON property `smartComposeSuggestion`
3703
3218
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SmartComposeSuggestionData]
@@ -3713,6 +3228,11 @@ module Google
3713
3228
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AnnotationBoundary]
3714
3229
  attr_accessor :start_boundary
3715
3230
 
3231
+ # Explicit input used for generating the answer
3232
+ # Corresponds to the JSON property `userInput`
3233
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput]
3234
+ attr_accessor :user_input
3235
+
3716
3236
  def initialize(**args)
3717
3237
  update!(**args)
3718
3238
  end
@@ -3727,83 +3247,28 @@ module Google
3727
3247
  @dialogflow_interaction = args[:dialogflow_interaction] if args.key?(:dialogflow_interaction)
3728
3248
  @end_boundary = args[:end_boundary] if args.key?(:end_boundary)
3729
3249
  @faq_answer = args[:faq_answer] if args.key?(:faq_answer)
3730
- @generator_suggestion_result = args[:generator_suggestion_result] if args.key?(:generator_suggestion_result)
3731
- @knowledge_assist_result = args[:knowledge_assist_result] if args.key?(:knowledge_assist_result)
3732
- @knowledge_search_result = args[:knowledge_search_result] if args.key?(:knowledge_search_result)
3733
3250
  @smart_compose_suggestion = args[:smart_compose_suggestion] if args.key?(:smart_compose_suggestion)
3734
3251
  @smart_reply = args[:smart_reply] if args.key?(:smart_reply)
3735
3252
  @start_boundary = args[:start_boundary] if args.key?(:start_boundary)
3253
+ @user_input = args[:user_input] if args.key?(:user_input)
3736
3254
  end
3737
3255
  end
3738
3256
 
3739
- # Represents a SearchKnowledge answer.
3740
- class GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswer
3257
+ # Explicit input used for generating the answer
3258
+ class GoogleCloudContactcenterinsightsV1RuntimeAnnotationUserInput
3741
3259
  include Google::Apis::Core::Hashable
3742
3260
 
3743
- # The piece of text from the knowledge base documents that answers the search
3744
- # query
3745
- # Corresponds to the JSON property `answer`
3261
+ # The resource name of associated generator. Format: `projects//locations//
3262
+ # generators/`
3263
+ # Corresponds to the JSON property `generatorName`
3746
3264
  # @return [String]
3747
- attr_accessor :answer
3265
+ attr_accessor :generator_name
3748
3266
 
3749
- # The name of the answer record. Format: `projects//locations//answer Records/`
3750
- # Corresponds to the JSON property `answerRecord`
3751
- # @return [String]
3752
- attr_accessor :answer_record
3753
-
3754
- # All sources used to generate the answer.
3755
- # Corresponds to the JSON property `answerSources`
3756
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource>]
3757
- attr_accessor :answer_sources
3758
-
3759
- # The type of the answer.
3760
- # Corresponds to the JSON property `answerType`
3761
- # @return [String]
3762
- attr_accessor :answer_type
3763
-
3764
- # The confidence score in [0.0, 1.0] range.
3765
- # Corresponds to the JSON property `confidenceScore`
3766
- # @return [Float]
3767
- attr_accessor :confidence_score
3768
-
3769
- def initialize(**args)
3770
- update!(**args)
3771
- end
3772
-
3773
- # Update properties of this object
3774
- def update!(**args)
3775
- @answer = args[:answer] if args.key?(:answer)
3776
- @answer_record = args[:answer_record] if args.key?(:answer_record)
3777
- @answer_sources = args[:answer_sources] if args.key?(:answer_sources)
3778
- @answer_type = args[:answer_type] if args.key?(:answer_type)
3779
- @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
3780
- end
3781
- end
3782
-
3783
- # The sources of the answers.
3784
- class GoogleCloudContactcenterinsightsV1SearchKnowledgeAnswerAnswerSource
3785
- include Google::Apis::Core::Hashable
3786
-
3787
- # The document from which the snippet was extracted. Format: `projects//
3788
- # knowledgeBases//documents/`
3789
- # Corresponds to the JSON property `document`
3790
- # @return [String]
3791
- attr_accessor :document
3792
-
3793
- # The relevant snippet of the article.
3794
- # Corresponds to the JSON property `snippet`
3795
- # @return [String]
3796
- attr_accessor :snippet
3797
-
3798
- # The title of the article.
3799
- # Corresponds to the JSON property `title`
3800
- # @return [String]
3801
- attr_accessor :title
3802
-
3803
- # The URI of the article.
3804
- # Corresponds to the JSON property `uri`
3267
+ # Query text. Article Search uses this to store the input query used to generate
3268
+ # the search results.
3269
+ # Corresponds to the JSON property `query`
3805
3270
  # @return [String]
3806
- attr_accessor :uri
3271
+ attr_accessor :query
3807
3272
 
3808
3273
  def initialize(**args)
3809
3274
  update!(**args)
@@ -3811,10 +3276,8 @@ module Google
3811
3276
 
3812
3277
  # Update properties of this object
3813
3278
  def update!(**args)
3814
- @document = args[:document] if args.key?(:document)
3815
- @snippet = args[:snippet] if args.key?(:snippet)
3816
- @title = args[:title] if args.key?(:title)
3817
- @uri = args[:uri] if args.key?(:uri)
3279
+ @generator_name = args[:generator_name] if args.key?(:generator_name)
3280
+ @query = args[:query] if args.key?(:query)
3818
3281
  end
3819
3282
  end
3820
3283
 
@@ -4087,50 +3550,6 @@ module Google
4087
3550
  end
4088
3551
  end
4089
3552
 
4090
- # Suggested summary of the conversation.
4091
- class GoogleCloudContactcenterinsightsV1SummarySuggestion
4092
- include Google::Apis::Core::Hashable
4093
-
4094
- # Required. All the parts of generated summary.
4095
- # Corresponds to the JSON property `summarySections`
4096
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection>]
4097
- attr_accessor :summary_sections
4098
-
4099
- def initialize(**args)
4100
- update!(**args)
4101
- end
4102
-
4103
- # Update properties of this object
4104
- def update!(**args)
4105
- @summary_sections = args[:summary_sections] if args.key?(:summary_sections)
4106
- end
4107
- end
4108
-
4109
- # A component of the generated summary.
4110
- class GoogleCloudContactcenterinsightsV1SummarySuggestionSummarySection
4111
- include Google::Apis::Core::Hashable
4112
-
4113
- # Required. Name of the section.
4114
- # Corresponds to the JSON property `section`
4115
- # @return [String]
4116
- attr_accessor :section
4117
-
4118
- # Required. Summary text for the section.
4119
- # Corresponds to the JSON property `summary`
4120
- # @return [String]
4121
- attr_accessor :summary
4122
-
4123
- def initialize(**args)
4124
- update!(**args)
4125
- end
4126
-
4127
- # Update properties of this object
4128
- def update!(**args)
4129
- @section = args[:section] if args.key?(:section)
4130
- @summary = args[:summary] if args.key?(:summary)
4131
- end
4132
- end
4133
-
4134
3553
  # Metadata for undeploying an issue model.
4135
3554
  class GoogleCloudContactcenterinsightsV1UndeployIssueModelMetadata
4136
3555
  include Google::Apis::Core::Hashable
@@ -4335,198 +3754,11 @@ module Google
4335
3754
 
4336
3755
  # Update properties of this object
4337
3756
  def update!(**args)
4338
- @create_time = args[:create_time] if args.key?(:create_time)
4339
- @display_name = args[:display_name] if args.key?(:display_name)
4340
- @name = args[:name] if args.key?(:name)
4341
- @update_time = args[:update_time] if args.key?(:update_time)
4342
- @value = args[:value] if args.key?(:value)
4343
- end
4344
- end
4345
-
4346
- # Agent Coaching instructions that customer can configure.
4347
- class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction
4348
- include Google::Apis::Core::Hashable
4349
-
4350
- # Optional. The action that human agent should take. For example, "apologize for
4351
- # the slow shipping". If the users only want to use agent coaching for intent
4352
- # detection, agent_action can be empty
4353
- # Corresponds to the JSON property `agentAction`
4354
- # @return [String]
4355
- attr_accessor :agent_action
4356
-
4357
- # Optional. The condition of the instruction. For example, "the customer wants
4358
- # to cancel an order". If the users want the instruction to be triggered
4359
- # unconditionally, the condition can be empty.
4360
- # Corresponds to the JSON property `condition`
4361
- # @return [String]
4362
- attr_accessor :condition
4363
-
4364
- # Optional. The detailed description of this instruction.
4365
- # Corresponds to the JSON property `description`
4366
- # @return [String]
4367
- attr_accessor :description
4368
-
4369
- # Optional. Display name for the instruction.
4370
- # Corresponds to the JSON property `displayName`
4371
- # @return [String]
4372
- attr_accessor :display_name
4373
-
4374
- # Optional. Additional information attached to this instruction.
4375
- # Corresponds to the JSON property `metadata`
4376
- # @return [Hash<String,String>]
4377
- attr_accessor :metadata
4378
-
4379
- # Optional. The action that system should take. For example, "call GetOrderTime
4380
- # with order_number=`order number provided by the customer`". If the users don't
4381
- # have plugins or don't want to trigger plugins, the system_action can be empty
4382
- # Corresponds to the JSON property `systemAction`
4383
- # @return [String]
4384
- attr_accessor :system_action
4385
-
4386
- def initialize(**args)
4387
- update!(**args)
4388
- end
4389
-
4390
- # Update properties of this object
4391
- def update!(**args)
4392
- @agent_action = args[:agent_action] if args.key?(:agent_action)
4393
- @condition = args[:condition] if args.key?(:condition)
4394
- @description = args[:description] if args.key?(:description)
4395
- @display_name = args[:display_name] if args.key?(:display_name)
4396
- @metadata = args[:metadata] if args.key?(:metadata)
4397
- @system_action = args[:system_action] if args.key?(:system_action)
4398
- end
4399
- end
4400
-
4401
- # Suggestion for coaching agents.
4402
- class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion
4403
- include Google::Apis::Core::Hashable
4404
-
4405
- # Optional. Suggested actions for the agent to take.
4406
- # Corresponds to the JSON property `agentActionSuggestions`
4407
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion>]
4408
- attr_accessor :agent_action_suggestions
4409
-
4410
- # Optional. Instructions applicable based on the current context.
4411
- # Corresponds to the JSON property `applicableInstructions`
4412
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingInstruction>]
4413
- attr_accessor :applicable_instructions
4414
-
4415
- # Optional. Sample response for the Agent.
4416
- # Corresponds to the JSON property `sampleResponses`
4417
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse>]
4418
- attr_accessor :sample_responses
4419
-
4420
- # Self evaluations of the suggestion.
4421
- # Corresponds to the JSON property `suggestionEval`
4422
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval]
4423
- attr_accessor :suggestion_eval
4424
-
4425
- # Reasoning for the suggestion.
4426
- # Corresponds to the JSON property `suggestionReasoning`
4427
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning]
4428
- attr_accessor :suggestion_reasoning
4429
-
4430
- def initialize(**args)
4431
- update!(**args)
4432
- end
4433
-
4434
- # Update properties of this object
4435
- def update!(**args)
4436
- @agent_action_suggestions = args[:agent_action_suggestions] if args.key?(:agent_action_suggestions)
4437
- @applicable_instructions = args[:applicable_instructions] if args.key?(:applicable_instructions)
4438
- @sample_responses = args[:sample_responses] if args.key?(:sample_responses)
4439
- @suggestion_eval = args[:suggestion_eval] if args.key?(:suggestion_eval)
4440
- @suggestion_reasoning = args[:suggestion_reasoning] if args.key?(:suggestion_reasoning)
4441
- end
4442
- end
4443
-
4444
- # Actions suggested for the agent. This is based on applicable instructions.
4445
- class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentActionSuggestion
4446
- include Google::Apis::Core::Hashable
4447
-
4448
- # Optional. The suggested action for the agent.
4449
- # Corresponds to the JSON property `agentAction`
4450
- # @return [String]
4451
- attr_accessor :agent_action
4452
-
4453
- def initialize(**args)
4454
- update!(**args)
4455
- end
4456
-
4457
- # Update properties of this object
4458
- def update!(**args)
4459
- @agent_action = args[:agent_action] if args.key?(:agent_action)
4460
- end
4461
- end
4462
-
4463
- # Self evaluations of the suggestion.
4464
- class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionEval
4465
- include Google::Apis::Core::Hashable
4466
-
4467
- # Optional. Eval for Agent action suggestion.
4468
- # Corresponds to the JSON property `actionActionSuggestionEval`
4469
- # @return [String]
4470
- attr_accessor :action_action_suggestion_eval
4471
-
4472
- # Optional. Eval for sample response.
4473
- # Corresponds to the JSON property `sampleResponseEval`
4474
- # @return [String]
4475
- attr_accessor :sample_response_eval
4476
-
4477
- def initialize(**args)
4478
- update!(**args)
4479
- end
4480
-
4481
- # Update properties of this object
4482
- def update!(**args)
4483
- @action_action_suggestion_eval = args[:action_action_suggestion_eval] if args.key?(:action_action_suggestion_eval)
4484
- @sample_response_eval = args[:sample_response_eval] if args.key?(:sample_response_eval)
4485
- end
4486
- end
4487
-
4488
- # Reasoning for the suggestion.
4489
- class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionAgentCoachingSuggestionReasoning
4490
- include Google::Apis::Core::Hashable
4491
-
4492
- # Optional. The actions that the agent has taken already.
4493
- # Corresponds to the JSON property `agentActionTaken`
4494
- # @return [String]
4495
- attr_accessor :agent_action_taken
4496
-
4497
- # Optional. Summary of the issue.
4498
- # Corresponds to the JSON property `issueSummary`
4499
- # @return [String]
4500
- attr_accessor :issue_summary
4501
-
4502
- def initialize(**args)
4503
- update!(**args)
4504
- end
4505
-
4506
- # Update properties of this object
4507
- def update!(**args)
4508
- @agent_action_taken = args[:agent_action_taken] if args.key?(:agent_action_taken)
4509
- @issue_summary = args[:issue_summary] if args.key?(:issue_summary)
4510
- end
4511
- end
4512
-
4513
- # Sample response that the agent can use. This could be based on applicable
4514
- # instructions and ingested data from other systems.
4515
- class GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestionSampleResponse
4516
- include Google::Apis::Core::Hashable
4517
-
4518
- # Optional. Sample response for Agent in text.
4519
- # Corresponds to the JSON property `responseText`
4520
- # @return [String]
4521
- attr_accessor :response_text
4522
-
4523
- def initialize(**args)
4524
- update!(**args)
4525
- end
4526
-
4527
- # Update properties of this object
4528
- def update!(**args)
4529
- @response_text = args[:response_text] if args.key?(:response_text)
3757
+ @create_time = args[:create_time] if args.key?(:create_time)
3758
+ @display_name = args[:display_name] if args.key?(:display_name)
3759
+ @name = args[:name] if args.key?(:name)
3760
+ @update_time = args[:update_time] if args.key?(:update_time)
3761
+ @value = args[:value] if args.key?(:value)
4530
3762
  end
4531
3763
  end
4532
3764
 
@@ -6398,31 +5630,6 @@ module Google
6398
5630
  end
6399
5631
  end
6400
5632
 
6401
- # Suggestion generated using free form generator.
6402
- class GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion
6403
- include Google::Apis::Core::Hashable
6404
-
6405
- # Optional. Labels for the generator.
6406
- # Corresponds to the JSON property `labels`
6407
- # @return [Array<String>]
6408
- attr_accessor :labels
6409
-
6410
- # Required. Free form suggestion.
6411
- # Corresponds to the JSON property `response`
6412
- # @return [String]
6413
- attr_accessor :response
6414
-
6415
- def initialize(**args)
6416
- update!(**args)
6417
- end
6418
-
6419
- # Update properties of this object
6420
- def update!(**args)
6421
- @labels = args[:labels] if args.key?(:labels)
6422
- @response = args[:response] if args.key?(:response)
6423
- end
6424
- end
6425
-
6426
5633
  # A Cloud Storage source of conversation data.
6427
5634
  class GoogleCloudContactcenterinsightsV1alpha1GcsSource
6428
5635
  include Google::Apis::Core::Hashable
@@ -6449,263 +5656,6 @@ module Google
6449
5656
  end
6450
5657
  end
6451
5658
 
6452
- # Suggestion generated using a Generator.
6453
- class GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion
6454
- include Google::Apis::Core::Hashable
6455
-
6456
- # Suggestion for coaching agents.
6457
- # Corresponds to the JSON property `agentCoachingSuggestion`
6458
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AgentCoachingSuggestion]
6459
- attr_accessor :agent_coaching_suggestion
6460
-
6461
- # Suggestion generated using free form generator.
6462
- # Corresponds to the JSON property `freeFormSuggestion`
6463
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1FreeFormSuggestion]
6464
- attr_accessor :free_form_suggestion
6465
-
6466
- # Suggested summary of the conversation.
6467
- # Corresponds to the JSON property `summarySuggestion`
6468
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion]
6469
- attr_accessor :summary_suggestion
6470
-
6471
- def initialize(**args)
6472
- update!(**args)
6473
- end
6474
-
6475
- # Update properties of this object
6476
- def update!(**args)
6477
- @agent_coaching_suggestion = args[:agent_coaching_suggestion] if args.key?(:agent_coaching_suggestion)
6478
- @free_form_suggestion = args[:free_form_suggestion] if args.key?(:free_form_suggestion)
6479
- @summary_suggestion = args[:summary_suggestion] if args.key?(:summary_suggestion)
6480
- end
6481
- end
6482
-
6483
- # Represents response from generators.
6484
- class GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse
6485
- include Google::Apis::Core::Hashable
6486
-
6487
- # Suggestion generated using a Generator.
6488
- # Corresponds to the JSON property `generatorSuggestion`
6489
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GeneratorSuggestion]
6490
- attr_accessor :generator_suggestion
6491
-
6492
- def initialize(**args)
6493
- update!(**args)
6494
- end
6495
-
6496
- # Update properties of this object
6497
- def update!(**args)
6498
- @generator_suggestion = args[:generator_suggestion] if args.key?(:generator_suggestion)
6499
- end
6500
- end
6501
-
6502
- # Response for Knowledge Assist. Contains suggested query and optionally
6503
- # includes an answer for the query.
6504
- class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse
6505
- include Google::Apis::Core::Hashable
6506
-
6507
- # Represents a suggested query.
6508
- # Corresponds to the JSON property `suggestedQuery`
6509
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery]
6510
- attr_accessor :suggested_query
6511
-
6512
- # Represents an answer from Knowledge. Cuurently supports FAQ and Generative
6513
- # answers.
6514
- # Corresponds to the JSON property `suggestedQueryAnswer`
6515
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer]
6516
- attr_accessor :suggested_query_answer
6517
-
6518
- def initialize(**args)
6519
- update!(**args)
6520
- end
6521
-
6522
- # Update properties of this object
6523
- def update!(**args)
6524
- @suggested_query = args[:suggested_query] if args.key?(:suggested_query)
6525
- @suggested_query_answer = args[:suggested_query_answer] if args.key?(:suggested_query_answer)
6526
- end
6527
- end
6528
-
6529
- # Represents an answer from Knowledge. Cuurently supports FAQ and Generative
6530
- # answers.
6531
- class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswer
6532
- include Google::Apis::Core::Hashable
6533
-
6534
- # The piece of text from the `source` that answers this suggested query.
6535
- # Corresponds to the JSON property `answerText`
6536
- # @return [String]
6537
- attr_accessor :answer_text
6538
-
6539
- # Details about source of FAQ answer.
6540
- # Corresponds to the JSON property `faqSource`
6541
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource]
6542
- attr_accessor :faq_source
6543
-
6544
- # Details about source of Generative answer.
6545
- # Corresponds to the JSON property `generativeSource`
6546
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource]
6547
- attr_accessor :generative_source
6548
-
6549
- # Details about source of Intent Matching answer.
6550
- # Corresponds to the JSON property `intentMatchingSource`
6551
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource]
6552
- attr_accessor :intent_matching_source
6553
-
6554
- # The system's confidence score that this answer is a good match for this
6555
- # conversational query. The range is from 0.0 (completely uncertain) to 1.0 (
6556
- # completely certain).
6557
- # Corresponds to the JSON property `matchConfidence`
6558
- # @return [Float]
6559
- attr_accessor :match_confidence
6560
-
6561
- def initialize(**args)
6562
- update!(**args)
6563
- end
6564
-
6565
- # Update properties of this object
6566
- def update!(**args)
6567
- @answer_text = args[:answer_text] if args.key?(:answer_text)
6568
- @faq_source = args[:faq_source] if args.key?(:faq_source)
6569
- @generative_source = args[:generative_source] if args.key?(:generative_source)
6570
- @intent_matching_source = args[:intent_matching_source] if args.key?(:intent_matching_source)
6571
- @match_confidence = args[:match_confidence] if args.key?(:match_confidence)
6572
- end
6573
- end
6574
-
6575
- # Details about source of FAQ answer.
6576
- class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerFaqSource
6577
- include Google::Apis::Core::Hashable
6578
-
6579
- # Indicates which Knowledge Document this answer was extracted from. Format: `
6580
- # projects//knowledgeBases//documents/`.
6581
- # Corresponds to the JSON property `document`
6582
- # @return [String]
6583
- attr_accessor :document
6584
-
6585
- # The corresponding FAQ question.
6586
- # Corresponds to the JSON property `question`
6587
- # @return [String]
6588
- attr_accessor :question
6589
-
6590
- def initialize(**args)
6591
- update!(**args)
6592
- end
6593
-
6594
- # Update properties of this object
6595
- def update!(**args)
6596
- @document = args[:document] if args.key?(:document)
6597
- @question = args[:question] if args.key?(:question)
6598
- end
6599
- end
6600
-
6601
- # Details about source of Generative answer.
6602
- class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSource
6603
- include Google::Apis::Core::Hashable
6604
-
6605
- # All snippets used for this Generative Prediction, with their source URI and
6606
- # data.
6607
- # Corresponds to the JSON property `snippets`
6608
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet>]
6609
- attr_accessor :snippets
6610
-
6611
- def initialize(**args)
6612
- update!(**args)
6613
- end
6614
-
6615
- # Update properties of this object
6616
- def update!(**args)
6617
- @snippets = args[:snippets] if args.key?(:snippets)
6618
- end
6619
- end
6620
-
6621
- # Snippet Source for a Generative Prediction.
6622
- class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerGenerativeSourceSnippet
6623
- include Google::Apis::Core::Hashable
6624
-
6625
- # Indicates which Knowledge Document this snippet was extracted from. Format: `
6626
- # projects//knowledgeBases//documents/`.
6627
- # Corresponds to the JSON property `document`
6628
- # @return [String]
6629
- attr_accessor :document
6630
-
6631
- # text taken from that URI.
6632
- # Corresponds to the JSON property `text`
6633
- # @return [String]
6634
- attr_accessor :text
6635
-
6636
- # Title of the document.
6637
- # Corresponds to the JSON property `title`
6638
- # @return [String]
6639
- attr_accessor :title
6640
-
6641
- # URI the data is sourced from.
6642
- # Corresponds to the JSON property `uri`
6643
- # @return [String]
6644
- attr_accessor :uri
6645
-
6646
- def initialize(**args)
6647
- update!(**args)
6648
- end
6649
-
6650
- # Update properties of this object
6651
- def update!(**args)
6652
- @document = args[:document] if args.key?(:document)
6653
- @text = args[:text] if args.key?(:text)
6654
- @title = args[:title] if args.key?(:title)
6655
- @uri = args[:uri] if args.key?(:uri)
6656
- end
6657
- end
6658
-
6659
- # Details about source of Intent Matching answer.
6660
- class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseKnowledgeAnswerIntentMatchingSource
6661
- include Google::Apis::Core::Hashable
6662
-
6663
- # Title of the document.
6664
- # Corresponds to the JSON property `title`
6665
- # @return [String]
6666
- attr_accessor :title
6667
-
6668
- # URI the data is sourced from.
6669
- # Corresponds to the JSON property `uri`
6670
- # @return [String]
6671
- attr_accessor :uri
6672
-
6673
- def initialize(**args)
6674
- update!(**args)
6675
- end
6676
-
6677
- # Update properties of this object
6678
- def update!(**args)
6679
- @title = args[:title] if args.key?(:title)
6680
- @uri = args[:uri] if args.key?(:uri)
6681
- end
6682
- end
6683
-
6684
- # Represents a suggested query.
6685
- class GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponseSuggestedQuery
6686
- include Google::Apis::Core::Hashable
6687
-
6688
- # Suggested query text.
6689
- # Corresponds to the JSON property `queryText`
6690
- # @return [String]
6691
- attr_accessor :query_text
6692
-
6693
- # Suggested query score.
6694
- # Corresponds to the JSON property `score`
6695
- # @return [Float]
6696
- attr_accessor :score
6697
-
6698
- def initialize(**args)
6699
- update!(**args)
6700
- end
6701
-
6702
- # Update properties of this object
6703
- def update!(**args)
6704
- @query_text = args[:query_text] if args.key?(:query_text)
6705
- @score = args[:score] if args.key?(:score)
6706
- end
6707
- end
6708
-
6709
5659
  # The data for a hold annotation.
6710
5660
  class GoogleCloudContactcenterinsightsV1alpha1HoldData
6711
5661
  include Google::Apis::Core::Hashable
@@ -7492,22 +6442,6 @@ module Google
7492
6442
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1FaqAnswerData]
7493
6443
  attr_accessor :faq_answer
7494
6444
 
7495
- # Represents response from generators.
7496
- # Corresponds to the JSON property `generatorSuggestionResult`
7497
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetGeneratorSuggestionResponse]
7498
- attr_accessor :generator_suggestion_result
7499
-
7500
- # Response for Knowledge Assist. Contains suggested query and optionally
7501
- # includes an answer for the query.
7502
- # Corresponds to the JSON property `knowledgeAssistResult`
7503
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1GetKnowledgeAssistResponse]
7504
- attr_accessor :knowledge_assist_result
7505
-
7506
- # Represents a SearchKnowledge answer.
7507
- # Corresponds to the JSON property `knowledgeSearchResult`
7508
- # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer]
7509
- attr_accessor :knowledge_search_result
7510
-
7511
6445
  # Agent Assist Smart Compose suggestion data.
7512
6446
  # Corresponds to the JSON property `smartComposeSuggestion`
7513
6447
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SmartComposeSuggestionData]
@@ -7523,6 +6457,11 @@ module Google
7523
6457
  # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1AnnotationBoundary]
7524
6458
  attr_accessor :start_boundary
7525
6459
 
6460
+ # Explicit input used for generating the answer
6461
+ # Corresponds to the JSON property `userInput`
6462
+ # @return [Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput]
6463
+ attr_accessor :user_input
6464
+
7526
6465
  def initialize(**args)
7527
6466
  update!(**args)
7528
6467
  end
@@ -7537,83 +6476,28 @@ module Google
7537
6476
  @dialogflow_interaction = args[:dialogflow_interaction] if args.key?(:dialogflow_interaction)
7538
6477
  @end_boundary = args[:end_boundary] if args.key?(:end_boundary)
7539
6478
  @faq_answer = args[:faq_answer] if args.key?(:faq_answer)
7540
- @generator_suggestion_result = args[:generator_suggestion_result] if args.key?(:generator_suggestion_result)
7541
- @knowledge_assist_result = args[:knowledge_assist_result] if args.key?(:knowledge_assist_result)
7542
- @knowledge_search_result = args[:knowledge_search_result] if args.key?(:knowledge_search_result)
7543
6479
  @smart_compose_suggestion = args[:smart_compose_suggestion] if args.key?(:smart_compose_suggestion)
7544
6480
  @smart_reply = args[:smart_reply] if args.key?(:smart_reply)
7545
6481
  @start_boundary = args[:start_boundary] if args.key?(:start_boundary)
6482
+ @user_input = args[:user_input] if args.key?(:user_input)
7546
6483
  end
7547
6484
  end
7548
6485
 
7549
- # Represents a SearchKnowledge answer.
7550
- class GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswer
7551
- include Google::Apis::Core::Hashable
7552
-
7553
- # The piece of text from the knowledge base documents that answers the search
7554
- # query
7555
- # Corresponds to the JSON property `answer`
7556
- # @return [String]
7557
- attr_accessor :answer
7558
-
7559
- # The name of the answer record. Format: `projects//locations//answer Records/`
7560
- # Corresponds to the JSON property `answerRecord`
7561
- # @return [String]
7562
- attr_accessor :answer_record
7563
-
7564
- # All sources used to generate the answer.
7565
- # Corresponds to the JSON property `answerSources`
7566
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource>]
7567
- attr_accessor :answer_sources
7568
-
7569
- # The type of the answer.
7570
- # Corresponds to the JSON property `answerType`
7571
- # @return [String]
7572
- attr_accessor :answer_type
7573
-
7574
- # The confidence score in [0.0, 1.0] range.
7575
- # Corresponds to the JSON property `confidenceScore`
7576
- # @return [Float]
7577
- attr_accessor :confidence_score
7578
-
7579
- def initialize(**args)
7580
- update!(**args)
7581
- end
7582
-
7583
- # Update properties of this object
7584
- def update!(**args)
7585
- @answer = args[:answer] if args.key?(:answer)
7586
- @answer_record = args[:answer_record] if args.key?(:answer_record)
7587
- @answer_sources = args[:answer_sources] if args.key?(:answer_sources)
7588
- @answer_type = args[:answer_type] if args.key?(:answer_type)
7589
- @confidence_score = args[:confidence_score] if args.key?(:confidence_score)
7590
- end
7591
- end
7592
-
7593
- # The sources of the answers.
7594
- class GoogleCloudContactcenterinsightsV1alpha1SearchKnowledgeAnswerAnswerSource
6486
+ # Explicit input used for generating the answer
6487
+ class GoogleCloudContactcenterinsightsV1alpha1RuntimeAnnotationUserInput
7595
6488
  include Google::Apis::Core::Hashable
7596
6489
 
7597
- # The document from which the snippet was extracted. Format: `projects//
7598
- # knowledgeBases//documents/`
7599
- # Corresponds to the JSON property `document`
6490
+ # The resource name of associated generator. Format: `projects//locations//
6491
+ # generators/`
6492
+ # Corresponds to the JSON property `generatorName`
7600
6493
  # @return [String]
7601
- attr_accessor :document
6494
+ attr_accessor :generator_name
7602
6495
 
7603
- # The relevant snippet of the article.
7604
- # Corresponds to the JSON property `snippet`
7605
- # @return [String]
7606
- attr_accessor :snippet
7607
-
7608
- # The title of the article.
7609
- # Corresponds to the JSON property `title`
7610
- # @return [String]
7611
- attr_accessor :title
7612
-
7613
- # The URI of the article.
7614
- # Corresponds to the JSON property `uri`
6496
+ # Query text. Article Search uses this to store the input query used to generate
6497
+ # the search results.
6498
+ # Corresponds to the JSON property `query`
7615
6499
  # @return [String]
7616
- attr_accessor :uri
6500
+ attr_accessor :query
7617
6501
 
7618
6502
  def initialize(**args)
7619
6503
  update!(**args)
@@ -7621,10 +6505,8 @@ module Google
7621
6505
 
7622
6506
  # Update properties of this object
7623
6507
  def update!(**args)
7624
- @document = args[:document] if args.key?(:document)
7625
- @snippet = args[:snippet] if args.key?(:snippet)
7626
- @title = args[:title] if args.key?(:title)
7627
- @uri = args[:uri] if args.key?(:uri)
6508
+ @generator_name = args[:generator_name] if args.key?(:generator_name)
6509
+ @query = args[:query] if args.key?(:query)
7628
6510
  end
7629
6511
  end
7630
6512
 
@@ -7772,50 +6654,6 @@ module Google
7772
6654
  end
7773
6655
  end
7774
6656
 
7775
- # Suggested summary of the conversation.
7776
- class GoogleCloudContactcenterinsightsV1alpha1SummarySuggestion
7777
- include Google::Apis::Core::Hashable
7778
-
7779
- # Required. All the parts of generated summary.
7780
- # Corresponds to the JSON property `summarySections`
7781
- # @return [Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection>]
7782
- attr_accessor :summary_sections
7783
-
7784
- def initialize(**args)
7785
- update!(**args)
7786
- end
7787
-
7788
- # Update properties of this object
7789
- def update!(**args)
7790
- @summary_sections = args[:summary_sections] if args.key?(:summary_sections)
7791
- end
7792
- end
7793
-
7794
- # A component of the generated summary.
7795
- class GoogleCloudContactcenterinsightsV1alpha1SummarySuggestionSummarySection
7796
- include Google::Apis::Core::Hashable
7797
-
7798
- # Required. Name of the section.
7799
- # Corresponds to the JSON property `section`
7800
- # @return [String]
7801
- attr_accessor :section
7802
-
7803
- # Required. Summary text for the section.
7804
- # Corresponds to the JSON property `summary`
7805
- # @return [String]
7806
- attr_accessor :summary
7807
-
7808
- def initialize(**args)
7809
- update!(**args)
7810
- end
7811
-
7812
- # Update properties of this object
7813
- def update!(**args)
7814
- @section = args[:section] if args.key?(:section)
7815
- @summary = args[:summary] if args.key?(:summary)
7816
- end
7817
- end
7818
-
7819
6657
  # Metadata for undeploying an issue model.
7820
6658
  class GoogleCloudContactcenterinsightsV1alpha1UndeployIssueModelMetadata
7821
6659
  include Google::Apis::Core::Hashable