google-apis-dialogflow_v3 0.6.0 → 0.11.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 +21 -0
- data/lib/google/apis/dialogflow_v3.rb +1 -1
- data/lib/google/apis/dialogflow_v3/classes.rb +1225 -92
- data/lib/google/apis/dialogflow_v3/gem_version.rb +3 -3
- data/lib/google/apis/dialogflow_v3/representations.rb +453 -0
- data/lib/google/apis/dialogflow_v3/service.rb +197 -69
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 324a873d4add1208d2220cfb45b95f54af2f53eb0f684a8a4e4bba5ca2511527
|
4
|
+
data.tar.gz: 47515d2b6938a5ab1d8494b9fc8eb9e6108a368519b3003b77d41eb986efa531
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa77c196c8f06b95d5b7705d6cdda43e2cc36b58e619b456ed5321349a3a5ff6c582318e244269e7fc52105ce4565ddd3edec97d4de8cae4ab3470eccee9bba2
|
7
|
+
data.tar.gz: 393daa268a74ef290b76c88fb500e036c88c7a2754e49fc43dda83aab09e8e7745df06c7831f08865be058206c07397401d93ca3e487bc1b650f549c81199d17
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-dialogflow_v3
|
2
2
|
|
3
|
+
### v0.11.0 (2021-05-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210510
|
6
|
+
|
7
|
+
### v0.10.0 (2021-04-01)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210329
|
10
|
+
|
11
|
+
### v0.9.0 (2021-03-23)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210320
|
14
|
+
|
15
|
+
### v0.8.0 (2021-03-16)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210314
|
18
|
+
|
19
|
+
### v0.7.0 (2021-03-09)
|
20
|
+
|
21
|
+
* Regenerated from discovery document revision 20210307
|
22
|
+
* Regenerated using generator version 0.2.0
|
23
|
+
|
3
24
|
### v0.6.0 (2021-03-04)
|
4
25
|
|
5
26
|
* Unspecified changes
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V3'
|
32
32
|
|
33
|
-
#
|
33
|
+
# See, edit, configure, and delete your Google Cloud Platform data
|
34
34
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
35
35
|
|
36
36
|
# View, manage and query your Dialogflow agents
|
@@ -93,6 +93,12 @@ module Google
|
|
93
93
|
# @return [String]
|
94
94
|
attr_accessor :start_flow
|
95
95
|
|
96
|
+
# The list of all languages supported by the agent (except for the `
|
97
|
+
# default_language_code`).
|
98
|
+
# Corresponds to the JSON property `supportedLanguageCodes`
|
99
|
+
# @return [Array<String>]
|
100
|
+
attr_accessor :supported_language_codes
|
101
|
+
|
96
102
|
# Required. The time zone of the agent from the [time zone database](https://www.
|
97
103
|
# iana.org/time-zones), e.g., America/New_York, Europe/Paris.
|
98
104
|
# Corresponds to the JSON property `timeZone`
|
@@ -115,6 +121,7 @@ module Google
|
|
115
121
|
@security_settings = args[:security_settings] if args.key?(:security_settings)
|
116
122
|
@speech_to_text_settings = args[:speech_to_text_settings] if args.key?(:speech_to_text_settings)
|
117
123
|
@start_flow = args[:start_flow] if args.key?(:start_flow)
|
124
|
+
@supported_language_codes = args[:supported_language_codes] if args.key?(:supported_language_codes)
|
118
125
|
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
119
126
|
end
|
120
127
|
end
|
@@ -920,7 +927,9 @@ module Google
|
|
920
927
|
# @return [String]
|
921
928
|
attr_accessor :end_time
|
922
929
|
|
923
|
-
# Maximum number of days to run the experiment.
|
930
|
+
# Maximum number of days to run the experiment/rollout. If auto-rollout is not
|
931
|
+
# enabled, default value and maximum will be 30 days. If auto-rollout is enabled,
|
932
|
+
# default value and maximum will be 6 days.
|
924
933
|
# Corresponds to the JSON property `experimentLength`
|
925
934
|
# @return [String]
|
926
935
|
attr_accessor :experiment_length
|
@@ -1164,6 +1173,12 @@ module Google
|
|
1164
1173
|
# @return [String]
|
1165
1174
|
attr_accessor :agent_uri
|
1166
1175
|
|
1176
|
+
# Optional. Environment name. If not set, draft environment is assumed. Format: `
|
1177
|
+
# projects//locations//agents//environments/`.
|
1178
|
+
# Corresponds to the JSON property `environment`
|
1179
|
+
# @return [String]
|
1180
|
+
attr_accessor :environment
|
1181
|
+
|
1167
1182
|
def initialize(**args)
|
1168
1183
|
update!(**args)
|
1169
1184
|
end
|
@@ -1171,6 +1186,7 @@ module Google
|
|
1171
1186
|
# Update properties of this object
|
1172
1187
|
def update!(**args)
|
1173
1188
|
@agent_uri = args[:agent_uri] if args.key?(:agent_uri)
|
1189
|
+
@environment = args[:environment] if args.key?(:environment)
|
1174
1190
|
end
|
1175
1191
|
end
|
1176
1192
|
|
@@ -1201,6 +1217,61 @@ module Google
|
|
1201
1217
|
end
|
1202
1218
|
end
|
1203
1219
|
|
1220
|
+
# The request message for Flows.ExportFlow.
|
1221
|
+
class GoogleCloudDialogflowCxV3ExportFlowRequest
|
1222
|
+
include Google::Apis::Core::Hashable
|
1223
|
+
|
1224
|
+
# Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
|
1225
|
+
# URI to export the flow to. The format of this URI must be `gs:///`. If left
|
1226
|
+
# unspecified, the serialized flow is returned inline.
|
1227
|
+
# Corresponds to the JSON property `flowUri`
|
1228
|
+
# @return [String]
|
1229
|
+
attr_accessor :flow_uri
|
1230
|
+
|
1231
|
+
# Optional. Whether to export flows referenced by the specified flow.
|
1232
|
+
# Corresponds to the JSON property `includeReferencedFlows`
|
1233
|
+
# @return [Boolean]
|
1234
|
+
attr_accessor :include_referenced_flows
|
1235
|
+
alias_method :include_referenced_flows?, :include_referenced_flows
|
1236
|
+
|
1237
|
+
def initialize(**args)
|
1238
|
+
update!(**args)
|
1239
|
+
end
|
1240
|
+
|
1241
|
+
# Update properties of this object
|
1242
|
+
def update!(**args)
|
1243
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
1244
|
+
@include_referenced_flows = args[:include_referenced_flows] if args.key?(:include_referenced_flows)
|
1245
|
+
end
|
1246
|
+
end
|
1247
|
+
|
1248
|
+
# The response message for Flows.ExportFlow.
|
1249
|
+
class GoogleCloudDialogflowCxV3ExportFlowResponse
|
1250
|
+
include Google::Apis::Core::Hashable
|
1251
|
+
|
1252
|
+
# Uncompressed raw byte content for flow.
|
1253
|
+
# Corresponds to the JSON property `flowContent`
|
1254
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1255
|
+
# @return [String]
|
1256
|
+
attr_accessor :flow_content
|
1257
|
+
|
1258
|
+
# The URI to a file containing the exported flow. This field is populated only
|
1259
|
+
# if `flow_uri` is specified in ExportFlowRequest.
|
1260
|
+
# Corresponds to the JSON property `flowUri`
|
1261
|
+
# @return [String]
|
1262
|
+
attr_accessor :flow_uri
|
1263
|
+
|
1264
|
+
def initialize(**args)
|
1265
|
+
update!(**args)
|
1266
|
+
end
|
1267
|
+
|
1268
|
+
# Update properties of this object
|
1269
|
+
def update!(**args)
|
1270
|
+
@flow_content = args[:flow_content] if args.key?(:flow_content)
|
1271
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
1272
|
+
end
|
1273
|
+
end
|
1274
|
+
|
1204
1275
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
1205
1276
|
class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
|
1206
1277
|
include Google::Apis::Core::Hashable
|
@@ -1325,6 +1396,15 @@ module Google
|
|
1325
1396
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings]
|
1326
1397
|
attr_accessor :nlu_settings
|
1327
1398
|
|
1399
|
+
# A flow's transition route group serve two purposes: * They are responsible for
|
1400
|
+
# matching the user's first utterances in the flow. * They are inherited by
|
1401
|
+
# every page's transition route groups. Transition route groups defined in the
|
1402
|
+
# page have higher priority than those defined in the flow. Format:`projects//
|
1403
|
+
# locations//agents//flows//transitionRouteGroups/`.
|
1404
|
+
# Corresponds to the JSON property `transitionRouteGroups`
|
1405
|
+
# @return [Array<String>]
|
1406
|
+
attr_accessor :transition_route_groups
|
1407
|
+
|
1328
1408
|
# A flow's transition routes serve two purposes: * They are responsible for
|
1329
1409
|
# matching the user's first utterances in the flow. * They are inherited by
|
1330
1410
|
# every page's transition routes and can support use cases such as the user
|
@@ -1349,6 +1429,7 @@ module Google
|
|
1349
1429
|
@event_handlers = args[:event_handlers] if args.key?(:event_handlers)
|
1350
1430
|
@name = args[:name] if args.key?(:name)
|
1351
1431
|
@nlu_settings = args[:nlu_settings] if args.key?(:nlu_settings)
|
1432
|
+
@transition_route_groups = args[:transition_route_groups] if args.key?(:transition_route_groups)
|
1352
1433
|
@transition_routes = args[:transition_routes] if args.key?(:transition_routes)
|
1353
1434
|
end
|
1354
1435
|
end
|
@@ -1820,6 +1901,59 @@ module Google
|
|
1820
1901
|
end
|
1821
1902
|
end
|
1822
1903
|
|
1904
|
+
# The request message for Flows.ImportFlow.
|
1905
|
+
class GoogleCloudDialogflowCxV3ImportFlowRequest
|
1906
|
+
include Google::Apis::Core::Hashable
|
1907
|
+
|
1908
|
+
# Uncompressed raw byte content for flow.
|
1909
|
+
# Corresponds to the JSON property `flowContent`
|
1910
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
1911
|
+
# @return [String]
|
1912
|
+
attr_accessor :flow_content
|
1913
|
+
|
1914
|
+
# The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
|
1915
|
+
# import flow from. The format of this URI must be `gs:///`.
|
1916
|
+
# Corresponds to the JSON property `flowUri`
|
1917
|
+
# @return [String]
|
1918
|
+
attr_accessor :flow_uri
|
1919
|
+
|
1920
|
+
# Flow import mode. If not specified, `KEEP` is assumed.
|
1921
|
+
# Corresponds to the JSON property `importOption`
|
1922
|
+
# @return [String]
|
1923
|
+
attr_accessor :import_option
|
1924
|
+
|
1925
|
+
def initialize(**args)
|
1926
|
+
update!(**args)
|
1927
|
+
end
|
1928
|
+
|
1929
|
+
# Update properties of this object
|
1930
|
+
def update!(**args)
|
1931
|
+
@flow_content = args[:flow_content] if args.key?(:flow_content)
|
1932
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
1933
|
+
@import_option = args[:import_option] if args.key?(:import_option)
|
1934
|
+
end
|
1935
|
+
end
|
1936
|
+
|
1937
|
+
# The response message for Flows.ImportFlow.
|
1938
|
+
class GoogleCloudDialogflowCxV3ImportFlowResponse
|
1939
|
+
include Google::Apis::Core::Hashable
|
1940
|
+
|
1941
|
+
# The unique identifier of the new flow. Format: `projects//locations//agents//
|
1942
|
+
# flows/`.
|
1943
|
+
# Corresponds to the JSON property `flow`
|
1944
|
+
# @return [String]
|
1945
|
+
attr_accessor :flow
|
1946
|
+
|
1947
|
+
def initialize(**args)
|
1948
|
+
update!(**args)
|
1949
|
+
end
|
1950
|
+
|
1951
|
+
# Update properties of this object
|
1952
|
+
def update!(**args)
|
1953
|
+
@flow = args[:flow] if args.key?(:flow)
|
1954
|
+
end
|
1955
|
+
end
|
1956
|
+
|
1823
1957
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
1824
1958
|
class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
|
1825
1959
|
include Google::Apis::Core::Hashable
|
@@ -1970,8 +2104,8 @@ module Google
|
|
1970
2104
|
class GoogleCloudDialogflowCxV3Intent
|
1971
2105
|
include Google::Apis::Core::Hashable
|
1972
2106
|
|
1973
|
-
#
|
1974
|
-
#
|
2107
|
+
# Human readable description for better understanding an intent like its scope,
|
2108
|
+
# content, result etc. Maximum character limit: 140 characters.
|
1975
2109
|
# Corresponds to the JSON property `description`
|
1976
2110
|
# @return [String]
|
1977
2111
|
attr_accessor :description
|
@@ -1991,14 +2125,14 @@ module Google
|
|
1991
2125
|
attr_accessor :is_fallback
|
1992
2126
|
alias_method :is_fallback?, :is_fallback
|
1993
2127
|
|
1994
|
-
#
|
1995
|
-
#
|
1996
|
-
#
|
1997
|
-
#
|
1998
|
-
#
|
1999
|
-
#
|
2000
|
-
#
|
2001
|
-
#
|
2128
|
+
# The key/value metadata to label an intent. Labels can contain lowercase
|
2129
|
+
# letters, digits and the symbols '-' and '_'. International characters are
|
2130
|
+
# allowed, including letters from unicase alphabets. Keys must start with a
|
2131
|
+
# letter. Keys and values can be no longer than 63 characters and no more than
|
2132
|
+
# 128 bytes. Prefix "sys." is reserved for Dialogflow defined labels. Currently
|
2133
|
+
# allowed Dialogflow defined labels include: * sys.head * sys.contextual The
|
2134
|
+
# above labels do not require value. "sys.head" means the intent is a head
|
2135
|
+
# intent. "sys.contextual" means the intent is a contextual intent.
|
2002
2136
|
# Corresponds to the JSON property `labels`
|
2003
2137
|
# @return [Hash<String,String>]
|
2004
2138
|
attr_accessor :labels
|
@@ -2618,8 +2752,8 @@ module Google
|
|
2618
2752
|
class GoogleCloudDialogflowCxV3LoadVersionRequest
|
2619
2753
|
include Google::Apis::Core::Hashable
|
2620
2754
|
|
2621
|
-
# This field is used to prevent accidental overwrite of other agent resources
|
2622
|
-
#
|
2755
|
+
# This field is used to prevent accidental overwrite of other agent resources,
|
2756
|
+
# which can potentially impact other flow's behavior. If `
|
2623
2757
|
# allow_override_agent_resources` is false, conflicted agent-level resources
|
2624
2758
|
# will not be overridden (i.e. intents, entities, webhooks).
|
2625
2759
|
# Corresponds to the JSON property `allowOverrideAgentResources`
|
@@ -2791,7 +2925,7 @@ module Google
|
|
2791
2925
|
attr_accessor :text
|
2792
2926
|
|
2793
2927
|
# If natural language speech audio was provided as input, this field will
|
2794
|
-
# contain the
|
2928
|
+
# contain the transcript for the audio.
|
2795
2929
|
# Corresponds to the JSON property `transcript`
|
2796
2930
|
# @return [String]
|
2797
2931
|
attr_accessor :transcript
|
@@ -2803,7 +2937,7 @@ module Google
|
|
2803
2937
|
attr_accessor :trigger_event
|
2804
2938
|
|
2805
2939
|
# If an intent was provided as input, this field will contain a copy of the
|
2806
|
-
# intent identifier.
|
2940
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
2807
2941
|
# Corresponds to the JSON property `triggerIntent`
|
2808
2942
|
# @return [String]
|
2809
2943
|
attr_accessor :trigger_intent
|
@@ -3156,6 +3290,16 @@ module Google
|
|
3156
3290
|
attr_accessor :analyze_query_text_sentiment
|
3157
3291
|
alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment
|
3158
3292
|
|
3293
|
+
# The unique identifier of the page to override the current page in the session.
|
3294
|
+
# Format: `projects//locations//agents//pages/`. If `current_page` is specified,
|
3295
|
+
# the previous state of the session will be ignored by Dialogflow, including the
|
3296
|
+
# previous page and the previous session parameters. In most cases, current_page
|
3297
|
+
# and parameters should be configured together to direct a session to a specific
|
3298
|
+
# state.
|
3299
|
+
# Corresponds to the JSON property `currentPage`
|
3300
|
+
# @return [String]
|
3301
|
+
attr_accessor :current_page
|
3302
|
+
|
3159
3303
|
# Whether to disable webhook calls for this request.
|
3160
3304
|
# Corresponds to the JSON property `disableWebhook`
|
3161
3305
|
# @return [Boolean]
|
@@ -3164,8 +3308,8 @@ module Google
|
|
3164
3308
|
|
3165
3309
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
3166
3310
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
3167
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
3168
|
-
# within normalized ranges.
|
3311
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
3312
|
+
# must be within normalized ranges.
|
3169
3313
|
# Corresponds to the JSON property `geoLocation`
|
3170
3314
|
# @return [Google::Apis::DialogflowV3::GoogleTypeLatLng]
|
3171
3315
|
attr_accessor :geo_location
|
@@ -3185,7 +3329,10 @@ module Google
|
|
3185
3329
|
attr_accessor :parameters
|
3186
3330
|
|
3187
3331
|
# This field can be used to pass custom data into the webhook associated with
|
3188
|
-
# the agent. Arbitrary JSON objects are supported.
|
3332
|
+
# the agent. Arbitrary JSON objects are supported. Some integrations that query
|
3333
|
+
# a Dialogflow agent may provide additional information in the payload. In
|
3334
|
+
# particular, for the Dialogflow Phone Gateway integration, this field has the
|
3335
|
+
# form: ``` ` "telephony": ` "caller_id": "+18558363987" ` ` ```
|
3189
3336
|
# Corresponds to the JSON property `payload`
|
3190
3337
|
# @return [Hash<String,Object>]
|
3191
3338
|
attr_accessor :payload
|
@@ -3223,6 +3370,7 @@ module Google
|
|
3223
3370
|
# Update properties of this object
|
3224
3371
|
def update!(**args)
|
3225
3372
|
@analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
|
3373
|
+
@current_page = args[:current_page] if args.key?(:current_page)
|
3226
3374
|
@disable_webhook = args[:disable_webhook] if args.key?(:disable_webhook)
|
3227
3375
|
@geo_location = args[:geo_location] if args.key?(:geo_location)
|
3228
3376
|
@parameters = args[:parameters] if args.key?(:parameters)
|
@@ -3323,7 +3471,7 @@ module Google
|
|
3323
3471
|
attr_accessor :text
|
3324
3472
|
|
3325
3473
|
# If natural language speech audio was provided as input, this field will
|
3326
|
-
# contain the
|
3474
|
+
# contain the transcript for the audio.
|
3327
3475
|
# Corresponds to the JSON property `transcript`
|
3328
3476
|
# @return [String]
|
3329
3477
|
attr_accessor :transcript
|
@@ -3335,7 +3483,7 @@ module Google
|
|
3335
3483
|
attr_accessor :trigger_event
|
3336
3484
|
|
3337
3485
|
# If an intent was provided as input, this field will contain a copy of the
|
3338
|
-
# intent identifier.
|
3486
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
3339
3487
|
# Corresponds to the JSON property `triggerIntent`
|
3340
3488
|
# @return [String]
|
3341
3489
|
attr_accessor :trigger_intent
|
@@ -3742,6 +3890,11 @@ module Google
|
|
3742
3890
|
# @return [String]
|
3743
3891
|
attr_accessor :agent_uri
|
3744
3892
|
|
3893
|
+
# Agent restore mode. If not specified, `KEEP` is assumed.
|
3894
|
+
# Corresponds to the JSON property `restoreOption`
|
3895
|
+
# @return [String]
|
3896
|
+
attr_accessor :restore_option
|
3897
|
+
|
3745
3898
|
def initialize(**args)
|
3746
3899
|
update!(**args)
|
3747
3900
|
end
|
@@ -3750,6 +3903,7 @@ module Google
|
|
3750
3903
|
def update!(**args)
|
3751
3904
|
@agent_content = args[:agent_content] if args.key?(:agent_content)
|
3752
3905
|
@agent_uri = args[:agent_uri] if args.key?(:agent_uri)
|
3906
|
+
@restore_option = args[:restore_option] if args.key?(:restore_option)
|
3753
3907
|
end
|
3754
3908
|
end
|
3755
3909
|
|
@@ -4968,6 +5122,12 @@ module Google
|
|
4968
5122
|
# @return [String]
|
4969
5123
|
attr_accessor :name
|
4970
5124
|
|
5125
|
+
# Represents configuration for a [Service Directory](https://cloud.google.com/
|
5126
|
+
# service-directory) service.
|
5127
|
+
# Corresponds to the JSON property `serviceDirectory`
|
5128
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig]
|
5129
|
+
attr_accessor :service_directory
|
5130
|
+
|
4971
5131
|
# Webhook execution timeout. Execution is considered failed if Dialogflow doesn'
|
4972
5132
|
# t receive a response from webhook at the end of the timeout period. Defaults
|
4973
5133
|
# to 5 seconds, maximum allowed timeout is 30 seconds.
|
@@ -4985,6 +5145,7 @@ module Google
|
|
4985
5145
|
@display_name = args[:display_name] if args.key?(:display_name)
|
4986
5146
|
@generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
|
4987
5147
|
@name = args[:name] if args.key?(:name)
|
5148
|
+
@service_directory = args[:service_directory] if args.key?(:service_directory)
|
4988
5149
|
@timeout = args[:timeout] if args.key?(:timeout)
|
4989
5150
|
end
|
4990
5151
|
end
|
@@ -5027,7 +5188,8 @@ module Google
|
|
5027
5188
|
end
|
5028
5189
|
end
|
5029
5190
|
|
5030
|
-
# The request message for a webhook call.
|
5191
|
+
# The request message for a webhook call. The request is sent as a JSON object
|
5192
|
+
# and the field names will be presented in camel cases.
|
5031
5193
|
class GoogleCloudDialogflowCxV3WebhookRequest
|
5032
5194
|
include Google::Apis::Core::Hashable
|
5033
5195
|
|
@@ -5047,6 +5209,11 @@ module Google
|
|
5047
5209
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo]
|
5048
5210
|
attr_accessor :intent_info
|
5049
5211
|
|
5212
|
+
# The language code specified in the original request.
|
5213
|
+
# Corresponds to the JSON property `languageCode`
|
5214
|
+
# @return [String]
|
5215
|
+
attr_accessor :language_code
|
5216
|
+
|
5050
5217
|
# The list of rich message responses to present to the user. Webhook can choose
|
5051
5218
|
# to append or replace this list in WebhookResponse.fulfillment_response;
|
5052
5219
|
# Corresponds to the JSON property `messages`
|
@@ -5073,6 +5240,30 @@ module Google
|
|
5073
5240
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo]
|
5074
5241
|
attr_accessor :session_info
|
5075
5242
|
|
5243
|
+
# If natural language text was provided as input, this field will contain a copy
|
5244
|
+
# of the text.
|
5245
|
+
# Corresponds to the JSON property `text`
|
5246
|
+
# @return [String]
|
5247
|
+
attr_accessor :text
|
5248
|
+
|
5249
|
+
# If natural language speech audio was provided as input, this field will
|
5250
|
+
# contain the transcript for the audio.
|
5251
|
+
# Corresponds to the JSON property `transcript`
|
5252
|
+
# @return [String]
|
5253
|
+
attr_accessor :transcript
|
5254
|
+
|
5255
|
+
# If an event was provided as input, this field will contain the name of the
|
5256
|
+
# event.
|
5257
|
+
# Corresponds to the JSON property `triggerEvent`
|
5258
|
+
# @return [String]
|
5259
|
+
attr_accessor :trigger_event
|
5260
|
+
|
5261
|
+
# If an intent was provided as input, this field will contain a copy of the
|
5262
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
5263
|
+
# Corresponds to the JSON property `triggerIntent`
|
5264
|
+
# @return [String]
|
5265
|
+
attr_accessor :trigger_intent
|
5266
|
+
|
5076
5267
|
def initialize(**args)
|
5077
5268
|
update!(**args)
|
5078
5269
|
end
|
@@ -5082,11 +5273,16 @@ module Google
|
|
5082
5273
|
@detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
|
5083
5274
|
@fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
|
5084
5275
|
@intent_info = args[:intent_info] if args.key?(:intent_info)
|
5276
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
5085
5277
|
@messages = args[:messages] if args.key?(:messages)
|
5086
5278
|
@page_info = args[:page_info] if args.key?(:page_info)
|
5087
5279
|
@payload = args[:payload] if args.key?(:payload)
|
5088
5280
|
@sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
|
5089
5281
|
@session_info = args[:session_info] if args.key?(:session_info)
|
5282
|
+
@text = args[:text] if args.key?(:text)
|
5283
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
5284
|
+
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
5285
|
+
@trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
|
5090
5286
|
end
|
5091
5287
|
end
|
5092
5288
|
|
@@ -5279,6 +5475,35 @@ module Google
|
|
5279
5475
|
end
|
5280
5476
|
end
|
5281
5477
|
|
5478
|
+
# Represents configuration for a [Service Directory](https://cloud.google.com/
|
5479
|
+
# service-directory) service.
|
5480
|
+
class GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
|
5481
|
+
include Google::Apis::Core::Hashable
|
5482
|
+
|
5483
|
+
# Represents configuration for a generic web service.
|
5484
|
+
# Corresponds to the JSON property `genericWebService`
|
5485
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebService]
|
5486
|
+
attr_accessor :generic_web_service
|
5487
|
+
|
5488
|
+
# Required. The name of [Service Directory](https://cloud.google.com/service-
|
5489
|
+
# directory) service. Format: `projects//locations//namespaces//services/`. `
|
5490
|
+
# Location ID` of the service directory must be the same as the location of the
|
5491
|
+
# agent.
|
5492
|
+
# Corresponds to the JSON property `service`
|
5493
|
+
# @return [String]
|
5494
|
+
attr_accessor :service
|
5495
|
+
|
5496
|
+
def initialize(**args)
|
5497
|
+
update!(**args)
|
5498
|
+
end
|
5499
|
+
|
5500
|
+
# Update properties of this object
|
5501
|
+
def update!(**args)
|
5502
|
+
@generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
|
5503
|
+
@service = args[:service] if args.key?(:service)
|
5504
|
+
end
|
5505
|
+
end
|
5506
|
+
|
5282
5507
|
# Represents the natural speech audio to be processed.
|
5283
5508
|
class GoogleCloudDialogflowCxV3beta1AudioInput
|
5284
5509
|
include Google::Apis::Core::Hashable
|
@@ -5672,6 +5897,33 @@ module Google
|
|
5672
5897
|
end
|
5673
5898
|
end
|
5674
5899
|
|
5900
|
+
# The response message for Flows.ExportFlow.
|
5901
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
|
5902
|
+
include Google::Apis::Core::Hashable
|
5903
|
+
|
5904
|
+
# Uncompressed raw byte content for flow.
|
5905
|
+
# Corresponds to the JSON property `flowContent`
|
5906
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
5907
|
+
# @return [String]
|
5908
|
+
attr_accessor :flow_content
|
5909
|
+
|
5910
|
+
# The URI to a file containing the exported flow. This field is populated only
|
5911
|
+
# if `flow_uri` is specified in ExportFlowRequest.
|
5912
|
+
# Corresponds to the JSON property `flowUri`
|
5913
|
+
# @return [String]
|
5914
|
+
attr_accessor :flow_uri
|
5915
|
+
|
5916
|
+
def initialize(**args)
|
5917
|
+
update!(**args)
|
5918
|
+
end
|
5919
|
+
|
5920
|
+
# Update properties of this object
|
5921
|
+
def update!(**args)
|
5922
|
+
@flow_content = args[:flow_content] if args.key?(:flow_content)
|
5923
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
5924
|
+
end
|
5925
|
+
end
|
5926
|
+
|
5675
5927
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
5676
5928
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
5677
5929
|
include Google::Apis::Core::Hashable
|
@@ -6070,6 +6322,26 @@ module Google
|
|
6070
6322
|
end
|
6071
6323
|
end
|
6072
6324
|
|
6325
|
+
# The response message for Flows.ImportFlow.
|
6326
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
|
6327
|
+
include Google::Apis::Core::Hashable
|
6328
|
+
|
6329
|
+
# The unique identifier of the new flow. Format: `projects//locations//agents//
|
6330
|
+
# flows/`.
|
6331
|
+
# Corresponds to the JSON property `flow`
|
6332
|
+
# @return [String]
|
6333
|
+
attr_accessor :flow
|
6334
|
+
|
6335
|
+
def initialize(**args)
|
6336
|
+
update!(**args)
|
6337
|
+
end
|
6338
|
+
|
6339
|
+
# Update properties of this object
|
6340
|
+
def update!(**args)
|
6341
|
+
@flow = args[:flow] if args.key?(:flow)
|
6342
|
+
end
|
6343
|
+
end
|
6344
|
+
|
6073
6345
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
6074
6346
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
6075
6347
|
include Google::Apis::Core::Hashable
|
@@ -6193,8 +6465,8 @@ module Google
|
|
6193
6465
|
class GoogleCloudDialogflowCxV3beta1Intent
|
6194
6466
|
include Google::Apis::Core::Hashable
|
6195
6467
|
|
6196
|
-
#
|
6197
|
-
#
|
6468
|
+
# Human readable description for better understanding an intent like its scope,
|
6469
|
+
# content, result etc. Maximum character limit: 140 characters.
|
6198
6470
|
# Corresponds to the JSON property `description`
|
6199
6471
|
# @return [String]
|
6200
6472
|
attr_accessor :description
|
@@ -6214,14 +6486,14 @@ module Google
|
|
6214
6486
|
attr_accessor :is_fallback
|
6215
6487
|
alias_method :is_fallback?, :is_fallback
|
6216
6488
|
|
6217
|
-
#
|
6218
|
-
#
|
6219
|
-
#
|
6220
|
-
#
|
6221
|
-
#
|
6222
|
-
#
|
6223
|
-
#
|
6224
|
-
#
|
6489
|
+
# The key/value metadata to label an intent. Labels can contain lowercase
|
6490
|
+
# letters, digits and the symbols '-' and '_'. International characters are
|
6491
|
+
# allowed, including letters from unicase alphabets. Keys must start with a
|
6492
|
+
# letter. Keys and values can be no longer than 63 characters and no more than
|
6493
|
+
# 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently
|
6494
|
+
# allowed Dialogflow defined labels include: * sys-head * sys-contextual The
|
6495
|
+
# above labels do not require value. "sys-head" means the intent is a head
|
6496
|
+
# intent. "sys-contextual" means the intent is a contextual intent.
|
6225
6497
|
# Corresponds to the JSON property `labels`
|
6226
6498
|
# @return [Hash<String,String>]
|
6227
6499
|
attr_accessor :labels
|
@@ -7385,7 +7657,8 @@ module Google
|
|
7385
7657
|
end
|
7386
7658
|
end
|
7387
7659
|
|
7388
|
-
# The request message for a webhook call.
|
7660
|
+
# The request message for a webhook call. The request is sent as a JSON object
|
7661
|
+
# and the field names will be presented in camel cases.
|
7389
7662
|
class GoogleCloudDialogflowCxV3beta1WebhookRequest
|
7390
7663
|
include Google::Apis::Core::Hashable
|
7391
7664
|
|
@@ -7405,6 +7678,11 @@ module Google
|
|
7405
7678
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]
|
7406
7679
|
attr_accessor :intent_info
|
7407
7680
|
|
7681
|
+
# The language code specified in the original request.
|
7682
|
+
# Corresponds to the JSON property `languageCode`
|
7683
|
+
# @return [String]
|
7684
|
+
attr_accessor :language_code
|
7685
|
+
|
7408
7686
|
# The list of rich message responses to present to the user. Webhook can choose
|
7409
7687
|
# to append or replace this list in WebhookResponse.fulfillment_response;
|
7410
7688
|
# Corresponds to the JSON property `messages`
|
@@ -7431,6 +7709,30 @@ module Google
|
|
7431
7709
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1SessionInfo]
|
7432
7710
|
attr_accessor :session_info
|
7433
7711
|
|
7712
|
+
# If natural language text was provided as input, this field will contain a copy
|
7713
|
+
# of the text.
|
7714
|
+
# Corresponds to the JSON property `text`
|
7715
|
+
# @return [String]
|
7716
|
+
attr_accessor :text
|
7717
|
+
|
7718
|
+
# If natural language speech audio was provided as input, this field will
|
7719
|
+
# contain the transcript for the audio.
|
7720
|
+
# Corresponds to the JSON property `transcript`
|
7721
|
+
# @return [String]
|
7722
|
+
attr_accessor :transcript
|
7723
|
+
|
7724
|
+
# If an event was provided as input, this field will contain the name of the
|
7725
|
+
# event.
|
7726
|
+
# Corresponds to the JSON property `triggerEvent`
|
7727
|
+
# @return [String]
|
7728
|
+
attr_accessor :trigger_event
|
7729
|
+
|
7730
|
+
# If an intent was provided as input, this field will contain a copy of the
|
7731
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
7732
|
+
# Corresponds to the JSON property `triggerIntent`
|
7733
|
+
# @return [String]
|
7734
|
+
attr_accessor :trigger_intent
|
7735
|
+
|
7434
7736
|
def initialize(**args)
|
7435
7737
|
update!(**args)
|
7436
7738
|
end
|
@@ -7440,11 +7742,16 @@ module Google
|
|
7440
7742
|
@detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
|
7441
7743
|
@fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
|
7442
7744
|
@intent_info = args[:intent_info] if args.key?(:intent_info)
|
7745
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
7443
7746
|
@messages = args[:messages] if args.key?(:messages)
|
7444
7747
|
@page_info = args[:page_info] if args.key?(:page_info)
|
7445
7748
|
@payload = args[:payload] if args.key?(:payload)
|
7446
7749
|
@sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
|
7447
7750
|
@session_info = args[:session_info] if args.key?(:session_info)
|
7751
|
+
@text = args[:text] if args.key?(:text)
|
7752
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
7753
|
+
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
7754
|
+
@trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
|
7448
7755
|
end
|
7449
7756
|
end
|
7450
7757
|
|
@@ -7675,6 +7982,59 @@ module Google
|
|
7675
7982
|
end
|
7676
7983
|
end
|
7677
7984
|
|
7985
|
+
# Represents article answer.
|
7986
|
+
class GoogleCloudDialogflowV2ArticleAnswer
|
7987
|
+
include Google::Apis::Core::Hashable
|
7988
|
+
|
7989
|
+
# The name of answer record, in the format of "projects//locations//
|
7990
|
+
# answerRecords/"
|
7991
|
+
# Corresponds to the JSON property `answerRecord`
|
7992
|
+
# @return [String]
|
7993
|
+
attr_accessor :answer_record
|
7994
|
+
|
7995
|
+
# Article match confidence. The system's confidence score that this article is a
|
7996
|
+
# good match for this conversation, as a value from 0.0 (completely uncertain)
|
7997
|
+
# to 1.0 (completely certain).
|
7998
|
+
# Corresponds to the JSON property `confidence`
|
7999
|
+
# @return [Float]
|
8000
|
+
attr_accessor :confidence
|
8001
|
+
|
8002
|
+
# A map that contains metadata about the answer and the document from which it
|
8003
|
+
# originates.
|
8004
|
+
# Corresponds to the JSON property `metadata`
|
8005
|
+
# @return [Hash<String,String>]
|
8006
|
+
attr_accessor :metadata
|
8007
|
+
|
8008
|
+
# Article snippets.
|
8009
|
+
# Corresponds to the JSON property `snippets`
|
8010
|
+
# @return [Array<String>]
|
8011
|
+
attr_accessor :snippets
|
8012
|
+
|
8013
|
+
# The article title.
|
8014
|
+
# Corresponds to the JSON property `title`
|
8015
|
+
# @return [String]
|
8016
|
+
attr_accessor :title
|
8017
|
+
|
8018
|
+
# The article URI.
|
8019
|
+
# Corresponds to the JSON property `uri`
|
8020
|
+
# @return [String]
|
8021
|
+
attr_accessor :uri
|
8022
|
+
|
8023
|
+
def initialize(**args)
|
8024
|
+
update!(**args)
|
8025
|
+
end
|
8026
|
+
|
8027
|
+
# Update properties of this object
|
8028
|
+
def update!(**args)
|
8029
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
8030
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
8031
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
8032
|
+
@snippets = args[:snippets] if args.key?(:snippets)
|
8033
|
+
@title = args[:title] if args.key?(:title)
|
8034
|
+
@uri = args[:uri] if args.key?(:uri)
|
8035
|
+
end
|
8036
|
+
end
|
8037
|
+
|
7678
8038
|
# The response message for EntityTypes.BatchUpdateEntityTypes.
|
7679
8039
|
class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
|
7680
8040
|
include Google::Apis::Core::Hashable
|
@@ -7982,24 +8342,112 @@ module Google
|
|
7982
8342
|
end
|
7983
8343
|
end
|
7984
8344
|
|
7985
|
-
#
|
7986
|
-
|
7987
|
-
# complete conversation. When an end-user writes or says something, referred to
|
7988
|
-
# as an end-user expression or end-user input, Dialogflow matches the end-user
|
7989
|
-
# input to the best intent in your agent. Matching an intent is also known as
|
7990
|
-
# intent classification. For more information, see the [intent guide](https://
|
7991
|
-
# cloud.google.com/dialogflow/docs/intents-overview).
|
7992
|
-
class GoogleCloudDialogflowV2Intent
|
8345
|
+
# Represents answer from "frequently asked questions".
|
8346
|
+
class GoogleCloudDialogflowV2FaqAnswer
|
7993
8347
|
include Google::Apis::Core::Hashable
|
7994
8348
|
|
7995
|
-
#
|
7996
|
-
#
|
7997
|
-
# Corresponds to the JSON property `action`
|
8349
|
+
# The piece of text from the `source` knowledge base document.
|
8350
|
+
# Corresponds to the JSON property `answer`
|
7998
8351
|
# @return [String]
|
7999
|
-
attr_accessor :
|
8352
|
+
attr_accessor :answer
|
8000
8353
|
|
8001
|
-
#
|
8002
|
-
#
|
8354
|
+
# The name of answer record, in the format of "projects//locations//
|
8355
|
+
# answerRecords/"
|
8356
|
+
# Corresponds to the JSON property `answerRecord`
|
8357
|
+
# @return [String]
|
8358
|
+
attr_accessor :answer_record
|
8359
|
+
|
8360
|
+
# The system's confidence score that this Knowledge answer is a good match for
|
8361
|
+
# this conversational query, range from 0.0 (completely uncertain) to 1.0 (
|
8362
|
+
# completely certain).
|
8363
|
+
# Corresponds to the JSON property `confidence`
|
8364
|
+
# @return [Float]
|
8365
|
+
attr_accessor :confidence
|
8366
|
+
|
8367
|
+
# A map that contains metadata about the answer and the document from which it
|
8368
|
+
# originates.
|
8369
|
+
# Corresponds to the JSON property `metadata`
|
8370
|
+
# @return [Hash<String,String>]
|
8371
|
+
attr_accessor :metadata
|
8372
|
+
|
8373
|
+
# The corresponding FAQ question.
|
8374
|
+
# Corresponds to the JSON property `question`
|
8375
|
+
# @return [String]
|
8376
|
+
attr_accessor :question
|
8377
|
+
|
8378
|
+
# Indicates which Knowledge Document this answer was extracted from. Format: `
|
8379
|
+
# projects//locations//agent/knowledgeBases//documents/`.
|
8380
|
+
# Corresponds to the JSON property `source`
|
8381
|
+
# @return [String]
|
8382
|
+
attr_accessor :source
|
8383
|
+
|
8384
|
+
def initialize(**args)
|
8385
|
+
update!(**args)
|
8386
|
+
end
|
8387
|
+
|
8388
|
+
# Update properties of this object
|
8389
|
+
def update!(**args)
|
8390
|
+
@answer = args[:answer] if args.key?(:answer)
|
8391
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
8392
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
8393
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
8394
|
+
@question = args[:question] if args.key?(:question)
|
8395
|
+
@source = args[:source] if args.key?(:source)
|
8396
|
+
end
|
8397
|
+
end
|
8398
|
+
|
8399
|
+
# Represents a notification sent to Cloud Pub/Sub subscribers for human agent
|
8400
|
+
# assistant events in a specific conversation.
|
8401
|
+
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
|
8402
|
+
include Google::Apis::Core::Hashable
|
8403
|
+
|
8404
|
+
# The conversation this notification refers to. Format: `projects//conversations/
|
8405
|
+
# `.
|
8406
|
+
# Corresponds to the JSON property `conversation`
|
8407
|
+
# @return [String]
|
8408
|
+
attr_accessor :conversation
|
8409
|
+
|
8410
|
+
# The participant that the suggestion is compiled for. Format: `projects//
|
8411
|
+
# conversations//participants/`. It will not be set in legacy workflow.
|
8412
|
+
# Corresponds to the JSON property `participant`
|
8413
|
+
# @return [String]
|
8414
|
+
attr_accessor :participant
|
8415
|
+
|
8416
|
+
# The suggestion results payload that this notification refers to.
|
8417
|
+
# Corresponds to the JSON property `suggestionResults`
|
8418
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2SuggestionResult>]
|
8419
|
+
attr_accessor :suggestion_results
|
8420
|
+
|
8421
|
+
def initialize(**args)
|
8422
|
+
update!(**args)
|
8423
|
+
end
|
8424
|
+
|
8425
|
+
# Update properties of this object
|
8426
|
+
def update!(**args)
|
8427
|
+
@conversation = args[:conversation] if args.key?(:conversation)
|
8428
|
+
@participant = args[:participant] if args.key?(:participant)
|
8429
|
+
@suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
|
8430
|
+
end
|
8431
|
+
end
|
8432
|
+
|
8433
|
+
# An intent categorizes an end-user's intention for one conversation turn. For
|
8434
|
+
# each agent, you define many intents, where your combined intents can handle a
|
8435
|
+
# complete conversation. When an end-user writes or says something, referred to
|
8436
|
+
# as an end-user expression or end-user input, Dialogflow matches the end-user
|
8437
|
+
# input to the best intent in your agent. Matching an intent is also known as
|
8438
|
+
# intent classification. For more information, see the [intent guide](https://
|
8439
|
+
# cloud.google.com/dialogflow/docs/intents-overview).
|
8440
|
+
class GoogleCloudDialogflowV2Intent
|
8441
|
+
include Google::Apis::Core::Hashable
|
8442
|
+
|
8443
|
+
# Optional. The name of the action associated with the intent. Note: The action
|
8444
|
+
# name must not contain whitespaces.
|
8445
|
+
# Corresponds to the JSON property `action`
|
8446
|
+
# @return [String]
|
8447
|
+
attr_accessor :action
|
8448
|
+
|
8449
|
+
# Optional. The list of platforms for which the first responses will be copied
|
8450
|
+
# from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
|
8003
8451
|
# Corresponds to the JSON property `defaultResponsePlatforms`
|
8004
8452
|
# @return [Array<String>]
|
8005
8453
|
attr_accessor :default_response_platforms
|
@@ -8009,6 +8457,14 @@ module Google
|
|
8009
8457
|
# @return [String]
|
8010
8458
|
attr_accessor :display_name
|
8011
8459
|
|
8460
|
+
# Optional. Indicates that this intent ends an interaction. Some integrations (e.
|
8461
|
+
# g., Actions on Google or Dialogflow phone gateway) use this information to
|
8462
|
+
# close interaction with an end user. Default is false.
|
8463
|
+
# Corresponds to the JSON property `endInteraction`
|
8464
|
+
# @return [Boolean]
|
8465
|
+
attr_accessor :end_interaction
|
8466
|
+
alias_method :end_interaction?, :end_interaction
|
8467
|
+
|
8012
8468
|
# Optional. The collection of event names that trigger the intent. If the
|
8013
8469
|
# collection of input contexts is not empty, all of the contexts must be present
|
8014
8470
|
# in the active user session for an event to trigger this intent. Event names
|
@@ -8035,6 +8491,14 @@ module Google
|
|
8035
8491
|
attr_accessor :is_fallback
|
8036
8492
|
alias_method :is_fallback?, :is_fallback
|
8037
8493
|
|
8494
|
+
# Optional. Indicates that a live agent should be brought in to handle the
|
8495
|
+
# interaction with the user. In most cases, when you set this flag to true, you
|
8496
|
+
# would also want to set end_interaction to true as well. Default is false.
|
8497
|
+
# Corresponds to the JSON property `liveAgentHandoff`
|
8498
|
+
# @return [Boolean]
|
8499
|
+
attr_accessor :live_agent_handoff
|
8500
|
+
alias_method :live_agent_handoff?, :live_agent_handoff
|
8501
|
+
|
8038
8502
|
# Optional. The collection of rich messages corresponding to the `Response`
|
8039
8503
|
# field in the Dialogflow console.
|
8040
8504
|
# Corresponds to the JSON property `messages`
|
@@ -8121,10 +8585,12 @@ module Google
|
|
8121
8585
|
@action = args[:action] if args.key?(:action)
|
8122
8586
|
@default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms)
|
8123
8587
|
@display_name = args[:display_name] if args.key?(:display_name)
|
8588
|
+
@end_interaction = args[:end_interaction] if args.key?(:end_interaction)
|
8124
8589
|
@events = args[:events] if args.key?(:events)
|
8125
8590
|
@followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
|
8126
8591
|
@input_context_names = args[:input_context_names] if args.key?(:input_context_names)
|
8127
8592
|
@is_fallback = args[:is_fallback] if args.key?(:is_fallback)
|
8593
|
+
@live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
|
8128
8594
|
@messages = args[:messages] if args.key?(:messages)
|
8129
8595
|
@ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
|
8130
8596
|
@name = args[:name] if args.key?(:name)
|
@@ -9213,6 +9679,25 @@ module Google
|
|
9213
9679
|
end
|
9214
9680
|
end
|
9215
9681
|
|
9682
|
+
# Metadata in google::longrunning::Operation for Knowledge operations.
|
9683
|
+
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
|
9684
|
+
include Google::Apis::Core::Hashable
|
9685
|
+
|
9686
|
+
# Output only. The current state of this operation.
|
9687
|
+
# Corresponds to the JSON property `state`
|
9688
|
+
# @return [String]
|
9689
|
+
attr_accessor :state
|
9690
|
+
|
9691
|
+
def initialize(**args)
|
9692
|
+
update!(**args)
|
9693
|
+
end
|
9694
|
+
|
9695
|
+
# Update properties of this object
|
9696
|
+
def update!(**args)
|
9697
|
+
@state = args[:state] if args.key?(:state)
|
9698
|
+
end
|
9699
|
+
end
|
9700
|
+
|
9216
9701
|
# Represents a message posted into a conversation.
|
9217
9702
|
class GoogleCloudDialogflowV2Message
|
9218
9703
|
include Google::Apis::Core::Hashable
|
@@ -9589,6 +10074,112 @@ module Google
|
|
9589
10074
|
end
|
9590
10075
|
end
|
9591
10076
|
|
10077
|
+
# The response message for Participants.SuggestArticles.
|
10078
|
+
class GoogleCloudDialogflowV2SuggestArticlesResponse
|
10079
|
+
include Google::Apis::Core::Hashable
|
10080
|
+
|
10081
|
+
# Articles ordered by score in descending order.
|
10082
|
+
# Corresponds to the JSON property `articleAnswers`
|
10083
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2ArticleAnswer>]
|
10084
|
+
attr_accessor :article_answers
|
10085
|
+
|
10086
|
+
# Number of messages prior to and including latest_message to compile the
|
10087
|
+
# suggestion. It may be smaller than the SuggestArticlesRequest.context_size
|
10088
|
+
# field in the request if there aren't that many messages in the conversation.
|
10089
|
+
# Corresponds to the JSON property `contextSize`
|
10090
|
+
# @return [Fixnum]
|
10091
|
+
attr_accessor :context_size
|
10092
|
+
|
10093
|
+
# The name of the latest conversation message used to compile suggestion for.
|
10094
|
+
# Format: `projects//locations//conversations//messages/`.
|
10095
|
+
# Corresponds to the JSON property `latestMessage`
|
10096
|
+
# @return [String]
|
10097
|
+
attr_accessor :latest_message
|
10098
|
+
|
10099
|
+
def initialize(**args)
|
10100
|
+
update!(**args)
|
10101
|
+
end
|
10102
|
+
|
10103
|
+
# Update properties of this object
|
10104
|
+
def update!(**args)
|
10105
|
+
@article_answers = args[:article_answers] if args.key?(:article_answers)
|
10106
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
10107
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
10108
|
+
end
|
10109
|
+
end
|
10110
|
+
|
10111
|
+
# The request message for Participants.SuggestFaqAnswers.
|
10112
|
+
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
|
10113
|
+
include Google::Apis::Core::Hashable
|
10114
|
+
|
10115
|
+
# Number of messages prior to and including latest_message to compile the
|
10116
|
+
# suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size
|
10117
|
+
# field in the request if there aren't that many messages in the conversation.
|
10118
|
+
# Corresponds to the JSON property `contextSize`
|
10119
|
+
# @return [Fixnum]
|
10120
|
+
attr_accessor :context_size
|
10121
|
+
|
10122
|
+
# Answers extracted from FAQ documents.
|
10123
|
+
# Corresponds to the JSON property `faqAnswers`
|
10124
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2FaqAnswer>]
|
10125
|
+
attr_accessor :faq_answers
|
10126
|
+
|
10127
|
+
# The name of the latest conversation message used to compile suggestion for.
|
10128
|
+
# Format: `projects//locations//conversations//messages/`.
|
10129
|
+
# Corresponds to the JSON property `latestMessage`
|
10130
|
+
# @return [String]
|
10131
|
+
attr_accessor :latest_message
|
10132
|
+
|
10133
|
+
def initialize(**args)
|
10134
|
+
update!(**args)
|
10135
|
+
end
|
10136
|
+
|
10137
|
+
# Update properties of this object
|
10138
|
+
def update!(**args)
|
10139
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
10140
|
+
@faq_answers = args[:faq_answers] if args.key?(:faq_answers)
|
10141
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
10142
|
+
end
|
10143
|
+
end
|
10144
|
+
|
10145
|
+
# One response of different type of suggestion response which is used in the
|
10146
|
+
# response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
|
10147
|
+
# well as HumanAgentAssistantEvent.
|
10148
|
+
class GoogleCloudDialogflowV2SuggestionResult
|
10149
|
+
include Google::Apis::Core::Hashable
|
10150
|
+
|
10151
|
+
# The `Status` type defines a logical error model that is suitable for different
|
10152
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
10153
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
10154
|
+
# data: error code, error message, and error details. You can find out more
|
10155
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
10156
|
+
# //cloud.google.com/apis/design/errors).
|
10157
|
+
# Corresponds to the JSON property `error`
|
10158
|
+
# @return [Google::Apis::DialogflowV3::GoogleRpcStatus]
|
10159
|
+
attr_accessor :error
|
10160
|
+
|
10161
|
+
# The response message for Participants.SuggestArticles.
|
10162
|
+
# Corresponds to the JSON property `suggestArticlesResponse`
|
10163
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2SuggestArticlesResponse]
|
10164
|
+
attr_accessor :suggest_articles_response
|
10165
|
+
|
10166
|
+
# The request message for Participants.SuggestFaqAnswers.
|
10167
|
+
# Corresponds to the JSON property `suggestFaqAnswersResponse`
|
10168
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
|
10169
|
+
attr_accessor :suggest_faq_answers_response
|
10170
|
+
|
10171
|
+
def initialize(**args)
|
10172
|
+
update!(**args)
|
10173
|
+
end
|
10174
|
+
|
10175
|
+
# Update properties of this object
|
10176
|
+
def update!(**args)
|
10177
|
+
@error = args[:error] if args.key?(:error)
|
10178
|
+
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
10179
|
+
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
10180
|
+
end
|
10181
|
+
end
|
10182
|
+
|
9592
10183
|
# The request message for a webhook call.
|
9593
10184
|
class GoogleCloudDialogflowV2WebhookRequest
|
9594
10185
|
include Google::Apis::Core::Hashable
|
@@ -9715,6 +10306,89 @@ module Google
|
|
9715
10306
|
end
|
9716
10307
|
end
|
9717
10308
|
|
10309
|
+
# Represents a part of a message possibly annotated with an entity. The part can
|
10310
|
+
# be an entity or purely a part of the message between two entities or message
|
10311
|
+
# start/end.
|
10312
|
+
class GoogleCloudDialogflowV2beta1AnnotatedMessagePart
|
10313
|
+
include Google::Apis::Core::Hashable
|
10314
|
+
|
10315
|
+
# Optional. The [Dialogflow system entity type](https://cloud.google.com/
|
10316
|
+
# dialogflow/docs/reference/system-entities) of this message part. If this is
|
10317
|
+
# empty, Dialogflow could not annotate the phrase part with a system entity.
|
10318
|
+
# Corresponds to the JSON property `entityType`
|
10319
|
+
# @return [String]
|
10320
|
+
attr_accessor :entity_type
|
10321
|
+
|
10322
|
+
# Optional. The [Dialogflow system entity formatted value ](https://cloud.google.
|
10323
|
+
# com/dialogflow/docs/reference/system-entities) of this message part. For
|
10324
|
+
# example for a system entity of type `@sys.unit-currency`, this may contain: ` "
|
10325
|
+
# amount": 5, "currency": "USD" `
|
10326
|
+
# Corresponds to the JSON property `formattedValue`
|
10327
|
+
# @return [Object]
|
10328
|
+
attr_accessor :formatted_value
|
10329
|
+
|
10330
|
+
# Required. A part of a message possibly annotated with an entity.
|
10331
|
+
# Corresponds to the JSON property `text`
|
10332
|
+
# @return [String]
|
10333
|
+
attr_accessor :text
|
10334
|
+
|
10335
|
+
def initialize(**args)
|
10336
|
+
update!(**args)
|
10337
|
+
end
|
10338
|
+
|
10339
|
+
# Update properties of this object
|
10340
|
+
def update!(**args)
|
10341
|
+
@entity_type = args[:entity_type] if args.key?(:entity_type)
|
10342
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
10343
|
+
@text = args[:text] if args.key?(:text)
|
10344
|
+
end
|
10345
|
+
end
|
10346
|
+
|
10347
|
+
# Represents article answer.
|
10348
|
+
class GoogleCloudDialogflowV2beta1ArticleAnswer
|
10349
|
+
include Google::Apis::Core::Hashable
|
10350
|
+
|
10351
|
+
# The name of answer record, in the format of "projects//locations//
|
10352
|
+
# answerRecords/"
|
10353
|
+
# Corresponds to the JSON property `answerRecord`
|
10354
|
+
# @return [String]
|
10355
|
+
attr_accessor :answer_record
|
10356
|
+
|
10357
|
+
# A map that contains metadata about the answer and the document from which it
|
10358
|
+
# originates.
|
10359
|
+
# Corresponds to the JSON property `metadata`
|
10360
|
+
# @return [Hash<String,String>]
|
10361
|
+
attr_accessor :metadata
|
10362
|
+
|
10363
|
+
# Output only. Article snippets.
|
10364
|
+
# Corresponds to the JSON property `snippets`
|
10365
|
+
# @return [Array<String>]
|
10366
|
+
attr_accessor :snippets
|
10367
|
+
|
10368
|
+
# The article title.
|
10369
|
+
# Corresponds to the JSON property `title`
|
10370
|
+
# @return [String]
|
10371
|
+
attr_accessor :title
|
10372
|
+
|
10373
|
+
# The article URI.
|
10374
|
+
# Corresponds to the JSON property `uri`
|
10375
|
+
# @return [String]
|
10376
|
+
attr_accessor :uri
|
10377
|
+
|
10378
|
+
def initialize(**args)
|
10379
|
+
update!(**args)
|
10380
|
+
end
|
10381
|
+
|
10382
|
+
# Update properties of this object
|
10383
|
+
def update!(**args)
|
10384
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
10385
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
10386
|
+
@snippets = args[:snippets] if args.key?(:snippets)
|
10387
|
+
@title = args[:title] if args.key?(:title)
|
10388
|
+
@uri = args[:uri] if args.key?(:uri)
|
10389
|
+
end
|
10390
|
+
end
|
10391
|
+
|
9718
10392
|
# The response message for EntityTypes.BatchUpdateEntityTypes.
|
9719
10393
|
class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
|
9720
10394
|
include Google::Apis::Core::Hashable
|
@@ -9815,6 +10489,50 @@ module Google
|
|
9815
10489
|
end
|
9816
10490
|
end
|
9817
10491
|
|
10492
|
+
# Represents a notification sent to Pub/Sub subscribers for conversation
|
10493
|
+
# lifecycle events.
|
10494
|
+
class GoogleCloudDialogflowV2beta1ConversationEvent
|
10495
|
+
include Google::Apis::Core::Hashable
|
10496
|
+
|
10497
|
+
# Required. The unique identifier of the conversation this notification refers
|
10498
|
+
# to. Format: `projects//conversations/`.
|
10499
|
+
# Corresponds to the JSON property `conversation`
|
10500
|
+
# @return [String]
|
10501
|
+
attr_accessor :conversation
|
10502
|
+
|
10503
|
+
# The `Status` type defines a logical error model that is suitable for different
|
10504
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
10505
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
10506
|
+
# data: error code, error message, and error details. You can find out more
|
10507
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
10508
|
+
# //cloud.google.com/apis/design/errors).
|
10509
|
+
# Corresponds to the JSON property `errorStatus`
|
10510
|
+
# @return [Google::Apis::DialogflowV3::GoogleRpcStatus]
|
10511
|
+
attr_accessor :error_status
|
10512
|
+
|
10513
|
+
# Represents a message posted into a conversation.
|
10514
|
+
# Corresponds to the JSON property `newMessagePayload`
|
10515
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1Message]
|
10516
|
+
attr_accessor :new_message_payload
|
10517
|
+
|
10518
|
+
# Required. The type of the event that this notification refers to.
|
10519
|
+
# Corresponds to the JSON property `type`
|
10520
|
+
# @return [String]
|
10521
|
+
attr_accessor :type
|
10522
|
+
|
10523
|
+
def initialize(**args)
|
10524
|
+
update!(**args)
|
10525
|
+
end
|
10526
|
+
|
10527
|
+
# Update properties of this object
|
10528
|
+
def update!(**args)
|
10529
|
+
@conversation = args[:conversation] if args.key?(:conversation)
|
10530
|
+
@error_status = args[:error_status] if args.key?(:error_status)
|
10531
|
+
@new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
|
10532
|
+
@type = args[:type] if args.key?(:type)
|
10533
|
+
end
|
10534
|
+
end
|
10535
|
+
|
9818
10536
|
# Each intent parameter has a type, called the entity type, which dictates
|
9819
10537
|
# exactly how data from an end-user expression is extracted. Dialogflow provides
|
9820
10538
|
# predefined system entities that can match many common types of data. For
|
@@ -9908,38 +10626,157 @@ module Google
|
|
9908
10626
|
end
|
9909
10627
|
end
|
9910
10628
|
|
9911
|
-
# Events allow for matching intents by event name instead of the natural
|
9912
|
-
# language input. For instance, input `` can trigger a personalized welcome
|
9913
|
-
# response. The parameter `name` may be used by the agent in the response: `"
|
9914
|
-
# Hello #welcome_event.name! What can I do for you today?"`.
|
9915
|
-
class GoogleCloudDialogflowV2beta1EventInput
|
10629
|
+
# Events allow for matching intents by event name instead of the natural
|
10630
|
+
# language input. For instance, input `` can trigger a personalized welcome
|
10631
|
+
# response. The parameter `name` may be used by the agent in the response: `"
|
10632
|
+
# Hello #welcome_event.name! What can I do for you today?"`.
|
10633
|
+
class GoogleCloudDialogflowV2beta1EventInput
|
10634
|
+
include Google::Apis::Core::Hashable
|
10635
|
+
|
10636
|
+
# Required. The language of this query. See [Language Support](https://cloud.
|
10637
|
+
# google.com/dialogflow/docs/reference/language) for a list of the currently
|
10638
|
+
# supported language codes. Note that queries in the same session do not
|
10639
|
+
# necessarily need to specify the same language.
|
10640
|
+
# Corresponds to the JSON property `languageCode`
|
10641
|
+
# @return [String]
|
10642
|
+
attr_accessor :language_code
|
10643
|
+
|
10644
|
+
# Required. The unique identifier of the event.
|
10645
|
+
# Corresponds to the JSON property `name`
|
10646
|
+
# @return [String]
|
10647
|
+
attr_accessor :name
|
10648
|
+
|
10649
|
+
# The collection of parameters associated with the event. Depending on your
|
10650
|
+
# protocol or client library language, this is a map, associative array, symbol
|
10651
|
+
# table, dictionary, or JSON object composed of a collection of (MapKey,
|
10652
|
+
# MapValue) pairs: - MapKey type: string - MapKey value: parameter name -
|
10653
|
+
# MapValue type: - If parameter's entity type is a composite entity: map - Else:
|
10654
|
+
# depending on parameter value type, could be one of string, number, boolean,
|
10655
|
+
# null, list or map - MapValue value: - If parameter's entity type is a
|
10656
|
+
# composite entity: map from composite entity property names to property values -
|
10657
|
+
# Else: parameter value
|
10658
|
+
# Corresponds to the JSON property `parameters`
|
10659
|
+
# @return [Hash<String,Object>]
|
10660
|
+
attr_accessor :parameters
|
10661
|
+
|
10662
|
+
def initialize(**args)
|
10663
|
+
update!(**args)
|
10664
|
+
end
|
10665
|
+
|
10666
|
+
# Update properties of this object
|
10667
|
+
def update!(**args)
|
10668
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
10669
|
+
@name = args[:name] if args.key?(:name)
|
10670
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
10671
|
+
end
|
10672
|
+
end
|
10673
|
+
|
10674
|
+
# The response message for Agents.ExportAgent.
|
10675
|
+
class GoogleCloudDialogflowV2beta1ExportAgentResponse
|
10676
|
+
include Google::Apis::Core::Hashable
|
10677
|
+
|
10678
|
+
# Zip compressed raw byte content for agent.
|
10679
|
+
# Corresponds to the JSON property `agentContent`
|
10680
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
10681
|
+
# @return [String]
|
10682
|
+
attr_accessor :agent_content
|
10683
|
+
|
10684
|
+
# The URI to a file containing the exported agent. This field is populated only
|
10685
|
+
# if `agent_uri` is specified in `ExportAgentRequest`.
|
10686
|
+
# Corresponds to the JSON property `agentUri`
|
10687
|
+
# @return [String]
|
10688
|
+
attr_accessor :agent_uri
|
10689
|
+
|
10690
|
+
def initialize(**args)
|
10691
|
+
update!(**args)
|
10692
|
+
end
|
10693
|
+
|
10694
|
+
# Update properties of this object
|
10695
|
+
def update!(**args)
|
10696
|
+
@agent_content = args[:agent_content] if args.key?(:agent_content)
|
10697
|
+
@agent_uri = args[:agent_uri] if args.key?(:agent_uri)
|
10698
|
+
end
|
10699
|
+
end
|
10700
|
+
|
10701
|
+
# Represents answer from "frequently asked questions".
|
10702
|
+
class GoogleCloudDialogflowV2beta1FaqAnswer
|
10703
|
+
include Google::Apis::Core::Hashable
|
10704
|
+
|
10705
|
+
# The piece of text from the `source` knowledge base document.
|
10706
|
+
# Corresponds to the JSON property `answer`
|
10707
|
+
# @return [String]
|
10708
|
+
attr_accessor :answer
|
10709
|
+
|
10710
|
+
# The name of answer record, in the format of "projects//locations//
|
10711
|
+
# answerRecords/"
|
10712
|
+
# Corresponds to the JSON property `answerRecord`
|
10713
|
+
# @return [String]
|
10714
|
+
attr_accessor :answer_record
|
10715
|
+
|
10716
|
+
# The system's confidence score that this Knowledge answer is a good match for
|
10717
|
+
# this conversational query, range from 0.0 (completely uncertain) to 1.0 (
|
10718
|
+
# completely certain).
|
10719
|
+
# Corresponds to the JSON property `confidence`
|
10720
|
+
# @return [Float]
|
10721
|
+
attr_accessor :confidence
|
10722
|
+
|
10723
|
+
# A map that contains metadata about the answer and the document from which it
|
10724
|
+
# originates.
|
10725
|
+
# Corresponds to the JSON property `metadata`
|
10726
|
+
# @return [Hash<String,String>]
|
10727
|
+
attr_accessor :metadata
|
10728
|
+
|
10729
|
+
# The corresponding FAQ question.
|
10730
|
+
# Corresponds to the JSON property `question`
|
10731
|
+
# @return [String]
|
10732
|
+
attr_accessor :question
|
10733
|
+
|
10734
|
+
# Indicates which Knowledge Document this answer was extracted from. Format: `
|
10735
|
+
# projects//locations//agent/knowledgeBases//documents/`.
|
10736
|
+
# Corresponds to the JSON property `source`
|
10737
|
+
# @return [String]
|
10738
|
+
attr_accessor :source
|
10739
|
+
|
10740
|
+
def initialize(**args)
|
10741
|
+
update!(**args)
|
10742
|
+
end
|
10743
|
+
|
10744
|
+
# Update properties of this object
|
10745
|
+
def update!(**args)
|
10746
|
+
@answer = args[:answer] if args.key?(:answer)
|
10747
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
10748
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
10749
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
10750
|
+
@question = args[:question] if args.key?(:question)
|
10751
|
+
@source = args[:source] if args.key?(:source)
|
10752
|
+
end
|
10753
|
+
end
|
10754
|
+
|
10755
|
+
# Output only. Represents a notification sent to Pub/Sub subscribers for agent
|
10756
|
+
# assistant events in a specific conversation.
|
10757
|
+
class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
|
9916
10758
|
include Google::Apis::Core::Hashable
|
9917
10759
|
|
9918
|
-
#
|
9919
|
-
#
|
9920
|
-
#
|
9921
|
-
# necessarily need to specify the same language.
|
9922
|
-
# Corresponds to the JSON property `languageCode`
|
10760
|
+
# The conversation this notification refers to. Format: `projects//conversations/
|
10761
|
+
# `.
|
10762
|
+
# Corresponds to the JSON property `conversation`
|
9923
10763
|
# @return [String]
|
9924
|
-
attr_accessor :
|
10764
|
+
attr_accessor :conversation
|
9925
10765
|
|
9926
|
-
#
|
9927
|
-
#
|
10766
|
+
# The participant that the suggestion is compiled for. And This field is used to
|
10767
|
+
# call Participants.ListSuggestions API. Format: `projects//conversations//
|
10768
|
+
# participants/`. It will not be set in legacy workflow.
|
10769
|
+
# HumanAgentAssistantConfig.name for more information.
|
10770
|
+
# Corresponds to the JSON property `participant`
|
9928
10771
|
# @return [String]
|
9929
|
-
attr_accessor :
|
10772
|
+
attr_accessor :participant
|
9930
10773
|
|
9931
|
-
# The
|
9932
|
-
#
|
9933
|
-
#
|
9934
|
-
#
|
9935
|
-
#
|
9936
|
-
|
9937
|
-
# null, list or map - MapValue value: - If parameter's entity type is a
|
9938
|
-
# composite entity: map from composite entity property names to property values -
|
9939
|
-
# Else: parameter value
|
9940
|
-
# Corresponds to the JSON property `parameters`
|
9941
|
-
# @return [Hash<String,Object>]
|
9942
|
-
attr_accessor :parameters
|
10774
|
+
# The suggestion results payload that this notification refers to. It will only
|
10775
|
+
# be set when HumanAgentAssistantConfig.SuggestionConfig.
|
10776
|
+
# group_suggestion_responses sets to true.
|
10777
|
+
# Corresponds to the JSON property `suggestionResults`
|
10778
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1SuggestionResult>]
|
10779
|
+
attr_accessor :suggestion_results
|
9943
10780
|
|
9944
10781
|
def initialize(**args)
|
9945
10782
|
update!(**args)
|
@@ -9947,27 +10784,20 @@ module Google
|
|
9947
10784
|
|
9948
10785
|
# Update properties of this object
|
9949
10786
|
def update!(**args)
|
9950
|
-
@
|
9951
|
-
@
|
9952
|
-
@
|
10787
|
+
@conversation = args[:conversation] if args.key?(:conversation)
|
10788
|
+
@participant = args[:participant] if args.key?(:participant)
|
10789
|
+
@suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
|
9953
10790
|
end
|
9954
10791
|
end
|
9955
10792
|
|
9956
|
-
#
|
9957
|
-
class
|
10793
|
+
# Response message for Documents.ImportDocuments.
|
10794
|
+
class GoogleCloudDialogflowV2beta1ImportDocumentsResponse
|
9958
10795
|
include Google::Apis::Core::Hashable
|
9959
10796
|
|
9960
|
-
#
|
9961
|
-
# Corresponds to the JSON property `
|
9962
|
-
#
|
9963
|
-
|
9964
|
-
attr_accessor :agent_content
|
9965
|
-
|
9966
|
-
# The URI to a file containing the exported agent. This field is populated only
|
9967
|
-
# if `agent_uri` is specified in `ExportAgentRequest`.
|
9968
|
-
# Corresponds to the JSON property `agentUri`
|
9969
|
-
# @return [String]
|
9970
|
-
attr_accessor :agent_uri
|
10797
|
+
# Includes details about skipped documents or any other warnings.
|
10798
|
+
# Corresponds to the JSON property `warnings`
|
10799
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleRpcStatus>]
|
10800
|
+
attr_accessor :warnings
|
9971
10801
|
|
9972
10802
|
def initialize(**args)
|
9973
10803
|
update!(**args)
|
@@ -9975,8 +10805,7 @@ module Google
|
|
9975
10805
|
|
9976
10806
|
# Update properties of this object
|
9977
10807
|
def update!(**args)
|
9978
|
-
@
|
9979
|
-
@agent_uri = args[:agent_uri] if args.key?(:agent_uri)
|
10808
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
9980
10809
|
end
|
9981
10810
|
end
|
9982
10811
|
|
@@ -10042,6 +10871,14 @@ module Google
|
|
10042
10871
|
attr_accessor :is_fallback
|
10043
10872
|
alias_method :is_fallback?, :is_fallback
|
10044
10873
|
|
10874
|
+
# Optional. Indicates that a live agent should be brought in to handle the
|
10875
|
+
# interaction with the user. In most cases, when you set this flag to true, you
|
10876
|
+
# would also want to set end_interaction to true as well. Default is false.
|
10877
|
+
# Corresponds to the JSON property `liveAgentHandoff`
|
10878
|
+
# @return [Boolean]
|
10879
|
+
attr_accessor :live_agent_handoff
|
10880
|
+
alias_method :live_agent_handoff?, :live_agent_handoff
|
10881
|
+
|
10045
10882
|
# Optional. The collection of rich messages corresponding to the `Response`
|
10046
10883
|
# field in the Dialogflow console.
|
10047
10884
|
# Corresponds to the JSON property `messages`
|
@@ -10146,6 +10983,7 @@ module Google
|
|
10146
10983
|
@followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
|
10147
10984
|
@input_context_names = args[:input_context_names] if args.key?(:input_context_names)
|
10148
10985
|
@is_fallback = args[:is_fallback] if args.key?(:is_fallback)
|
10986
|
+
@live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
|
10149
10987
|
@messages = args[:messages] if args.key?(:messages)
|
10150
10988
|
@ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
|
10151
10989
|
@ml_enabled = args[:ml_enabled] if args.key?(:ml_enabled)
|
@@ -11788,6 +12626,110 @@ module Google
|
|
11788
12626
|
end
|
11789
12627
|
end
|
11790
12628
|
|
12629
|
+
# Represents a message posted into a conversation.
|
12630
|
+
class GoogleCloudDialogflowV2beta1Message
|
12631
|
+
include Google::Apis::Core::Hashable
|
12632
|
+
|
12633
|
+
# Required. The message content.
|
12634
|
+
# Corresponds to the JSON property `content`
|
12635
|
+
# @return [String]
|
12636
|
+
attr_accessor :content
|
12637
|
+
|
12638
|
+
# Output only. The time when the message was created in Contact Center AI.
|
12639
|
+
# Corresponds to the JSON property `createTime`
|
12640
|
+
# @return [String]
|
12641
|
+
attr_accessor :create_time
|
12642
|
+
|
12643
|
+
# Optional. The message language. This should be a [BCP-47](https://www.rfc-
|
12644
|
+
# editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
|
12645
|
+
# Corresponds to the JSON property `languageCode`
|
12646
|
+
# @return [String]
|
12647
|
+
attr_accessor :language_code
|
12648
|
+
|
12649
|
+
# Represents the result of annotation for the message.
|
12650
|
+
# Corresponds to the JSON property `messageAnnotation`
|
12651
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1MessageAnnotation]
|
12652
|
+
attr_accessor :message_annotation
|
12653
|
+
|
12654
|
+
# Optional. The unique identifier of the message. Format: `projects//locations//
|
12655
|
+
# conversations//messages/`.
|
12656
|
+
# Corresponds to the JSON property `name`
|
12657
|
+
# @return [String]
|
12658
|
+
attr_accessor :name
|
12659
|
+
|
12660
|
+
# Output only. The participant that sends this message.
|
12661
|
+
# Corresponds to the JSON property `participant`
|
12662
|
+
# @return [String]
|
12663
|
+
attr_accessor :participant
|
12664
|
+
|
12665
|
+
# Output only. The role of the participant.
|
12666
|
+
# Corresponds to the JSON property `participantRole`
|
12667
|
+
# @return [String]
|
12668
|
+
attr_accessor :participant_role
|
12669
|
+
|
12670
|
+
# Optional. The time when the message was sent.
|
12671
|
+
# Corresponds to the JSON property `sendTime`
|
12672
|
+
# @return [String]
|
12673
|
+
attr_accessor :send_time
|
12674
|
+
|
12675
|
+
# The result of sentiment analysis. Sentiment analysis inspects user input and
|
12676
|
+
# identifies the prevailing subjective opinion, especially to determine a user's
|
12677
|
+
# attitude as positive, negative, or neutral. For Participants.DetectIntent, it
|
12678
|
+
# needs to be configured in DetectIntentRequest.query_params. For Participants.
|
12679
|
+
# StreamingDetectIntent, it needs to be configured in
|
12680
|
+
# StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent
|
12681
|
+
# and Participants.StreamingAnalyzeContent, it needs to be configured in
|
12682
|
+
# ConversationProfile.human_agent_assistant_config
|
12683
|
+
# Corresponds to the JSON property `sentimentAnalysis`
|
12684
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1SentimentAnalysisResult]
|
12685
|
+
attr_accessor :sentiment_analysis
|
12686
|
+
|
12687
|
+
def initialize(**args)
|
12688
|
+
update!(**args)
|
12689
|
+
end
|
12690
|
+
|
12691
|
+
# Update properties of this object
|
12692
|
+
def update!(**args)
|
12693
|
+
@content = args[:content] if args.key?(:content)
|
12694
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
12695
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
12696
|
+
@message_annotation = args[:message_annotation] if args.key?(:message_annotation)
|
12697
|
+
@name = args[:name] if args.key?(:name)
|
12698
|
+
@participant = args[:participant] if args.key?(:participant)
|
12699
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
12700
|
+
@send_time = args[:send_time] if args.key?(:send_time)
|
12701
|
+
@sentiment_analysis = args[:sentiment_analysis] if args.key?(:sentiment_analysis)
|
12702
|
+
end
|
12703
|
+
end
|
12704
|
+
|
12705
|
+
# Represents the result of annotation for the message.
|
12706
|
+
class GoogleCloudDialogflowV2beta1MessageAnnotation
|
12707
|
+
include Google::Apis::Core::Hashable
|
12708
|
+
|
12709
|
+
# Required. Indicates whether the text message contains entities.
|
12710
|
+
# Corresponds to the JSON property `containEntities`
|
12711
|
+
# @return [Boolean]
|
12712
|
+
attr_accessor :contain_entities
|
12713
|
+
alias_method :contain_entities?, :contain_entities
|
12714
|
+
|
12715
|
+
# Optional. The collection of annotated message parts ordered by their position
|
12716
|
+
# in the message. You can recover the annotated message by concatenating [
|
12717
|
+
# AnnotatedMessagePart.text].
|
12718
|
+
# Corresponds to the JSON property `parts`
|
12719
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1AnnotatedMessagePart>]
|
12720
|
+
attr_accessor :parts
|
12721
|
+
|
12722
|
+
def initialize(**args)
|
12723
|
+
update!(**args)
|
12724
|
+
end
|
12725
|
+
|
12726
|
+
# Update properties of this object
|
12727
|
+
def update!(**args)
|
12728
|
+
@contain_entities = args[:contain_entities] if args.key?(:contain_entities)
|
12729
|
+
@parts = args[:parts] if args.key?(:parts)
|
12730
|
+
end
|
12731
|
+
end
|
12732
|
+
|
11791
12733
|
# Represents the contents of the original request that was passed to the `[
|
11792
12734
|
# Streaming]DetectIntent` call.
|
11793
12735
|
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
|
@@ -12088,6 +13030,188 @@ module Google
|
|
12088
13030
|
end
|
12089
13031
|
end
|
12090
13032
|
|
13033
|
+
# Represents a smart reply answer.
|
13034
|
+
class GoogleCloudDialogflowV2beta1SmartReplyAnswer
|
13035
|
+
include Google::Apis::Core::Hashable
|
13036
|
+
|
13037
|
+
# The name of answer record, in the format of "projects//locations//
|
13038
|
+
# answerRecords/"
|
13039
|
+
# Corresponds to the JSON property `answerRecord`
|
13040
|
+
# @return [String]
|
13041
|
+
attr_accessor :answer_record
|
13042
|
+
|
13043
|
+
# Smart reply confidence. The system's confidence score that this reply is a
|
13044
|
+
# good match for this conversation, as a value from 0.0 (completely uncertain)
|
13045
|
+
# to 1.0 (completely certain).
|
13046
|
+
# Corresponds to the JSON property `confidence`
|
13047
|
+
# @return [Float]
|
13048
|
+
attr_accessor :confidence
|
13049
|
+
|
13050
|
+
# The content of the reply.
|
13051
|
+
# Corresponds to the JSON property `reply`
|
13052
|
+
# @return [String]
|
13053
|
+
attr_accessor :reply
|
13054
|
+
|
13055
|
+
def initialize(**args)
|
13056
|
+
update!(**args)
|
13057
|
+
end
|
13058
|
+
|
13059
|
+
# Update properties of this object
|
13060
|
+
def update!(**args)
|
13061
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
13062
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
13063
|
+
@reply = args[:reply] if args.key?(:reply)
|
13064
|
+
end
|
13065
|
+
end
|
13066
|
+
|
13067
|
+
# The response message for Participants.SuggestArticles.
|
13068
|
+
class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
|
13069
|
+
include Google::Apis::Core::Hashable
|
13070
|
+
|
13071
|
+
# Output only. Articles ordered by score in descending order.
|
13072
|
+
# Corresponds to the JSON property `articleAnswers`
|
13073
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1ArticleAnswer>]
|
13074
|
+
attr_accessor :article_answers
|
13075
|
+
|
13076
|
+
# Number of messages prior to and including latest_message to compile the
|
13077
|
+
# suggestion. It may be smaller than the SuggestArticlesResponse.context_size
|
13078
|
+
# field in the request if there aren't that many messages in the conversation.
|
13079
|
+
# Corresponds to the JSON property `contextSize`
|
13080
|
+
# @return [Fixnum]
|
13081
|
+
attr_accessor :context_size
|
13082
|
+
|
13083
|
+
# The name of the latest conversation message used to compile suggestion for.
|
13084
|
+
# Format: `projects//locations//conversations//messages/`.
|
13085
|
+
# Corresponds to the JSON property `latestMessage`
|
13086
|
+
# @return [String]
|
13087
|
+
attr_accessor :latest_message
|
13088
|
+
|
13089
|
+
def initialize(**args)
|
13090
|
+
update!(**args)
|
13091
|
+
end
|
13092
|
+
|
13093
|
+
# Update properties of this object
|
13094
|
+
def update!(**args)
|
13095
|
+
@article_answers = args[:article_answers] if args.key?(:article_answers)
|
13096
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
13097
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
13098
|
+
end
|
13099
|
+
end
|
13100
|
+
|
13101
|
+
# The request message for Participants.SuggestFaqAnswers.
|
13102
|
+
class GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
|
13103
|
+
include Google::Apis::Core::Hashable
|
13104
|
+
|
13105
|
+
# Number of messages prior to and including latest_message to compile the
|
13106
|
+
# suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size
|
13107
|
+
# field in the request if there aren't that many messages in the conversation.
|
13108
|
+
# Corresponds to the JSON property `contextSize`
|
13109
|
+
# @return [Fixnum]
|
13110
|
+
attr_accessor :context_size
|
13111
|
+
|
13112
|
+
# Output only. Answers extracted from FAQ documents.
|
13113
|
+
# Corresponds to the JSON property `faqAnswers`
|
13114
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1FaqAnswer>]
|
13115
|
+
attr_accessor :faq_answers
|
13116
|
+
|
13117
|
+
# The name of the latest conversation message used to compile suggestion for.
|
13118
|
+
# Format: `projects//locations//conversations//messages/`.
|
13119
|
+
# Corresponds to the JSON property `latestMessage`
|
13120
|
+
# @return [String]
|
13121
|
+
attr_accessor :latest_message
|
13122
|
+
|
13123
|
+
def initialize(**args)
|
13124
|
+
update!(**args)
|
13125
|
+
end
|
13126
|
+
|
13127
|
+
# Update properties of this object
|
13128
|
+
def update!(**args)
|
13129
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
13130
|
+
@faq_answers = args[:faq_answers] if args.key?(:faq_answers)
|
13131
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
13132
|
+
end
|
13133
|
+
end
|
13134
|
+
|
13135
|
+
# The response message for Participants.SuggestSmartReplies.
|
13136
|
+
class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
|
13137
|
+
include Google::Apis::Core::Hashable
|
13138
|
+
|
13139
|
+
# Number of messages prior to and including latest_message to compile the
|
13140
|
+
# suggestion. It may be smaller than the SuggestSmartRepliesRequest.context_size
|
13141
|
+
# field in the request if there aren't that many messages in the conversation.
|
13142
|
+
# Corresponds to the JSON property `contextSize`
|
13143
|
+
# @return [Fixnum]
|
13144
|
+
attr_accessor :context_size
|
13145
|
+
|
13146
|
+
# The name of the latest conversation message used to compile suggestion for.
|
13147
|
+
# Format: `projects//locations//conversations//messages/`.
|
13148
|
+
# Corresponds to the JSON property `latestMessage`
|
13149
|
+
# @return [String]
|
13150
|
+
attr_accessor :latest_message
|
13151
|
+
|
13152
|
+
# Output only. Multiple reply options provided by smart reply service. The order
|
13153
|
+
# is based on the rank of the model prediction. The maximum number of the
|
13154
|
+
# returned replies is set in SmartReplyConfig.
|
13155
|
+
# Corresponds to the JSON property `smartReplyAnswers`
|
13156
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1SmartReplyAnswer>]
|
13157
|
+
attr_accessor :smart_reply_answers
|
13158
|
+
|
13159
|
+
def initialize(**args)
|
13160
|
+
update!(**args)
|
13161
|
+
end
|
13162
|
+
|
13163
|
+
# Update properties of this object
|
13164
|
+
def update!(**args)
|
13165
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
13166
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
13167
|
+
@smart_reply_answers = args[:smart_reply_answers] if args.key?(:smart_reply_answers)
|
13168
|
+
end
|
13169
|
+
end
|
13170
|
+
|
13171
|
+
# One response of different type of suggestion response which is used in the
|
13172
|
+
# response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
|
13173
|
+
# well as HumanAgentAssistantEvent.
|
13174
|
+
class GoogleCloudDialogflowV2beta1SuggestionResult
|
13175
|
+
include Google::Apis::Core::Hashable
|
13176
|
+
|
13177
|
+
# The `Status` type defines a logical error model that is suitable for different
|
13178
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
13179
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
13180
|
+
# data: error code, error message, and error details. You can find out more
|
13181
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
13182
|
+
# //cloud.google.com/apis/design/errors).
|
13183
|
+
# Corresponds to the JSON property `error`
|
13184
|
+
# @return [Google::Apis::DialogflowV3::GoogleRpcStatus]
|
13185
|
+
attr_accessor :error
|
13186
|
+
|
13187
|
+
# The response message for Participants.SuggestArticles.
|
13188
|
+
# Corresponds to the JSON property `suggestArticlesResponse`
|
13189
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1SuggestArticlesResponse]
|
13190
|
+
attr_accessor :suggest_articles_response
|
13191
|
+
|
13192
|
+
# The request message for Participants.SuggestFaqAnswers.
|
13193
|
+
# Corresponds to the JSON property `suggestFaqAnswersResponse`
|
13194
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse]
|
13195
|
+
attr_accessor :suggest_faq_answers_response
|
13196
|
+
|
13197
|
+
# The response message for Participants.SuggestSmartReplies.
|
13198
|
+
# Corresponds to the JSON property `suggestSmartRepliesResponse`
|
13199
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse]
|
13200
|
+
attr_accessor :suggest_smart_replies_response
|
13201
|
+
|
13202
|
+
def initialize(**args)
|
13203
|
+
update!(**args)
|
13204
|
+
end
|
13205
|
+
|
13206
|
+
# Update properties of this object
|
13207
|
+
def update!(**args)
|
13208
|
+
@error = args[:error] if args.key?(:error)
|
13209
|
+
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
13210
|
+
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
13211
|
+
@suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
|
13212
|
+
end
|
13213
|
+
end
|
13214
|
+
|
12091
13215
|
# The request message for a webhook call.
|
12092
13216
|
class GoogleCloudDialogflowV2beta1WebhookRequest
|
12093
13217
|
include Google::Apis::Core::Hashable
|
@@ -12178,6 +13302,14 @@ module Google
|
|
12178
13302
|
# @return [String]
|
12179
13303
|
attr_accessor :fulfillment_text
|
12180
13304
|
|
13305
|
+
# Indicates that a live agent should be brought in to handle the interaction
|
13306
|
+
# with the user. In most cases, when you set this flag to true, you would also
|
13307
|
+
# want to set end_interaction to true as well. Default is false.
|
13308
|
+
# Corresponds to the JSON property `liveAgentHandoff`
|
13309
|
+
# @return [Boolean]
|
13310
|
+
attr_accessor :live_agent_handoff
|
13311
|
+
alias_method :live_agent_handoff?, :live_agent_handoff
|
13312
|
+
|
12181
13313
|
# Optional. The collection of output contexts that will overwrite currently
|
12182
13314
|
# active contexts for the session and reset their lifespans. When provided,
|
12183
13315
|
# Dialogflow uses this field to populate QueryResult.output_contexts sent to the
|
@@ -12224,6 +13356,7 @@ module Google
|
|
12224
13356
|
@followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input)
|
12225
13357
|
@fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
|
12226
13358
|
@fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
|
13359
|
+
@live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
|
12227
13360
|
@output_contexts = args[:output_contexts] if args.key?(:output_contexts)
|
12228
13361
|
@payload = args[:payload] if args.key?(:payload)
|
12229
13362
|
@session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types)
|
@@ -12509,8 +13642,8 @@ module Google
|
|
12509
13642
|
|
12510
13643
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
12511
13644
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
12512
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
12513
|
-
# within normalized ranges.
|
13645
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
13646
|
+
# must be within normalized ranges.
|
12514
13647
|
class GoogleTypeLatLng
|
12515
13648
|
include Google::Apis::Core::Hashable
|
12516
13649
|
|