google-apis-dialogflow_v2 0.9.0 → 0.14.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a7e5b6301965f2e5179e4520d119694d511f66b7d312d38ea3fdd4d69deb5e7
4
- data.tar.gz: cc5e63bf7d7a8a5e10fc7f984501590c0ffa14f6cb977c451e029ae76780144e
3
+ metadata.gz: f72c540069b21f55b4917b4f9f53861de23cf47471a9e796b522209e33147fa6
4
+ data.tar.gz: 1ffc6b316d6943acb3685c6c6ce6b4ea990f699df787c8321650108f01a34054
5
5
  SHA512:
6
- metadata.gz: '0906ef6f59bb121d4c5a2f82a618452f62ac4fcee6b346a26c5e23b4d768e5a73972d61833eb1fe6cab1a70667a3b6815829f4a1146b9fb0f5a474f911f3801d'
7
- data.tar.gz: 3f8f643204693ef7bcbdedf21ccf11e596118b06eebe4452272803fd44f09536b6d933982d835a38d8c7092f87dd1c0ea6b17a7bd02314d86880b2a0e33d5495
6
+ metadata.gz: 7ac52f5149a2954e5ded0e0642d8dd03f6646c17306be40f798b770bceece937ef638354bfc16691789ff44db6e3e03c7648db1a28dddeee911106d8f783e8f3
7
+ data.tar.gz: bd059b6f6cb60edc93a15ecb59133ec7363eb612d6a7b7ec704b290088940f3e91093df12d8da4801b7d435df1efe30bfe075e758b3e2d319736b8f751e7b4a5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-dialogflow_v2
2
2
 
3
+ ### v0.14.0 (2021-06-03)
4
+
5
+ * Regenerated from discovery document revision 20210601
6
+ * Regenerated using generator version 0.3.0
7
+
8
+ ### v0.13.0 (2021-05-26)
9
+
10
+ * Regenerated from discovery document revision 20210524
11
+
12
+ ### v0.12.0 (2021-05-19)
13
+
14
+ * Regenerated from discovery document revision 20210517
15
+
16
+ ### v0.11.0 (2021-04-28)
17
+
18
+ * Regenerated from discovery document revision 20210426
19
+
20
+ ### v0.10.0 (2021-04-01)
21
+
22
+ * Regenerated from discovery document revision 20210329
23
+
3
24
  ### v0.9.0 (2021-03-23)
4
25
 
5
26
  * Regenerated from discovery document revision 20210320
@@ -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
@@ -813,6 +886,26 @@ module Google
813
886
  end
814
887
  end
815
888
 
889
+ # The response message for Flows.ImportFlow.
890
+ class GoogleCloudDialogflowCxV3ImportFlowResponse
891
+ include Google::Apis::Core::Hashable
892
+
893
+ # The unique identifier of the new flow. Format: `projects//locations//agents//
894
+ # flows/`.
895
+ # Corresponds to the JSON property `flow`
896
+ # @return [String]
897
+ attr_accessor :flow
898
+
899
+ def initialize(**args)
900
+ update!(**args)
901
+ end
902
+
903
+ # Update properties of this object
904
+ def update!(**args)
905
+ @flow = args[:flow] if args.key?(:flow)
906
+ end
907
+ end
908
+
816
909
  # Metadata returned for the TestCases.ImportTestCases long running operation.
817
910
  class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
818
911
  include Google::Apis::Core::Hashable
@@ -936,8 +1029,8 @@ module Google
936
1029
  class GoogleCloudDialogflowCxV3Intent
937
1030
  include Google::Apis::Core::Hashable
938
1031
 
939
- # Optional. Human readable description for better understanding an intent like
940
- # its scope, content, result etc. Maximum character limit: 140 characters.
1032
+ # Human readable description for better understanding an intent like its scope,
1033
+ # content, result etc. Maximum character limit: 140 characters.
941
1034
  # Corresponds to the JSON property `description`
942
1035
  # @return [String]
943
1036
  attr_accessor :description
@@ -957,14 +1050,14 @@ module Google
957
1050
  attr_accessor :is_fallback
958
1051
  alias_method :is_fallback?, :is_fallback
959
1052
 
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.
1053
+ # The key/value metadata to label an intent. Labels can contain lowercase
1054
+ # letters, digits and the symbols '-' and '_'. International characters are
1055
+ # allowed, including letters from unicase alphabets. Keys must start with a
1056
+ # letter. Keys and values can be no longer than 63 characters and no more than
1057
+ # 128 bytes. Prefix "sys." is reserved for Dialogflow defined labels. Currently
1058
+ # allowed Dialogflow defined labels include: * sys.head * sys.contextual The
1059
+ # above labels do not require value. "sys.head" means the intent is a head
1060
+ # intent. "sys.contextual" means the intent is a contextual intent.
968
1061
  # Corresponds to the JSON property `labels`
969
1062
  # @return [Hash<String,String>]
970
1063
  attr_accessor :labels
@@ -1723,6 +1816,45 @@ module Google
1723
1816
  end
1724
1817
  end
1725
1818
 
1819
+ # Metadata returned for the Environments.RunContinuousTest long running
1820
+ # operation.
1821
+ class GoogleCloudDialogflowCxV3RunContinuousTestMetadata
1822
+ include Google::Apis::Core::Hashable
1823
+
1824
+ # The test errors.
1825
+ # Corresponds to the JSON property `errors`
1826
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3TestError>]
1827
+ attr_accessor :errors
1828
+
1829
+ def initialize(**args)
1830
+ update!(**args)
1831
+ end
1832
+
1833
+ # Update properties of this object
1834
+ def update!(**args)
1835
+ @errors = args[:errors] if args.key?(:errors)
1836
+ end
1837
+ end
1838
+
1839
+ # The response message for Environments.RunContinuousTest.
1840
+ class GoogleCloudDialogflowCxV3RunContinuousTestResponse
1841
+ include Google::Apis::Core::Hashable
1842
+
1843
+ # Represents a result from running a test case in an agent environment.
1844
+ # Corresponds to the JSON property `continuousTestResult`
1845
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ContinuousTestResult]
1846
+ attr_accessor :continuous_test_result
1847
+
1848
+ def initialize(**args)
1849
+ update!(**args)
1850
+ end
1851
+
1852
+ # Update properties of this object
1853
+ def update!(**args)
1854
+ @continuous_test_result = args[:continuous_test_result] if args.key?(:continuous_test_result)
1855
+ end
1856
+ end
1857
+
1726
1858
  # Metadata returned for the TestCases.RunTestCase long running operation.
1727
1859
  class GoogleCloudDialogflowCxV3RunTestCaseMetadata
1728
1860
  include Google::Apis::Core::Hashable
@@ -2149,6 +2281,11 @@ module Google
2149
2281
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo]
2150
2282
  attr_accessor :intent_info
2151
2283
 
2284
+ # The language code specified in the original request.
2285
+ # Corresponds to the JSON property `languageCode`
2286
+ # @return [String]
2287
+ attr_accessor :language_code
2288
+
2152
2289
  # The list of rich message responses to present to the user. Webhook can choose
2153
2290
  # to append or replace this list in WebhookResponse.fulfillment_response;
2154
2291
  # Corresponds to the JSON property `messages`
@@ -2175,6 +2312,30 @@ module Google
2175
2312
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3SessionInfo]
2176
2313
  attr_accessor :session_info
2177
2314
 
2315
+ # If natural language text was provided as input, this field will contain a copy
2316
+ # of the text.
2317
+ # Corresponds to the JSON property `text`
2318
+ # @return [String]
2319
+ attr_accessor :text
2320
+
2321
+ # If natural language speech audio was provided as input, this field will
2322
+ # contain the transcript for the audio.
2323
+ # Corresponds to the JSON property `transcript`
2324
+ # @return [String]
2325
+ attr_accessor :transcript
2326
+
2327
+ # If an event was provided as input, this field will contain the name of the
2328
+ # event.
2329
+ # Corresponds to the JSON property `triggerEvent`
2330
+ # @return [String]
2331
+ attr_accessor :trigger_event
2332
+
2333
+ # If an intent was provided as input, this field will contain a copy of the
2334
+ # intent identifier. Format: `projects//locations//agents//intents/`.
2335
+ # Corresponds to the JSON property `triggerIntent`
2336
+ # @return [String]
2337
+ attr_accessor :trigger_intent
2338
+
2178
2339
  def initialize(**args)
2179
2340
  update!(**args)
2180
2341
  end
@@ -2184,11 +2345,16 @@ module Google
2184
2345
  @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
2185
2346
  @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
2186
2347
  @intent_info = args[:intent_info] if args.key?(:intent_info)
2348
+ @language_code = args[:language_code] if args.key?(:language_code)
2187
2349
  @messages = args[:messages] if args.key?(:messages)
2188
2350
  @page_info = args[:page_info] if args.key?(:page_info)
2189
2351
  @payload = args[:payload] if args.key?(:payload)
2190
2352
  @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
2191
2353
  @session_info = args[:session_info] if args.key?(:session_info)
2354
+ @text = args[:text] if args.key?(:text)
2355
+ @transcript = args[:transcript] if args.key?(:transcript)
2356
+ @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
2357
+ @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
2192
2358
  end
2193
2359
  end
2194
2360
 
@@ -2451,6 +2617,45 @@ module Google
2451
2617
  end
2452
2618
  end
2453
2619
 
2620
+ # Represents a result from running a test case in an agent environment.
2621
+ class GoogleCloudDialogflowCxV3beta1ContinuousTestResult
2622
+ include Google::Apis::Core::Hashable
2623
+
2624
+ # The resource name for the continuous test result. Format: `projects//locations/
2625
+ # /agents//environments//continuousTestResults/`.
2626
+ # Corresponds to the JSON property `name`
2627
+ # @return [String]
2628
+ attr_accessor :name
2629
+
2630
+ # The result of this continuous test run, i.e. whether all the tests in this
2631
+ # continuous test run pass or not.
2632
+ # Corresponds to the JSON property `result`
2633
+ # @return [String]
2634
+ attr_accessor :result
2635
+
2636
+ # Time when the continuous testing run starts.
2637
+ # Corresponds to the JSON property `runTime`
2638
+ # @return [String]
2639
+ attr_accessor :run_time
2640
+
2641
+ # A list of individual test case results names in this continuous test run.
2642
+ # Corresponds to the JSON property `testCaseResults`
2643
+ # @return [Array<String>]
2644
+ attr_accessor :test_case_results
2645
+
2646
+ def initialize(**args)
2647
+ update!(**args)
2648
+ end
2649
+
2650
+ # Update properties of this object
2651
+ def update!(**args)
2652
+ @name = args[:name] if args.key?(:name)
2653
+ @result = args[:result] if args.key?(:result)
2654
+ @run_time = args[:run_time] if args.key?(:run_time)
2655
+ @test_case_results = args[:test_case_results] if args.key?(:test_case_results)
2656
+ end
2657
+ end
2658
+
2454
2659
  # One interaction between a human and virtual agent. The human provides some
2455
2660
  # input and the virtual agent provides a response.
2456
2661
  class GoogleCloudDialogflowCxV3beta1ConversationTurn
@@ -2481,6 +2686,12 @@ module Google
2481
2686
  class GoogleCloudDialogflowCxV3beta1ConversationTurnUserInput
2482
2687
  include Google::Apis::Core::Hashable
2483
2688
 
2689
+ # Whether sentiment analysis is enabled.
2690
+ # Corresponds to the JSON property `enableSentimentAnalysis`
2691
+ # @return [Boolean]
2692
+ attr_accessor :enable_sentiment_analysis
2693
+ alias_method :enable_sentiment_analysis?, :enable_sentiment_analysis
2694
+
2484
2695
  # Parameters that need to be injected into the conversation during intent
2485
2696
  # detection.
2486
2697
  # Corresponds to the JSON property `injectedParameters`
@@ -2508,6 +2719,7 @@ module Google
2508
2719
 
2509
2720
  # Update properties of this object
2510
2721
  def update!(**args)
2722
+ @enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
2511
2723
  @injected_parameters = args[:injected_parameters] if args.key?(:injected_parameters)
2512
2724
  @input = args[:input] if args.key?(:input)
2513
2725
  @is_webhook_enabled = args[:is_webhook_enabled] if args.key?(:is_webhook_enabled)
@@ -2774,6 +2986,33 @@ module Google
2774
2986
  end
2775
2987
  end
2776
2988
 
2989
+ # The response message for Flows.ExportFlow.
2990
+ class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
2991
+ include Google::Apis::Core::Hashable
2992
+
2993
+ # Uncompressed raw byte content for flow.
2994
+ # Corresponds to the JSON property `flowContent`
2995
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2996
+ # @return [String]
2997
+ attr_accessor :flow_content
2998
+
2999
+ # The URI to a file containing the exported flow. This field is populated only
3000
+ # if `flow_uri` is specified in ExportFlowRequest.
3001
+ # Corresponds to the JSON property `flowUri`
3002
+ # @return [String]
3003
+ attr_accessor :flow_uri
3004
+
3005
+ def initialize(**args)
3006
+ update!(**args)
3007
+ end
3008
+
3009
+ # Update properties of this object
3010
+ def update!(**args)
3011
+ @flow_content = args[:flow_content] if args.key?(:flow_content)
3012
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
3013
+ end
3014
+ end
3015
+
2777
3016
  # Metadata returned for the TestCases.ExportTestCases long running operation.
2778
3017
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
2779
3018
  include Google::Apis::Core::Hashable
@@ -3172,6 +3411,26 @@ module Google
3172
3411
  end
3173
3412
  end
3174
3413
 
3414
+ # The response message for Flows.ImportFlow.
3415
+ class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
3416
+ include Google::Apis::Core::Hashable
3417
+
3418
+ # The unique identifier of the new flow. Format: `projects//locations//agents//
3419
+ # flows/`.
3420
+ # Corresponds to the JSON property `flow`
3421
+ # @return [String]
3422
+ attr_accessor :flow
3423
+
3424
+ def initialize(**args)
3425
+ update!(**args)
3426
+ end
3427
+
3428
+ # Update properties of this object
3429
+ def update!(**args)
3430
+ @flow = args[:flow] if args.key?(:flow)
3431
+ end
3432
+ end
3433
+
3175
3434
  # Metadata returned for the TestCases.ImportTestCases long running operation.
3176
3435
  class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
3177
3436
  include Google::Apis::Core::Hashable
@@ -3295,8 +3554,8 @@ module Google
3295
3554
  class GoogleCloudDialogflowCxV3beta1Intent
3296
3555
  include Google::Apis::Core::Hashable
3297
3556
 
3298
- # Optional. Human readable description for better understanding an intent like
3299
- # its scope, content, result etc. Maximum character limit: 140 characters.
3557
+ # Human readable description for better understanding an intent like its scope,
3558
+ # content, result etc. Maximum character limit: 140 characters.
3300
3559
  # Corresponds to the JSON property `description`
3301
3560
  # @return [String]
3302
3561
  attr_accessor :description
@@ -3316,14 +3575,14 @@ module Google
3316
3575
  attr_accessor :is_fallback
3317
3576
  alias_method :is_fallback?, :is_fallback
3318
3577
 
3319
- # Optional. The key/value metadata to label an intent. Labels can contain
3320
- # lowercase letters, digits and the symbols '-' and '_'. International
3321
- # characters are allowed, including letters from unicase alphabets. Keys must
3322
- # start with a letter. Keys and values can be no longer than 63 characters and
3323
- # no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined
3324
- # labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-
3325
- # contextual The above labels do not require value. "sys-head" means the intent
3326
- # is a head intent. "sys-contextual" means the intent is a contextual intent.
3578
+ # The key/value metadata to label an intent. Labels can contain lowercase
3579
+ # letters, digits and the symbols '-' and '_'. International characters are
3580
+ # allowed, including letters from unicase alphabets. Keys must start with a
3581
+ # letter. Keys and values can be no longer than 63 characters and no more than
3582
+ # 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently
3583
+ # allowed Dialogflow defined labels include: * sys-head * sys-contextual The
3584
+ # above labels do not require value. "sys-head" means the intent is a head
3585
+ # intent. "sys-contextual" means the intent is a contextual intent.
3327
3586
  # Corresponds to the JSON property `labels`
3328
3587
  # @return [Hash<String,String>]
3329
3588
  attr_accessor :labels
@@ -4082,6 +4341,45 @@ module Google
4082
4341
  end
4083
4342
  end
4084
4343
 
4344
+ # Metadata returned for the Environments.RunContinuousTest long running
4345
+ # operation.
4346
+ class GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
4347
+ include Google::Apis::Core::Hashable
4348
+
4349
+ # The test errors.
4350
+ # Corresponds to the JSON property `errors`
4351
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1TestError>]
4352
+ attr_accessor :errors
4353
+
4354
+ def initialize(**args)
4355
+ update!(**args)
4356
+ end
4357
+
4358
+ # Update properties of this object
4359
+ def update!(**args)
4360
+ @errors = args[:errors] if args.key?(:errors)
4361
+ end
4362
+ end
4363
+
4364
+ # The response message for Environments.RunContinuousTest.
4365
+ class GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
4366
+ include Google::Apis::Core::Hashable
4367
+
4368
+ # Represents a result from running a test case in an agent environment.
4369
+ # Corresponds to the JSON property `continuousTestResult`
4370
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ContinuousTestResult]
4371
+ attr_accessor :continuous_test_result
4372
+
4373
+ def initialize(**args)
4374
+ update!(**args)
4375
+ end
4376
+
4377
+ # Update properties of this object
4378
+ def update!(**args)
4379
+ @continuous_test_result = args[:continuous_test_result] if args.key?(:continuous_test_result)
4380
+ end
4381
+ end
4382
+
4085
4383
  # Metadata returned for the TestCases.RunTestCase long running operation.
4086
4384
  class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
4087
4385
  include Google::Apis::Core::Hashable
@@ -4508,6 +4806,11 @@ module Google
4508
4806
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]
4509
4807
  attr_accessor :intent_info
4510
4808
 
4809
+ # The language code specified in the original request.
4810
+ # Corresponds to the JSON property `languageCode`
4811
+ # @return [String]
4812
+ attr_accessor :language_code
4813
+
4511
4814
  # The list of rich message responses to present to the user. Webhook can choose
4512
4815
  # to append or replace this list in WebhookResponse.fulfillment_response;
4513
4816
  # Corresponds to the JSON property `messages`
@@ -4534,6 +4837,30 @@ module Google
4534
4837
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1SessionInfo]
4535
4838
  attr_accessor :session_info
4536
4839
 
4840
+ # If natural language text was provided as input, this field will contain a copy
4841
+ # of the text.
4842
+ # Corresponds to the JSON property `text`
4843
+ # @return [String]
4844
+ attr_accessor :text
4845
+
4846
+ # If natural language speech audio was provided as input, this field will
4847
+ # contain the transcript for the audio.
4848
+ # Corresponds to the JSON property `transcript`
4849
+ # @return [String]
4850
+ attr_accessor :transcript
4851
+
4852
+ # If an event was provided as input, this field will contain the name of the
4853
+ # event.
4854
+ # Corresponds to the JSON property `triggerEvent`
4855
+ # @return [String]
4856
+ attr_accessor :trigger_event
4857
+
4858
+ # If an intent was provided as input, this field will contain a copy of the
4859
+ # intent identifier. Format: `projects//locations//agents//intents/`.
4860
+ # Corresponds to the JSON property `triggerIntent`
4861
+ # @return [String]
4862
+ attr_accessor :trigger_intent
4863
+
4537
4864
  def initialize(**args)
4538
4865
  update!(**args)
4539
4866
  end
@@ -4543,11 +4870,16 @@ module Google
4543
4870
  @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
4544
4871
  @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
4545
4872
  @intent_info = args[:intent_info] if args.key?(:intent_info)
4873
+ @language_code = args[:language_code] if args.key?(:language_code)
4546
4874
  @messages = args[:messages] if args.key?(:messages)
4547
4875
  @page_info = args[:page_info] if args.key?(:page_info)
4548
4876
  @payload = args[:payload] if args.key?(:payload)
4549
4877
  @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
4550
4878
  @session_info = args[:session_info] if args.key?(:session_info)
4879
+ @text = args[:text] if args.key?(:text)
4880
+ @transcript = args[:transcript] if args.key?(:transcript)
4881
+ @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
4882
+ @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
4551
4883
  end
4552
4884
  end
4553
4885
 
@@ -5747,6 +6079,13 @@ module Google
5747
6079
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfig]
5748
6080
  attr_accessor :human_agent_assistant_config
5749
6081
 
6082
+ # Defines the hand off to a live agent, typically on which external agent
6083
+ # service provider to connect to a conversation. Currently, this feature is not
6084
+ # general available, please contact Google to get access.
6085
+ # Corresponds to the JSON property `humanAgentHandoffConfig`
6086
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfig]
6087
+ attr_accessor :human_agent_handoff_config
6088
+
5750
6089
  # Language which represents the conversationProfile. If unspecified, the default
5751
6090
  # language code en-us applies. Users need to create a ConversationProfile for
5752
6091
  # each language they want to support.
@@ -5795,6 +6134,7 @@ module Google
5795
6134
  @create_time = args[:create_time] if args.key?(:create_time)
5796
6135
  @display_name = args[:display_name] if args.key?(:display_name)
5797
6136
  @human_agent_assistant_config = args[:human_agent_assistant_config] if args.key?(:human_agent_assistant_config)
6137
+ @human_agent_handoff_config = args[:human_agent_handoff_config] if args.key?(:human_agent_handoff_config)
5798
6138
  @language_code = args[:language_code] if args.key?(:language_code)
5799
6139
  @logging_config = args[:logging_config] if args.key?(:logging_config)
5800
6140
  @name = args[:name] if args.key?(:name)
@@ -6185,8 +6525,8 @@ module Google
6185
6525
  class GoogleCloudDialogflowV2Environment
6186
6526
  include Google::Apis::Core::Hashable
6187
6527
 
6188
- # Optional. The agent version loaded into this environment. Format: `projects//
6189
- # agent/versions/`.
6528
+ # Optional. The agent version loaded into this environment. Supported formats: -
6529
+ # `projects//agent/versions/` - `projects//locations//agent/versions/`
6190
6530
  # Corresponds to the JSON property `agentVersion`
6191
6531
  # @return [String]
6192
6532
  attr_accessor :agent_version
@@ -6197,9 +6537,21 @@ module Google
6197
6537
  # @return [String]
6198
6538
  attr_accessor :description
6199
6539
 
6200
- # Output only. The unique identifier of this agent environment. Format: `
6201
- # projects//agent/environments/`. For Environment ID, "-" is reserved for 'draft'
6202
- # environment.
6540
+ # By default, your agent responds to a matched intent with a static response. As
6541
+ # an alternative, you can provide a more dynamic response by using fulfillment.
6542
+ # When you enable fulfillment for an intent, Dialogflow responds to that intent
6543
+ # by calling a service that you define. For example, if an end-user wants to
6544
+ # schedule a haircut on Friday, your service can check your database and respond
6545
+ # to the end-user with availability information for Friday. For more information,
6546
+ # see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/
6547
+ # fulfillment-overview).
6548
+ # Corresponds to the JSON property `fulfillment`
6549
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Fulfillment]
6550
+ attr_accessor :fulfillment
6551
+
6552
+ # Output only. The unique identifier of this agent environment. Supported
6553
+ # formats: - `projects//agent/environments/` - `projects//locations//agent/
6554
+ # environments/`
6203
6555
  # Corresponds to the JSON property `name`
6204
6556
  # @return [String]
6205
6557
  attr_accessor :name
@@ -6210,6 +6562,11 @@ module Google
6210
6562
  # @return [String]
6211
6563
  attr_accessor :state
6212
6564
 
6565
+ # Instructs the speech synthesizer on how to generate the output audio content.
6566
+ # Corresponds to the JSON property `textToSpeechSettings`
6567
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextToSpeechSettings]
6568
+ attr_accessor :text_to_speech_settings
6569
+
6213
6570
  # Output only. The last update time of this environment. This field is read-only,
6214
6571
  # i.e., it cannot be set by create and update methods.
6215
6572
  # Corresponds to the JSON property `updateTime`
@@ -6224,12 +6581,80 @@ module Google
6224
6581
  def update!(**args)
6225
6582
  @agent_version = args[:agent_version] if args.key?(:agent_version)
6226
6583
  @description = args[:description] if args.key?(:description)
6584
+ @fulfillment = args[:fulfillment] if args.key?(:fulfillment)
6227
6585
  @name = args[:name] if args.key?(:name)
6228
6586
  @state = args[:state] if args.key?(:state)
6587
+ @text_to_speech_settings = args[:text_to_speech_settings] if args.key?(:text_to_speech_settings)
6229
6588
  @update_time = args[:update_time] if args.key?(:update_time)
6230
6589
  end
6231
6590
  end
6232
6591
 
6592
+ # The response message for Environments.GetEnvironmentHistory.
6593
+ class GoogleCloudDialogflowV2EnvironmentHistory
6594
+ include Google::Apis::Core::Hashable
6595
+
6596
+ # Output only. The list of agent environments. There will be a maximum number of
6597
+ # items returned based on the page_size field in the request.
6598
+ # Corresponds to the JSON property `entries`
6599
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EnvironmentHistoryEntry>]
6600
+ attr_accessor :entries
6601
+
6602
+ # Output only. Token to retrieve the next page of results, or empty if there are
6603
+ # no more results in the list.
6604
+ # Corresponds to the JSON property `nextPageToken`
6605
+ # @return [String]
6606
+ attr_accessor :next_page_token
6607
+
6608
+ # Output only. The name of the environment this history is for. Supported
6609
+ # formats: - `projects//agent/environments/` - `projects//locations//agent/
6610
+ # environments/`
6611
+ # Corresponds to the JSON property `parent`
6612
+ # @return [String]
6613
+ attr_accessor :parent
6614
+
6615
+ def initialize(**args)
6616
+ update!(**args)
6617
+ end
6618
+
6619
+ # Update properties of this object
6620
+ def update!(**args)
6621
+ @entries = args[:entries] if args.key?(:entries)
6622
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
6623
+ @parent = args[:parent] if args.key?(:parent)
6624
+ end
6625
+ end
6626
+
6627
+ # Represents an environment history entry.
6628
+ class GoogleCloudDialogflowV2EnvironmentHistoryEntry
6629
+ include Google::Apis::Core::Hashable
6630
+
6631
+ # The agent version loaded into this environment history entry.
6632
+ # Corresponds to the JSON property `agentVersion`
6633
+ # @return [String]
6634
+ attr_accessor :agent_version
6635
+
6636
+ # The creation time of this environment history entry.
6637
+ # Corresponds to the JSON property `createTime`
6638
+ # @return [String]
6639
+ attr_accessor :create_time
6640
+
6641
+ # The developer-provided description for this environment history entry.
6642
+ # Corresponds to the JSON property `description`
6643
+ # @return [String]
6644
+ attr_accessor :description
6645
+
6646
+ def initialize(**args)
6647
+ update!(**args)
6648
+ end
6649
+
6650
+ # Update properties of this object
6651
+ def update!(**args)
6652
+ @agent_version = args[:agent_version] if args.key?(:agent_version)
6653
+ @create_time = args[:create_time] if args.key?(:create_time)
6654
+ @description = args[:description] if args.key?(:description)
6655
+ end
6656
+ end
6657
+
6233
6658
  # Events allow for matching intents by event name instead of the natural
6234
6659
  # language input. For instance, input `` can trigger a personalized welcome
6235
6660
  # response. The parameter `name` may be used by the agent in the response: `"
@@ -6389,6 +6814,7 @@ module Google
6389
6814
  include Google::Apis::Core::Hashable
6390
6815
 
6391
6816
  # Optional. The human-readable name of the fulfillment, unique within the agent.
6817
+ # This field is not used for Fulfillment in an Environment.
6392
6818
  # Corresponds to the JSON property `displayName`
6393
6819
  # @return [String]
6394
6820
  attr_accessor :display_name
@@ -6414,8 +6840,9 @@ module Google
6414
6840
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2FulfillmentGenericWebService]
6415
6841
  attr_accessor :generic_web_service
6416
6842
 
6417
- # Required. The unique identifier of the fulfillment. Format: `projects//agent/
6418
- # fulfillment`.
6843
+ # Required. The unique identifier of the fulfillment. Supported formats: - `
6844
+ # projects//agent/fulfillment` - `projects//locations//agent/fulfillment` This
6845
+ # field is not used for Fulfillment in an Environment.
6419
6846
  # Corresponds to the JSON property `name`
6420
6847
  # @return [String]
6421
6848
  attr_accessor :name
@@ -6462,7 +6889,8 @@ module Google
6462
6889
  include Google::Apis::Core::Hashable
6463
6890
 
6464
6891
  # Optional. Indicates if generic web service is created through Cloud Functions
6465
- # integration. Defaults to false.
6892
+ # integration. Defaults to false. is_cloud_function is deprecated. Cloud
6893
+ # functions can be configured by its uri as a regular web service now.
6466
6894
  # Corresponds to the JSON property `isCloudFunction`
6467
6895
  # @return [Boolean]
6468
6896
  attr_accessor :is_cloud_function
@@ -6507,6 +6935,11 @@ module Google
6507
6935
  class GoogleCloudDialogflowV2HumanAgentAssistantConfig
6508
6936
  include Google::Apis::Core::Hashable
6509
6937
 
6938
+ # Detail human agent assistant config.
6939
+ # Corresponds to the JSON property `endUserSuggestionConfig`
6940
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig]
6941
+ attr_accessor :end_user_suggestion_config
6942
+
6510
6943
  # Detail human agent assistant config.
6511
6944
  # Corresponds to the JSON property `humanAgentSuggestionConfig`
6512
6945
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionConfig]
@@ -6528,6 +6961,7 @@ module Google
6528
6961
 
6529
6962
  # Update properties of this object
6530
6963
  def update!(**args)
6964
+ @end_user_suggestion_config = args[:end_user_suggestion_config] if args.key?(:end_user_suggestion_config)
6531
6965
  @human_agent_suggestion_config = args[:human_agent_suggestion_config] if args.key?(:human_agent_suggestion_config)
6532
6966
  @message_analysis_config = args[:message_analysis_config] if args.key?(:message_analysis_config)
6533
6967
  @notification_config = args[:notification_config] if args.key?(:notification_config)
@@ -6539,8 +6973,7 @@ module Google
6539
6973
  class GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig
6540
6974
  include Google::Apis::Core::Hashable
6541
6975
 
6542
- # Required. Conversation model resource name. Format: `projects//
6543
- # conversationModels/`.
6976
+ # Conversation model resource name. Format: `projects//conversationModels/`.
6544
6977
  # Corresponds to the JSON property `model`
6545
6978
  # @return [String]
6546
6979
  attr_accessor :model
@@ -6559,6 +6992,15 @@ module Google
6559
6992
  class GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig
6560
6993
  include Google::Apis::Core::Hashable
6561
6994
 
6995
+ # Enable entity extraction in conversation messages on [agent assist stage](
6996
+ # https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
6997
+ # If unspecified, defaults to false. Currently, this feature is not general
6998
+ # available, please contact Google to get access.
6999
+ # Corresponds to the JSON property `enableEntityExtraction`
7000
+ # @return [Boolean]
7001
+ attr_accessor :enable_entity_extraction
7002
+ alias_method :enable_entity_extraction?, :enable_entity_extraction
7003
+
6562
7004
  # Enable sentiment analysis in conversation messages on [agent assist stage](
6563
7005
  # https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
6564
7006
  # If unspecified, defaults to false. Sentiment analysis inspects user input and
@@ -6583,6 +7025,7 @@ module Google
6583
7025
 
6584
7026
  # Update properties of this object
6585
7027
  def update!(**args)
7028
+ @enable_entity_extraction = args[:enable_entity_extraction] if args.key?(:enable_entity_extraction)
6586
7029
  @enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
6587
7030
  end
6588
7031
  end
@@ -6887,6 +7330,93 @@ module Google
6887
7330
  end
6888
7331
  end
6889
7332
 
7333
+ # Defines the hand off to a live agent, typically on which external agent
7334
+ # service provider to connect to a conversation. Currently, this feature is not
7335
+ # general available, please contact Google to get access.
7336
+ class GoogleCloudDialogflowV2HumanAgentHandoffConfig
7337
+ include Google::Apis::Core::Hashable
7338
+
7339
+ # Configuration specific to LivePerson (https://www.liveperson.com).
7340
+ # Corresponds to the JSON property `livePersonConfig`
7341
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig]
7342
+ attr_accessor :live_person_config
7343
+
7344
+ # Configuration specific to Salesforce Live Agent.
7345
+ # Corresponds to the JSON property `salesforceLiveAgentConfig`
7346
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig]
7347
+ attr_accessor :salesforce_live_agent_config
7348
+
7349
+ def initialize(**args)
7350
+ update!(**args)
7351
+ end
7352
+
7353
+ # Update properties of this object
7354
+ def update!(**args)
7355
+ @live_person_config = args[:live_person_config] if args.key?(:live_person_config)
7356
+ @salesforce_live_agent_config = args[:salesforce_live_agent_config] if args.key?(:salesforce_live_agent_config)
7357
+ end
7358
+ end
7359
+
7360
+ # Configuration specific to LivePerson (https://www.liveperson.com).
7361
+ class GoogleCloudDialogflowV2HumanAgentHandoffConfigLivePersonConfig
7362
+ include Google::Apis::Core::Hashable
7363
+
7364
+ # Required. Account number of the LivePerson account to connect. This is the
7365
+ # account number you input at the login page.
7366
+ # Corresponds to the JSON property `accountNumber`
7367
+ # @return [String]
7368
+ attr_accessor :account_number
7369
+
7370
+ def initialize(**args)
7371
+ update!(**args)
7372
+ end
7373
+
7374
+ # Update properties of this object
7375
+ def update!(**args)
7376
+ @account_number = args[:account_number] if args.key?(:account_number)
7377
+ end
7378
+ end
7379
+
7380
+ # Configuration specific to Salesforce Live Agent.
7381
+ class GoogleCloudDialogflowV2HumanAgentHandoffConfigSalesforceLiveAgentConfig
7382
+ include Google::Apis::Core::Hashable
7383
+
7384
+ # Required. Live Agent chat button ID.
7385
+ # Corresponds to the JSON property `buttonId`
7386
+ # @return [String]
7387
+ attr_accessor :button_id
7388
+
7389
+ # Required. Live Agent deployment ID.
7390
+ # Corresponds to the JSON property `deploymentId`
7391
+ # @return [String]
7392
+ attr_accessor :deployment_id
7393
+
7394
+ # Required. Domain of the Live Agent endpoint for this agent. You can find the
7395
+ # endpoint URL in the `Live Agent settings` page. For example if URL has the
7396
+ # form https://d.la4-c2-phx.salesforceliveagent.com/..., you should fill in d.
7397
+ # la4-c2-phx.salesforceliveagent.com.
7398
+ # Corresponds to the JSON property `endpointDomain`
7399
+ # @return [String]
7400
+ attr_accessor :endpoint_domain
7401
+
7402
+ # Required. The organization ID of the Salesforce account.
7403
+ # Corresponds to the JSON property `organizationId`
7404
+ # @return [String]
7405
+ attr_accessor :organization_id
7406
+
7407
+ def initialize(**args)
7408
+ update!(**args)
7409
+ end
7410
+
7411
+ # Update properties of this object
7412
+ def update!(**args)
7413
+ @button_id = args[:button_id] if args.key?(:button_id)
7414
+ @deployment_id = args[:deployment_id] if args.key?(:deployment_id)
7415
+ @endpoint_domain = args[:endpoint_domain] if args.key?(:endpoint_domain)
7416
+ @organization_id = args[:organization_id] if args.key?(:organization_id)
7417
+ end
7418
+ end
7419
+
6890
7420
  # The request message for Agents.ImportAgent.
6891
7421
  class GoogleCloudDialogflowV2ImportAgentRequest
6892
7422
  include Google::Apis::Core::Hashable
@@ -8674,6 +9204,33 @@ module Google
8674
9204
  end
8675
9205
  end
8676
9206
 
9207
+ # The response message for Versions.ListVersions.
9208
+ class GoogleCloudDialogflowV2ListVersionsResponse
9209
+ include Google::Apis::Core::Hashable
9210
+
9211
+ # Token to retrieve the next page of results, or empty if there are no more
9212
+ # results in the list.
9213
+ # Corresponds to the JSON property `nextPageToken`
9214
+ # @return [String]
9215
+ attr_accessor :next_page_token
9216
+
9217
+ # The list of agent versions. There will be a maximum number of items returned
9218
+ # based on the page_size field in the request.
9219
+ # Corresponds to the JSON property `versions`
9220
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Version>]
9221
+ attr_accessor :versions
9222
+
9223
+ def initialize(**args)
9224
+ update!(**args)
9225
+ end
9226
+
9227
+ # Update properties of this object
9228
+ def update!(**args)
9229
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
9230
+ @versions = args[:versions] if args.key?(:versions)
9231
+ end
9232
+ end
9233
+
8677
9234
  # Defines logging behavior for conversation lifecycle events.
8678
9235
  class GoogleCloudDialogflowV2LoggingConfig
8679
9236
  include Google::Apis::Core::Hashable
@@ -8998,8 +9555,8 @@ module Google
8998
9555
 
8999
9556
  # An object that represents a latitude/longitude pair. This is expressed as a
9000
9557
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
9001
- # specified otherwise, this must conform to the WGS84 standard. Values must be
9002
- # within normalized ranges.
9558
+ # specified otherwise, this object must conform to the WGS84 standard. Values
9559
+ # must be within normalized ranges.
9003
9560
  # Corresponds to the JSON property `geoLocation`
9004
9561
  # @return [Google::Apis::DialogflowV2::GoogleTypeLatLng]
9005
9562
  attr_accessor :geo_location
@@ -9085,6 +9642,13 @@ module Google
9085
9642
  attr_accessor :all_required_params_present
9086
9643
  alias_method :all_required_params_present?, :all_required_params_present
9087
9644
 
9645
+ # Indicates whether the conversational query triggers a cancellation for slot
9646
+ # filling.
9647
+ # Corresponds to the JSON property `cancelsSlotFilling`
9648
+ # @return [Boolean]
9649
+ attr_accessor :cancels_slot_filling
9650
+ alias_method :cancels_slot_filling?, :cancels_slot_filling
9651
+
9088
9652
  # Free-form diagnostic information for the associated detect intent request. The
9089
9653
  # fields of this data can change without notice, so you should not write code
9090
9654
  # that depends on its structure. The data may contain: - webhook call latency -
@@ -9205,6 +9769,7 @@ module Google
9205
9769
  def update!(**args)
9206
9770
  @action = args[:action] if args.key?(:action)
9207
9771
  @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
9772
+ @cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
9208
9773
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
9209
9774
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
9210
9775
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
@@ -9741,6 +10306,51 @@ module Google
9741
10306
  end
9742
10307
  end
9743
10308
 
10309
+ # Instructs the speech synthesizer on how to generate the output audio content.
10310
+ class GoogleCloudDialogflowV2TextToSpeechSettings
10311
+ include Google::Apis::Core::Hashable
10312
+
10313
+ # Optional. Indicates whether text to speech is enabled. Even when this field is
10314
+ # false, other settings in this proto are still retained.
10315
+ # Corresponds to the JSON property `enableTextToSpeech`
10316
+ # @return [Boolean]
10317
+ attr_accessor :enable_text_to_speech
10318
+ alias_method :enable_text_to_speech?, :enable_text_to_speech
10319
+
10320
+ # Required. Audio encoding of the synthesized audio content.
10321
+ # Corresponds to the JSON property `outputAudioEncoding`
10322
+ # @return [String]
10323
+ attr_accessor :output_audio_encoding
10324
+
10325
+ # Optional. The synthesis sample rate (in hertz) for this audio. If not provided,
10326
+ # then the synthesizer will use the default sample rate based on the audio
10327
+ # encoding. If this is different from the voice's natural sample rate, then the
10328
+ # synthesizer will honor this request by converting to the desired sample rate (
10329
+ # which might result in worse audio quality).
10330
+ # Corresponds to the JSON property `sampleRateHertz`
10331
+ # @return [Fixnum]
10332
+ attr_accessor :sample_rate_hertz
10333
+
10334
+ # Optional. Configuration of how speech should be synthesized, mapping from
10335
+ # language (https://cloud.google.com/dialogflow/docs/reference/language) to
10336
+ # SynthesizeSpeechConfig.
10337
+ # Corresponds to the JSON property `synthesizeSpeechConfigs`
10338
+ # @return [Hash<String,Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SynthesizeSpeechConfig>]
10339
+ attr_accessor :synthesize_speech_configs
10340
+
10341
+ def initialize(**args)
10342
+ update!(**args)
10343
+ end
10344
+
10345
+ # Update properties of this object
10346
+ def update!(**args)
10347
+ @enable_text_to_speech = args[:enable_text_to_speech] if args.key?(:enable_text_to_speech)
10348
+ @output_audio_encoding = args[:output_audio_encoding] if args.key?(:output_audio_encoding)
10349
+ @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
10350
+ @synthesize_speech_configs = args[:synthesize_speech_configs] if args.key?(:synthesize_speech_configs)
10351
+ end
10352
+ end
10353
+
9744
10354
  # The request message for Agents.TrainAgent.
9745
10355
  class GoogleCloudDialogflowV2TrainAgentRequest
9746
10356
  include Google::Apis::Core::Hashable
@@ -9810,6 +10420,61 @@ module Google
9810
10420
  end
9811
10421
  end
9812
10422
 
10423
+ # You can create multiple versions of your agent and publish them to separate
10424
+ # environments. When you edit an agent, you are editing the draft agent. At any
10425
+ # point, you can save the draft agent as an agent version, which is an immutable
10426
+ # snapshot of your agent. When you save the draft agent, it is published to the
10427
+ # default environment. When you create agent versions, you can publish them to
10428
+ # custom environments. You can create a variety of custom environments for: -
10429
+ # testing - development - production - etc. For more information, see the [
10430
+ # versions and environments guide](https://cloud.google.com/dialogflow/docs/
10431
+ # agents-versions).
10432
+ class GoogleCloudDialogflowV2Version
10433
+ include Google::Apis::Core::Hashable
10434
+
10435
+ # Output only. The creation time of this version. This field is read-only, i.e.,
10436
+ # it cannot be set by create and update methods.
10437
+ # Corresponds to the JSON property `createTime`
10438
+ # @return [String]
10439
+ attr_accessor :create_time
10440
+
10441
+ # Optional. The developer-provided description of this version.
10442
+ # Corresponds to the JSON property `description`
10443
+ # @return [String]
10444
+ attr_accessor :description
10445
+
10446
+ # Output only. The unique identifier of this agent version. Supported formats: -
10447
+ # `projects//agent/versions/` - `projects//locations//agent/versions/`
10448
+ # Corresponds to the JSON property `name`
10449
+ # @return [String]
10450
+ attr_accessor :name
10451
+
10452
+ # Output only. The status of this version. This field is read-only and cannot be
10453
+ # set by create and update methods.
10454
+ # Corresponds to the JSON property `status`
10455
+ # @return [String]
10456
+ attr_accessor :status
10457
+
10458
+ # Output only. The sequential number of this version. This field is read-only
10459
+ # which means it cannot be set by create and update methods.
10460
+ # Corresponds to the JSON property `versionNumber`
10461
+ # @return [Fixnum]
10462
+ attr_accessor :version_number
10463
+
10464
+ def initialize(**args)
10465
+ update!(**args)
10466
+ end
10467
+
10468
+ # Update properties of this object
10469
+ def update!(**args)
10470
+ @create_time = args[:create_time] if args.key?(:create_time)
10471
+ @description = args[:description] if args.key?(:description)
10472
+ @name = args[:name] if args.key?(:name)
10473
+ @status = args[:status] if args.key?(:status)
10474
+ @version_number = args[:version_number] if args.key?(:version_number)
10475
+ end
10476
+ end
10477
+
9813
10478
  # Description of which voice to use for speech synthesis.
9814
10479
  class GoogleCloudDialogflowV2VoiceSelectionParams
9815
10480
  include Google::Apis::Core::Hashable
@@ -12448,6 +13113,13 @@ module Google
12448
13113
  attr_accessor :all_required_params_present
12449
13114
  alias_method :all_required_params_present?, :all_required_params_present
12450
13115
 
13116
+ # Indicates whether the conversational query triggers a cancellation for slot
13117
+ # filling.
13118
+ # Corresponds to the JSON property `cancelsSlotFilling`
13119
+ # @return [Boolean]
13120
+ attr_accessor :cancels_slot_filling
13121
+ alias_method :cancels_slot_filling?, :cancels_slot_filling
13122
+
12451
13123
  # Free-form diagnostic information for the associated detect intent request. The
12452
13124
  # fields of this data can change without notice, so you should not write code
12453
13125
  # that depends on its structure. The data may contain: - webhook call latency -
@@ -12573,6 +13245,7 @@ module Google
12573
13245
  def update!(**args)
12574
13246
  @action = args[:action] if args.key?(:action)
12575
13247
  @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
13248
+ @cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
12576
13249
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
12577
13250
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
12578
13251
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
@@ -13302,8 +13975,8 @@ module Google
13302
13975
 
13303
13976
  # An object that represents a latitude/longitude pair. This is expressed as a
13304
13977
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
13305
- # specified otherwise, this must conform to the WGS84 standard. Values must be
13306
- # within normalized ranges.
13978
+ # specified otherwise, this object must conform to the WGS84 standard. Values
13979
+ # must be within normalized ranges.
13307
13980
  class GoogleTypeLatLng
13308
13981
  include Google::Apis::Core::Hashable
13309
13982