google-apis-dialogflow_v3beta1 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_v3beta1.rb +1 -1
- data/lib/google/apis/dialogflow_v3beta1/classes.rb +349 -47
- data/lib/google/apis/dialogflow_v3beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v3beta1/representations.rb +114 -0
- data/lib/google/apis/dialogflow_v3beta1/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: 20da4047965cb3541758074a8d471d1518e4dc66951db0da546c77aff552ca73
|
4
|
+
data.tar.gz: aaebc4941deaedb19e718274ef4f5c0351b1de817f5b046978225cfebd1db939
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 865ee19ee661af0b5f161f47e67837212e07aaee0468b498015cb85423977c37268a336a4c28a001c30079752828314619b88e3bb375325532864a9640346fee
|
7
|
+
data.tar.gz: 6e1c75d313ec533ebed93453712c356fda5b7462f422f3d0456eda359757c3bde47efb6ff34f70690a4c708369e48d3174c66546667abc6ac49bd9d21c2a844a
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# Release history for google-apis-dialogflow_v3beta1
|
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 = 'V3beta1'
|
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
|
@@ -415,6 +415,33 @@ module Google
|
|
415
415
|
end
|
416
416
|
end
|
417
417
|
|
418
|
+
# The response message for Flows.ExportFlow.
|
419
|
+
class GoogleCloudDialogflowCxV3ExportFlowResponse
|
420
|
+
include Google::Apis::Core::Hashable
|
421
|
+
|
422
|
+
# Uncompressed raw byte content for flow.
|
423
|
+
# Corresponds to the JSON property `flowContent`
|
424
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
425
|
+
# @return [String]
|
426
|
+
attr_accessor :flow_content
|
427
|
+
|
428
|
+
# The URI to a file containing the exported flow. This field is populated only
|
429
|
+
# if `flow_uri` is specified in ExportFlowRequest.
|
430
|
+
# Corresponds to the JSON property `flowUri`
|
431
|
+
# @return [String]
|
432
|
+
attr_accessor :flow_uri
|
433
|
+
|
434
|
+
def initialize(**args)
|
435
|
+
update!(**args)
|
436
|
+
end
|
437
|
+
|
438
|
+
# Update properties of this object
|
439
|
+
def update!(**args)
|
440
|
+
@flow_content = args[:flow_content] if args.key?(:flow_content)
|
441
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
442
|
+
end
|
443
|
+
end
|
444
|
+
|
418
445
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
419
446
|
class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
|
420
447
|
include Google::Apis::Core::Hashable
|
@@ -813,6 +840,26 @@ module Google
|
|
813
840
|
end
|
814
841
|
end
|
815
842
|
|
843
|
+
# The response message for Flows.ImportFlow.
|
844
|
+
class GoogleCloudDialogflowCxV3ImportFlowResponse
|
845
|
+
include Google::Apis::Core::Hashable
|
846
|
+
|
847
|
+
# The unique identifier of the new flow. Format: `projects//locations//agents//
|
848
|
+
# flows/`.
|
849
|
+
# Corresponds to the JSON property `flow`
|
850
|
+
# @return [String]
|
851
|
+
attr_accessor :flow
|
852
|
+
|
853
|
+
def initialize(**args)
|
854
|
+
update!(**args)
|
855
|
+
end
|
856
|
+
|
857
|
+
# Update properties of this object
|
858
|
+
def update!(**args)
|
859
|
+
@flow = args[:flow] if args.key?(:flow)
|
860
|
+
end
|
861
|
+
end
|
862
|
+
|
816
863
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
817
864
|
class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
|
818
865
|
include Google::Apis::Core::Hashable
|
@@ -936,8 +983,8 @@ module Google
|
|
936
983
|
class GoogleCloudDialogflowCxV3Intent
|
937
984
|
include Google::Apis::Core::Hashable
|
938
985
|
|
939
|
-
#
|
940
|
-
#
|
986
|
+
# Human readable description for better understanding an intent like its scope,
|
987
|
+
# content, result etc. Maximum character limit: 140 characters.
|
941
988
|
# Corresponds to the JSON property `description`
|
942
989
|
# @return [String]
|
943
990
|
attr_accessor :description
|
@@ -957,14 +1004,14 @@ module Google
|
|
957
1004
|
attr_accessor :is_fallback
|
958
1005
|
alias_method :is_fallback?, :is_fallback
|
959
1006
|
|
960
|
-
#
|
961
|
-
#
|
962
|
-
#
|
963
|
-
#
|
964
|
-
#
|
965
|
-
#
|
966
|
-
#
|
967
|
-
#
|
1007
|
+
# The key/value metadata to label an intent. Labels can contain lowercase
|
1008
|
+
# letters, digits and the symbols '-' and '_'. International characters are
|
1009
|
+
# allowed, including letters from unicase alphabets. Keys must start with a
|
1010
|
+
# letter. Keys and values can be no longer than 63 characters and no more than
|
1011
|
+
# 128 bytes. Prefix "sys." is reserved for Dialogflow defined labels. Currently
|
1012
|
+
# allowed Dialogflow defined labels include: * sys.head * sys.contextual The
|
1013
|
+
# above labels do not require value. "sys.head" means the intent is a head
|
1014
|
+
# intent. "sys.contextual" means the intent is a contextual intent.
|
968
1015
|
# Corresponds to the JSON property `labels`
|
969
1016
|
# @return [Hash<String,String>]
|
970
1017
|
attr_accessor :labels
|
@@ -2128,7 +2175,8 @@ module Google
|
|
2128
2175
|
end
|
2129
2176
|
end
|
2130
2177
|
|
2131
|
-
# The request message for a webhook call.
|
2178
|
+
# The request message for a webhook call. The request is sent as a JSON object
|
2179
|
+
# and the field names will be presented in camel cases.
|
2132
2180
|
class GoogleCloudDialogflowCxV3WebhookRequest
|
2133
2181
|
include Google::Apis::Core::Hashable
|
2134
2182
|
|
@@ -2148,6 +2196,11 @@ module Google
|
|
2148
2196
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo]
|
2149
2197
|
attr_accessor :intent_info
|
2150
2198
|
|
2199
|
+
# The language code specified in the original request.
|
2200
|
+
# Corresponds to the JSON property `languageCode`
|
2201
|
+
# @return [String]
|
2202
|
+
attr_accessor :language_code
|
2203
|
+
|
2151
2204
|
# The list of rich message responses to present to the user. Webhook can choose
|
2152
2205
|
# to append or replace this list in WebhookResponse.fulfillment_response;
|
2153
2206
|
# Corresponds to the JSON property `messages`
|
@@ -2174,6 +2227,30 @@ module Google
|
|
2174
2227
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3SessionInfo]
|
2175
2228
|
attr_accessor :session_info
|
2176
2229
|
|
2230
|
+
# If natural language text was provided as input, this field will contain a copy
|
2231
|
+
# of the text.
|
2232
|
+
# Corresponds to the JSON property `text`
|
2233
|
+
# @return [String]
|
2234
|
+
attr_accessor :text
|
2235
|
+
|
2236
|
+
# If natural language speech audio was provided as input, this field will
|
2237
|
+
# contain the transcript for the audio.
|
2238
|
+
# Corresponds to the JSON property `transcript`
|
2239
|
+
# @return [String]
|
2240
|
+
attr_accessor :transcript
|
2241
|
+
|
2242
|
+
# If an event was provided as input, this field will contain the name of the
|
2243
|
+
# event.
|
2244
|
+
# Corresponds to the JSON property `triggerEvent`
|
2245
|
+
# @return [String]
|
2246
|
+
attr_accessor :trigger_event
|
2247
|
+
|
2248
|
+
# If an intent was provided as input, this field will contain a copy of the
|
2249
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
2250
|
+
# Corresponds to the JSON property `triggerIntent`
|
2251
|
+
# @return [String]
|
2252
|
+
attr_accessor :trigger_intent
|
2253
|
+
|
2177
2254
|
def initialize(**args)
|
2178
2255
|
update!(**args)
|
2179
2256
|
end
|
@@ -2183,11 +2260,16 @@ module Google
|
|
2183
2260
|
@detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
|
2184
2261
|
@fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
|
2185
2262
|
@intent_info = args[:intent_info] if args.key?(:intent_info)
|
2263
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
2186
2264
|
@messages = args[:messages] if args.key?(:messages)
|
2187
2265
|
@page_info = args[:page_info] if args.key?(:page_info)
|
2188
2266
|
@payload = args[:payload] if args.key?(:payload)
|
2189
2267
|
@sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
|
2190
2268
|
@session_info = args[:session_info] if args.key?(:session_info)
|
2269
|
+
@text = args[:text] if args.key?(:text)
|
2270
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
2271
|
+
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
2272
|
+
@trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
|
2191
2273
|
end
|
2192
2274
|
end
|
2193
2275
|
|
@@ -2451,6 +2533,12 @@ module Google
|
|
2451
2533
|
# @return [String]
|
2452
2534
|
attr_accessor :start_flow
|
2453
2535
|
|
2536
|
+
# The list of all languages supported by the agent (except for the `
|
2537
|
+
# default_language_code`).
|
2538
|
+
# Corresponds to the JSON property `supportedLanguageCodes`
|
2539
|
+
# @return [Array<String>]
|
2540
|
+
attr_accessor :supported_language_codes
|
2541
|
+
|
2454
2542
|
# Required. The time zone of the agent from the [time zone database](https://www.
|
2455
2543
|
# iana.org/time-zones), e.g., America/New_York, Europe/Paris.
|
2456
2544
|
# Corresponds to the JSON property `timeZone`
|
@@ -2473,6 +2561,7 @@ module Google
|
|
2473
2561
|
@security_settings = args[:security_settings] if args.key?(:security_settings)
|
2474
2562
|
@speech_to_text_settings = args[:speech_to_text_settings] if args.key?(:speech_to_text_settings)
|
2475
2563
|
@start_flow = args[:start_flow] if args.key?(:start_flow)
|
2564
|
+
@supported_language_codes = args[:supported_language_codes] if args.key?(:supported_language_codes)
|
2476
2565
|
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
2477
2566
|
end
|
2478
2567
|
end
|
@@ -3524,6 +3613,12 @@ module Google
|
|
3524
3613
|
# @return [String]
|
3525
3614
|
attr_accessor :agent_uri
|
3526
3615
|
|
3616
|
+
# Optional. Environment name. If not set, draft environment is assumed. Format: `
|
3617
|
+
# projects//locations//agents//environments/`.
|
3618
|
+
# Corresponds to the JSON property `environment`
|
3619
|
+
# @return [String]
|
3620
|
+
attr_accessor :environment
|
3621
|
+
|
3527
3622
|
def initialize(**args)
|
3528
3623
|
update!(**args)
|
3529
3624
|
end
|
@@ -3531,6 +3626,7 @@ module Google
|
|
3531
3626
|
# Update properties of this object
|
3532
3627
|
def update!(**args)
|
3533
3628
|
@agent_uri = args[:agent_uri] if args.key?(:agent_uri)
|
3629
|
+
@environment = args[:environment] if args.key?(:environment)
|
3534
3630
|
end
|
3535
3631
|
end
|
3536
3632
|
|
@@ -3561,6 +3657,61 @@ module Google
|
|
3561
3657
|
end
|
3562
3658
|
end
|
3563
3659
|
|
3660
|
+
# The request message for Flows.ExportFlow.
|
3661
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowRequest
|
3662
|
+
include Google::Apis::Core::Hashable
|
3663
|
+
|
3664
|
+
# Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
|
3665
|
+
# URI to export the flow to. The format of this URI must be `gs:///`. If left
|
3666
|
+
# unspecified, the serialized flow is returned inline.
|
3667
|
+
# Corresponds to the JSON property `flowUri`
|
3668
|
+
# @return [String]
|
3669
|
+
attr_accessor :flow_uri
|
3670
|
+
|
3671
|
+
# Optional. Whether to export flows referenced by the specified flow.
|
3672
|
+
# Corresponds to the JSON property `includeReferencedFlows`
|
3673
|
+
# @return [Boolean]
|
3674
|
+
attr_accessor :include_referenced_flows
|
3675
|
+
alias_method :include_referenced_flows?, :include_referenced_flows
|
3676
|
+
|
3677
|
+
def initialize(**args)
|
3678
|
+
update!(**args)
|
3679
|
+
end
|
3680
|
+
|
3681
|
+
# Update properties of this object
|
3682
|
+
def update!(**args)
|
3683
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
3684
|
+
@include_referenced_flows = args[:include_referenced_flows] if args.key?(:include_referenced_flows)
|
3685
|
+
end
|
3686
|
+
end
|
3687
|
+
|
3688
|
+
# The response message for Flows.ExportFlow.
|
3689
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
|
3690
|
+
include Google::Apis::Core::Hashable
|
3691
|
+
|
3692
|
+
# Uncompressed raw byte content for flow.
|
3693
|
+
# Corresponds to the JSON property `flowContent`
|
3694
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
3695
|
+
# @return [String]
|
3696
|
+
attr_accessor :flow_content
|
3697
|
+
|
3698
|
+
# The URI to a file containing the exported flow. This field is populated only
|
3699
|
+
# if `flow_uri` is specified in ExportFlowRequest.
|
3700
|
+
# Corresponds to the JSON property `flowUri`
|
3701
|
+
# @return [String]
|
3702
|
+
attr_accessor :flow_uri
|
3703
|
+
|
3704
|
+
def initialize(**args)
|
3705
|
+
update!(**args)
|
3706
|
+
end
|
3707
|
+
|
3708
|
+
# Update properties of this object
|
3709
|
+
def update!(**args)
|
3710
|
+
@flow_content = args[:flow_content] if args.key?(:flow_content)
|
3711
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
3712
|
+
end
|
3713
|
+
end
|
3714
|
+
|
3564
3715
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
3565
3716
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
3566
3717
|
include Google::Apis::Core::Hashable
|
@@ -3685,6 +3836,15 @@ module Google
|
|
3685
3836
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1NluSettings]
|
3686
3837
|
attr_accessor :nlu_settings
|
3687
3838
|
|
3839
|
+
# A flow's transition route group serve two purposes: * They are responsible for
|
3840
|
+
# matching the user's first utterances in the flow. * They are inherited by
|
3841
|
+
# every page's transition route groups. Transition route groups defined in the
|
3842
|
+
# page have higher priority than those defined in the flow. Format:`projects//
|
3843
|
+
# locations//agents//flows//transitionRouteGroups/`.
|
3844
|
+
# Corresponds to the JSON property `transitionRouteGroups`
|
3845
|
+
# @return [Array<String>]
|
3846
|
+
attr_accessor :transition_route_groups
|
3847
|
+
|
3688
3848
|
# A flow's transition routes serve two purposes: * They are responsible for
|
3689
3849
|
# matching the user's first utterances in the flow. * They are inherited by
|
3690
3850
|
# every page's transition routes and can support use cases such as the user
|
@@ -3709,6 +3869,7 @@ module Google
|
|
3709
3869
|
@event_handlers = args[:event_handlers] if args.key?(:event_handlers)
|
3710
3870
|
@name = args[:name] if args.key?(:name)
|
3711
3871
|
@nlu_settings = args[:nlu_settings] if args.key?(:nlu_settings)
|
3872
|
+
@transition_route_groups = args[:transition_route_groups] if args.key?(:transition_route_groups)
|
3712
3873
|
@transition_routes = args[:transition_routes] if args.key?(:transition_routes)
|
3713
3874
|
end
|
3714
3875
|
end
|
@@ -4180,6 +4341,59 @@ module Google
|
|
4180
4341
|
end
|
4181
4342
|
end
|
4182
4343
|
|
4344
|
+
# The request message for Flows.ImportFlow.
|
4345
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowRequest
|
4346
|
+
include Google::Apis::Core::Hashable
|
4347
|
+
|
4348
|
+
# Uncompressed raw byte content for flow.
|
4349
|
+
# Corresponds to the JSON property `flowContent`
|
4350
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
4351
|
+
# @return [String]
|
4352
|
+
attr_accessor :flow_content
|
4353
|
+
|
4354
|
+
# The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
|
4355
|
+
# import flow from. The format of this URI must be `gs:///`.
|
4356
|
+
# Corresponds to the JSON property `flowUri`
|
4357
|
+
# @return [String]
|
4358
|
+
attr_accessor :flow_uri
|
4359
|
+
|
4360
|
+
# Flow import mode. If not specified, `KEEP` is assumed.
|
4361
|
+
# Corresponds to the JSON property `importOption`
|
4362
|
+
# @return [String]
|
4363
|
+
attr_accessor :import_option
|
4364
|
+
|
4365
|
+
def initialize(**args)
|
4366
|
+
update!(**args)
|
4367
|
+
end
|
4368
|
+
|
4369
|
+
# Update properties of this object
|
4370
|
+
def update!(**args)
|
4371
|
+
@flow_content = args[:flow_content] if args.key?(:flow_content)
|
4372
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
4373
|
+
@import_option = args[:import_option] if args.key?(:import_option)
|
4374
|
+
end
|
4375
|
+
end
|
4376
|
+
|
4377
|
+
# The response message for Flows.ImportFlow.
|
4378
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
|
4379
|
+
include Google::Apis::Core::Hashable
|
4380
|
+
|
4381
|
+
# The unique identifier of the new flow. Format: `projects//locations//agents//
|
4382
|
+
# flows/`.
|
4383
|
+
# Corresponds to the JSON property `flow`
|
4384
|
+
# @return [String]
|
4385
|
+
attr_accessor :flow
|
4386
|
+
|
4387
|
+
def initialize(**args)
|
4388
|
+
update!(**args)
|
4389
|
+
end
|
4390
|
+
|
4391
|
+
# Update properties of this object
|
4392
|
+
def update!(**args)
|
4393
|
+
@flow = args[:flow] if args.key?(:flow)
|
4394
|
+
end
|
4395
|
+
end
|
4396
|
+
|
4183
4397
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
4184
4398
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
4185
4399
|
include Google::Apis::Core::Hashable
|
@@ -4330,8 +4544,8 @@ module Google
|
|
4330
4544
|
class GoogleCloudDialogflowCxV3beta1Intent
|
4331
4545
|
include Google::Apis::Core::Hashable
|
4332
4546
|
|
4333
|
-
#
|
4334
|
-
#
|
4547
|
+
# Human readable description for better understanding an intent like its scope,
|
4548
|
+
# content, result etc. Maximum character limit: 140 characters.
|
4335
4549
|
# Corresponds to the JSON property `description`
|
4336
4550
|
# @return [String]
|
4337
4551
|
attr_accessor :description
|
@@ -4351,14 +4565,14 @@ module Google
|
|
4351
4565
|
attr_accessor :is_fallback
|
4352
4566
|
alias_method :is_fallback?, :is_fallback
|
4353
4567
|
|
4354
|
-
#
|
4355
|
-
#
|
4356
|
-
#
|
4357
|
-
#
|
4358
|
-
#
|
4359
|
-
#
|
4360
|
-
#
|
4361
|
-
#
|
4568
|
+
# The key/value metadata to label an intent. Labels can contain lowercase
|
4569
|
+
# letters, digits and the symbols '-' and '_'. International characters are
|
4570
|
+
# allowed, including letters from unicase alphabets. Keys must start with a
|
4571
|
+
# letter. Keys and values can be no longer than 63 characters and no more than
|
4572
|
+
# 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently
|
4573
|
+
# allowed Dialogflow defined labels include: * sys-head * sys-contextual The
|
4574
|
+
# above labels do not require value. "sys-head" means the intent is a head
|
4575
|
+
# intent. "sys-contextual" means the intent is a contextual intent.
|
4362
4576
|
# Corresponds to the JSON property `labels`
|
4363
4577
|
# @return [Hash<String,String>]
|
4364
4578
|
attr_accessor :labels
|
@@ -4978,8 +5192,8 @@ module Google
|
|
4978
5192
|
class GoogleCloudDialogflowCxV3beta1LoadVersionRequest
|
4979
5193
|
include Google::Apis::Core::Hashable
|
4980
5194
|
|
4981
|
-
# This field is used to prevent accidental overwrite of other agent resources
|
4982
|
-
#
|
5195
|
+
# This field is used to prevent accidental overwrite of other agent resources,
|
5196
|
+
# which can potentially impact other flow's behavior. If `
|
4983
5197
|
# allow_override_agent_resources` is false, conflicted agent-level resources
|
4984
5198
|
# will not be overridden (i.e. intents, entities, webhooks).
|
4985
5199
|
# Corresponds to the JSON property `allowOverrideAgentResources`
|
@@ -5151,7 +5365,7 @@ module Google
|
|
5151
5365
|
attr_accessor :text
|
5152
5366
|
|
5153
5367
|
# If natural language speech audio was provided as input, this field will
|
5154
|
-
# contain the
|
5368
|
+
# contain the transcript for the audio.
|
5155
5369
|
# Corresponds to the JSON property `transcript`
|
5156
5370
|
# @return [String]
|
5157
5371
|
attr_accessor :transcript
|
@@ -5163,7 +5377,7 @@ module Google
|
|
5163
5377
|
attr_accessor :trigger_event
|
5164
5378
|
|
5165
5379
|
# If an intent was provided as input, this field will contain a copy of the
|
5166
|
-
# intent identifier.
|
5380
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
5167
5381
|
# Corresponds to the JSON property `triggerIntent`
|
5168
5382
|
# @return [String]
|
5169
5383
|
attr_accessor :trigger_intent
|
@@ -5516,6 +5730,16 @@ module Google
|
|
5516
5730
|
attr_accessor :analyze_query_text_sentiment
|
5517
5731
|
alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment
|
5518
5732
|
|
5733
|
+
# The unique identifier of the page to override the current page in the session.
|
5734
|
+
# Format: `projects//locations//agents//pages/`. If `current_page` is specified,
|
5735
|
+
# the previous state of the session will be ignored by Dialogflow, including the
|
5736
|
+
# previous page and the previous session parameters. In most cases, current_page
|
5737
|
+
# and parameters should be configured together to direct a session to a specific
|
5738
|
+
# state.
|
5739
|
+
# Corresponds to the JSON property `currentPage`
|
5740
|
+
# @return [String]
|
5741
|
+
attr_accessor :current_page
|
5742
|
+
|
5519
5743
|
# Whether to disable webhook calls for this request.
|
5520
5744
|
# Corresponds to the JSON property `disableWebhook`
|
5521
5745
|
# @return [Boolean]
|
@@ -5524,28 +5748,32 @@ module Google
|
|
5524
5748
|
|
5525
5749
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
5526
5750
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
5527
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
5528
|
-
# within normalized ranges.
|
5751
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
5752
|
+
# must be within normalized ranges.
|
5529
5753
|
# Corresponds to the JSON property `geoLocation`
|
5530
5754
|
# @return [Google::Apis::DialogflowV3beta1::GoogleTypeLatLng]
|
5531
5755
|
attr_accessor :geo_location
|
5532
5756
|
|
5533
5757
|
# Additional parameters to be put into session parameters. To remove a parameter
|
5534
5758
|
# from the session, clients should explicitly set the parameter value to null.
|
5535
|
-
#
|
5536
|
-
#
|
5537
|
-
#
|
5538
|
-
#
|
5539
|
-
#
|
5540
|
-
#
|
5541
|
-
# type
|
5542
|
-
#
|
5759
|
+
# You can reference the session parameters in the agent with the following
|
5760
|
+
# format: $session.params.parameter-id. Depending on your protocol or client
|
5761
|
+
# library language, this is a map, associative array, symbol table, dictionary,
|
5762
|
+
# or JSON object composed of a collection of (MapKey, MapValue) pairs: - MapKey
|
5763
|
+
# type: string - MapKey value: parameter name - MapValue type: - If parameter's
|
5764
|
+
# entity type is a composite entity: map - Else: depending on parameter value
|
5765
|
+
# type, could be one of string, number, boolean, null, list or map - MapValue
|
5766
|
+
# value: - If parameter's entity type is a composite entity: map from composite
|
5767
|
+
# entity property names to property values - Else: parameter value
|
5543
5768
|
# Corresponds to the JSON property `parameters`
|
5544
5769
|
# @return [Hash<String,Object>]
|
5545
5770
|
attr_accessor :parameters
|
5546
5771
|
|
5547
5772
|
# This field can be used to pass custom data into the webhook associated with
|
5548
|
-
# the agent. Arbitrary JSON objects are supported.
|
5773
|
+
# the agent. Arbitrary JSON objects are supported. Some integrations that query
|
5774
|
+
# a Dialogflow agent may provide additional information in the payload. In
|
5775
|
+
# particular, for the Dialogflow Phone Gateway integration, this field has the
|
5776
|
+
# form: ``` ` "telephony": ` "caller_id": "+18558363987" ` ` ```
|
5549
5777
|
# Corresponds to the JSON property `payload`
|
5550
5778
|
# @return [Hash<String,Object>]
|
5551
5779
|
attr_accessor :payload
|
@@ -5583,6 +5811,7 @@ module Google
|
|
5583
5811
|
# Update properties of this object
|
5584
5812
|
def update!(**args)
|
5585
5813
|
@analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
|
5814
|
+
@current_page = args[:current_page] if args.key?(:current_page)
|
5586
5815
|
@disable_webhook = args[:disable_webhook] if args.key?(:disable_webhook)
|
5587
5816
|
@geo_location = args[:geo_location] if args.key?(:geo_location)
|
5588
5817
|
@parameters = args[:parameters] if args.key?(:parameters)
|
@@ -5683,7 +5912,7 @@ module Google
|
|
5683
5912
|
attr_accessor :text
|
5684
5913
|
|
5685
5914
|
# If natural language speech audio was provided as input, this field will
|
5686
|
-
# contain the
|
5915
|
+
# contain the transcript for the audio.
|
5687
5916
|
# Corresponds to the JSON property `transcript`
|
5688
5917
|
# @return [String]
|
5689
5918
|
attr_accessor :transcript
|
@@ -5695,7 +5924,7 @@ module Google
|
|
5695
5924
|
attr_accessor :trigger_event
|
5696
5925
|
|
5697
5926
|
# If an intent was provided as input, this field will contain a copy of the
|
5698
|
-
# intent identifier.
|
5927
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
5699
5928
|
# Corresponds to the JSON property `triggerIntent`
|
5700
5929
|
# @return [String]
|
5701
5930
|
attr_accessor :trigger_intent
|
@@ -6202,8 +6431,8 @@ module Google
|
|
6202
6431
|
# @return [Array<String>]
|
6203
6432
|
attr_accessor :purge_data_types
|
6204
6433
|
|
6205
|
-
# Defines
|
6206
|
-
#
|
6434
|
+
# Defines the data for which Dialogflow applies redaction. Dialogflow does not
|
6435
|
+
# redact data that it does not have access to – for example, Cloud logging.
|
6207
6436
|
# Corresponds to the JSON property `redactionScope`
|
6208
6437
|
# @return [String]
|
6209
6438
|
attr_accessor :redaction_scope
|
@@ -6213,10 +6442,12 @@ module Google
|
|
6213
6442
|
# @return [String]
|
6214
6443
|
attr_accessor :redaction_strategy
|
6215
6444
|
|
6216
|
-
# Retains
|
6217
|
-
#
|
6218
|
-
#
|
6219
|
-
#
|
6445
|
+
# Retains data in interaction logging for the specified number of days. This
|
6446
|
+
# does not apply to Cloud logging, which is owned by the user - not Dialogflow.
|
6447
|
+
# User must Set a value lower than Dialogflow's default 30d TTL. Setting a value
|
6448
|
+
# higher than that has no effect. A missing value or setting to 0 also means we
|
6449
|
+
# use Dialogflow's default TTL. Note: Interaction logging is a limited access
|
6450
|
+
# feature. Talk to your Google representative to check availability for you.
|
6220
6451
|
# Corresponds to the JSON property `retentionWindowDays`
|
6221
6452
|
# @return [Fixnum]
|
6222
6453
|
attr_accessor :retention_window_days
|
@@ -7334,6 +7565,12 @@ module Google
|
|
7334
7565
|
# @return [String]
|
7335
7566
|
attr_accessor :name
|
7336
7567
|
|
7568
|
+
# Represents configuration for a [Service Directory](https://cloud.google.com/
|
7569
|
+
# service-directory) service.
|
7570
|
+
# Corresponds to the JSON property `serviceDirectory`
|
7571
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig]
|
7572
|
+
attr_accessor :service_directory
|
7573
|
+
|
7337
7574
|
# Webhook execution timeout. Execution is considered failed if Dialogflow doesn'
|
7338
7575
|
# t receive a response from webhook at the end of the timeout period. Defaults
|
7339
7576
|
# to 5 seconds, maximum allowed timeout is 30 seconds.
|
@@ -7351,6 +7588,7 @@ module Google
|
|
7351
7588
|
@display_name = args[:display_name] if args.key?(:display_name)
|
7352
7589
|
@generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
|
7353
7590
|
@name = args[:name] if args.key?(:name)
|
7591
|
+
@service_directory = args[:service_directory] if args.key?(:service_directory)
|
7354
7592
|
@timeout = args[:timeout] if args.key?(:timeout)
|
7355
7593
|
end
|
7356
7594
|
end
|
@@ -7393,7 +7631,8 @@ module Google
|
|
7393
7631
|
end
|
7394
7632
|
end
|
7395
7633
|
|
7396
|
-
# The request message for a webhook call.
|
7634
|
+
# The request message for a webhook call. The request is sent as a JSON object
|
7635
|
+
# and the field names will be presented in camel cases.
|
7397
7636
|
class GoogleCloudDialogflowCxV3beta1WebhookRequest
|
7398
7637
|
include Google::Apis::Core::Hashable
|
7399
7638
|
|
@@ -7413,6 +7652,11 @@ module Google
|
|
7413
7652
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]
|
7414
7653
|
attr_accessor :intent_info
|
7415
7654
|
|
7655
|
+
# The language code specified in the original request.
|
7656
|
+
# Corresponds to the JSON property `languageCode`
|
7657
|
+
# @return [String]
|
7658
|
+
attr_accessor :language_code
|
7659
|
+
|
7416
7660
|
# The list of rich message responses to present to the user. Webhook can choose
|
7417
7661
|
# to append or replace this list in WebhookResponse.fulfillment_response;
|
7418
7662
|
# Corresponds to the JSON property `messages`
|
@@ -7439,6 +7683,30 @@ module Google
|
|
7439
7683
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionInfo]
|
7440
7684
|
attr_accessor :session_info
|
7441
7685
|
|
7686
|
+
# If natural language text was provided as input, this field will contain a copy
|
7687
|
+
# of the text.
|
7688
|
+
# Corresponds to the JSON property `text`
|
7689
|
+
# @return [String]
|
7690
|
+
attr_accessor :text
|
7691
|
+
|
7692
|
+
# If natural language speech audio was provided as input, this field will
|
7693
|
+
# contain the transcript for the audio.
|
7694
|
+
# Corresponds to the JSON property `transcript`
|
7695
|
+
# @return [String]
|
7696
|
+
attr_accessor :transcript
|
7697
|
+
|
7698
|
+
# If an event was provided as input, this field will contain the name of the
|
7699
|
+
# event.
|
7700
|
+
# Corresponds to the JSON property `triggerEvent`
|
7701
|
+
# @return [String]
|
7702
|
+
attr_accessor :trigger_event
|
7703
|
+
|
7704
|
+
# If an intent was provided as input, this field will contain a copy of the
|
7705
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
7706
|
+
# Corresponds to the JSON property `triggerIntent`
|
7707
|
+
# @return [String]
|
7708
|
+
attr_accessor :trigger_intent
|
7709
|
+
|
7442
7710
|
def initialize(**args)
|
7443
7711
|
update!(**args)
|
7444
7712
|
end
|
@@ -7448,11 +7716,16 @@ module Google
|
|
7448
7716
|
@detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
|
7449
7717
|
@fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
|
7450
7718
|
@intent_info = args[:intent_info] if args.key?(:intent_info)
|
7719
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
7451
7720
|
@messages = args[:messages] if args.key?(:messages)
|
7452
7721
|
@page_info = args[:page_info] if args.key?(:page_info)
|
7453
7722
|
@payload = args[:payload] if args.key?(:payload)
|
7454
7723
|
@sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
|
7455
7724
|
@session_info = args[:session_info] if args.key?(:session_info)
|
7725
|
+
@text = args[:text] if args.key?(:text)
|
7726
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
7727
|
+
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
7728
|
+
@trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
|
7456
7729
|
end
|
7457
7730
|
end
|
7458
7731
|
|
@@ -7645,6 +7918,35 @@ module Google
|
|
7645
7918
|
end
|
7646
7919
|
end
|
7647
7920
|
|
7921
|
+
# Represents configuration for a [Service Directory](https://cloud.google.com/
|
7922
|
+
# service-directory) service.
|
7923
|
+
class GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig
|
7924
|
+
include Google::Apis::Core::Hashable
|
7925
|
+
|
7926
|
+
# Represents configuration for a generic web service.
|
7927
|
+
# Corresponds to the JSON property `genericWebService`
|
7928
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookGenericWebService]
|
7929
|
+
attr_accessor :generic_web_service
|
7930
|
+
|
7931
|
+
# Required. The name of [Service Directory](https://cloud.google.com/service-
|
7932
|
+
# directory) service. Format: `projects//locations//namespaces//services/`. `
|
7933
|
+
# Location ID` of the service directory must be the same as the location of the
|
7934
|
+
# agent.
|
7935
|
+
# Corresponds to the JSON property `service`
|
7936
|
+
# @return [String]
|
7937
|
+
attr_accessor :service
|
7938
|
+
|
7939
|
+
def initialize(**args)
|
7940
|
+
update!(**args)
|
7941
|
+
end
|
7942
|
+
|
7943
|
+
# Update properties of this object
|
7944
|
+
def update!(**args)
|
7945
|
+
@generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
|
7946
|
+
@service = args[:service] if args.key?(:service)
|
7947
|
+
end
|
7948
|
+
end
|
7949
|
+
|
7648
7950
|
# Represents a part of a message possibly annotated with an entity. The part can
|
7649
7951
|
# be an entity or purely a part of the message between two entities or message
|
7650
7952
|
# start/end.
|
@@ -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
|
|