google-apis-dialogflow_v2beta1 0.10.0 → 0.11.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 +4 -0
- data/lib/google/apis/dialogflow_v2beta1/classes.rb +346 -28
- data/lib/google/apis/dialogflow_v2beta1/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2beta1/representations.rb +140 -0
- data/lib/google/apis/dialogflow_v2beta1/service.rb +822 -88
- 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: f781a61371868e80464623fdf340ebb16743d25f238df9071ace02ecac24a247
|
4
|
+
data.tar.gz: 187ba6509a3f91b7a4cfc053f1448e2f9e73bc6b14d1e39a91997d3b5b0db557
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2ce41e0b9c08f51dad1cb3b6fe1fd71cbd21a010bf8acda224e1c153eec391803b496884aed336d5e253026958274e09d95e4292513e8e2b913f40f5af9e3a08
|
7
|
+
data.tar.gz: 7e2a0683b4509994b94c197d3d1091b82703b1c7c9315f88597ad1e66803c3103cb1ac22e2537e3c443db2bdb79955076121b03ae7380c00db2447c41622ca04
|
data/CHANGELOG.md
CHANGED
@@ -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
|
@@ -2149,6 +2196,11 @@ module Google
|
|
2149
2196
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo]
|
2150
2197
|
attr_accessor :intent_info
|
2151
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
|
+
|
2152
2204
|
# The list of rich message responses to present to the user. Webhook can choose
|
2153
2205
|
# to append or replace this list in WebhookResponse.fulfillment_response;
|
2154
2206
|
# Corresponds to the JSON property `messages`
|
@@ -2208,6 +2260,7 @@ module Google
|
|
2208
2260
|
@detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
|
2209
2261
|
@fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
|
2210
2262
|
@intent_info = args[:intent_info] if args.key?(:intent_info)
|
2263
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
2211
2264
|
@messages = args[:messages] if args.key?(:messages)
|
2212
2265
|
@page_info = args[:page_info] if args.key?(:page_info)
|
2213
2266
|
@payload = args[:payload] if args.key?(:payload)
|
@@ -2802,6 +2855,33 @@ module Google
|
|
2802
2855
|
end
|
2803
2856
|
end
|
2804
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
|
+
|
2805
2885
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
2806
2886
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
2807
2887
|
include Google::Apis::Core::Hashable
|
@@ -3200,6 +3280,26 @@ module Google
|
|
3200
3280
|
end
|
3201
3281
|
end
|
3202
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
|
+
|
3203
3303
|
# Metadata returned for the TestCases.ImportTestCases long running operation.
|
3204
3304
|
class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
|
3205
3305
|
include Google::Apis::Core::Hashable
|
@@ -3323,8 +3423,8 @@ module Google
|
|
3323
3423
|
class GoogleCloudDialogflowCxV3beta1Intent
|
3324
3424
|
include Google::Apis::Core::Hashable
|
3325
3425
|
|
3326
|
-
#
|
3327
|
-
#
|
3426
|
+
# Human readable description for better understanding an intent like its scope,
|
3427
|
+
# content, result etc. Maximum character limit: 140 characters.
|
3328
3428
|
# Corresponds to the JSON property `description`
|
3329
3429
|
# @return [String]
|
3330
3430
|
attr_accessor :description
|
@@ -3344,14 +3444,14 @@ module Google
|
|
3344
3444
|
attr_accessor :is_fallback
|
3345
3445
|
alias_method :is_fallback?, :is_fallback
|
3346
3446
|
|
3347
|
-
#
|
3348
|
-
#
|
3349
|
-
#
|
3350
|
-
#
|
3351
|
-
#
|
3352
|
-
#
|
3353
|
-
#
|
3354
|
-
#
|
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.
|
3355
3455
|
# Corresponds to the JSON property `labels`
|
3356
3456
|
# @return [Hash<String,String>]
|
3357
3457
|
attr_accessor :labels
|
@@ -4536,6 +4636,11 @@ module Google
|
|
4536
4636
|
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]
|
4537
4637
|
attr_accessor :intent_info
|
4538
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
|
+
|
4539
4644
|
# The list of rich message responses to present to the user. Webhook can choose
|
4540
4645
|
# to append or replace this list in WebhookResponse.fulfillment_response;
|
4541
4646
|
# Corresponds to the JSON property `messages`
|
@@ -4595,6 +4700,7 @@ module Google
|
|
4595
4700
|
@detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
|
4596
4701
|
@fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
|
4597
4702
|
@intent_info = args[:intent_info] if args.key?(:intent_info)
|
4703
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
4598
4704
|
@messages = args[:messages] if args.key?(:messages)
|
4599
4705
|
@page_info = args[:page_info] if args.key?(:page_info)
|
4600
4706
|
@payload = args[:payload] if args.key?(:payload)
|
@@ -8849,6 +8955,18 @@ module Google
|
|
8849
8955
|
# @return [String]
|
8850
8956
|
attr_accessor :description
|
8851
8957
|
|
8958
|
+
# By default, your agent responds to a matched intent with a static response. As
|
8959
|
+
# an alternative, you can provide a more dynamic response by using fulfillment.
|
8960
|
+
# When you enable fulfillment for an intent, Dialogflow responds to that intent
|
8961
|
+
# by calling a service that you define. For example, if an end-user wants to
|
8962
|
+
# schedule a haircut on Friday, your service can check your database and respond
|
8963
|
+
# to the end-user with availability information for Friday. For more information,
|
8964
|
+
# see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/
|
8965
|
+
# fulfillment-overview).
|
8966
|
+
# Corresponds to the JSON property `fulfillment`
|
8967
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment]
|
8968
|
+
attr_accessor :fulfillment
|
8969
|
+
|
8852
8970
|
# Output only. The unique identifier of this agent environment. Supported
|
8853
8971
|
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
8854
8972
|
# environments/`
|
@@ -8862,6 +8980,11 @@ module Google
|
|
8862
8980
|
# @return [String]
|
8863
8981
|
attr_accessor :state
|
8864
8982
|
|
8983
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
8984
|
+
# Corresponds to the JSON property `textToSpeechSettings`
|
8985
|
+
# @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings]
|
8986
|
+
attr_accessor :text_to_speech_settings
|
8987
|
+
|
8865
8988
|
# Output only. The last update time of this environment. This field is read-only,
|
8866
8989
|
# i.e., it cannot be set by create and update methods.
|
8867
8990
|
# Corresponds to the JSON property `updateTime`
|
@@ -8876,12 +8999,80 @@ module Google
|
|
8876
8999
|
def update!(**args)
|
8877
9000
|
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
8878
9001
|
@description = args[:description] if args.key?(:description)
|
9002
|
+
@fulfillment = args[:fulfillment] if args.key?(:fulfillment)
|
8879
9003
|
@name = args[:name] if args.key?(:name)
|
8880
9004
|
@state = args[:state] if args.key?(:state)
|
9005
|
+
@text_to_speech_settings = args[:text_to_speech_settings] if args.key?(:text_to_speech_settings)
|
8881
9006
|
@update_time = args[:update_time] if args.key?(:update_time)
|
8882
9007
|
end
|
8883
9008
|
end
|
8884
9009
|
|
9010
|
+
# The response message for Environments.GetEnvironmentHistory.
|
9011
|
+
class GoogleCloudDialogflowV2beta1EnvironmentHistory
|
9012
|
+
include Google::Apis::Core::Hashable
|
9013
|
+
|
9014
|
+
# Output only. The list of agent environments. There will be a maximum number of
|
9015
|
+
# items returned based on the page_size field in the request.
|
9016
|
+
# Corresponds to the JSON property `entries`
|
9017
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry>]
|
9018
|
+
attr_accessor :entries
|
9019
|
+
|
9020
|
+
# Output only. Token to retrieve the next page of results, or empty if there are
|
9021
|
+
# no more results in the list.
|
9022
|
+
# Corresponds to the JSON property `nextPageToken`
|
9023
|
+
# @return [String]
|
9024
|
+
attr_accessor :next_page_token
|
9025
|
+
|
9026
|
+
# Output only. The name of the environment this history is for. Supported
|
9027
|
+
# formats: - `projects//agent/environments/` - `projects//locations//agent/
|
9028
|
+
# environments/`
|
9029
|
+
# Corresponds to the JSON property `parent`
|
9030
|
+
# @return [String]
|
9031
|
+
attr_accessor :parent
|
9032
|
+
|
9033
|
+
def initialize(**args)
|
9034
|
+
update!(**args)
|
9035
|
+
end
|
9036
|
+
|
9037
|
+
# Update properties of this object
|
9038
|
+
def update!(**args)
|
9039
|
+
@entries = args[:entries] if args.key?(:entries)
|
9040
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
9041
|
+
@parent = args[:parent] if args.key?(:parent)
|
9042
|
+
end
|
9043
|
+
end
|
9044
|
+
|
9045
|
+
# Represents an environment history entry.
|
9046
|
+
class GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
|
9047
|
+
include Google::Apis::Core::Hashable
|
9048
|
+
|
9049
|
+
# The agent version loaded into this environment history entry.
|
9050
|
+
# Corresponds to the JSON property `agentVersion`
|
9051
|
+
# @return [String]
|
9052
|
+
attr_accessor :agent_version
|
9053
|
+
|
9054
|
+
# The creation time of this environment history entry.
|
9055
|
+
# Corresponds to the JSON property `createTime`
|
9056
|
+
# @return [String]
|
9057
|
+
attr_accessor :create_time
|
9058
|
+
|
9059
|
+
# The developer-provided description for this environment history entry.
|
9060
|
+
# Corresponds to the JSON property `description`
|
9061
|
+
# @return [String]
|
9062
|
+
attr_accessor :description
|
9063
|
+
|
9064
|
+
def initialize(**args)
|
9065
|
+
update!(**args)
|
9066
|
+
end
|
9067
|
+
|
9068
|
+
# Update properties of this object
|
9069
|
+
def update!(**args)
|
9070
|
+
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
9071
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
9072
|
+
@description = args[:description] if args.key?(:description)
|
9073
|
+
end
|
9074
|
+
end
|
9075
|
+
|
8885
9076
|
# Events allow for matching intents by event name instead of the natural
|
8886
9077
|
# language input. For instance, input `` can trigger a personalized welcome
|
8887
9078
|
# response. The parameter `name` may be used by the agent in the response: `"
|
@@ -9114,8 +9305,9 @@ module Google
|
|
9114
9305
|
class GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
|
9115
9306
|
include Google::Apis::Core::Hashable
|
9116
9307
|
|
9117
|
-
# Indicates if generic web service is created through Cloud Functions
|
9118
|
-
# integration. Defaults to false.
|
9308
|
+
# Optional. Indicates if generic web service is created through Cloud Functions
|
9309
|
+
# integration. Defaults to false. is_cloud_function is deprecated. Cloud
|
9310
|
+
# functions can be configured by its uri as a regular web service now.
|
9119
9311
|
# Corresponds to the JSON property `isCloudFunction`
|
9120
9312
|
# @return [Boolean]
|
9121
9313
|
attr_accessor :is_cloud_function
|
@@ -9240,8 +9432,7 @@ module Google
|
|
9240
9432
|
class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig
|
9241
9433
|
include Google::Apis::Core::Hashable
|
9242
9434
|
|
9243
|
-
#
|
9244
|
-
# conversationModels/`.
|
9435
|
+
# Conversation model resource name. Format: `projects//conversationModels/`.
|
9245
9436
|
# Corresponds to the JSON property `model`
|
9246
9437
|
# @return [String]
|
9247
9438
|
attr_accessor :model
|
@@ -12140,6 +12331,33 @@ module Google
|
|
12140
12331
|
end
|
12141
12332
|
end
|
12142
12333
|
|
12334
|
+
# The response message for Versions.ListVersions.
|
12335
|
+
class GoogleCloudDialogflowV2beta1ListVersionsResponse
|
12336
|
+
include Google::Apis::Core::Hashable
|
12337
|
+
|
12338
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
12339
|
+
# results in the list.
|
12340
|
+
# Corresponds to the JSON property `nextPageToken`
|
12341
|
+
# @return [String]
|
12342
|
+
attr_accessor :next_page_token
|
12343
|
+
|
12344
|
+
# The list of agent versions. There will be a maximum number of items returned
|
12345
|
+
# based on the page_size field in the request.
|
12346
|
+
# Corresponds to the JSON property `versions`
|
12347
|
+
# @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version>]
|
12348
|
+
attr_accessor :versions
|
12349
|
+
|
12350
|
+
def initialize(**args)
|
12351
|
+
update!(**args)
|
12352
|
+
end
|
12353
|
+
|
12354
|
+
# Update properties of this object
|
12355
|
+
def update!(**args)
|
12356
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
12357
|
+
@versions = args[:versions] if args.key?(:versions)
|
12358
|
+
end
|
12359
|
+
end
|
12360
|
+
|
12143
12361
|
# Defines logging behavior for conversation lifecycle events.
|
12144
12362
|
class GoogleCloudDialogflowV2beta1LoggingConfig
|
12145
12363
|
include Google::Apis::Core::Hashable
|
@@ -12500,8 +12718,8 @@ module Google
|
|
12500
12718
|
|
12501
12719
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
12502
12720
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
12503
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
12504
|
-
# within normalized ranges.
|
12721
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
12722
|
+
# must be within normalized ranges.
|
12505
12723
|
# Corresponds to the JSON property `geoLocation`
|
12506
12724
|
# @return [Google::Apis::DialogflowV2beta1::GoogleTypeLatLng]
|
12507
12725
|
attr_accessor :geo_location
|
@@ -13677,6 +13895,51 @@ module Google
|
|
13677
13895
|
end
|
13678
13896
|
end
|
13679
13897
|
|
13898
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
13899
|
+
class GoogleCloudDialogflowV2beta1TextToSpeechSettings
|
13900
|
+
include Google::Apis::Core::Hashable
|
13901
|
+
|
13902
|
+
# Optional. Indicates whether text to speech is enabled. Even when this field is
|
13903
|
+
# false, other settings in this proto are still retained.
|
13904
|
+
# Corresponds to the JSON property `enableTextToSpeech`
|
13905
|
+
# @return [Boolean]
|
13906
|
+
attr_accessor :enable_text_to_speech
|
13907
|
+
alias_method :enable_text_to_speech?, :enable_text_to_speech
|
13908
|
+
|
13909
|
+
# Required. Audio encoding of the synthesized audio content.
|
13910
|
+
# Corresponds to the JSON property `outputAudioEncoding`
|
13911
|
+
# @return [String]
|
13912
|
+
attr_accessor :output_audio_encoding
|
13913
|
+
|
13914
|
+
# Optional. The synthesis sample rate (in hertz) for this audio. If not provided,
|
13915
|
+
# then the synthesizer will use the default sample rate based on the audio
|
13916
|
+
# encoding. If this is different from the voice's natural sample rate, then the
|
13917
|
+
# synthesizer will honor this request by converting to the desired sample rate (
|
13918
|
+
# which might result in worse audio quality).
|
13919
|
+
# Corresponds to the JSON property `sampleRateHertz`
|
13920
|
+
# @return [Fixnum]
|
13921
|
+
attr_accessor :sample_rate_hertz
|
13922
|
+
|
13923
|
+
# Optional. Configuration of how speech should be synthesized, mapping from
|
13924
|
+
# language (https://cloud.google.com/dialogflow/docs/reference/language) to
|
13925
|
+
# SynthesizeSpeechConfig.
|
13926
|
+
# Corresponds to the JSON property `synthesizeSpeechConfigs`
|
13927
|
+
# @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig>]
|
13928
|
+
attr_accessor :synthesize_speech_configs
|
13929
|
+
|
13930
|
+
def initialize(**args)
|
13931
|
+
update!(**args)
|
13932
|
+
end
|
13933
|
+
|
13934
|
+
# Update properties of this object
|
13935
|
+
def update!(**args)
|
13936
|
+
@enable_text_to_speech = args[:enable_text_to_speech] if args.key?(:enable_text_to_speech)
|
13937
|
+
@output_audio_encoding = args[:output_audio_encoding] if args.key?(:output_audio_encoding)
|
13938
|
+
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
13939
|
+
@synthesize_speech_configs = args[:synthesize_speech_configs] if args.key?(:synthesize_speech_configs)
|
13940
|
+
end
|
13941
|
+
end
|
13942
|
+
|
13680
13943
|
# The request message for Agents.TrainAgent.
|
13681
13944
|
class GoogleCloudDialogflowV2beta1TrainAgentRequest
|
13682
13945
|
include Google::Apis::Core::Hashable
|
@@ -13746,6 +14009,61 @@ module Google
|
|
13746
14009
|
end
|
13747
14010
|
end
|
13748
14011
|
|
14012
|
+
# You can create multiple versions of your agent and publish them to separate
|
14013
|
+
# environments. When you edit an agent, you are editing the draft agent. At any
|
14014
|
+
# point, you can save the draft agent as an agent version, which is an immutable
|
14015
|
+
# snapshot of your agent. When you save the draft agent, it is published to the
|
14016
|
+
# default environment. When you create agent versions, you can publish them to
|
14017
|
+
# custom environments. You can create a variety of custom environments for: -
|
14018
|
+
# testing - development - production - etc. For more information, see the [
|
14019
|
+
# versions and environments guide](https://cloud.google.com/dialogflow/docs/
|
14020
|
+
# agents-versions).
|
14021
|
+
class GoogleCloudDialogflowV2beta1Version
|
14022
|
+
include Google::Apis::Core::Hashable
|
14023
|
+
|
14024
|
+
# Output only. The creation time of this version. This field is read-only, i.e.,
|
14025
|
+
# it cannot be set by create and update methods.
|
14026
|
+
# Corresponds to the JSON property `createTime`
|
14027
|
+
# @return [String]
|
14028
|
+
attr_accessor :create_time
|
14029
|
+
|
14030
|
+
# Optional. The developer-provided description of this version.
|
14031
|
+
# Corresponds to the JSON property `description`
|
14032
|
+
# @return [String]
|
14033
|
+
attr_accessor :description
|
14034
|
+
|
14035
|
+
# Output only. The unique identifier of this agent version. Supported formats: -
|
14036
|
+
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
14037
|
+
# Corresponds to the JSON property `name`
|
14038
|
+
# @return [String]
|
14039
|
+
attr_accessor :name
|
14040
|
+
|
14041
|
+
# Output only. The status of this version. This field is read-only and cannot be
|
14042
|
+
# set by create and update methods.
|
14043
|
+
# Corresponds to the JSON property `status`
|
14044
|
+
# @return [String]
|
14045
|
+
attr_accessor :status
|
14046
|
+
|
14047
|
+
# Output only. The sequential number of this version. This field is read-only
|
14048
|
+
# which means it cannot be set by create and update methods.
|
14049
|
+
# Corresponds to the JSON property `versionNumber`
|
14050
|
+
# @return [Fixnum]
|
14051
|
+
attr_accessor :version_number
|
14052
|
+
|
14053
|
+
def initialize(**args)
|
14054
|
+
update!(**args)
|
14055
|
+
end
|
14056
|
+
|
14057
|
+
# Update properties of this object
|
14058
|
+
def update!(**args)
|
14059
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
14060
|
+
@description = args[:description] if args.key?(:description)
|
14061
|
+
@name = args[:name] if args.key?(:name)
|
14062
|
+
@status = args[:status] if args.key?(:status)
|
14063
|
+
@version_number = args[:version_number] if args.key?(:version_number)
|
14064
|
+
end
|
14065
|
+
end
|
14066
|
+
|
13749
14067
|
# Description of which voice to use for speech synthesis.
|
13750
14068
|
class GoogleCloudDialogflowV2beta1VoiceSelectionParams
|
13751
14069
|
include Google::Apis::Core::Hashable
|
@@ -14208,8 +14526,8 @@ module Google
|
|
14208
14526
|
|
14209
14527
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
14210
14528
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
14211
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
14212
|
-
# within normalized ranges.
|
14529
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
14530
|
+
# must be within normalized ranges.
|
14213
14531
|
class GoogleTypeLatLng
|
14214
14532
|
include Google::Apis::Core::Hashable
|
14215
14533
|
|