google-apis-dialogflow_v3beta1 0.67.0 → 0.69.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/lib/google/apis/dialogflow_v3beta1/classes.rb +887 -4
- data/lib/google/apis/dialogflow_v3beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v3beta1/representations.rb +413 -0
- data/lib/google/apis/dialogflow_v3beta1/service.rb +145 -0
- metadata +3 -3
@@ -22,6 +22,108 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DialogflowV3beta1
|
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::DialogflowV3beta1::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::DialogflowV3beta1::GoogleCloudDialogflowCxV3AdvancedSettingsDtmfSettings]
|
45
|
+
attr_accessor :dtmf_settings
|
46
|
+
|
47
|
+
# Define behaviors on logging.
|
48
|
+
# Corresponds to the JSON property `loggingSettings`
|
49
|
+
# @return [Google::Apis::DialogflowV3beta1::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::DialogflowV3beta1::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::DialogflowV3beta1::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::DialogflowV3beta1::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::DialogflowV3beta1::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::DialogflowV3beta1::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::DialogflowV3beta1::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::DialogflowV3beta1::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)
|
@@ -3254,6 +3557,11 @@ module Google
|
|
3254
3557
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GcsDestination]
|
3255
3558
|
attr_accessor :audio_export_gcs_destination
|
3256
3559
|
|
3560
|
+
# Define behaviors for DTMF (dual tone multi frequency).
|
3561
|
+
# Corresponds to the JSON property `dtmfSettings`
|
3562
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettingsDtmfSettings]
|
3563
|
+
attr_accessor :dtmf_settings
|
3564
|
+
|
3257
3565
|
# Define behaviors on logging.
|
3258
3566
|
# Corresponds to the JSON property `loggingSettings`
|
3259
3567
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings]
|
@@ -3266,10 +3574,47 @@ module Google
|
|
3266
3574
|
# Update properties of this object
|
3267
3575
|
def update!(**args)
|
3268
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)
|
3269
3578
|
@logging_settings = args[:logging_settings] if args.key?(:logging_settings)
|
3270
3579
|
end
|
3271
3580
|
end
|
3272
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
|
+
|
3273
3618
|
# Define behaviors on logging.
|
3274
3619
|
class GoogleCloudDialogflowCxV3beta1AdvancedSettingsLoggingSettings
|
3275
3620
|
include Google::Apis::Core::Hashable
|
@@ -3357,6 +3702,11 @@ module Google
|
|
3357
3702
|
attr_accessor :enable_stackdriver_logging
|
3358
3703
|
alias_method :enable_stackdriver_logging?, :enable_stackdriver_logging
|
3359
3704
|
|
3705
|
+
# Settings for Gen App Builder.
|
3706
|
+
# Corresponds to the JSON property `genAppBuilderSettings`
|
3707
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings]
|
3708
|
+
attr_accessor :gen_app_builder_settings
|
3709
|
+
|
3360
3710
|
# Settings for connecting to Git repository for an agent.
|
3361
3711
|
# Corresponds to the JSON property `gitIntegrationSettings`
|
3362
3712
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings]
|
@@ -3424,6 +3774,7 @@ module Google
|
|
3424
3774
|
@display_name = args[:display_name] if args.key?(:display_name)
|
3425
3775
|
@enable_spell_correction = args[:enable_spell_correction] if args.key?(:enable_spell_correction)
|
3426
3776
|
@enable_stackdriver_logging = args[:enable_stackdriver_logging] if args.key?(:enable_stackdriver_logging)
|
3777
|
+
@gen_app_builder_settings = args[:gen_app_builder_settings] if args.key?(:gen_app_builder_settings)
|
3427
3778
|
@git_integration_settings = args[:git_integration_settings] if args.key?(:git_integration_settings)
|
3428
3779
|
@locked = args[:locked] if args.key?(:locked)
|
3429
3780
|
@name = args[:name] if args.key?(:name)
|
@@ -3436,12 +3787,33 @@ module Google
|
|
3436
3787
|
end
|
3437
3788
|
end
|
3438
3789
|
|
3439
|
-
# Settings for
|
3440
|
-
class
|
3790
|
+
# Settings for Gen App Builder.
|
3791
|
+
class GoogleCloudDialogflowCxV3beta1AgentGenAppBuilderSettings
|
3441
3792
|
include Google::Apis::Core::Hashable
|
3442
3793
|
|
3443
|
-
#
|
3444
|
-
#
|
3794
|
+
# Required. The full name of the Gen App Builder engine related to this agent if
|
3795
|
+
# there is one. Format: `projects/`Project ID`/locations/`Location ID`/
|
3796
|
+
# collections/`Collection ID`/engines/`Engine ID``
|
3797
|
+
# Corresponds to the JSON property `engine`
|
3798
|
+
# @return [String]
|
3799
|
+
attr_accessor :engine
|
3800
|
+
|
3801
|
+
def initialize(**args)
|
3802
|
+
update!(**args)
|
3803
|
+
end
|
3804
|
+
|
3805
|
+
# Update properties of this object
|
3806
|
+
def update!(**args)
|
3807
|
+
@engine = args[:engine] if args.key?(:engine)
|
3808
|
+
end
|
3809
|
+
end
|
3810
|
+
|
3811
|
+
# Settings for connecting to Git repository for an agent.
|
3812
|
+
class GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettings
|
3813
|
+
include Google::Apis::Core::Hashable
|
3814
|
+
|
3815
|
+
# Settings of integration with GitHub.
|
3816
|
+
# Corresponds to the JSON property `githubSettings`
|
3445
3817
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AgentGitIntegrationSettingsGithubSettings]
|
3446
3818
|
attr_accessor :github_settings
|
3447
3819
|
|
@@ -5173,6 +5545,91 @@ module Google
|
|
5173
5545
|
end
|
5174
5546
|
end
|
5175
5547
|
|
5548
|
+
# Metadata returned for the Intents.ExportIntents long running operation.
|
5549
|
+
class GoogleCloudDialogflowCxV3beta1ExportIntentsMetadata
|
5550
|
+
include Google::Apis::Core::Hashable
|
5551
|
+
|
5552
|
+
def initialize(**args)
|
5553
|
+
update!(**args)
|
5554
|
+
end
|
5555
|
+
|
5556
|
+
# Update properties of this object
|
5557
|
+
def update!(**args)
|
5558
|
+
end
|
5559
|
+
end
|
5560
|
+
|
5561
|
+
# The request message for Intents.ExportIntents.
|
5562
|
+
class GoogleCloudDialogflowCxV3beta1ExportIntentsRequest
|
5563
|
+
include Google::Apis::Core::Hashable
|
5564
|
+
|
5565
|
+
# Optional. The data format of the exported intents. If not specified, `BLOB` is
|
5566
|
+
# assumed.
|
5567
|
+
# Corresponds to the JSON property `dataFormat`
|
5568
|
+
# @return [String]
|
5569
|
+
attr_accessor :data_format
|
5570
|
+
|
5571
|
+
# Required. The name of the intents to export. Format: `projects//locations//
|
5572
|
+
# agents//intents/`.
|
5573
|
+
# Corresponds to the JSON property `intents`
|
5574
|
+
# @return [Array<String>]
|
5575
|
+
attr_accessor :intents
|
5576
|
+
|
5577
|
+
# Optional. The option to return the serialized intents inline.
|
5578
|
+
# Corresponds to the JSON property `intentsContentInline`
|
5579
|
+
# @return [Boolean]
|
5580
|
+
attr_accessor :intents_content_inline
|
5581
|
+
alias_method :intents_content_inline?, :intents_content_inline
|
5582
|
+
|
5583
|
+
# Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
|
5584
|
+
# URI to export the intents to. The format of this URI must be `gs:///`.
|
5585
|
+
# Dialogflow performs a write operation for the Cloud Storage object on the
|
5586
|
+
# caller's behalf, so your request authentication must have write permissions
|
5587
|
+
# for the object. For more information, see [Dialogflow access control](https://
|
5588
|
+
# cloud.google.com/dialogflow/cx/docs/concept/access-control#storage).
|
5589
|
+
# Corresponds to the JSON property `intentsUri`
|
5590
|
+
# @return [String]
|
5591
|
+
attr_accessor :intents_uri
|
5592
|
+
|
5593
|
+
def initialize(**args)
|
5594
|
+
update!(**args)
|
5595
|
+
end
|
5596
|
+
|
5597
|
+
# Update properties of this object
|
5598
|
+
def update!(**args)
|
5599
|
+
@data_format = args[:data_format] if args.key?(:data_format)
|
5600
|
+
@intents = args[:intents] if args.key?(:intents)
|
5601
|
+
@intents_content_inline = args[:intents_content_inline] if args.key?(:intents_content_inline)
|
5602
|
+
@intents_uri = args[:intents_uri] if args.key?(:intents_uri)
|
5603
|
+
end
|
5604
|
+
end
|
5605
|
+
|
5606
|
+
# The response message for Intents.ExportIntents.
|
5607
|
+
class GoogleCloudDialogflowCxV3beta1ExportIntentsResponse
|
5608
|
+
include Google::Apis::Core::Hashable
|
5609
|
+
|
5610
|
+
# Inline destination for a Dialogflow operation that writes or exports objects (
|
5611
|
+
# e.g. intents) outside of Dialogflow.
|
5612
|
+
# Corresponds to the JSON property `intentsContent`
|
5613
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1InlineDestination]
|
5614
|
+
attr_accessor :intents_content
|
5615
|
+
|
5616
|
+
# The URI to a file containing the exported intents. This field is populated
|
5617
|
+
# only if `intents_uri` is specified in ExportIntentsRequest.
|
5618
|
+
# Corresponds to the JSON property `intentsUri`
|
5619
|
+
# @return [String]
|
5620
|
+
attr_accessor :intents_uri
|
5621
|
+
|
5622
|
+
def initialize(**args)
|
5623
|
+
update!(**args)
|
5624
|
+
end
|
5625
|
+
|
5626
|
+
# Update properties of this object
|
5627
|
+
def update!(**args)
|
5628
|
+
@intents_content = args[:intents_content] if args.key?(:intents_content)
|
5629
|
+
@intents_uri = args[:intents_uri] if args.key?(:intents_uri)
|
5630
|
+
end
|
5631
|
+
end
|
5632
|
+
|
5176
5633
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
5177
5634
|
# This message currently has no fields.
|
5178
5635
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
@@ -5269,6 +5726,18 @@ module Google
|
|
5269
5726
|
class GoogleCloudDialogflowCxV3beta1Flow
|
5270
5727
|
include Google::Apis::Core::Hashable
|
5271
5728
|
|
5729
|
+
# Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
|
5730
|
+
# Settings exposed at lower level overrides the settings exposed at higher level.
|
5731
|
+
# Overriding occurs at the sub-setting level. For example, the
|
5732
|
+
# playback_interruption_settings at fulfillment level only overrides the
|
5733
|
+
# playback_interruption_settings at the agent level, leaving other settings at
|
5734
|
+
# the agent level unchanged. DTMF settings does not override each other. DTMF
|
5735
|
+
# settings set at different levels define DTMF detections running in parallel.
|
5736
|
+
# Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
|
5737
|
+
# Corresponds to the JSON property `advancedSettings`
|
5738
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettings]
|
5739
|
+
attr_accessor :advanced_settings
|
5740
|
+
|
5272
5741
|
# The description of the flow. The maximum length is 500 characters. If exceeded,
|
5273
5742
|
# the request is rejected.
|
5274
5743
|
# Corresponds to the JSON property `description`
|
@@ -5338,6 +5807,7 @@ module Google
|
|
5338
5807
|
|
5339
5808
|
# Update properties of this object
|
5340
5809
|
def update!(**args)
|
5810
|
+
@advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
|
5341
5811
|
@description = args[:description] if args.key?(:description)
|
5342
5812
|
@display_name = args[:display_name] if args.key?(:display_name)
|
5343
5813
|
@event_handlers = args[:event_handlers] if args.key?(:event_handlers)
|
@@ -5431,6 +5901,18 @@ module Google
|
|
5431
5901
|
class GoogleCloudDialogflowCxV3beta1FormParameter
|
5432
5902
|
include Google::Apis::Core::Hashable
|
5433
5903
|
|
5904
|
+
# Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
|
5905
|
+
# Settings exposed at lower level overrides the settings exposed at higher level.
|
5906
|
+
# Overriding occurs at the sub-setting level. For example, the
|
5907
|
+
# playback_interruption_settings at fulfillment level only overrides the
|
5908
|
+
# playback_interruption_settings at the agent level, leaving other settings at
|
5909
|
+
# the agent level unchanged. DTMF settings does not override each other. DTMF
|
5910
|
+
# settings set at different levels define DTMF detections running in parallel.
|
5911
|
+
# Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
|
5912
|
+
# Corresponds to the JSON property `advancedSettings`
|
5913
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettings]
|
5914
|
+
attr_accessor :advanced_settings
|
5915
|
+
|
5434
5916
|
# The default value of an optional parameter. If the parameter is required, the
|
5435
5917
|
# default value will be ignored.
|
5436
5918
|
# Corresponds to the JSON property `defaultValue`
|
@@ -5484,6 +5966,7 @@ module Google
|
|
5484
5966
|
|
5485
5967
|
# Update properties of this object
|
5486
5968
|
def update!(**args)
|
5969
|
+
@advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
|
5487
5970
|
@default_value = args[:default_value] if args.key?(:default_value)
|
5488
5971
|
@display_name = args[:display_name] if args.key?(:display_name)
|
5489
5972
|
@entity_type = args[:entity_type] if args.key?(:entity_type)
|
@@ -5631,11 +6114,32 @@ module Google
|
|
5631
6114
|
class GoogleCloudDialogflowCxV3beta1Fulfillment
|
5632
6115
|
include Google::Apis::Core::Hashable
|
5633
6116
|
|
6117
|
+
# Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
|
6118
|
+
# Settings exposed at lower level overrides the settings exposed at higher level.
|
6119
|
+
# Overriding occurs at the sub-setting level. For example, the
|
6120
|
+
# playback_interruption_settings at fulfillment level only overrides the
|
6121
|
+
# playback_interruption_settings at the agent level, leaving other settings at
|
6122
|
+
# the agent level unchanged. DTMF settings does not override each other. DTMF
|
6123
|
+
# settings set at different levels define DTMF detections running in parallel.
|
6124
|
+
# Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
|
6125
|
+
# Corresponds to the JSON property `advancedSettings`
|
6126
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettings]
|
6127
|
+
attr_accessor :advanced_settings
|
6128
|
+
|
5634
6129
|
# Conditional cases for this fulfillment.
|
5635
6130
|
# Corresponds to the JSON property `conditionalCases`
|
5636
6131
|
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1FulfillmentConditionalCases>]
|
5637
6132
|
attr_accessor :conditional_cases
|
5638
6133
|
|
6134
|
+
# If the flag is true, the agent will utilize LLM to generate a text response.
|
6135
|
+
# If LLM generation fails, the defined responses in the fulfillment will be
|
6136
|
+
# respected. This flag is only useful for fulfillments associated with no-match
|
6137
|
+
# event handlers.
|
6138
|
+
# Corresponds to the JSON property `enableGenerativeFallback`
|
6139
|
+
# @return [Boolean]
|
6140
|
+
attr_accessor :enable_generative_fallback
|
6141
|
+
alias_method :enable_generative_fallback?, :enable_generative_fallback
|
6142
|
+
|
5639
6143
|
# The list of rich message responses to present to the user.
|
5640
6144
|
# Corresponds to the JSON property `messages`
|
5641
6145
|
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage>]
|
@@ -5678,7 +6182,9 @@ module Google
|
|
5678
6182
|
|
5679
6183
|
# Update properties of this object
|
5680
6184
|
def update!(**args)
|
6185
|
+
@advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
|
5681
6186
|
@conditional_cases = args[:conditional_cases] if args.key?(:conditional_cases)
|
6187
|
+
@enable_generative_fallback = args[:enable_generative_fallback] if args.key?(:enable_generative_fallback)
|
5682
6188
|
@messages = args[:messages] if args.key?(:messages)
|
5683
6189
|
@return_partial_responses = args[:return_partial_responses] if args.key?(:return_partial_responses)
|
5684
6190
|
@set_parameter_actions = args[:set_parameter_actions] if args.key?(:set_parameter_actions)
|
@@ -5820,6 +6326,159 @@ module Google
|
|
5820
6326
|
end
|
5821
6327
|
end
|
5822
6328
|
|
6329
|
+
# Settings for Generative AI.
|
6330
|
+
class GoogleCloudDialogflowCxV3beta1GenerativeSettings
|
6331
|
+
include Google::Apis::Core::Hashable
|
6332
|
+
|
6333
|
+
# Settings for Generative Fallback.
|
6334
|
+
# Corresponds to the JSON property `fallbackSettings`
|
6335
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings]
|
6336
|
+
attr_accessor :fallback_settings
|
6337
|
+
|
6338
|
+
# Settings for Generative Safety.
|
6339
|
+
# Corresponds to the JSON property `generativeSafetySettings`
|
6340
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettings]
|
6341
|
+
attr_accessor :generative_safety_settings
|
6342
|
+
|
6343
|
+
# Settings for knowledge connector. These parameters are used for LLM prompt
|
6344
|
+
# like "You are . You are a helpful and verbose at , . Your task is to help
|
6345
|
+
# humans on ".
|
6346
|
+
# Corresponds to the JSON property `knowledgeConnectorSettings`
|
6347
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings]
|
6348
|
+
attr_accessor :knowledge_connector_settings
|
6349
|
+
|
6350
|
+
# Language for this settings.
|
6351
|
+
# Corresponds to the JSON property `languageCode`
|
6352
|
+
# @return [String]
|
6353
|
+
attr_accessor :language_code
|
6354
|
+
|
6355
|
+
# Format: `projects//locations//agents//generativeSettings`.
|
6356
|
+
# Corresponds to the JSON property `name`
|
6357
|
+
# @return [String]
|
6358
|
+
attr_accessor :name
|
6359
|
+
|
6360
|
+
def initialize(**args)
|
6361
|
+
update!(**args)
|
6362
|
+
end
|
6363
|
+
|
6364
|
+
# Update properties of this object
|
6365
|
+
def update!(**args)
|
6366
|
+
@fallback_settings = args[:fallback_settings] if args.key?(:fallback_settings)
|
6367
|
+
@generative_safety_settings = args[:generative_safety_settings] if args.key?(:generative_safety_settings)
|
6368
|
+
@knowledge_connector_settings = args[:knowledge_connector_settings] if args.key?(:knowledge_connector_settings)
|
6369
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
6370
|
+
@name = args[:name] if args.key?(:name)
|
6371
|
+
end
|
6372
|
+
end
|
6373
|
+
|
6374
|
+
# Settings for Generative Fallback.
|
6375
|
+
class GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettings
|
6376
|
+
include Google::Apis::Core::Hashable
|
6377
|
+
|
6378
|
+
# Stored prompts that can be selected, for example default templates like "
|
6379
|
+
# conservative" or "chatty", or user defined ones.
|
6380
|
+
# Corresponds to the JSON property `promptTemplates`
|
6381
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate>]
|
6382
|
+
attr_accessor :prompt_templates
|
6383
|
+
|
6384
|
+
# Display name of the selected prompt.
|
6385
|
+
# Corresponds to the JSON property `selectedPrompt`
|
6386
|
+
# @return [String]
|
6387
|
+
attr_accessor :selected_prompt
|
6388
|
+
|
6389
|
+
def initialize(**args)
|
6390
|
+
update!(**args)
|
6391
|
+
end
|
6392
|
+
|
6393
|
+
# Update properties of this object
|
6394
|
+
def update!(**args)
|
6395
|
+
@prompt_templates = args[:prompt_templates] if args.key?(:prompt_templates)
|
6396
|
+
@selected_prompt = args[:selected_prompt] if args.key?(:selected_prompt)
|
6397
|
+
end
|
6398
|
+
end
|
6399
|
+
|
6400
|
+
# Prompt template.
|
6401
|
+
class GoogleCloudDialogflowCxV3beta1GenerativeSettingsFallbackSettingsPromptTemplate
|
6402
|
+
include Google::Apis::Core::Hashable
|
6403
|
+
|
6404
|
+
# Prompt name.
|
6405
|
+
# Corresponds to the JSON property `displayName`
|
6406
|
+
# @return [String]
|
6407
|
+
attr_accessor :display_name
|
6408
|
+
|
6409
|
+
# If the flag is true, the prompt is frozen and cannot be modified by users.
|
6410
|
+
# Corresponds to the JSON property `frozen`
|
6411
|
+
# @return [Boolean]
|
6412
|
+
attr_accessor :frozen
|
6413
|
+
alias_method :frozen?, :frozen
|
6414
|
+
|
6415
|
+
# Prompt text that is sent to a LLM on no-match default, placeholders are filled
|
6416
|
+
# downstream. For example: "Here is a conversation $conversation, a response is:
|
6417
|
+
# "
|
6418
|
+
# Corresponds to the JSON property `promptText`
|
6419
|
+
# @return [String]
|
6420
|
+
attr_accessor :prompt_text
|
6421
|
+
|
6422
|
+
def initialize(**args)
|
6423
|
+
update!(**args)
|
6424
|
+
end
|
6425
|
+
|
6426
|
+
# Update properties of this object
|
6427
|
+
def update!(**args)
|
6428
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
6429
|
+
@frozen = args[:frozen] if args.key?(:frozen)
|
6430
|
+
@prompt_text = args[:prompt_text] if args.key?(:prompt_text)
|
6431
|
+
end
|
6432
|
+
end
|
6433
|
+
|
6434
|
+
# Settings for knowledge connector. These parameters are used for LLM prompt
|
6435
|
+
# like "You are . You are a helpful and verbose at , . Your task is to help
|
6436
|
+
# humans on ".
|
6437
|
+
class GoogleCloudDialogflowCxV3beta1GenerativeSettingsKnowledgeConnectorSettings
|
6438
|
+
include Google::Apis::Core::Hashable
|
6439
|
+
|
6440
|
+
# Name of the virtual agent. Used for LLM prompt. Can be left empty.
|
6441
|
+
# Corresponds to the JSON property `agent`
|
6442
|
+
# @return [String]
|
6443
|
+
attr_accessor :agent
|
6444
|
+
|
6445
|
+
# Identity of the agent, e.g. "virtual agent", "AI assistant".
|
6446
|
+
# Corresponds to the JSON property `agentIdentity`
|
6447
|
+
# @return [String]
|
6448
|
+
attr_accessor :agent_identity
|
6449
|
+
|
6450
|
+
# Agent scope, e.g. "Example company website", "internal Example company website
|
6451
|
+
# for employees", "manual of car owner".
|
6452
|
+
# Corresponds to the JSON property `agentScope`
|
6453
|
+
# @return [String]
|
6454
|
+
attr_accessor :agent_scope
|
6455
|
+
|
6456
|
+
# Name of the company, organization or other entity that the agent represents.
|
6457
|
+
# Used for knowledge connector LLM prompt and for knowledge search.
|
6458
|
+
# Corresponds to the JSON property `business`
|
6459
|
+
# @return [String]
|
6460
|
+
attr_accessor :business
|
6461
|
+
|
6462
|
+
# Company description, used for LLM prompt, e.g. "a family company selling
|
6463
|
+
# freshly roasted coffee beans".
|
6464
|
+
# Corresponds to the JSON property `businessDescription`
|
6465
|
+
# @return [String]
|
6466
|
+
attr_accessor :business_description
|
6467
|
+
|
6468
|
+
def initialize(**args)
|
6469
|
+
update!(**args)
|
6470
|
+
end
|
6471
|
+
|
6472
|
+
# Update properties of this object
|
6473
|
+
def update!(**args)
|
6474
|
+
@agent = args[:agent] if args.key?(:agent)
|
6475
|
+
@agent_identity = args[:agent_identity] if args.key?(:agent_identity)
|
6476
|
+
@agent_scope = args[:agent_scope] if args.key?(:agent_scope)
|
6477
|
+
@business = args[:business] if args.key?(:business)
|
6478
|
+
@business_description = args[:business_description] if args.key?(:business_description)
|
6479
|
+
end
|
6480
|
+
end
|
6481
|
+
|
5823
6482
|
# Metadata in google::longrunning::Operation for Knowledge operations.
|
5824
6483
|
class GoogleCloudDialogflowCxV3beta1GenericKnowledgeOperationMetadata
|
5825
6484
|
include Google::Apis::Core::Hashable
|
@@ -5941,6 +6600,111 @@ module Google
|
|
5941
6600
|
end
|
5942
6601
|
end
|
5943
6602
|
|
6603
|
+
# Metadata returned for the Intents.ImportIntents long running operation.
|
6604
|
+
class GoogleCloudDialogflowCxV3beta1ImportIntentsMetadata
|
6605
|
+
include Google::Apis::Core::Hashable
|
6606
|
+
|
6607
|
+
def initialize(**args)
|
6608
|
+
update!(**args)
|
6609
|
+
end
|
6610
|
+
|
6611
|
+
# Update properties of this object
|
6612
|
+
def update!(**args)
|
6613
|
+
end
|
6614
|
+
end
|
6615
|
+
|
6616
|
+
# The request message for Intents.ImportIntents.
|
6617
|
+
class GoogleCloudDialogflowCxV3beta1ImportIntentsRequest
|
6618
|
+
include Google::Apis::Core::Hashable
|
6619
|
+
|
6620
|
+
# Inline source for a Dialogflow operation that reads or imports objects (e.g.
|
6621
|
+
# intents) into Dialogflow.
|
6622
|
+
# Corresponds to the JSON property `intentsContent`
|
6623
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1InlineSource]
|
6624
|
+
attr_accessor :intents_content
|
6625
|
+
|
6626
|
+
# The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
|
6627
|
+
# import intents from. The format of this URI must be `gs:///`. Dialogflow
|
6628
|
+
# performs a read operation for the Cloud Storage object on the caller's behalf,
|
6629
|
+
# so your request authentication must have read permissions for the object. For
|
6630
|
+
# more information, see [Dialogflow access control](https://cloud.google.com/
|
6631
|
+
# dialogflow/cx/docs/concept/access-control#storage).
|
6632
|
+
# Corresponds to the JSON property `intentsUri`
|
6633
|
+
# @return [String]
|
6634
|
+
attr_accessor :intents_uri
|
6635
|
+
|
6636
|
+
# Merge option for importing intents. If not specified, `REJECT` is assumed.
|
6637
|
+
# Corresponds to the JSON property `mergeOption`
|
6638
|
+
# @return [String]
|
6639
|
+
attr_accessor :merge_option
|
6640
|
+
|
6641
|
+
def initialize(**args)
|
6642
|
+
update!(**args)
|
6643
|
+
end
|
6644
|
+
|
6645
|
+
# Update properties of this object
|
6646
|
+
def update!(**args)
|
6647
|
+
@intents_content = args[:intents_content] if args.key?(:intents_content)
|
6648
|
+
@intents_uri = args[:intents_uri] if args.key?(:intents_uri)
|
6649
|
+
@merge_option = args[:merge_option] if args.key?(:merge_option)
|
6650
|
+
end
|
6651
|
+
end
|
6652
|
+
|
6653
|
+
# The response message for Intents.ImportIntents.
|
6654
|
+
class GoogleCloudDialogflowCxV3beta1ImportIntentsResponse
|
6655
|
+
include Google::Apis::Core::Hashable
|
6656
|
+
|
6657
|
+
# Conflicting resources detected during the import process. Only filled when
|
6658
|
+
# REPORT_CONFLICT is set in the request and there are conflicts in the display
|
6659
|
+
# names.
|
6660
|
+
# Corresponds to the JSON property `conflictingResources`
|
6661
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources]
|
6662
|
+
attr_accessor :conflicting_resources
|
6663
|
+
|
6664
|
+
# The unique identifier of the imported intents. Format: `projects//locations//
|
6665
|
+
# agents//intents/`.
|
6666
|
+
# Corresponds to the JSON property `intents`
|
6667
|
+
# @return [Array<String>]
|
6668
|
+
attr_accessor :intents
|
6669
|
+
|
6670
|
+
def initialize(**args)
|
6671
|
+
update!(**args)
|
6672
|
+
end
|
6673
|
+
|
6674
|
+
# Update properties of this object
|
6675
|
+
def update!(**args)
|
6676
|
+
@conflicting_resources = args[:conflicting_resources] if args.key?(:conflicting_resources)
|
6677
|
+
@intents = args[:intents] if args.key?(:intents)
|
6678
|
+
end
|
6679
|
+
end
|
6680
|
+
|
6681
|
+
# Conflicting resources detected during the import process. Only filled when
|
6682
|
+
# REPORT_CONFLICT is set in the request and there are conflicts in the display
|
6683
|
+
# names.
|
6684
|
+
class GoogleCloudDialogflowCxV3beta1ImportIntentsResponseConflictingResources
|
6685
|
+
include Google::Apis::Core::Hashable
|
6686
|
+
|
6687
|
+
# Display names of conflicting entities.
|
6688
|
+
# Corresponds to the JSON property `entityDisplayNames`
|
6689
|
+
# @return [Array<String>]
|
6690
|
+
attr_accessor :entity_display_names
|
6691
|
+
|
6692
|
+
# Display names of conflicting intents.
|
6693
|
+
# Corresponds to the JSON property `intentDisplayNames`
|
6694
|
+
# @return [Array<String>]
|
6695
|
+
attr_accessor :intent_display_names
|
6696
|
+
|
6697
|
+
def initialize(**args)
|
6698
|
+
update!(**args)
|
6699
|
+
end
|
6700
|
+
|
6701
|
+
# Update properties of this object
|
6702
|
+
def update!(**args)
|
6703
|
+
@entity_display_names = args[:entity_display_names] if args.key?(:entity_display_names)
|
6704
|
+
@intent_display_names = args[:intent_display_names] if args.key?(:intent_display_names)
|
6705
|
+
end
|
6706
|
+
end
|
6707
|
+
|
5944
6708
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
5945
6709
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
5946
6710
|
include Google::Apis::Core::Hashable
|
@@ -6011,6 +6775,49 @@ module Google
|
|
6011
6775
|
end
|
6012
6776
|
end
|
6013
6777
|
|
6778
|
+
# Inline destination for a Dialogflow operation that writes or exports objects (
|
6779
|
+
# e.g. intents) outside of Dialogflow.
|
6780
|
+
class GoogleCloudDialogflowCxV3beta1InlineDestination
|
6781
|
+
include Google::Apis::Core::Hashable
|
6782
|
+
|
6783
|
+
# Output only. The uncompressed byte content for the objects. Only populated in
|
6784
|
+
# responses.
|
6785
|
+
# Corresponds to the JSON property `content`
|
6786
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
6787
|
+
# @return [String]
|
6788
|
+
attr_accessor :content
|
6789
|
+
|
6790
|
+
def initialize(**args)
|
6791
|
+
update!(**args)
|
6792
|
+
end
|
6793
|
+
|
6794
|
+
# Update properties of this object
|
6795
|
+
def update!(**args)
|
6796
|
+
@content = args[:content] if args.key?(:content)
|
6797
|
+
end
|
6798
|
+
end
|
6799
|
+
|
6800
|
+
# Inline source for a Dialogflow operation that reads or imports objects (e.g.
|
6801
|
+
# intents) into Dialogflow.
|
6802
|
+
class GoogleCloudDialogflowCxV3beta1InlineSource
|
6803
|
+
include Google::Apis::Core::Hashable
|
6804
|
+
|
6805
|
+
# The uncompressed byte content for the objects.
|
6806
|
+
# Corresponds to the JSON property `content`
|
6807
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
6808
|
+
# @return [String]
|
6809
|
+
attr_accessor :content
|
6810
|
+
|
6811
|
+
def initialize(**args)
|
6812
|
+
update!(**args)
|
6813
|
+
end
|
6814
|
+
|
6815
|
+
# Update properties of this object
|
6816
|
+
def update!(**args)
|
6817
|
+
@content = args[:content] if args.key?(:content)
|
6818
|
+
end
|
6819
|
+
end
|
6820
|
+
|
6014
6821
|
# Instructs the speech recognizer on how to process the audio content.
|
6015
6822
|
class GoogleCloudDialogflowCxV3beta1InputAudioConfig
|
6016
6823
|
include Google::Apis::Core::Hashable
|
@@ -7181,6 +7988,18 @@ module Google
|
|
7181
7988
|
class GoogleCloudDialogflowCxV3beta1Page
|
7182
7989
|
include Google::Apis::Core::Hashable
|
7183
7990
|
|
7991
|
+
# Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
|
7992
|
+
# Settings exposed at lower level overrides the settings exposed at higher level.
|
7993
|
+
# Overriding occurs at the sub-setting level. For example, the
|
7994
|
+
# playback_interruption_settings at fulfillment level only overrides the
|
7995
|
+
# playback_interruption_settings at the agent level, leaving other settings at
|
7996
|
+
# the agent level unchanged. DTMF settings does not override each other. DTMF
|
7997
|
+
# settings set at different levels define DTMF detections running in parallel.
|
7998
|
+
# Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
|
7999
|
+
# Corresponds to the JSON property `advancedSettings`
|
8000
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettings]
|
8001
|
+
attr_accessor :advanced_settings
|
8002
|
+
|
7184
8003
|
# Required. The human-readable name of the page, unique within the flow.
|
7185
8004
|
# Corresponds to the JSON property `displayName`
|
7186
8005
|
# @return [String]
|
@@ -7261,6 +8080,7 @@ module Google
|
|
7261
8080
|
|
7262
8081
|
# Update properties of this object
|
7263
8082
|
def update!(**args)
|
8083
|
+
@advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
|
7264
8084
|
@display_name = args[:display_name] if args.key?(:display_name)
|
7265
8085
|
@entry_fulfillment = args[:entry_fulfillment] if args.key?(:entry_fulfillment)
|
7266
8086
|
@event_handlers = args[:event_handlers] if args.key?(:event_handlers)
|
@@ -7572,6 +8392,18 @@ module Google
|
|
7572
8392
|
class GoogleCloudDialogflowCxV3beta1QueryResult
|
7573
8393
|
include Google::Apis::Core::Hashable
|
7574
8394
|
|
8395
|
+
# Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
|
8396
|
+
# Settings exposed at lower level overrides the settings exposed at higher level.
|
8397
|
+
# Overriding occurs at the sub-setting level. For example, the
|
8398
|
+
# playback_interruption_settings at fulfillment level only overrides the
|
8399
|
+
# playback_interruption_settings at the agent level, leaving other settings at
|
8400
|
+
# the agent level unchanged. DTMF settings does not override each other. DTMF
|
8401
|
+
# settings set at different levels define DTMF detections running in parallel.
|
8402
|
+
# Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
|
8403
|
+
# Corresponds to the JSON property `advancedSettings`
|
8404
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1AdvancedSettings]
|
8405
|
+
attr_accessor :advanced_settings
|
8406
|
+
|
7575
8407
|
# A Dialogflow CX conversation (session) can be described and visualized as a
|
7576
8408
|
# state machine. The states of a CX session are represented by pages. For each
|
7577
8409
|
# flow, you define many pages, where your combined pages can handle a complete
|
@@ -7708,6 +8540,7 @@ module Google
|
|
7708
8540
|
|
7709
8541
|
# Update properties of this object
|
7710
8542
|
def update!(**args)
|
8543
|
+
@advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
|
7711
8544
|
@current_page = args[:current_page] if args.key?(:current_page)
|
7712
8545
|
@diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
|
7713
8546
|
@dtmf = args[:dtmf] if args.key?(:dtmf)
|
@@ -8406,6 +9239,50 @@ module Google
|
|
8406
9239
|
end
|
8407
9240
|
end
|
8408
9241
|
|
9242
|
+
# Settings for Generative Safety.
|
9243
|
+
class GoogleCloudDialogflowCxV3beta1SafetySettings
|
9244
|
+
include Google::Apis::Core::Hashable
|
9245
|
+
|
9246
|
+
# Banned phrases for generated text.
|
9247
|
+
# Corresponds to the JSON property `bannedPhrases`
|
9248
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase>]
|
9249
|
+
attr_accessor :banned_phrases
|
9250
|
+
|
9251
|
+
def initialize(**args)
|
9252
|
+
update!(**args)
|
9253
|
+
end
|
9254
|
+
|
9255
|
+
# Update properties of this object
|
9256
|
+
def update!(**args)
|
9257
|
+
@banned_phrases = args[:banned_phrases] if args.key?(:banned_phrases)
|
9258
|
+
end
|
9259
|
+
end
|
9260
|
+
|
9261
|
+
# Text input which can be used for prompt or banned phrases.
|
9262
|
+
class GoogleCloudDialogflowCxV3beta1SafetySettingsPhrase
|
9263
|
+
include Google::Apis::Core::Hashable
|
9264
|
+
|
9265
|
+
# Required. Language code of the phrase.
|
9266
|
+
# Corresponds to the JSON property `languageCode`
|
9267
|
+
# @return [String]
|
9268
|
+
attr_accessor :language_code
|
9269
|
+
|
9270
|
+
# Required. Text input which can be used for prompt or banned phrases.
|
9271
|
+
# Corresponds to the JSON property `text`
|
9272
|
+
# @return [String]
|
9273
|
+
attr_accessor :text
|
9274
|
+
|
9275
|
+
def initialize(**args)
|
9276
|
+
update!(**args)
|
9277
|
+
end
|
9278
|
+
|
9279
|
+
# Update properties of this object
|
9280
|
+
def update!(**args)
|
9281
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
9282
|
+
@text = args[:text] if args.key?(:text)
|
9283
|
+
end
|
9284
|
+
end
|
9285
|
+
|
8409
9286
|
# Represents the settings related to security issues, such as data redaction and
|
8410
9287
|
# data retention. It may take hours for updates on the settings to propagate to
|
8411
9288
|
# all the related components and take effect.
|
@@ -8479,6 +9356,11 @@ module Google
|
|
8479
9356
|
# @return [String]
|
8480
9357
|
attr_accessor :redaction_strategy
|
8481
9358
|
|
9359
|
+
# Specifies the retention behavior defined by SecuritySettings.RetentionStrategy.
|
9360
|
+
# Corresponds to the JSON property `retentionStrategy`
|
9361
|
+
# @return [String]
|
9362
|
+
attr_accessor :retention_strategy
|
9363
|
+
|
8482
9364
|
# Retains data in interaction logging for the specified number of days. This
|
8483
9365
|
# does not apply to Cloud logging, which is owned by the user - not Dialogflow.
|
8484
9366
|
# User must set a value lower than Dialogflow's default 365d TTL (30 days for
|
@@ -8504,6 +9386,7 @@ module Google
|
|
8504
9386
|
@purge_data_types = args[:purge_data_types] if args.key?(:purge_data_types)
|
8505
9387
|
@redaction_scope = args[:redaction_scope] if args.key?(:redaction_scope)
|
8506
9388
|
@redaction_strategy = args[:redaction_strategy] if args.key?(:redaction_strategy)
|
9389
|
+
@retention_strategy = args[:retention_strategy] if args.key?(:retention_strategy)
|
8507
9390
|
@retention_window_days = args[:retention_window_days] if args.key?(:retention_window_days)
|
8508
9391
|
end
|
8509
9392
|
end
|