google-apis-dialogflow_v2 0.7.0 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- 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 +422 -218
- data/lib/google/apis/dialogflow_v2/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2/representations.rb +148 -77
- data/lib/google/apis/dialogflow_v2/service.rb +3784 -810
- 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: f3386d93bb66ae4e5592277e5af45166b72afc14890d014a3e57406eb8c059af
|
4
|
+
data.tar.gz: c665528e6191dbbad744d99f5db5f10747c7b08e6dff585fec5d578cf50ef1a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c804c160aacacd7a9ec03663fc58fb3f0994f8f5fd406f1589ca68e2260909dc82ec48ba6835249df4e378230fd25dcd2eb569a2684e9182a19298bd44121ef2
|
7
|
+
data.tar.gz: bbf21b92e0335c887b27c147a3c91b576d73f5a948964df1d95a4432f9b87274f5c7509e3c9919cdf48ae8aa53ea878c9d5a74446481fe192b48876c5bbd29d2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,25 @@
|
|
1
1
|
# Release history for google-apis-dialogflow_v2
|
2
2
|
|
3
|
+
### v0.12.0 (2021-05-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210517
|
6
|
+
|
7
|
+
### v0.11.0 (2021-04-28)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210426
|
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 = '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
|
@@ -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::DialogflowV2::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::DialogflowV2::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::DialogflowV2::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::DialogflowV2::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
|
|
@@ -4916,11 +5080,6 @@ module Google
|
|
4916
5080
|
class GoogleCloudDialogflowV2AnalyzeContentRequest
|
4917
5081
|
include Google::Apis::Core::Hashable
|
4918
5082
|
|
4919
|
-
# Represents the natural language speech audio to be processed.
|
4920
|
-
# Corresponds to the JSON property `audioInput`
|
4921
|
-
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AudioInput]
|
4922
|
-
attr_accessor :audio_input
|
4923
|
-
|
4924
5083
|
# Events allow for matching intents by event name instead of the natural
|
4925
5084
|
# language input. For instance, input `` can trigger a personalized welcome
|
4926
5085
|
# response. The parameter `name` may be used by the agent in the response: `"
|
@@ -4959,7 +5118,6 @@ module Google
|
|
4959
5118
|
|
4960
5119
|
# Update properties of this object
|
4961
5120
|
def update!(**args)
|
4962
|
-
@audio_input = args[:audio_input] if args.key?(:audio_input)
|
4963
5121
|
@event_input = args[:event_input] if args.key?(:event_input)
|
4964
5122
|
@query_params = args[:query_params] if args.key?(:query_params)
|
4965
5123
|
@reply_audio_config = args[:reply_audio_config] if args.key?(:reply_audio_config)
|
@@ -5217,34 +5375,6 @@ module Google
|
|
5217
5375
|
end
|
5218
5376
|
end
|
5219
5377
|
|
5220
|
-
# Represents the natural language speech audio to be processed.
|
5221
|
-
class GoogleCloudDialogflowV2AudioInput
|
5222
|
-
include Google::Apis::Core::Hashable
|
5223
|
-
|
5224
|
-
# Required. The natural language speech audio to be processed. A single request
|
5225
|
-
# can contain up to 1 minute of speech audio data. The transcribed text cannot
|
5226
|
-
# contain more than 256 bytes.
|
5227
|
-
# Corresponds to the JSON property `audio`
|
5228
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
5229
|
-
# @return [String]
|
5230
|
-
attr_accessor :audio
|
5231
|
-
|
5232
|
-
# Instructs the speech recognizer how to process the audio content.
|
5233
|
-
# Corresponds to the JSON property `config`
|
5234
|
-
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputAudioConfig]
|
5235
|
-
attr_accessor :config
|
5236
|
-
|
5237
|
-
def initialize(**args)
|
5238
|
-
update!(**args)
|
5239
|
-
end
|
5240
|
-
|
5241
|
-
# Update properties of this object
|
5242
|
-
def update!(**args)
|
5243
|
-
@audio = args[:audio] if args.key?(:audio)
|
5244
|
-
@config = args[:config] if args.key?(:config)
|
5245
|
-
end
|
5246
|
-
end
|
5247
|
-
|
5248
5378
|
# Defines the Automated Agent to connect to a conversation.
|
5249
5379
|
class GoogleCloudDialogflowV2AutomatedAgentConfig
|
5250
5380
|
include Google::Apis::Core::Hashable
|
@@ -5548,90 +5678,6 @@ module Google
|
|
5548
5678
|
end
|
5549
5679
|
end
|
5550
5680
|
|
5551
|
-
# Represents a call matcher that describes criteria for matching incoming SIP
|
5552
|
-
# calls to a conversation. When Dialogflow get a SIP call from a third-party
|
5553
|
-
# carrier, Dialogflow matches the call to an existing conversation by either: *
|
5554
|
-
# Extracting the conversation id from the [Call-Info header](https://tools.ietf.
|
5555
|
-
# org/html/rfc3261#section-20.9), e.g. `Call-Info: ;purpose=Goog-ContactCenter-
|
5556
|
-
# Conversation`. * Or, if that doesn't work, matching incoming [SIP headers](
|
5557
|
-
# https://tools.ietf.org/html/rfc3261#section-7.3) against any CallMatcher for
|
5558
|
-
# the conversation. If an incoming SIP call without valid `Call-Info` header
|
5559
|
-
# matches to zero or multiple conversations with `CallMatcher`, we reject it. A
|
5560
|
-
# call matcher contains equality conditions for SIP headers that all have to be
|
5561
|
-
# fulfilled in order for a SIP call to match. The matched SIP headers consist of
|
5562
|
-
# well-known headers (`To`, `From`, `Call-ID`) and custom headers. A CallMatcher
|
5563
|
-
# is only valid if it specifies: * At least 1 custom header, * or at least 2
|
5564
|
-
# well-known headers.
|
5565
|
-
class GoogleCloudDialogflowV2CallMatcher
|
5566
|
-
include Google::Apis::Core::Hashable
|
5567
|
-
|
5568
|
-
# Value of the [`Call-ID` header](https://tools.ietf.org/html/rfc3261#section-8.
|
5569
|
-
# 1.1.4) to match. If empty or unspecified, we don't match to the [`Call-ID`
|
5570
|
-
# header](https://tools.ietf.org/html/rfc3261#section-8.1.1.4).
|
5571
|
-
# Corresponds to the JSON property `callIdHeader`
|
5572
|
-
# @return [String]
|
5573
|
-
attr_accessor :call_id_header
|
5574
|
-
|
5575
|
-
# Custom SIP headers. See the [description of headers in the RFC](https://tools.
|
5576
|
-
# ietf.org/html/rfc3261#section-7.3).
|
5577
|
-
# Corresponds to the JSON property `customHeaders`
|
5578
|
-
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CallMatcherCustomHeaders]
|
5579
|
-
attr_accessor :custom_headers
|
5580
|
-
|
5581
|
-
# Value of the [`From` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.
|
5582
|
-
# 3) to match. If empty or unspecified, we don't match to the [`From` header](
|
5583
|
-
# https://tools.ietf.org/html/rfc3261#section-8.1.1.3).
|
5584
|
-
# Corresponds to the JSON property `fromHeader`
|
5585
|
-
# @return [String]
|
5586
|
-
attr_accessor :from_header
|
5587
|
-
|
5588
|
-
# Output only. The unique identifier of this call matcher. Format: `projects//
|
5589
|
-
# locations//conversations//callMatchers/`.
|
5590
|
-
# Corresponds to the JSON property `name`
|
5591
|
-
# @return [String]
|
5592
|
-
attr_accessor :name
|
5593
|
-
|
5594
|
-
# Value of the [`To` header](https://tools.ietf.org/html/rfc3261#section-8.1.1.2)
|
5595
|
-
# to match. If empty or unspecified, we don't match to the [`To` header](https:/
|
5596
|
-
# /tools.ietf.org/html/rfc3261#section-8.1.1.2).
|
5597
|
-
# Corresponds to the JSON property `toHeader`
|
5598
|
-
# @return [String]
|
5599
|
-
attr_accessor :to_header
|
5600
|
-
|
5601
|
-
def initialize(**args)
|
5602
|
-
update!(**args)
|
5603
|
-
end
|
5604
|
-
|
5605
|
-
# Update properties of this object
|
5606
|
-
def update!(**args)
|
5607
|
-
@call_id_header = args[:call_id_header] if args.key?(:call_id_header)
|
5608
|
-
@custom_headers = args[:custom_headers] if args.key?(:custom_headers)
|
5609
|
-
@from_header = args[:from_header] if args.key?(:from_header)
|
5610
|
-
@name = args[:name] if args.key?(:name)
|
5611
|
-
@to_header = args[:to_header] if args.key?(:to_header)
|
5612
|
-
end
|
5613
|
-
end
|
5614
|
-
|
5615
|
-
# Custom SIP headers. See the [description of headers in the RFC](https://tools.
|
5616
|
-
# ietf.org/html/rfc3261#section-7.3).
|
5617
|
-
class GoogleCloudDialogflowV2CallMatcherCustomHeaders
|
5618
|
-
include Google::Apis::Core::Hashable
|
5619
|
-
|
5620
|
-
# Cisco's proprietary `Cisco-Guid` header.
|
5621
|
-
# Corresponds to the JSON property `ciscoGuid`
|
5622
|
-
# @return [String]
|
5623
|
-
attr_accessor :cisco_guid
|
5624
|
-
|
5625
|
-
def initialize(**args)
|
5626
|
-
update!(**args)
|
5627
|
-
end
|
5628
|
-
|
5629
|
-
# Update properties of this object
|
5630
|
-
def update!(**args)
|
5631
|
-
@cisco_guid = args[:cisco_guid] if args.key?(:cisco_guid)
|
5632
|
-
end
|
5633
|
-
end
|
5634
|
-
|
5635
5681
|
# The request message for Conversations.CompleteConversation.
|
5636
5682
|
class GoogleCloudDialogflowV2CompleteConversationRequest
|
5637
5683
|
include Google::Apis::Core::Hashable
|
@@ -5864,7 +5910,8 @@ module Google
|
|
5864
5910
|
attr_accessor :human_agent_assistant_config
|
5865
5911
|
|
5866
5912
|
# Defines the hand off to a live agent, typically on which external agent
|
5867
|
-
# service provider to connect to a conversation.
|
5913
|
+
# service provider to connect to a conversation. Currently, this feature is not
|
5914
|
+
# general available, please contact Google to get access.
|
5868
5915
|
# Corresponds to the JSON property `humanAgentHandoffConfig`
|
5869
5916
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfig]
|
5870
5917
|
attr_accessor :human_agent_handoff_config
|
@@ -5881,8 +5928,8 @@ module Google
|
|
5881
5928
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2LoggingConfig]
|
5882
5929
|
attr_accessor :logging_config
|
5883
5930
|
|
5884
|
-
#
|
5885
|
-
#
|
5931
|
+
# The unique identifier of this conversation profile. Format: `projects//
|
5932
|
+
# locations//conversationProfiles/`.
|
5886
5933
|
# Corresponds to the JSON property `name`
|
5887
5934
|
# @return [String]
|
5888
5935
|
attr_accessor :name
|
@@ -5928,38 +5975,6 @@ module Google
|
|
5928
5975
|
end
|
5929
5976
|
end
|
5930
5977
|
|
5931
|
-
# The request message for Conversations.CreateCallMatcher.
|
5932
|
-
class GoogleCloudDialogflowV2CreateCallMatcherRequest
|
5933
|
-
include Google::Apis::Core::Hashable
|
5934
|
-
|
5935
|
-
# Represents a call matcher that describes criteria for matching incoming SIP
|
5936
|
-
# calls to a conversation. When Dialogflow get a SIP call from a third-party
|
5937
|
-
# carrier, Dialogflow matches the call to an existing conversation by either: *
|
5938
|
-
# Extracting the conversation id from the [Call-Info header](https://tools.ietf.
|
5939
|
-
# org/html/rfc3261#section-20.9), e.g. `Call-Info: ;purpose=Goog-ContactCenter-
|
5940
|
-
# Conversation`. * Or, if that doesn't work, matching incoming [SIP headers](
|
5941
|
-
# https://tools.ietf.org/html/rfc3261#section-7.3) against any CallMatcher for
|
5942
|
-
# the conversation. If an incoming SIP call without valid `Call-Info` header
|
5943
|
-
# matches to zero or multiple conversations with `CallMatcher`, we reject it. A
|
5944
|
-
# call matcher contains equality conditions for SIP headers that all have to be
|
5945
|
-
# fulfilled in order for a SIP call to match. The matched SIP headers consist of
|
5946
|
-
# well-known headers (`To`, `From`, `Call-ID`) and custom headers. A CallMatcher
|
5947
|
-
# is only valid if it specifies: * At least 1 custom header, * or at least 2
|
5948
|
-
# well-known headers.
|
5949
|
-
# Corresponds to the JSON property `callMatcher`
|
5950
|
-
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CallMatcher]
|
5951
|
-
attr_accessor :call_matcher
|
5952
|
-
|
5953
|
-
def initialize(**args)
|
5954
|
-
update!(**args)
|
5955
|
-
end
|
5956
|
-
|
5957
|
-
# Update properties of this object
|
5958
|
-
def update!(**args)
|
5959
|
-
@call_matcher = args[:call_matcher] if args.key?(:call_matcher)
|
5960
|
-
end
|
5961
|
-
end
|
5962
|
-
|
5963
5978
|
# The request to detect user's intent.
|
5964
5979
|
class GoogleCloudDialogflowV2DetectIntentRequest
|
5965
5980
|
include Google::Apis::Core::Hashable
|
@@ -6340,8 +6355,8 @@ module Google
|
|
6340
6355
|
class GoogleCloudDialogflowV2Environment
|
6341
6356
|
include Google::Apis::Core::Hashable
|
6342
6357
|
|
6343
|
-
# Optional. The agent version loaded into this environment.
|
6344
|
-
# agent/versions
|
6358
|
+
# Optional. The agent version loaded into this environment. Supported formats: -
|
6359
|
+
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
6345
6360
|
# Corresponds to the JSON property `agentVersion`
|
6346
6361
|
# @return [String]
|
6347
6362
|
attr_accessor :agent_version
|
@@ -6352,9 +6367,21 @@ module Google
|
|
6352
6367
|
# @return [String]
|
6353
6368
|
attr_accessor :description
|
6354
6369
|
|
6355
|
-
#
|
6356
|
-
#
|
6357
|
-
#
|
6370
|
+
# By default, your agent responds to a matched intent with a static response. As
|
6371
|
+
# an alternative, you can provide a more dynamic response by using fulfillment.
|
6372
|
+
# When you enable fulfillment for an intent, Dialogflow responds to that intent
|
6373
|
+
# by calling a service that you define. For example, if an end-user wants to
|
6374
|
+
# schedule a haircut on Friday, your service can check your database and respond
|
6375
|
+
# to the end-user with availability information for Friday. For more information,
|
6376
|
+
# see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/
|
6377
|
+
# fulfillment-overview).
|
6378
|
+
# Corresponds to the JSON property `fulfillment`
|
6379
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment]
|
6380
|
+
attr_accessor :fulfillment
|
6381
|
+
|
6382
|
+
# Output only. The unique identifier of this agent environment. Supported
|
6383
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
6384
|
+
# environments/`
|
6358
6385
|
# Corresponds to the JSON property `name`
|
6359
6386
|
# @return [String]
|
6360
6387
|
attr_accessor :name
|
@@ -6365,6 +6392,11 @@ module Google
|
|
6365
6392
|
# @return [String]
|
6366
6393
|
attr_accessor :state
|
6367
6394
|
|
6395
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
6396
|
+
# Corresponds to the JSON property `textToSpeechSettings`
|
6397
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextToSpeechSettings]
|
6398
|
+
attr_accessor :text_to_speech_settings
|
6399
|
+
|
6368
6400
|
# Output only. The last update time of this environment. This field is read-only,
|
6369
6401
|
# i.e., it cannot be set by create and update methods.
|
6370
6402
|
# Corresponds to the JSON property `updateTime`
|
@@ -6379,12 +6411,80 @@ module Google
|
|
6379
6411
|
def update!(**args)
|
6380
6412
|
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
6381
6413
|
@description = args[:description] if args.key?(:description)
|
6414
|
+
@fulfillment = args[:fulfillment] if args.key?(:fulfillment)
|
6382
6415
|
@name = args[:name] if args.key?(:name)
|
6383
6416
|
@state = args[:state] if args.key?(:state)
|
6417
|
+
@text_to_speech_settings = args[:text_to_speech_settings] if args.key?(:text_to_speech_settings)
|
6384
6418
|
@update_time = args[:update_time] if args.key?(:update_time)
|
6385
6419
|
end
|
6386
6420
|
end
|
6387
6421
|
|
6422
|
+
# The response message for Environments.GetEnvironmentHistory.
|
6423
|
+
class GoogleCloudDialogflowV2EnvironmentHistory
|
6424
|
+
include Google::Apis::Core::Hashable
|
6425
|
+
|
6426
|
+
# Output only. The list of agent environments. There will be a maximum number of
|
6427
|
+
# items returned based on the page_size field in the request.
|
6428
|
+
# Corresponds to the JSON property `entries`
|
6429
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistoryEntry>]
|
6430
|
+
attr_accessor :entries
|
6431
|
+
|
6432
|
+
# Output only. Token to retrieve the next page of results, or empty if there are
|
6433
|
+
# no more results in the list.
|
6434
|
+
# Corresponds to the JSON property `nextPageToken`
|
6435
|
+
# @return [String]
|
6436
|
+
attr_accessor :next_page_token
|
6437
|
+
|
6438
|
+
# Output only. The name of the environment this history is for. Supported
|
6439
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
6440
|
+
# environments/`
|
6441
|
+
# Corresponds to the JSON property `parent`
|
6442
|
+
# @return [String]
|
6443
|
+
attr_accessor :parent
|
6444
|
+
|
6445
|
+
def initialize(**args)
|
6446
|
+
update!(**args)
|
6447
|
+
end
|
6448
|
+
|
6449
|
+
# Update properties of this object
|
6450
|
+
def update!(**args)
|
6451
|
+
@entries = args[:entries] if args.key?(:entries)
|
6452
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
6453
|
+
@parent = args[:parent] if args.key?(:parent)
|
6454
|
+
end
|
6455
|
+
end
|
6456
|
+
|
6457
|
+
# Represents an environment history entry.
|
6458
|
+
class GoogleCloudDialogflowV2EnvironmentHistoryEntry
|
6459
|
+
include Google::Apis::Core::Hashable
|
6460
|
+
|
6461
|
+
# The agent version loaded into this environment history entry.
|
6462
|
+
# Corresponds to the JSON property `agentVersion`
|
6463
|
+
# @return [String]
|
6464
|
+
attr_accessor :agent_version
|
6465
|
+
|
6466
|
+
# The creation time of this environment history entry.
|
6467
|
+
# Corresponds to the JSON property `createTime`
|
6468
|
+
# @return [String]
|
6469
|
+
attr_accessor :create_time
|
6470
|
+
|
6471
|
+
# The developer-provided description for this environment history entry.
|
6472
|
+
# Corresponds to the JSON property `description`
|
6473
|
+
# @return [String]
|
6474
|
+
attr_accessor :description
|
6475
|
+
|
6476
|
+
def initialize(**args)
|
6477
|
+
update!(**args)
|
6478
|
+
end
|
6479
|
+
|
6480
|
+
# Update properties of this object
|
6481
|
+
def update!(**args)
|
6482
|
+
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
6483
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6484
|
+
@description = args[:description] if args.key?(:description)
|
6485
|
+
end
|
6486
|
+
end
|
6487
|
+
|
6388
6488
|
# Events allow for matching intents by event name instead of the natural
|
6389
6489
|
# language input. For instance, input `` can trigger a personalized welcome
|
6390
6490
|
# response. The parameter `name` may be used by the agent in the response: `"
|
@@ -6544,6 +6644,7 @@ module Google
|
|
6544
6644
|
include Google::Apis::Core::Hashable
|
6545
6645
|
|
6546
6646
|
# Optional. The human-readable name of the fulfillment, unique within the agent.
|
6647
|
+
# This field is not used for Fulfillment in an Environment.
|
6547
6648
|
# Corresponds to the JSON property `displayName`
|
6548
6649
|
# @return [String]
|
6549
6650
|
attr_accessor :display_name
|
@@ -6569,8 +6670,9 @@ module Google
|
|
6569
6670
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService]
|
6570
6671
|
attr_accessor :generic_web_service
|
6571
6672
|
|
6572
|
-
# Required. The unique identifier of the fulfillment.
|
6573
|
-
# fulfillment
|
6673
|
+
# Required. The unique identifier of the fulfillment. Supported formats: - `
|
6674
|
+
# projects//agent/fulfillment` - `projects//locations//agent/fulfillment` This
|
6675
|
+
# field is not used for Fulfillment in an Environment.
|
6574
6676
|
# Corresponds to the JSON property `name`
|
6575
6677
|
# @return [String]
|
6576
6678
|
attr_accessor :name
|
@@ -6617,7 +6719,8 @@ module Google
|
|
6617
6719
|
include Google::Apis::Core::Hashable
|
6618
6720
|
|
6619
6721
|
# Optional. Indicates if generic web service is created through Cloud Functions
|
6620
|
-
# integration. Defaults to false.
|
6722
|
+
# integration. Defaults to false. is_cloud_function is deprecated. Cloud
|
6723
|
+
# functions can be configured by its uri as a regular web service now.
|
6621
6724
|
# Corresponds to the JSON property `isCloudFunction`
|
6622
6725
|
# @return [Boolean]
|
6623
6726
|
attr_accessor :is_cloud_function
|
@@ -6700,8 +6803,7 @@ module Google
|
|
6700
6803
|
class GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig
|
6701
6804
|
include Google::Apis::Core::Hashable
|
6702
6805
|
|
6703
|
-
#
|
6704
|
-
# conversationModels/`.
|
6806
|
+
# Conversation model resource name. Format: `projects//conversationModels/`.
|
6705
6807
|
# Corresponds to the JSON property `model`
|
6706
6808
|
# @return [String]
|
6707
6809
|
attr_accessor :model
|
@@ -6722,7 +6824,8 @@ module Google
|
|
6722
6824
|
|
6723
6825
|
# Enable entity extraction in conversation messages on [agent assist stage](
|
6724
6826
|
# https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
|
6725
|
-
# If unspecified, defaults to false.
|
6827
|
+
# If unspecified, defaults to false. Currently, this feature is not general
|
6828
|
+
# available, please contact Google to get access.
|
6726
6829
|
# Corresponds to the JSON property `enableEntityExtraction`
|
6727
6830
|
# @return [Boolean]
|
6728
6831
|
attr_accessor :enable_entity_extraction
|
@@ -7058,7 +7161,8 @@ module Google
|
|
7058
7161
|
end
|
7059
7162
|
|
7060
7163
|
# Defines the hand off to a live agent, typically on which external agent
|
7061
|
-
# service provider to connect to a conversation.
|
7164
|
+
# service provider to connect to a conversation. Currently, this feature is not
|
7165
|
+
# general available, please contact Google to get access.
|
7062
7166
|
class GoogleCloudDialogflowV2HumanAgentHandoffConfig
|
7063
7167
|
include Google::Apis::Core::Hashable
|
7064
7168
|
|
@@ -8634,33 +8738,6 @@ module Google
|
|
8634
8738
|
end
|
8635
8739
|
end
|
8636
8740
|
|
8637
|
-
# The response message for Conversations.ListCallMatchers.
|
8638
|
-
class GoogleCloudDialogflowV2ListCallMatchersResponse
|
8639
|
-
include Google::Apis::Core::Hashable
|
8640
|
-
|
8641
|
-
# The list of call matchers. There is a maximum number of items returned based
|
8642
|
-
# on the page_size field in the request.
|
8643
|
-
# Corresponds to the JSON property `callMatchers`
|
8644
|
-
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2CallMatcher>]
|
8645
|
-
attr_accessor :call_matchers
|
8646
|
-
|
8647
|
-
# Token to retrieve the next page of results or empty if there are no more
|
8648
|
-
# results in the list.
|
8649
|
-
# Corresponds to the JSON property `nextPageToken`
|
8650
|
-
# @return [String]
|
8651
|
-
attr_accessor :next_page_token
|
8652
|
-
|
8653
|
-
def initialize(**args)
|
8654
|
-
update!(**args)
|
8655
|
-
end
|
8656
|
-
|
8657
|
-
# Update properties of this object
|
8658
|
-
def update!(**args)
|
8659
|
-
@call_matchers = args[:call_matchers] if args.key?(:call_matchers)
|
8660
|
-
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
8661
|
-
end
|
8662
|
-
end
|
8663
|
-
|
8664
8741
|
# The response message for Contexts.ListContexts.
|
8665
8742
|
class GoogleCloudDialogflowV2ListContextsResponse
|
8666
8743
|
include Google::Apis::Core::Hashable
|
@@ -8957,6 +9034,33 @@ module Google
|
|
8957
9034
|
end
|
8958
9035
|
end
|
8959
9036
|
|
9037
|
+
# The response message for Versions.ListVersions.
|
9038
|
+
class GoogleCloudDialogflowV2ListVersionsResponse
|
9039
|
+
include Google::Apis::Core::Hashable
|
9040
|
+
|
9041
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
9042
|
+
# results in the list.
|
9043
|
+
# Corresponds to the JSON property `nextPageToken`
|
9044
|
+
# @return [String]
|
9045
|
+
attr_accessor :next_page_token
|
9046
|
+
|
9047
|
+
# The list of agent versions. There will be a maximum number of items returned
|
9048
|
+
# based on the page_size field in the request.
|
9049
|
+
# Corresponds to the JSON property `versions`
|
9050
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version>]
|
9051
|
+
attr_accessor :versions
|
9052
|
+
|
9053
|
+
def initialize(**args)
|
9054
|
+
update!(**args)
|
9055
|
+
end
|
9056
|
+
|
9057
|
+
# Update properties of this object
|
9058
|
+
def update!(**args)
|
9059
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
9060
|
+
@versions = args[:versions] if args.key?(:versions)
|
9061
|
+
end
|
9062
|
+
end
|
9063
|
+
|
8960
9064
|
# Defines logging behavior for conversation lifecycle events.
|
8961
9065
|
class GoogleCloudDialogflowV2LoggingConfig
|
8962
9066
|
include Google::Apis::Core::Hashable
|
@@ -9281,8 +9385,8 @@ module Google
|
|
9281
9385
|
|
9282
9386
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
9283
9387
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
9284
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
9285
|
-
# within normalized ranges.
|
9388
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
9389
|
+
# must be within normalized ranges.
|
9286
9390
|
# Corresponds to the JSON property `geoLocation`
|
9287
9391
|
# @return [Google::Apis::DialogflowV2::GoogleTypeLatLng]
|
9288
9392
|
attr_accessor :geo_location
|
@@ -10024,6 +10128,51 @@ module Google
|
|
10024
10128
|
end
|
10025
10129
|
end
|
10026
10130
|
|
10131
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
10132
|
+
class GoogleCloudDialogflowV2TextToSpeechSettings
|
10133
|
+
include Google::Apis::Core::Hashable
|
10134
|
+
|
10135
|
+
# Optional. Indicates whether text to speech is enabled. Even when this field is
|
10136
|
+
# false, other settings in this proto are still retained.
|
10137
|
+
# Corresponds to the JSON property `enableTextToSpeech`
|
10138
|
+
# @return [Boolean]
|
10139
|
+
attr_accessor :enable_text_to_speech
|
10140
|
+
alias_method :enable_text_to_speech?, :enable_text_to_speech
|
10141
|
+
|
10142
|
+
# Required. Audio encoding of the synthesized audio content.
|
10143
|
+
# Corresponds to the JSON property `outputAudioEncoding`
|
10144
|
+
# @return [String]
|
10145
|
+
attr_accessor :output_audio_encoding
|
10146
|
+
|
10147
|
+
# Optional. The synthesis sample rate (in hertz) for this audio. If not provided,
|
10148
|
+
# then the synthesizer will use the default sample rate based on the audio
|
10149
|
+
# encoding. If this is different from the voice's natural sample rate, then the
|
10150
|
+
# synthesizer will honor this request by converting to the desired sample rate (
|
10151
|
+
# which might result in worse audio quality).
|
10152
|
+
# Corresponds to the JSON property `sampleRateHertz`
|
10153
|
+
# @return [Fixnum]
|
10154
|
+
attr_accessor :sample_rate_hertz
|
10155
|
+
|
10156
|
+
# Optional. Configuration of how speech should be synthesized, mapping from
|
10157
|
+
# language (https://cloud.google.com/dialogflow/docs/reference/language) to
|
10158
|
+
# SynthesizeSpeechConfig.
|
10159
|
+
# Corresponds to the JSON property `synthesizeSpeechConfigs`
|
10160
|
+
# @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SynthesizeSpeechConfig>]
|
10161
|
+
attr_accessor :synthesize_speech_configs
|
10162
|
+
|
10163
|
+
def initialize(**args)
|
10164
|
+
update!(**args)
|
10165
|
+
end
|
10166
|
+
|
10167
|
+
# Update properties of this object
|
10168
|
+
def update!(**args)
|
10169
|
+
@enable_text_to_speech = args[:enable_text_to_speech] if args.key?(:enable_text_to_speech)
|
10170
|
+
@output_audio_encoding = args[:output_audio_encoding] if args.key?(:output_audio_encoding)
|
10171
|
+
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
10172
|
+
@synthesize_speech_configs = args[:synthesize_speech_configs] if args.key?(:synthesize_speech_configs)
|
10173
|
+
end
|
10174
|
+
end
|
10175
|
+
|
10027
10176
|
# The request message for Agents.TrainAgent.
|
10028
10177
|
class GoogleCloudDialogflowV2TrainAgentRequest
|
10029
10178
|
include Google::Apis::Core::Hashable
|
@@ -10093,6 +10242,61 @@ module Google
|
|
10093
10242
|
end
|
10094
10243
|
end
|
10095
10244
|
|
10245
|
+
# You can create multiple versions of your agent and publish them to separate
|
10246
|
+
# environments. When you edit an agent, you are editing the draft agent. At any
|
10247
|
+
# point, you can save the draft agent as an agent version, which is an immutable
|
10248
|
+
# snapshot of your agent. When you save the draft agent, it is published to the
|
10249
|
+
# default environment. When you create agent versions, you can publish them to
|
10250
|
+
# custom environments. You can create a variety of custom environments for: -
|
10251
|
+
# testing - development - production - etc. For more information, see the [
|
10252
|
+
# versions and environments guide](https://cloud.google.com/dialogflow/docs/
|
10253
|
+
# agents-versions).
|
10254
|
+
class GoogleCloudDialogflowV2Version
|
10255
|
+
include Google::Apis::Core::Hashable
|
10256
|
+
|
10257
|
+
# Output only. The creation time of this version. This field is read-only, i.e.,
|
10258
|
+
# it cannot be set by create and update methods.
|
10259
|
+
# Corresponds to the JSON property `createTime`
|
10260
|
+
# @return [String]
|
10261
|
+
attr_accessor :create_time
|
10262
|
+
|
10263
|
+
# Optional. The developer-provided description of this version.
|
10264
|
+
# Corresponds to the JSON property `description`
|
10265
|
+
# @return [String]
|
10266
|
+
attr_accessor :description
|
10267
|
+
|
10268
|
+
# Output only. The unique identifier of this agent version. Supported formats: -
|
10269
|
+
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
10270
|
+
# Corresponds to the JSON property `name`
|
10271
|
+
# @return [String]
|
10272
|
+
attr_accessor :name
|
10273
|
+
|
10274
|
+
# Output only. The status of this version. This field is read-only and cannot be
|
10275
|
+
# set by create and update methods.
|
10276
|
+
# Corresponds to the JSON property `status`
|
10277
|
+
# @return [String]
|
10278
|
+
attr_accessor :status
|
10279
|
+
|
10280
|
+
# Output only. The sequential number of this version. This field is read-only
|
10281
|
+
# which means it cannot be set by create and update methods.
|
10282
|
+
# Corresponds to the JSON property `versionNumber`
|
10283
|
+
# @return [Fixnum]
|
10284
|
+
attr_accessor :version_number
|
10285
|
+
|
10286
|
+
def initialize(**args)
|
10287
|
+
update!(**args)
|
10288
|
+
end
|
10289
|
+
|
10290
|
+
# Update properties of this object
|
10291
|
+
def update!(**args)
|
10292
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
10293
|
+
@description = args[:description] if args.key?(:description)
|
10294
|
+
@name = args[:name] if args.key?(:name)
|
10295
|
+
@status = args[:status] if args.key?(:status)
|
10296
|
+
@version_number = args[:version_number] if args.key?(:version_number)
|
10297
|
+
end
|
10298
|
+
end
|
10299
|
+
|
10096
10300
|
# Description of which voice to use for speech synthesis.
|
10097
10301
|
class GoogleCloudDialogflowV2VoiceSelectionParams
|
10098
10302
|
include Google::Apis::Core::Hashable
|
@@ -13585,8 +13789,8 @@ module Google
|
|
13585
13789
|
|
13586
13790
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
13587
13791
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
13588
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
13589
|
-
# within normalized ranges.
|
13792
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
13793
|
+
# must be within normalized ranges.
|
13590
13794
|
class GoogleTypeLatLng
|
13591
13795
|
include Google::Apis::Core::Hashable
|
13592
13796
|
|