google-apis-dialogflow_v2beta1 0.10.0 → 0.15.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: 5d56107aa44b51b3cf13c224d967cedcfbc0da8ce1620457b55e2531304cf77a
4
- data.tar.gz: d6401cc5ec6efa39614a7e5a70b8b07bb1ba3ed22f3dff0e17ea94b8a32a3273
3
+ metadata.gz: 3178d0bcd5c1089320125249d38c55589fef0009851560afb31f372780d319bc
4
+ data.tar.gz: f86d0947f6787be1acfdbc1780052ea353cef8f01e7fc0a5013e52ff48eccb1d
5
5
  SHA512:
6
- metadata.gz: dc944915c38983159f221f265a52b4321990efe0b858b8a75593bf971a5bc5f25ed576612216b4e6210ea408d20945677cbcde5fb23df0cad338625e99279b62
7
- data.tar.gz: bd7da53229f3b4ec970d32bdfb25d00b25c5eaa0c534e33fd826606c2e6a230e1efb969edefc060a6cae1602d72e3b1a5a292363f23251f472234ab4d1e1b0f0
6
+ metadata.gz: fb743e2b071d6a37d95ab8f54329ba9dc41ce26e3421ce3a30bc0e55c462893e15ab4349386c3458572985915a82f8bf127330094fe623b6ebba723cad86f199
7
+ data.tar.gz: 0e88bdd3c3d60a18ad8bbd4ce7d2a9b16e8c01ba4f6a0f494bbb69e3ce19f18308b59ec8e211587ea0778fde24a9cf22c5063cb735b7dd77ae6d1ba66153313a
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-dialogflow_v2beta1
2
2
 
3
+ ### v0.15.0 (2021-06-16)
4
+
5
+ * Regenerated from discovery document revision 20210611
6
+
7
+ ### v0.14.0 (2021-06-03)
8
+
9
+ * Regenerated from discovery document revision 20210601
10
+ * Regenerated using generator version 0.3.0
11
+
12
+ ### v0.13.0 (2021-05-26)
13
+
14
+ * Regenerated from discovery document revision 20210524
15
+
16
+ ### v0.12.0 (2021-05-19)
17
+
18
+ * Regenerated from discovery document revision 20210517
19
+
20
+ ### v0.11.0 (2021-05-06)
21
+
22
+ * Regenerated from discovery document revision 20210503
23
+
3
24
  ### v0.10.0 (2021-04-01)
4
25
 
5
26
  * Regenerated from discovery document revision 20210329
@@ -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)
@@ -415,6 +461,33 @@ module Google
415
461
  end
416
462
  end
417
463
 
464
+ # The response message for Flows.ExportFlow.
465
+ class GoogleCloudDialogflowCxV3ExportFlowResponse
466
+ include Google::Apis::Core::Hashable
467
+
468
+ # Uncompressed raw byte content for flow.
469
+ # Corresponds to the JSON property `flowContent`
470
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
471
+ # @return [String]
472
+ attr_accessor :flow_content
473
+
474
+ # The URI to a file containing the exported flow. This field is populated only
475
+ # if `flow_uri` is specified in ExportFlowRequest.
476
+ # Corresponds to the JSON property `flowUri`
477
+ # @return [String]
478
+ attr_accessor :flow_uri
479
+
480
+ def initialize(**args)
481
+ update!(**args)
482
+ end
483
+
484
+ # Update properties of this object
485
+ def update!(**args)
486
+ @flow_content = args[:flow_content] if args.key?(:flow_content)
487
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
488
+ end
489
+ end
490
+
418
491
  # Metadata returned for the TestCases.ExportTestCases long running operation.
419
492
  class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
420
493
  include Google::Apis::Core::Hashable
@@ -615,6 +688,18 @@ module Google
615
688
  # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3ResponseMessage>]
616
689
  attr_accessor :messages
617
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
+
618
703
  # Set parameter values before executing the webhook.
619
704
  # Corresponds to the JSON property `setParameterActions`
620
705
  # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3FulfillmentSetParameterAction>]
@@ -639,6 +724,7 @@ module Google
639
724
  def update!(**args)
640
725
  @conditional_cases = args[:conditional_cases] if args.key?(:conditional_cases)
641
726
  @messages = args[:messages] if args.key?(:messages)
727
+ @return_partial_responses = args[:return_partial_responses] if args.key?(:return_partial_responses)
642
728
  @set_parameter_actions = args[:set_parameter_actions] if args.key?(:set_parameter_actions)
643
729
  @tag = args[:tag] if args.key?(:tag)
644
730
  @webhook = args[:webhook] if args.key?(:webhook)
@@ -813,6 +899,26 @@ module Google
813
899
  end
814
900
  end
815
901
 
902
+ # The response message for Flows.ImportFlow.
903
+ class GoogleCloudDialogflowCxV3ImportFlowResponse
904
+ include Google::Apis::Core::Hashable
905
+
906
+ # The unique identifier of the new flow. Format: `projects//locations//agents//
907
+ # flows/`.
908
+ # Corresponds to the JSON property `flow`
909
+ # @return [String]
910
+ attr_accessor :flow
911
+
912
+ def initialize(**args)
913
+ update!(**args)
914
+ end
915
+
916
+ # Update properties of this object
917
+ def update!(**args)
918
+ @flow = args[:flow] if args.key?(:flow)
919
+ end
920
+ end
921
+
816
922
  # Metadata returned for the TestCases.ImportTestCases long running operation.
817
923
  class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
818
924
  include Google::Apis::Core::Hashable
@@ -936,8 +1042,8 @@ module Google
936
1042
  class GoogleCloudDialogflowCxV3Intent
937
1043
  include Google::Apis::Core::Hashable
938
1044
 
939
- # Optional. Human readable description for better understanding an intent like
940
- # its scope, content, result etc. Maximum character limit: 140 characters.
1045
+ # Human readable description for better understanding an intent like its scope,
1046
+ # content, result etc. Maximum character limit: 140 characters.
941
1047
  # Corresponds to the JSON property `description`
942
1048
  # @return [String]
943
1049
  attr_accessor :description
@@ -957,14 +1063,14 @@ module Google
957
1063
  attr_accessor :is_fallback
958
1064
  alias_method :is_fallback?, :is_fallback
959
1065
 
960
- # Optional. The key/value metadata to label an intent. Labels can contain
961
- # lowercase letters, digits and the symbols '-' and '_'. International
962
- # characters are allowed, including letters from unicase alphabets. Keys must
963
- # start with a letter. Keys and values can be no longer than 63 characters and
964
- # no more than 128 bytes. Prefix "sys." is reserved for Dialogflow defined
965
- # labels. Currently allowed Dialogflow defined labels include: * sys.head * sys.
966
- # contextual The above labels do not require value. "sys.head" means the intent
967
- # is a head intent. "sys.contextual" means the intent is a contextual intent.
1066
+ # The key/value metadata to label an intent. Labels can contain lowercase
1067
+ # letters, digits and the symbols '-' and '_'. International characters are
1068
+ # allowed, including letters from unicase alphabets. Keys must start with a
1069
+ # letter. Keys and values can be no longer than 63 characters and no more than
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
1073
+ # intent. "sys.contextual" means the intent is a contextual intent.
968
1074
  # Corresponds to the JSON property `labels`
969
1075
  # @return [Hash<String,String>]
970
1076
  attr_accessor :labels
@@ -1723,6 +1829,45 @@ module Google
1723
1829
  end
1724
1830
  end
1725
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::DialogflowV2beta1::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::DialogflowV2beta1::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
+
1726
1871
  # Metadata returned for the TestCases.RunTestCase long running operation.
1727
1872
  class GoogleCloudDialogflowCxV3RunTestCaseMetadata
1728
1873
  include Google::Apis::Core::Hashable
@@ -2149,6 +2294,11 @@ module Google
2149
2294
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo]
2150
2295
  attr_accessor :intent_info
2151
2296
 
2297
+ # The language code specified in the original request.
2298
+ # Corresponds to the JSON property `languageCode`
2299
+ # @return [String]
2300
+ attr_accessor :language_code
2301
+
2152
2302
  # The list of rich message responses to present to the user. Webhook can choose
2153
2303
  # to append or replace this list in WebhookResponse.fulfillment_response;
2154
2304
  # Corresponds to the JSON property `messages`
@@ -2208,6 +2358,7 @@ module Google
2208
2358
  @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
2209
2359
  @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
2210
2360
  @intent_info = args[:intent_info] if args.key?(:intent_info)
2361
+ @language_code = args[:language_code] if args.key?(:language_code)
2211
2362
  @messages = args[:messages] if args.key?(:messages)
2212
2363
  @page_info = args[:page_info] if args.key?(:page_info)
2213
2364
  @payload = args[:payload] if args.key?(:payload)
@@ -2479,6 +2630,45 @@ module Google
2479
2630
  end
2480
2631
  end
2481
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
+
2482
2672
  # One interaction between a human and virtual agent. The human provides some
2483
2673
  # input and the virtual agent provides a response.
2484
2674
  class GoogleCloudDialogflowCxV3beta1ConversationTurn
@@ -2509,6 +2699,12 @@ module Google
2509
2699
  class GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
2510
2700
  include Google::Apis::Core::Hashable
2511
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
+
2512
2708
  # Parameters that need to be injected into the conversation during intent
2513
2709
  # detection.
2514
2710
  # Corresponds to the JSON property `injectedParameters`
@@ -2536,6 +2732,7 @@ module Google
2536
2732
 
2537
2733
  # Update properties of this object
2538
2734
  def update!(**args)
2735
+ @enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
2539
2736
  @injected_parameters = args[:injected_parameters] if args.key?(:injected_parameters)
2540
2737
  @input = args[:input] if args.key?(:input)
2541
2738
  @is_webhook_enabled = args[:is_webhook_enabled] if args.key?(:is_webhook_enabled)
@@ -2802,6 +2999,33 @@ module Google
2802
2999
  end
2803
3000
  end
2804
3001
 
3002
+ # The response message for Flows.ExportFlow.
3003
+ class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
3004
+ include Google::Apis::Core::Hashable
3005
+
3006
+ # Uncompressed raw byte content for flow.
3007
+ # Corresponds to the JSON property `flowContent`
3008
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
3009
+ # @return [String]
3010
+ attr_accessor :flow_content
3011
+
3012
+ # The URI to a file containing the exported flow. This field is populated only
3013
+ # if `flow_uri` is specified in ExportFlowRequest.
3014
+ # Corresponds to the JSON property `flowUri`
3015
+ # @return [String]
3016
+ attr_accessor :flow_uri
3017
+
3018
+ def initialize(**args)
3019
+ update!(**args)
3020
+ end
3021
+
3022
+ # Update properties of this object
3023
+ def update!(**args)
3024
+ @flow_content = args[:flow_content] if args.key?(:flow_content)
3025
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
3026
+ end
3027
+ end
3028
+
2805
3029
  # Metadata returned for the TestCases.ExportTestCases long running operation.
2806
3030
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
2807
3031
  include Google::Apis::Core::Hashable
@@ -3002,6 +3226,18 @@ module Google
3002
3226
  # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ResponseMessage>]
3003
3227
  attr_accessor :messages
3004
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
+
3005
3241
  # Set parameter values before executing the webhook.
3006
3242
  # Corresponds to the JSON property `setParameterActions`
3007
3243
  # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1FulfillmentSetParameterAction>]
@@ -3026,6 +3262,7 @@ module Google
3026
3262
  def update!(**args)
3027
3263
  @conditional_cases = args[:conditional_cases] if args.key?(:conditional_cases)
3028
3264
  @messages = args[:messages] if args.key?(:messages)
3265
+ @return_partial_responses = args[:return_partial_responses] if args.key?(:return_partial_responses)
3029
3266
  @set_parameter_actions = args[:set_parameter_actions] if args.key?(:set_parameter_actions)
3030
3267
  @tag = args[:tag] if args.key?(:tag)
3031
3268
  @webhook = args[:webhook] if args.key?(:webhook)
@@ -3200,6 +3437,26 @@ module Google
3200
3437
  end
3201
3438
  end
3202
3439
 
3440
+ # The response message for Flows.ImportFlow.
3441
+ class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
3442
+ include Google::Apis::Core::Hashable
3443
+
3444
+ # The unique identifier of the new flow. Format: `projects//locations//agents//
3445
+ # flows/`.
3446
+ # Corresponds to the JSON property `flow`
3447
+ # @return [String]
3448
+ attr_accessor :flow
3449
+
3450
+ def initialize(**args)
3451
+ update!(**args)
3452
+ end
3453
+
3454
+ # Update properties of this object
3455
+ def update!(**args)
3456
+ @flow = args[:flow] if args.key?(:flow)
3457
+ end
3458
+ end
3459
+
3203
3460
  # Metadata returned for the TestCases.ImportTestCases long running operation.
3204
3461
  class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
3205
3462
  include Google::Apis::Core::Hashable
@@ -3323,8 +3580,8 @@ module Google
3323
3580
  class GoogleCloudDialogflowCxV3beta1Intent
3324
3581
  include Google::Apis::Core::Hashable
3325
3582
 
3326
- # Optional. Human readable description for better understanding an intent like
3327
- # its scope, content, result etc. Maximum character limit: 140 characters.
3583
+ # Human readable description for better understanding an intent like its scope,
3584
+ # content, result etc. Maximum character limit: 140 characters.
3328
3585
  # Corresponds to the JSON property `description`
3329
3586
  # @return [String]
3330
3587
  attr_accessor :description
@@ -3344,14 +3601,14 @@ module Google
3344
3601
  attr_accessor :is_fallback
3345
3602
  alias_method :is_fallback?, :is_fallback
3346
3603
 
3347
- # Optional. The key/value metadata to label an intent. Labels can contain
3348
- # lowercase letters, digits and the symbols '-' and '_'. International
3349
- # characters are allowed, including letters from unicase alphabets. Keys must
3350
- # start with a letter. Keys and values can be no longer than 63 characters and
3351
- # no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined
3352
- # labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-
3353
- # contextual The above labels do not require value. "sys-head" means the intent
3354
- # is a head intent. "sys-contextual" means the intent is a contextual intent.
3604
+ # The key/value metadata to label an intent. Labels can contain lowercase
3605
+ # letters, digits and the symbols '-' and '_'. International characters are
3606
+ # allowed, including letters from unicase alphabets. Keys must start with a
3607
+ # letter. Keys and values can be no longer than 63 characters and no more than
3608
+ # 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently
3609
+ # allowed Dialogflow defined labels include: * sys-head * sys-contextual The
3610
+ # above labels do not require value. "sys-head" means the intent is a head
3611
+ # intent. "sys-contextual" means the intent is a contextual intent.
3355
3612
  # Corresponds to the JSON property `labels`
3356
3613
  # @return [Hash<String,String>]
3357
3614
  attr_accessor :labels
@@ -4110,6 +4367,45 @@ module Google
4110
4367
  end
4111
4368
  end
4112
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::DialogflowV2beta1::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::DialogflowV2beta1::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
+
4113
4409
  # Metadata returned for the TestCases.RunTestCase long running operation.
4114
4410
  class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
4115
4411
  include Google::Apis::Core::Hashable
@@ -4536,6 +4832,11 @@ module Google
4536
4832
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]
4537
4833
  attr_accessor :intent_info
4538
4834
 
4835
+ # The language code specified in the original request.
4836
+ # Corresponds to the JSON property `languageCode`
4837
+ # @return [String]
4838
+ attr_accessor :language_code
4839
+
4539
4840
  # The list of rich message responses to present to the user. Webhook can choose
4540
4841
  # to append or replace this list in WebhookResponse.fulfillment_response;
4541
4842
  # Corresponds to the JSON property `messages`
@@ -4595,6 +4896,7 @@ module Google
4595
4896
  @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
4596
4897
  @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
4597
4898
  @intent_info = args[:intent_info] if args.key?(:intent_info)
4899
+ @language_code = args[:language_code] if args.key?(:language_code)
4598
4900
  @messages = args[:messages] if args.key?(:messages)
4599
4901
  @page_info = args[:page_info] if args.key?(:page_info)
4600
4902
  @payload = args[:payload] if args.key?(:payload)
@@ -6693,6 +6995,13 @@ module Google
6693
6995
  attr_accessor :all_required_params_present
6694
6996
  alias_method :all_required_params_present?, :all_required_params_present
6695
6997
 
6998
+ # Indicates whether the conversational query triggers a cancellation for slot
6999
+ # filling.
7000
+ # Corresponds to the JSON property `cancelsSlotFilling`
7001
+ # @return [Boolean]
7002
+ attr_accessor :cancels_slot_filling
7003
+ alias_method :cancels_slot_filling?, :cancels_slot_filling
7004
+
6696
7005
  # Free-form diagnostic information for the associated detect intent request. The
6697
7006
  # fields of this data can change without notice, so you should not write code
6698
7007
  # that depends on its structure. The data may contain: - webhook call latency -
@@ -6813,6 +7122,7 @@ module Google
6813
7122
  def update!(**args)
6814
7123
  @action = args[:action] if args.key?(:action)
6815
7124
  @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
7125
+ @cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
6816
7126
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
6817
7127
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
6818
7128
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
@@ -7707,8 +8017,21 @@ module Google
7707
8017
  class GoogleCloudDialogflowV2beta1AutomatedAgentReply
7708
8018
  include Google::Apis::Core::Hashable
7709
8019
 
8020
+ # Indicates whether the partial automated agent reply is interruptible when a
8021
+ # later reply message arrives. e.g. if the agent specified some music as partial
8022
+ # response, it can be cancelled.
8023
+ # Corresponds to the JSON property `allowCancellation`
8024
+ # @return [Boolean]
8025
+ attr_accessor :allow_cancellation
8026
+ alias_method :allow_cancellation?, :allow_cancellation
8027
+
8028
+ # AutomatedAgentReply type.
8029
+ # Corresponds to the JSON property `automatedAgentReplyType`
8030
+ # @return [String]
8031
+ attr_accessor :automated_agent_reply_type
8032
+
7710
8033
  # The collection of current Dialogflow CX agent session parameters at the time
7711
- # of this response.
8034
+ # of this response. Deprecated: Use `parameters` instead.
7712
8035
  # Corresponds to the JSON property `cxSessionParameters`
7713
8036
  # @return [Hash<String,Object>]
7714
8037
  attr_accessor :cx_session_parameters
@@ -7730,6 +8053,20 @@ module Google
7730
8053
  # @return [String]
7731
8054
  attr_accessor :intent
7732
8055
 
8056
+ # The confidence of the match. Values range from 0.0 (completely uncertain) to 1.
8057
+ # 0 (completely certain). This value is for informational purpose only and is
8058
+ # only used to help match the best intent within the classification threshold.
8059
+ # This value may change for the same end-user expression at any time due to a
8060
+ # model retraining or change in implementation.
8061
+ # Corresponds to the JSON property `matchConfidence`
8062
+ # @return [Float]
8063
+ attr_accessor :match_confidence
8064
+
8065
+ # The collection of current parameters at the time of this response.
8066
+ # Corresponds to the JSON property `parameters`
8067
+ # @return [Hash<String,Object>]
8068
+ attr_accessor :parameters
8069
+
7733
8070
  # Response messages from the automated agent.
7734
8071
  # Corresponds to the JSON property `responseMessages`
7735
8072
  # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessage>]
@@ -7741,10 +8078,14 @@ module Google
7741
8078
 
7742
8079
  # Update properties of this object
7743
8080
  def update!(**args)
8081
+ @allow_cancellation = args[:allow_cancellation] if args.key?(:allow_cancellation)
8082
+ @automated_agent_reply_type = args[:automated_agent_reply_type] if args.key?(:automated_agent_reply_type)
7744
8083
  @cx_session_parameters = args[:cx_session_parameters] if args.key?(:cx_session_parameters)
7745
8084
  @detect_intent_response = args[:detect_intent_response] if args.key?(:detect_intent_response)
7746
8085
  @event = args[:event] if args.key?(:event)
7747
8086
  @intent = args[:intent] if args.key?(:intent)
8087
+ @match_confidence = args[:match_confidence] if args.key?(:match_confidence)
8088
+ @parameters = args[:parameters] if args.key?(:parameters)
7748
8089
  @response_messages = args[:response_messages] if args.key?(:response_messages)
7749
8090
  end
7750
8091
  end
@@ -8849,6 +9190,18 @@ module Google
8849
9190
  # @return [String]
8850
9191
  attr_accessor :description
8851
9192
 
9193
+ # By default, your agent responds to a matched intent with a static response. As
9194
+ # an alternative, you can provide a more dynamic response by using fulfillment.
9195
+ # When you enable fulfillment for an intent, Dialogflow responds to that intent
9196
+ # by calling a service that you define. For example, if an end-user wants to
9197
+ # schedule a haircut on Friday, your service can check your database and respond
9198
+ # to the end-user with availability information for Friday. For more information,
9199
+ # see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/
9200
+ # fulfillment-overview).
9201
+ # Corresponds to the JSON property `fulfillment`
9202
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment]
9203
+ attr_accessor :fulfillment
9204
+
8852
9205
  # Output only. The unique identifier of this agent environment. Supported
8853
9206
  # formats: - `projects//agent/environments/` - `projects//locations//agent/
8854
9207
  # environments/`
@@ -8862,6 +9215,11 @@ module Google
8862
9215
  # @return [String]
8863
9216
  attr_accessor :state
8864
9217
 
9218
+ # Instructs the speech synthesizer on how to generate the output audio content.
9219
+ # Corresponds to the JSON property `textToSpeechSettings`
9220
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings]
9221
+ attr_accessor :text_to_speech_settings
9222
+
8865
9223
  # Output only. The last update time of this environment. This field is read-only,
8866
9224
  # i.e., it cannot be set by create and update methods.
8867
9225
  # Corresponds to the JSON property `updateTime`
@@ -8876,12 +9234,80 @@ module Google
8876
9234
  def update!(**args)
8877
9235
  @agent_version = args[:agent_version] if args.key?(:agent_version)
8878
9236
  @description = args[:description] if args.key?(:description)
9237
+ @fulfillment = args[:fulfillment] if args.key?(:fulfillment)
8879
9238
  @name = args[:name] if args.key?(:name)
8880
9239
  @state = args[:state] if args.key?(:state)
9240
+ @text_to_speech_settings = args[:text_to_speech_settings] if args.key?(:text_to_speech_settings)
8881
9241
  @update_time = args[:update_time] if args.key?(:update_time)
8882
9242
  end
8883
9243
  end
8884
9244
 
9245
+ # The response message for Environments.GetEnvironmentHistory.
9246
+ class GoogleCloudDialogflowV2beta1EnvironmentHistory
9247
+ include Google::Apis::Core::Hashable
9248
+
9249
+ # Output only. The list of agent environments. There will be a maximum number of
9250
+ # items returned based on the page_size field in the request.
9251
+ # Corresponds to the JSON property `entries`
9252
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry>]
9253
+ attr_accessor :entries
9254
+
9255
+ # Output only. Token to retrieve the next page of results, or empty if there are
9256
+ # no more results in the list.
9257
+ # Corresponds to the JSON property `nextPageToken`
9258
+ # @return [String]
9259
+ attr_accessor :next_page_token
9260
+
9261
+ # Output only. The name of the environment this history is for. Supported
9262
+ # formats: - `projects//agent/environments/` - `projects//locations//agent/
9263
+ # environments/`
9264
+ # Corresponds to the JSON property `parent`
9265
+ # @return [String]
9266
+ attr_accessor :parent
9267
+
9268
+ def initialize(**args)
9269
+ update!(**args)
9270
+ end
9271
+
9272
+ # Update properties of this object
9273
+ def update!(**args)
9274
+ @entries = args[:entries] if args.key?(:entries)
9275
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
9276
+ @parent = args[:parent] if args.key?(:parent)
9277
+ end
9278
+ end
9279
+
9280
+ # Represents an environment history entry.
9281
+ class GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
9282
+ include Google::Apis::Core::Hashable
9283
+
9284
+ # The agent version loaded into this environment history entry.
9285
+ # Corresponds to the JSON property `agentVersion`
9286
+ # @return [String]
9287
+ attr_accessor :agent_version
9288
+
9289
+ # The creation time of this environment history entry.
9290
+ # Corresponds to the JSON property `createTime`
9291
+ # @return [String]
9292
+ attr_accessor :create_time
9293
+
9294
+ # The developer-provided description for this environment history entry.
9295
+ # Corresponds to the JSON property `description`
9296
+ # @return [String]
9297
+ attr_accessor :description
9298
+
9299
+ def initialize(**args)
9300
+ update!(**args)
9301
+ end
9302
+
9303
+ # Update properties of this object
9304
+ def update!(**args)
9305
+ @agent_version = args[:agent_version] if args.key?(:agent_version)
9306
+ @create_time = args[:create_time] if args.key?(:create_time)
9307
+ @description = args[:description] if args.key?(:description)
9308
+ end
9309
+ end
9310
+
8885
9311
  # Events allow for matching intents by event name instead of the natural
8886
9312
  # language input. For instance, input `` can trigger a personalized welcome
8887
9313
  # response. The parameter `name` may be used by the agent in the response: `"
@@ -9114,8 +9540,9 @@ module Google
9114
9540
  class GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
9115
9541
  include Google::Apis::Core::Hashable
9116
9542
 
9117
- # Indicates if generic web service is created through Cloud Functions
9118
- # integration. Defaults to false.
9543
+ # Optional. Indicates if generic web service is created through Cloud Functions
9544
+ # integration. Defaults to false. is_cloud_function is deprecated. Cloud
9545
+ # functions can be configured by its uri as a regular web service now.
9119
9546
  # Corresponds to the JSON property `isCloudFunction`
9120
9547
  # @return [Boolean]
9121
9548
  attr_accessor :is_cloud_function
@@ -9240,8 +9667,7 @@ module Google
9240
9667
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig
9241
9668
  include Google::Apis::Core::Hashable
9242
9669
 
9243
- # Required. Conversation model resource name. Format: `projects//
9244
- # conversationModels/`.
9670
+ # Conversation model resource name. Format: `projects//conversationModels/`.
9245
9671
  # Corresponds to the JSON property `model`
9246
9672
  # @return [String]
9247
9673
  attr_accessor :model
@@ -12140,6 +12566,33 @@ module Google
12140
12566
  end
12141
12567
  end
12142
12568
 
12569
+ # The response message for Versions.ListVersions.
12570
+ class GoogleCloudDialogflowV2beta1ListVersionsResponse
12571
+ include Google::Apis::Core::Hashable
12572
+
12573
+ # Token to retrieve the next page of results, or empty if there are no more
12574
+ # results in the list.
12575
+ # Corresponds to the JSON property `nextPageToken`
12576
+ # @return [String]
12577
+ attr_accessor :next_page_token
12578
+
12579
+ # The list of agent versions. There will be a maximum number of items returned
12580
+ # based on the page_size field in the request.
12581
+ # Corresponds to the JSON property `versions`
12582
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version>]
12583
+ attr_accessor :versions
12584
+
12585
+ def initialize(**args)
12586
+ update!(**args)
12587
+ end
12588
+
12589
+ # Update properties of this object
12590
+ def update!(**args)
12591
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
12592
+ @versions = args[:versions] if args.key?(:versions)
12593
+ end
12594
+ end
12595
+
12143
12596
  # Defines logging behavior for conversation lifecycle events.
12144
12597
  class GoogleCloudDialogflowV2beta1LoggingConfig
12145
12598
  include Google::Apis::Core::Hashable
@@ -12500,8 +12953,8 @@ module Google
12500
12953
 
12501
12954
  # An object that represents a latitude/longitude pair. This is expressed as a
12502
12955
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
12503
- # specified otherwise, this must conform to the WGS84 standard. Values must be
12504
- # within normalized ranges.
12956
+ # specified otherwise, this object must conform to the WGS84 standard. Values
12957
+ # must be within normalized ranges.
12505
12958
  # Corresponds to the JSON property `geoLocation`
12506
12959
  # @return [Google::Apis::DialogflowV2beta1::GoogleTypeLatLng]
12507
12960
  attr_accessor :geo_location
@@ -12604,6 +13057,13 @@ module Google
12604
13057
  attr_accessor :all_required_params_present
12605
13058
  alias_method :all_required_params_present?, :all_required_params_present
12606
13059
 
13060
+ # Indicates whether the conversational query triggers a cancellation for slot
13061
+ # filling.
13062
+ # Corresponds to the JSON property `cancelsSlotFilling`
13063
+ # @return [Boolean]
13064
+ attr_accessor :cancels_slot_filling
13065
+ alias_method :cancels_slot_filling?, :cancels_slot_filling
13066
+
12607
13067
  # Free-form diagnostic information for the associated detect intent request. The
12608
13068
  # fields of this data can change without notice, so you should not write code
12609
13069
  # that depends on its structure. The data may contain: - webhook call latency -
@@ -12729,6 +13189,7 @@ module Google
12729
13189
  def update!(**args)
12730
13190
  @action = args[:action] if args.key?(:action)
12731
13191
  @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
13192
+ @cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
12732
13193
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
12733
13194
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
12734
13195
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
@@ -13677,6 +14138,51 @@ module Google
13677
14138
  end
13678
14139
  end
13679
14140
 
14141
+ # Instructs the speech synthesizer on how to generate the output audio content.
14142
+ class GoogleCloudDialogflowV2beta1TextToSpeechSettings
14143
+ include Google::Apis::Core::Hashable
14144
+
14145
+ # Optional. Indicates whether text to speech is enabled. Even when this field is
14146
+ # false, other settings in this proto are still retained.
14147
+ # Corresponds to the JSON property `enableTextToSpeech`
14148
+ # @return [Boolean]
14149
+ attr_accessor :enable_text_to_speech
14150
+ alias_method :enable_text_to_speech?, :enable_text_to_speech
14151
+
14152
+ # Required. Audio encoding of the synthesized audio content.
14153
+ # Corresponds to the JSON property `outputAudioEncoding`
14154
+ # @return [String]
14155
+ attr_accessor :output_audio_encoding
14156
+
14157
+ # Optional. The synthesis sample rate (in hertz) for this audio. If not provided,
14158
+ # then the synthesizer will use the default sample rate based on the audio
14159
+ # encoding. If this is different from the voice's natural sample rate, then the
14160
+ # synthesizer will honor this request by converting to the desired sample rate (
14161
+ # which might result in worse audio quality).
14162
+ # Corresponds to the JSON property `sampleRateHertz`
14163
+ # @return [Fixnum]
14164
+ attr_accessor :sample_rate_hertz
14165
+
14166
+ # Optional. Configuration of how speech should be synthesized, mapping from
14167
+ # language (https://cloud.google.com/dialogflow/docs/reference/language) to
14168
+ # SynthesizeSpeechConfig.
14169
+ # Corresponds to the JSON property `synthesizeSpeechConfigs`
14170
+ # @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig>]
14171
+ attr_accessor :synthesize_speech_configs
14172
+
14173
+ def initialize(**args)
14174
+ update!(**args)
14175
+ end
14176
+
14177
+ # Update properties of this object
14178
+ def update!(**args)
14179
+ @enable_text_to_speech = args[:enable_text_to_speech] if args.key?(:enable_text_to_speech)
14180
+ @output_audio_encoding = args[:output_audio_encoding] if args.key?(:output_audio_encoding)
14181
+ @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
14182
+ @synthesize_speech_configs = args[:synthesize_speech_configs] if args.key?(:synthesize_speech_configs)
14183
+ end
14184
+ end
14185
+
13680
14186
  # The request message for Agents.TrainAgent.
13681
14187
  class GoogleCloudDialogflowV2beta1TrainAgentRequest
13682
14188
  include Google::Apis::Core::Hashable
@@ -13746,6 +14252,61 @@ module Google
13746
14252
  end
13747
14253
  end
13748
14254
 
14255
+ # You can create multiple versions of your agent and publish them to separate
14256
+ # environments. When you edit an agent, you are editing the draft agent. At any
14257
+ # point, you can save the draft agent as an agent version, which is an immutable
14258
+ # snapshot of your agent. When you save the draft agent, it is published to the
14259
+ # default environment. When you create agent versions, you can publish them to
14260
+ # custom environments. You can create a variety of custom environments for: -
14261
+ # testing - development - production - etc. For more information, see the [
14262
+ # versions and environments guide](https://cloud.google.com/dialogflow/docs/
14263
+ # agents-versions).
14264
+ class GoogleCloudDialogflowV2beta1Version
14265
+ include Google::Apis::Core::Hashable
14266
+
14267
+ # Output only. The creation time of this version. This field is read-only, i.e.,
14268
+ # it cannot be set by create and update methods.
14269
+ # Corresponds to the JSON property `createTime`
14270
+ # @return [String]
14271
+ attr_accessor :create_time
14272
+
14273
+ # Optional. The developer-provided description of this version.
14274
+ # Corresponds to the JSON property `description`
14275
+ # @return [String]
14276
+ attr_accessor :description
14277
+
14278
+ # Output only. The unique identifier of this agent version. Supported formats: -
14279
+ # `projects//agent/versions/` - `projects//locations//agent/versions/`
14280
+ # Corresponds to the JSON property `name`
14281
+ # @return [String]
14282
+ attr_accessor :name
14283
+
14284
+ # Output only. The status of this version. This field is read-only and cannot be
14285
+ # set by create and update methods.
14286
+ # Corresponds to the JSON property `status`
14287
+ # @return [String]
14288
+ attr_accessor :status
14289
+
14290
+ # Output only. The sequential number of this version. This field is read-only
14291
+ # which means it cannot be set by create and update methods.
14292
+ # Corresponds to the JSON property `versionNumber`
14293
+ # @return [Fixnum]
14294
+ attr_accessor :version_number
14295
+
14296
+ def initialize(**args)
14297
+ update!(**args)
14298
+ end
14299
+
14300
+ # Update properties of this object
14301
+ def update!(**args)
14302
+ @create_time = args[:create_time] if args.key?(:create_time)
14303
+ @description = args[:description] if args.key?(:description)
14304
+ @name = args[:name] if args.key?(:name)
14305
+ @status = args[:status] if args.key?(:status)
14306
+ @version_number = args[:version_number] if args.key?(:version_number)
14307
+ end
14308
+ end
14309
+
13749
14310
  # Description of which voice to use for speech synthesis.
13750
14311
  class GoogleCloudDialogflowV2beta1VoiceSelectionParams
13751
14312
  include Google::Apis::Core::Hashable
@@ -14208,8 +14769,8 @@ module Google
14208
14769
 
14209
14770
  # An object that represents a latitude/longitude pair. This is expressed as a
14210
14771
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
14211
- # specified otherwise, this must conform to the WGS84 standard. Values must be
14212
- # within normalized ranges.
14772
+ # specified otherwise, this object must conform to the WGS84 standard. Values
14773
+ # must be within normalized ranges.
14213
14774
  class GoogleTypeLatLng
14214
14775
  include Google::Apis::Core::Hashable
14215
14776