google-apis-dialogflow_v3 0.18.0 → 0.22.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 +16 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/dialogflow_v3/classes.rb +868 -18
- data/lib/google/apis/dialogflow_v3/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v3/representations.rb +379 -0
- data/lib/google/apis/dialogflow_v3/service.rb +383 -24
- data/lib/google/apis/dialogflow_v3.rb +1 -1
- metadata +5 -5
@@ -22,6 +22,54 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module DialogflowV3
|
24
24
|
|
25
|
+
# Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
|
26
|
+
# Settings exposed at lower level overrides the settings exposed at higher level.
|
27
|
+
# Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
|
28
|
+
class GoogleCloudDialogflowCxV3AdvancedSettings
|
29
|
+
include Google::Apis::Core::Hashable
|
30
|
+
|
31
|
+
# Define behaviors on logging.
|
32
|
+
# Corresponds to the JSON property `loggingSettings`
|
33
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings]
|
34
|
+
attr_accessor :logging_settings
|
35
|
+
|
36
|
+
def initialize(**args)
|
37
|
+
update!(**args)
|
38
|
+
end
|
39
|
+
|
40
|
+
# Update properties of this object
|
41
|
+
def update!(**args)
|
42
|
+
@logging_settings = args[:logging_settings] if args.key?(:logging_settings)
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
# Define behaviors on logging.
|
47
|
+
class GoogleCloudDialogflowCxV3AdvancedSettingsLoggingSettings
|
48
|
+
include Google::Apis::Core::Hashable
|
49
|
+
|
50
|
+
# If true, DF Interaction logging is currently enabled.
|
51
|
+
# Corresponds to the JSON property `enableInteractionLogging`
|
52
|
+
# @return [Boolean]
|
53
|
+
attr_accessor :enable_interaction_logging
|
54
|
+
alias_method :enable_interaction_logging?, :enable_interaction_logging
|
55
|
+
|
56
|
+
# If true, StackDriver logging is currently enabled.
|
57
|
+
# Corresponds to the JSON property `enableStackdriverLogging`
|
58
|
+
# @return [Boolean]
|
59
|
+
attr_accessor :enable_stackdriver_logging
|
60
|
+
alias_method :enable_stackdriver_logging?, :enable_stackdriver_logging
|
61
|
+
|
62
|
+
def initialize(**args)
|
63
|
+
update!(**args)
|
64
|
+
end
|
65
|
+
|
66
|
+
# Update properties of this object
|
67
|
+
def update!(**args)
|
68
|
+
@enable_interaction_logging = args[:enable_interaction_logging] if args.key?(:enable_interaction_logging)
|
69
|
+
@enable_stackdriver_logging = args[:enable_stackdriver_logging] if args.key?(:enable_stackdriver_logging)
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
25
73
|
# Agents are best described as Natural Language Understanding (NLU) modules that
|
26
74
|
# transform user requests into actionable data. You can include agents in your
|
27
75
|
# app, product, or service to determine user intent and respond to the user in a
|
@@ -30,6 +78,13 @@ module Google
|
|
30
78
|
class GoogleCloudDialogflowCxV3Agent
|
31
79
|
include Google::Apis::Core::Hashable
|
32
80
|
|
81
|
+
# Hierarchical advanced settings for agent/flow/page/fulfillment/parameter.
|
82
|
+
# Settings exposed at lower level overrides the settings exposed at higher level.
|
83
|
+
# Hierarchy: Agent->Flow->Page->Fulfillment/Parameter.
|
84
|
+
# Corresponds to the JSON property `advancedSettings`
|
85
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3AdvancedSettings]
|
86
|
+
attr_accessor :advanced_settings
|
87
|
+
|
33
88
|
# The URI of the agent's avatar. Avatars are used throughout the Dialogflow
|
34
89
|
# console and in the self-hosted [Web Demo](https://cloud.google.com/dialogflow/
|
35
90
|
# docs/integrations/web-demo) integration.
|
@@ -62,7 +117,8 @@ module Google
|
|
62
117
|
attr_accessor :enable_spell_correction
|
63
118
|
alias_method :enable_spell_correction?, :enable_spell_correction
|
64
119
|
|
65
|
-
# Indicates if stackdriver logging is enabled for the agent.
|
120
|
+
# Indicates if stackdriver logging is enabled for the agent. Please use agent.
|
121
|
+
# advanced_settings instead.
|
66
122
|
# Corresponds to the JSON property `enableStackdriverLogging`
|
67
123
|
# @return [Boolean]
|
68
124
|
attr_accessor :enable_stackdriver_logging
|
@@ -111,6 +167,7 @@ module Google
|
|
111
167
|
|
112
168
|
# Update properties of this object
|
113
169
|
def update!(**args)
|
170
|
+
@advanced_settings = args[:advanced_settings] if args.key?(:advanced_settings)
|
114
171
|
@avatar_uri = args[:avatar_uri] if args.key?(:avatar_uri)
|
115
172
|
@default_language_code = args[:default_language_code] if args.key?(:default_language_code)
|
116
173
|
@description = args[:description] if args.key?(:description)
|
@@ -310,6 +367,123 @@ module Google
|
|
310
367
|
end
|
311
368
|
end
|
312
369
|
|
370
|
+
# Changelogs represents a change made to a given agent.
|
371
|
+
class GoogleCloudDialogflowCxV3Changelog
|
372
|
+
include Google::Apis::Core::Hashable
|
373
|
+
|
374
|
+
# The action of the change.
|
375
|
+
# Corresponds to the JSON property `action`
|
376
|
+
# @return [String]
|
377
|
+
attr_accessor :action
|
378
|
+
|
379
|
+
# The timestamp of the change.
|
380
|
+
# Corresponds to the JSON property `createTime`
|
381
|
+
# @return [String]
|
382
|
+
attr_accessor :create_time
|
383
|
+
|
384
|
+
# The affected resource display name of the change.
|
385
|
+
# Corresponds to the JSON property `displayName`
|
386
|
+
# @return [String]
|
387
|
+
attr_accessor :display_name
|
388
|
+
|
389
|
+
# The unique identifier of the changelog. Format: `projects//locations//agents//
|
390
|
+
# changelogs/`.
|
391
|
+
# Corresponds to the JSON property `name`
|
392
|
+
# @return [String]
|
393
|
+
attr_accessor :name
|
394
|
+
|
395
|
+
# The affected resource name of the change.
|
396
|
+
# Corresponds to the JSON property `resource`
|
397
|
+
# @return [String]
|
398
|
+
attr_accessor :resource
|
399
|
+
|
400
|
+
# The affected resource type.
|
401
|
+
# Corresponds to the JSON property `type`
|
402
|
+
# @return [String]
|
403
|
+
attr_accessor :type
|
404
|
+
|
405
|
+
# Email address of the authenticated user.
|
406
|
+
# Corresponds to the JSON property `userEmail`
|
407
|
+
# @return [String]
|
408
|
+
attr_accessor :user_email
|
409
|
+
|
410
|
+
def initialize(**args)
|
411
|
+
update!(**args)
|
412
|
+
end
|
413
|
+
|
414
|
+
# Update properties of this object
|
415
|
+
def update!(**args)
|
416
|
+
@action = args[:action] if args.key?(:action)
|
417
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
418
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
419
|
+
@name = args[:name] if args.key?(:name)
|
420
|
+
@resource = args[:resource] if args.key?(:resource)
|
421
|
+
@type = args[:type] if args.key?(:type)
|
422
|
+
@user_email = args[:user_email] if args.key?(:user_email)
|
423
|
+
end
|
424
|
+
end
|
425
|
+
|
426
|
+
# The request message for Versions.CompareVersions.
|
427
|
+
class GoogleCloudDialogflowCxV3CompareVersionsRequest
|
428
|
+
include Google::Apis::Core::Hashable
|
429
|
+
|
430
|
+
# The language to compare the flow versions for. If not specified, the agent's
|
431
|
+
# default language is used. [Many languages](https://cloud.google.com/dialogflow/
|
432
|
+
# docs/reference/language) are supported. Note: languages must be enabled in the
|
433
|
+
# agent before they can be used.
|
434
|
+
# Corresponds to the JSON property `languageCode`
|
435
|
+
# @return [String]
|
436
|
+
attr_accessor :language_code
|
437
|
+
|
438
|
+
# Required. Name of the target flow version to compare with the base version.
|
439
|
+
# Use version ID `0` to indicate the draft version of the specified flow. Format:
|
440
|
+
# `projects//locations//agents//flows//versions/`.
|
441
|
+
# Corresponds to the JSON property `targetVersion`
|
442
|
+
# @return [String]
|
443
|
+
attr_accessor :target_version
|
444
|
+
|
445
|
+
def initialize(**args)
|
446
|
+
update!(**args)
|
447
|
+
end
|
448
|
+
|
449
|
+
# Update properties of this object
|
450
|
+
def update!(**args)
|
451
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
452
|
+
@target_version = args[:target_version] if args.key?(:target_version)
|
453
|
+
end
|
454
|
+
end
|
455
|
+
|
456
|
+
# The response message for Versions.CompareVersions.
|
457
|
+
class GoogleCloudDialogflowCxV3CompareVersionsResponse
|
458
|
+
include Google::Apis::Core::Hashable
|
459
|
+
|
460
|
+
# JSON representation of the base version content.
|
461
|
+
# Corresponds to the JSON property `baseVersionContentJson`
|
462
|
+
# @return [String]
|
463
|
+
attr_accessor :base_version_content_json
|
464
|
+
|
465
|
+
# The timestamp when the two version compares.
|
466
|
+
# Corresponds to the JSON property `compareTime`
|
467
|
+
# @return [String]
|
468
|
+
attr_accessor :compare_time
|
469
|
+
|
470
|
+
# JSON representation of the target version content.
|
471
|
+
# Corresponds to the JSON property `targetVersionContentJson`
|
472
|
+
# @return [String]
|
473
|
+
attr_accessor :target_version_content_json
|
474
|
+
|
475
|
+
def initialize(**args)
|
476
|
+
update!(**args)
|
477
|
+
end
|
478
|
+
|
479
|
+
# Update properties of this object
|
480
|
+
def update!(**args)
|
481
|
+
@base_version_content_json = args[:base_version_content_json] if args.key?(:base_version_content_json)
|
482
|
+
@compare_time = args[:compare_time] if args.key?(:compare_time)
|
483
|
+
@target_version_content_json = args[:target_version_content_json] if args.key?(:target_version_content_json)
|
484
|
+
end
|
485
|
+
end
|
486
|
+
|
313
487
|
# Represents a result from running a test case in an agent environment.
|
314
488
|
class GoogleCloudDialogflowCxV3ContinuousTestResult
|
315
489
|
include Google::Apis::Core::Hashable
|
@@ -439,7 +613,8 @@ module Google
|
|
439
613
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Page]
|
440
614
|
attr_accessor :current_page
|
441
615
|
|
442
|
-
# Required. Input only. The diagnostic info output for the turn.
|
616
|
+
# Required. Input only. The diagnostic info output for the turn. Required to
|
617
|
+
# calculate the testing coverage.
|
443
618
|
# Corresponds to the JSON property `diagnosticInfo`
|
444
619
|
# @return [Hash<String,Object>]
|
445
620
|
attr_accessor :diagnostic_info
|
@@ -552,6 +727,158 @@ module Google
|
|
552
727
|
end
|
553
728
|
end
|
554
729
|
|
730
|
+
# Metadata returned for the Environments.DeployFlow long running operation.
|
731
|
+
class GoogleCloudDialogflowCxV3DeployFlowMetadata
|
732
|
+
include Google::Apis::Core::Hashable
|
733
|
+
|
734
|
+
# Errors of running deployment tests.
|
735
|
+
# Corresponds to the JSON property `testErrors`
|
736
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3TestError>]
|
737
|
+
attr_accessor :test_errors
|
738
|
+
|
739
|
+
def initialize(**args)
|
740
|
+
update!(**args)
|
741
|
+
end
|
742
|
+
|
743
|
+
# Update properties of this object
|
744
|
+
def update!(**args)
|
745
|
+
@test_errors = args[:test_errors] if args.key?(:test_errors)
|
746
|
+
end
|
747
|
+
end
|
748
|
+
|
749
|
+
# The request message for Environments.DeployFlow.
|
750
|
+
class GoogleCloudDialogflowCxV3DeployFlowRequest
|
751
|
+
include Google::Apis::Core::Hashable
|
752
|
+
|
753
|
+
# Required. The flow version to deploy. Format: `projects//locations//agents//
|
754
|
+
# flows//versions/`.
|
755
|
+
# Corresponds to the JSON property `flowVersion`
|
756
|
+
# @return [String]
|
757
|
+
attr_accessor :flow_version
|
758
|
+
|
759
|
+
def initialize(**args)
|
760
|
+
update!(**args)
|
761
|
+
end
|
762
|
+
|
763
|
+
# Update properties of this object
|
764
|
+
def update!(**args)
|
765
|
+
@flow_version = args[:flow_version] if args.key?(:flow_version)
|
766
|
+
end
|
767
|
+
end
|
768
|
+
|
769
|
+
# The response message for Environments.DeployFlow.
|
770
|
+
class GoogleCloudDialogflowCxV3DeployFlowResponse
|
771
|
+
include Google::Apis::Core::Hashable
|
772
|
+
|
773
|
+
# The name of the flow version Deployment. Format: `projects//locations//agents//
|
774
|
+
# environments//deployments/`.
|
775
|
+
# Corresponds to the JSON property `deployment`
|
776
|
+
# @return [String]
|
777
|
+
attr_accessor :deployment
|
778
|
+
|
779
|
+
# Represents an environment for an agent. You can create multiple versions of
|
780
|
+
# your agent and publish them to separate environments. When you edit an agent,
|
781
|
+
# you are editing the draft agent. At any point, you can save the draft agent as
|
782
|
+
# an agent version, which is an immutable snapshot of your agent. When you save
|
783
|
+
# the draft agent, it is published to the default environment. When you create
|
784
|
+
# agent versions, you can publish them to custom environments. You can create a
|
785
|
+
# variety of custom environments for testing, development, production, etc.
|
786
|
+
# Corresponds to the JSON property `environment`
|
787
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Environment]
|
788
|
+
attr_accessor :environment
|
789
|
+
|
790
|
+
def initialize(**args)
|
791
|
+
update!(**args)
|
792
|
+
end
|
793
|
+
|
794
|
+
# Update properties of this object
|
795
|
+
def update!(**args)
|
796
|
+
@deployment = args[:deployment] if args.key?(:deployment)
|
797
|
+
@environment = args[:environment] if args.key?(:environment)
|
798
|
+
end
|
799
|
+
end
|
800
|
+
|
801
|
+
# Represents an deployment in an environment. A deployment happens when a flow
|
802
|
+
# version configured to be active in the environment. You can configure running
|
803
|
+
# pre-deployment steps, e.g. running validation test cases, experiment auto-
|
804
|
+
# rollout, etc.
|
805
|
+
class GoogleCloudDialogflowCxV3Deployment
|
806
|
+
include Google::Apis::Core::Hashable
|
807
|
+
|
808
|
+
# End time of this deployment.
|
809
|
+
# Corresponds to the JSON property `endTime`
|
810
|
+
# @return [String]
|
811
|
+
attr_accessor :end_time
|
812
|
+
|
813
|
+
# The name of the flow version for this deployment. Format: projects//locations//
|
814
|
+
# agents//flows//versions/.
|
815
|
+
# Corresponds to the JSON property `flowVersion`
|
816
|
+
# @return [String]
|
817
|
+
attr_accessor :flow_version
|
818
|
+
|
819
|
+
# The name of the deployment. Format: projects//locations//agents//environments//
|
820
|
+
# deployments/.
|
821
|
+
# Corresponds to the JSON property `name`
|
822
|
+
# @return [String]
|
823
|
+
attr_accessor :name
|
824
|
+
|
825
|
+
# Result of the deployment.
|
826
|
+
# Corresponds to the JSON property `result`
|
827
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DeploymentResult]
|
828
|
+
attr_accessor :result
|
829
|
+
|
830
|
+
# Start time of this deployment.
|
831
|
+
# Corresponds to the JSON property `startTime`
|
832
|
+
# @return [String]
|
833
|
+
attr_accessor :start_time
|
834
|
+
|
835
|
+
# The current state of the deployment.
|
836
|
+
# Corresponds to the JSON property `state`
|
837
|
+
# @return [String]
|
838
|
+
attr_accessor :state
|
839
|
+
|
840
|
+
def initialize(**args)
|
841
|
+
update!(**args)
|
842
|
+
end
|
843
|
+
|
844
|
+
# Update properties of this object
|
845
|
+
def update!(**args)
|
846
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
847
|
+
@flow_version = args[:flow_version] if args.key?(:flow_version)
|
848
|
+
@name = args[:name] if args.key?(:name)
|
849
|
+
@result = args[:result] if args.key?(:result)
|
850
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
851
|
+
@state = args[:state] if args.key?(:state)
|
852
|
+
end
|
853
|
+
end
|
854
|
+
|
855
|
+
# Result of the deployment.
|
856
|
+
class GoogleCloudDialogflowCxV3DeploymentResult
|
857
|
+
include Google::Apis::Core::Hashable
|
858
|
+
|
859
|
+
# Results of test cases running before the deployment. Format: `projects//
|
860
|
+
# locations//agents//testCases//results/`.
|
861
|
+
# Corresponds to the JSON property `deploymentTestResults`
|
862
|
+
# @return [Array<String>]
|
863
|
+
attr_accessor :deployment_test_results
|
864
|
+
|
865
|
+
# The name of the experiment triggered by this deployment. Format: projects//
|
866
|
+
# locations//agents//environments//experiments/.
|
867
|
+
# Corresponds to the JSON property `experiment`
|
868
|
+
# @return [String]
|
869
|
+
attr_accessor :experiment
|
870
|
+
|
871
|
+
def initialize(**args)
|
872
|
+
update!(**args)
|
873
|
+
end
|
874
|
+
|
875
|
+
# Update properties of this object
|
876
|
+
def update!(**args)
|
877
|
+
@deployment_test_results = args[:deployment_test_results] if args.key?(:deployment_test_results)
|
878
|
+
@experiment = args[:experiment] if args.key?(:experiment)
|
879
|
+
end
|
880
|
+
end
|
881
|
+
|
555
882
|
# The request to detect user's intent.
|
556
883
|
class GoogleCloudDialogflowCxV3DetectIntentRequest
|
557
884
|
include Google::Apis::Core::Hashable
|
@@ -838,6 +1165,11 @@ module Google
|
|
838
1165
|
# @return [String]
|
839
1166
|
attr_accessor :name
|
840
1167
|
|
1168
|
+
# The configuration for continuous tests.
|
1169
|
+
# Corresponds to the JSON property `testCasesConfig`
|
1170
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig]
|
1171
|
+
attr_accessor :test_cases_config
|
1172
|
+
|
841
1173
|
# Output only. Update time of this environment.
|
842
1174
|
# Corresponds to the JSON property `updateTime`
|
843
1175
|
# @return [String]
|
@@ -859,11 +1191,48 @@ module Google
|
|
859
1191
|
@description = args[:description] if args.key?(:description)
|
860
1192
|
@display_name = args[:display_name] if args.key?(:display_name)
|
861
1193
|
@name = args[:name] if args.key?(:name)
|
1194
|
+
@test_cases_config = args[:test_cases_config] if args.key?(:test_cases_config)
|
862
1195
|
@update_time = args[:update_time] if args.key?(:update_time)
|
863
1196
|
@version_configs = args[:version_configs] if args.key?(:version_configs)
|
864
1197
|
end
|
865
1198
|
end
|
866
1199
|
|
1200
|
+
# The configuration for continuous tests.
|
1201
|
+
class GoogleCloudDialogflowCxV3EnvironmentTestCasesConfig
|
1202
|
+
include Google::Apis::Core::Hashable
|
1203
|
+
|
1204
|
+
# Whether to run test cases in TestCasesConfig.test_cases periodically. Default
|
1205
|
+
# false. If set to ture, run once a day.
|
1206
|
+
# Corresponds to the JSON property `enableContinuousRun`
|
1207
|
+
# @return [Boolean]
|
1208
|
+
attr_accessor :enable_continuous_run
|
1209
|
+
alias_method :enable_continuous_run?, :enable_continuous_run
|
1210
|
+
|
1211
|
+
# Whether to run test cases in TestCasesConfig.test_cases before deploying a
|
1212
|
+
# flow version to the environment. Default false.
|
1213
|
+
# Corresponds to the JSON property `enablePredeploymentRun`
|
1214
|
+
# @return [Boolean]
|
1215
|
+
attr_accessor :enable_predeployment_run
|
1216
|
+
alias_method :enable_predeployment_run?, :enable_predeployment_run
|
1217
|
+
|
1218
|
+
# A list of test case names to run. They should be under the same agent. Format
|
1219
|
+
# of each test case name: `projects//locations/ /agents//testCases/`
|
1220
|
+
# Corresponds to the JSON property `testCases`
|
1221
|
+
# @return [Array<String>]
|
1222
|
+
attr_accessor :test_cases
|
1223
|
+
|
1224
|
+
def initialize(**args)
|
1225
|
+
update!(**args)
|
1226
|
+
end
|
1227
|
+
|
1228
|
+
# Update properties of this object
|
1229
|
+
def update!(**args)
|
1230
|
+
@enable_continuous_run = args[:enable_continuous_run] if args.key?(:enable_continuous_run)
|
1231
|
+
@enable_predeployment_run = args[:enable_predeployment_run] if args.key?(:enable_predeployment_run)
|
1232
|
+
@test_cases = args[:test_cases] if args.key?(:test_cases)
|
1233
|
+
end
|
1234
|
+
end
|
1235
|
+
|
867
1236
|
# Configuration for the version.
|
868
1237
|
class GoogleCloudDialogflowCxV3EnvironmentVersionConfig
|
869
1238
|
include Google::Apis::Core::Hashable
|
@@ -988,11 +1357,9 @@ module Google
|
|
988
1357
|
# @return [String]
|
989
1358
|
attr_accessor :end_time
|
990
1359
|
|
991
|
-
#
|
992
|
-
#
|
993
|
-
#
|
994
|
-
# 6 days. LINT.ThenChange(//depot/google3/cloud/ml/api/conversation/analytics/
|
995
|
-
# compute.cc:default_experiment_length)
|
1360
|
+
# Maximum number of days to run the experiment/rollout. If auto-rollout is not
|
1361
|
+
# enabled, default value and maximum will be 30 days. If auto-rollout is enabled,
|
1362
|
+
# default value and maximum will be 6 days.
|
996
1363
|
# Corresponds to the JSON property `experimentLength`
|
997
1364
|
# @return [String]
|
998
1365
|
attr_accessor :experiment_length
|
@@ -1014,6 +1381,22 @@ module Google
|
|
1014
1381
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3ExperimentResult]
|
1015
1382
|
attr_accessor :result
|
1016
1383
|
|
1384
|
+
# The configuration for auto rollout.
|
1385
|
+
# Corresponds to the JSON property `rolloutConfig`
|
1386
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RolloutConfig]
|
1387
|
+
attr_accessor :rollout_config
|
1388
|
+
|
1389
|
+
# The reason why rollout has failed. Should only be set when state is
|
1390
|
+
# ROLLOUT_FAILED.
|
1391
|
+
# Corresponds to the JSON property `rolloutFailureReason`
|
1392
|
+
# @return [String]
|
1393
|
+
attr_accessor :rollout_failure_reason
|
1394
|
+
|
1395
|
+
# State of the auto-rollout process.
|
1396
|
+
# Corresponds to the JSON property `rolloutState`
|
1397
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RolloutState]
|
1398
|
+
attr_accessor :rollout_state
|
1399
|
+
|
1017
1400
|
# Start time of this experiment.
|
1018
1401
|
# Corresponds to the JSON property `startTime`
|
1019
1402
|
# @return [String]
|
@@ -1046,6 +1429,9 @@ module Google
|
|
1046
1429
|
@last_update_time = args[:last_update_time] if args.key?(:last_update_time)
|
1047
1430
|
@name = args[:name] if args.key?(:name)
|
1048
1431
|
@result = args[:result] if args.key?(:result)
|
1432
|
+
@rollout_config = args[:rollout_config] if args.key?(:rollout_config)
|
1433
|
+
@rollout_failure_reason = args[:rollout_failure_reason] if args.key?(:rollout_failure_reason)
|
1434
|
+
@rollout_state = args[:rollout_state] if args.key?(:rollout_state)
|
1049
1435
|
@start_time = args[:start_time] if args.key?(:start_time)
|
1050
1436
|
@state = args[:state] if args.key?(:state)
|
1051
1437
|
@variants_history = args[:variants_history] if args.key?(:variants_history)
|
@@ -1336,6 +1722,7 @@ module Google
|
|
1336
1722
|
end
|
1337
1723
|
|
1338
1724
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
1725
|
+
# This message currently has no fields.
|
1339
1726
|
class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
|
1340
1727
|
include Google::Apis::Core::Hashable
|
1341
1728
|
|
@@ -2470,6 +2857,34 @@ module Google
|
|
2470
2857
|
end
|
2471
2858
|
end
|
2472
2859
|
|
2860
|
+
# The response message for Changelogs.ListChangelogs.
|
2861
|
+
class GoogleCloudDialogflowCxV3ListChangelogsResponse
|
2862
|
+
include Google::Apis::Core::Hashable
|
2863
|
+
|
2864
|
+
# The list of changelogs. There will be a maximum number of items returned based
|
2865
|
+
# on the page_size field in the request. The changelogs will be ordered by
|
2866
|
+
# timestamp.
|
2867
|
+
# Corresponds to the JSON property `changelogs`
|
2868
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Changelog>]
|
2869
|
+
attr_accessor :changelogs
|
2870
|
+
|
2871
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
2872
|
+
# results in the list.
|
2873
|
+
# Corresponds to the JSON property `nextPageToken`
|
2874
|
+
# @return [String]
|
2875
|
+
attr_accessor :next_page_token
|
2876
|
+
|
2877
|
+
def initialize(**args)
|
2878
|
+
update!(**args)
|
2879
|
+
end
|
2880
|
+
|
2881
|
+
# Update properties of this object
|
2882
|
+
def update!(**args)
|
2883
|
+
@changelogs = args[:changelogs] if args.key?(:changelogs)
|
2884
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2885
|
+
end
|
2886
|
+
end
|
2887
|
+
|
2473
2888
|
# The response message for Environments.ListTestCaseResults.
|
2474
2889
|
class GoogleCloudDialogflowCxV3ListContinuousTestResultsResponse
|
2475
2890
|
include Google::Apis::Core::Hashable
|
@@ -2496,6 +2911,34 @@ module Google
|
|
2496
2911
|
end
|
2497
2912
|
end
|
2498
2913
|
|
2914
|
+
# The response message for Deployments.ListDeployments.
|
2915
|
+
class GoogleCloudDialogflowCxV3ListDeploymentsResponse
|
2916
|
+
include Google::Apis::Core::Hashable
|
2917
|
+
|
2918
|
+
# The list of deployments. There will be a maximum number of items returned
|
2919
|
+
# based on the page_size field in the request. The list may in some cases be
|
2920
|
+
# empty or contain fewer entries than page_size even if this isn't the last page.
|
2921
|
+
# Corresponds to the JSON property `deployments`
|
2922
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3Deployment>]
|
2923
|
+
attr_accessor :deployments
|
2924
|
+
|
2925
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
2926
|
+
# results in the list.
|
2927
|
+
# Corresponds to the JSON property `nextPageToken`
|
2928
|
+
# @return [String]
|
2929
|
+
attr_accessor :next_page_token
|
2930
|
+
|
2931
|
+
def initialize(**args)
|
2932
|
+
update!(**args)
|
2933
|
+
end
|
2934
|
+
|
2935
|
+
# Update properties of this object
|
2936
|
+
def update!(**args)
|
2937
|
+
@deployments = args[:deployments] if args.key?(:deployments)
|
2938
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2939
|
+
end
|
2940
|
+
end
|
2941
|
+
|
2499
2942
|
# The response message for EntityTypes.ListEntityTypes.
|
2500
2943
|
class GoogleCloudDialogflowCxV3ListEntityTypesResponse
|
2501
2944
|
include Google::Apis::Core::Hashable
|
@@ -3408,6 +3851,15 @@ module Google
|
|
3408
3851
|
attr_accessor :disable_webhook
|
3409
3852
|
alias_method :disable_webhook?, :disable_webhook
|
3410
3853
|
|
3854
|
+
# A list of flow versions to override for the request. Format: `projects//
|
3855
|
+
# locations//agents//flows//versions/`. If version 1 of flow X is included in
|
3856
|
+
# this list, the traffic of flow X will go through version 1 regardless of the
|
3857
|
+
# version configuration in the environment. Each flow can have at most one
|
3858
|
+
# version specified in this list.
|
3859
|
+
# Corresponds to the JSON property `flowVersions`
|
3860
|
+
# @return [Array<String>]
|
3861
|
+
attr_accessor :flow_versions
|
3862
|
+
|
3411
3863
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
3412
3864
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
3413
3865
|
# specified otherwise, this object must conform to the WGS84 standard. Values
|
@@ -3475,6 +3927,7 @@ module Google
|
|
3475
3927
|
@analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
|
3476
3928
|
@current_page = args[:current_page] if args.key?(:current_page)
|
3477
3929
|
@disable_webhook = args[:disable_webhook] if args.key?(:disable_webhook)
|
3930
|
+
@flow_versions = args[:flow_versions] if args.key?(:flow_versions)
|
3478
3931
|
@geo_location = args[:geo_location] if args.key?(:geo_location)
|
3479
3932
|
@parameters = args[:parameters] if args.key?(:parameters)
|
3480
3933
|
@payload = args[:payload] if args.key?(:payload)
|
@@ -3511,6 +3964,11 @@ module Google
|
|
3511
3964
|
# @return [Hash<String,Object>]
|
3512
3965
|
attr_accessor :diagnostic_info
|
3513
3966
|
|
3967
|
+
# Represents the input for dtmf event.
|
3968
|
+
# Corresponds to the JSON property `dtmf`
|
3969
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3DtmfInput]
|
3970
|
+
attr_accessor :dtmf
|
3971
|
+
|
3514
3972
|
# An intent represents a user's intent to interact with a conversational agent.
|
3515
3973
|
# You can provide information for the Dialogflow API to use to match user input
|
3516
3974
|
# to an intent by adding training phrases (i.e., examples of user input) to your
|
@@ -3611,6 +4069,7 @@ module Google
|
|
3611
4069
|
def update!(**args)
|
3612
4070
|
@current_page = args[:current_page] if args.key?(:current_page)
|
3613
4071
|
@diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
|
4072
|
+
@dtmf = args[:dtmf] if args.key?(:dtmf)
|
3614
4073
|
@intent = args[:intent] if args.key?(:intent)
|
3615
4074
|
@intent_detection_confidence = args[:intent_detection_confidence] if args.key?(:intent_detection_confidence)
|
3616
4075
|
@language_code = args[:language_code] if args.key?(:language_code)
|
@@ -4010,6 +4469,109 @@ module Google
|
|
4010
4469
|
end
|
4011
4470
|
end
|
4012
4471
|
|
4472
|
+
# The configuration for auto rollout.
|
4473
|
+
class GoogleCloudDialogflowCxV3RolloutConfig
|
4474
|
+
include Google::Apis::Core::Hashable
|
4475
|
+
|
4476
|
+
# The conditions that are used to evaluate the failure of a rollout step. If not
|
4477
|
+
# specified, no rollout steps will fail. E.g. "containment_rate < 10% OR
|
4478
|
+
# average_turn_count < 3". See the [conditions reference](https://cloud.google.
|
4479
|
+
# com/dialogflow/cx/docs/reference/condition).
|
4480
|
+
# Corresponds to the JSON property `failureCondition`
|
4481
|
+
# @return [String]
|
4482
|
+
attr_accessor :failure_condition
|
4483
|
+
|
4484
|
+
# The conditions that are used to evaluate the success of a rollout step. If not
|
4485
|
+
# specified, all rollout steps will proceed to the next one unless failure
|
4486
|
+
# conditions are met. E.g. "containment_rate > 60% AND callback_rate < 20%". See
|
4487
|
+
# the [conditions reference](https://cloud.google.com/dialogflow/cx/docs/
|
4488
|
+
# reference/condition).
|
4489
|
+
# Corresponds to the JSON property `rolloutCondition`
|
4490
|
+
# @return [String]
|
4491
|
+
attr_accessor :rollout_condition
|
4492
|
+
|
4493
|
+
# Steps to roll out a flow version. Steps should be sorted by percentage in
|
4494
|
+
# ascending order.
|
4495
|
+
# Corresponds to the JSON property `rolloutSteps`
|
4496
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3RolloutConfigRolloutStep>]
|
4497
|
+
attr_accessor :rollout_steps
|
4498
|
+
|
4499
|
+
def initialize(**args)
|
4500
|
+
update!(**args)
|
4501
|
+
end
|
4502
|
+
|
4503
|
+
# Update properties of this object
|
4504
|
+
def update!(**args)
|
4505
|
+
@failure_condition = args[:failure_condition] if args.key?(:failure_condition)
|
4506
|
+
@rollout_condition = args[:rollout_condition] if args.key?(:rollout_condition)
|
4507
|
+
@rollout_steps = args[:rollout_steps] if args.key?(:rollout_steps)
|
4508
|
+
end
|
4509
|
+
end
|
4510
|
+
|
4511
|
+
# A single rollout step with specified traffic allocation.
|
4512
|
+
class GoogleCloudDialogflowCxV3RolloutConfigRolloutStep
|
4513
|
+
include Google::Apis::Core::Hashable
|
4514
|
+
|
4515
|
+
# The name of the rollout step;
|
4516
|
+
# Corresponds to the JSON property `displayName`
|
4517
|
+
# @return [String]
|
4518
|
+
attr_accessor :display_name
|
4519
|
+
|
4520
|
+
# The minimum time that this step should last. Should be longer than 1 hour. If
|
4521
|
+
# not set, the default minimum duration for each step will be 1 hour.
|
4522
|
+
# Corresponds to the JSON property `minDuration`
|
4523
|
+
# @return [String]
|
4524
|
+
attr_accessor :min_duration
|
4525
|
+
|
4526
|
+
# The percentage of traffic allocated to the flow version of this rollout step. (
|
4527
|
+
# 0%, 100%].
|
4528
|
+
# Corresponds to the JSON property `trafficPercent`
|
4529
|
+
# @return [Fixnum]
|
4530
|
+
attr_accessor :traffic_percent
|
4531
|
+
|
4532
|
+
def initialize(**args)
|
4533
|
+
update!(**args)
|
4534
|
+
end
|
4535
|
+
|
4536
|
+
# Update properties of this object
|
4537
|
+
def update!(**args)
|
4538
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
4539
|
+
@min_duration = args[:min_duration] if args.key?(:min_duration)
|
4540
|
+
@traffic_percent = args[:traffic_percent] if args.key?(:traffic_percent)
|
4541
|
+
end
|
4542
|
+
end
|
4543
|
+
|
4544
|
+
# State of the auto-rollout process.
|
4545
|
+
class GoogleCloudDialogflowCxV3RolloutState
|
4546
|
+
include Google::Apis::Core::Hashable
|
4547
|
+
|
4548
|
+
# Start time of the current step.
|
4549
|
+
# Corresponds to the JSON property `startTime`
|
4550
|
+
# @return [String]
|
4551
|
+
attr_accessor :start_time
|
4552
|
+
|
4553
|
+
# Display name of the current auto rollout step.
|
4554
|
+
# Corresponds to the JSON property `step`
|
4555
|
+
# @return [String]
|
4556
|
+
attr_accessor :step
|
4557
|
+
|
4558
|
+
# Index of the current step in the auto rollout steps list.
|
4559
|
+
# Corresponds to the JSON property `stepIndex`
|
4560
|
+
# @return [Fixnum]
|
4561
|
+
attr_accessor :step_index
|
4562
|
+
|
4563
|
+
def initialize(**args)
|
4564
|
+
update!(**args)
|
4565
|
+
end
|
4566
|
+
|
4567
|
+
# Update properties of this object
|
4568
|
+
def update!(**args)
|
4569
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
4570
|
+
@step = args[:step] if args.key?(:step)
|
4571
|
+
@step_index = args[:step_index] if args.key?(:step_index)
|
4572
|
+
end
|
4573
|
+
end
|
4574
|
+
|
4013
4575
|
# Metadata returned for the Environments.RunContinuousTest long running
|
4014
4576
|
# operation.
|
4015
4577
|
class GoogleCloudDialogflowCxV3RunContinuousTestMetadata
|
@@ -4062,7 +4624,8 @@ module Google
|
|
4062
4624
|
end
|
4063
4625
|
end
|
4064
4626
|
|
4065
|
-
# Metadata returned for the TestCases.RunTestCase long running operation.
|
4627
|
+
# Metadata returned for the TestCases.RunTestCase long running operation. This
|
4628
|
+
# message currently has no fields.
|
4066
4629
|
class GoogleCloudDialogflowCxV3RunTestCaseMetadata
|
4067
4630
|
include Google::Apis::Core::Hashable
|
4068
4631
|
|
@@ -4120,22 +4683,42 @@ module Google
|
|
4120
4683
|
class GoogleCloudDialogflowCxV3SecuritySettings
|
4121
4684
|
include Google::Apis::Core::Hashable
|
4122
4685
|
|
4686
|
+
# [DLP](https://cloud.google.com/dlp/docs) deidentify template name. Use this
|
4687
|
+
# template to define de-identification configuration for the content. If empty,
|
4688
|
+
# Dialogflow replaces sensitive info with `[redacted]` text. The template name
|
4689
|
+
# will have one of the following formats: `projects//locations//
|
4690
|
+
# deidentifyTemplates/` OR `organizations//locations//deidentifyTemplates/` Note:
|
4691
|
+
# `deidentify_template` must be located in the same region as the `
|
4692
|
+
# SecuritySettings`.
|
4693
|
+
# Corresponds to the JSON property `deidentifyTemplate`
|
4694
|
+
# @return [String]
|
4695
|
+
attr_accessor :deidentify_template
|
4696
|
+
|
4123
4697
|
# Required. The human-readable name of the security settings, unique within the
|
4124
4698
|
# location.
|
4125
4699
|
# Corresponds to the JSON property `displayName`
|
4126
4700
|
# @return [String]
|
4127
4701
|
attr_accessor :display_name
|
4128
4702
|
|
4703
|
+
# Settings for exporting conversations to [Insights](https://cloud.google.com/
|
4704
|
+
# dialogflow/priv/docs/insights).
|
4705
|
+
# Corresponds to the JSON property `insightsExportSettings`
|
4706
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3SecuritySettingsInsightsExportSettings]
|
4707
|
+
attr_accessor :insights_export_settings
|
4708
|
+
|
4129
4709
|
# [DLP](https://cloud.google.com/dlp/docs) inspect template name. Use this
|
4130
4710
|
# template to define inspect base settings. If empty, we use the default DLP
|
4131
4711
|
# inspect config. The template name will have one of the following formats: `
|
4132
|
-
# projects//inspectTemplates/` OR `
|
4133
|
-
#
|
4712
|
+
# projects//locations//inspectTemplates/` OR `organizations//locations//
|
4713
|
+
# inspectTemplates/` Note: `inspect_template` must be located in the same region
|
4714
|
+
# as the `SecuritySettings`.
|
4134
4715
|
# Corresponds to the JSON property `inspectTemplate`
|
4135
4716
|
# @return [String]
|
4136
4717
|
attr_accessor :inspect_template
|
4137
4718
|
|
4138
|
-
#
|
4719
|
+
# Resource name of the settings. Required for the SecuritySettingsService.
|
4720
|
+
# UpdateSecuritySettings method. SecuritySettingsService.CreateSecuritySettings
|
4721
|
+
# populates the name automatically. Format: `projects//locations//
|
4139
4722
|
# securitySettings/`.
|
4140
4723
|
# Corresponds to the JSON property `name`
|
4141
4724
|
# @return [String]
|
@@ -4173,7 +4756,9 @@ module Google
|
|
4173
4756
|
|
4174
4757
|
# Update properties of this object
|
4175
4758
|
def update!(**args)
|
4759
|
+
@deidentify_template = args[:deidentify_template] if args.key?(:deidentify_template)
|
4176
4760
|
@display_name = args[:display_name] if args.key?(:display_name)
|
4761
|
+
@insights_export_settings = args[:insights_export_settings] if args.key?(:insights_export_settings)
|
4177
4762
|
@inspect_template = args[:inspect_template] if args.key?(:inspect_template)
|
4178
4763
|
@name = args[:name] if args.key?(:name)
|
4179
4764
|
@purge_data_types = args[:purge_data_types] if args.key?(:purge_data_types)
|
@@ -4183,6 +4768,28 @@ module Google
|
|
4183
4768
|
end
|
4184
4769
|
end
|
4185
4770
|
|
4771
|
+
# Settings for exporting conversations to [Insights](https://cloud.google.com/
|
4772
|
+
# dialogflow/priv/docs/insights).
|
4773
|
+
class GoogleCloudDialogflowCxV3SecuritySettingsInsightsExportSettings
|
4774
|
+
include Google::Apis::Core::Hashable
|
4775
|
+
|
4776
|
+
# If enabled, we will automatically exports conversations to Insights and
|
4777
|
+
# Insights runs its analyzers.
|
4778
|
+
# Corresponds to the JSON property `enableInsightsExport`
|
4779
|
+
# @return [Boolean]
|
4780
|
+
attr_accessor :enable_insights_export
|
4781
|
+
alias_method :enable_insights_export?, :enable_insights_export
|
4782
|
+
|
4783
|
+
def initialize(**args)
|
4784
|
+
update!(**args)
|
4785
|
+
end
|
4786
|
+
|
4787
|
+
# Update properties of this object
|
4788
|
+
def update!(**args)
|
4789
|
+
@enable_insights_export = args[:enable_insights_export] if args.key?(:enable_insights_export)
|
4790
|
+
end
|
4791
|
+
end
|
4792
|
+
|
4186
4793
|
# The result of sentiment analysis. Sentiment analysis inspects user input and
|
4187
4794
|
# identifies the prevailing subjective opinion, especially to determine a user's
|
4188
4795
|
# attitude as positive, negative, or neutral.
|
@@ -5861,7 +6468,8 @@ module Google
|
|
5861
6468
|
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1Page]
|
5862
6469
|
attr_accessor :current_page
|
5863
6470
|
|
5864
|
-
# Required. Input only. The diagnostic info output for the turn.
|
6471
|
+
# Required. Input only. The diagnostic info output for the turn. Required to
|
6472
|
+
# calculate the testing coverage.
|
5865
6473
|
# Corresponds to the JSON property `diagnosticInfo`
|
5866
6474
|
# @return [Hash<String,Object>]
|
5867
6475
|
attr_accessor :diagnostic_info
|
@@ -5974,6 +6582,57 @@ module Google
|
|
5974
6582
|
end
|
5975
6583
|
end
|
5976
6584
|
|
6585
|
+
# Metadata returned for the Environments.DeployFlow long running operation.
|
6586
|
+
class GoogleCloudDialogflowCxV3beta1DeployFlowMetadata
|
6587
|
+
include Google::Apis::Core::Hashable
|
6588
|
+
|
6589
|
+
# Errors of running deployment tests.
|
6590
|
+
# Corresponds to the JSON property `testErrors`
|
6591
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1TestError>]
|
6592
|
+
attr_accessor :test_errors
|
6593
|
+
|
6594
|
+
def initialize(**args)
|
6595
|
+
update!(**args)
|
6596
|
+
end
|
6597
|
+
|
6598
|
+
# Update properties of this object
|
6599
|
+
def update!(**args)
|
6600
|
+
@test_errors = args[:test_errors] if args.key?(:test_errors)
|
6601
|
+
end
|
6602
|
+
end
|
6603
|
+
|
6604
|
+
# The response message for Environments.DeployFlow.
|
6605
|
+
class GoogleCloudDialogflowCxV3beta1DeployFlowResponse
|
6606
|
+
include Google::Apis::Core::Hashable
|
6607
|
+
|
6608
|
+
# The name of the flow version deployment. Format: `projects//locations//agents//
|
6609
|
+
# environments//deployments/`.
|
6610
|
+
# Corresponds to the JSON property `deployment`
|
6611
|
+
# @return [String]
|
6612
|
+
attr_accessor :deployment
|
6613
|
+
|
6614
|
+
# Represents an environment for an agent. You can create multiple versions of
|
6615
|
+
# your agent and publish them to separate environments. When you edit an agent,
|
6616
|
+
# you are editing the draft agent. At any point, you can save the draft agent as
|
6617
|
+
# an agent version, which is an immutable snapshot of your agent. When you save
|
6618
|
+
# the draft agent, it is published to the default environment. When you create
|
6619
|
+
# agent versions, you can publish them to custom environments. You can create a
|
6620
|
+
# variety of custom environments for testing, development, production, etc.
|
6621
|
+
# Corresponds to the JSON property `environment`
|
6622
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1Environment]
|
6623
|
+
attr_accessor :environment
|
6624
|
+
|
6625
|
+
def initialize(**args)
|
6626
|
+
update!(**args)
|
6627
|
+
end
|
6628
|
+
|
6629
|
+
# Update properties of this object
|
6630
|
+
def update!(**args)
|
6631
|
+
@deployment = args[:deployment] if args.key?(:deployment)
|
6632
|
+
@environment = args[:environment] if args.key?(:environment)
|
6633
|
+
end
|
6634
|
+
end
|
6635
|
+
|
5977
6636
|
# Represents the input for dtmf event.
|
5978
6637
|
class GoogleCloudDialogflowCxV3beta1DtmfInput
|
5979
6638
|
include Google::Apis::Core::Hashable
|
@@ -5999,6 +6658,121 @@ module Google
|
|
5999
6658
|
end
|
6000
6659
|
end
|
6001
6660
|
|
6661
|
+
# Represents an environment for an agent. You can create multiple versions of
|
6662
|
+
# your agent and publish them to separate environments. When you edit an agent,
|
6663
|
+
# you are editing the draft agent. At any point, you can save the draft agent as
|
6664
|
+
# an agent version, which is an immutable snapshot of your agent. When you save
|
6665
|
+
# the draft agent, it is published to the default environment. When you create
|
6666
|
+
# agent versions, you can publish them to custom environments. You can create a
|
6667
|
+
# variety of custom environments for testing, development, production, etc.
|
6668
|
+
class GoogleCloudDialogflowCxV3beta1Environment
|
6669
|
+
include Google::Apis::Core::Hashable
|
6670
|
+
|
6671
|
+
# The human-readable description of the environment. The maximum length is 500
|
6672
|
+
# characters. If exceeded, the request is rejected.
|
6673
|
+
# Corresponds to the JSON property `description`
|
6674
|
+
# @return [String]
|
6675
|
+
attr_accessor :description
|
6676
|
+
|
6677
|
+
# Required. The human-readable name of the environment (unique in an agent).
|
6678
|
+
# Limit of 64 characters.
|
6679
|
+
# Corresponds to the JSON property `displayName`
|
6680
|
+
# @return [String]
|
6681
|
+
attr_accessor :display_name
|
6682
|
+
|
6683
|
+
# The name of the environment. Format: `projects//locations//agents//
|
6684
|
+
# environments/`.
|
6685
|
+
# Corresponds to the JSON property `name`
|
6686
|
+
# @return [String]
|
6687
|
+
attr_accessor :name
|
6688
|
+
|
6689
|
+
# The configuration for continuous tests.
|
6690
|
+
# Corresponds to the JSON property `testCasesConfig`
|
6691
|
+
# @return [Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig]
|
6692
|
+
attr_accessor :test_cases_config
|
6693
|
+
|
6694
|
+
# Output only. Update time of this environment.
|
6695
|
+
# Corresponds to the JSON property `updateTime`
|
6696
|
+
# @return [String]
|
6697
|
+
attr_accessor :update_time
|
6698
|
+
|
6699
|
+
# Required. A list of configurations for flow versions. You should include
|
6700
|
+
# version configs for all flows that are reachable from `Start Flow` in the
|
6701
|
+
# agent. Otherwise, an error will be returned.
|
6702
|
+
# Corresponds to the JSON property `versionConfigs`
|
6703
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig>]
|
6704
|
+
attr_accessor :version_configs
|
6705
|
+
|
6706
|
+
def initialize(**args)
|
6707
|
+
update!(**args)
|
6708
|
+
end
|
6709
|
+
|
6710
|
+
# Update properties of this object
|
6711
|
+
def update!(**args)
|
6712
|
+
@description = args[:description] if args.key?(:description)
|
6713
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
6714
|
+
@name = args[:name] if args.key?(:name)
|
6715
|
+
@test_cases_config = args[:test_cases_config] if args.key?(:test_cases_config)
|
6716
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
6717
|
+
@version_configs = args[:version_configs] if args.key?(:version_configs)
|
6718
|
+
end
|
6719
|
+
end
|
6720
|
+
|
6721
|
+
# The configuration for continuous tests.
|
6722
|
+
class GoogleCloudDialogflowCxV3beta1EnvironmentTestCasesConfig
|
6723
|
+
include Google::Apis::Core::Hashable
|
6724
|
+
|
6725
|
+
# Whether to run test cases in TestCasesConfig.test_cases periodically. Default
|
6726
|
+
# false. If set to ture, run once a day.
|
6727
|
+
# Corresponds to the JSON property `enableContinuousRun`
|
6728
|
+
# @return [Boolean]
|
6729
|
+
attr_accessor :enable_continuous_run
|
6730
|
+
alias_method :enable_continuous_run?, :enable_continuous_run
|
6731
|
+
|
6732
|
+
# Whether to run test cases in TestCasesConfig.test_cases before deploying a
|
6733
|
+
# flow version to the environment. Default false.
|
6734
|
+
# Corresponds to the JSON property `enablePredeploymentRun`
|
6735
|
+
# @return [Boolean]
|
6736
|
+
attr_accessor :enable_predeployment_run
|
6737
|
+
alias_method :enable_predeployment_run?, :enable_predeployment_run
|
6738
|
+
|
6739
|
+
# A list of test case names to run. They should be under the same agent. Format
|
6740
|
+
# of each test case name: `projects//locations/ /agents//testCases/`
|
6741
|
+
# Corresponds to the JSON property `testCases`
|
6742
|
+
# @return [Array<String>]
|
6743
|
+
attr_accessor :test_cases
|
6744
|
+
|
6745
|
+
def initialize(**args)
|
6746
|
+
update!(**args)
|
6747
|
+
end
|
6748
|
+
|
6749
|
+
# Update properties of this object
|
6750
|
+
def update!(**args)
|
6751
|
+
@enable_continuous_run = args[:enable_continuous_run] if args.key?(:enable_continuous_run)
|
6752
|
+
@enable_predeployment_run = args[:enable_predeployment_run] if args.key?(:enable_predeployment_run)
|
6753
|
+
@test_cases = args[:test_cases] if args.key?(:test_cases)
|
6754
|
+
end
|
6755
|
+
end
|
6756
|
+
|
6757
|
+
# Configuration for the version.
|
6758
|
+
class GoogleCloudDialogflowCxV3beta1EnvironmentVersionConfig
|
6759
|
+
include Google::Apis::Core::Hashable
|
6760
|
+
|
6761
|
+
# Required. Format: projects//locations//agents//flows//versions/.
|
6762
|
+
# Corresponds to the JSON property `version`
|
6763
|
+
# @return [String]
|
6764
|
+
attr_accessor :version
|
6765
|
+
|
6766
|
+
def initialize(**args)
|
6767
|
+
update!(**args)
|
6768
|
+
end
|
6769
|
+
|
6770
|
+
# Update properties of this object
|
6771
|
+
def update!(**args)
|
6772
|
+
@version = args[:version] if args.key?(:version)
|
6773
|
+
end
|
6774
|
+
end
|
6775
|
+
|
6002
6776
|
# An event handler specifies an event that can be handled during a session. When
|
6003
6777
|
# the specified event happens, the following actions are taken in order: * If
|
6004
6778
|
# there is a `trigger_fulfillment` associated with the event, it will be called.
|
@@ -6129,6 +6903,7 @@ module Google
|
|
6129
6903
|
end
|
6130
6904
|
|
6131
6905
|
# Metadata returned for the TestCases.ExportTestCases long running operation.
|
6906
|
+
# This message currently has no fields.
|
6132
6907
|
class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
|
6133
6908
|
include Google::Apis::Core::Hashable
|
6134
6909
|
|
@@ -7508,7 +8283,8 @@ module Google
|
|
7508
8283
|
end
|
7509
8284
|
end
|
7510
8285
|
|
7511
|
-
# Metadata returned for the TestCases.RunTestCase long running operation.
|
8286
|
+
# Metadata returned for the TestCases.RunTestCase long running operation. This
|
8287
|
+
# message currently has no fields.
|
7512
8288
|
class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
|
7513
8289
|
include Google::Apis::Core::Hashable
|
7514
8290
|
|
@@ -8729,8 +9505,9 @@ module Google
|
|
8729
9505
|
# @return [Array<String>]
|
8730
9506
|
attr_accessor :events
|
8731
9507
|
|
8732
|
-
# Read-only. Information about all followup intents that have this
|
8733
|
-
# direct or indirect parent. We populate this field only in the
|
9508
|
+
# Output only. Read-only. Information about all followup intents that have this
|
9509
|
+
# intent as a direct or indirect parent. We populate this field only in the
|
9510
|
+
# output.
|
8734
9511
|
# Corresponds to the JSON property `followupIntentInfo`
|
8735
9512
|
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudDialogflowV2IntentFollowupIntentInfo>]
|
8736
9513
|
attr_accessor :followup_intent_info
|
@@ -8815,9 +9592,10 @@ module Google
|
|
8815
9592
|
attr_accessor :reset_contexts
|
8816
9593
|
alias_method :reset_contexts?, :reset_contexts
|
8817
9594
|
|
8818
|
-
# Read-only. The unique identifier of the root intent in the chain
|
8819
|
-
# intents. It identifies the correct followup intents chain for this
|
8820
|
-
# populate this field only in the output. Format: `projects//agent/
|
9595
|
+
# Output only. Read-only. The unique identifier of the root intent in the chain
|
9596
|
+
# of followup intents. It identifies the correct followup intents chain for this
|
9597
|
+
# intent. We populate this field only in the output. Format: `projects//agent/
|
9598
|
+
# intents/`.
|
8821
9599
|
# Corresponds to the JSON property `rootFollowupIntentName`
|
8822
9600
|
# @return [String]
|
8823
9601
|
attr_accessor :root_followup_intent_name
|
@@ -13769,6 +14547,78 @@ module Google
|
|
13769
14547
|
end
|
13770
14548
|
end
|
13771
14549
|
|
14550
|
+
# The response message for Locations.ListLocations.
|
14551
|
+
class GoogleCloudLocationListLocationsResponse
|
14552
|
+
include Google::Apis::Core::Hashable
|
14553
|
+
|
14554
|
+
# A list of locations that matches the specified filter in the request.
|
14555
|
+
# Corresponds to the JSON property `locations`
|
14556
|
+
# @return [Array<Google::Apis::DialogflowV3::GoogleCloudLocationLocation>]
|
14557
|
+
attr_accessor :locations
|
14558
|
+
|
14559
|
+
# The standard List next-page token.
|
14560
|
+
# Corresponds to the JSON property `nextPageToken`
|
14561
|
+
# @return [String]
|
14562
|
+
attr_accessor :next_page_token
|
14563
|
+
|
14564
|
+
def initialize(**args)
|
14565
|
+
update!(**args)
|
14566
|
+
end
|
14567
|
+
|
14568
|
+
# Update properties of this object
|
14569
|
+
def update!(**args)
|
14570
|
+
@locations = args[:locations] if args.key?(:locations)
|
14571
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
14572
|
+
end
|
14573
|
+
end
|
14574
|
+
|
14575
|
+
# A resource that represents Google Cloud Platform location.
|
14576
|
+
class GoogleCloudLocationLocation
|
14577
|
+
include Google::Apis::Core::Hashable
|
14578
|
+
|
14579
|
+
# The friendly name for this location, typically a nearby city name. For example,
|
14580
|
+
# "Tokyo".
|
14581
|
+
# Corresponds to the JSON property `displayName`
|
14582
|
+
# @return [String]
|
14583
|
+
attr_accessor :display_name
|
14584
|
+
|
14585
|
+
# Cross-service attributes for the location. For example `"cloud.googleapis.com/
|
14586
|
+
# region": "us-east1"`
|
14587
|
+
# Corresponds to the JSON property `labels`
|
14588
|
+
# @return [Hash<String,String>]
|
14589
|
+
attr_accessor :labels
|
14590
|
+
|
14591
|
+
# The canonical id for this location. For example: `"us-east1"`.
|
14592
|
+
# Corresponds to the JSON property `locationId`
|
14593
|
+
# @return [String]
|
14594
|
+
attr_accessor :location_id
|
14595
|
+
|
14596
|
+
# Service-specific metadata. For example the available capacity at the given
|
14597
|
+
# location.
|
14598
|
+
# Corresponds to the JSON property `metadata`
|
14599
|
+
# @return [Hash<String,Object>]
|
14600
|
+
attr_accessor :metadata
|
14601
|
+
|
14602
|
+
# Resource name for the location, which may vary between implementations. For
|
14603
|
+
# example: `"projects/example-project/locations/us-east1"`
|
14604
|
+
# Corresponds to the JSON property `name`
|
14605
|
+
# @return [String]
|
14606
|
+
attr_accessor :name
|
14607
|
+
|
14608
|
+
def initialize(**args)
|
14609
|
+
update!(**args)
|
14610
|
+
end
|
14611
|
+
|
14612
|
+
# Update properties of this object
|
14613
|
+
def update!(**args)
|
14614
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
14615
|
+
@labels = args[:labels] if args.key?(:labels)
|
14616
|
+
@location_id = args[:location_id] if args.key?(:location_id)
|
14617
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
14618
|
+
@name = args[:name] if args.key?(:name)
|
14619
|
+
end
|
14620
|
+
end
|
14621
|
+
|
13772
14622
|
# The response message for Operations.ListOperations.
|
13773
14623
|
class GoogleLongrunningListOperationsResponse
|
13774
14624
|
include Google::Apis::Core::Hashable
|