google-apis-dialogflow_v3 0.7.0 → 0.12.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 +20 -0
- data/lib/google/apis/dialogflow_v3.rb +1 -1
- data/lib/google/apis/dialogflow_v3/classes.rb +349 -47
- data/lib/google/apis/dialogflow_v3/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v3/representations.rb +114 -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: 5b48e2d0549c62b484978c4439d4e4d9c52cf15331629598fcde0f99d42dbd3c
|
4
|
+
data.tar.gz: 691751a26f0f8e0b1feb37ff0b656e43e68bdf4198c6da7c2c356bd082862f76
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37c6df17fa6f7ee3b4b2abf20d987ce1c5939b4962b39e054fdc4f5589c755e6d9a55de461a12f32b1fc44e1484383116634c27d643e929db29d9ded277be469
|
7
|
+
data.tar.gz: 3dadcd12a27f264011b0a4b2ab2626df516d343b895f0a3a6b427e2e377e6ea6bc4e67d2620fb590ca872cb41661f1dd649c2d423676ebad5ee08cbc42c34257
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# Release history for google-apis-dialogflow_v3
|
2
2
|
|
3
|
+
### v0.12.0 (2021-05-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210517
|
6
|
+
|
7
|
+
### v0.11.0 (2021-05-12)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210510
|
10
|
+
|
11
|
+
### v0.10.0 (2021-04-01)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210329
|
14
|
+
|
15
|
+
### v0.9.0 (2021-03-23)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210320
|
18
|
+
|
19
|
+
### v0.8.0 (2021-03-16)
|
20
|
+
|
21
|
+
* Regenerated from discovery document revision 20210314
|
22
|
+
|
3
23
|
### v0.7.0 (2021-03-09)
|
4
24
|
|
5
25
|
* Regenerated from discovery document revision 20210307
|
@@ -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
|
@@ -1166,6 +1173,12 @@ module Google
|
|
1166
1173
|
# @return [String]
|
1167
1174
|
attr_accessor :agent_uri
|
1168
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
|
+
|
1169
1182
|
def initialize(**args)
|
1170
1183
|
update!(**args)
|
1171
1184
|
end
|
@@ -1173,6 +1186,7 @@ module Google
|
|
1173
1186
|
# Update properties of this object
|
1174
1187
|
def update!(**args)
|
1175
1188
|
@agent_uri = args[:agent_uri] if args.key?(:agent_uri)
|
1189
|
+
@environment = args[:environment] if args.key?(:environment)
|
1176
1190
|
end
|
1177
1191
|
end
|
1178
1192
|
|
@@ -1203,6 +1217,61 @@ module Google
|
|
1203
1217
|
end
|
1204
1218
|
end
|
1205
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
|
+
|
1206
1275
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
1207
1276
|
class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
|
1208
1277
|
include Google::Apis::Core::Hashable
|
@@ -1327,6 +1396,15 @@ module Google
|
|
1327
1396
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3NluSettings]
|
1328
1397
|
attr_accessor :nlu_settings
|
1329
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
|
+
|
1330
1408
|
# A flow's transition routes serve two purposes: * They are responsible for
|
1331
1409
|
# matching the user's first utterances in the flow. * They are inherited by
|
1332
1410
|
# every page's transition routes and can support use cases such as the user
|
@@ -1351,6 +1429,7 @@ module Google
|
|
1351
1429
|
@event_handlers = args[:event_handlers] if args.key?(:event_handlers)
|
1352
1430
|
@name = args[:name] if args.key?(:name)
|
1353
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)
|
1354
1433
|
@transition_routes = args[:transition_routes] if args.key?(:transition_routes)
|
1355
1434
|
end
|
1356
1435
|
end
|
@@ -1822,6 +1901,59 @@ module Google
|
|
1822
1901
|
end
|
1823
1902
|
end
|
1824
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
|
+
|
1825
1957
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
1826
1958
|
class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
|
1827
1959
|
include Google::Apis::Core::Hashable
|
@@ -1972,8 +2104,8 @@ module Google
|
|
1972
2104
|
class GoogleCloudDialogflowCxV3Intent
|
1973
2105
|
include Google::Apis::Core::Hashable
|
1974
2106
|
|
1975
|
-
#
|
1976
|
-
#
|
2107
|
+
# Human readable description for better understanding an intent like its scope,
|
2108
|
+
# content, result etc. Maximum character limit: 140 characters.
|
1977
2109
|
# Corresponds to the JSON property `description`
|
1978
2110
|
# @return [String]
|
1979
2111
|
attr_accessor :description
|
@@ -1993,14 +2125,14 @@ module Google
|
|
1993
2125
|
attr_accessor :is_fallback
|
1994
2126
|
alias_method :is_fallback?, :is_fallback
|
1995
2127
|
|
1996
|
-
#
|
1997
|
-
#
|
1998
|
-
#
|
1999
|
-
#
|
2000
|
-
#
|
2001
|
-
#
|
2002
|
-
#
|
2003
|
-
#
|
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.
|
2004
2136
|
# Corresponds to the JSON property `labels`
|
2005
2137
|
# @return [Hash<String,String>]
|
2006
2138
|
attr_accessor :labels
|
@@ -2620,8 +2752,8 @@ module Google
|
|
2620
2752
|
class GoogleCloudDialogflowCxV3LoadVersionRequest
|
2621
2753
|
include Google::Apis::Core::Hashable
|
2622
2754
|
|
2623
|
-
# This field is used to prevent accidental overwrite of other agent resources
|
2624
|
-
#
|
2755
|
+
# This field is used to prevent accidental overwrite of other agent resources,
|
2756
|
+
# which can potentially impact other flow's behavior. If `
|
2625
2757
|
# allow_override_agent_resources` is false, conflicted agent-level resources
|
2626
2758
|
# will not be overridden (i.e. intents, entities, webhooks).
|
2627
2759
|
# Corresponds to the JSON property `allowOverrideAgentResources`
|
@@ -2793,7 +2925,7 @@ module Google
|
|
2793
2925
|
attr_accessor :text
|
2794
2926
|
|
2795
2927
|
# If natural language speech audio was provided as input, this field will
|
2796
|
-
# contain the
|
2928
|
+
# contain the transcript for the audio.
|
2797
2929
|
# Corresponds to the JSON property `transcript`
|
2798
2930
|
# @return [String]
|
2799
2931
|
attr_accessor :transcript
|
@@ -2805,7 +2937,7 @@ module Google
|
|
2805
2937
|
attr_accessor :trigger_event
|
2806
2938
|
|
2807
2939
|
# If an intent was provided as input, this field will contain a copy of the
|
2808
|
-
# intent identifier.
|
2940
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
2809
2941
|
# Corresponds to the JSON property `triggerIntent`
|
2810
2942
|
# @return [String]
|
2811
2943
|
attr_accessor :trigger_intent
|
@@ -3158,6 +3290,16 @@ module Google
|
|
3158
3290
|
attr_accessor :analyze_query_text_sentiment
|
3159
3291
|
alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment
|
3160
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
|
+
|
3161
3303
|
# Whether to disable webhook calls for this request.
|
3162
3304
|
# Corresponds to the JSON property `disableWebhook`
|
3163
3305
|
# @return [Boolean]
|
@@ -3166,28 +3308,32 @@ module Google
|
|
3166
3308
|
|
3167
3309
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
3168
3310
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
3169
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
3170
|
-
# within normalized ranges.
|
3311
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
3312
|
+
# must be within normalized ranges.
|
3171
3313
|
# Corresponds to the JSON property `geoLocation`
|
3172
3314
|
# @return [Google::Apis::DialogflowV3::GoogleTypeLatLng]
|
3173
3315
|
attr_accessor :geo_location
|
3174
3316
|
|
3175
3317
|
# Additional parameters to be put into session parameters. To remove a parameter
|
3176
3318
|
# from the session, clients should explicitly set the parameter value to null.
|
3177
|
-
#
|
3178
|
-
#
|
3179
|
-
#
|
3180
|
-
#
|
3181
|
-
#
|
3182
|
-
#
|
3183
|
-
# type
|
3184
|
-
#
|
3319
|
+
# You can reference the session parameters in the agent with the following
|
3320
|
+
# format: $session.params.parameter-id. Depending on your protocol or client
|
3321
|
+
# library language, this is a map, associative array, symbol table, dictionary,
|
3322
|
+
# or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey
|
3323
|
+
# type: string - MapKey value: parameter name - MapValue type: - If parameter's
|
3324
|
+
# entity type is a composite entity: map - Else: depending on parameter value
|
3325
|
+
# type, could be one of string, number, boolean, null, list or map - MapValue
|
3326
|
+
# value: - If parameter's entity type is a composite entity: map from composite
|
3327
|
+
# entity property names to property values - Else: parameter value
|
3185
3328
|
# Corresponds to the JSON property `parameters`
|
3186
3329
|
# @return [Hash<String,Object>]
|
3187
3330
|
attr_accessor :parameters
|
3188
3331
|
|
3189
3332
|
# This field can be used to pass custom data into the webhook associated with
|
3190
|
-
# the agent. Arbitrary JSON objects are supported.
|
3333
|
+
# the agent. Arbitrary JSON objects are supported. Some integrations that query
|
3334
|
+
# a Dialogflow agent may provide additional information in the payload. In
|
3335
|
+
# particular, for the Dialogflow Phone Gateway integration, this field has the
|
3336
|
+
# form: ``` ` "telephony": ` "caller_id": "+18558363987" ` ` ```
|
3191
3337
|
# Corresponds to the JSON property `payload`
|
3192
3338
|
# @return [Hash<String,Object>]
|
3193
3339
|
attr_accessor :payload
|
@@ -3225,6 +3371,7 @@ module Google
|
|
3225
3371
|
# Update properties of this object
|
3226
3372
|
def update!(**args)
|
3227
3373
|
@analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
|
3374
|
+
@current_page = args[:current_page] if args.key?(:current_page)
|
3228
3375
|
@disable_webhook = args[:disable_webhook] if args.key?(:disable_webhook)
|
3229
3376
|
@geo_location = args[:geo_location] if args.key?(:geo_location)
|
3230
3377
|
@parameters = args[:parameters] if args.key?(:parameters)
|
@@ -3325,7 +3472,7 @@ module Google
|
|
3325
3472
|
attr_accessor :text
|
3326
3473
|
|
3327
3474
|
# If natural language speech audio was provided as input, this field will
|
3328
|
-
# contain the
|
3475
|
+
# contain the transcript for the audio.
|
3329
3476
|
# Corresponds to the JSON property `transcript`
|
3330
3477
|
# @return [String]
|
3331
3478
|
attr_accessor :transcript
|
@@ -3337,7 +3484,7 @@ module Google
|
|
3337
3484
|
attr_accessor :trigger_event
|
3338
3485
|
|
3339
3486
|
# If an intent was provided as input, this field will contain a copy of the
|
3340
|
-
# intent identifier.
|
3487
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
3341
3488
|
# Corresponds to the JSON property `triggerIntent`
|
3342
3489
|
# @return [String]
|
3343
3490
|
attr_accessor :trigger_intent
|
@@ -3844,8 +3991,8 @@ module Google
|
|
3844
3991
|
# @return [Array<String>]
|
3845
3992
|
attr_accessor :purge_data_types
|
3846
3993
|
|
3847
|
-
# Defines
|
3848
|
-
#
|
3994
|
+
# Defines the data for which Dialogflow applies redaction. Dialogflow does not
|
3995
|
+
# redact data that it does not have access to – for example, Cloud logging.
|
3849
3996
|
# Corresponds to the JSON property `redactionScope`
|
3850
3997
|
# @return [String]
|
3851
3998
|
attr_accessor :redaction_scope
|
@@ -3855,10 +4002,12 @@ module Google
|
|
3855
4002
|
# @return [String]
|
3856
4003
|
attr_accessor :redaction_strategy
|
3857
4004
|
|
3858
|
-
# Retains
|
3859
|
-
#
|
3860
|
-
#
|
3861
|
-
#
|
4005
|
+
# Retains data in interaction logging for the specified number of days. This
|
4006
|
+
# does not apply to Cloud logging, which is owned by the user - not Dialogflow.
|
4007
|
+
# User must Set a value lower than Dialogflow's default 30d TTL. Setting a value
|
4008
|
+
# higher than that has no effect. A missing value or setting to 0 also means we
|
4009
|
+
# use Dialogflow's default TTL. Note: Interaction logging is a limited access
|
4010
|
+
# feature. Talk to your Google representative to check availability for you.
|
3862
4011
|
# Corresponds to the JSON property `retentionWindowDays`
|
3863
4012
|
# @return [Fixnum]
|
3864
4013
|
attr_accessor :retention_window_days
|
@@ -4976,6 +5125,12 @@ module Google
|
|
4976
5125
|
# @return [String]
|
4977
5126
|
attr_accessor :name
|
4978
5127
|
|
5128
|
+
# Represents configuration for a [Service Directory](https://cloud.google.com/
|
5129
|
+
# service-directory) service.
|
5130
|
+
# Corresponds to the JSON property `serviceDirectory`
|
5131
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig]
|
5132
|
+
attr_accessor :service_directory
|
5133
|
+
|
4979
5134
|
# Webhook execution timeout. Execution is considered failed if Dialogflow doesn'
|
4980
5135
|
# t receive a response from webhook at the end of the timeout period. Defaults
|
4981
5136
|
# to 5 seconds, maximum allowed timeout is 30 seconds.
|
@@ -4993,6 +5148,7 @@ module Google
|
|
4993
5148
|
@display_name = args[:display_name] if args.key?(:display_name)
|
4994
5149
|
@generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
|
4995
5150
|
@name = args[:name] if args.key?(:name)
|
5151
|
+
@service_directory = args[:service_directory] if args.key?(:service_directory)
|
4996
5152
|
@timeout = args[:timeout] if args.key?(:timeout)
|
4997
5153
|
end
|
4998
5154
|
end
|
@@ -5035,7 +5191,8 @@ module Google
|
|
5035
5191
|
end
|
5036
5192
|
end
|
5037
5193
|
|
5038
|
-
# The request message for a webhook call.
|
5194
|
+
# The request message for a webhook call. The request is sent as a JSON object
|
5195
|
+
# and the field names will be presented in camel cases.
|
5039
5196
|
class GoogleCloudDialogflowCxV3WebhookRequest
|
5040
5197
|
include Google::Apis::Core::Hashable
|
5041
5198
|
|
@@ -5055,6 +5212,11 @@ module Google
|
|
5055
5212
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo]
|
5056
5213
|
attr_accessor :intent_info
|
5057
5214
|
|
5215
|
+
# The language code specified in the original request.
|
5216
|
+
# Corresponds to the JSON property `languageCode`
|
5217
|
+
# @return [String]
|
5218
|
+
attr_accessor :language_code
|
5219
|
+
|
5058
5220
|
# The list of rich message responses to present to the user. Webhook can choose
|
5059
5221
|
# to append or replace this list in WebhookResponse.fulfillment_response;
|
5060
5222
|
# Corresponds to the JSON property `messages`
|
@@ -5081,6 +5243,30 @@ module Google
|
|
5081
5243
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SessionInfo]
|
5082
5244
|
attr_accessor :session_info
|
5083
5245
|
|
5246
|
+
# If natural language text was provided as input, this field will contain a copy
|
5247
|
+
# of the text.
|
5248
|
+
# Corresponds to the JSON property `text`
|
5249
|
+
# @return [String]
|
5250
|
+
attr_accessor :text
|
5251
|
+
|
5252
|
+
# If natural language speech audio was provided as input, this field will
|
5253
|
+
# contain the transcript for the audio.
|
5254
|
+
# Corresponds to the JSON property `transcript`
|
5255
|
+
# @return [String]
|
5256
|
+
attr_accessor :transcript
|
5257
|
+
|
5258
|
+
# If an event was provided as input, this field will contain the name of the
|
5259
|
+
# event.
|
5260
|
+
# Corresponds to the JSON property `triggerEvent`
|
5261
|
+
# @return [String]
|
5262
|
+
attr_accessor :trigger_event
|
5263
|
+
|
5264
|
+
# If an intent was provided as input, this field will contain a copy of the
|
5265
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
5266
|
+
# Corresponds to the JSON property `triggerIntent`
|
5267
|
+
# @return [String]
|
5268
|
+
attr_accessor :trigger_intent
|
5269
|
+
|
5084
5270
|
def initialize(**args)
|
5085
5271
|
update!(**args)
|
5086
5272
|
end
|
@@ -5090,11 +5276,16 @@ module Google
|
|
5090
5276
|
@detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
|
5091
5277
|
@fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
|
5092
5278
|
@intent_info = args[:intent_info] if args.key?(:intent_info)
|
5279
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
5093
5280
|
@messages = args[:messages] if args.key?(:messages)
|
5094
5281
|
@page_info = args[:page_info] if args.key?(:page_info)
|
5095
5282
|
@payload = args[:payload] if args.key?(:payload)
|
5096
5283
|
@sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
|
5097
5284
|
@session_info = args[:session_info] if args.key?(:session_info)
|
5285
|
+
@text = args[:text] if args.key?(:text)
|
5286
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
5287
|
+
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
5288
|
+
@trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
|
5098
5289
|
end
|
5099
5290
|
end
|
5100
5291
|
|
@@ -5287,6 +5478,35 @@ module Google
|
|
5287
5478
|
end
|
5288
5479
|
end
|
5289
5480
|
|
5481
|
+
# Represents configuration for a [Service Directory](https://cloud.google.com/
|
5482
|
+
# service-directory) service.
|
5483
|
+
class GoogleCloudDialogflowCxV3WebhookServiceDirectoryConfig
|
5484
|
+
include Google::Apis::Core::Hashable
|
5485
|
+
|
5486
|
+
# Represents configuration for a generic web service.
|
5487
|
+
# Corresponds to the JSON property `genericWebService`
|
5488
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3WebhookGenericWebService]
|
5489
|
+
attr_accessor :generic_web_service
|
5490
|
+
|
5491
|
+
# Required. The name of [Service Directory](https://cloud.google.com/service-
|
5492
|
+
# directory) service. Format: `projects//locations//namespaces//services/`. `
|
5493
|
+
# Location ID` of the service directory must be the same as the location of the
|
5494
|
+
# agent.
|
5495
|
+
# Corresponds to the JSON property `service`
|
5496
|
+
# @return [String]
|
5497
|
+
attr_accessor :service
|
5498
|
+
|
5499
|
+
def initialize(**args)
|
5500
|
+
update!(**args)
|
5501
|
+
end
|
5502
|
+
|
5503
|
+
# Update properties of this object
|
5504
|
+
def update!(**args)
|
5505
|
+
@generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
|
5506
|
+
@service = args[:service] if args.key?(:service)
|
5507
|
+
end
|
5508
|
+
end
|
5509
|
+
|
5290
5510
|
# Represents the natural speech audio to be processed.
|
5291
5511
|
class GoogleCloudDialogflowCxV3beta1AudioInput
|
5292
5512
|
include Google::Apis::Core::Hashable
|
@@ -5680,6 +5900,33 @@ module Google
|
|
5680
5900
|
end
|
5681
5901
|
end
|
5682
5902
|
|
5903
|
+
# The response message for Flows.ExportFlow.
|
5904
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
|
5905
|
+
include Google::Apis::Core::Hashable
|
5906
|
+
|
5907
|
+
# Uncompressed raw byte content for flow.
|
5908
|
+
# Corresponds to the JSON property `flowContent`
|
5909
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
5910
|
+
# @return [String]
|
5911
|
+
attr_accessor :flow_content
|
5912
|
+
|
5913
|
+
# The URI to a file containing the exported flow. This field is populated only
|
5914
|
+
# if `flow_uri` is specified in ExportFlowRequest.
|
5915
|
+
# Corresponds to the JSON property `flowUri`
|
5916
|
+
# @return [String]
|
5917
|
+
attr_accessor :flow_uri
|
5918
|
+
|
5919
|
+
def initialize(**args)
|
5920
|
+
update!(**args)
|
5921
|
+
end
|
5922
|
+
|
5923
|
+
# Update properties of this object
|
5924
|
+
def update!(**args)
|
5925
|
+
@flow_content = args[:flow_content] if args.key?(:flow_content)
|
5926
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
5927
|
+
end
|
5928
|
+
end
|
5929
|
+
|
5683
5930
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
5684
5931
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
5685
5932
|
include Google::Apis::Core::Hashable
|
@@ -6078,6 +6325,26 @@ module Google
|
|
6078
6325
|
end
|
6079
6326
|
end
|
6080
6327
|
|
6328
|
+
# The response message for Flows.ImportFlow.
|
6329
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
|
6330
|
+
include Google::Apis::Core::Hashable
|
6331
|
+
|
6332
|
+
# The unique identifier of the new flow. Format: `projects//locations//agents//
|
6333
|
+
# flows/`.
|
6334
|
+
# Corresponds to the JSON property `flow`
|
6335
|
+
# @return [String]
|
6336
|
+
attr_accessor :flow
|
6337
|
+
|
6338
|
+
def initialize(**args)
|
6339
|
+
update!(**args)
|
6340
|
+
end
|
6341
|
+
|
6342
|
+
# Update properties of this object
|
6343
|
+
def update!(**args)
|
6344
|
+
@flow = args[:flow] if args.key?(:flow)
|
6345
|
+
end
|
6346
|
+
end
|
6347
|
+
|
6081
6348
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
6082
6349
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
6083
6350
|
include Google::Apis::Core::Hashable
|
@@ -6201,8 +6468,8 @@ module Google
|
|
6201
6468
|
class GoogleCloudDialogflowCxV3beta1Intent
|
6202
6469
|
include Google::Apis::Core::Hashable
|
6203
6470
|
|
6204
|
-
#
|
6205
|
-
#
|
6471
|
+
# Human readable description for better understanding an intent like its scope,
|
6472
|
+
# content, result etc. Maximum character limit: 140 characters.
|
6206
6473
|
# Corresponds to the JSON property `description`
|
6207
6474
|
# @return [String]
|
6208
6475
|
attr_accessor :description
|
@@ -6222,14 +6489,14 @@ module Google
|
|
6222
6489
|
attr_accessor :is_fallback
|
6223
6490
|
alias_method :is_fallback?, :is_fallback
|
6224
6491
|
|
6225
|
-
#
|
6226
|
-
#
|
6227
|
-
#
|
6228
|
-
#
|
6229
|
-
#
|
6230
|
-
#
|
6231
|
-
#
|
6232
|
-
#
|
6492
|
+
# The key/value metadata to label an intent. Labels can contain lowercase
|
6493
|
+
# letters, digits and the symbols '-' and '_'. International characters are
|
6494
|
+
# allowed, including letters from unicase alphabets. Keys must start with a
|
6495
|
+
# letter. Keys and values can be no longer than 63 characters and no more than
|
6496
|
+
# 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently
|
6497
|
+
# allowed Dialogflow defined labels include: * sys-head * sys-contextual The
|
6498
|
+
# above labels do not require value. "sys-head" means the intent is a head
|
6499
|
+
# intent. "sys-contextual" means the intent is a contextual intent.
|
6233
6500
|
# Corresponds to the JSON property `labels`
|
6234
6501
|
# @return [Hash<String,String>]
|
6235
6502
|
attr_accessor :labels
|
@@ -7393,7 +7660,8 @@ module Google
|
|
7393
7660
|
end
|
7394
7661
|
end
|
7395
7662
|
|
7396
|
-
# The request message for a webhook call.
|
7663
|
+
# The request message for a webhook call. The request is sent as a JSON object
|
7664
|
+
# and the field names will be presented in camel cases.
|
7397
7665
|
class GoogleCloudDialogflowCxV3beta1WebhookRequest
|
7398
7666
|
include Google::Apis::Core::Hashable
|
7399
7667
|
|
@@ -7413,6 +7681,11 @@ module Google
|
|
7413
7681
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]
|
7414
7682
|
attr_accessor :intent_info
|
7415
7683
|
|
7684
|
+
# The language code specified in the original request.
|
7685
|
+
# Corresponds to the JSON property `languageCode`
|
7686
|
+
# @return [String]
|
7687
|
+
attr_accessor :language_code
|
7688
|
+
|
7416
7689
|
# The list of rich message responses to present to the user. Webhook can choose
|
7417
7690
|
# to append or replace this list in WebhookResponse.fulfillment_response;
|
7418
7691
|
# Corresponds to the JSON property `messages`
|
@@ -7439,6 +7712,30 @@ module Google
|
|
7439
7712
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1SessionInfo]
|
7440
7713
|
attr_accessor :session_info
|
7441
7714
|
|
7715
|
+
# If natural language text was provided as input, this field will contain a copy
|
7716
|
+
# of the text.
|
7717
|
+
# Corresponds to the JSON property `text`
|
7718
|
+
# @return [String]
|
7719
|
+
attr_accessor :text
|
7720
|
+
|
7721
|
+
# If natural language speech audio was provided as input, this field will
|
7722
|
+
# contain the transcript for the audio.
|
7723
|
+
# Corresponds to the JSON property `transcript`
|
7724
|
+
# @return [String]
|
7725
|
+
attr_accessor :transcript
|
7726
|
+
|
7727
|
+
# If an event was provided as input, this field will contain the name of the
|
7728
|
+
# event.
|
7729
|
+
# Corresponds to the JSON property `triggerEvent`
|
7730
|
+
# @return [String]
|
7731
|
+
attr_accessor :trigger_event
|
7732
|
+
|
7733
|
+
# If an intent was provided as input, this field will contain a copy of the
|
7734
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
7735
|
+
# Corresponds to the JSON property `triggerIntent`
|
7736
|
+
# @return [String]
|
7737
|
+
attr_accessor :trigger_intent
|
7738
|
+
|
7442
7739
|
def initialize(**args)
|
7443
7740
|
update!(**args)
|
7444
7741
|
end
|
@@ -7448,11 +7745,16 @@ module Google
|
|
7448
7745
|
@detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
|
7449
7746
|
@fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
|
7450
7747
|
@intent_info = args[:intent_info] if args.key?(:intent_info)
|
7748
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
7451
7749
|
@messages = args[:messages] if args.key?(:messages)
|
7452
7750
|
@page_info = args[:page_info] if args.key?(:page_info)
|
7453
7751
|
@payload = args[:payload] if args.key?(:payload)
|
7454
7752
|
@sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
|
7455
7753
|
@session_info = args[:session_info] if args.key?(:session_info)
|
7754
|
+
@text = args[:text] if args.key?(:text)
|
7755
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
7756
|
+
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
7757
|
+
@trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
|
7456
7758
|
end
|
7457
7759
|
end
|
7458
7760
|
|
@@ -13343,8 +13645,8 @@ module Google
|
|
13343
13645
|
|
13344
13646
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
13345
13647
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
13346
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
13347
|
-
# within normalized ranges.
|
13648
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
13649
|
+
# must be within normalized ranges.
|
13348
13650
|
class GoogleTypeLatLng
|
13349
13651
|
include Google::Apis::Core::Hashable
|
13350
13652
|
|