google-apis-dialogflow_v2beta1 0.67.0 → 0.69.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/dialogflow_v2beta1/classes.rb +806 -1
- data/lib/google/apis/dialogflow_v2beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2beta1/representations.rb +379 -0
- data/lib/google/apis/dialogflow_v2beta1/service.rb +136 -0
- metadata +3 -3
@@ -22,6 +22,108 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DialogflowV2beta1
|
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::DialogflowV2beta1::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::DialogflowV2beta1::GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings]
|
45
|
+
attr_accessor :dtmf_settings
|
46
|
+
|
47
|
+
# Define behaviors on logging.
|
48
|
+
# Corresponds to the JSON property `loggingSettings`
|
49
|
+
# @return [Google::Apis::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings]
|
3563
|
+
attr_accessor :dtmf_settings
|
3564
|
+
|
3565
|
+
# Define behaviors on logging.
|
3566
|
+
# Corresponds to the JSON property `loggingSettings`
|
3567
|
+
# @return [Google::Apis::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::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::DialogflowV2beta1::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
|
@@ -4389,6 +4892,74 @@ module Google
|
|
4389
4892
|
end
|
4390
4893
|
end
|
4391
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::DialogflowV2beta1::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
|
4924
|
+
|
4925
|
+
def initialize(**args)
|
4926
|
+
update!(**args)
|
4927
|
+
end
|
4928
|
+
|
4929
|
+
# Update properties of this object
|
4930
|
+
def update!(**args)
|
4931
|
+
@conflicting_resources = args[:conflicting_resources] if args.key?(:conflicting_resources)
|
4932
|
+
@intents = args[:intents] if args.key?(:intents)
|
4933
|
+
end
|
4934
|
+
end
|
4935
|
+
|
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
|
4940
|
+
include Google::Apis::Core::Hashable
|
4941
|
+
|
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
|
4951
|
+
|
4952
|
+
def initialize(**args)
|
4953
|
+
update!(**args)
|
4954
|
+
end
|
4955
|
+
|
4956
|
+
# Update properties of this object
|
4957
|
+
def update!(**args)
|
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)
|
4960
|
+
end
|
4961
|
+
end
|
4962
|
+
|
4392
4963
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
4393
4964
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
4394
4965
|
include Google::Apis::Core::Hashable
|
@@ -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::DialogflowV2beta1::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)
|
@@ -9580,6 +10186,11 @@ module Google
|
|
9580
10186
|
# @return [String]
|
9581
10187
|
attr_accessor :document_efficiency
|
9582
10188
|
|
10189
|
+
# Feedback for knowledge search.
|
10190
|
+
# Corresponds to the JSON property `knowledgeSearchFeedback`
|
10191
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback]
|
10192
|
+
attr_accessor :knowledge_search_feedback
|
10193
|
+
|
9583
10194
|
# Feedback for conversation summarization.
|
9584
10195
|
# Corresponds to the JSON property `summarizationFeedback`
|
9585
10196
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback]
|
@@ -9594,10 +10205,40 @@ module Google
|
|
9594
10205
|
@answer_relevance = args[:answer_relevance] if args.key?(:answer_relevance)
|
9595
10206
|
@document_correctness = args[:document_correctness] if args.key?(:document_correctness)
|
9596
10207
|
@document_efficiency = args[:document_efficiency] if args.key?(:document_efficiency)
|
10208
|
+
@knowledge_search_feedback = args[:knowledge_search_feedback] if args.key?(:knowledge_search_feedback)
|
9597
10209
|
@summarization_feedback = args[:summarization_feedback] if args.key?(:summarization_feedback)
|
9598
10210
|
end
|
9599
10211
|
end
|
9600
10212
|
|
10213
|
+
# Feedback for knowledge search.
|
10214
|
+
class GoogleCloudDialogflowV2beta1AgentAssistantFeedbackKnowledgeSearchFeedback
|
10215
|
+
include Google::Apis::Core::Hashable
|
10216
|
+
|
10217
|
+
# Whether the answer was copied by the human agent or not. If the value is set
|
10218
|
+
# to be true, AnswerFeedback.clicked will be updated to be true.
|
10219
|
+
# Corresponds to the JSON property `answerCopied`
|
10220
|
+
# @return [Boolean]
|
10221
|
+
attr_accessor :answer_copied
|
10222
|
+
alias_method :answer_copied?, :answer_copied
|
10223
|
+
|
10224
|
+
# The URIs clicked by the human agent. The value is appended for each
|
10225
|
+
# UpdateAnswerRecordRequest. If the value is not empty, AnswerFeedback.clicked
|
10226
|
+
# will be updated to be true.
|
10227
|
+
# Corresponds to the JSON property `clickedUris`
|
10228
|
+
# @return [Array<String>]
|
10229
|
+
attr_accessor :clicked_uris
|
10230
|
+
|
10231
|
+
def initialize(**args)
|
10232
|
+
update!(**args)
|
10233
|
+
end
|
10234
|
+
|
10235
|
+
# Update properties of this object
|
10236
|
+
def update!(**args)
|
10237
|
+
@answer_copied = args[:answer_copied] if args.key?(:answer_copied)
|
10238
|
+
@clicked_uris = args[:clicked_uris] if args.key?(:clicked_uris)
|
10239
|
+
end
|
10240
|
+
end
|
10241
|
+
|
9601
10242
|
# Feedback for conversation summarization.
|
9602
10243
|
class GoogleCloudDialogflowV2beta1AgentAssistantFeedbackSummarizationFeedback
|
9603
10244
|
include Google::Apis::Core::Hashable
|
@@ -12245,9 +12886,17 @@ module Google
|
|
12245
12886
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationProcessConfig]
|
12246
12887
|
attr_accessor :conversation_process_config
|
12247
12888
|
|
12889
|
+
# Optional. Disable the logging of search queries sent by human agents. It can
|
12890
|
+
# prevent those queries from being stored at answer records. Supported features:
|
12891
|
+
# KNOWLEDGE_SEARCH.
|
12892
|
+
# Corresponds to the JSON property `disableAgentQueryLogging`
|
12893
|
+
# @return [Boolean]
|
12894
|
+
attr_accessor :disable_agent_query_logging
|
12895
|
+
alias_method :disable_agent_query_logging?, :disable_agent_query_logging
|
12896
|
+
|
12248
12897
|
# Automatically iterates all participants and tries to compile suggestions.
|
12249
12898
|
# Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST,
|
12250
|
-
# ENTITY_EXTRACTION.
|
12899
|
+
# ENTITY_EXTRACTION, KNOWLEDGE_ASSIST.
|
12251
12900
|
# Corresponds to the JSON property `enableEventBasedSuggestion`
|
12252
12901
|
# @return [Boolean]
|
12253
12902
|
attr_accessor :enable_event_based_suggestion
|
@@ -12278,6 +12927,7 @@ module Google
|
|
12278
12927
|
def update!(**args)
|
12279
12928
|
@conversation_model_config = args[:conversation_model_config] if args.key?(:conversation_model_config)
|
12280
12929
|
@conversation_process_config = args[:conversation_process_config] if args.key?(:conversation_process_config)
|
12930
|
+
@disable_agent_query_logging = args[:disable_agent_query_logging] if args.key?(:disable_agent_query_logging)
|
12281
12931
|
@enable_event_based_suggestion = args[:enable_event_based_suggestion] if args.key?(:enable_event_based_suggestion)
|
12282
12932
|
@query_config = args[:query_config] if args.key?(:query_config)
|
12283
12933
|
@suggestion_feature = args[:suggestion_feature] if args.key?(:suggestion_feature)
|
@@ -16133,6 +16783,153 @@ module Google
|
|
16133
16783
|
end
|
16134
16784
|
end
|
16135
16785
|
|
16786
|
+
# Represents a SearchKnowledge answer.
|
16787
|
+
class GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer
|
16788
|
+
include Google::Apis::Core::Hashable
|
16789
|
+
|
16790
|
+
# The piece of text from the knowledge base documents that answers the search
|
16791
|
+
# query
|
16792
|
+
# Corresponds to the JSON property `answer`
|
16793
|
+
# @return [String]
|
16794
|
+
attr_accessor :answer
|
16795
|
+
|
16796
|
+
# The name of the answer record. Format: `projects//locations//answer Records/`
|
16797
|
+
# Corresponds to the JSON property `answerRecord`
|
16798
|
+
# @return [String]
|
16799
|
+
attr_accessor :answer_record
|
16800
|
+
|
16801
|
+
# All sources used to generate the answer.
|
16802
|
+
# Corresponds to the JSON property `answerSources`
|
16803
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource>]
|
16804
|
+
attr_accessor :answer_sources
|
16805
|
+
|
16806
|
+
# The type of the answer.
|
16807
|
+
# Corresponds to the JSON property `answerType`
|
16808
|
+
# @return [String]
|
16809
|
+
attr_accessor :answer_type
|
16810
|
+
|
16811
|
+
def initialize(**args)
|
16812
|
+
update!(**args)
|
16813
|
+
end
|
16814
|
+
|
16815
|
+
# Update properties of this object
|
16816
|
+
def update!(**args)
|
16817
|
+
@answer = args[:answer] if args.key?(:answer)
|
16818
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
16819
|
+
@answer_sources = args[:answer_sources] if args.key?(:answer_sources)
|
16820
|
+
@answer_type = args[:answer_type] if args.key?(:answer_type)
|
16821
|
+
end
|
16822
|
+
end
|
16823
|
+
|
16824
|
+
# The sources of the answers.
|
16825
|
+
class GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource
|
16826
|
+
include Google::Apis::Core::Hashable
|
16827
|
+
|
16828
|
+
# The relevant snippet of the article.
|
16829
|
+
# Corresponds to the JSON property `snippet`
|
16830
|
+
# @return [String]
|
16831
|
+
attr_accessor :snippet
|
16832
|
+
|
16833
|
+
# The title of the article.
|
16834
|
+
# Corresponds to the JSON property `title`
|
16835
|
+
# @return [String]
|
16836
|
+
attr_accessor :title
|
16837
|
+
|
16838
|
+
# The URI of the article.
|
16839
|
+
# Corresponds to the JSON property `uri`
|
16840
|
+
# @return [String]
|
16841
|
+
attr_accessor :uri
|
16842
|
+
|
16843
|
+
def initialize(**args)
|
16844
|
+
update!(**args)
|
16845
|
+
end
|
16846
|
+
|
16847
|
+
# Update properties of this object
|
16848
|
+
def update!(**args)
|
16849
|
+
@snippet = args[:snippet] if args.key?(:snippet)
|
16850
|
+
@title = args[:title] if args.key?(:title)
|
16851
|
+
@uri = args[:uri] if args.key?(:uri)
|
16852
|
+
end
|
16853
|
+
end
|
16854
|
+
|
16855
|
+
# The request message for Conversations.SearchKnowledge.
|
16856
|
+
class GoogleCloudDialogflowV2beta1SearchKnowledgeRequest
|
16857
|
+
include Google::Apis::Core::Hashable
|
16858
|
+
|
16859
|
+
# The conversation (between human agent and end user) where the search request
|
16860
|
+
# is triggered. Format: `projects//locations//conversations/`.
|
16861
|
+
# Corresponds to the JSON property `conversation`
|
16862
|
+
# @return [String]
|
16863
|
+
attr_accessor :conversation
|
16864
|
+
|
16865
|
+
# Required. The conversation profile used to configure the search. Format: `
|
16866
|
+
# projects//locations//conversationProfiles/`.
|
16867
|
+
# Corresponds to the JSON property `conversationProfile`
|
16868
|
+
# @return [String]
|
16869
|
+
attr_accessor :conversation_profile
|
16870
|
+
|
16871
|
+
# The name of the latest conversation message when the request is triggered.
|
16872
|
+
# Format: `projects//locations//conversations//messages/`.
|
16873
|
+
# Corresponds to the JSON property `latestMessage`
|
16874
|
+
# @return [String]
|
16875
|
+
attr_accessor :latest_message
|
16876
|
+
|
16877
|
+
# The parent resource contains the conversation profile Format: 'projects/' or `
|
16878
|
+
# projects//locations/`.
|
16879
|
+
# Corresponds to the JSON property `parent`
|
16880
|
+
# @return [String]
|
16881
|
+
attr_accessor :parent
|
16882
|
+
|
16883
|
+
# Represents the natural language text to be processed.
|
16884
|
+
# Corresponds to the JSON property `query`
|
16885
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput]
|
16886
|
+
attr_accessor :query
|
16887
|
+
|
16888
|
+
# The ID of the search session. The session_id can be combined with Dialogflow
|
16889
|
+
# V3 Agent ID retrieved from conversation profile or on its own to identify a
|
16890
|
+
# search session. The search history of the same session will impact the search
|
16891
|
+
# result. It's up to the API caller to choose an appropriate `Session ID`. It
|
16892
|
+
# can be a random number or some type of session identifiers (preferably hashed).
|
16893
|
+
# The length must not exceed 36 characters.
|
16894
|
+
# Corresponds to the JSON property `sessionId`
|
16895
|
+
# @return [String]
|
16896
|
+
attr_accessor :session_id
|
16897
|
+
|
16898
|
+
def initialize(**args)
|
16899
|
+
update!(**args)
|
16900
|
+
end
|
16901
|
+
|
16902
|
+
# Update properties of this object
|
16903
|
+
def update!(**args)
|
16904
|
+
@conversation = args[:conversation] if args.key?(:conversation)
|
16905
|
+
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
16906
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
16907
|
+
@parent = args[:parent] if args.key?(:parent)
|
16908
|
+
@query = args[:query] if args.key?(:query)
|
16909
|
+
@session_id = args[:session_id] if args.key?(:session_id)
|
16910
|
+
end
|
16911
|
+
end
|
16912
|
+
|
16913
|
+
# The response message for Conversations.SearchKnowledge.
|
16914
|
+
class GoogleCloudDialogflowV2beta1SearchKnowledgeResponse
|
16915
|
+
include Google::Apis::Core::Hashable
|
16916
|
+
|
16917
|
+
# Most relevant snippets extracted from articles in the given knowledge base,
|
16918
|
+
# ordered by confidence.
|
16919
|
+
# Corresponds to the JSON property `answers`
|
16920
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer>]
|
16921
|
+
attr_accessor :answers
|
16922
|
+
|
16923
|
+
def initialize(**args)
|
16924
|
+
update!(**args)
|
16925
|
+
end
|
16926
|
+
|
16927
|
+
# Update properties of this object
|
16928
|
+
def update!(**args)
|
16929
|
+
@answers = args[:answers] if args.key?(:answers)
|
16930
|
+
end
|
16931
|
+
end
|
16932
|
+
|
16136
16933
|
# The sentiment, such as positive/negative feeling or association, for a unit of
|
16137
16934
|
# analysis, such as the query text. See: https://cloud.google.com/natural-
|
16138
16935
|
# language/docs/basics#interpreting_sentiment_analysis_values for how to
|
@@ -16414,6 +17211,13 @@ module Google
|
|
16414
17211
|
# @return [String]
|
16415
17212
|
attr_accessor :speech_model_variant
|
16416
17213
|
|
17214
|
+
# Use timeout based endpointing, interpreting endpointer sensitivy as seconds of
|
17215
|
+
# timeout value.
|
17216
|
+
# Corresponds to the JSON property `useTimeoutBasedEndpointing`
|
17217
|
+
# @return [Boolean]
|
17218
|
+
attr_accessor :use_timeout_based_endpointing
|
17219
|
+
alias_method :use_timeout_based_endpointing?, :use_timeout_based_endpointing
|
17220
|
+
|
16417
17221
|
def initialize(**args)
|
16418
17222
|
update!(**args)
|
16419
17223
|
end
|
@@ -16422,6 +17226,7 @@ module Google
|
|
16422
17226
|
def update!(**args)
|
16423
17227
|
@model = args[:model] if args.key?(:model)
|
16424
17228
|
@speech_model_variant = args[:speech_model_variant] if args.key?(:speech_model_variant)
|
17229
|
+
@use_timeout_based_endpointing = args[:use_timeout_based_endpointing] if args.key?(:use_timeout_based_endpointing)
|
16425
17230
|
end
|
16426
17231
|
end
|
16427
17232
|
|