google-apis-dialogflow_v2 0.8.0 → 0.13.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_v2.rb +1 -1
- data/lib/google/apis/dialogflow_v2/classes.rb +697 -36
- data/lib/google/apis/dialogflow_v2/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2/representations.rb +288 -0
- data/lib/google/apis/dialogflow_v2/service.rb +809 -13
- 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: 10a0f41bc363c3205d608b9146e40dffc7f71def5bbe623245be0c5f7bb97b36
|
4
|
+
data.tar.gz: 430b992d80ff6037ad87d5ce4e3e387e22b03251cc4f981d9f1158f7e0d013d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0d8aa1f30a62d2fe3b5bdcf4f59f65f84654775c2fb92ef5f50ce2a525da18e398b3ea047ae20030ce93a90de2eae7641c318d1ff82baeb9f98180a36cb8616
|
7
|
+
data.tar.gz: 54c32e4a984f99c4a3d37436b0a319399b1f48756febd68522a7bfc4a28bf6a9c867a814f5f696d5e6b8f094d86a158b7063d80a86b086b63e408b49bba9aea4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# Release history for google-apis-dialogflow_v2
|
2
2
|
|
3
|
+
### v0.13.0 (2021-05-26)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210524
|
6
|
+
|
7
|
+
### v0.12.0 (2021-05-19)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210517
|
10
|
+
|
11
|
+
### v0.11.0 (2021-04-28)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210426
|
14
|
+
|
15
|
+
### v0.10.0 (2021-04-01)
|
16
|
+
|
17
|
+
* Regenerated from discovery document revision 20210329
|
18
|
+
|
19
|
+
### v0.9.0 (2021-03-23)
|
20
|
+
|
21
|
+
* Regenerated from discovery document revision 20210320
|
22
|
+
|
3
23
|
### v0.8.0 (2021-03-19)
|
4
24
|
|
5
25
|
* Regenerated from discovery document revision 20210318
|
@@ -30,7 +30,7 @@ module Google
|
|
30
30
|
# This is NOT the gem version.
|
31
31
|
VERSION = 'V2'
|
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
|
@@ -92,6 +92,45 @@ module Google
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
+
# Represents a result from running a test case in an agent environment.
|
96
|
+
class GoogleCloudDialogflowCxV3ContinuousTestResult
|
97
|
+
include Google::Apis::Core::Hashable
|
98
|
+
|
99
|
+
# The resource name for the continuous test result. Format: `projects//locations/
|
100
|
+
# /agents//environments//continuousTestResults/`.
|
101
|
+
# Corresponds to the JSON property `name`
|
102
|
+
# @return [String]
|
103
|
+
attr_accessor :name
|
104
|
+
|
105
|
+
# The result of this continuous test run, i.e. whether all the tests in this
|
106
|
+
# continuous test run pass or not.
|
107
|
+
# Corresponds to the JSON property `result`
|
108
|
+
# @return [String]
|
109
|
+
attr_accessor :result
|
110
|
+
|
111
|
+
# Time when the continuous testing run starts.
|
112
|
+
# Corresponds to the JSON property `runTime`
|
113
|
+
# @return [String]
|
114
|
+
attr_accessor :run_time
|
115
|
+
|
116
|
+
# A list of individual test case results names in this continuous test run.
|
117
|
+
# Corresponds to the JSON property `testCaseResults`
|
118
|
+
# @return [Array<String>]
|
119
|
+
attr_accessor :test_case_results
|
120
|
+
|
121
|
+
def initialize(**args)
|
122
|
+
update!(**args)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Update properties of this object
|
126
|
+
def update!(**args)
|
127
|
+
@name = args[:name] if args.key?(:name)
|
128
|
+
@result = args[:result] if args.key?(:result)
|
129
|
+
@run_time = args[:run_time] if args.key?(:run_time)
|
130
|
+
@test_case_results = args[:test_case_results] if args.key?(:test_case_results)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
95
134
|
# One interaction between a human and virtual agent. The human provides some
|
96
135
|
# input and the virtual agent provides a response.
|
97
136
|
class GoogleCloudDialogflowCxV3ConversationTurn
|
@@ -415,6 +454,33 @@ module Google
|
|
415
454
|
end
|
416
455
|
end
|
417
456
|
|
457
|
+
# The response message for Flows.ExportFlow.
|
458
|
+
class GoogleCloudDialogflowCxV3ExportFlowResponse
|
459
|
+
include Google::Apis::Core::Hashable
|
460
|
+
|
461
|
+
# Uncompressed raw byte content for flow.
|
462
|
+
# Corresponds to the JSON property `flowContent`
|
463
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
464
|
+
# @return [String]
|
465
|
+
attr_accessor :flow_content
|
466
|
+
|
467
|
+
# The URI to a file containing the exported flow. This field is populated only
|
468
|
+
# if `flow_uri` is specified in ExportFlowRequest.
|
469
|
+
# Corresponds to the JSON property `flowUri`
|
470
|
+
# @return [String]
|
471
|
+
attr_accessor :flow_uri
|
472
|
+
|
473
|
+
def initialize(**args)
|
474
|
+
update!(**args)
|
475
|
+
end
|
476
|
+
|
477
|
+
# Update properties of this object
|
478
|
+
def update!(**args)
|
479
|
+
@flow_content = args[:flow_content] if args.key?(:flow_content)
|
480
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
481
|
+
end
|
482
|
+
end
|
483
|
+
|
418
484
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
419
485
|
class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
|
420
486
|
include Google::Apis::Core::Hashable
|
@@ -813,6 +879,26 @@ module Google
|
|
813
879
|
end
|
814
880
|
end
|
815
881
|
|
882
|
+
# The response message for Flows.ImportFlow.
|
883
|
+
class GoogleCloudDialogflowCxV3ImportFlowResponse
|
884
|
+
include Google::Apis::Core::Hashable
|
885
|
+
|
886
|
+
# The unique identifier of the new flow. Format: `projects//locations//agents//
|
887
|
+
# flows/`.
|
888
|
+
# Corresponds to the JSON property `flow`
|
889
|
+
# @return [String]
|
890
|
+
attr_accessor :flow
|
891
|
+
|
892
|
+
def initialize(**args)
|
893
|
+
update!(**args)
|
894
|
+
end
|
895
|
+
|
896
|
+
# Update properties of this object
|
897
|
+
def update!(**args)
|
898
|
+
@flow = args[:flow] if args.key?(:flow)
|
899
|
+
end
|
900
|
+
end
|
901
|
+
|
816
902
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
817
903
|
class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
|
818
904
|
include Google::Apis::Core::Hashable
|
@@ -936,8 +1022,8 @@ module Google
|
|
936
1022
|
class GoogleCloudDialogflowCxV3Intent
|
937
1023
|
include Google::Apis::Core::Hashable
|
938
1024
|
|
939
|
-
#
|
940
|
-
#
|
1025
|
+
# Human readable description for better understanding an intent like its scope,
|
1026
|
+
# content, result etc. Maximum character limit: 140 characters.
|
941
1027
|
# Corresponds to the JSON property `description`
|
942
1028
|
# @return [String]
|
943
1029
|
attr_accessor :description
|
@@ -957,14 +1043,14 @@ module Google
|
|
957
1043
|
attr_accessor :is_fallback
|
958
1044
|
alias_method :is_fallback?, :is_fallback
|
959
1045
|
|
960
|
-
#
|
961
|
-
#
|
962
|
-
#
|
963
|
-
#
|
964
|
-
#
|
965
|
-
#
|
966
|
-
#
|
967
|
-
#
|
1046
|
+
# The key/value metadata to label an intent. Labels can contain lowercase
|
1047
|
+
# letters, digits and the symbols '-' and '_'. International characters are
|
1048
|
+
# allowed, including letters from unicase alphabets. Keys must start with a
|
1049
|
+
# letter. Keys and values can be no longer than 63 characters and no more than
|
1050
|
+
# 128 bytes. Prefix "sys." is reserved for Dialogflow defined labels. Currently
|
1051
|
+
# allowed Dialogflow defined labels include: * sys.head * sys.contextual The
|
1052
|
+
# above labels do not require value. "sys.head" means the intent is a head
|
1053
|
+
# intent. "sys.contextual" means the intent is a contextual intent.
|
968
1054
|
# Corresponds to the JSON property `labels`
|
969
1055
|
# @return [Hash<String,String>]
|
970
1056
|
attr_accessor :labels
|
@@ -1723,6 +1809,45 @@ module Google
|
|
1723
1809
|
end
|
1724
1810
|
end
|
1725
1811
|
|
1812
|
+
# Metadata returned for the Environments.RunContinuousTest long running
|
1813
|
+
# operation.
|
1814
|
+
class GoogleCloudDialogflowCxV3RunContinuousTestMetadata
|
1815
|
+
include Google::Apis::Core::Hashable
|
1816
|
+
|
1817
|
+
# The test errors.
|
1818
|
+
# Corresponds to the JSON property `errors`
|
1819
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TestError>]
|
1820
|
+
attr_accessor :errors
|
1821
|
+
|
1822
|
+
def initialize(**args)
|
1823
|
+
update!(**args)
|
1824
|
+
end
|
1825
|
+
|
1826
|
+
# Update properties of this object
|
1827
|
+
def update!(**args)
|
1828
|
+
@errors = args[:errors] if args.key?(:errors)
|
1829
|
+
end
|
1830
|
+
end
|
1831
|
+
|
1832
|
+
# The response message for Environments.RunContinuousTest.
|
1833
|
+
class GoogleCloudDialogflowCxV3RunContinuousTestResponse
|
1834
|
+
include Google::Apis::Core::Hashable
|
1835
|
+
|
1836
|
+
# Represents a result from running a test case in an agent environment.
|
1837
|
+
# Corresponds to the JSON property `continuousTestResult`
|
1838
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ContinuousTestResult]
|
1839
|
+
attr_accessor :continuous_test_result
|
1840
|
+
|
1841
|
+
def initialize(**args)
|
1842
|
+
update!(**args)
|
1843
|
+
end
|
1844
|
+
|
1845
|
+
# Update properties of this object
|
1846
|
+
def update!(**args)
|
1847
|
+
@continuous_test_result = args[:continuous_test_result] if args.key?(:continuous_test_result)
|
1848
|
+
end
|
1849
|
+
end
|
1850
|
+
|
1726
1851
|
# Metadata returned for the TestCases.RunTestCase long running operation.
|
1727
1852
|
class GoogleCloudDialogflowCxV3RunTestCaseMetadata
|
1728
1853
|
include Google::Apis::Core::Hashable
|
@@ -2128,7 +2253,8 @@ module Google
|
|
2128
2253
|
end
|
2129
2254
|
end
|
2130
2255
|
|
2131
|
-
# The request message for a webhook call.
|
2256
|
+
# The request message for a webhook call. The request is sent as a JSON object
|
2257
|
+
# and the field names will be presented in camel cases.
|
2132
2258
|
class GoogleCloudDialogflowCxV3WebhookRequest
|
2133
2259
|
include Google::Apis::Core::Hashable
|
2134
2260
|
|
@@ -2148,6 +2274,11 @@ module Google
|
|
2148
2274
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo]
|
2149
2275
|
attr_accessor :intent_info
|
2150
2276
|
|
2277
|
+
# The language code specified in the original request.
|
2278
|
+
# Corresponds to the JSON property `languageCode`
|
2279
|
+
# @return [String]
|
2280
|
+
attr_accessor :language_code
|
2281
|
+
|
2151
2282
|
# The list of rich message responses to present to the user. Webhook can choose
|
2152
2283
|
# to append or replace this list in WebhookResponse.fulfillment_response;
|
2153
2284
|
# Corresponds to the JSON property `messages`
|
@@ -2174,6 +2305,30 @@ module Google
|
|
2174
2305
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3SessionInfo]
|
2175
2306
|
attr_accessor :session_info
|
2176
2307
|
|
2308
|
+
# If natural language text was provided as input, this field will contain a copy
|
2309
|
+
# of the text.
|
2310
|
+
# Corresponds to the JSON property `text`
|
2311
|
+
# @return [String]
|
2312
|
+
attr_accessor :text
|
2313
|
+
|
2314
|
+
# If natural language speech audio was provided as input, this field will
|
2315
|
+
# contain the transcript for the audio.
|
2316
|
+
# Corresponds to the JSON property `transcript`
|
2317
|
+
# @return [String]
|
2318
|
+
attr_accessor :transcript
|
2319
|
+
|
2320
|
+
# If an event was provided as input, this field will contain the name of the
|
2321
|
+
# event.
|
2322
|
+
# Corresponds to the JSON property `triggerEvent`
|
2323
|
+
# @return [String]
|
2324
|
+
attr_accessor :trigger_event
|
2325
|
+
|
2326
|
+
# If an intent was provided as input, this field will contain a copy of the
|
2327
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
2328
|
+
# Corresponds to the JSON property `triggerIntent`
|
2329
|
+
# @return [String]
|
2330
|
+
attr_accessor :trigger_intent
|
2331
|
+
|
2177
2332
|
def initialize(**args)
|
2178
2333
|
update!(**args)
|
2179
2334
|
end
|
@@ -2183,11 +2338,16 @@ module Google
|
|
2183
2338
|
@detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
|
2184
2339
|
@fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
|
2185
2340
|
@intent_info = args[:intent_info] if args.key?(:intent_info)
|
2341
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
2186
2342
|
@messages = args[:messages] if args.key?(:messages)
|
2187
2343
|
@page_info = args[:page_info] if args.key?(:page_info)
|
2188
2344
|
@payload = args[:payload] if args.key?(:payload)
|
2189
2345
|
@sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
|
2190
2346
|
@session_info = args[:session_info] if args.key?(:session_info)
|
2347
|
+
@text = args[:text] if args.key?(:text)
|
2348
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
2349
|
+
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
2350
|
+
@trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
|
2191
2351
|
end
|
2192
2352
|
end
|
2193
2353
|
|
@@ -2450,6 +2610,45 @@ module Google
|
|
2450
2610
|
end
|
2451
2611
|
end
|
2452
2612
|
|
2613
|
+
# Represents a result from running a test case in an agent environment.
|
2614
|
+
class GoogleCloudDialogflowCxV3beta1ContinuousTestResult
|
2615
|
+
include Google::Apis::Core::Hashable
|
2616
|
+
|
2617
|
+
# The resource name for the continuous test result. Format: `projects//locations/
|
2618
|
+
# /agents//environments//continuousTestResults/`.
|
2619
|
+
# Corresponds to the JSON property `name`
|
2620
|
+
# @return [String]
|
2621
|
+
attr_accessor :name
|
2622
|
+
|
2623
|
+
# The result of this continuous test run, i.e. whether all the tests in this
|
2624
|
+
# continuous test run pass or not.
|
2625
|
+
# Corresponds to the JSON property `result`
|
2626
|
+
# @return [String]
|
2627
|
+
attr_accessor :result
|
2628
|
+
|
2629
|
+
# Time when the continuous testing run starts.
|
2630
|
+
# Corresponds to the JSON property `runTime`
|
2631
|
+
# @return [String]
|
2632
|
+
attr_accessor :run_time
|
2633
|
+
|
2634
|
+
# A list of individual test case results names in this continuous test run.
|
2635
|
+
# Corresponds to the JSON property `testCaseResults`
|
2636
|
+
# @return [Array<String>]
|
2637
|
+
attr_accessor :test_case_results
|
2638
|
+
|
2639
|
+
def initialize(**args)
|
2640
|
+
update!(**args)
|
2641
|
+
end
|
2642
|
+
|
2643
|
+
# Update properties of this object
|
2644
|
+
def update!(**args)
|
2645
|
+
@name = args[:name] if args.key?(:name)
|
2646
|
+
@result = args[:result] if args.key?(:result)
|
2647
|
+
@run_time = args[:run_time] if args.key?(:run_time)
|
2648
|
+
@test_case_results = args[:test_case_results] if args.key?(:test_case_results)
|
2649
|
+
end
|
2650
|
+
end
|
2651
|
+
|
2453
2652
|
# One interaction between a human and virtual agent. The human provides some
|
2454
2653
|
# input and the virtual agent provides a response.
|
2455
2654
|
class GoogleCloudDialogflowCxV3beta1ConversationTurn
|
@@ -2773,6 +2972,33 @@ module Google
|
|
2773
2972
|
end
|
2774
2973
|
end
|
2775
2974
|
|
2975
|
+
# The response message for Flows.ExportFlow.
|
2976
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
|
2977
|
+
include Google::Apis::Core::Hashable
|
2978
|
+
|
2979
|
+
# Uncompressed raw byte content for flow.
|
2980
|
+
# Corresponds to the JSON property `flowContent`
|
2981
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2982
|
+
# @return [String]
|
2983
|
+
attr_accessor :flow_content
|
2984
|
+
|
2985
|
+
# The URI to a file containing the exported flow. This field is populated only
|
2986
|
+
# if `flow_uri` is specified in ExportFlowRequest.
|
2987
|
+
# Corresponds to the JSON property `flowUri`
|
2988
|
+
# @return [String]
|
2989
|
+
attr_accessor :flow_uri
|
2990
|
+
|
2991
|
+
def initialize(**args)
|
2992
|
+
update!(**args)
|
2993
|
+
end
|
2994
|
+
|
2995
|
+
# Update properties of this object
|
2996
|
+
def update!(**args)
|
2997
|
+
@flow_content = args[:flow_content] if args.key?(:flow_content)
|
2998
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
2999
|
+
end
|
3000
|
+
end
|
3001
|
+
|
2776
3002
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
2777
3003
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
2778
3004
|
include Google::Apis::Core::Hashable
|
@@ -3171,6 +3397,26 @@ module Google
|
|
3171
3397
|
end
|
3172
3398
|
end
|
3173
3399
|
|
3400
|
+
# The response message for Flows.ImportFlow.
|
3401
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
|
3402
|
+
include Google::Apis::Core::Hashable
|
3403
|
+
|
3404
|
+
# The unique identifier of the new flow. Format: `projects//locations//agents//
|
3405
|
+
# flows/`.
|
3406
|
+
# Corresponds to the JSON property `flow`
|
3407
|
+
# @return [String]
|
3408
|
+
attr_accessor :flow
|
3409
|
+
|
3410
|
+
def initialize(**args)
|
3411
|
+
update!(**args)
|
3412
|
+
end
|
3413
|
+
|
3414
|
+
# Update properties of this object
|
3415
|
+
def update!(**args)
|
3416
|
+
@flow = args[:flow] if args.key?(:flow)
|
3417
|
+
end
|
3418
|
+
end
|
3419
|
+
|
3174
3420
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
3175
3421
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
3176
3422
|
include Google::Apis::Core::Hashable
|
@@ -3294,8 +3540,8 @@ module Google
|
|
3294
3540
|
class GoogleCloudDialogflowCxV3beta1Intent
|
3295
3541
|
include Google::Apis::Core::Hashable
|
3296
3542
|
|
3297
|
-
#
|
3298
|
-
#
|
3543
|
+
# Human readable description for better understanding an intent like its scope,
|
3544
|
+
# content, result etc. Maximum character limit: 140 characters.
|
3299
3545
|
# Corresponds to the JSON property `description`
|
3300
3546
|
# @return [String]
|
3301
3547
|
attr_accessor :description
|
@@ -3315,14 +3561,14 @@ module Google
|
|
3315
3561
|
attr_accessor :is_fallback
|
3316
3562
|
alias_method :is_fallback?, :is_fallback
|
3317
3563
|
|
3318
|
-
#
|
3319
|
-
#
|
3320
|
-
#
|
3321
|
-
#
|
3322
|
-
#
|
3323
|
-
#
|
3324
|
-
#
|
3325
|
-
#
|
3564
|
+
# The key/value metadata to label an intent. Labels can contain lowercase
|
3565
|
+
# letters, digits and the symbols '-' and '_'. International characters are
|
3566
|
+
# allowed, including letters from unicase alphabets. Keys must start with a
|
3567
|
+
# letter. Keys and values can be no longer than 63 characters and no more than
|
3568
|
+
# 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently
|
3569
|
+
# allowed Dialogflow defined labels include: * sys-head * sys-contextual The
|
3570
|
+
# above labels do not require value. "sys-head" means the intent is a head
|
3571
|
+
# intent. "sys-contextual" means the intent is a contextual intent.
|
3326
3572
|
# Corresponds to the JSON property `labels`
|
3327
3573
|
# @return [Hash<String,String>]
|
3328
3574
|
attr_accessor :labels
|
@@ -4081,6 +4327,45 @@ module Google
|
|
4081
4327
|
end
|
4082
4328
|
end
|
4083
4329
|
|
4330
|
+
# Metadata returned for the Environments.RunContinuousTest long running
|
4331
|
+
# operation.
|
4332
|
+
class GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
|
4333
|
+
include Google::Apis::Core::Hashable
|
4334
|
+
|
4335
|
+
# The test errors.
|
4336
|
+
# Corresponds to the JSON property `errors`
|
4337
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1TestError>]
|
4338
|
+
attr_accessor :errors
|
4339
|
+
|
4340
|
+
def initialize(**args)
|
4341
|
+
update!(**args)
|
4342
|
+
end
|
4343
|
+
|
4344
|
+
# Update properties of this object
|
4345
|
+
def update!(**args)
|
4346
|
+
@errors = args[:errors] if args.key?(:errors)
|
4347
|
+
end
|
4348
|
+
end
|
4349
|
+
|
4350
|
+
# The response message for Environments.RunContinuousTest.
|
4351
|
+
class GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
|
4352
|
+
include Google::Apis::Core::Hashable
|
4353
|
+
|
4354
|
+
# Represents a result from running a test case in an agent environment.
|
4355
|
+
# Corresponds to the JSON property `continuousTestResult`
|
4356
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ContinuousTestResult]
|
4357
|
+
attr_accessor :continuous_test_result
|
4358
|
+
|
4359
|
+
def initialize(**args)
|
4360
|
+
update!(**args)
|
4361
|
+
end
|
4362
|
+
|
4363
|
+
# Update properties of this object
|
4364
|
+
def update!(**args)
|
4365
|
+
@continuous_test_result = args[:continuous_test_result] if args.key?(:continuous_test_result)
|
4366
|
+
end
|
4367
|
+
end
|
4368
|
+
|
4084
4369
|
# Metadata returned for the TestCases.RunTestCase long running operation.
|
4085
4370
|
class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
|
4086
4371
|
include Google::Apis::Core::Hashable
|
@@ -4486,7 +4771,8 @@ module Google
|
|
4486
4771
|
end
|
4487
4772
|
end
|
4488
4773
|
|
4489
|
-
# The request message for a webhook call.
|
4774
|
+
# The request message for a webhook call. The request is sent as a JSON object
|
4775
|
+
# and the field names will be presented in camel cases.
|
4490
4776
|
class GoogleCloudDialogflowCxV3beta1WebhookRequest
|
4491
4777
|
include Google::Apis::Core::Hashable
|
4492
4778
|
|
@@ -4506,6 +4792,11 @@ module Google
|
|
4506
4792
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]
|
4507
4793
|
attr_accessor :intent_info
|
4508
4794
|
|
4795
|
+
# The language code specified in the original request.
|
4796
|
+
# Corresponds to the JSON property `languageCode`
|
4797
|
+
# @return [String]
|
4798
|
+
attr_accessor :language_code
|
4799
|
+
|
4509
4800
|
# The list of rich message responses to present to the user. Webhook can choose
|
4510
4801
|
# to append or replace this list in WebhookResponse.fulfillment_response;
|
4511
4802
|
# Corresponds to the JSON property `messages`
|
@@ -4532,6 +4823,30 @@ module Google
|
|
4532
4823
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1SessionInfo]
|
4533
4824
|
attr_accessor :session_info
|
4534
4825
|
|
4826
|
+
# If natural language text was provided as input, this field will contain a copy
|
4827
|
+
# of the text.
|
4828
|
+
# Corresponds to the JSON property `text`
|
4829
|
+
# @return [String]
|
4830
|
+
attr_accessor :text
|
4831
|
+
|
4832
|
+
# If natural language speech audio was provided as input, this field will
|
4833
|
+
# contain the transcript for the audio.
|
4834
|
+
# Corresponds to the JSON property `transcript`
|
4835
|
+
# @return [String]
|
4836
|
+
attr_accessor :transcript
|
4837
|
+
|
4838
|
+
# If an event was provided as input, this field will contain the name of the
|
4839
|
+
# event.
|
4840
|
+
# Corresponds to the JSON property `triggerEvent`
|
4841
|
+
# @return [String]
|
4842
|
+
attr_accessor :trigger_event
|
4843
|
+
|
4844
|
+
# If an intent was provided as input, this field will contain a copy of the
|
4845
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
4846
|
+
# Corresponds to the JSON property `triggerIntent`
|
4847
|
+
# @return [String]
|
4848
|
+
attr_accessor :trigger_intent
|
4849
|
+
|
4535
4850
|
def initialize(**args)
|
4536
4851
|
update!(**args)
|
4537
4852
|
end
|
@@ -4541,11 +4856,16 @@ module Google
|
|
4541
4856
|
@detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
|
4542
4857
|
@fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
|
4543
4858
|
@intent_info = args[:intent_info] if args.key?(:intent_info)
|
4859
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
4544
4860
|
@messages = args[:messages] if args.key?(:messages)
|
4545
4861
|
@page_info = args[:page_info] if args.key?(:page_info)
|
4546
4862
|
@payload = args[:payload] if args.key?(:payload)
|
4547
4863
|
@sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
|
4548
4864
|
@session_info = args[:session_info] if args.key?(:session_info)
|
4865
|
+
@text = args[:text] if args.key?(:text)
|
4866
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
4867
|
+
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
4868
|
+
@trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
|
4549
4869
|
end
|
4550
4870
|
end
|
4551
4871
|
|
@@ -5745,6 +6065,13 @@ module Google
|
|
5745
6065
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfig]
|
5746
6066
|
attr_accessor :human_agent_assistant_config
|
5747
6067
|
|
6068
|
+
# Defines the hand off to a live agent, typically on which external agent
|
6069
|
+
# service provider to connect to a conversation. Currently, this feature is not
|
6070
|
+
# general available, please contact Google to get access.
|
6071
|
+
# Corresponds to the JSON property `humanAgentHandoffConfig`
|
6072
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfig]
|
6073
|
+
attr_accessor :human_agent_handoff_config
|
6074
|
+
|
5748
6075
|
# Language which represents the conversationProfile. If unspecified, the default
|
5749
6076
|
# language code en-us applies. Users need to create a ConversationProfile for
|
5750
6077
|
# each language they want to support.
|
@@ -5793,6 +6120,7 @@ module Google
|
|
5793
6120
|
@create_time = args[:create_time] if args.key?(:create_time)
|
5794
6121
|
@display_name = args[:display_name] if args.key?(:display_name)
|
5795
6122
|
@human_agent_assistant_config = args[:human_agent_assistant_config] if args.key?(:human_agent_assistant_config)
|
6123
|
+
@human_agent_handoff_config = args[:human_agent_handoff_config] if args.key?(:human_agent_handoff_config)
|
5796
6124
|
@language_code = args[:language_code] if args.key?(:language_code)
|
5797
6125
|
@logging_config = args[:logging_config] if args.key?(:logging_config)
|
5798
6126
|
@name = args[:name] if args.key?(:name)
|
@@ -6183,8 +6511,8 @@ module Google
|
|
6183
6511
|
class GoogleCloudDialogflowV2Environment
|
6184
6512
|
include Google::Apis::Core::Hashable
|
6185
6513
|
|
6186
|
-
# Optional. The agent version loaded into this environment.
|
6187
|
-
# agent/versions
|
6514
|
+
# Optional. The agent version loaded into this environment. Supported formats: -
|
6515
|
+
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
6188
6516
|
# Corresponds to the JSON property `agentVersion`
|
6189
6517
|
# @return [String]
|
6190
6518
|
attr_accessor :agent_version
|
@@ -6195,9 +6523,21 @@ module Google
|
|
6195
6523
|
# @return [String]
|
6196
6524
|
attr_accessor :description
|
6197
6525
|
|
6198
|
-
#
|
6199
|
-
#
|
6200
|
-
#
|
6526
|
+
# By default, your agent responds to a matched intent with a static response. As
|
6527
|
+
# an alternative, you can provide a more dynamic response by using fulfillment.
|
6528
|
+
# When you enable fulfillment for an intent, Dialogflow responds to that intent
|
6529
|
+
# by calling a service that you define. For example, if an end-user wants to
|
6530
|
+
# schedule a haircut on Friday, your service can check your database and respond
|
6531
|
+
# to the end-user with availability information for Friday. For more information,
|
6532
|
+
# see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/
|
6533
|
+
# fulfillment-overview).
|
6534
|
+
# Corresponds to the JSON property `fulfillment`
|
6535
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment]
|
6536
|
+
attr_accessor :fulfillment
|
6537
|
+
|
6538
|
+
# Output only. The unique identifier of this agent environment. Supported
|
6539
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
6540
|
+
# environments/`
|
6201
6541
|
# Corresponds to the JSON property `name`
|
6202
6542
|
# @return [String]
|
6203
6543
|
attr_accessor :name
|
@@ -6208,6 +6548,11 @@ module Google
|
|
6208
6548
|
# @return [String]
|
6209
6549
|
attr_accessor :state
|
6210
6550
|
|
6551
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
6552
|
+
# Corresponds to the JSON property `textToSpeechSettings`
|
6553
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextToSpeechSettings]
|
6554
|
+
attr_accessor :text_to_speech_settings
|
6555
|
+
|
6211
6556
|
# Output only. The last update time of this environment. This field is read-only,
|
6212
6557
|
# i.e., it cannot be set by create and update methods.
|
6213
6558
|
# Corresponds to the JSON property `updateTime`
|
@@ -6222,12 +6567,80 @@ module Google
|
|
6222
6567
|
def update!(**args)
|
6223
6568
|
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
6224
6569
|
@description = args[:description] if args.key?(:description)
|
6570
|
+
@fulfillment = args[:fulfillment] if args.key?(:fulfillment)
|
6225
6571
|
@name = args[:name] if args.key?(:name)
|
6226
6572
|
@state = args[:state] if args.key?(:state)
|
6573
|
+
@text_to_speech_settings = args[:text_to_speech_settings] if args.key?(:text_to_speech_settings)
|
6227
6574
|
@update_time = args[:update_time] if args.key?(:update_time)
|
6228
6575
|
end
|
6229
6576
|
end
|
6230
6577
|
|
6578
|
+
# The response message for Environments.GetEnvironmentHistory.
|
6579
|
+
class GoogleCloudDialogflowV2EnvironmentHistory
|
6580
|
+
include Google::Apis::Core::Hashable
|
6581
|
+
|
6582
|
+
# Output only. The list of agent environments. There will be a maximum number of
|
6583
|
+
# items returned based on the page_size field in the request.
|
6584
|
+
# Corresponds to the JSON property `entries`
|
6585
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistoryEntry>]
|
6586
|
+
attr_accessor :entries
|
6587
|
+
|
6588
|
+
# Output only. Token to retrieve the next page of results, or empty if there are
|
6589
|
+
# no more results in the list.
|
6590
|
+
# Corresponds to the JSON property `nextPageToken`
|
6591
|
+
# @return [String]
|
6592
|
+
attr_accessor :next_page_token
|
6593
|
+
|
6594
|
+
# Output only. The name of the environment this history is for. Supported
|
6595
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
6596
|
+
# environments/`
|
6597
|
+
# Corresponds to the JSON property `parent`
|
6598
|
+
# @return [String]
|
6599
|
+
attr_accessor :parent
|
6600
|
+
|
6601
|
+
def initialize(**args)
|
6602
|
+
update!(**args)
|
6603
|
+
end
|
6604
|
+
|
6605
|
+
# Update properties of this object
|
6606
|
+
def update!(**args)
|
6607
|
+
@entries = args[:entries] if args.key?(:entries)
|
6608
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
6609
|
+
@parent = args[:parent] if args.key?(:parent)
|
6610
|
+
end
|
6611
|
+
end
|
6612
|
+
|
6613
|
+
# Represents an environment history entry.
|
6614
|
+
class GoogleCloudDialogflowV2EnvironmentHistoryEntry
|
6615
|
+
include Google::Apis::Core::Hashable
|
6616
|
+
|
6617
|
+
# The agent version loaded into this environment history entry.
|
6618
|
+
# Corresponds to the JSON property `agentVersion`
|
6619
|
+
# @return [String]
|
6620
|
+
attr_accessor :agent_version
|
6621
|
+
|
6622
|
+
# The creation time of this environment history entry.
|
6623
|
+
# Corresponds to the JSON property `createTime`
|
6624
|
+
# @return [String]
|
6625
|
+
attr_accessor :create_time
|
6626
|
+
|
6627
|
+
# The developer-provided description for this environment history entry.
|
6628
|
+
# Corresponds to the JSON property `description`
|
6629
|
+
# @return [String]
|
6630
|
+
attr_accessor :description
|
6631
|
+
|
6632
|
+
def initialize(**args)
|
6633
|
+
update!(**args)
|
6634
|
+
end
|
6635
|
+
|
6636
|
+
# Update properties of this object
|
6637
|
+
def update!(**args)
|
6638
|
+
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
6639
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6640
|
+
@description = args[:description] if args.key?(:description)
|
6641
|
+
end
|
6642
|
+
end
|
6643
|
+
|
6231
6644
|
# Events allow for matching intents by event name instead of the natural
|
6232
6645
|
# language input. For instance, input `` can trigger a personalized welcome
|
6233
6646
|
# response. The parameter `name` may be used by the agent in the response: `"
|
@@ -6387,6 +6800,7 @@ module Google
|
|
6387
6800
|
include Google::Apis::Core::Hashable
|
6388
6801
|
|
6389
6802
|
# Optional. The human-readable name of the fulfillment, unique within the agent.
|
6803
|
+
# This field is not used for Fulfillment in an Environment.
|
6390
6804
|
# Corresponds to the JSON property `displayName`
|
6391
6805
|
# @return [String]
|
6392
6806
|
attr_accessor :display_name
|
@@ -6412,8 +6826,9 @@ module Google
|
|
6412
6826
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService]
|
6413
6827
|
attr_accessor :generic_web_service
|
6414
6828
|
|
6415
|
-
# Required. The unique identifier of the fulfillment.
|
6416
|
-
# fulfillment
|
6829
|
+
# Required. The unique identifier of the fulfillment. Supported formats: - `
|
6830
|
+
# projects//agent/fulfillment` - `projects//locations//agent/fulfillment` This
|
6831
|
+
# field is not used for Fulfillment in an Environment.
|
6417
6832
|
# Corresponds to the JSON property `name`
|
6418
6833
|
# @return [String]
|
6419
6834
|
attr_accessor :name
|
@@ -6460,7 +6875,8 @@ module Google
|
|
6460
6875
|
include Google::Apis::Core::Hashable
|
6461
6876
|
|
6462
6877
|
# Optional. Indicates if generic web service is created through Cloud Functions
|
6463
|
-
# integration. Defaults to false.
|
6878
|
+
# integration. Defaults to false. is_cloud_function is deprecated. Cloud
|
6879
|
+
# functions can be configured by its uri as a regular web service now.
|
6464
6880
|
# Corresponds to the JSON property `isCloudFunction`
|
6465
6881
|
# @return [Boolean]
|
6466
6882
|
attr_accessor :is_cloud_function
|
@@ -6505,6 +6921,11 @@ module Google
|
|
6505
6921
|
class GoogleCloudDialogflowV2HumanAgentAssistantConfig
|
6506
6922
|
include Google::Apis::Core::Hashable
|
6507
6923
|
|
6924
|
+
# Detail human agent assistant config.
|
6925
|
+
# Corresponds to the JSON property `endUserSuggestionConfig`
|
6926
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig]
|
6927
|
+
attr_accessor :end_user_suggestion_config
|
6928
|
+
|
6508
6929
|
# Detail human agent assistant config.
|
6509
6930
|
# Corresponds to the JSON property `humanAgentSuggestionConfig`
|
6510
6931
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig]
|
@@ -6526,6 +6947,7 @@ module Google
|
|
6526
6947
|
|
6527
6948
|
# Update properties of this object
|
6528
6949
|
def update!(**args)
|
6950
|
+
@end_user_suggestion_config = args[:end_user_suggestion_config] if args.key?(:end_user_suggestion_config)
|
6529
6951
|
@human_agent_suggestion_config = args[:human_agent_suggestion_config] if args.key?(:human_agent_suggestion_config)
|
6530
6952
|
@message_analysis_config = args[:message_analysis_config] if args.key?(:message_analysis_config)
|
6531
6953
|
@notification_config = args[:notification_config] if args.key?(:notification_config)
|
@@ -6537,8 +6959,7 @@ module Google
|
|
6537
6959
|
class GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig
|
6538
6960
|
include Google::Apis::Core::Hashable
|
6539
6961
|
|
6540
|
-
#
|
6541
|
-
# conversationModels/`.
|
6962
|
+
# Conversation model resource name. Format: `projects//conversationModels/`.
|
6542
6963
|
# Corresponds to the JSON property `model`
|
6543
6964
|
# @return [String]
|
6544
6965
|
attr_accessor :model
|
@@ -6557,6 +6978,15 @@ module Google
|
|
6557
6978
|
class GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig
|
6558
6979
|
include Google::Apis::Core::Hashable
|
6559
6980
|
|
6981
|
+
# Enable entity extraction in conversation messages on [agent assist stage](
|
6982
|
+
# https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
|
6983
|
+
# If unspecified, defaults to false. Currently, this feature is not general
|
6984
|
+
# available, please contact Google to get access.
|
6985
|
+
# Corresponds to the JSON property `enableEntityExtraction`
|
6986
|
+
# @return [Boolean]
|
6987
|
+
attr_accessor :enable_entity_extraction
|
6988
|
+
alias_method :enable_entity_extraction?, :enable_entity_extraction
|
6989
|
+
|
6560
6990
|
# Enable sentiment analysis in conversation messages on [agent assist stage](
|
6561
6991
|
# https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
|
6562
6992
|
# If unspecified, defaults to false. Sentiment analysis inspects user input and
|
@@ -6581,6 +7011,7 @@ module Google
|
|
6581
7011
|
|
6582
7012
|
# Update properties of this object
|
6583
7013
|
def update!(**args)
|
7014
|
+
@enable_entity_extraction = args[:enable_entity_extraction] if args.key?(:enable_entity_extraction)
|
6584
7015
|
@enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
|
6585
7016
|
end
|
6586
7017
|
end
|
@@ -6885,6 +7316,93 @@ module Google
|
|
6885
7316
|
end
|
6886
7317
|
end
|
6887
7318
|
|
7319
|
+
# Defines the hand off to a live agent, typically on which external agent
|
7320
|
+
# service provider to connect to a conversation. Currently, this feature is not
|
7321
|
+
# general available, please contact Google to get access.
|
7322
|
+
class GoogleCloudDialogflowV2HumanAgentHandoffConfig
|
7323
|
+
include Google::Apis::Core::Hashable
|
7324
|
+
|
7325
|
+
# Configuration specific to LivePerson (https://www.liveperson.com).
|
7326
|
+
# Corresponds to the JSON property `livePersonConfig`
|
7327
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig]
|
7328
|
+
attr_accessor :live_person_config
|
7329
|
+
|
7330
|
+
# Configuration specific to Salesforce Live Agent.
|
7331
|
+
# Corresponds to the JSON property `salesforceLiveAgentConfig`
|
7332
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig]
|
7333
|
+
attr_accessor :salesforce_live_agent_config
|
7334
|
+
|
7335
|
+
def initialize(**args)
|
7336
|
+
update!(**args)
|
7337
|
+
end
|
7338
|
+
|
7339
|
+
# Update properties of this object
|
7340
|
+
def update!(**args)
|
7341
|
+
@live_person_config = args[:live_person_config] if args.key?(:live_person_config)
|
7342
|
+
@salesforce_live_agent_config = args[:salesforce_live_agent_config] if args.key?(:salesforce_live_agent_config)
|
7343
|
+
end
|
7344
|
+
end
|
7345
|
+
|
7346
|
+
# Configuration specific to LivePerson (https://www.liveperson.com).
|
7347
|
+
class GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig
|
7348
|
+
include Google::Apis::Core::Hashable
|
7349
|
+
|
7350
|
+
# Required. Account number of the LivePerson account to connect. This is the
|
7351
|
+
# account number you input at the login page.
|
7352
|
+
# Corresponds to the JSON property `accountNumber`
|
7353
|
+
# @return [String]
|
7354
|
+
attr_accessor :account_number
|
7355
|
+
|
7356
|
+
def initialize(**args)
|
7357
|
+
update!(**args)
|
7358
|
+
end
|
7359
|
+
|
7360
|
+
# Update properties of this object
|
7361
|
+
def update!(**args)
|
7362
|
+
@account_number = args[:account_number] if args.key?(:account_number)
|
7363
|
+
end
|
7364
|
+
end
|
7365
|
+
|
7366
|
+
# Configuration specific to Salesforce Live Agent.
|
7367
|
+
class GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig
|
7368
|
+
include Google::Apis::Core::Hashable
|
7369
|
+
|
7370
|
+
# Required. Live Agent chat button ID.
|
7371
|
+
# Corresponds to the JSON property `buttonId`
|
7372
|
+
# @return [String]
|
7373
|
+
attr_accessor :button_id
|
7374
|
+
|
7375
|
+
# Required. Live Agent deployment ID.
|
7376
|
+
# Corresponds to the JSON property `deploymentId`
|
7377
|
+
# @return [String]
|
7378
|
+
attr_accessor :deployment_id
|
7379
|
+
|
7380
|
+
# Required. Domain of the Live Agent endpoint for this agent. You can find the
|
7381
|
+
# endpoint URL in the `Live Agent settings` page. For example if URL has the
|
7382
|
+
# form https://d.la4-c2-phx.salesforceliveagent.com/..., you should fill in d.
|
7383
|
+
# la4-c2-phx.salesforceliveagent.com.
|
7384
|
+
# Corresponds to the JSON property `endpointDomain`
|
7385
|
+
# @return [String]
|
7386
|
+
attr_accessor :endpoint_domain
|
7387
|
+
|
7388
|
+
# Required. The organization ID of the Salesforce account.
|
7389
|
+
# Corresponds to the JSON property `organizationId`
|
7390
|
+
# @return [String]
|
7391
|
+
attr_accessor :organization_id
|
7392
|
+
|
7393
|
+
def initialize(**args)
|
7394
|
+
update!(**args)
|
7395
|
+
end
|
7396
|
+
|
7397
|
+
# Update properties of this object
|
7398
|
+
def update!(**args)
|
7399
|
+
@button_id = args[:button_id] if args.key?(:button_id)
|
7400
|
+
@deployment_id = args[:deployment_id] if args.key?(:deployment_id)
|
7401
|
+
@endpoint_domain = args[:endpoint_domain] if args.key?(:endpoint_domain)
|
7402
|
+
@organization_id = args[:organization_id] if args.key?(:organization_id)
|
7403
|
+
end
|
7404
|
+
end
|
7405
|
+
|
6888
7406
|
# The request message for Agents.ImportAgent.
|
6889
7407
|
class GoogleCloudDialogflowV2ImportAgentRequest
|
6890
7408
|
include Google::Apis::Core::Hashable
|
@@ -8672,6 +9190,33 @@ module Google
|
|
8672
9190
|
end
|
8673
9191
|
end
|
8674
9192
|
|
9193
|
+
# The response message for Versions.ListVersions.
|
9194
|
+
class GoogleCloudDialogflowV2ListVersionsResponse
|
9195
|
+
include Google::Apis::Core::Hashable
|
9196
|
+
|
9197
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
9198
|
+
# results in the list.
|
9199
|
+
# Corresponds to the JSON property `nextPageToken`
|
9200
|
+
# @return [String]
|
9201
|
+
attr_accessor :next_page_token
|
9202
|
+
|
9203
|
+
# The list of agent versions. There will be a maximum number of items returned
|
9204
|
+
# based on the page_size field in the request.
|
9205
|
+
# Corresponds to the JSON property `versions`
|
9206
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version>]
|
9207
|
+
attr_accessor :versions
|
9208
|
+
|
9209
|
+
def initialize(**args)
|
9210
|
+
update!(**args)
|
9211
|
+
end
|
9212
|
+
|
9213
|
+
# Update properties of this object
|
9214
|
+
def update!(**args)
|
9215
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
9216
|
+
@versions = args[:versions] if args.key?(:versions)
|
9217
|
+
end
|
9218
|
+
end
|
9219
|
+
|
8675
9220
|
# Defines logging behavior for conversation lifecycle events.
|
8676
9221
|
class GoogleCloudDialogflowV2LoggingConfig
|
8677
9222
|
include Google::Apis::Core::Hashable
|
@@ -8996,8 +9541,8 @@ module Google
|
|
8996
9541
|
|
8997
9542
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
8998
9543
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
8999
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
9000
|
-
# within normalized ranges.
|
9544
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
9545
|
+
# must be within normalized ranges.
|
9001
9546
|
# Corresponds to the JSON property `geoLocation`
|
9002
9547
|
# @return [Google::Apis::DialogflowV2::GoogleTypeLatLng]
|
9003
9548
|
attr_accessor :geo_location
|
@@ -9083,6 +9628,13 @@ module Google
|
|
9083
9628
|
attr_accessor :all_required_params_present
|
9084
9629
|
alias_method :all_required_params_present?, :all_required_params_present
|
9085
9630
|
|
9631
|
+
# Indicates whether the conversational query triggers a cancellation for slot
|
9632
|
+
# filling.
|
9633
|
+
# Corresponds to the JSON property `cancelsSlotFilling`
|
9634
|
+
# @return [Boolean]
|
9635
|
+
attr_accessor :cancels_slot_filling
|
9636
|
+
alias_method :cancels_slot_filling?, :cancels_slot_filling
|
9637
|
+
|
9086
9638
|
# Free-form diagnostic information for the associated detect intent request. The
|
9087
9639
|
# fields of this data can change without notice, so you should not write code
|
9088
9640
|
# that depends on its structure. The data may contain: - webhook call latency -
|
@@ -9203,6 +9755,7 @@ module Google
|
|
9203
9755
|
def update!(**args)
|
9204
9756
|
@action = args[:action] if args.key?(:action)
|
9205
9757
|
@all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
|
9758
|
+
@cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
|
9206
9759
|
@diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
|
9207
9760
|
@fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
|
9208
9761
|
@fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
|
@@ -9739,6 +10292,51 @@ module Google
|
|
9739
10292
|
end
|
9740
10293
|
end
|
9741
10294
|
|
10295
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
10296
|
+
class GoogleCloudDialogflowV2TextToSpeechSettings
|
10297
|
+
include Google::Apis::Core::Hashable
|
10298
|
+
|
10299
|
+
# Optional. Indicates whether text to speech is enabled. Even when this field is
|
10300
|
+
# false, other settings in this proto are still retained.
|
10301
|
+
# Corresponds to the JSON property `enableTextToSpeech`
|
10302
|
+
# @return [Boolean]
|
10303
|
+
attr_accessor :enable_text_to_speech
|
10304
|
+
alias_method :enable_text_to_speech?, :enable_text_to_speech
|
10305
|
+
|
10306
|
+
# Required. Audio encoding of the synthesized audio content.
|
10307
|
+
# Corresponds to the JSON property `outputAudioEncoding`
|
10308
|
+
# @return [String]
|
10309
|
+
attr_accessor :output_audio_encoding
|
10310
|
+
|
10311
|
+
# Optional. The synthesis sample rate (in hertz) for this audio. If not provided,
|
10312
|
+
# then the synthesizer will use the default sample rate based on the audio
|
10313
|
+
# encoding. If this is different from the voice's natural sample rate, then the
|
10314
|
+
# synthesizer will honor this request by converting to the desired sample rate (
|
10315
|
+
# which might result in worse audio quality).
|
10316
|
+
# Corresponds to the JSON property `sampleRateHertz`
|
10317
|
+
# @return [Fixnum]
|
10318
|
+
attr_accessor :sample_rate_hertz
|
10319
|
+
|
10320
|
+
# Optional. Configuration of how speech should be synthesized, mapping from
|
10321
|
+
# language (https://cloud.google.com/dialogflow/docs/reference/language) to
|
10322
|
+
# SynthesizeSpeechConfig.
|
10323
|
+
# Corresponds to the JSON property `synthesizeSpeechConfigs`
|
10324
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SynthesizeSpeechConfig>]
|
10325
|
+
attr_accessor :synthesize_speech_configs
|
10326
|
+
|
10327
|
+
def initialize(**args)
|
10328
|
+
update!(**args)
|
10329
|
+
end
|
10330
|
+
|
10331
|
+
# Update properties of this object
|
10332
|
+
def update!(**args)
|
10333
|
+
@enable_text_to_speech = args[:enable_text_to_speech] if args.key?(:enable_text_to_speech)
|
10334
|
+
@output_audio_encoding = args[:output_audio_encoding] if args.key?(:output_audio_encoding)
|
10335
|
+
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
10336
|
+
@synthesize_speech_configs = args[:synthesize_speech_configs] if args.key?(:synthesize_speech_configs)
|
10337
|
+
end
|
10338
|
+
end
|
10339
|
+
|
9742
10340
|
# The request message for Agents.TrainAgent.
|
9743
10341
|
class GoogleCloudDialogflowV2TrainAgentRequest
|
9744
10342
|
include Google::Apis::Core::Hashable
|
@@ -9808,6 +10406,61 @@ module Google
|
|
9808
10406
|
end
|
9809
10407
|
end
|
9810
10408
|
|
10409
|
+
# You can create multiple versions of your agent and publish them to separate
|
10410
|
+
# environments. When you edit an agent, you are editing the draft agent. At any
|
10411
|
+
# point, you can save the draft agent as an agent version, which is an immutable
|
10412
|
+
# snapshot of your agent. When you save the draft agent, it is published to the
|
10413
|
+
# default environment. When you create agent versions, you can publish them to
|
10414
|
+
# custom environments. You can create a variety of custom environments for: -
|
10415
|
+
# testing - development - production - etc. For more information, see the [
|
10416
|
+
# versions and environments guide](https://cloud.google.com/dialogflow/docs/
|
10417
|
+
# agents-versions).
|
10418
|
+
class GoogleCloudDialogflowV2Version
|
10419
|
+
include Google::Apis::Core::Hashable
|
10420
|
+
|
10421
|
+
# Output only. The creation time of this version. This field is read-only, i.e.,
|
10422
|
+
# it cannot be set by create and update methods.
|
10423
|
+
# Corresponds to the JSON property `createTime`
|
10424
|
+
# @return [String]
|
10425
|
+
attr_accessor :create_time
|
10426
|
+
|
10427
|
+
# Optional. The developer-provided description of this version.
|
10428
|
+
# Corresponds to the JSON property `description`
|
10429
|
+
# @return [String]
|
10430
|
+
attr_accessor :description
|
10431
|
+
|
10432
|
+
# Output only. The unique identifier of this agent version. Supported formats: -
|
10433
|
+
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
10434
|
+
# Corresponds to the JSON property `name`
|
10435
|
+
# @return [String]
|
10436
|
+
attr_accessor :name
|
10437
|
+
|
10438
|
+
# Output only. The status of this version. This field is read-only and cannot be
|
10439
|
+
# set by create and update methods.
|
10440
|
+
# Corresponds to the JSON property `status`
|
10441
|
+
# @return [String]
|
10442
|
+
attr_accessor :status
|
10443
|
+
|
10444
|
+
# Output only. The sequential number of this version. This field is read-only
|
10445
|
+
# which means it cannot be set by create and update methods.
|
10446
|
+
# Corresponds to the JSON property `versionNumber`
|
10447
|
+
# @return [Fixnum]
|
10448
|
+
attr_accessor :version_number
|
10449
|
+
|
10450
|
+
def initialize(**args)
|
10451
|
+
update!(**args)
|
10452
|
+
end
|
10453
|
+
|
10454
|
+
# Update properties of this object
|
10455
|
+
def update!(**args)
|
10456
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
10457
|
+
@description = args[:description] if args.key?(:description)
|
10458
|
+
@name = args[:name] if args.key?(:name)
|
10459
|
+
@status = args[:status] if args.key?(:status)
|
10460
|
+
@version_number = args[:version_number] if args.key?(:version_number)
|
10461
|
+
end
|
10462
|
+
end
|
10463
|
+
|
9811
10464
|
# Description of which voice to use for speech synthesis.
|
9812
10465
|
class GoogleCloudDialogflowV2VoiceSelectionParams
|
9813
10466
|
include Google::Apis::Core::Hashable
|
@@ -12446,6 +13099,13 @@ module Google
|
|
12446
13099
|
attr_accessor :all_required_params_present
|
12447
13100
|
alias_method :all_required_params_present?, :all_required_params_present
|
12448
13101
|
|
13102
|
+
# Indicates whether the conversational query triggers a cancellation for slot
|
13103
|
+
# filling.
|
13104
|
+
# Corresponds to the JSON property `cancelsSlotFilling`
|
13105
|
+
# @return [Boolean]
|
13106
|
+
attr_accessor :cancels_slot_filling
|
13107
|
+
alias_method :cancels_slot_filling?, :cancels_slot_filling
|
13108
|
+
|
12449
13109
|
# Free-form diagnostic information for the associated detect intent request. The
|
12450
13110
|
# fields of this data can change without notice, so you should not write code
|
12451
13111
|
# that depends on its structure. The data may contain: - webhook call latency -
|
@@ -12571,6 +13231,7 @@ module Google
|
|
12571
13231
|
def update!(**args)
|
12572
13232
|
@action = args[:action] if args.key?(:action)
|
12573
13233
|
@all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
|
13234
|
+
@cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
|
12574
13235
|
@diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
|
12575
13236
|
@fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
|
12576
13237
|
@fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
|
@@ -13300,8 +13961,8 @@ module Google
|
|
13300
13961
|
|
13301
13962
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
13302
13963
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
13303
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
13304
|
-
# within normalized ranges.
|
13964
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
13965
|
+
# must be within normalized ranges.
|
13305
13966
|
class GoogleTypeLatLng
|
13306
13967
|
include Google::Apis::Core::Hashable
|
13307
13968
|
|