google-apis-dialogflow_v2 0.68.0 → 0.70.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -22,6 +22,108 @@ module Google
22
22
  module Apis
23
23
  module DialogflowV2
24
24
 
25
+ # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
26
+ # Settings exposed at lower level overrides the settings exposed at higher level.
27
+ # Overriding occurs at the sub-setting level. For example, the
28
+ # playback_interruption_settings at fulfillment level only overrides the
29
+ # playback_interruption_settings at the agent level, leaving other settings at
30
+ # the agent level unchanged. DTMF settings does not override each other. DTMF
31
+ # settings set at different levels define DTMF detections running in parallel.
32
+ # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
33
+ class GoogleCloudDialogflowCxV3AdvancedSettings
34
+ include Google::Apis::Core::Hashable
35
+
36
+ # Google Cloud Storage location for a Dialogflow operation that writes or
37
+ # exports objects (e.g. exported agent or transcripts) outside of Dialogflow.
38
+ # Corresponds to the JSON property `audioExportGcsDestination`
39
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3GcsDestination]
40
+ attr_accessor :audio_export_gcs_destination
41
+
42
+ # Define behaviors for DTMF (dual tone multi frequency).
43
+ # Corresponds to the JSON property `dtmfSettings`
44
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings]
45
+ attr_accessor :dtmf_settings
46
+
47
+ # Define behaviors on logging.
48
+ # Corresponds to the JSON property `loggingSettings`
49
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings]
50
+ attr_accessor :logging_settings
51
+
52
+ def initialize(**args)
53
+ update!(**args)
54
+ end
55
+
56
+ # Update properties of this object
57
+ def update!(**args)
58
+ @audio_export_gcs_destination = args[:audio_export_gcs_destination] if args.key?(:audio_export_gcs_destination)
59
+ @dtmf_settings = args[:dtmf_settings] if args.key?(:dtmf_settings)
60
+ @logging_settings = args[:logging_settings] if args.key?(:logging_settings)
61
+ end
62
+ end
63
+
64
+ # Define behaviors for DTMF (dual tone multi frequency).
65
+ class GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings
66
+ include Google::Apis::Core::Hashable
67
+
68
+ # If true, incoming audio is processed for DTMF (dual tone multi frequency)
69
+ # events. For example, if the caller presses a button on their telephone keypad
70
+ # and DTMF processing is enabled, Dialogflow will detect the event (e.g. a "3"
71
+ # was pressed) in the incoming audio and pass the event to the bot to drive
72
+ # business logic (e.g. when 3 is pressed, return the account balance).
73
+ # Corresponds to the JSON property `enabled`
74
+ # @return [Boolean]
75
+ attr_accessor :enabled
76
+ alias_method :enabled?, :enabled
77
+
78
+ # The digit that terminates a DTMF digit sequence.
79
+ # Corresponds to the JSON property `finishDigit`
80
+ # @return [String]
81
+ attr_accessor :finish_digit
82
+
83
+ # Max length of DTMF digits.
84
+ # Corresponds to the JSON property `maxDigits`
85
+ # @return [Fixnum]
86
+ attr_accessor :max_digits
87
+
88
+ def initialize(**args)
89
+ update!(**args)
90
+ end
91
+
92
+ # Update properties of this object
93
+ def update!(**args)
94
+ @enabled = args[:enabled] if args.key?(:enabled)
95
+ @finish_digit = args[:finish_digit] if args.key?(:finish_digit)
96
+ @max_digits = args[:max_digits] if args.key?(:max_digits)
97
+ end
98
+ end
99
+
100
+ # Define behaviors on logging.
101
+ class GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
102
+ include Google::Apis::Core::Hashable
103
+
104
+ # If true, DF Interaction logging is currently enabled.
105
+ # Corresponds to the JSON property `enableInteractionLogging`
106
+ # @return [Boolean]
107
+ attr_accessor :enable_interaction_logging
108
+ alias_method :enable_interaction_logging?, :enable_interaction_logging
109
+
110
+ # If true, StackDriver logging is currently enabled.
111
+ # Corresponds to the JSON property `enableStackdriverLogging`
112
+ # @return [Boolean]
113
+ attr_accessor :enable_stackdriver_logging
114
+ alias_method :enable_stackdriver_logging?, :enable_stackdriver_logging
115
+
116
+ def initialize(**args)
117
+ update!(**args)
118
+ end
119
+
120
+ # Update properties of this object
121
+ def update!(**args)
122
+ @enable_interaction_logging = args[:enable_interaction_logging] if args.key?(:enable_interaction_logging)
123
+ @enable_stackdriver_logging = args[:enable_stackdriver_logging] if args.key?(:enable_stackdriver_logging)
124
+ end
125
+ end
126
+
25
127
  # Represents the natural speech audio to be processed.
26
128
  class GoogleCloudDialogflowCxV3AudioInput
27
129
  include Google::Apis::Core::Hashable
@@ -739,6 +841,46 @@ module Google
739
841
  end
740
842
  end
741
843
 
844
+ # Metadata returned for the Intents.ExportIntents long running operation.
845
+ class GoogleCloudDialogflowCxV3ExportIntentsMetadata
846
+ include Google::Apis::Core::Hashable
847
+
848
+ def initialize(**args)
849
+ update!(**args)
850
+ end
851
+
852
+ # Update properties of this object
853
+ def update!(**args)
854
+ end
855
+ end
856
+
857
+ # The response message for Intents.ExportIntents.
858
+ class GoogleCloudDialogflowCxV3ExportIntentsResponse
859
+ include Google::Apis::Core::Hashable
860
+
861
+ # Inline destination for a Dialogflow operation that writes or exports objects (
862
+ # e.g. intents) outside of Dialogflow.
863
+ # Corresponds to the JSON property `intentsContent`
864
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3InlineDestination]
865
+ attr_accessor :intents_content
866
+
867
+ # The URI to a file containing the exported intents. This field is populated
868
+ # only if `intents_uri` is specified in ExportIntentsRequest.
869
+ # Corresponds to the JSON property `intentsUri`
870
+ # @return [String]
871
+ attr_accessor :intents_uri
872
+
873
+ def initialize(**args)
874
+ update!(**args)
875
+ end
876
+
877
+ # Update properties of this object
878
+ def update!(**args)
879
+ @intents_content = args[:intents_content] if args.key?(:intents_content)
880
+ @intents_uri = args[:intents_uri] if args.key?(:intents_uri)
881
+ end
882
+ end
883
+
742
884
  # Metadata returned for the TestCases.ExportTestCases long running operation.
743
885
  # This message currently has no fields.
744
886
  class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
@@ -807,6 +949,18 @@ module Google
807
949
  class GoogleCloudDialogflowCxV3FormParameter
808
950
  include Google::Apis::Core::Hashable
809
951
 
952
+ # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
953
+ # Settings exposed at lower level overrides the settings exposed at higher level.
954
+ # Overriding occurs at the sub-setting level. For example, the
955
+ # playback_interruption_settings at fulfillment level only overrides the
956
+ # playback_interruption_settings at the agent level, leaving other settings at
957
+ # the agent level unchanged. DTMF settings does not override each other. DTMF
958
+ # settings set at different levels define DTMF detections running in parallel.
959
+ # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
960
+ # Corresponds to the JSON property `advancedSettings`
961
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3AdvancedSettings]
962
+ attr_accessor :advanced_settings
963
+
810
964
  # The default value of an optional parameter. If the parameter is required, the
811
965
  # default value will be ignored.
812
966
  # Corresponds to the JSON property `defaultValue`
@@ -860,6 +1014,7 @@ module Google
860
1014
 
861
1015
  # Update properties of this object
862
1016
  def update!(**args)
1017
+ @advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
863
1018
  @default_value = args[:default_value] if args.key?(:default_value)
864
1019
  @display_name = args[:display_name] if args.key?(:display_name)
865
1020
  @entity_type = args[:entity_type] if args.key?(:entity_type)
@@ -930,11 +1085,32 @@ module Google
930
1085
  class GoogleCloudDialogflowCxV3Fulfillment
931
1086
  include Google::Apis::Core::Hashable
932
1087
 
1088
+ # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
1089
+ # Settings exposed at lower level overrides the settings exposed at higher level.
1090
+ # Overriding occurs at the sub-setting level. For example, the
1091
+ # playback_interruption_settings at fulfillment level only overrides the
1092
+ # playback_interruption_settings at the agent level, leaving other settings at
1093
+ # the agent level unchanged. DTMF settings does not override each other. DTMF
1094
+ # settings set at different levels define DTMF detections running in parallel.
1095
+ # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
1096
+ # Corresponds to the JSON property `advancedSettings`
1097
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3AdvancedSettings]
1098
+ attr_accessor :advanced_settings
1099
+
933
1100
  # Conditional cases for this fulfillment.
934
1101
  # Corresponds to the JSON property `conditionalCases`
935
1102
  # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3FulfillmentConditionalCases>]
936
1103
  attr_accessor :conditional_cases
937
1104
 
1105
+ # If the flag is true, the agent will utilize LLM to generate a text response.
1106
+ # If LLM generation fails, the defined responses in the fulfillment will be
1107
+ # respected. This flag is only useful for fulfillments associated with no-match
1108
+ # event handlers.
1109
+ # Corresponds to the JSON property `enableGenerativeFallback`
1110
+ # @return [Boolean]
1111
+ attr_accessor :enable_generative_fallback
1112
+ alias_method :enable_generative_fallback?, :enable_generative_fallback
1113
+
938
1114
  # The list of rich message responses to present to the user.
939
1115
  # Corresponds to the JSON property `messages`
940
1116
  # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessage>]
@@ -977,7 +1153,9 @@ module Google
977
1153
 
978
1154
  # Update properties of this object
979
1155
  def update!(**args)
1156
+ @advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
980
1157
  @conditional_cases = args[:conditional_cases] if args.key?(:conditional_cases)
1158
+ @enable_generative_fallback = args[:enable_generative_fallback] if args.key?(:enable_generative_fallback)
981
1159
  @messages = args[:messages] if args.key?(:messages)
982
1160
  @return_partial_responses = args[:return_partial_responses] if args.key?(:return_partial_responses)
983
1161
  @set_parameter_actions = args[:set_parameter_actions] if args.key?(:set_parameter_actions)
@@ -1097,6 +1275,28 @@ module Google
1097
1275
  end
1098
1276
  end
1099
1277
 
1278
+ # Google Cloud Storage location for a Dialogflow operation that writes or
1279
+ # exports objects (e.g. exported agent or transcripts) outside of Dialogflow.
1280
+ class GoogleCloudDialogflowCxV3GcsDestination
1281
+ include Google::Apis::Core::Hashable
1282
+
1283
+ # Required. The Google Cloud Storage URI for the exported objects. A URI is of
1284
+ # the form: `gs://bucket/object-name-or-prefix` Whether a full object name, or
1285
+ # just a prefix, its usage depends on the Dialogflow operation.
1286
+ # Corresponds to the JSON property `uri`
1287
+ # @return [String]
1288
+ attr_accessor :uri
1289
+
1290
+ def initialize(**args)
1291
+ update!(**args)
1292
+ end
1293
+
1294
+ # Update properties of this object
1295
+ def update!(**args)
1296
+ @uri = args[:uri] if args.key?(:uri)
1297
+ end
1298
+ end
1299
+
1100
1300
  # Metadata in google::longrunning::Operation for Knowledge operations.
1101
1301
  class GoogleCloudDialogflowCxV3GenericKnowledgeOperationMetadata
1102
1302
  include Google::Apis::Core::Hashable
@@ -1174,6 +1374,74 @@ module Google
1174
1374
  end
1175
1375
  end
1176
1376
 
1377
+ # Metadata returned for the Intents.ImportIntents long running operation.
1378
+ class GoogleCloudDialogflowCxV3ImportIntentsMetadata
1379
+ include Google::Apis::Core::Hashable
1380
+
1381
+ def initialize(**args)
1382
+ update!(**args)
1383
+ end
1384
+
1385
+ # Update properties of this object
1386
+ def update!(**args)
1387
+ end
1388
+ end
1389
+
1390
+ # The response message for Intents.ImportIntents.
1391
+ class GoogleCloudDialogflowCxV3ImportIntentsResponse
1392
+ include Google::Apis::Core::Hashable
1393
+
1394
+ # Conflicting resources detected during the import process. Only filled when
1395
+ # REPORT_CONFLICT is set in the request and there are conflicts in the display
1396
+ # names.
1397
+ # Corresponds to the JSON property `conflictingResources`
1398
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources]
1399
+ attr_accessor :conflicting_resources
1400
+
1401
+ # The unique identifier of the imported intents. Format: `projects//locations//
1402
+ # agents//intents/`.
1403
+ # Corresponds to the JSON property `intents`
1404
+ # @return [Array<String>]
1405
+ attr_accessor :intents
1406
+
1407
+ def initialize(**args)
1408
+ update!(**args)
1409
+ end
1410
+
1411
+ # Update properties of this object
1412
+ def update!(**args)
1413
+ @conflicting_resources = args[:conflicting_resources] if args.key?(:conflicting_resources)
1414
+ @intents = args[:intents] if args.key?(:intents)
1415
+ end
1416
+ end
1417
+
1418
+ # Conflicting resources detected during the import process. Only filled when
1419
+ # REPORT_CONFLICT is set in the request and there are conflicts in the display
1420
+ # names.
1421
+ class GoogleCloudDialogflowCxV3ImportIntentsResponseConflictingResources
1422
+ include Google::Apis::Core::Hashable
1423
+
1424
+ # Display names of conflicting entities.
1425
+ # Corresponds to the JSON property `entityDisplayNames`
1426
+ # @return [Array<String>]
1427
+ attr_accessor :entity_display_names
1428
+
1429
+ # Display names of conflicting intents.
1430
+ # Corresponds to the JSON property `intentDisplayNames`
1431
+ # @return [Array<String>]
1432
+ attr_accessor :intent_display_names
1433
+
1434
+ def initialize(**args)
1435
+ update!(**args)
1436
+ end
1437
+
1438
+ # Update properties of this object
1439
+ def update!(**args)
1440
+ @entity_display_names = args[:entity_display_names] if args.key?(:entity_display_names)
1441
+ @intent_display_names = args[:intent_display_names] if args.key?(:intent_display_names)
1442
+ end
1443
+ end
1444
+
1177
1445
  # Metadata returned for the TestCases.ImportTestCases long running operation.
1178
1446
  class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
1179
1447
  include Google::Apis::Core::Hashable
@@ -1213,6 +1481,28 @@ module Google
1213
1481
  end
1214
1482
  end
1215
1483
 
1484
+ # Inline destination for a Dialogflow operation that writes or exports objects (
1485
+ # e.g. intents) outside of Dialogflow.
1486
+ class GoogleCloudDialogflowCxV3InlineDestination
1487
+ include Google::Apis::Core::Hashable
1488
+
1489
+ # Output only. The uncompressed byte content for the objects. Only populated in
1490
+ # responses.
1491
+ # Corresponds to the JSON property `content`
1492
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
1493
+ # @return [String]
1494
+ attr_accessor :content
1495
+
1496
+ def initialize(**args)
1497
+ update!(**args)
1498
+ end
1499
+
1500
+ # Update properties of this object
1501
+ def update!(**args)
1502
+ @content = args[:content] if args.key?(:content)
1503
+ end
1504
+ end
1505
+
1216
1506
  # Instructs the speech recognizer on how to process the audio content.
1217
1507
  class GoogleCloudDialogflowCxV3InputAudioConfig
1218
1508
  include Google::Apis::Core::Hashable
@@ -1580,6 +1870,18 @@ module Google
1580
1870
  class GoogleCloudDialogflowCxV3Page
1581
1871
  include Google::Apis::Core::Hashable
1582
1872
 
1873
+ # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
1874
+ # Settings exposed at lower level overrides the settings exposed at higher level.
1875
+ # Overriding occurs at the sub-setting level. For example, the
1876
+ # playback_interruption_settings at fulfillment level only overrides the
1877
+ # playback_interruption_settings at the agent level, leaving other settings at
1878
+ # the agent level unchanged. DTMF settings does not override each other. DTMF
1879
+ # settings set at different levels define DTMF detections running in parallel.
1880
+ # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
1881
+ # Corresponds to the JSON property `advancedSettings`
1882
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3AdvancedSettings]
1883
+ attr_accessor :advanced_settings
1884
+
1583
1885
  # Required. The human-readable name of the page, unique within the flow.
1584
1886
  # Corresponds to the JSON property `displayName`
1585
1887
  # @return [String]
@@ -1660,6 +1962,7 @@ module Google
1660
1962
 
1661
1963
  # Update properties of this object
1662
1964
  def update!(**args)
1965
+ @advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
1663
1966
  @display_name = args[:display_name] if args.key?(:display_name)
1664
1967
  @entry_fulfillment = args[:entry_fulfillment] if args.key?(:entry_fulfillment)
1665
1968
  @event_handlers = args[:event_handlers] if args.key?(:event_handlers)
@@ -3237,6 +3540,108 @@ module Google
3237
3540
  end
3238
3541
  end
3239
3542
 
3543
+ # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
3544
+ # Settings exposed at lower level overrides the settings exposed at higher level.
3545
+ # Overriding occurs at the sub-setting level. For example, the
3546
+ # playback_interruption_settings at fulfillment level only overrides the
3547
+ # playback_interruption_settings at the agent level, leaving other settings at
3548
+ # the agent level unchanged. DTMF settings does not override each other. DTMF
3549
+ # settings set at different levels define DTMF detections running in parallel.
3550
+ # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
3551
+ class GoogleCloudDialogflowCxV3beta1AdvancedSettings
3552
+ include Google::Apis::Core::Hashable
3553
+
3554
+ # Google Cloud Storage location for a Dialogflow operation that writes or
3555
+ # exports objects (e.g. exported agent or transcripts) outside of Dialogflow.
3556
+ # Corresponds to the JSON property `audioExportGcsDestination`
3557
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1GcsDestination]
3558
+ attr_accessor :audio_export_gcs_destination
3559
+
3560
+ # Define behaviors for DTMF (dual tone multi frequency).
3561
+ # Corresponds to the JSON property `dtmfSettings`
3562
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings]
3563
+ attr_accessor :dtmf_settings
3564
+
3565
+ # Define behaviors on logging.
3566
+ # Corresponds to the JSON property `loggingSettings`
3567
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings]
3568
+ attr_accessor :logging_settings
3569
+
3570
+ def initialize(**args)
3571
+ update!(**args)
3572
+ end
3573
+
3574
+ # Update properties of this object
3575
+ def update!(**args)
3576
+ @audio_export_gcs_destination = args[:audio_export_gcs_destination] if args.key?(:audio_export_gcs_destination)
3577
+ @dtmf_settings = args[:dtmf_settings] if args.key?(:dtmf_settings)
3578
+ @logging_settings = args[:logging_settings] if args.key?(:logging_settings)
3579
+ end
3580
+ end
3581
+
3582
+ # Define behaviors for DTMF (dual tone multi frequency).
3583
+ class GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings
3584
+ include Google::Apis::Core::Hashable
3585
+
3586
+ # If true, incoming audio is processed for DTMF (dual tone multi frequency)
3587
+ # events. For example, if the caller presses a button on their telephone keypad
3588
+ # and DTMF processing is enabled, Dialogflow will detect the event (e.g. a "3"
3589
+ # was pressed) in the incoming audio and pass the event to the bot to drive
3590
+ # business logic (e.g. when 3 is pressed, return the account balance).
3591
+ # Corresponds to the JSON property `enabled`
3592
+ # @return [Boolean]
3593
+ attr_accessor :enabled
3594
+ alias_method :enabled?, :enabled
3595
+
3596
+ # The digit that terminates a DTMF digit sequence.
3597
+ # Corresponds to the JSON property `finishDigit`
3598
+ # @return [String]
3599
+ attr_accessor :finish_digit
3600
+
3601
+ # Max length of DTMF digits.
3602
+ # Corresponds to the JSON property `maxDigits`
3603
+ # @return [Fixnum]
3604
+ attr_accessor :max_digits
3605
+
3606
+ def initialize(**args)
3607
+ update!(**args)
3608
+ end
3609
+
3610
+ # Update properties of this object
3611
+ def update!(**args)
3612
+ @enabled = args[:enabled] if args.key?(:enabled)
3613
+ @finish_digit = args[:finish_digit] if args.key?(:finish_digit)
3614
+ @max_digits = args[:max_digits] if args.key?(:max_digits)
3615
+ end
3616
+ end
3617
+
3618
+ # Define behaviors on logging.
3619
+ class GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
3620
+ include Google::Apis::Core::Hashable
3621
+
3622
+ # If true, DF Interaction logging is currently enabled.
3623
+ # Corresponds to the JSON property `enableInteractionLogging`
3624
+ # @return [Boolean]
3625
+ attr_accessor :enable_interaction_logging
3626
+ alias_method :enable_interaction_logging?, :enable_interaction_logging
3627
+
3628
+ # If true, StackDriver logging is currently enabled.
3629
+ # Corresponds to the JSON property `enableStackdriverLogging`
3630
+ # @return [Boolean]
3631
+ attr_accessor :enable_stackdriver_logging
3632
+ alias_method :enable_stackdriver_logging?, :enable_stackdriver_logging
3633
+
3634
+ def initialize(**args)
3635
+ update!(**args)
3636
+ end
3637
+
3638
+ # Update properties of this object
3639
+ def update!(**args)
3640
+ @enable_interaction_logging = args[:enable_interaction_logging] if args.key?(:enable_interaction_logging)
3641
+ @enable_stackdriver_logging = args[:enable_stackdriver_logging] if args.key?(:enable_stackdriver_logging)
3642
+ end
3643
+ end
3644
+
3240
3645
  # Represents the natural speech audio to be processed.
3241
3646
  class GoogleCloudDialogflowCxV3beta1AudioInput
3242
3647
  include Google::Apis::Core::Hashable
@@ -3954,6 +4359,46 @@ module Google
3954
4359
  end
3955
4360
  end
3956
4361
 
4362
+ # Metadata returned for the Intents.ExportIntents long running operation.
4363
+ class GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata
4364
+ include Google::Apis::Core::Hashable
4365
+
4366
+ def initialize(**args)
4367
+ update!(**args)
4368
+ end
4369
+
4370
+ # Update properties of this object
4371
+ def update!(**args)
4372
+ end
4373
+ end
4374
+
4375
+ # The response message for Intents.ExportIntents.
4376
+ class GoogleCloudDialogflowCxV3beta1ExportIntentsResponse
4377
+ include Google::Apis::Core::Hashable
4378
+
4379
+ # Inline destination for a Dialogflow operation that writes or exports objects (
4380
+ # e.g. intents) outside of Dialogflow.
4381
+ # Corresponds to the JSON property `intentsContent`
4382
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1InlineDestination]
4383
+ attr_accessor :intents_content
4384
+
4385
+ # The URI to a file containing the exported intents. This field is populated
4386
+ # only if `intents_uri` is specified in ExportIntentsRequest.
4387
+ # Corresponds to the JSON property `intentsUri`
4388
+ # @return [String]
4389
+ attr_accessor :intents_uri
4390
+
4391
+ def initialize(**args)
4392
+ update!(**args)
4393
+ end
4394
+
4395
+ # Update properties of this object
4396
+ def update!(**args)
4397
+ @intents_content = args[:intents_content] if args.key?(:intents_content)
4398
+ @intents_uri = args[:intents_uri] if args.key?(:intents_uri)
4399
+ end
4400
+ end
4401
+
3957
4402
  # Metadata returned for the TestCases.ExportTestCases long running operation.
3958
4403
  # This message currently has no fields.
3959
4404
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
@@ -4022,6 +4467,18 @@ module Google
4022
4467
  class GoogleCloudDialogflowCxV3beta1FormParameter
4023
4468
  include Google::Apis::Core::Hashable
4024
4469
 
4470
+ # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
4471
+ # Settings exposed at lower level overrides the settings exposed at higher level.
4472
+ # Overriding occurs at the sub-setting level. For example, the
4473
+ # playback_interruption_settings at fulfillment level only overrides the
4474
+ # playback_interruption_settings at the agent level, leaving other settings at
4475
+ # the agent level unchanged. DTMF settings does not override each other. DTMF
4476
+ # settings set at different levels define DTMF detections running in parallel.
4477
+ # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
4478
+ # Corresponds to the JSON property `advancedSettings`
4479
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1AdvancedSettings]
4480
+ attr_accessor :advanced_settings
4481
+
4025
4482
  # The default value of an optional parameter. If the parameter is required, the
4026
4483
  # default value will be ignored.
4027
4484
  # Corresponds to the JSON property `defaultValue`
@@ -4075,6 +4532,7 @@ module Google
4075
4532
 
4076
4533
  # Update properties of this object
4077
4534
  def update!(**args)
4535
+ @advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
4078
4536
  @default_value = args[:default_value] if args.key?(:default_value)
4079
4537
  @display_name = args[:display_name] if args.key?(:display_name)
4080
4538
  @entity_type = args[:entity_type] if args.key?(:entity_type)
@@ -4145,11 +4603,32 @@ module Google
4145
4603
  class GoogleCloudDialogflowCxV3beta1Fulfillment
4146
4604
  include Google::Apis::Core::Hashable
4147
4605
 
4606
+ # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
4607
+ # Settings exposed at lower level overrides the settings exposed at higher level.
4608
+ # Overriding occurs at the sub-setting level. For example, the
4609
+ # playback_interruption_settings at fulfillment level only overrides the
4610
+ # playback_interruption_settings at the agent level, leaving other settings at
4611
+ # the agent level unchanged. DTMF settings does not override each other. DTMF
4612
+ # settings set at different levels define DTMF detections running in parallel.
4613
+ # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
4614
+ # Corresponds to the JSON property `advancedSettings`
4615
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1AdvancedSettings]
4616
+ attr_accessor :advanced_settings
4617
+
4148
4618
  # Conditional cases for this fulfillment.
4149
4619
  # Corresponds to the JSON property `conditionalCases`
4150
4620
  # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases>]
4151
4621
  attr_accessor :conditional_cases
4152
4622
 
4623
+ # If the flag is true, the agent will utilize LLM to generate a text response.
4624
+ # If LLM generation fails, the defined responses in the fulfillment will be
4625
+ # respected. This flag is only useful for fulfillments associated with no-match
4626
+ # event handlers.
4627
+ # Corresponds to the JSON property `enableGenerativeFallback`
4628
+ # @return [Boolean]
4629
+ attr_accessor :enable_generative_fallback
4630
+ alias_method :enable_generative_fallback?, :enable_generative_fallback
4631
+
4153
4632
  # The list of rich message responses to present to the user.
4154
4633
  # Corresponds to the JSON property `messages`
4155
4634
  # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessage>]
@@ -4192,7 +4671,9 @@ module Google
4192
4671
 
4193
4672
  # Update properties of this object
4194
4673
  def update!(**args)
4674
+ @advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
4195
4675
  @conditional_cases = args[:conditional_cases] if args.key?(:conditional_cases)
4676
+ @enable_generative_fallback = args[:enable_generative_fallback] if args.key?(:enable_generative_fallback)
4196
4677
  @messages = args[:messages] if args.key?(:messages)
4197
4678
  @return_partial_responses = args[:return_partial_responses] if args.key?(:return_partial_responses)
4198
4679
  @set_parameter_actions = args[:set_parameter_actions] if args.key?(:set_parameter_actions)
@@ -4312,6 +4793,28 @@ module Google
4312
4793
  end
4313
4794
  end
4314
4795
 
4796
+ # Google Cloud Storage location for a Dialogflow operation that writes or
4797
+ # exports objects (e.g. exported agent or transcripts) outside of Dialogflow.
4798
+ class GoogleCloudDialogflowCxV3beta1GcsDestination
4799
+ include Google::Apis::Core::Hashable
4800
+
4801
+ # Required. The Google Cloud Storage URI for the exported objects. A URI is of
4802
+ # the form: `gs://bucket/object-name-or-prefix` Whether a full object name, or
4803
+ # just a prefix, its usage depends on the Dialogflow operation.
4804
+ # Corresponds to the JSON property `uri`
4805
+ # @return [String]
4806
+ attr_accessor :uri
4807
+
4808
+ def initialize(**args)
4809
+ update!(**args)
4810
+ end
4811
+
4812
+ # Update properties of this object
4813
+ def update!(**args)
4814
+ @uri = args[:uri] if args.key?(:uri)
4815
+ end
4816
+ end
4817
+
4315
4818
  # Metadata in google::longrunning::Operation for Knowledge operations.
4316
4819
  class GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
4317
4820
  include Google::Apis::Core::Hashable
@@ -4354,10 +4857,70 @@ module Google
4354
4857
  class GoogleCloudDialogflowCxV3beta1ImportDocumentsResponse
4355
4858
  include Google::Apis::Core::Hashable
4356
4859
 
4357
- # Includes details about skipped documents or any other warnings.
4358
- # Corresponds to the JSON property `warnings`
4359
- # @return [Array<Google::Apis::DialogflowV2::GoogleRpcStatus>]
4360
- attr_accessor :warnings
4860
+ # Includes details about skipped documents or any other warnings.
4861
+ # Corresponds to the JSON property `warnings`
4862
+ # @return [Array<Google::Apis::DialogflowV2::GoogleRpcStatus>]
4863
+ attr_accessor :warnings
4864
+
4865
+ def initialize(**args)
4866
+ update!(**args)
4867
+ end
4868
+
4869
+ # Update properties of this object
4870
+ def update!(**args)
4871
+ @warnings = args[:warnings] if args.key?(:warnings)
4872
+ end
4873
+ end
4874
+
4875
+ # The response message for Flows.ImportFlow.
4876
+ class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
4877
+ include Google::Apis::Core::Hashable
4878
+
4879
+ # The unique identifier of the new flow. Format: `projects//locations//agents//
4880
+ # flows/`.
4881
+ # Corresponds to the JSON property `flow`
4882
+ # @return [String]
4883
+ attr_accessor :flow
4884
+
4885
+ def initialize(**args)
4886
+ update!(**args)
4887
+ end
4888
+
4889
+ # Update properties of this object
4890
+ def update!(**args)
4891
+ @flow = args[:flow] if args.key?(:flow)
4892
+ end
4893
+ end
4894
+
4895
+ # Metadata returned for the Intents.ImportIntents long running operation.
4896
+ class GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata
4897
+ include Google::Apis::Core::Hashable
4898
+
4899
+ def initialize(**args)
4900
+ update!(**args)
4901
+ end
4902
+
4903
+ # Update properties of this object
4904
+ def update!(**args)
4905
+ end
4906
+ end
4907
+
4908
+ # The response message for Intents.ImportIntents.
4909
+ class GoogleCloudDialogflowCxV3beta1ImportIntentsResponse
4910
+ include Google::Apis::Core::Hashable
4911
+
4912
+ # Conflicting resources detected during the import process. Only filled when
4913
+ # REPORT_CONFLICT is set in the request and there are conflicts in the display
4914
+ # names.
4915
+ # Corresponds to the JSON property `conflictingResources`
4916
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources]
4917
+ attr_accessor :conflicting_resources
4918
+
4919
+ # The unique identifier of the imported intents. Format: `projects//locations//
4920
+ # agents//intents/`.
4921
+ # Corresponds to the JSON property `intents`
4922
+ # @return [Array<String>]
4923
+ attr_accessor :intents
4361
4924
 
4362
4925
  def initialize(**args)
4363
4926
  update!(**args)
@@ -4365,19 +4928,26 @@ module Google
4365
4928
 
4366
4929
  # Update properties of this object
4367
4930
  def update!(**args)
4368
- @warnings = args[:warnings] if args.key?(:warnings)
4931
+ @conflicting_resources = args[:conflicting_resources] if args.key?(:conflicting_resources)
4932
+ @intents = args[:intents] if args.key?(:intents)
4369
4933
  end
4370
4934
  end
4371
4935
 
4372
- # The response message for Flows.ImportFlow.
4373
- class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
4936
+ # Conflicting resources detected during the import process. Only filled when
4937
+ # REPORT_CONFLICT is set in the request and there are conflicts in the display
4938
+ # names.
4939
+ class GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources
4374
4940
  include Google::Apis::Core::Hashable
4375
4941
 
4376
- # The unique identifier of the new flow. Format: `projects//locations//agents//
4377
- # flows/`.
4378
- # Corresponds to the JSON property `flow`
4379
- # @return [String]
4380
- attr_accessor :flow
4942
+ # Display names of conflicting entities.
4943
+ # Corresponds to the JSON property `entityDisplayNames`
4944
+ # @return [Array<String>]
4945
+ attr_accessor :entity_display_names
4946
+
4947
+ # Display names of conflicting intents.
4948
+ # Corresponds to the JSON property `intentDisplayNames`
4949
+ # @return [Array<String>]
4950
+ attr_accessor :intent_display_names
4381
4951
 
4382
4952
  def initialize(**args)
4383
4953
  update!(**args)
@@ -4385,7 +4955,8 @@ module Google
4385
4955
 
4386
4956
  # Update properties of this object
4387
4957
  def update!(**args)
4388
- @flow = args[:flow] if args.key?(:flow)
4958
+ @entity_display_names = args[:entity_display_names] if args.key?(:entity_display_names)
4959
+ @intent_display_names = args[:intent_display_names] if args.key?(:intent_display_names)
4389
4960
  end
4390
4961
  end
4391
4962
 
@@ -4428,6 +4999,28 @@ module Google
4428
4999
  end
4429
5000
  end
4430
5001
 
5002
+ # Inline destination for a Dialogflow operation that writes or exports objects (
5003
+ # e.g. intents) outside of Dialogflow.
5004
+ class GoogleCloudDialogflowCxV3beta1InlineDestination
5005
+ include Google::Apis::Core::Hashable
5006
+
5007
+ # Output only. The uncompressed byte content for the objects. Only populated in
5008
+ # responses.
5009
+ # Corresponds to the JSON property `content`
5010
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
5011
+ # @return [String]
5012
+ attr_accessor :content
5013
+
5014
+ def initialize(**args)
5015
+ update!(**args)
5016
+ end
5017
+
5018
+ # Update properties of this object
5019
+ def update!(**args)
5020
+ @content = args[:content] if args.key?(:content)
5021
+ end
5022
+ end
5023
+
4431
5024
  # Instructs the speech recognizer on how to process the audio content.
4432
5025
  class GoogleCloudDialogflowCxV3beta1InputAudioConfig
4433
5026
  include Google::Apis::Core::Hashable
@@ -4795,6 +5388,18 @@ module Google
4795
5388
  class GoogleCloudDialogflowCxV3beta1Page
4796
5389
  include Google::Apis::Core::Hashable
4797
5390
 
5391
+ # Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
5392
+ # Settings exposed at lower level overrides the settings exposed at higher level.
5393
+ # Overriding occurs at the sub-setting level. For example, the
5394
+ # playback_interruption_settings at fulfillment level only overrides the
5395
+ # playback_interruption_settings at the agent level, leaving other settings at
5396
+ # the agent level unchanged. DTMF settings does not override each other. DTMF
5397
+ # settings set at different levels define DTMF detections running in parallel.
5398
+ # Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
5399
+ # Corresponds to the JSON property `advancedSettings`
5400
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1AdvancedSettings]
5401
+ attr_accessor :advanced_settings
5402
+
4798
5403
  # Required. The human-readable name of the page, unique within the flow.
4799
5404
  # Corresponds to the JSON property `displayName`
4800
5405
  # @return [String]
@@ -4875,6 +5480,7 @@ module Google
4875
5480
 
4876
5481
  # Update properties of this object
4877
5482
  def update!(**args)
5483
+ @advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
4878
5484
  @display_name = args[:display_name] if args.key?(:display_name)
4879
5485
  @entry_fulfillment = args[:entry_fulfillment] if args.key?(:entry_fulfillment)
4880
5486
  @event_handlers = args[:event_handlers] if args.key?(:event_handlers)
@@ -6583,6 +7189,11 @@ module Google
6583
7189
  # @return [String]
6584
7190
  attr_accessor :document_efficiency
6585
7191
 
7192
+ # Feedback for knowledge search.
7193
+ # Corresponds to the JSON property `knowledgeSearchFeedback`
7194
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback]
7195
+ attr_accessor :knowledge_search_feedback
7196
+
6586
7197
  # Feedback for conversation summarization.
6587
7198
  # Corresponds to the JSON property `summarizationFeedback`
6588
7199
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback]
@@ -6597,10 +7208,40 @@ module Google
6597
7208
  @answer_relevance = args[:answer_relevance] if args.key?(:answer_relevance)
6598
7209
  @document_correctness = args[:document_correctness] if args.key?(:document_correctness)
6599
7210
  @document_efficiency = args[:document_efficiency] if args.key?(:document_efficiency)
7211
+ @knowledge_search_feedback = args[:knowledge_search_feedback] if args.key?(:knowledge_search_feedback)
6600
7212
  @summarization_feedback = args[:summarization_feedback] if args.key?(:summarization_feedback)
6601
7213
  end
6602
7214
  end
6603
7215
 
7216
+ # Feedback for knowledge search.
7217
+ class GoogleCloudDialogflowV2AgentAssistantFeedbackKnowledgeSearchFeedback
7218
+ include Google::Apis::Core::Hashable
7219
+
7220
+ # Whether the answer was copied by the human agent or not. If the value is set
7221
+ # to be true, AnswerFeedback.clicked will be updated to be true.
7222
+ # Corresponds to the JSON property `answerCopied`
7223
+ # @return [Boolean]
7224
+ attr_accessor :answer_copied
7225
+ alias_method :answer_copied?, :answer_copied
7226
+
7227
+ # The URIs clicked by the human agent. The value is appended for each
7228
+ # UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked
7229
+ # will be updated to be true.
7230
+ # Corresponds to the JSON property `clickedUris`
7231
+ # @return [Array<String>]
7232
+ attr_accessor :clicked_uris
7233
+
7234
+ def initialize(**args)
7235
+ update!(**args)
7236
+ end
7237
+
7238
+ # Update properties of this object
7239
+ def update!(**args)
7240
+ @answer_copied = args[:answer_copied] if args.key?(:answer_copied)
7241
+ @clicked_uris = args[:clicked_uris] if args.key?(:clicked_uris)
7242
+ end
7243
+ end
7244
+
6604
7245
  # Feedback for conversation summarization.
6605
7246
  class GoogleCloudDialogflowV2AgentAssistantFeedbackSummarizationFeedback
6606
7247
  include Google::Apis::Core::Hashable
@@ -6641,6 +7282,11 @@ module Google
6641
7282
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleAnswer]
6642
7283
  attr_accessor :article_suggestion_answer
6643
7284
 
7285
+ # Represents a Dialogflow assist answer.
7286
+ # Corresponds to the JSON property `dialogflowAssistAnswer`
7287
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DialogflowAssistAnswer]
7288
+ attr_accessor :dialogflow_assist_answer
7289
+
6644
7290
  # Represents answer from "frequently asked questions".
6645
7291
  # Corresponds to the JSON property `faqAnswer`
6646
7292
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FaqAnswer]
@@ -6653,6 +7299,7 @@ module Google
6653
7299
  # Update properties of this object
6654
7300
  def update!(**args)
6655
7301
  @article_suggestion_answer = args[:article_suggestion_answer] if args.key?(:article_suggestion_answer)
7302
+ @dialogflow_assist_answer = args[:dialogflow_assist_answer] if args.key?(:dialogflow_assist_answer)
6656
7303
  @faq_answer = args[:faq_answer] if args.key?(:faq_answer)
6657
7304
  end
6658
7305
  end
@@ -6701,6 +7348,11 @@ module Google
6701
7348
  # @return [String]
6702
7349
  attr_accessor :request_id
6703
7350
 
7351
+ # Represents the selection of a suggestion.
7352
+ # Corresponds to the JSON property `suggestionInput`
7353
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestionInput]
7354
+ attr_accessor :suggestion_input
7355
+
6704
7356
  # Auxiliary proto messages. Represents the natural language text to be processed.
6705
7357
  # Corresponds to the JSON property `textInput`
6706
7358
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput]
@@ -6718,6 +7370,7 @@ module Google
6718
7370
  @query_params = args[:query_params] if args.key?(:query_params)
6719
7371
  @reply_audio_config = args[:reply_audio_config] if args.key?(:reply_audio_config)
6720
7372
  @request_id = args[:request_id] if args.key?(:request_id)
7373
+ @suggestion_input = args[:suggestion_input] if args.key?(:suggestion_input)
6721
7374
  @text_input = args[:text_input] if args.key?(:text_input)
6722
7375
  end
6723
7376
  end
@@ -8256,6 +8909,38 @@ module Google
8256
8909
  end
8257
8910
  end
8258
8911
 
8912
+ # Represents a Dialogflow assist answer.
8913
+ class GoogleCloudDialogflowV2DialogflowAssistAnswer
8914
+ include Google::Apis::Core::Hashable
8915
+
8916
+ # The name of answer record, in the format of "projects//locations//
8917
+ # answerRecords/"
8918
+ # Corresponds to the JSON property `answerRecord`
8919
+ # @return [String]
8920
+ attr_accessor :answer_record
8921
+
8922
+ # Represents an intent suggestion.
8923
+ # Corresponds to the JSON property `intentSuggestion`
8924
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentSuggestion]
8925
+ attr_accessor :intent_suggestion
8926
+
8927
+ # Represents the result of conversational query or event processing.
8928
+ # Corresponds to the JSON property `queryResult`
8929
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryResult]
8930
+ attr_accessor :query_result
8931
+
8932
+ def initialize(**args)
8933
+ update!(**args)
8934
+ end
8935
+
8936
+ # Update properties of this object
8937
+ def update!(**args)
8938
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
8939
+ @intent_suggestion = args[:intent_suggestion] if args.key?(:intent_suggestion)
8940
+ @query_result = args[:query_result] if args.key?(:query_result)
8941
+ end
8942
+ end
8943
+
8259
8944
  # A knowledge document to be used by a KnowledgeBase. For more information, see
8260
8945
  # the [knowledge base guide](https://cloud.google.com/dialogflow/docs/how/
8261
8946
  # knowledge-bases). Note: The `projects.agent.knowledgeBases.documents` resource
@@ -9436,8 +10121,17 @@ module Google
9436
10121
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig]
9437
10122
  attr_accessor :conversation_process_config
9438
10123
 
10124
+ # Optional. Disable the logging of search queries sent by human agents. It can
10125
+ # prevent those queries from being stored at answer records. Supported features:
10126
+ # KNOWLEDGE_SEARCH.
10127
+ # Corresponds to the JSON property `disableAgentQueryLogging`
10128
+ # @return [Boolean]
10129
+ attr_accessor :disable_agent_query_logging
10130
+ alias_method :disable_agent_query_logging?, :disable_agent_query_logging
10131
+
9439
10132
  # Automatically iterates all participants and tries to compile suggestions.
9440
- # Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST.
10133
+ # Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST,
10134
+ # KNOWLEDGE_ASSIST.
9441
10135
  # Corresponds to the JSON property `enableEventBasedSuggestion`
9442
10136
  # @return [Boolean]
9443
10137
  attr_accessor :enable_event_based_suggestion
@@ -9468,6 +10162,7 @@ module Google
9468
10162
  def update!(**args)
9469
10163
  @conversation_model_config = args[:conversation_model_config] if args.key?(:conversation_model_config)
9470
10164
  @conversation_process_config = args[:conversation_process_config] if args.key?(:conversation_process_config)
10165
+ @disable_agent_query_logging = args[:disable_agent_query_logging] if args.key?(:disable_agent_query_logging)
9471
10166
  @enable_event_based_suggestion = args[:enable_event_based_suggestion] if args.key?(:enable_event_based_suggestion)
9472
10167
  @query_config = args[:query_config] if args.key?(:query_config)
9473
10168
  @suggestion_feature = args[:suggestion_feature] if args.key?(:suggestion_feature)
@@ -9583,6 +10278,32 @@ module Google
9583
10278
  # @return [String]
9584
10279
  attr_accessor :agent
9585
10280
 
10281
+ # The configuration used for human agent side Dialogflow assist suggestion.
10282
+ # Corresponds to the JSON property `humanAgentSideConfig`
10283
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig]
10284
+ attr_accessor :human_agent_side_config
10285
+
10286
+ def initialize(**args)
10287
+ update!(**args)
10288
+ end
10289
+
10290
+ # Update properties of this object
10291
+ def update!(**args)
10292
+ @agent = args[:agent] if args.key?(:agent)
10293
+ @human_agent_side_config = args[:human_agent_side_config] if args.key?(:human_agent_side_config)
10294
+ end
10295
+ end
10296
+
10297
+ # The configuration used for human agent side Dialogflow assist suggestion.
10298
+ class GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionQueryConfigDialogflowQuerySourceHumanAgentSideConfig
10299
+ include Google::Apis::Core::Hashable
10300
+
10301
+ # Optional. The name of a dialogflow virtual agent used for intent detection and
10302
+ # suggestion triggered by human agent. Format: `projects//locations//agent`.
10303
+ # Corresponds to the JSON property `agent`
10304
+ # @return [String]
10305
+ attr_accessor :agent
10306
+
9586
10307
  def initialize(**args)
9587
10308
  update!(**args)
9588
10309
  end
@@ -11314,6 +12035,39 @@ module Google
11314
12035
  end
11315
12036
  end
11316
12037
 
12038
+ # Represents an intent suggestion.
12039
+ class GoogleCloudDialogflowV2IntentSuggestion
12040
+ include Google::Apis::Core::Hashable
12041
+
12042
+ # Human readable description for better understanding an intent like its scope,
12043
+ # content, result etc. Maximum character limit: 140 characters.
12044
+ # Corresponds to the JSON property `description`
12045
+ # @return [String]
12046
+ attr_accessor :description
12047
+
12048
+ # The display name of the intent.
12049
+ # Corresponds to the JSON property `displayName`
12050
+ # @return [String]
12051
+ attr_accessor :display_name
12052
+
12053
+ # The unique identifier of this intent. Format: `projects//locations//agent/
12054
+ # intents/`.
12055
+ # Corresponds to the JSON property `intentV2`
12056
+ # @return [String]
12057
+ attr_accessor :intent_v2
12058
+
12059
+ def initialize(**args)
12060
+ update!(**args)
12061
+ end
12062
+
12063
+ # Update properties of this object
12064
+ def update!(**args)
12065
+ @description = args[:description] if args.key?(:description)
12066
+ @display_name = args[:display_name] if args.key?(:display_name)
12067
+ @intent_v2 = args[:intent_v2] if args.key?(:intent_v2)
12068
+ end
12069
+ end
12070
+
11317
12071
  # Represents an example that the agent is trained on.
11318
12072
  class GoogleCloudDialogflowV2IntentTrainingPhrase
11319
12073
  include Google::Apis::Core::Hashable
@@ -12619,6 +13373,153 @@ module Google
12619
13373
  end
12620
13374
  end
12621
13375
 
13376
+ # Represents a SearchKnowledge answer.
13377
+ class GoogleCloudDialogflowV2SearchKnowledgeAnswer
13378
+ include Google::Apis::Core::Hashable
13379
+
13380
+ # The piece of text from the knowledge base documents that answers the search
13381
+ # query
13382
+ # Corresponds to the JSON property `answer`
13383
+ # @return [String]
13384
+ attr_accessor :answer
13385
+
13386
+ # The name of the answer record. Format: `projects//locations//answer Records/`
13387
+ # Corresponds to the JSON property `answerRecord`
13388
+ # @return [String]
13389
+ attr_accessor :answer_record
13390
+
13391
+ # All sources used to generate the answer.
13392
+ # Corresponds to the JSON property `answerSources`
13393
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource>]
13394
+ attr_accessor :answer_sources
13395
+
13396
+ # The type of the answer.
13397
+ # Corresponds to the JSON property `answerType`
13398
+ # @return [String]
13399
+ attr_accessor :answer_type
13400
+
13401
+ def initialize(**args)
13402
+ update!(**args)
13403
+ end
13404
+
13405
+ # Update properties of this object
13406
+ def update!(**args)
13407
+ @answer = args[:answer] if args.key?(:answer)
13408
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
13409
+ @answer_sources = args[:answer_sources] if args.key?(:answer_sources)
13410
+ @answer_type = args[:answer_type] if args.key?(:answer_type)
13411
+ end
13412
+ end
13413
+
13414
+ # The sources of the answers.
13415
+ class GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource
13416
+ include Google::Apis::Core::Hashable
13417
+
13418
+ # The relevant snippet of the article.
13419
+ # Corresponds to the JSON property `snippet`
13420
+ # @return [String]
13421
+ attr_accessor :snippet
13422
+
13423
+ # The title of the article.
13424
+ # Corresponds to the JSON property `title`
13425
+ # @return [String]
13426
+ attr_accessor :title
13427
+
13428
+ # The URI of the article.
13429
+ # Corresponds to the JSON property `uri`
13430
+ # @return [String]
13431
+ attr_accessor :uri
13432
+
13433
+ def initialize(**args)
13434
+ update!(**args)
13435
+ end
13436
+
13437
+ # Update properties of this object
13438
+ def update!(**args)
13439
+ @snippet = args[:snippet] if args.key?(:snippet)
13440
+ @title = args[:title] if args.key?(:title)
13441
+ @uri = args[:uri] if args.key?(:uri)
13442
+ end
13443
+ end
13444
+
13445
+ # The request message for Conversations.SearchKnowledge.
13446
+ class GoogleCloudDialogflowV2SearchKnowledgeRequest
13447
+ include Google::Apis::Core::Hashable
13448
+
13449
+ # The conversation (between human agent and end user) where the search request
13450
+ # is triggered. Format: `projects//locations//conversations/`.
13451
+ # Corresponds to the JSON property `conversation`
13452
+ # @return [String]
13453
+ attr_accessor :conversation
13454
+
13455
+ # Required. The conversation profile used to configure the search. Format: `
13456
+ # projects//locations//conversationProfiles/`.
13457
+ # Corresponds to the JSON property `conversationProfile`
13458
+ # @return [String]
13459
+ attr_accessor :conversation_profile
13460
+
13461
+ # The name of the latest conversation message when the request is triggered.
13462
+ # Format: `projects//locations//conversations//messages/`.
13463
+ # Corresponds to the JSON property `latestMessage`
13464
+ # @return [String]
13465
+ attr_accessor :latest_message
13466
+
13467
+ # The parent resource contains the conversation profile Format: 'projects/' or `
13468
+ # projects//locations/`.
13469
+ # Corresponds to the JSON property `parent`
13470
+ # @return [String]
13471
+ attr_accessor :parent
13472
+
13473
+ # Auxiliary proto messages. Represents the natural language text to be processed.
13474
+ # Corresponds to the JSON property `query`
13475
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput]
13476
+ attr_accessor :query
13477
+
13478
+ # The ID of the search session. The session_id can be combined with Dialogflow
13479
+ # V3 Agent ID retrieved from conversation profile or on its own to identify a
13480
+ # search session. The search history of the same session will impact the search
13481
+ # result. It's up to the API caller to choose an appropriate `Session ID`. It
13482
+ # can be a random number or some type of session identifiers (preferably hashed).
13483
+ # The length must not exceed 36 characters.
13484
+ # Corresponds to the JSON property `sessionId`
13485
+ # @return [String]
13486
+ attr_accessor :session_id
13487
+
13488
+ def initialize(**args)
13489
+ update!(**args)
13490
+ end
13491
+
13492
+ # Update properties of this object
13493
+ def update!(**args)
13494
+ @conversation = args[:conversation] if args.key?(:conversation)
13495
+ @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
13496
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
13497
+ @parent = args[:parent] if args.key?(:parent)
13498
+ @query = args[:query] if args.key?(:query)
13499
+ @session_id = args[:session_id] if args.key?(:session_id)
13500
+ end
13501
+ end
13502
+
13503
+ # The response message for Conversations.SearchKnowledge.
13504
+ class GoogleCloudDialogflowV2SearchKnowledgeResponse
13505
+ include Google::Apis::Core::Hashable
13506
+
13507
+ # Most relevant snippets extracted from articles in the given knowledge base,
13508
+ # ordered by confidence.
13509
+ # Corresponds to the JSON property `answers`
13510
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswer>]
13511
+ attr_accessor :answers
13512
+
13513
+ def initialize(**args)
13514
+ update!(**args)
13515
+ end
13516
+
13517
+ # Update properties of this object
13518
+ def update!(**args)
13519
+ @answers = args[:answers] if args.key?(:answers)
13520
+ end
13521
+ end
13522
+
12622
13523
  # The sentiment, such as positive/negative feeling or association, for a unit of
12623
13524
  # analysis, such as the query text. See: https://cloud.google.com/natural-
12624
13525
  # language/docs/basics#interpreting_sentiment_analysis_values for how to
@@ -12978,6 +13879,13 @@ module Google
12978
13879
  # @return [String]
12979
13880
  attr_accessor :speech_model_variant
12980
13881
 
13882
+ # Use timeout based endpointing, interpreting endpointer sensitivy as seconds of
13883
+ # timeout value.
13884
+ # Corresponds to the JSON property `useTimeoutBasedEndpointing`
13885
+ # @return [Boolean]
13886
+ attr_accessor :use_timeout_based_endpointing
13887
+ alias_method :use_timeout_based_endpointing?, :use_timeout_based_endpointing
13888
+
12981
13889
  def initialize(**args)
12982
13890
  update!(**args)
12983
13891
  end
@@ -12986,6 +13894,7 @@ module Google
12986
13894
  def update!(**args)
12987
13895
  @model = args[:model] if args.key?(:model)
12988
13896
  @speech_model_variant = args[:speech_model_variant] if args.key?(:speech_model_variant)
13897
+ @use_timeout_based_endpointing = args[:use_timeout_based_endpointing] if args.key?(:use_timeout_based_endpointing)
12989
13898
  end
12990
13899
  end
12991
13900
 
@@ -13325,6 +14234,27 @@ module Google
13325
14234
  end
13326
14235
  end
13327
14236
 
14237
+ # Represents the selection of a suggestion.
14238
+ class GoogleCloudDialogflowV2SuggestionInput
14239
+ include Google::Apis::Core::Hashable
14240
+
14241
+ # Required. The ID of a suggestion selected by the human agent. The suggestion(s)
14242
+ # were generated in a previous call to request Dialogflow assist. The format is:
14243
+ # `projects//locations//answerRecords/` where is an alphanumeric string.
14244
+ # Corresponds to the JSON property `answerRecord`
14245
+ # @return [String]
14246
+ attr_accessor :answer_record
14247
+
14248
+ def initialize(**args)
14249
+ update!(**args)
14250
+ end
14251
+
14252
+ # Update properties of this object
14253
+ def update!(**args)
14254
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
14255
+ end
14256
+ end
14257
+
13328
14258
  # One response of different type of suggestion response which is used in the
13329
14259
  # response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
13330
14260
  # well as HumanAgentAssistantEvent.