google-apis-dialogflow_v2 0.10.0 → 0.11.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7aae3b7a44d355f89bf7c9e5386ef5034c802ddf5ca8bcc5a95e833e95e1b00d
|
4
|
+
data.tar.gz: db3e584fc3fd2cd6ab940e2e9e364b523dba879929e259f30bbd85d5c43d72d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bfff895545ddfafeb4560038659a6a395632d20429f0cd8b63090a85cbd1f7a83526cc7d95b62355a755cdfeb3bb5071a76366443e3b1aa1b6a4c6bce2682527
|
7
|
+
data.tar.gz: fafd9e7ac503f2b1aa31916fdaed7783e54ad50ff2f77c2bcb58a93554ed9ff611b48342fdae22029487570db2d091dfb30f0223fc63caed9a6e11364c78d3f9
|
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::DialogflowV2::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::DialogflowV2::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)
|
@@ -6249,8 +6355,8 @@ module Google
|
|
6249
6355
|
class GoogleCloudDialogflowV2Environment
|
6250
6356
|
include Google::Apis::Core::Hashable
|
6251
6357
|
|
6252
|
-
# Optional. The agent version loaded into this environment.
|
6253
|
-
# agent/versions
|
6358
|
+
# Optional. The agent version loaded into this environment. Supported formats: -
|
6359
|
+
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
6254
6360
|
# Corresponds to the JSON property `agentVersion`
|
6255
6361
|
# @return [String]
|
6256
6362
|
attr_accessor :agent_version
|
@@ -6261,9 +6367,21 @@ module Google
|
|
6261
6367
|
# @return [String]
|
6262
6368
|
attr_accessor :description
|
6263
6369
|
|
6264
|
-
#
|
6265
|
-
#
|
6266
|
-
#
|
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/`
|
6267
6385
|
# Corresponds to the JSON property `name`
|
6268
6386
|
# @return [String]
|
6269
6387
|
attr_accessor :name
|
@@ -6274,6 +6392,11 @@ module Google
|
|
6274
6392
|
# @return [String]
|
6275
6393
|
attr_accessor :state
|
6276
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
|
+
|
6277
6400
|
# Output only. The last update time of this environment. This field is read-only,
|
6278
6401
|
# i.e., it cannot be set by create and update methods.
|
6279
6402
|
# Corresponds to the JSON property `updateTime`
|
@@ -6288,12 +6411,80 @@ module Google
|
|
6288
6411
|
def update!(**args)
|
6289
6412
|
@agent_version = args[:agent_version] if args.key?(:agent_version)
|
6290
6413
|
@description = args[:description] if args.key?(:description)
|
6414
|
+
@fulfillment = args[:fulfillment] if args.key?(:fulfillment)
|
6291
6415
|
@name = args[:name] if args.key?(:name)
|
6292
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)
|
6293
6418
|
@update_time = args[:update_time] if args.key?(:update_time)
|
6294
6419
|
end
|
6295
6420
|
end
|
6296
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
|
+
|
6297
6488
|
# Events allow for matching intents by event name instead of the natural
|
6298
6489
|
# language input. For instance, input `` can trigger a personalized welcome
|
6299
6490
|
# response. The parameter `name` may be used by the agent in the response: `"
|
@@ -6453,6 +6644,7 @@ module Google
|
|
6453
6644
|
include Google::Apis::Core::Hashable
|
6454
6645
|
|
6455
6646
|
# Optional. The human-readable name of the fulfillment, unique within the agent.
|
6647
|
+
# This field is not used for Fulfillment in an Environment.
|
6456
6648
|
# Corresponds to the JSON property `displayName`
|
6457
6649
|
# @return [String]
|
6458
6650
|
attr_accessor :display_name
|
@@ -6478,8 +6670,9 @@ module Google
|
|
6478
6670
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService]
|
6479
6671
|
attr_accessor :generic_web_service
|
6480
6672
|
|
6481
|
-
# Required. The unique identifier of the fulfillment.
|
6482
|
-
# 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.
|
6483
6676
|
# Corresponds to the JSON property `name`
|
6484
6677
|
# @return [String]
|
6485
6678
|
attr_accessor :name
|
@@ -6526,7 +6719,8 @@ module Google
|
|
6526
6719
|
include Google::Apis::Core::Hashable
|
6527
6720
|
|
6528
6721
|
# Optional. Indicates if generic web service is created through Cloud Functions
|
6529
|
-
# 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.
|
6530
6724
|
# Corresponds to the JSON property `isCloudFunction`
|
6531
6725
|
# @return [Boolean]
|
6532
6726
|
attr_accessor :is_cloud_function
|
@@ -6609,8 +6803,7 @@ module Google
|
|
6609
6803
|
class GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig
|
6610
6804
|
include Google::Apis::Core::Hashable
|
6611
6805
|
|
6612
|
-
#
|
6613
|
-
# conversationModels/`.
|
6806
|
+
# Conversation model resource name. Format: `projects//conversationModels/`.
|
6614
6807
|
# Corresponds to the JSON property `model`
|
6615
6808
|
# @return [String]
|
6616
6809
|
attr_accessor :model
|
@@ -8841,6 +9034,33 @@ module Google
|
|
8841
9034
|
end
|
8842
9035
|
end
|
8843
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
|
+
|
8844
9064
|
# Defines logging behavior for conversation lifecycle events.
|
8845
9065
|
class GoogleCloudDialogflowV2LoggingConfig
|
8846
9066
|
include Google::Apis::Core::Hashable
|
@@ -9165,8 +9385,8 @@ module Google
|
|
9165
9385
|
|
9166
9386
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
9167
9387
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
9168
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
9169
|
-
# within normalized ranges.
|
9388
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
9389
|
+
# must be within normalized ranges.
|
9170
9390
|
# Corresponds to the JSON property `geoLocation`
|
9171
9391
|
# @return [Google::Apis::DialogflowV2::GoogleTypeLatLng]
|
9172
9392
|
attr_accessor :geo_location
|
@@ -9908,6 +10128,51 @@ module Google
|
|
9908
10128
|
end
|
9909
10129
|
end
|
9910
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
|
+
|
9911
10176
|
# The request message for Agents.TrainAgent.
|
9912
10177
|
class GoogleCloudDialogflowV2TrainAgentRequest
|
9913
10178
|
include Google::Apis::Core::Hashable
|
@@ -9977,6 +10242,61 @@ module Google
|
|
9977
10242
|
end
|
9978
10243
|
end
|
9979
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
|
+
|
9980
10300
|
# Description of which voice to use for speech synthesis.
|
9981
10301
|
class GoogleCloudDialogflowV2VoiceSelectionParams
|
9982
10302
|
include Google::Apis::Core::Hashable
|
@@ -13469,8 +13789,8 @@ module Google
|
|
13469
13789
|
|
13470
13790
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
13471
13791
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
13472
|
-
# specified otherwise, this must conform to the WGS84 standard. Values
|
13473
|
-
# within normalized ranges.
|
13792
|
+
# specified otherwise, this object must conform to the WGS84 standard. Values
|
13793
|
+
# must be within normalized ranges.
|
13474
13794
|
class GoogleTypeLatLng
|
13475
13795
|
include Google::Apis::Core::Hashable
|
13476
13796
|
|