google-apis-dialogflow_v2beta1 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_v2beta1.rb +1 -1
- data/lib/google/apis/dialogflow_v2beta1/classes.rb +458 -281
- data/lib/google/apis/dialogflow_v2beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2beta1/representations.rb +165 -110
- data/lib/google/apis/dialogflow_v2beta1/service.rb +899 -309
- 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: e14b127ec0999326c195c8a792767a91e6f8199815f16e349c33801ebdc6df8a
|
4
|
+
data.tar.gz: 811040576de6fcde760c849381b150f11e0c1d58ae1568af57c2b56bc76cfdac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f177a32c1b046b3c296fc4796b62fc09265addf99472d14b7f382afb32345b69e628ce7f2a5d55aa5fef91f6dc761ffa98898a1a4b2699c7a4c08099be9218a
|
7
|
+
data.tar.gz: ec89b4611f72d7d943e68227ab65ffa5e32b8da3f2f6ab354ceab66d1541f0c248fd71fac5bb8e0927ceffa49fdbeef7610f36ca794e174791f07e738c9448b1
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# Release history for google-apis-dialogflow_v2beta1
|
2
2
|
|
3
|
+
### v0.12.0 (2021-05-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210517
|
6
|
+
|
7
|
+
### v0.11.0 (2021-05-06)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210503
|
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-19)
|
20
|
+
|
21
|
+
* Regenerated from discovery document revision 20210318
|
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 = 'V2beta1'
|
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::DialogflowV2beta1::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::DialogflowV2beta1::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
|
|
@@ -2773,6 +2855,33 @@ module Google
|
|
2773
2855
|
end
|
2774
2856
|
end
|
2775
2857
|
|
2858
|
+
# The response message for Flows.ExportFlow.
|
2859
|
+
class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
|
2860
|
+
include Google::Apis::Core::Hashable
|
2861
|
+
|
2862
|
+
# Uncompressed raw byte content for flow.
|
2863
|
+
# Corresponds to the JSON property `flowContent`
|
2864
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
2865
|
+
# @return [String]
|
2866
|
+
attr_accessor :flow_content
|
2867
|
+
|
2868
|
+
# The URI to a file containing the exported flow. This field is populated only
|
2869
|
+
# if `flow_uri` is specified in ExportFlowRequest.
|
2870
|
+
# Corresponds to the JSON property `flowUri`
|
2871
|
+
# @return [String]
|
2872
|
+
attr_accessor :flow_uri
|
2873
|
+
|
2874
|
+
def initialize(**args)
|
2875
|
+
update!(**args)
|
2876
|
+
end
|
2877
|
+
|
2878
|
+
# Update properties of this object
|
2879
|
+
def update!(**args)
|
2880
|
+
@flow_content = args[:flow_content] if args.key?(:flow_content)
|
2881
|
+
@flow_uri = args[:flow_uri] if args.key?(:flow_uri)
|
2882
|
+
end
|
2883
|
+
end
|
2884
|
+
|
2776
2885
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
2777
2886
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
2778
2887
|
include Google::Apis::Core::Hashable
|
@@ -3171,6 +3280,26 @@ module Google
|
|
3171
3280
|
end
|
3172
3281
|
end
|
3173
3282
|
|
3283
|
+
# The response message for Flows.ImportFlow.
|
3284
|
+
class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
|
3285
|
+
include Google::Apis::Core::Hashable
|
3286
|
+
|
3287
|
+
# The unique identifier of the new flow. Format: `projects//locations//agents//
|
3288
|
+
# flows/`.
|
3289
|
+
# Corresponds to the JSON property `flow`
|
3290
|
+
# @return [String]
|
3291
|
+
attr_accessor :flow
|
3292
|
+
|
3293
|
+
def initialize(**args)
|
3294
|
+
update!(**args)
|
3295
|
+
end
|
3296
|
+
|
3297
|
+
# Update properties of this object
|
3298
|
+
def update!(**args)
|
3299
|
+
@flow = args[:flow] if args.key?(:flow)
|
3300
|
+
end
|
3301
|
+
end
|
3302
|
+
|
3174
3303
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
3175
3304
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
3176
3305
|
include Google::Apis::Core::Hashable
|
@@ -3294,8 +3423,8 @@ module Google
|
|
3294
3423
|
class GoogleCloudDialogflowCxV3beta1Intent
|
3295
3424
|
include Google::Apis::Core::Hashable
|
3296
3425
|
|
3297
|
-
#
|
3298
|
-
#
|
3426
|
+
# Human readable description for better understanding an intent like its scope,
|
3427
|
+
# content, result etc. Maximum character limit: 140 characters.
|
3299
3428
|
# Corresponds to the JSON property `description`
|
3300
3429
|
# @return [String]
|
3301
3430
|
attr_accessor :description
|
@@ -3315,14 +3444,14 @@ module Google
|
|
3315
3444
|
attr_accessor :is_fallback
|
3316
3445
|
alias_method :is_fallback?, :is_fallback
|
3317
3446
|
|
3318
|
-
#
|
3319
|
-
#
|
3320
|
-
#
|
3321
|
-
#
|
3322
|
-
#
|
3323
|
-
#
|
3324
|
-
#
|
3325
|
-
#
|
3447
|
+
# The key/value metadata to label an intent. Labels can contain lowercase
|
3448
|
+
# letters, digits and the symbols '-' and '_'. International characters are
|
3449
|
+
# allowed, including letters from unicase alphabets. Keys must start with a
|
3450
|
+
# letter. Keys and values can be no longer than 63 characters and no more than
|
3451
|
+
# 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently
|
3452
|
+
# allowed Dialogflow defined labels include: * sys-head * sys-contextual The
|
3453
|
+
# above labels do not require value. "sys-head" means the intent is a head
|
3454
|
+
# intent. "sys-contextual" means the intent is a contextual intent.
|
3326
3455
|
# Corresponds to the JSON property `labels`
|
3327
3456
|
# @return [Hash<String,String>]
|
3328
3457
|
attr_accessor :labels
|
@@ -4486,7 +4615,8 @@ module Google
|
|
4486
4615
|
end
|
4487
4616
|
end
|
4488
4617
|
|
4489
|
-
# The request message for a webhook call.
|
4618
|
+
# The request message for a webhook call. The request is sent as a JSON object
|
4619
|
+
# and the field names will be presented in camel cases.
|
4490
4620
|
class GoogleCloudDialogflowCxV3beta1WebhookRequest
|
4491
4621
|
include Google::Apis::Core::Hashable
|
4492
4622
|
|
@@ -4506,6 +4636,11 @@ module Google
|
|
4506
4636
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]
|
4507
4637
|
attr_accessor :intent_info
|
4508
4638
|
|
4639
|
+
# The language code specified in the original request.
|
4640
|
+
# Corresponds to the JSON property `languageCode`
|
4641
|
+
# @return [String]
|
4642
|
+
attr_accessor :language_code
|
4643
|
+
|
4509
4644
|
# The list of rich message responses to present to the user. Webhook can choose
|
4510
4645
|
# to append or replace this list in WebhookResponse.fulfillment_response;
|
4511
4646
|
# Corresponds to the JSON property `messages`
|
@@ -4532,6 +4667,30 @@ module Google
|
|
4532
4667
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1SessionInfo]
|
4533
4668
|
attr_accessor :session_info
|
4534
4669
|
|
4670
|
+
# If natural language text was provided as input, this field will contain a copy
|
4671
|
+
# of the text.
|
4672
|
+
# Corresponds to the JSON property `text`
|
4673
|
+
# @return [String]
|
4674
|
+
attr_accessor :text
|
4675
|
+
|
4676
|
+
# If natural language speech audio was provided as input, this field will
|
4677
|
+
# contain the transcript for the audio.
|
4678
|
+
# Corresponds to the JSON property `transcript`
|
4679
|
+
# @return [String]
|
4680
|
+
attr_accessor :transcript
|
4681
|
+
|
4682
|
+
# If an event was provided as input, this field will contain the name of the
|
4683
|
+
# event.
|
4684
|
+
# Corresponds to the JSON property `triggerEvent`
|
4685
|
+
# @return [String]
|
4686
|
+
attr_accessor :trigger_event
|
4687
|
+
|
4688
|
+
# If an intent was provided as input, this field will contain a copy of the
|
4689
|
+
# intent identifier. Format: `projects//locations//agents//intents/`.
|
4690
|
+
# Corresponds to the JSON property `triggerIntent`
|
4691
|
+
# @return [String]
|
4692
|
+
attr_accessor :trigger_intent
|
4693
|
+
|
4535
4694
|
def initialize(**args)
|
4536
4695
|
update!(**args)
|
4537
4696
|
end
|
@@ -4541,11 +4700,16 @@ module Google
|
|
4541
4700
|
@detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
|
4542
4701
|
@fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
|
4543
4702
|
@intent_info = args[:intent_info] if args.key?(:intent_info)
|
4703
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
4544
4704
|
@messages = args[:messages] if args.key?(:messages)
|
4545
4705
|
@page_info = args[:page_info] if args.key?(:page_info)
|
4546
4706
|
@payload = args[:payload] if args.key?(:payload)
|
4547
4707
|
@sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
|
4548
4708
|
@session_info = args[:session_info] if args.key?(:session_info)
|
4709
|
+
@text = args[:text] if args.key?(:text)
|
4710
|
+
@transcript = args[:transcript] if args.key?(:transcript)
|
4711
|
+
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
4712
|
+
@trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
|
4549
4713
|
end
|
4550
4714
|
end
|
4551
4715
|
|
@@ -7316,16 +7480,6 @@ module Google
|
|
7316
7480
|
class GoogleCloudDialogflowV2beta1AnalyzeContentRequest
|
7317
7481
|
include Google::Apis::Core::Hashable
|
7318
7482
|
|
7319
|
-
# Represents the natural language speech audio to be processed.
|
7320
|
-
# Corresponds to the JSON property `audio`
|
7321
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudio]
|
7322
|
-
attr_accessor :audio
|
7323
|
-
|
7324
|
-
# Represents the natural language speech audio to be processed.
|
7325
|
-
# Corresponds to the JSON property `audioInput`
|
7326
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1AudioInput]
|
7327
|
-
attr_accessor :audio_input
|
7328
|
-
|
7329
7483
|
# Events allow for matching intents by event name instead of the natural
|
7330
7484
|
# language input. For instance, input `` can trigger a personalized welcome
|
7331
7485
|
# response. The parameter `name` may be used by the agent in the response: `"
|
@@ -7366,11 +7520,6 @@ module Google
|
|
7366
7520
|
# @return [String]
|
7367
7521
|
attr_accessor :request_id
|
7368
7522
|
|
7369
|
-
# Represents the natural language text to be processed.
|
7370
|
-
# Corresponds to the JSON property `text`
|
7371
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputText]
|
7372
|
-
attr_accessor :text
|
7373
|
-
|
7374
7523
|
# Represents the natural language text to be processed.
|
7375
7524
|
# Corresponds to the JSON property `textInput`
|
7376
7525
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextInput]
|
@@ -7382,14 +7531,11 @@ module Google
|
|
7382
7531
|
|
7383
7532
|
# Update properties of this object
|
7384
7533
|
def update!(**args)
|
7385
|
-
@audio = args[:audio] if args.key?(:audio)
|
7386
|
-
@audio_input = args[:audio_input] if args.key?(:audio_input)
|
7387
7534
|
@event_input = args[:event_input] if args.key?(:event_input)
|
7388
7535
|
@message_send_time = args[:message_send_time] if args.key?(:message_send_time)
|
7389
7536
|
@query_params = args[:query_params] if args.key?(:query_params)
|
7390
7537
|
@reply_audio_config = args[:reply_audio_config] if args.key?(:reply_audio_config)
|
7391
7538
|
@request_id = args[:request_id] if args.key?(:request_id)
|
7392
|
-
@text = args[:text] if args.key?(:text)
|
7393
7539
|
@text_input = args[:text_input] if args.key?(:text_input)
|
7394
7540
|
end
|
7395
7541
|
end
|
@@ -7635,34 +7781,6 @@ module Google
|
|
7635
7781
|
end
|
7636
7782
|
end
|
7637
7783
|
|
7638
|
-
# Represents the natural language speech audio to be processed.
|
7639
|
-
class GoogleCloudDialogflowV2beta1AudioInput
|
7640
|
-
include Google::Apis::Core::Hashable
|
7641
|
-
|
7642
|
-
# Required. The natural language speech audio to be processed. A single request
|
7643
|
-
# can contain up to 1 minute of speech audio data. The transcribed text cannot
|
7644
|
-
# contain more than 256 bytes.
|
7645
|
-
# Corresponds to the JSON property `audio`
|
7646
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
7647
|
-
# @return [String]
|
7648
|
-
attr_accessor :audio
|
7649
|
-
|
7650
|
-
# Instructs the speech recognizer on how to process the audio content.
|
7651
|
-
# Corresponds to the JSON property `config`
|
7652
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig]
|
7653
|
-
attr_accessor :config
|
7654
|
-
|
7655
|
-
def initialize(**args)
|
7656
|
-
update!(**args)
|
7657
|
-
end
|
7658
|
-
|
7659
|
-
# Update properties of this object
|
7660
|
-
def update!(**args)
|
7661
|
-
@audio = args[:audio] if args.key?(:audio)
|
7662
|
-
@config = args[:config] if args.key?(:config)
|
7663
|
-
end
|
7664
|
-
end
|
7665
|
-
|
7666
7784
|
# Defines the Automated Agent to connect to a conversation.
|
7667
7785
|
class GoogleCloudDialogflowV2beta1AutomatedAgentConfig
|
7668
7786
|
include Google::Apis::Core::Hashable
|
@@ -7696,7 +7814,7 @@ module Google
|
|
7696
7814
|
include Google::Apis::Core::Hashable
|
7697
7815
|
|
7698
7816
|
# The collection of current Dialogflow CX agent session parameters at the time
|
7699
|
-
# of this response.
|
7817
|
+
# of this response. Deprecated: Use `parameters` instead.
|
7700
7818
|
# Corresponds to the JSON property `cxSessionParameters`
|
7701
7819
|
# @return [Hash<String,Object>]
|
7702
7820
|
attr_accessor :cx_session_parameters
|
@@ -7718,6 +7836,20 @@ module Google
|
|
7718
7836
|
# @return [String]
|
7719
7837
|
attr_accessor :intent
|
7720
7838
|
|
7839
|
+
# The confidence of the match. Values range from 0.0 (completely uncertain) to 1.
|
7840
|
+
# 0 (completely certain). This value is for informational purpose only and is
|
7841
|
+
# only used to help match the best intent within the classification threshold.
|
7842
|
+
# This value may change for the same end-user expression at any time due to a
|
7843
|
+
# model retraining or change in implementation.
|
7844
|
+
# Corresponds to the JSON property `matchConfidence`
|
7845
|
+
# @return [Float]
|
7846
|
+
attr_accessor :match_confidence
|
7847
|
+
|
7848
|
+
# The collection of current parameters at the time of this response.
|
7849
|
+
# Corresponds to the JSON property `parameters`
|
7850
|
+
# @return [Hash<String,Object>]
|
7851
|
+
attr_accessor :parameters
|
7852
|
+
|
7721
7853
|
# Response messages from the automated agent.
|
7722
7854
|
# Corresponds to the JSON property `responseMessages`
|
7723
7855
|
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessage>]
|
@@ -7733,6 +7865,8 @@ module Google
|
|
7733
7865
|
@detect_intent_response = args[:detect_intent_response] if args.key?(:detect_intent_response)
|
7734
7866
|
@event = args[:event] if args.key?(:event)
|
7735
7867
|
@intent = args[:intent] if args.key?(:intent)
|
7868
|
+
@match_confidence = args[:match_confidence] if args.key?(:match_confidence)
|
7869
|
+
@parameters = args[:parameters] if args.key?(:parameters)
|
7736
7870
|
@response_messages = args[:response_messages] if args.key?(:response_messages)
|
7737
7871
|
end
|
7738
7872
|
end
|
@@ -8036,90 +8170,6 @@ module Google
|
|
8036
8170
|
end
|
8037
8171
|
end
|
8038
8172
|
|
8039
|
-
# Represents a call matcher that describes criteria for matching incoming SIP
|
8040
|
-
# calls to a conversation. When Dialogflow get a SIP call from a third-party
|
8041
|
-
# carrier, Dialogflow matches the call to an existing conversation by either: *
|
8042
|
-
# Extracting the conversation id from the [Call-Info header](https://tools.ietf.
|
8043
|
-
# org/html/rfc3261#section-20.9), e.g. `Call-Info: ;purpose=Goog-ContactCenter-
|
8044
|
-
# Conversation`. * Or, if that doesn't work, matching incoming [SIP headers](
|
8045
|
-
# https://tools.ietf.org/html/rfc3261#section-7.3) against any CallMatcher for
|
8046
|
-
# the conversation. If an incoming SIP call without valid `Call-Info` header
|
8047
|
-
# matches to zero or multiple conversations with `CallMatcher`, we reject it. A
|
8048
|
-
# call matcher contains equality conditions for SIP headers that all have to be
|
8049
|
-
# fulfilled in order for a SIP call to match. The matched SIP headers consist of
|
8050
|
-
# well-known headers (`To`, `From`, `Call-ID`) and custom headers. A CallMatcher
|
8051
|
-
# is only valid if it specifies: * At least 1 custom header, * or at least 2
|
8052
|
-
# well-known headers.
|
8053
|
-
class GoogleCloudDialogflowV2beta1CallMatcher
|
8054
|
-
include Google::Apis::Core::Hashable
|
8055
|
-
|
8056
|
-
# Value of the [`Call-ID` header](https://tools.ietf.org/html/rfc3261#section-8.
|
8057
|
-
# 1.1.4) to match. If empty or unspecified, we don't match to the [`Call-ID`
|
8058
|
-
# header](https://tools.ietf.org/html/rfc3261#section-8.1.1.4).
|
8059
|
-
# Corresponds to the JSON property `callIdHeader`
|
8060
|
-
# @return [String]
|
8061
|
-
attr_accessor :call_id_header
|
8062
|
-
|
8063
|
-
# Custom SIP headers. See the [description of headers in the RFC](https://tools.
|
8064
|
-
# ietf.org/html/rfc3261#section-7.3).
|
8065
|
-
# Corresponds to the JSON property `customHeaders`
|
8066
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CallMatcherCustomHeaders]
|
8067
|
-
attr_accessor :custom_headers
|
8068
|
-
|
8069
|
-
# Value of the [`From` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.
|
8070
|
-
# 3) to match. If empty or unspecified, we don't match to the [`From` header](
|
8071
|
-
# https://tools.ietf.org/html/rfc3261#section-8.1.1.3).
|
8072
|
-
# Corresponds to the JSON property `fromHeader`
|
8073
|
-
# @return [String]
|
8074
|
-
attr_accessor :from_header
|
8075
|
-
|
8076
|
-
# Output only. The unique identifier of this call matcher. Format: `projects//
|
8077
|
-
# locations//conversations//callMatchers/`.
|
8078
|
-
# Corresponds to the JSON property `name`
|
8079
|
-
# @return [String]
|
8080
|
-
attr_accessor :name
|
8081
|
-
|
8082
|
-
# Value of the [`To` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.2)
|
8083
|
-
# to match. If empty or unspecified, we don't match to the [`To` header](https:/
|
8084
|
-
# /tools.ietf.org/html/rfc3261#section-8.1.1.2).
|
8085
|
-
# Corresponds to the JSON property `toHeader`
|
8086
|
-
# @return [String]
|
8087
|
-
attr_accessor :to_header
|
8088
|
-
|
8089
|
-
def initialize(**args)
|
8090
|
-
update!(**args)
|
8091
|
-
end
|
8092
|
-
|
8093
|
-
# Update properties of this object
|
8094
|
-
def update!(**args)
|
8095
|
-
@call_id_header = args[:call_id_header] if args.key?(:call_id_header)
|
8096
|
-
@custom_headers = args[:custom_headers] if args.key?(:custom_headers)
|
8097
|
-
@from_header = args[:from_header] if args.key?(:from_header)
|
8098
|
-
@name = args[:name] if args.key?(:name)
|
8099
|
-
@to_header = args[:to_header] if args.key?(:to_header)
|
8100
|
-
end
|
8101
|
-
end
|
8102
|
-
|
8103
|
-
# Custom SIP headers. See the [description of headers in the RFC](https://tools.
|
8104
|
-
# ietf.org/html/rfc3261#section-7.3).
|
8105
|
-
class GoogleCloudDialogflowV2beta1CallMatcherCustomHeaders
|
8106
|
-
include Google::Apis::Core::Hashable
|
8107
|
-
|
8108
|
-
# Cisco's proprietary `Cisco-Guid` header.
|
8109
|
-
# Corresponds to the JSON property `ciscoGuid`
|
8110
|
-
# @return [String]
|
8111
|
-
attr_accessor :cisco_guid
|
8112
|
-
|
8113
|
-
def initialize(**args)
|
8114
|
-
update!(**args)
|
8115
|
-
end
|
8116
|
-
|
8117
|
-
# Update properties of this object
|
8118
|
-
def update!(**args)
|
8119
|
-
@cisco_guid = args[:cisco_guid] if args.key?(:cisco_guid)
|
8120
|
-
end
|
8121
|
-
end
|
8122
|
-
|
8123
8173
|
# The request message for Participants.CompileSuggestion.
|
8124
8174
|
class GoogleCloudDialogflowV2beta1CompileSuggestionRequest
|
8125
8175
|
include Google::Apis::Core::Hashable
|
@@ -8416,7 +8466,8 @@ module Google
|
|
8416
8466
|
attr_accessor :human_agent_assistant_config
|
8417
8467
|
|
8418
8468
|
# Defines the hand off to a live agent, typically on which external agent
|
8419
|
-
# service provider to connect to a conversation.
|
8469
|
+
# service provider to connect to a conversation. Currently, this feature is not
|
8470
|
+
# general available, please contact Google to get access.
|
8420
8471
|
# Corresponds to the JSON property `humanAgentHandoffConfig`
|
8421
8472
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig]
|
8422
8473
|
attr_accessor :human_agent_handoff_config
|
@@ -8480,38 +8531,6 @@ module Google
|
|
8480
8531
|
end
|
8481
8532
|
end
|
8482
8533
|
|
8483
|
-
# The request message for Conversations.CreateCallMatcher.
|
8484
|
-
class GoogleCloudDialogflowV2beta1CreateCallMatcherRequest
|
8485
|
-
include Google::Apis::Core::Hashable
|
8486
|
-
|
8487
|
-
# Represents a call matcher that describes criteria for matching incoming SIP
|
8488
|
-
# calls to a conversation. When Dialogflow get a SIP call from a third-party
|
8489
|
-
# carrier, Dialogflow matches the call to an existing conversation by either: *
|
8490
|
-
# Extracting the conversation id from the [Call-Info header](https://tools.ietf.
|
8491
|
-
# org/html/rfc3261#section-20.9), e.g. `Call-Info: ;purpose=Goog-ContactCenter-
|
8492
|
-
# Conversation`. * Or, if that doesn't work, matching incoming [SIP headers](
|
8493
|
-
# https://tools.ietf.org/html/rfc3261#section-7.3) against any CallMatcher for
|
8494
|
-
# the conversation. If an incoming SIP call without valid `Call-Info` header
|
8495
|
-
# matches to zero or multiple conversations with `CallMatcher`, we reject it. A
|
8496
|
-
# call matcher contains equality conditions for SIP headers that all have to be
|
8497
|
-
# fulfilled in order for a SIP call to match. The matched SIP headers consist of
|
8498
|
-
# well-known headers (`To`, `From`, `Call-ID`) and custom headers. A CallMatcher
|
8499
|
-
# is only valid if it specifies: * At least 1 custom header, * or at least 2
|
8500
|
-
# well-known headers.
|
8501
|
-
# Corresponds to the JSON property `callMatcher`
|
8502
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CallMatcher]
|
8503
|
-
attr_accessor :call_matcher
|
8504
|
-
|
8505
|
-
def initialize(**args)
|
8506
|
-
update!(**args)
|
8507
|
-
end
|
8508
|
-
|
8509
|
-
# Update properties of this object
|
8510
|
-
def update!(**args)
|
8511
|
-
@call_matcher = args[:call_matcher] if args.key?(:call_matcher)
|
8512
|
-
end
|
8513
|
-
end
|
8514
|
-
|
8515
8534
|
# The request message to create one Message. Currently it is only used in
|
8516
8535
|
# BatchCreateMessagesRequest.
|
8517
8536
|
class GoogleCloudDialogflowV2beta1CreateMessageRequest
|
@@ -8952,6 +8971,18 @@ module Google
|
|
8952
8971
|
# @return [String]
|
8953
8972
|
attr_accessor :description
|
8954
8973
|
|
8974
|
+
# By default, your agent responds to a matched intent with a static response. As
|
8975
|
+
# an alternative, you can provide a more dynamic response by using fulfillment.
|
8976
|
+
# When you enable fulfillment for an intent, Dialogflow responds to that intent
|
8977
|
+
# by calling a service that you define. For example, if an end-user wants to
|
8978
|
+
# schedule a haircut on Friday, your service can check your database and respond
|
8979
|
+
# to the end-user with availability information for Friday. For more information,
|
8980
|
+
# see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/
|
8981
|
+
# fulfillment-overview).
|
8982
|
+
# Corresponds to the JSON property `fulfillment`
|
8983
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment]
|
8984
|
+
attr_accessor :fulfillment
|
8985
|
+
|
8955
8986
|
# Output only. The unique identifier of this agent environment. Supported
|
8956
8987
|
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
8957
8988
|
# environments/`
|
@@ -8965,6 +8996,11 @@ module Google
|
|
8965
8996
|
# @return [String]
|
8966
8997
|
attr_accessor :state
|
8967
8998
|
|
8999
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
9000
|
+
# Corresponds to the JSON property `textToSpeechSettings`
|
9001
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings]
|
9002
|
+
attr_accessor :text_to_speech_settings
|
9003
|
+
|
8968
9004
|
# Output only. The last update time of this environment. This field is read-only,
|
8969
9005
|
# i.e., it cannot be set by create and update methods.
|
8970
9006
|
# Corresponds to the JSON property `updateTime`
|
@@ -8979,12 +9015,80 @@ module Google
|
|
8979
9015
|
def update!(**args)
|
8980
9016
|
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
8981
9017
|
@description = args[:description] if args.key?(:description)
|
9018
|
+
@fulfillment = args[:fulfillment] if args.key?(:fulfillment)
|
8982
9019
|
@name = args[:name] if args.key?(:name)
|
8983
9020
|
@state = args[:state] if args.key?(:state)
|
9021
|
+
@text_to_speech_settings = args[:text_to_speech_settings] if args.key?(:text_to_speech_settings)
|
8984
9022
|
@update_time = args[:update_time] if args.key?(:update_time)
|
8985
9023
|
end
|
8986
9024
|
end
|
8987
9025
|
|
9026
|
+
# The response message for Environments.GetEnvironmentHistory.
|
9027
|
+
class GoogleCloudDialogflowV2beta1EnvironmentHistory
|
9028
|
+
include Google::Apis::Core::Hashable
|
9029
|
+
|
9030
|
+
# Output only. The list of agent environments. There will be a maximum number of
|
9031
|
+
# items returned based on the page_size field in the request.
|
9032
|
+
# Corresponds to the JSON property `entries`
|
9033
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry>]
|
9034
|
+
attr_accessor :entries
|
9035
|
+
|
9036
|
+
# Output only. Token to retrieve the next page of results, or empty if there are
|
9037
|
+
# no more results in the list.
|
9038
|
+
# Corresponds to the JSON property `nextPageToken`
|
9039
|
+
# @return [String]
|
9040
|
+
attr_accessor :next_page_token
|
9041
|
+
|
9042
|
+
# Output only. The name of the environment this history is for. Supported
|
9043
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
9044
|
+
# environments/`
|
9045
|
+
# Corresponds to the JSON property `parent`
|
9046
|
+
# @return [String]
|
9047
|
+
attr_accessor :parent
|
9048
|
+
|
9049
|
+
def initialize(**args)
|
9050
|
+
update!(**args)
|
9051
|
+
end
|
9052
|
+
|
9053
|
+
# Update properties of this object
|
9054
|
+
def update!(**args)
|
9055
|
+
@entries = args[:entries] if args.key?(:entries)
|
9056
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
9057
|
+
@parent = args[:parent] if args.key?(:parent)
|
9058
|
+
end
|
9059
|
+
end
|
9060
|
+
|
9061
|
+
# Represents an environment history entry.
|
9062
|
+
class GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
|
9063
|
+
include Google::Apis::Core::Hashable
|
9064
|
+
|
9065
|
+
# The agent version loaded into this environment history entry.
|
9066
|
+
# Corresponds to the JSON property `agentVersion`
|
9067
|
+
# @return [String]
|
9068
|
+
attr_accessor :agent_version
|
9069
|
+
|
9070
|
+
# The creation time of this environment history entry.
|
9071
|
+
# Corresponds to the JSON property `createTime`
|
9072
|
+
# @return [String]
|
9073
|
+
attr_accessor :create_time
|
9074
|
+
|
9075
|
+
# The developer-provided description for this environment history entry.
|
9076
|
+
# Corresponds to the JSON property `description`
|
9077
|
+
# @return [String]
|
9078
|
+
attr_accessor :description
|
9079
|
+
|
9080
|
+
def initialize(**args)
|
9081
|
+
update!(**args)
|
9082
|
+
end
|
9083
|
+
|
9084
|
+
# Update properties of this object
|
9085
|
+
def update!(**args)
|
9086
|
+
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
9087
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
9088
|
+
@description = args[:description] if args.key?(:description)
|
9089
|
+
end
|
9090
|
+
end
|
9091
|
+
|
8988
9092
|
# Events allow for matching intents by event name instead of the natural
|
8989
9093
|
# language input. For instance, input `` can trigger a personalized welcome
|
8990
9094
|
# response. The parameter `name` may be used by the agent in the response: `"
|
@@ -9143,7 +9247,8 @@ module Google
|
|
9143
9247
|
class GoogleCloudDialogflowV2beta1Fulfillment
|
9144
9248
|
include Google::Apis::Core::Hashable
|
9145
9249
|
|
9146
|
-
# The human-readable name of the fulfillment, unique within the agent.
|
9250
|
+
# The human-readable name of the fulfillment, unique within the agent. This
|
9251
|
+
# field is not used for Fulfillment in an Environment.
|
9147
9252
|
# Corresponds to the JSON property `displayName`
|
9148
9253
|
# @return [String]
|
9149
9254
|
attr_accessor :display_name
|
@@ -9169,7 +9274,8 @@ module Google
|
|
9169
9274
|
attr_accessor :generic_web_service
|
9170
9275
|
|
9171
9276
|
# Required. The unique identifier of the fulfillment. Supported formats: - `
|
9172
|
-
# projects//agent/fulfillment` - `projects//locations//agent/fulfillment`
|
9277
|
+
# projects//agent/fulfillment` - `projects//locations//agent/fulfillment` This
|
9278
|
+
# field is not used for Fulfillment in an Environment.
|
9173
9279
|
# Corresponds to the JSON property `name`
|
9174
9280
|
# @return [String]
|
9175
9281
|
attr_accessor :name
|
@@ -9215,8 +9321,9 @@ module Google
|
|
9215
9321
|
class GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
|
9216
9322
|
include Google::Apis::Core::Hashable
|
9217
9323
|
|
9218
|
-
# Indicates if generic web service is created through Cloud Functions
|
9219
|
-
# integration. Defaults to false.
|
9324
|
+
# Optional. Indicates if generic web service is created through Cloud Functions
|
9325
|
+
# integration. Defaults to false. is_cloud_function is deprecated. Cloud
|
9326
|
+
# functions can be configured by its uri as a regular web service now.
|
9220
9327
|
# Corresponds to the JSON property `isCloudFunction`
|
9221
9328
|
# @return [Boolean]
|
9222
9329
|
attr_accessor :is_cloud_function
|
@@ -9341,8 +9448,7 @@ module Google
|
|
9341
9448
|
class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig
|
9342
9449
|
include Google::Apis::Core::Hashable
|
9343
9450
|
|
9344
|
-
#
|
9345
|
-
# conversationModels/`.
|
9451
|
+
# Conversation model resource name. Format: `projects//conversationModels/`.
|
9346
9452
|
# Corresponds to the JSON property `model`
|
9347
9453
|
# @return [String]
|
9348
9454
|
attr_accessor :model
|
@@ -9363,7 +9469,8 @@ module Google
|
|
9363
9469
|
|
9364
9470
|
# Enable entity extraction in conversation messages on [agent assist stage](
|
9365
9471
|
# https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
|
9366
|
-
# If unspecified, defaults to false.
|
9472
|
+
# If unspecified, defaults to false. Currently, this feature is not general
|
9473
|
+
# available, please contact Google to get access.
|
9367
9474
|
# Corresponds to the JSON property `enableEntityExtraction`
|
9368
9475
|
# @return [Boolean]
|
9369
9476
|
attr_accessor :enable_entity_extraction
|
@@ -9704,7 +9811,8 @@ module Google
|
|
9704
9811
|
end
|
9705
9812
|
|
9706
9813
|
# Defines the hand off to a live agent, typically on which external agent
|
9707
|
-
# service provider to connect to a conversation.
|
9814
|
+
# service provider to connect to a conversation. Currently, this feature is not
|
9815
|
+
# general available, please contact Google to get access.
|
9708
9816
|
class GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig
|
9709
9817
|
include Google::Apis::Core::Hashable
|
9710
9818
|
|
@@ -9902,34 +10010,6 @@ module Google
|
|
9902
10010
|
end
|
9903
10011
|
end
|
9904
10012
|
|
9905
|
-
# Represents the natural language speech audio to be processed.
|
9906
|
-
class GoogleCloudDialogflowV2beta1InputAudio
|
9907
|
-
include Google::Apis::Core::Hashable
|
9908
|
-
|
9909
|
-
# Required. The natural language speech audio to be processed. A single request
|
9910
|
-
# can contain up to 1 minute of speech audio data. The transcribed text cannot
|
9911
|
-
# contain more than 256 bytes.
|
9912
|
-
# Corresponds to the JSON property `audio`
|
9913
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
9914
|
-
# @return [String]
|
9915
|
-
attr_accessor :audio
|
9916
|
-
|
9917
|
-
# Instructs the speech recognizer on how to process the audio content.
|
9918
|
-
# Corresponds to the JSON property `config`
|
9919
|
-
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig]
|
9920
|
-
attr_accessor :config
|
9921
|
-
|
9922
|
-
def initialize(**args)
|
9923
|
-
update!(**args)
|
9924
|
-
end
|
9925
|
-
|
9926
|
-
# Update properties of this object
|
9927
|
-
def update!(**args)
|
9928
|
-
@audio = args[:audio] if args.key?(:audio)
|
9929
|
-
@config = args[:config] if args.key?(:config)
|
9930
|
-
end
|
9931
|
-
end
|
9932
|
-
|
9933
10013
|
# Instructs the speech recognizer on how to process the audio content.
|
9934
10014
|
class GoogleCloudDialogflowV2beta1InputAudioConfig
|
9935
10015
|
include Google::Apis::Core::Hashable
|
@@ -10038,34 +10118,6 @@ module Google
|
|
10038
10118
|
end
|
10039
10119
|
end
|
10040
10120
|
|
10041
|
-
# Represents the natural language text to be processed.
|
10042
|
-
class GoogleCloudDialogflowV2beta1InputText
|
10043
|
-
include Google::Apis::Core::Hashable
|
10044
|
-
|
10045
|
-
# Required. The language of this conversational query. See [Language Support](
|
10046
|
-
# https://cloud.google.com/dialogflow/docs/reference/language) for a list of the
|
10047
|
-
# currently supported language codes.
|
10048
|
-
# Corresponds to the JSON property `languageCode`
|
10049
|
-
# @return [String]
|
10050
|
-
attr_accessor :language_code
|
10051
|
-
|
10052
|
-
# Required. The UTF-8 encoded natural language text to be processed. Text length
|
10053
|
-
# must not exceed 256 bytes.
|
10054
|
-
# Corresponds to the JSON property `text`
|
10055
|
-
# @return [String]
|
10056
|
-
attr_accessor :text
|
10057
|
-
|
10058
|
-
def initialize(**args)
|
10059
|
-
update!(**args)
|
10060
|
-
end
|
10061
|
-
|
10062
|
-
# Update properties of this object
|
10063
|
-
def update!(**args)
|
10064
|
-
@language_code = args[:language_code] if args.key?(:language_code)
|
10065
|
-
@text = args[:text] if args.key?(:text)
|
10066
|
-
end
|
10067
|
-
end
|
10068
|
-
|
10069
10121
|
# An intent categorizes an end-user's intention for one conversation turn. For
|
10070
10122
|
# each agent, you define many intents, where your combined intents can handle a
|
10071
10123
|
# complete conversation. When an end-user writes or says something, referred to
|
@@ -11971,33 +12023,6 @@ module Google
|
|
11971
12023
|
end
|
11972
12024
|
end
|
11973
12025
|
|
11974
|
-
# The response message for Conversations.ListCallMatchers.
|
11975
|
-
class GoogleCloudDialogflowV2beta1ListCallMatchersResponse
|
11976
|
-
include Google::Apis::Core::Hashable
|
11977
|
-
|
11978
|
-
# The list of call matchers. There is a maximum number of items returned based
|
11979
|
-
# on the page_size field in the request.
|
11980
|
-
# Corresponds to the JSON property `callMatchers`
|
11981
|
-
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1CallMatcher>]
|
11982
|
-
attr_accessor :call_matchers
|
11983
|
-
|
11984
|
-
# Token to retrieve the next page of results or empty if there are no more
|
11985
|
-
# results in the list.
|
11986
|
-
# Corresponds to the JSON property `nextPageToken`
|
11987
|
-
# @return [String]
|
11988
|
-
attr_accessor :next_page_token
|
11989
|
-
|
11990
|
-
def initialize(**args)
|
11991
|
-
update!(**args)
|
11992
|
-
end
|
11993
|
-
|
11994
|
-
# Update properties of this object
|
11995
|
-
def update!(**args)
|
11996
|
-
@call_matchers = args[:call_matchers] if args.key?(:call_matchers)
|
11997
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
11998
|
-
end
|
11999
|
-
end
|
12000
|
-
|
12001
12026
|
# The response message for Contexts.ListContexts.
|
12002
12027
|
class GoogleCloudDialogflowV2beta1ListContextsResponse
|
12003
12028
|
include Google::Apis::Core::Hashable
|
@@ -12322,6 +12347,33 @@ module Google
|
|
12322
12347
|
end
|
12323
12348
|
end
|
12324
12349
|
|
12350
|
+
# The response message for Versions.ListVersions.
|
12351
|
+
class GoogleCloudDialogflowV2beta1ListVersionsResponse
|
12352
|
+
include Google::Apis::Core::Hashable
|
12353
|
+
|
12354
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
12355
|
+
# results in the list.
|
12356
|
+
# Corresponds to the JSON property `nextPageToken`
|
12357
|
+
# @return [String]
|
12358
|
+
attr_accessor :next_page_token
|
12359
|
+
|
12360
|
+
# The list of agent versions. There will be a maximum number of items returned
|
12361
|
+
# based on the page_size field in the request.
|
12362
|
+
# Corresponds to the JSON property `versions`
|
12363
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version>]
|
12364
|
+
attr_accessor :versions
|
12365
|
+
|
12366
|
+
def initialize(**args)
|
12367
|
+
update!(**args)
|
12368
|
+
end
|
12369
|
+
|
12370
|
+
# Update properties of this object
|
12371
|
+
def update!(**args)
|
12372
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
12373
|
+
@versions = args[:versions] if args.key?(:versions)
|
12374
|
+
end
|
12375
|
+
end
|
12376
|
+
|
12325
12377
|
# Defines logging behavior for conversation lifecycle events.
|
12326
12378
|
class GoogleCloudDialogflowV2beta1LoggingConfig
|
12327
12379
|
include Google::Apis::Core::Hashable
|
@@ -12640,6 +12692,11 @@ module Google
|
|
12640
12692
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig]
|
12641
12693
|
attr_accessor :audio_config
|
12642
12694
|
|
12695
|
+
# A wrapper of repeated TelephonyDtmf digits.
|
12696
|
+
# Corresponds to the JSON property `dtmf`
|
12697
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents]
|
12698
|
+
attr_accessor :dtmf
|
12699
|
+
|
12643
12700
|
# Events allow for matching intents by event name instead of the natural
|
12644
12701
|
# language input. For instance, input `` can trigger a personalized welcome
|
12645
12702
|
# response. The parameter `name` may be used by the agent in the response: `"
|
@@ -12660,6 +12717,7 @@ module Google
|
|
12660
12717
|
# Update properties of this object
|
12661
12718
|
def update!(**args)
|
12662
12719
|
@audio_config = args[:audio_config] if args.key?(:audio_config)
|
12720
|
+
@dtmf = args[:dtmf] if args.key?(:dtmf)
|
12663
12721
|
@event = args[:event] if args.key?(:event)
|
12664
12722
|
@text = args[:text] if args.key?(:text)
|
12665
12723
|
end
|
@@ -12676,8 +12734,8 @@ module Google
|
|
12676
12734
|
|
12677
12735
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
12678
12736
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
12679
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
12680
|
-
# within normalized ranges.
|
12737
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
12738
|
+
# must be within normalized ranges.
|
12681
12739
|
# Corresponds to the JSON property `geoLocation`
|
12682
12740
|
# @return [Google::Apis::DialogflowV2beta1::GoogleTypeLatLng]
|
12683
12741
|
attr_accessor :geo_location
|
@@ -13805,6 +13863,25 @@ module Google
|
|
13805
13863
|
end
|
13806
13864
|
end
|
13807
13865
|
|
13866
|
+
# A wrapper of repeated TelephonyDtmf digits.
|
13867
|
+
class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
|
13868
|
+
include Google::Apis::Core::Hashable
|
13869
|
+
|
13870
|
+
# A sequence of TelephonyDtmf digits.
|
13871
|
+
# Corresponds to the JSON property `dtmfEvents`
|
13872
|
+
# @return [Array<String>]
|
13873
|
+
attr_accessor :dtmf_events
|
13874
|
+
|
13875
|
+
def initialize(**args)
|
13876
|
+
update!(**args)
|
13877
|
+
end
|
13878
|
+
|
13879
|
+
# Update properties of this object
|
13880
|
+
def update!(**args)
|
13881
|
+
@dtmf_events = args[:dtmf_events] if args.key?(:dtmf_events)
|
13882
|
+
end
|
13883
|
+
end
|
13884
|
+
|
13808
13885
|
# Represents the natural language text to be processed.
|
13809
13886
|
class GoogleCloudDialogflowV2beta1TextInput
|
13810
13887
|
include Google::Apis::Core::Hashable
|
@@ -13834,6 +13911,51 @@ module Google
|
|
13834
13911
|
end
|
13835
13912
|
end
|
13836
13913
|
|
13914
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
13915
|
+
class GoogleCloudDialogflowV2beta1TextToSpeechSettings
|
13916
|
+
include Google::Apis::Core::Hashable
|
13917
|
+
|
13918
|
+
# Optional. Indicates whether text to speech is enabled. Even when this field is
|
13919
|
+
# false, other settings in this proto are still retained.
|
13920
|
+
# Corresponds to the JSON property `enableTextToSpeech`
|
13921
|
+
# @return [Boolean]
|
13922
|
+
attr_accessor :enable_text_to_speech
|
13923
|
+
alias_method :enable_text_to_speech?, :enable_text_to_speech
|
13924
|
+
|
13925
|
+
# Required. Audio encoding of the synthesized audio content.
|
13926
|
+
# Corresponds to the JSON property `outputAudioEncoding`
|
13927
|
+
# @return [String]
|
13928
|
+
attr_accessor :output_audio_encoding
|
13929
|
+
|
13930
|
+
# Optional. The synthesis sample rate (in hertz) for this audio. If not provided,
|
13931
|
+
# then the synthesizer will use the default sample rate based on the audio
|
13932
|
+
# encoding. If this is different from the voice's natural sample rate, then the
|
13933
|
+
# synthesizer will honor this request by converting to the desired sample rate (
|
13934
|
+
# which might result in worse audio quality).
|
13935
|
+
# Corresponds to the JSON property `sampleRateHertz`
|
13936
|
+
# @return [Fixnum]
|
13937
|
+
attr_accessor :sample_rate_hertz
|
13938
|
+
|
13939
|
+
# Optional. Configuration of how speech should be synthesized, mapping from
|
13940
|
+
# language (https://cloud.google.com/dialogflow/docs/reference/language) to
|
13941
|
+
# SynthesizeSpeechConfig.
|
13942
|
+
# Corresponds to the JSON property `synthesizeSpeechConfigs`
|
13943
|
+
# @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig>]
|
13944
|
+
attr_accessor :synthesize_speech_configs
|
13945
|
+
|
13946
|
+
def initialize(**args)
|
13947
|
+
update!(**args)
|
13948
|
+
end
|
13949
|
+
|
13950
|
+
# Update properties of this object
|
13951
|
+
def update!(**args)
|
13952
|
+
@enable_text_to_speech = args[:enable_text_to_speech] if args.key?(:enable_text_to_speech)
|
13953
|
+
@output_audio_encoding = args[:output_audio_encoding] if args.key?(:output_audio_encoding)
|
13954
|
+
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
13955
|
+
@synthesize_speech_configs = args[:synthesize_speech_configs] if args.key?(:synthesize_speech_configs)
|
13956
|
+
end
|
13957
|
+
end
|
13958
|
+
|
13837
13959
|
# The request message for Agents.TrainAgent.
|
13838
13960
|
class GoogleCloudDialogflowV2beta1TrainAgentRequest
|
13839
13961
|
include Google::Apis::Core::Hashable
|
@@ -13903,6 +14025,61 @@ module Google
|
|
13903
14025
|
end
|
13904
14026
|
end
|
13905
14027
|
|
14028
|
+
# You can create multiple versions of your agent and publish them to separate
|
14029
|
+
# environments. When you edit an agent, you are editing the draft agent. At any
|
14030
|
+
# point, you can save the draft agent as an agent version, which is an immutable
|
14031
|
+
# snapshot of your agent. When you save the draft agent, it is published to the
|
14032
|
+
# default environment. When you create agent versions, you can publish them to
|
14033
|
+
# custom environments. You can create a variety of custom environments for: -
|
14034
|
+
# testing - development - production - etc. For more information, see the [
|
14035
|
+
# versions and environments guide](https://cloud.google.com/dialogflow/docs/
|
14036
|
+
# agents-versions).
|
14037
|
+
class GoogleCloudDialogflowV2beta1Version
|
14038
|
+
include Google::Apis::Core::Hashable
|
14039
|
+
|
14040
|
+
# Output only. The creation time of this version. This field is read-only, i.e.,
|
14041
|
+
# it cannot be set by create and update methods.
|
14042
|
+
# Corresponds to the JSON property `createTime`
|
14043
|
+
# @return [String]
|
14044
|
+
attr_accessor :create_time
|
14045
|
+
|
14046
|
+
# Optional. The developer-provided description of this version.
|
14047
|
+
# Corresponds to the JSON property `description`
|
14048
|
+
# @return [String]
|
14049
|
+
attr_accessor :description
|
14050
|
+
|
14051
|
+
# Output only. The unique identifier of this agent version. Supported formats: -
|
14052
|
+
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
14053
|
+
# Corresponds to the JSON property `name`
|
14054
|
+
# @return [String]
|
14055
|
+
attr_accessor :name
|
14056
|
+
|
14057
|
+
# Output only. The status of this version. This field is read-only and cannot be
|
14058
|
+
# set by create and update methods.
|
14059
|
+
# Corresponds to the JSON property `status`
|
14060
|
+
# @return [String]
|
14061
|
+
attr_accessor :status
|
14062
|
+
|
14063
|
+
# Output only. The sequential number of this version. This field is read-only
|
14064
|
+
# which means it cannot be set by create and update methods.
|
14065
|
+
# Corresponds to the JSON property `versionNumber`
|
14066
|
+
# @return [Fixnum]
|
14067
|
+
attr_accessor :version_number
|
14068
|
+
|
14069
|
+
def initialize(**args)
|
14070
|
+
update!(**args)
|
14071
|
+
end
|
14072
|
+
|
14073
|
+
# Update properties of this object
|
14074
|
+
def update!(**args)
|
14075
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
14076
|
+
@description = args[:description] if args.key?(:description)
|
14077
|
+
@name = args[:name] if args.key?(:name)
|
14078
|
+
@status = args[:status] if args.key?(:status)
|
14079
|
+
@version_number = args[:version_number] if args.key?(:version_number)
|
14080
|
+
end
|
14081
|
+
end
|
14082
|
+
|
13906
14083
|
# Description of which voice to use for speech synthesis.
|
13907
14084
|
class GoogleCloudDialogflowV2beta1VoiceSelectionParams
|
13908
14085
|
include Google::Apis::Core::Hashable
|
@@ -14365,8 +14542,8 @@ module Google
|
|
14365
14542
|
|
14366
14543
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
14367
14544
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
14368
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
14369
|
-
# within normalized ranges.
|
14545
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
14546
|
+
# must be within normalized ranges.
|
14370
14547
|
class GoogleTypeLatLng
|
14371
14548
|
include Google::Apis::Core::Hashable
|
14372
14549
|
|