google-apis-dialogflow_v2 0.11.0 → 0.16.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: db54dbf64af7a5e7af5c35548e9a5a27ad8bab1c3915262e2a906a7b430eefd6
|
4
|
+
data.tar.gz: 217441fa8fdefb21e9cb3899936cd02a8c957c7ce1debc552ec6388204e8f93b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 32d8d3e6390d46842f54efa611f39238937cbf12221ab90797c8ce8e21fa5e59f2b712a0173faea9cda420e3accc79a43a1bd23e7744d607e8b6247f54bde165
|
7
|
+
data.tar.gz: b02b6f0eb37a14ef12030163ca95dac56f47633d5cc97b073e8895ce3e7fecc1d405782cac1ad91dfe555941786bc8f9e2938dbafe3a2e9163ac7ef930f7e87f
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-dialogflow_v2
|
2
2
|
|
3
|
+
### v0.16.0 (2021-06-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210618
|
6
|
+
|
7
|
+
### v0.15.0 (2021-06-16)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210611
|
10
|
+
|
11
|
+
### v0.14.0 (2021-06-03)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210601
|
14
|
+
* Regenerated using generator version 0.3.0
|
15
|
+
|
16
|
+
### v0.13.0 (2021-05-26)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210524
|
19
|
+
|
20
|
+
### v0.12.0 (2021-05-19)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210517
|
23
|
+
|
3
24
|
### v0.11.0 (2021-04-28)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210426
|
@@ -92,6 +92,45 @@ module Google
|
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
+
# Represents a result from running a test case in an agent environment.
|
96
|
+
class GoogleCloudDialogflowCxV3ContinuousTestResult
|
97
|
+
include Google::Apis::Core::Hashable
|
98
|
+
|
99
|
+
# The resource name for the continuous test result. Format: `projects//locations/
|
100
|
+
# /agents//environments//continuousTestResults/`.
|
101
|
+
# Corresponds to the JSON property `name`
|
102
|
+
# @return [String]
|
103
|
+
attr_accessor :name
|
104
|
+
|
105
|
+
# The result of this continuous test run, i.e. whether all the tests in this
|
106
|
+
# continuous test run pass or not.
|
107
|
+
# Corresponds to the JSON property `result`
|
108
|
+
# @return [String]
|
109
|
+
attr_accessor :result
|
110
|
+
|
111
|
+
# Time when the continuous testing run starts.
|
112
|
+
# Corresponds to the JSON property `runTime`
|
113
|
+
# @return [String]
|
114
|
+
attr_accessor :run_time
|
115
|
+
|
116
|
+
# A list of individual test case results names in this continuous test run.
|
117
|
+
# Corresponds to the JSON property `testCaseResults`
|
118
|
+
# @return [Array<String>]
|
119
|
+
attr_accessor :test_case_results
|
120
|
+
|
121
|
+
def initialize(**args)
|
122
|
+
update!(**args)
|
123
|
+
end
|
124
|
+
|
125
|
+
# Update properties of this object
|
126
|
+
def update!(**args)
|
127
|
+
@name = args[:name] if args.key?(:name)
|
128
|
+
@result = args[:result] if args.key?(:result)
|
129
|
+
@run_time = args[:run_time] if args.key?(:run_time)
|
130
|
+
@test_case_results = args[:test_case_results] if args.key?(:test_case_results)
|
131
|
+
end
|
132
|
+
end
|
133
|
+
|
95
134
|
# One interaction between a human and virtual agent. The human provides some
|
96
135
|
# input and the virtual agent provides a response.
|
97
136
|
class GoogleCloudDialogflowCxV3ConversationTurn
|
@@ -122,6 +161,12 @@ module Google
|
|
122
161
|
class GoogleCloudDialogflowCxV3ConversationTurnUserInput
|
123
162
|
include Google::Apis::Core::Hashable
|
124
163
|
|
164
|
+
# Whether sentiment analysis is enabled.
|
165
|
+
# Corresponds to the JSON property `enableSentimentAnalysis`
|
166
|
+
# @return [Boolean]
|
167
|
+
attr_accessor :enable_sentiment_analysis
|
168
|
+
alias_method :enable_sentiment_analysis?, :enable_sentiment_analysis
|
169
|
+
|
125
170
|
# Parameters that need to be injected into the conversation during intent
|
126
171
|
# detection.
|
127
172
|
# Corresponds to the JSON property `injectedParameters`
|
@@ -149,6 +194,7 @@ module Google
|
|
149
194
|
|
150
195
|
# Update properties of this object
|
151
196
|
def update!(**args)
|
197
|
+
@enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
|
152
198
|
@injected_parameters = args[:injected_parameters] if args.key?(:injected_parameters)
|
153
199
|
@input = args[:input] if args.key?(:input)
|
154
200
|
@is_webhook_enabled = args[:is_webhook_enabled] if args.key?(:is_webhook_enabled)
|
@@ -642,6 +688,18 @@ module Google
|
|
642
688
|
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessage>]
|
643
689
|
attr_accessor :messages
|
644
690
|
|
691
|
+
# Whether Dialogflow should return currently queued fulfillment response
|
692
|
+
# messages in streaming APIs. If a webhook is specified, it happens before
|
693
|
+
# Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API.
|
694
|
+
# Responses are still queued and returned once in non-streaming API. 2) The flag
|
695
|
+
# can be enabled in any fulfillment but only the first 3 partial responses will
|
696
|
+
# be returned. You may only want to apply it to fulfillments that have slow
|
697
|
+
# webhooks.
|
698
|
+
# Corresponds to the JSON property `returnPartialResponses`
|
699
|
+
# @return [Boolean]
|
700
|
+
attr_accessor :return_partial_responses
|
701
|
+
alias_method :return_partial_responses?, :return_partial_responses
|
702
|
+
|
645
703
|
# Set parameter values before executing the webhook.
|
646
704
|
# Corresponds to the JSON property `setParameterActions`
|
647
705
|
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3FulfillmentSetParameterAction>]
|
@@ -666,6 +724,7 @@ module Google
|
|
666
724
|
def update!(**args)
|
667
725
|
@conditional_cases = args[:conditional_cases] if args.key?(:conditional_cases)
|
668
726
|
@messages = args[:messages] if args.key?(:messages)
|
727
|
+
@return_partial_responses = args[:return_partial_responses] if args.key?(:return_partial_responses)
|
669
728
|
@set_parameter_actions = args[:set_parameter_actions] if args.key?(:set_parameter_actions)
|
670
729
|
@tag = args[:tag] if args.key?(:tag)
|
671
730
|
@webhook = args[:webhook] if args.key?(:webhook)
|
@@ -1008,9 +1067,9 @@ module Google
|
|
1008
1067
|
# letters, digits and the symbols '-' and '_'. International characters are
|
1009
1068
|
# allowed, including letters from unicase alphabets. Keys must start with a
|
1010
1069
|
# letter. Keys and values can be no longer than 63 characters and no more than
|
1011
|
-
# 128 bytes. Prefix "sys
|
1012
|
-
# allowed Dialogflow defined labels include: * sys
|
1013
|
-
# above labels do not require value. "sys
|
1070
|
+
# 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently
|
1071
|
+
# allowed Dialogflow defined labels include: * sys-head * sys-contextual The
|
1072
|
+
# above labels do not require value. "sys-head" means the intent is a head
|
1014
1073
|
# intent. "sys.contextual" means the intent is a contextual intent.
|
1015
1074
|
# Corresponds to the JSON property `labels`
|
1016
1075
|
# @return [Hash<String,String>]
|
@@ -1770,6 +1829,45 @@ module Google
|
|
1770
1829
|
end
|
1771
1830
|
end
|
1772
1831
|
|
1832
|
+
# Metadata returned for the Environments.RunContinuousTest long running
|
1833
|
+
# operation.
|
1834
|
+
class GoogleCloudDialogflowCxV3RunContinuousTestMetadata
|
1835
|
+
include Google::Apis::Core::Hashable
|
1836
|
+
|
1837
|
+
# The test errors.
|
1838
|
+
# Corresponds to the JSON property `errors`
|
1839
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TestError>]
|
1840
|
+
attr_accessor :errors
|
1841
|
+
|
1842
|
+
def initialize(**args)
|
1843
|
+
update!(**args)
|
1844
|
+
end
|
1845
|
+
|
1846
|
+
# Update properties of this object
|
1847
|
+
def update!(**args)
|
1848
|
+
@errors = args[:errors] if args.key?(:errors)
|
1849
|
+
end
|
1850
|
+
end
|
1851
|
+
|
1852
|
+
# The response message for Environments.RunContinuousTest.
|
1853
|
+
class GoogleCloudDialogflowCxV3RunContinuousTestResponse
|
1854
|
+
include Google::Apis::Core::Hashable
|
1855
|
+
|
1856
|
+
# Represents a result from running a test case in an agent environment.
|
1857
|
+
# Corresponds to the JSON property `continuousTestResult`
|
1858
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ContinuousTestResult]
|
1859
|
+
attr_accessor :continuous_test_result
|
1860
|
+
|
1861
|
+
def initialize(**args)
|
1862
|
+
update!(**args)
|
1863
|
+
end
|
1864
|
+
|
1865
|
+
# Update properties of this object
|
1866
|
+
def update!(**args)
|
1867
|
+
@continuous_test_result = args[:continuous_test_result] if args.key?(:continuous_test_result)
|
1868
|
+
end
|
1869
|
+
end
|
1870
|
+
|
1773
1871
|
# Metadata returned for the TestCases.RunTestCase long running operation.
|
1774
1872
|
class GoogleCloudDialogflowCxV3RunTestCaseMetadata
|
1775
1873
|
include Google::Apis::Core::Hashable
|
@@ -2532,6 +2630,45 @@ module Google
|
|
2532
2630
|
end
|
2533
2631
|
end
|
2534
2632
|
|
2633
|
+
# Represents a result from running a test case in an agent environment.
|
2634
|
+
class GoogleCloudDialogflowCxV3beta1ContinuousTestResult
|
2635
|
+
include Google::Apis::Core::Hashable
|
2636
|
+
|
2637
|
+
# The resource name for the continuous test result. Format: `projects//locations/
|
2638
|
+
# /agents//environments//continuousTestResults/`.
|
2639
|
+
# Corresponds to the JSON property `name`
|
2640
|
+
# @return [String]
|
2641
|
+
attr_accessor :name
|
2642
|
+
|
2643
|
+
# The result of this continuous test run, i.e. whether all the tests in this
|
2644
|
+
# continuous test run pass or not.
|
2645
|
+
# Corresponds to the JSON property `result`
|
2646
|
+
# @return [String]
|
2647
|
+
attr_accessor :result
|
2648
|
+
|
2649
|
+
# Time when the continuous testing run starts.
|
2650
|
+
# Corresponds to the JSON property `runTime`
|
2651
|
+
# @return [String]
|
2652
|
+
attr_accessor :run_time
|
2653
|
+
|
2654
|
+
# A list of individual test case results names in this continuous test run.
|
2655
|
+
# Corresponds to the JSON property `testCaseResults`
|
2656
|
+
# @return [Array<String>]
|
2657
|
+
attr_accessor :test_case_results
|
2658
|
+
|
2659
|
+
def initialize(**args)
|
2660
|
+
update!(**args)
|
2661
|
+
end
|
2662
|
+
|
2663
|
+
# Update properties of this object
|
2664
|
+
def update!(**args)
|
2665
|
+
@name = args[:name] if args.key?(:name)
|
2666
|
+
@result = args[:result] if args.key?(:result)
|
2667
|
+
@run_time = args[:run_time] if args.key?(:run_time)
|
2668
|
+
@test_case_results = args[:test_case_results] if args.key?(:test_case_results)
|
2669
|
+
end
|
2670
|
+
end
|
2671
|
+
|
2535
2672
|
# One interaction between a human and virtual agent. The human provides some
|
2536
2673
|
# input and the virtual agent provides a response.
|
2537
2674
|
class GoogleCloudDialogflowCxV3beta1ConversationTurn
|
@@ -2562,6 +2699,12 @@ module Google
|
|
2562
2699
|
class GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
|
2563
2700
|
include Google::Apis::Core::Hashable
|
2564
2701
|
|
2702
|
+
# Whether sentiment analysis is enabled.
|
2703
|
+
# Corresponds to the JSON property `enableSentimentAnalysis`
|
2704
|
+
# @return [Boolean]
|
2705
|
+
attr_accessor :enable_sentiment_analysis
|
2706
|
+
alias_method :enable_sentiment_analysis?, :enable_sentiment_analysis
|
2707
|
+
|
2565
2708
|
# Parameters that need to be injected into the conversation during intent
|
2566
2709
|
# detection.
|
2567
2710
|
# Corresponds to the JSON property `injectedParameters`
|
@@ -2589,6 +2732,7 @@ module Google
|
|
2589
2732
|
|
2590
2733
|
# Update properties of this object
|
2591
2734
|
def update!(**args)
|
2735
|
+
@enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
|
2592
2736
|
@injected_parameters = args[:injected_parameters] if args.key?(:injected_parameters)
|
2593
2737
|
@input = args[:input] if args.key?(:input)
|
2594
2738
|
@is_webhook_enabled = args[:is_webhook_enabled] if args.key?(:is_webhook_enabled)
|
@@ -3082,6 +3226,18 @@ module Google
|
|
3082
3226
|
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessage>]
|
3083
3227
|
attr_accessor :messages
|
3084
3228
|
|
3229
|
+
# Whether Dialogflow should return currently queued fulfillment response
|
3230
|
+
# messages in streaming APIs. If a webhook is specified, it happens before
|
3231
|
+
# Dialogflow invokes webhook. Warning: 1) This flag only affects streaming API.
|
3232
|
+
# Responses are still queued and returned once in non-streaming API. 2) The flag
|
3233
|
+
# can be enabled in any fulfillment but only the first 3 partial responses will
|
3234
|
+
# be returned. You may only want to apply it to fulfillments that have slow
|
3235
|
+
# webhooks.
|
3236
|
+
# Corresponds to the JSON property `returnPartialResponses`
|
3237
|
+
# @return [Boolean]
|
3238
|
+
attr_accessor :return_partial_responses
|
3239
|
+
alias_method :return_partial_responses?, :return_partial_responses
|
3240
|
+
|
3085
3241
|
# Set parameter values before executing the webhook.
|
3086
3242
|
# Corresponds to the JSON property `setParameterActions`
|
3087
3243
|
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction>]
|
@@ -3106,6 +3262,7 @@ module Google
|
|
3106
3262
|
def update!(**args)
|
3107
3263
|
@conditional_cases = args[:conditional_cases] if args.key?(:conditional_cases)
|
3108
3264
|
@messages = args[:messages] if args.key?(:messages)
|
3265
|
+
@return_partial_responses = args[:return_partial_responses] if args.key?(:return_partial_responses)
|
3109
3266
|
@set_parameter_actions = args[:set_parameter_actions] if args.key?(:set_parameter_actions)
|
3110
3267
|
@tag = args[:tag] if args.key?(:tag)
|
3111
3268
|
@webhook = args[:webhook] if args.key?(:webhook)
|
@@ -4210,6 +4367,45 @@ module Google
|
|
4210
4367
|
end
|
4211
4368
|
end
|
4212
4369
|
|
4370
|
+
# Metadata returned for the Environments.RunContinuousTest long running
|
4371
|
+
# operation.
|
4372
|
+
class GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
|
4373
|
+
include Google::Apis::Core::Hashable
|
4374
|
+
|
4375
|
+
# The test errors.
|
4376
|
+
# Corresponds to the JSON property `errors`
|
4377
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1TestError>]
|
4378
|
+
attr_accessor :errors
|
4379
|
+
|
4380
|
+
def initialize(**args)
|
4381
|
+
update!(**args)
|
4382
|
+
end
|
4383
|
+
|
4384
|
+
# Update properties of this object
|
4385
|
+
def update!(**args)
|
4386
|
+
@errors = args[:errors] if args.key?(:errors)
|
4387
|
+
end
|
4388
|
+
end
|
4389
|
+
|
4390
|
+
# The response message for Environments.RunContinuousTest.
|
4391
|
+
class GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
|
4392
|
+
include Google::Apis::Core::Hashable
|
4393
|
+
|
4394
|
+
# Represents a result from running a test case in an agent environment.
|
4395
|
+
# Corresponds to the JSON property `continuousTestResult`
|
4396
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ContinuousTestResult]
|
4397
|
+
attr_accessor :continuous_test_result
|
4398
|
+
|
4399
|
+
def initialize(**args)
|
4400
|
+
update!(**args)
|
4401
|
+
end
|
4402
|
+
|
4403
|
+
# Update properties of this object
|
4404
|
+
def update!(**args)
|
4405
|
+
@continuous_test_result = args[:continuous_test_result] if args.key?(:continuous_test_result)
|
4406
|
+
end
|
4407
|
+
end
|
4408
|
+
|
4213
4409
|
# Metadata returned for the TestCases.RunTestCase long running operation.
|
4214
4410
|
class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
|
4215
4411
|
include Google::Apis::Core::Hashable
|
@@ -5404,6 +5600,19 @@ module Google
|
|
5404
5600
|
class GoogleCloudDialogflowV2AutomatedAgentReply
|
5405
5601
|
include Google::Apis::Core::Hashable
|
5406
5602
|
|
5603
|
+
# Indicates whether the partial automated agent reply is interruptible when a
|
5604
|
+
# later reply message arrives. e.g. if the agent specified some music as partial
|
5605
|
+
# response, it can be cancelled.
|
5606
|
+
# Corresponds to the JSON property `allowCancellation`
|
5607
|
+
# @return [Boolean]
|
5608
|
+
attr_accessor :allow_cancellation
|
5609
|
+
alias_method :allow_cancellation?, :allow_cancellation
|
5610
|
+
|
5611
|
+
# AutomatedAgentReply type.
|
5612
|
+
# Corresponds to the JSON property `automatedAgentReplyType`
|
5613
|
+
# @return [String]
|
5614
|
+
attr_accessor :automated_agent_reply_type
|
5615
|
+
|
5407
5616
|
# The message returned from the DetectIntent method.
|
5408
5617
|
# Corresponds to the JSON property `detectIntentResponse`
|
5409
5618
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse]
|
@@ -5415,6 +5624,8 @@ module Google
|
|
5415
5624
|
|
5416
5625
|
# Update properties of this object
|
5417
5626
|
def update!(**args)
|
5627
|
+
@allow_cancellation = args[:allow_cancellation] if args.key?(:allow_cancellation)
|
5628
|
+
@automated_agent_reply_type = args[:automated_agent_reply_type] if args.key?(:automated_agent_reply_type)
|
5418
5629
|
@detect_intent_response = args[:detect_intent_response] if args.key?(:detect_intent_response)
|
5419
5630
|
end
|
5420
5631
|
end
|
@@ -6355,7 +6566,7 @@ module Google
|
|
6355
6566
|
class GoogleCloudDialogflowV2Environment
|
6356
6567
|
include Google::Apis::Core::Hashable
|
6357
6568
|
|
6358
|
-
#
|
6569
|
+
# Required. The agent version loaded into this environment. Supported formats: -
|
6359
6570
|
# `projects//agent/versions/` - `projects//locations//agent/versions/`
|
6360
6571
|
# Corresponds to the JSON property `agentVersion`
|
6361
6572
|
# @return [String]
|
@@ -9472,6 +9683,13 @@ module Google
|
|
9472
9683
|
attr_accessor :all_required_params_present
|
9473
9684
|
alias_method :all_required_params_present?, :all_required_params_present
|
9474
9685
|
|
9686
|
+
# Indicates whether the conversational query triggers a cancellation for slot
|
9687
|
+
# filling.
|
9688
|
+
# Corresponds to the JSON property `cancelsSlotFilling`
|
9689
|
+
# @return [Boolean]
|
9690
|
+
attr_accessor :cancels_slot_filling
|
9691
|
+
alias_method :cancels_slot_filling?, :cancels_slot_filling
|
9692
|
+
|
9475
9693
|
# Free-form diagnostic information for the associated detect intent request. The
|
9476
9694
|
# fields of this data can change without notice, so you should not write code
|
9477
9695
|
# that depends on its structure. The data may contain: - webhook call latency -
|
@@ -9592,6 +9810,7 @@ module Google
|
|
9592
9810
|
def update!(**args)
|
9593
9811
|
@action = args[:action] if args.key?(:action)
|
9594
9812
|
@all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
|
9813
|
+
@cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
|
9595
9814
|
@diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
|
9596
9815
|
@fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
|
9597
9816
|
@fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
|
@@ -12935,6 +13154,13 @@ module Google
|
|
12935
13154
|
attr_accessor :all_required_params_present
|
12936
13155
|
alias_method :all_required_params_present?, :all_required_params_present
|
12937
13156
|
|
13157
|
+
# Indicates whether the conversational query triggers a cancellation for slot
|
13158
|
+
# filling.
|
13159
|
+
# Corresponds to the JSON property `cancelsSlotFilling`
|
13160
|
+
# @return [Boolean]
|
13161
|
+
attr_accessor :cancels_slot_filling
|
13162
|
+
alias_method :cancels_slot_filling?, :cancels_slot_filling
|
13163
|
+
|
12938
13164
|
# Free-form diagnostic information for the associated detect intent request. The
|
12939
13165
|
# fields of this data can change without notice, so you should not write code
|
12940
13166
|
# that depends on its structure. The data may contain: - webhook call latency -
|
@@ -13060,6 +13286,7 @@ module Google
|
|
13060
13286
|
def update!(**args)
|
13061
13287
|
@action = args[:action] if args.key?(:action)
|
13062
13288
|
@all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
|
13289
|
+
@cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
|
13063
13290
|
@diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
|
13064
13291
|
@fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
|
13065
13292
|
@fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module DialogflowV2
|
18
18
|
# Version of the google-apis-dialogflow_v2 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.16.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.3.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210618"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -40,6 +40,12 @@ module Google
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
+
class GoogleCloudDialogflowCxV3ContinuousTestResult
|
44
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
|
+
|
46
|
+
include Google::Apis::Core::JsonObjectSupport
|
47
|
+
end
|
48
|
+
|
43
49
|
class GoogleCloudDialogflowCxV3ConversationTurn
|
44
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
51
|
|
@@ -328,6 +334,18 @@ module Google
|
|
328
334
|
include Google::Apis::Core::JsonObjectSupport
|
329
335
|
end
|
330
336
|
|
337
|
+
class GoogleCloudDialogflowCxV3RunContinuousTestMetadata
|
338
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
339
|
+
|
340
|
+
include Google::Apis::Core::JsonObjectSupport
|
341
|
+
end
|
342
|
+
|
343
|
+
class GoogleCloudDialogflowCxV3RunContinuousTestResponse
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
345
|
+
|
346
|
+
include Google::Apis::Core::JsonObjectSupport
|
347
|
+
end
|
348
|
+
|
331
349
|
class GoogleCloudDialogflowCxV3RunTestCaseMetadata
|
332
350
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
333
351
|
|
@@ -460,6 +478,12 @@ module Google
|
|
460
478
|
include Google::Apis::Core::JsonObjectSupport
|
461
479
|
end
|
462
480
|
|
481
|
+
class GoogleCloudDialogflowCxV3beta1ContinuousTestResult
|
482
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
483
|
+
|
484
|
+
include Google::Apis::Core::JsonObjectSupport
|
485
|
+
end
|
486
|
+
|
463
487
|
class GoogleCloudDialogflowCxV3beta1ConversationTurn
|
464
488
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
489
|
|
@@ -748,6 +772,18 @@ module Google
|
|
748
772
|
include Google::Apis::Core::JsonObjectSupport
|
749
773
|
end
|
750
774
|
|
775
|
+
class GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
|
776
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
777
|
+
|
778
|
+
include Google::Apis::Core::JsonObjectSupport
|
779
|
+
end
|
780
|
+
|
781
|
+
class GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
|
782
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
783
|
+
|
784
|
+
include Google::Apis::Core::JsonObjectSupport
|
785
|
+
end
|
786
|
+
|
751
787
|
class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
|
752
788
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
753
789
|
|
@@ -2297,6 +2333,16 @@ module Google
|
|
2297
2333
|
end
|
2298
2334
|
end
|
2299
2335
|
|
2336
|
+
class GoogleCloudDialogflowCxV3ContinuousTestResult
|
2337
|
+
# @private
|
2338
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2339
|
+
property :name, as: 'name'
|
2340
|
+
property :result, as: 'result'
|
2341
|
+
property :run_time, as: 'runTime'
|
2342
|
+
collection :test_case_results, as: 'testCaseResults'
|
2343
|
+
end
|
2344
|
+
end
|
2345
|
+
|
2300
2346
|
class GoogleCloudDialogflowCxV3ConversationTurn
|
2301
2347
|
# @private
|
2302
2348
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2310,6 +2356,7 @@ module Google
|
|
2310
2356
|
class GoogleCloudDialogflowCxV3ConversationTurnUserInput
|
2311
2357
|
# @private
|
2312
2358
|
class Representation < Google::Apis::Core::JsonRepresentation
|
2359
|
+
property :enable_sentiment_analysis, as: 'enableSentimentAnalysis'
|
2313
2360
|
hash :injected_parameters, as: 'injectedParameters'
|
2314
2361
|
property :input, as: 'input', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3QueryInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3QueryInput::Representation
|
2315
2362
|
|
@@ -2454,6 +2501,7 @@ module Google
|
|
2454
2501
|
|
2455
2502
|
collection :messages, as: 'messages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessage::Representation
|
2456
2503
|
|
2504
|
+
property :return_partial_responses, as: 'returnPartialResponses'
|
2457
2505
|
collection :set_parameter_actions, as: 'setParameterActions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3FulfillmentSetParameterAction, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3FulfillmentSetParameterAction::Representation
|
2458
2506
|
|
2459
2507
|
property :tag, as: 'tag'
|
@@ -2758,6 +2806,22 @@ module Google
|
|
2758
2806
|
end
|
2759
2807
|
end
|
2760
2808
|
|
2809
|
+
class GoogleCloudDialogflowCxV3RunContinuousTestMetadata
|
2810
|
+
# @private
|
2811
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2812
|
+
collection :errors, as: 'errors', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TestError, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TestError::Representation
|
2813
|
+
|
2814
|
+
end
|
2815
|
+
end
|
2816
|
+
|
2817
|
+
class GoogleCloudDialogflowCxV3RunContinuousTestResponse
|
2818
|
+
# @private
|
2819
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
2820
|
+
property :continuous_test_result, as: 'continuousTestResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ContinuousTestResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ContinuousTestResult::Representation
|
2821
|
+
|
2822
|
+
end
|
2823
|
+
end
|
2824
|
+
|
2761
2825
|
class GoogleCloudDialogflowCxV3RunTestCaseMetadata
|
2762
2826
|
# @private
|
2763
2827
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2981,6 +3045,16 @@ module Google
|
|
2981
3045
|
end
|
2982
3046
|
end
|
2983
3047
|
|
3048
|
+
class GoogleCloudDialogflowCxV3beta1ContinuousTestResult
|
3049
|
+
# @private
|
3050
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3051
|
+
property :name, as: 'name'
|
3052
|
+
property :result, as: 'result'
|
3053
|
+
property :run_time, as: 'runTime'
|
3054
|
+
collection :test_case_results, as: 'testCaseResults'
|
3055
|
+
end
|
3056
|
+
end
|
3057
|
+
|
2984
3058
|
class GoogleCloudDialogflowCxV3beta1ConversationTurn
|
2985
3059
|
# @private
|
2986
3060
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -2994,6 +3068,7 @@ module Google
|
|
2994
3068
|
class GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
|
2995
3069
|
# @private
|
2996
3070
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3071
|
+
property :enable_sentiment_analysis, as: 'enableSentimentAnalysis'
|
2997
3072
|
hash :injected_parameters, as: 'injectedParameters'
|
2998
3073
|
property :input, as: 'input', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1QueryInput, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1QueryInput::Representation
|
2999
3074
|
|
@@ -3138,6 +3213,7 @@ module Google
|
|
3138
3213
|
|
3139
3214
|
collection :messages, as: 'messages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessage::Representation
|
3140
3215
|
|
3216
|
+
property :return_partial_responses, as: 'returnPartialResponses'
|
3141
3217
|
collection :set_parameter_actions, as: 'setParameterActions', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction::Representation
|
3142
3218
|
|
3143
3219
|
property :tag, as: 'tag'
|
@@ -3442,6 +3518,22 @@ module Google
|
|
3442
3518
|
end
|
3443
3519
|
end
|
3444
3520
|
|
3521
|
+
class GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
|
3522
|
+
# @private
|
3523
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3524
|
+
collection :errors, as: 'errors', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1TestError, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1TestError::Representation
|
3525
|
+
|
3526
|
+
end
|
3527
|
+
end
|
3528
|
+
|
3529
|
+
class GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
|
3530
|
+
# @private
|
3531
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
3532
|
+
property :continuous_test_result, as: 'continuousTestResult', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ContinuousTestResult, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ContinuousTestResult::Representation
|
3533
|
+
|
3534
|
+
end
|
3535
|
+
end
|
3536
|
+
|
3445
3537
|
class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
|
3446
3538
|
# @private
|
3447
3539
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -3766,6 +3858,8 @@ module Google
|
|
3766
3858
|
class GoogleCloudDialogflowV2AutomatedAgentReply
|
3767
3859
|
# @private
|
3768
3860
|
class Representation < Google::Apis::Core::JsonRepresentation
|
3861
|
+
property :allow_cancellation, as: 'allowCancellation'
|
3862
|
+
property :automated_agent_reply_type, as: 'automatedAgentReplyType'
|
3769
3863
|
property :detect_intent_response, as: 'detectIntentResponse', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2DetectIntentResponse::Representation
|
3770
3864
|
|
3771
3865
|
end
|
@@ -4896,6 +4990,7 @@ module Google
|
|
4896
4990
|
class Representation < Google::Apis::Core::JsonRepresentation
|
4897
4991
|
property :action, as: 'action'
|
4898
4992
|
property :all_required_params_present, as: 'allRequiredParamsPresent'
|
4993
|
+
property :cancels_slot_filling, as: 'cancelsSlotFilling'
|
4899
4994
|
hash :diagnostic_info, as: 'diagnosticInfo'
|
4900
4995
|
collection :fulfillment_messages, as: 'fulfillmentMessages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2IntentMessage::Representation
|
4901
4996
|
|
@@ -5833,6 +5928,7 @@ module Google
|
|
5833
5928
|
class Representation < Google::Apis::Core::JsonRepresentation
|
5834
5929
|
property :action, as: 'action'
|
5835
5930
|
property :all_required_params_present, as: 'allRequiredParamsPresent'
|
5931
|
+
property :cancels_slot_filling, as: 'cancelsSlotFilling'
|
5836
5932
|
hash :diagnostic_info, as: 'diagnosticInfo'
|
5837
5933
|
collection :fulfillment_messages, as: 'fulfillmentMessages', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1IntentMessage::Representation
|
5838
5934
|
|
@@ -112,7 +112,9 @@ module Google
|
|
112
112
|
execute_or_queue_command(command, &block)
|
113
113
|
end
|
114
114
|
|
115
|
-
# Creates/updates the specified agent.
|
115
|
+
# Creates/updates the specified agent. Note: You should always train an agent
|
116
|
+
# prior to sending it queries. See the [training documentation](https://cloud.
|
117
|
+
# google.com/dialogflow/es/docs/training).
|
116
118
|
# @param [String] parent
|
117
119
|
# Required. The project of this agent. Format: `projects/`.
|
118
120
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] google_cloud_dialogflow_v2_agent_object
|
@@ -148,7 +150,7 @@ module Google
|
|
148
150
|
execute_or_queue_command(command, &block)
|
149
151
|
end
|
150
152
|
|
151
|
-
# Exports the specified agent to a ZIP file.
|
153
|
+
# Exports the specified agent to a ZIP file.
|
152
154
|
# @param [String] parent
|
153
155
|
# Required. The project that the agent to export is associated with. Format: `
|
154
156
|
# projects/`.
|
@@ -255,9 +257,11 @@ module Google
|
|
255
257
|
# the import, the imported draft agent will be trained automatically (unless
|
256
258
|
# disabled in agent settings). However, once the import is done, training may
|
257
259
|
# not be completed yet. Please call TrainAgent and wait for the operation it
|
258
|
-
# returns in order to train explicitly.
|
259
|
-
#
|
260
|
-
#
|
260
|
+
# returns in order to train explicitly. An operation which tracks when importing
|
261
|
+
# is complete. It only tracks when the draft agent is updated not when it is
|
262
|
+
# done training. Note: You should always train an agent prior to sending it
|
263
|
+
# queries. See the [training documentation](https://cloud.google.com/dialogflow/
|
264
|
+
# es/docs/training).
|
261
265
|
# @param [String] parent
|
262
266
|
# Required. The project that the agent to import is associated with. Format: `
|
263
267
|
# projects/`.
|
@@ -296,9 +300,11 @@ module Google
|
|
296
300
|
# are deleted. After the restore, the restored draft agent will be trained
|
297
301
|
# automatically (unless disabled in agent settings). However, once the restore
|
298
302
|
# is done, training may not be completed yet. Please call TrainAgent and wait
|
299
|
-
# for the operation it returns in order to train explicitly.
|
300
|
-
#
|
301
|
-
#
|
303
|
+
# for the operation it returns in order to train explicitly. An operation which
|
304
|
+
# tracks when restoring is complete. It only tracks when the draft agent is
|
305
|
+
# updated not when it is done training. Note: You should always train an agent
|
306
|
+
# prior to sending it queries. See the [training documentation](https://cloud.
|
307
|
+
# google.com/dialogflow/es/docs/training).
|
302
308
|
# @param [String] parent
|
303
309
|
# Required. The project that the agent to restore is associated with. Format: `
|
304
310
|
# projects/`.
|
@@ -373,7 +379,9 @@ module Google
|
|
373
379
|
execute_or_queue_command(command, &block)
|
374
380
|
end
|
375
381
|
|
376
|
-
# Trains the specified agent.
|
382
|
+
# Trains the specified agent. Note: You should always train an agent prior to
|
383
|
+
# sending it queries. See the [training documentation](https://cloud.google.com/
|
384
|
+
# dialogflow/es/docs/training).
|
377
385
|
# @param [String] parent
|
378
386
|
# Required. The project that the agent to train is associated with. Format: `
|
379
387
|
# projects/`.
|
@@ -446,7 +454,9 @@ module Google
|
|
446
454
|
execute_or_queue_command(command, &block)
|
447
455
|
end
|
448
456
|
|
449
|
-
# Deletes entity types in the specified agent.
|
457
|
+
# Deletes entity types in the specified agent. Note: You should always train an
|
458
|
+
# agent prior to sending it queries. See the [training documentation](https://
|
459
|
+
# cloud.google.com/dialogflow/es/docs/training).
|
450
460
|
# @param [String] parent
|
451
461
|
# Required. The name of the agent to delete all entities types for. Format: `
|
452
462
|
# projects//agent`.
|
@@ -480,7 +490,9 @@ module Google
|
|
480
490
|
execute_or_queue_command(command, &block)
|
481
491
|
end
|
482
492
|
|
483
|
-
# Updates/Creates multiple entity types in the specified agent.
|
493
|
+
# Updates/Creates multiple entity types in the specified agent. Note: You should
|
494
|
+
# always train an agent prior to sending it queries. See the [training
|
495
|
+
# documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
484
496
|
# @param [String] parent
|
485
497
|
# Required. The name of the agent to update or create entity types in. Format: `
|
486
498
|
# projects//agent`.
|
@@ -514,7 +526,9 @@ module Google
|
|
514
526
|
execute_or_queue_command(command, &block)
|
515
527
|
end
|
516
528
|
|
517
|
-
# Creates an entity type in the specified agent.
|
529
|
+
# Creates an entity type in the specified agent. Note: You should always train
|
530
|
+
# an agent prior to sending it queries. See the [training documentation](https://
|
531
|
+
# cloud.google.com/dialogflow/es/docs/training).
|
518
532
|
# @param [String] parent
|
519
533
|
# Required. The agent to create a entity type for. Format: `projects//agent`.
|
520
534
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType] google_cloud_dialogflow_v2_entity_type_object
|
@@ -553,7 +567,9 @@ module Google
|
|
553
567
|
execute_or_queue_command(command, &block)
|
554
568
|
end
|
555
569
|
|
556
|
-
# Deletes the specified entity type.
|
570
|
+
# Deletes the specified entity type. Note: You should always train an agent
|
571
|
+
# prior to sending it queries. See the [training documentation](https://cloud.
|
572
|
+
# google.com/dialogflow/es/docs/training).
|
557
573
|
# @param [String] name
|
558
574
|
# Required. The name of the entity type to delete. Format: `projects//agent/
|
559
575
|
# entityTypes/`.
|
@@ -663,7 +679,9 @@ module Google
|
|
663
679
|
execute_or_queue_command(command, &block)
|
664
680
|
end
|
665
681
|
|
666
|
-
# Updates the specified entity type.
|
682
|
+
# Updates the specified entity type. Note: You should always train an agent
|
683
|
+
# prior to sending it queries. See the [training documentation](https://cloud.
|
684
|
+
# google.com/dialogflow/es/docs/training).
|
667
685
|
# @param [String] name
|
668
686
|
# The unique identifier of the entity type. Required for EntityTypes.
|
669
687
|
# UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: `
|
@@ -707,7 +725,9 @@ module Google
|
|
707
725
|
execute_or_queue_command(command, &block)
|
708
726
|
end
|
709
727
|
|
710
|
-
# Creates multiple new entities in the specified entity type.
|
728
|
+
# Creates multiple new entities in the specified entity type. Note: You should
|
729
|
+
# always train an agent prior to sending it queries. See the [training
|
730
|
+
# documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
711
731
|
# @param [String] parent
|
712
732
|
# Required. The name of the entity type to create entities in. Format: `projects/
|
713
733
|
# /agent/entityTypes/`.
|
@@ -741,7 +761,9 @@ module Google
|
|
741
761
|
execute_or_queue_command(command, &block)
|
742
762
|
end
|
743
763
|
|
744
|
-
# Deletes entities in the specified entity type.
|
764
|
+
# Deletes entities in the specified entity type. Note: You should always train
|
765
|
+
# an agent prior to sending it queries. See the [training documentation](https://
|
766
|
+
# cloud.google.com/dialogflow/es/docs/training).
|
745
767
|
# @param [String] parent
|
746
768
|
# Required. The name of the entity type to delete entries for. Format: `projects/
|
747
769
|
# /agent/entityTypes/`.
|
@@ -777,7 +799,9 @@ module Google
|
|
777
799
|
|
778
800
|
# Updates or creates multiple entities in the specified entity type. This method
|
779
801
|
# does not affect entities in the entity type that aren't explicitly specified
|
780
|
-
# in the request.
|
802
|
+
# in the request. Note: You should always train an agent prior to sending it
|
803
|
+
# queries. See the [training documentation](https://cloud.google.com/dialogflow/
|
804
|
+
# es/docs/training).
|
781
805
|
# @param [String] parent
|
782
806
|
# Required. The name of the entity type to update or create entities in. Format:
|
783
807
|
# `projects//agent/entityTypes/`.
|
@@ -1042,7 +1066,11 @@ module Google
|
|
1042
1066
|
|
1043
1067
|
# Returns the list of all intents in the specified agent.
|
1044
1068
|
# @param [String] parent
|
1045
|
-
# Required. The agent to list all intents from. Format: `projects//agent
|
1069
|
+
# Required. The agent to list all intents from. Format: `projects//agent` or `
|
1070
|
+
# projects//locations//agent`. Alternatively, you can specify the environment to
|
1071
|
+
# list intents for. Format: `projects//agent/environments/` or `projects//
|
1072
|
+
# locations//agent/environments/`. Note: training phrases of the intents will
|
1073
|
+
# not be returned for non-draft environment.
|
1046
1074
|
# @param [String] intent_view
|
1047
1075
|
# Optional. The resource view to apply to the returned intent.
|
1048
1076
|
# @param [String] language_code
|
@@ -1549,7 +1577,9 @@ module Google
|
|
1549
1577
|
execute_or_queue_command(command, &block)
|
1550
1578
|
end
|
1551
1579
|
|
1552
|
-
# Deletes intents in the specified agent.
|
1580
|
+
# Deletes intents in the specified agent. Note: You should always train an agent
|
1581
|
+
# prior to sending it queries. See the [training documentation](https://cloud.
|
1582
|
+
# google.com/dialogflow/es/docs/training).
|
1553
1583
|
# @param [String] parent
|
1554
1584
|
# Required. The name of the agent to delete all entities types for. Format: `
|
1555
1585
|
# projects//agent`.
|
@@ -1583,7 +1613,9 @@ module Google
|
|
1583
1613
|
execute_or_queue_command(command, &block)
|
1584
1614
|
end
|
1585
1615
|
|
1586
|
-
# Updates/Creates multiple intents in the specified agent.
|
1616
|
+
# Updates/Creates multiple intents in the specified agent. Note: You should
|
1617
|
+
# always train an agent prior to sending it queries. See the [training
|
1618
|
+
# documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
1587
1619
|
# @param [String] parent
|
1588
1620
|
# Required. The name of the agent to update or create intents in. Format: `
|
1589
1621
|
# projects//agent`.
|
@@ -1617,7 +1649,9 @@ module Google
|
|
1617
1649
|
execute_or_queue_command(command, &block)
|
1618
1650
|
end
|
1619
1651
|
|
1620
|
-
# Creates an intent in the specified agent.
|
1652
|
+
# Creates an intent in the specified agent. Note: You should always train an
|
1653
|
+
# agent prior to sending it queries. See the [training documentation](https://
|
1654
|
+
# cloud.google.com/dialogflow/es/docs/training).
|
1621
1655
|
# @param [String] parent
|
1622
1656
|
# Required. The agent to create a intent for. Format: `projects//agent`.
|
1623
1657
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent] google_cloud_dialogflow_v2_intent_object
|
@@ -1659,7 +1693,9 @@ module Google
|
|
1659
1693
|
execute_or_queue_command(command, &block)
|
1660
1694
|
end
|
1661
1695
|
|
1662
|
-
# Deletes the specified intent and its direct or indirect followup intents.
|
1696
|
+
# Deletes the specified intent and its direct or indirect followup intents. Note:
|
1697
|
+
# You should always train an agent prior to sending it queries. See the [
|
1698
|
+
# training documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
1663
1699
|
# @param [String] name
|
1664
1700
|
# Required. The name of the intent to delete. If this intent has direct or
|
1665
1701
|
# indirect followup intents, we also delete them. Format: `projects//agent/
|
@@ -1732,7 +1768,11 @@ module Google
|
|
1732
1768
|
|
1733
1769
|
# Returns the list of all intents in the specified agent.
|
1734
1770
|
# @param [String] parent
|
1735
|
-
# Required. The agent to list all intents from. Format: `projects//agent
|
1771
|
+
# Required. The agent to list all intents from. Format: `projects//agent` or `
|
1772
|
+
# projects//locations//agent`. Alternatively, you can specify the environment to
|
1773
|
+
# list intents for. Format: `projects//agent/environments/` or `projects//
|
1774
|
+
# locations//agent/environments/`. Note: training phrases of the intents will
|
1775
|
+
# not be returned for non-draft environment.
|
1736
1776
|
# @param [String] intent_view
|
1737
1777
|
# Optional. The resource view to apply to the returned intent.
|
1738
1778
|
# @param [String] language_code
|
@@ -1776,7 +1816,9 @@ module Google
|
|
1776
1816
|
execute_or_queue_command(command, &block)
|
1777
1817
|
end
|
1778
1818
|
|
1779
|
-
# Updates the specified intent.
|
1819
|
+
# Updates the specified intent. Note: You should always train an agent prior to
|
1820
|
+
# sending it queries. See the [training documentation](https://cloud.google.com/
|
1821
|
+
# dialogflow/es/docs/training).
|
1780
1822
|
# @param [String] name
|
1781
1823
|
# Optional. The unique identifier of this intent. Required for Intents.
|
1782
1824
|
# UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/
|
@@ -4022,7 +4064,9 @@ module Google
|
|
4022
4064
|
execute_or_queue_command(command, &block)
|
4023
4065
|
end
|
4024
4066
|
|
4025
|
-
# Creates/updates the specified agent.
|
4067
|
+
# Creates/updates the specified agent. Note: You should always train an agent
|
4068
|
+
# prior to sending it queries. See the [training documentation](https://cloud.
|
4069
|
+
# google.com/dialogflow/es/docs/training).
|
4026
4070
|
# @param [String] parent
|
4027
4071
|
# Required. The project of this agent. Format: `projects/`.
|
4028
4072
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Agent] google_cloud_dialogflow_v2_agent_object
|
@@ -4058,7 +4102,7 @@ module Google
|
|
4058
4102
|
execute_or_queue_command(command, &block)
|
4059
4103
|
end
|
4060
4104
|
|
4061
|
-
# Exports the specified agent to a ZIP file.
|
4105
|
+
# Exports the specified agent to a ZIP file.
|
4062
4106
|
# @param [String] parent
|
4063
4107
|
# Required. The project that the agent to export is associated with. Format: `
|
4064
4108
|
# projects/`.
|
@@ -4165,9 +4209,11 @@ module Google
|
|
4165
4209
|
# the import, the imported draft agent will be trained automatically (unless
|
4166
4210
|
# disabled in agent settings). However, once the import is done, training may
|
4167
4211
|
# not be completed yet. Please call TrainAgent and wait for the operation it
|
4168
|
-
# returns in order to train explicitly.
|
4169
|
-
#
|
4170
|
-
#
|
4212
|
+
# returns in order to train explicitly. An operation which tracks when importing
|
4213
|
+
# is complete. It only tracks when the draft agent is updated not when it is
|
4214
|
+
# done training. Note: You should always train an agent prior to sending it
|
4215
|
+
# queries. See the [training documentation](https://cloud.google.com/dialogflow/
|
4216
|
+
# es/docs/training).
|
4171
4217
|
# @param [String] parent
|
4172
4218
|
# Required. The project that the agent to import is associated with. Format: `
|
4173
4219
|
# projects/`.
|
@@ -4206,9 +4252,11 @@ module Google
|
|
4206
4252
|
# are deleted. After the restore, the restored draft agent will be trained
|
4207
4253
|
# automatically (unless disabled in agent settings). However, once the restore
|
4208
4254
|
# is done, training may not be completed yet. Please call TrainAgent and wait
|
4209
|
-
# for the operation it returns in order to train explicitly.
|
4210
|
-
#
|
4211
|
-
#
|
4255
|
+
# for the operation it returns in order to train explicitly. An operation which
|
4256
|
+
# tracks when restoring is complete. It only tracks when the draft agent is
|
4257
|
+
# updated not when it is done training. Note: You should always train an agent
|
4258
|
+
# prior to sending it queries. See the [training documentation](https://cloud.
|
4259
|
+
# google.com/dialogflow/es/docs/training).
|
4212
4260
|
# @param [String] parent
|
4213
4261
|
# Required. The project that the agent to restore is associated with. Format: `
|
4214
4262
|
# projects/`.
|
@@ -4283,7 +4331,9 @@ module Google
|
|
4283
4331
|
execute_or_queue_command(command, &block)
|
4284
4332
|
end
|
4285
4333
|
|
4286
|
-
# Trains the specified agent.
|
4334
|
+
# Trains the specified agent. Note: You should always train an agent prior to
|
4335
|
+
# sending it queries. See the [training documentation](https://cloud.google.com/
|
4336
|
+
# dialogflow/es/docs/training).
|
4287
4337
|
# @param [String] parent
|
4288
4338
|
# Required. The project that the agent to train is associated with. Format: `
|
4289
4339
|
# projects/`.
|
@@ -4356,7 +4406,9 @@ module Google
|
|
4356
4406
|
execute_or_queue_command(command, &block)
|
4357
4407
|
end
|
4358
4408
|
|
4359
|
-
# Deletes entity types in the specified agent.
|
4409
|
+
# Deletes entity types in the specified agent. Note: You should always train an
|
4410
|
+
# agent prior to sending it queries. See the [training documentation](https://
|
4411
|
+
# cloud.google.com/dialogflow/es/docs/training).
|
4360
4412
|
# @param [String] parent
|
4361
4413
|
# Required. The name of the agent to delete all entities types for. Format: `
|
4362
4414
|
# projects//agent`.
|
@@ -4390,7 +4442,9 @@ module Google
|
|
4390
4442
|
execute_or_queue_command(command, &block)
|
4391
4443
|
end
|
4392
4444
|
|
4393
|
-
# Updates/Creates multiple entity types in the specified agent.
|
4445
|
+
# Updates/Creates multiple entity types in the specified agent. Note: You should
|
4446
|
+
# always train an agent prior to sending it queries. See the [training
|
4447
|
+
# documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
4394
4448
|
# @param [String] parent
|
4395
4449
|
# Required. The name of the agent to update or create entity types in. Format: `
|
4396
4450
|
# projects//agent`.
|
@@ -4424,7 +4478,9 @@ module Google
|
|
4424
4478
|
execute_or_queue_command(command, &block)
|
4425
4479
|
end
|
4426
4480
|
|
4427
|
-
# Creates an entity type in the specified agent.
|
4481
|
+
# Creates an entity type in the specified agent. Note: You should always train
|
4482
|
+
# an agent prior to sending it queries. See the [training documentation](https://
|
4483
|
+
# cloud.google.com/dialogflow/es/docs/training).
|
4428
4484
|
# @param [String] parent
|
4429
4485
|
# Required. The agent to create a entity type for. Format: `projects//agent`.
|
4430
4486
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityType] google_cloud_dialogflow_v2_entity_type_object
|
@@ -4463,7 +4519,9 @@ module Google
|
|
4463
4519
|
execute_or_queue_command(command, &block)
|
4464
4520
|
end
|
4465
4521
|
|
4466
|
-
# Deletes the specified entity type.
|
4522
|
+
# Deletes the specified entity type. Note: You should always train an agent
|
4523
|
+
# prior to sending it queries. See the [training documentation](https://cloud.
|
4524
|
+
# google.com/dialogflow/es/docs/training).
|
4467
4525
|
# @param [String] name
|
4468
4526
|
# Required. The name of the entity type to delete. Format: `projects//agent/
|
4469
4527
|
# entityTypes/`.
|
@@ -4573,7 +4631,9 @@ module Google
|
|
4573
4631
|
execute_or_queue_command(command, &block)
|
4574
4632
|
end
|
4575
4633
|
|
4576
|
-
# Updates the specified entity type.
|
4634
|
+
# Updates the specified entity type. Note: You should always train an agent
|
4635
|
+
# prior to sending it queries. See the [training documentation](https://cloud.
|
4636
|
+
# google.com/dialogflow/es/docs/training).
|
4577
4637
|
# @param [String] name
|
4578
4638
|
# The unique identifier of the entity type. Required for EntityTypes.
|
4579
4639
|
# UpdateEntityType and EntityTypes.BatchUpdateEntityTypes methods. Format: `
|
@@ -4617,7 +4677,9 @@ module Google
|
|
4617
4677
|
execute_or_queue_command(command, &block)
|
4618
4678
|
end
|
4619
4679
|
|
4620
|
-
# Creates multiple new entities in the specified entity type.
|
4680
|
+
# Creates multiple new entities in the specified entity type. Note: You should
|
4681
|
+
# always train an agent prior to sending it queries. See the [training
|
4682
|
+
# documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
4621
4683
|
# @param [String] parent
|
4622
4684
|
# Required. The name of the entity type to create entities in. Format: `projects/
|
4623
4685
|
# /agent/entityTypes/`.
|
@@ -4651,7 +4713,9 @@ module Google
|
|
4651
4713
|
execute_or_queue_command(command, &block)
|
4652
4714
|
end
|
4653
4715
|
|
4654
|
-
# Deletes entities in the specified entity type.
|
4716
|
+
# Deletes entities in the specified entity type. Note: You should always train
|
4717
|
+
# an agent prior to sending it queries. See the [training documentation](https://
|
4718
|
+
# cloud.google.com/dialogflow/es/docs/training).
|
4655
4719
|
# @param [String] parent
|
4656
4720
|
# Required. The name of the entity type to delete entries for. Format: `projects/
|
4657
4721
|
# /agent/entityTypes/`.
|
@@ -4687,7 +4751,9 @@ module Google
|
|
4687
4751
|
|
4688
4752
|
# Updates or creates multiple entities in the specified entity type. This method
|
4689
4753
|
# does not affect entities in the entity type that aren't explicitly specified
|
4690
|
-
# in the request.
|
4754
|
+
# in the request. Note: You should always train an agent prior to sending it
|
4755
|
+
# queries. See the [training documentation](https://cloud.google.com/dialogflow/
|
4756
|
+
# es/docs/training).
|
4691
4757
|
# @param [String] parent
|
4692
4758
|
# Required. The name of the entity type to update or create entities in. Format:
|
4693
4759
|
# `projects//agent/entityTypes/`.
|
@@ -4950,6 +5016,56 @@ module Google
|
|
4950
5016
|
execute_or_queue_command(command, &block)
|
4951
5017
|
end
|
4952
5018
|
|
5019
|
+
# Returns the list of all intents in the specified agent.
|
5020
|
+
# @param [String] parent
|
5021
|
+
# Required. The agent to list all intents from. Format: `projects//agent` or `
|
5022
|
+
# projects//locations//agent`. Alternatively, you can specify the environment to
|
5023
|
+
# list intents for. Format: `projects//agent/environments/` or `projects//
|
5024
|
+
# locations//agent/environments/`. Note: training phrases of the intents will
|
5025
|
+
# not be returned for non-draft environment.
|
5026
|
+
# @param [String] intent_view
|
5027
|
+
# Optional. The resource view to apply to the returned intent.
|
5028
|
+
# @param [String] language_code
|
5029
|
+
# Optional. The language used to access language-specific data. If not specified,
|
5030
|
+
# the agent's default language is used. For more information, see [Multilingual
|
5031
|
+
# intent and entity data](https://cloud.google.com/dialogflow/docs/agents-
|
5032
|
+
# multilingual#intent-entity).
|
5033
|
+
# @param [Fixnum] page_size
|
5034
|
+
# Optional. The maximum number of items to return in a single page. By default
|
5035
|
+
# 100 and at most 1000.
|
5036
|
+
# @param [String] page_token
|
5037
|
+
# Optional. The next_page_token value returned from a previous list request.
|
5038
|
+
# @param [String] fields
|
5039
|
+
# Selector specifying which fields to include in a partial response.
|
5040
|
+
# @param [String] quota_user
|
5041
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5042
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5043
|
+
# @param [Google::Apis::RequestOptions] options
|
5044
|
+
# Request-specific options
|
5045
|
+
#
|
5046
|
+
# @yield [result, err] Result & error if block supplied
|
5047
|
+
# @yieldparam result [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListIntentsResponse] parsed result object
|
5048
|
+
# @yieldparam err [StandardError] error object if request failed
|
5049
|
+
#
|
5050
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListIntentsResponse]
|
5051
|
+
#
|
5052
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5053
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5054
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5055
|
+
def list_project_location_agent_environment_intents(parent, intent_view: nil, language_code: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
5056
|
+
command = make_simple_command(:get, 'v2/{+parent}/intents', options)
|
5057
|
+
command.response_representation = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListIntentsResponse::Representation
|
5058
|
+
command.response_class = Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ListIntentsResponse
|
5059
|
+
command.params['parent'] = parent unless parent.nil?
|
5060
|
+
command.query['intentView'] = intent_view unless intent_view.nil?
|
5061
|
+
command.query['languageCode'] = language_code unless language_code.nil?
|
5062
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
5063
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5064
|
+
command.query['fields'] = fields unless fields.nil?
|
5065
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5066
|
+
execute_or_queue_command(command, &block)
|
5067
|
+
end
|
5068
|
+
|
4953
5069
|
# Deletes all active contexts in the specified session.
|
4954
5070
|
# @param [String] parent
|
4955
5071
|
# Required. The name of the session to delete all contexts from. Format: `
|
@@ -5413,7 +5529,9 @@ module Google
|
|
5413
5529
|
execute_or_queue_command(command, &block)
|
5414
5530
|
end
|
5415
5531
|
|
5416
|
-
# Deletes intents in the specified agent.
|
5532
|
+
# Deletes intents in the specified agent. Note: You should always train an agent
|
5533
|
+
# prior to sending it queries. See the [training documentation](https://cloud.
|
5534
|
+
# google.com/dialogflow/es/docs/training).
|
5417
5535
|
# @param [String] parent
|
5418
5536
|
# Required. The name of the agent to delete all entities types for. Format: `
|
5419
5537
|
# projects//agent`.
|
@@ -5447,7 +5565,9 @@ module Google
|
|
5447
5565
|
execute_or_queue_command(command, &block)
|
5448
5566
|
end
|
5449
5567
|
|
5450
|
-
# Updates/Creates multiple intents in the specified agent.
|
5568
|
+
# Updates/Creates multiple intents in the specified agent. Note: You should
|
5569
|
+
# always train an agent prior to sending it queries. See the [training
|
5570
|
+
# documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
5451
5571
|
# @param [String] parent
|
5452
5572
|
# Required. The name of the agent to update or create intents in. Format: `
|
5453
5573
|
# projects//agent`.
|
@@ -5481,7 +5601,9 @@ module Google
|
|
5481
5601
|
execute_or_queue_command(command, &block)
|
5482
5602
|
end
|
5483
5603
|
|
5484
|
-
# Creates an intent in the specified agent.
|
5604
|
+
# Creates an intent in the specified agent. Note: You should always train an
|
5605
|
+
# agent prior to sending it queries. See the [training documentation](https://
|
5606
|
+
# cloud.google.com/dialogflow/es/docs/training).
|
5485
5607
|
# @param [String] parent
|
5486
5608
|
# Required. The agent to create a intent for. Format: `projects//agent`.
|
5487
5609
|
# @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Intent] google_cloud_dialogflow_v2_intent_object
|
@@ -5523,7 +5645,9 @@ module Google
|
|
5523
5645
|
execute_or_queue_command(command, &block)
|
5524
5646
|
end
|
5525
5647
|
|
5526
|
-
# Deletes the specified intent and its direct or indirect followup intents.
|
5648
|
+
# Deletes the specified intent and its direct or indirect followup intents. Note:
|
5649
|
+
# You should always train an agent prior to sending it queries. See the [
|
5650
|
+
# training documentation](https://cloud.google.com/dialogflow/es/docs/training).
|
5527
5651
|
# @param [String] name
|
5528
5652
|
# Required. The name of the intent to delete. If this intent has direct or
|
5529
5653
|
# indirect followup intents, we also delete them. Format: `projects//agent/
|
@@ -5596,7 +5720,11 @@ module Google
|
|
5596
5720
|
|
5597
5721
|
# Returns the list of all intents in the specified agent.
|
5598
5722
|
# @param [String] parent
|
5599
|
-
# Required. The agent to list all intents from. Format: `projects//agent
|
5723
|
+
# Required. The agent to list all intents from. Format: `projects//agent` or `
|
5724
|
+
# projects//locations//agent`. Alternatively, you can specify the environment to
|
5725
|
+
# list intents for. Format: `projects//agent/environments/` or `projects//
|
5726
|
+
# locations//agent/environments/`. Note: training phrases of the intents will
|
5727
|
+
# not be returned for non-draft environment.
|
5600
5728
|
# @param [String] intent_view
|
5601
5729
|
# Optional. The resource view to apply to the returned intent.
|
5602
5730
|
# @param [String] language_code
|
@@ -5640,7 +5768,9 @@ module Google
|
|
5640
5768
|
execute_or_queue_command(command, &block)
|
5641
5769
|
end
|
5642
5770
|
|
5643
|
-
# Updates the specified intent.
|
5771
|
+
# Updates the specified intent. Note: You should always train an agent prior to
|
5772
|
+
# sending it queries. See the [training documentation](https://cloud.google.com/
|
5773
|
+
# dialogflow/es/docs/training).
|
5644
5774
|
# @param [String] name
|
5645
5775
|
# Optional. The unique identifier of this intent. Required for Intents.
|
5646
5776
|
# UpdateIntent and Intents.BatchUpdateIntents methods. Format: `projects//agent/
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-dialogflow_v2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.16.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-06-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.3'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.3'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Dialogflow API V2. Simple REST clients
|
28
34
|
are Ruby client libraries that provide access to Google services via their HTTP
|
29
35
|
REST API endpoints. These libraries are generated and updated automatically based
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dialogflow_v2/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-dialogflow_v2/v0.16.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-dialogflow_v2
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|