google-apis-dialogflow_v2beta1 0.8.0 → 0.13.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: 9dede877f74b00254766c02316307771f46aa98bca6912189a80ab625fbfe1ba
4
- data.tar.gz: 024c615e9eeec6ac09b389213d4abd99414ad9d8daa1da530455c2bf495f7e8d
3
+ metadata.gz: 674228920ace182ce1fa4d22fdffb0a1c116827765a7930860b2cf67bea4d983
4
+ data.tar.gz: c68ef56f06d63e183434e3600407c3af991c2b4b8a74f7b8dfdcd0793373d67a
5
5
  SHA512:
6
- metadata.gz: 1cb9059534b09f37d3ac28c5bcddeed56156f5b689ef89349248df8f63e28e24fd5e6abccfceb9c3ee15afe75253d5763f0942d989ccb940d59b20bd80905c97
7
- data.tar.gz: 5b83bbf1982a0529b4fdd83ee81a29418220bec112527141c46a069b8a880247e9a5046066a1e8cde50e7ec42be819e76628aca71878f86c1359c1400a9821d8
6
+ metadata.gz: 98fa621e6f12c4a6f574279d729256589cd4fe4de36f99972b42c234259b55c44917672cf5b38ed5310a4eaf90a9132e8e859ecd52b6e7c71ab3abb0e1ab3ec1
7
+ data.tar.gz: 73fb588c882376671770e8ded487544fc0186bec4e87a4c8e5ed5503b8432948154380eaa879e5441d9b2ddb67872c86400b414dc42ba47a1c09d97755203220
data/CHANGELOG.md CHANGED
@@ -1,5 +1,25 @@
1
1
  # Release history for google-apis-dialogflow_v2beta1
2
2
 
3
+ ### v0.13.0 (2021-05-26)
4
+
5
+ * Regenerated from discovery document revision 20210524
6
+
7
+ ### v0.12.0 (2021-05-19)
8
+
9
+ * Regenerated from discovery document revision 20210517
10
+
11
+ ### v0.11.0 (2021-05-06)
12
+
13
+ * Regenerated from discovery document revision 20210503
14
+
15
+ ### v0.10.0 (2021-04-01)
16
+
17
+ * Regenerated from discovery document revision 20210329
18
+
19
+ ### v0.9.0 (2021-03-23)
20
+
21
+ * Regenerated from discovery document revision 20210320
22
+
3
23
  ### v0.8.0 (2021-03-19)
4
24
 
5
25
  * Regenerated from discovery document revision 20210318
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V2beta1'
32
32
 
33
- # View and manage your data across Google Cloud Platform services
33
+ # See, edit, configure, and delete your Google Cloud Platform data
34
34
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
35
35
 
36
36
  # View, manage and query your Dialogflow agents
@@ -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
@@ -415,6 +454,33 @@ module Google
415
454
  end
416
455
  end
417
456
 
457
+ # The response message for Flows.ExportFlow.
458
+ class GoogleCloudDialogflowCxV3ExportFlowResponse
459
+ include Google::Apis::Core::Hashable
460
+
461
+ # Uncompressed raw byte content for flow.
462
+ # Corresponds to the JSON property `flowContent`
463
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
464
+ # @return [String]
465
+ attr_accessor :flow_content
466
+
467
+ # The URI to a file containing the exported flow. This field is populated only
468
+ # if `flow_uri` is specified in ExportFlowRequest.
469
+ # Corresponds to the JSON property `flowUri`
470
+ # @return [String]
471
+ attr_accessor :flow_uri
472
+
473
+ def initialize(**args)
474
+ update!(**args)
475
+ end
476
+
477
+ # Update properties of this object
478
+ def update!(**args)
479
+ @flow_content = args[:flow_content] if args.key?(:flow_content)
480
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
481
+ end
482
+ end
483
+
418
484
  # Metadata returned for the TestCases.ExportTestCases long running operation.
419
485
  class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
420
486
  include Google::Apis::Core::Hashable
@@ -813,6 +879,26 @@ module Google
813
879
  end
814
880
  end
815
881
 
882
+ # The response message for Flows.ImportFlow.
883
+ class GoogleCloudDialogflowCxV3ImportFlowResponse
884
+ include Google::Apis::Core::Hashable
885
+
886
+ # The unique identifier of the new flow. Format: `projects//locations//agents//
887
+ # flows/`.
888
+ # Corresponds to the JSON property `flow`
889
+ # @return [String]
890
+ attr_accessor :flow
891
+
892
+ def initialize(**args)
893
+ update!(**args)
894
+ end
895
+
896
+ # Update properties of this object
897
+ def update!(**args)
898
+ @flow = args[:flow] if args.key?(:flow)
899
+ end
900
+ end
901
+
816
902
  # Metadata returned for the TestCases.ImportTestCases long running operation.
817
903
  class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
818
904
  include Google::Apis::Core::Hashable
@@ -936,8 +1022,8 @@ module Google
936
1022
  class GoogleCloudDialogflowCxV3Intent
937
1023
  include Google::Apis::Core::Hashable
938
1024
 
939
- # Optional. Human readable description for better understanding an intent like
940
- # its scope, content, result etc. Maximum character limit: 140 characters.
1025
+ # Human readable description for better understanding an intent like its scope,
1026
+ # content, result etc. Maximum character limit: 140 characters.
941
1027
  # Corresponds to the JSON property `description`
942
1028
  # @return [String]
943
1029
  attr_accessor :description
@@ -957,14 +1043,14 @@ module Google
957
1043
  attr_accessor :is_fallback
958
1044
  alias_method :is_fallback?, :is_fallback
959
1045
 
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.
1046
+ # The key/value metadata to label an intent. Labels can contain lowercase
1047
+ # letters, digits and the symbols '-' and '_'. International characters are
1048
+ # allowed, including letters from unicase alphabets. Keys must start with a
1049
+ # letter. Keys and values can be no longer than 63 characters and no more than
1050
+ # 128 bytes. Prefix "sys." is reserved for Dialogflow defined labels. Currently
1051
+ # allowed Dialogflow defined labels include: * sys.head * sys.contextual The
1052
+ # above labels do not require value. "sys.head" means the intent is a head
1053
+ # intent. "sys.contextual" means the intent is a contextual intent.
968
1054
  # Corresponds to the JSON property `labels`
969
1055
  # @return [Hash<String,String>]
970
1056
  attr_accessor :labels
@@ -1723,6 +1809,45 @@ module Google
1723
1809
  end
1724
1810
  end
1725
1811
 
1812
+ # Metadata returned for the Environments.RunContinuousTest long running
1813
+ # operation.
1814
+ class GoogleCloudDialogflowCxV3RunContinuousTestMetadata
1815
+ include Google::Apis::Core::Hashable
1816
+
1817
+ # The test errors.
1818
+ # Corresponds to the JSON property `errors`
1819
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3TestError>]
1820
+ attr_accessor :errors
1821
+
1822
+ def initialize(**args)
1823
+ update!(**args)
1824
+ end
1825
+
1826
+ # Update properties of this object
1827
+ def update!(**args)
1828
+ @errors = args[:errors] if args.key?(:errors)
1829
+ end
1830
+ end
1831
+
1832
+ # The response message for Environments.RunContinuousTest.
1833
+ class GoogleCloudDialogflowCxV3RunContinuousTestResponse
1834
+ include Google::Apis::Core::Hashable
1835
+
1836
+ # Represents a result from running a test case in an agent environment.
1837
+ # Corresponds to the JSON property `continuousTestResult`
1838
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3ContinuousTestResult]
1839
+ attr_accessor :continuous_test_result
1840
+
1841
+ def initialize(**args)
1842
+ update!(**args)
1843
+ end
1844
+
1845
+ # Update properties of this object
1846
+ def update!(**args)
1847
+ @continuous_test_result = args[:continuous_test_result] if args.key?(:continuous_test_result)
1848
+ end
1849
+ end
1850
+
1726
1851
  # Metadata returned for the TestCases.RunTestCase long running operation.
1727
1852
  class GoogleCloudDialogflowCxV3RunTestCaseMetadata
1728
1853
  include Google::Apis::Core::Hashable
@@ -2128,7 +2253,8 @@ module Google
2128
2253
  end
2129
2254
  end
2130
2255
 
2131
- # The request message for a webhook call.
2256
+ # The request message for a webhook call. The request is sent as a JSON object
2257
+ # and the field names will be presented in camel cases.
2132
2258
  class GoogleCloudDialogflowCxV3WebhookRequest
2133
2259
  include Google::Apis::Core::Hashable
2134
2260
 
@@ -2148,6 +2274,11 @@ module Google
2148
2274
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo]
2149
2275
  attr_accessor :intent_info
2150
2276
 
2277
+ # The language code specified in the original request.
2278
+ # Corresponds to the JSON property `languageCode`
2279
+ # @return [String]
2280
+ attr_accessor :language_code
2281
+
2151
2282
  # The list of rich message responses to present to the user. Webhook can choose
2152
2283
  # to append or replace this list in WebhookResponse.fulfillment_response;
2153
2284
  # Corresponds to the JSON property `messages`
@@ -2174,6 +2305,30 @@ module Google
2174
2305
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3SessionInfo]
2175
2306
  attr_accessor :session_info
2176
2307
 
2308
+ # If natural language text was provided as input, this field will contain a copy
2309
+ # of the text.
2310
+ # Corresponds to the JSON property `text`
2311
+ # @return [String]
2312
+ attr_accessor :text
2313
+
2314
+ # If natural language speech audio was provided as input, this field will
2315
+ # contain the transcript for the audio.
2316
+ # Corresponds to the JSON property `transcript`
2317
+ # @return [String]
2318
+ attr_accessor :transcript
2319
+
2320
+ # If an event was provided as input, this field will contain the name of the
2321
+ # event.
2322
+ # Corresponds to the JSON property `triggerEvent`
2323
+ # @return [String]
2324
+ attr_accessor :trigger_event
2325
+
2326
+ # If an intent was provided as input, this field will contain a copy of the
2327
+ # intent identifier. Format: `projects//locations//agents//intents/`.
2328
+ # Corresponds to the JSON property `triggerIntent`
2329
+ # @return [String]
2330
+ attr_accessor :trigger_intent
2331
+
2177
2332
  def initialize(**args)
2178
2333
  update!(**args)
2179
2334
  end
@@ -2183,11 +2338,16 @@ module Google
2183
2338
  @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
2184
2339
  @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
2185
2340
  @intent_info = args[:intent_info] if args.key?(:intent_info)
2341
+ @language_code = args[:language_code] if args.key?(:language_code)
2186
2342
  @messages = args[:messages] if args.key?(:messages)
2187
2343
  @page_info = args[:page_info] if args.key?(:page_info)
2188
2344
  @payload = args[:payload] if args.key?(:payload)
2189
2345
  @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
2190
2346
  @session_info = args[:session_info] if args.key?(:session_info)
2347
+ @text = args[:text] if args.key?(:text)
2348
+ @transcript = args[:transcript] if args.key?(:transcript)
2349
+ @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
2350
+ @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
2191
2351
  end
2192
2352
  end
2193
2353
 
@@ -2450,6 +2610,45 @@ module Google
2450
2610
  end
2451
2611
  end
2452
2612
 
2613
+ # Represents a result from running a test case in an agent environment.
2614
+ class GoogleCloudDialogflowCxV3beta1ContinuousTestResult
2615
+ include Google::Apis::Core::Hashable
2616
+
2617
+ # The resource name for the continuous test result. Format: `projects//locations/
2618
+ # /agents//environments//continuousTestResults/`.
2619
+ # Corresponds to the JSON property `name`
2620
+ # @return [String]
2621
+ attr_accessor :name
2622
+
2623
+ # The result of this continuous test run, i.e. whether all the tests in this
2624
+ # continuous test run pass or not.
2625
+ # Corresponds to the JSON property `result`
2626
+ # @return [String]
2627
+ attr_accessor :result
2628
+
2629
+ # Time when the continuous testing run starts.
2630
+ # Corresponds to the JSON property `runTime`
2631
+ # @return [String]
2632
+ attr_accessor :run_time
2633
+
2634
+ # A list of individual test case results names in this continuous test run.
2635
+ # Corresponds to the JSON property `testCaseResults`
2636
+ # @return [Array<String>]
2637
+ attr_accessor :test_case_results
2638
+
2639
+ def initialize(**args)
2640
+ update!(**args)
2641
+ end
2642
+
2643
+ # Update properties of this object
2644
+ def update!(**args)
2645
+ @name = args[:name] if args.key?(:name)
2646
+ @result = args[:result] if args.key?(:result)
2647
+ @run_time = args[:run_time] if args.key?(:run_time)
2648
+ @test_case_results = args[:test_case_results] if args.key?(:test_case_results)
2649
+ end
2650
+ end
2651
+
2453
2652
  # One interaction between a human and virtual agent. The human provides some
2454
2653
  # input and the virtual agent provides a response.
2455
2654
  class GoogleCloudDialogflowCxV3beta1ConversationTurn
@@ -2773,6 +2972,33 @@ module Google
2773
2972
  end
2774
2973
  end
2775
2974
 
2975
+ # The response message for Flows.ExportFlow.
2976
+ class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
2977
+ include Google::Apis::Core::Hashable
2978
+
2979
+ # Uncompressed raw byte content for flow.
2980
+ # Corresponds to the JSON property `flowContent`
2981
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
2982
+ # @return [String]
2983
+ attr_accessor :flow_content
2984
+
2985
+ # The URI to a file containing the exported flow. This field is populated only
2986
+ # if `flow_uri` is specified in ExportFlowRequest.
2987
+ # Corresponds to the JSON property `flowUri`
2988
+ # @return [String]
2989
+ attr_accessor :flow_uri
2990
+
2991
+ def initialize(**args)
2992
+ update!(**args)
2993
+ end
2994
+
2995
+ # Update properties of this object
2996
+ def update!(**args)
2997
+ @flow_content = args[:flow_content] if args.key?(:flow_content)
2998
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
2999
+ end
3000
+ end
3001
+
2776
3002
  # Metadata returned for the TestCases.ExportTestCases long running operation.
2777
3003
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
2778
3004
  include Google::Apis::Core::Hashable
@@ -3171,6 +3397,26 @@ module Google
3171
3397
  end
3172
3398
  end
3173
3399
 
3400
+ # The response message for Flows.ImportFlow.
3401
+ class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
3402
+ include Google::Apis::Core::Hashable
3403
+
3404
+ # The unique identifier of the new flow. Format: `projects//locations//agents//
3405
+ # flows/`.
3406
+ # Corresponds to the JSON property `flow`
3407
+ # @return [String]
3408
+ attr_accessor :flow
3409
+
3410
+ def initialize(**args)
3411
+ update!(**args)
3412
+ end
3413
+
3414
+ # Update properties of this object
3415
+ def update!(**args)
3416
+ @flow = args[:flow] if args.key?(:flow)
3417
+ end
3418
+ end
3419
+
3174
3420
  # Metadata returned for the TestCases.ImportTestCases long running operation.
3175
3421
  class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
3176
3422
  include Google::Apis::Core::Hashable
@@ -3294,8 +3540,8 @@ module Google
3294
3540
  class GoogleCloudDialogflowCxV3beta1Intent
3295
3541
  include Google::Apis::Core::Hashable
3296
3542
 
3297
- # Optional. Human readable description for better understanding an intent like
3298
- # its scope, content, result etc. Maximum character limit: 140 characters.
3543
+ # Human readable description for better understanding an intent like its scope,
3544
+ # content, result etc. Maximum character limit: 140 characters.
3299
3545
  # Corresponds to the JSON property `description`
3300
3546
  # @return [String]
3301
3547
  attr_accessor :description
@@ -3315,14 +3561,14 @@ module Google
3315
3561
  attr_accessor :is_fallback
3316
3562
  alias_method :is_fallback?, :is_fallback
3317
3563
 
3318
- # Optional. The key/value metadata to label an intent. Labels can contain
3319
- # lowercase letters, digits and the symbols '-' and '_'. International
3320
- # characters are allowed, including letters from unicase alphabets. Keys must
3321
- # start with a letter. Keys and values can be no longer than 63 characters and
3322
- # no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined
3323
- # labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-
3324
- # contextual The above labels do not require value. "sys-head" means the intent
3325
- # is a head intent. "sys-contextual" means the intent is a contextual intent.
3564
+ # The key/value metadata to label an intent. Labels can contain lowercase
3565
+ # letters, digits and the symbols '-' and '_'. International characters are
3566
+ # allowed, including letters from unicase alphabets. Keys must start with a
3567
+ # letter. Keys and values can be no longer than 63 characters and no more than
3568
+ # 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently
3569
+ # allowed Dialogflow defined labels include: * sys-head * sys-contextual The
3570
+ # above labels do not require value. "sys-head" means the intent is a head
3571
+ # intent. "sys-contextual" means the intent is a contextual intent.
3326
3572
  # Corresponds to the JSON property `labels`
3327
3573
  # @return [Hash<String,String>]
3328
3574
  attr_accessor :labels
@@ -4081,6 +4327,45 @@ module Google
4081
4327
  end
4082
4328
  end
4083
4329
 
4330
+ # Metadata returned for the Environments.RunContinuousTest long running
4331
+ # operation.
4332
+ class GoogleCloudDialogflowCxV3beta1RunContinuousTestMetadata
4333
+ include Google::Apis::Core::Hashable
4334
+
4335
+ # The test errors.
4336
+ # Corresponds to the JSON property `errors`
4337
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1TestError>]
4338
+ attr_accessor :errors
4339
+
4340
+ def initialize(**args)
4341
+ update!(**args)
4342
+ end
4343
+
4344
+ # Update properties of this object
4345
+ def update!(**args)
4346
+ @errors = args[:errors] if args.key?(:errors)
4347
+ end
4348
+ end
4349
+
4350
+ # The response message for Environments.RunContinuousTest.
4351
+ class GoogleCloudDialogflowCxV3beta1RunContinuousTestResponse
4352
+ include Google::Apis::Core::Hashable
4353
+
4354
+ # Represents a result from running a test case in an agent environment.
4355
+ # Corresponds to the JSON property `continuousTestResult`
4356
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1ContinuousTestResult]
4357
+ attr_accessor :continuous_test_result
4358
+
4359
+ def initialize(**args)
4360
+ update!(**args)
4361
+ end
4362
+
4363
+ # Update properties of this object
4364
+ def update!(**args)
4365
+ @continuous_test_result = args[:continuous_test_result] if args.key?(:continuous_test_result)
4366
+ end
4367
+ end
4368
+
4084
4369
  # Metadata returned for the TestCases.RunTestCase long running operation.
4085
4370
  class GoogleCloudDialogflowCxV3beta1RunTestCaseMetadata
4086
4371
  include Google::Apis::Core::Hashable
@@ -4486,7 +4771,8 @@ module Google
4486
4771
  end
4487
4772
  end
4488
4773
 
4489
- # The request message for a webhook call.
4774
+ # The request message for a webhook call. The request is sent as a JSON object
4775
+ # and the field names will be presented in camel cases.
4490
4776
  class GoogleCloudDialogflowCxV3beta1WebhookRequest
4491
4777
  include Google::Apis::Core::Hashable
4492
4778
 
@@ -4506,6 +4792,11 @@ module Google
4506
4792
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]
4507
4793
  attr_accessor :intent_info
4508
4794
 
4795
+ # The language code specified in the original request.
4796
+ # Corresponds to the JSON property `languageCode`
4797
+ # @return [String]
4798
+ attr_accessor :language_code
4799
+
4509
4800
  # The list of rich message responses to present to the user. Webhook can choose
4510
4801
  # to append or replace this list in WebhookResponse.fulfillment_response;
4511
4802
  # Corresponds to the JSON property `messages`
@@ -4532,6 +4823,30 @@ module Google
4532
4823
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowCxV3beta1SessionInfo]
4533
4824
  attr_accessor :session_info
4534
4825
 
4826
+ # If natural language text was provided as input, this field will contain a copy
4827
+ # of the text.
4828
+ # Corresponds to the JSON property `text`
4829
+ # @return [String]
4830
+ attr_accessor :text
4831
+
4832
+ # If natural language speech audio was provided as input, this field will
4833
+ # contain the transcript for the audio.
4834
+ # Corresponds to the JSON property `transcript`
4835
+ # @return [String]
4836
+ attr_accessor :transcript
4837
+
4838
+ # If an event was provided as input, this field will contain the name of the
4839
+ # event.
4840
+ # Corresponds to the JSON property `triggerEvent`
4841
+ # @return [String]
4842
+ attr_accessor :trigger_event
4843
+
4844
+ # If an intent was provided as input, this field will contain a copy of the
4845
+ # intent identifier. Format: `projects//locations//agents//intents/`.
4846
+ # Corresponds to the JSON property `triggerIntent`
4847
+ # @return [String]
4848
+ attr_accessor :trigger_intent
4849
+
4535
4850
  def initialize(**args)
4536
4851
  update!(**args)
4537
4852
  end
@@ -4541,11 +4856,16 @@ module Google
4541
4856
  @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
4542
4857
  @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
4543
4858
  @intent_info = args[:intent_info] if args.key?(:intent_info)
4859
+ @language_code = args[:language_code] if args.key?(:language_code)
4544
4860
  @messages = args[:messages] if args.key?(:messages)
4545
4861
  @page_info = args[:page_info] if args.key?(:page_info)
4546
4862
  @payload = args[:payload] if args.key?(:payload)
4547
4863
  @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
4548
4864
  @session_info = args[:session_info] if args.key?(:session_info)
4865
+ @text = args[:text] if args.key?(:text)
4866
+ @transcript = args[:transcript] if args.key?(:transcript)
4867
+ @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
4868
+ @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
4549
4869
  end
4550
4870
  end
4551
4871
 
@@ -6635,6 +6955,13 @@ module Google
6635
6955
  attr_accessor :all_required_params_present
6636
6956
  alias_method :all_required_params_present?, :all_required_params_present
6637
6957
 
6958
+ # Indicates whether the conversational query triggers a cancellation for slot
6959
+ # filling.
6960
+ # Corresponds to the JSON property `cancelsSlotFilling`
6961
+ # @return [Boolean]
6962
+ attr_accessor :cancels_slot_filling
6963
+ alias_method :cancels_slot_filling?, :cancels_slot_filling
6964
+
6638
6965
  # Free-form diagnostic information for the associated detect intent request. The
6639
6966
  # fields of this data can change without notice, so you should not write code
6640
6967
  # that depends on its structure. The data may contain: - webhook call latency -
@@ -6755,6 +7082,7 @@ module Google
6755
7082
  def update!(**args)
6756
7083
  @action = args[:action] if args.key?(:action)
6757
7084
  @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
7085
+ @cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
6758
7086
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
6759
7087
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
6760
7088
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
@@ -7650,7 +7978,7 @@ module Google
7650
7978
  include Google::Apis::Core::Hashable
7651
7979
 
7652
7980
  # The collection of current Dialogflow CX agent session parameters at the time
7653
- # of this response.
7981
+ # of this response. Deprecated: Use `parameters` instead.
7654
7982
  # Corresponds to the JSON property `cxSessionParameters`
7655
7983
  # @return [Hash<String,Object>]
7656
7984
  attr_accessor :cx_session_parameters
@@ -7672,6 +8000,20 @@ module Google
7672
8000
  # @return [String]
7673
8001
  attr_accessor :intent
7674
8002
 
8003
+ # The confidence of the match. Values range from 0.0 (completely uncertain) to 1.
8004
+ # 0 (completely certain). This value is for informational purpose only and is
8005
+ # only used to help match the best intent within the classification threshold.
8006
+ # This value may change for the same end-user expression at any time due to a
8007
+ # model retraining or change in implementation.
8008
+ # Corresponds to the JSON property `matchConfidence`
8009
+ # @return [Float]
8010
+ attr_accessor :match_confidence
8011
+
8012
+ # The collection of current parameters at the time of this response.
8013
+ # Corresponds to the JSON property `parameters`
8014
+ # @return [Hash<String,Object>]
8015
+ attr_accessor :parameters
8016
+
7675
8017
  # Response messages from the automated agent.
7676
8018
  # Corresponds to the JSON property `responseMessages`
7677
8019
  # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1ResponseMessage>]
@@ -7687,6 +8029,8 @@ module Google
7687
8029
  @detect_intent_response = args[:detect_intent_response] if args.key?(:detect_intent_response)
7688
8030
  @event = args[:event] if args.key?(:event)
7689
8031
  @intent = args[:intent] if args.key?(:intent)
8032
+ @match_confidence = args[:match_confidence] if args.key?(:match_confidence)
8033
+ @parameters = args[:parameters] if args.key?(:parameters)
7690
8034
  @response_messages = args[:response_messages] if args.key?(:response_messages)
7691
8035
  end
7692
8036
  end
@@ -8285,6 +8629,13 @@ module Google
8285
8629
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig]
8286
8630
  attr_accessor :human_agent_assistant_config
8287
8631
 
8632
+ # Defines the hand off to a live agent, typically on which external agent
8633
+ # service provider to connect to a conversation. Currently, this feature is not
8634
+ # general available, please contact Google to get access.
8635
+ # Corresponds to the JSON property `humanAgentHandoffConfig`
8636
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig]
8637
+ attr_accessor :human_agent_handoff_config
8638
+
8288
8639
  # Language code for the conversation profile. If not specified, the language is
8289
8640
  # en-US. Language at ConversationProfile should be set for all non en-us
8290
8641
  # languages.
@@ -8333,6 +8684,7 @@ module Google
8333
8684
  @create_time = args[:create_time] if args.key?(:create_time)
8334
8685
  @display_name = args[:display_name] if args.key?(:display_name)
8335
8686
  @human_agent_assistant_config = args[:human_agent_assistant_config] if args.key?(:human_agent_assistant_config)
8687
+ @human_agent_handoff_config = args[:human_agent_handoff_config] if args.key?(:human_agent_handoff_config)
8336
8688
  @language_code = args[:language_code] if args.key?(:language_code)
8337
8689
  @logging_config = args[:logging_config] if args.key?(:logging_config)
8338
8690
  @name = args[:name] if args.key?(:name)
@@ -8783,6 +9135,18 @@ module Google
8783
9135
  # @return [String]
8784
9136
  attr_accessor :description
8785
9137
 
9138
+ # By default, your agent responds to a matched intent with a static response. As
9139
+ # an alternative, you can provide a more dynamic response by using fulfillment.
9140
+ # When you enable fulfillment for an intent, Dialogflow responds to that intent
9141
+ # by calling a service that you define. For example, if an end-user wants to
9142
+ # schedule a haircut on Friday, your service can check your database and respond
9143
+ # to the end-user with availability information for Friday. For more information,
9144
+ # see the [fulfillment guide](https://cloud.google.com/dialogflow/docs/
9145
+ # fulfillment-overview).
9146
+ # Corresponds to the JSON property `fulfillment`
9147
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Fulfillment]
9148
+ attr_accessor :fulfillment
9149
+
8786
9150
  # Output only. The unique identifier of this agent environment. Supported
8787
9151
  # formats: - `projects//agent/environments/` - `projects//locations//agent/
8788
9152
  # environments/`
@@ -8796,6 +9160,11 @@ module Google
8796
9160
  # @return [String]
8797
9161
  attr_accessor :state
8798
9162
 
9163
+ # Instructs the speech synthesizer on how to generate the output audio content.
9164
+ # Corresponds to the JSON property `textToSpeechSettings`
9165
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TextToSpeechSettings]
9166
+ attr_accessor :text_to_speech_settings
9167
+
8799
9168
  # Output only. The last update time of this environment. This field is read-only,
8800
9169
  # i.e., it cannot be set by create and update methods.
8801
9170
  # Corresponds to the JSON property `updateTime`
@@ -8810,12 +9179,80 @@ module Google
8810
9179
  def update!(**args)
8811
9180
  @agent_version = args[:agent_version] if args.key?(:agent_version)
8812
9181
  @description = args[:description] if args.key?(:description)
9182
+ @fulfillment = args[:fulfillment] if args.key?(:fulfillment)
8813
9183
  @name = args[:name] if args.key?(:name)
8814
9184
  @state = args[:state] if args.key?(:state)
9185
+ @text_to_speech_settings = args[:text_to_speech_settings] if args.key?(:text_to_speech_settings)
8815
9186
  @update_time = args[:update_time] if args.key?(:update_time)
8816
9187
  end
8817
9188
  end
8818
9189
 
9190
+ # The response message for Environments.GetEnvironmentHistory.
9191
+ class GoogleCloudDialogflowV2beta1EnvironmentHistory
9192
+ include Google::Apis::Core::Hashable
9193
+
9194
+ # Output only. The list of agent environments. There will be a maximum number of
9195
+ # items returned based on the page_size field in the request.
9196
+ # Corresponds to the JSON property `entries`
9197
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry>]
9198
+ attr_accessor :entries
9199
+
9200
+ # Output only. Token to retrieve the next page of results, or empty if there are
9201
+ # no more results in the list.
9202
+ # Corresponds to the JSON property `nextPageToken`
9203
+ # @return [String]
9204
+ attr_accessor :next_page_token
9205
+
9206
+ # Output only. The name of the environment this history is for. Supported
9207
+ # formats: - `projects//agent/environments/` - `projects//locations//agent/
9208
+ # environments/`
9209
+ # Corresponds to the JSON property `parent`
9210
+ # @return [String]
9211
+ attr_accessor :parent
9212
+
9213
+ def initialize(**args)
9214
+ update!(**args)
9215
+ end
9216
+
9217
+ # Update properties of this object
9218
+ def update!(**args)
9219
+ @entries = args[:entries] if args.key?(:entries)
9220
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
9221
+ @parent = args[:parent] if args.key?(:parent)
9222
+ end
9223
+ end
9224
+
9225
+ # Represents an environment history entry.
9226
+ class GoogleCloudDialogflowV2beta1EnvironmentHistoryEntry
9227
+ include Google::Apis::Core::Hashable
9228
+
9229
+ # The agent version loaded into this environment history entry.
9230
+ # Corresponds to the JSON property `agentVersion`
9231
+ # @return [String]
9232
+ attr_accessor :agent_version
9233
+
9234
+ # The creation time of this environment history entry.
9235
+ # Corresponds to the JSON property `createTime`
9236
+ # @return [String]
9237
+ attr_accessor :create_time
9238
+
9239
+ # The developer-provided description for this environment history entry.
9240
+ # Corresponds to the JSON property `description`
9241
+ # @return [String]
9242
+ attr_accessor :description
9243
+
9244
+ def initialize(**args)
9245
+ update!(**args)
9246
+ end
9247
+
9248
+ # Update properties of this object
9249
+ def update!(**args)
9250
+ @agent_version = args[:agent_version] if args.key?(:agent_version)
9251
+ @create_time = args[:create_time] if args.key?(:create_time)
9252
+ @description = args[:description] if args.key?(:description)
9253
+ end
9254
+ end
9255
+
8819
9256
  # Events allow for matching intents by event name instead of the natural
8820
9257
  # language input. For instance, input `` can trigger a personalized welcome
8821
9258
  # response. The parameter `name` may be used by the agent in the response: `"
@@ -8974,7 +9411,8 @@ module Google
8974
9411
  class GoogleCloudDialogflowV2beta1Fulfillment
8975
9412
  include Google::Apis::Core::Hashable
8976
9413
 
8977
- # The human-readable name of the fulfillment, unique within the agent.
9414
+ # The human-readable name of the fulfillment, unique within the agent. This
9415
+ # field is not used for Fulfillment in an Environment.
8978
9416
  # Corresponds to the JSON property `displayName`
8979
9417
  # @return [String]
8980
9418
  attr_accessor :display_name
@@ -9000,7 +9438,8 @@ module Google
9000
9438
  attr_accessor :generic_web_service
9001
9439
 
9002
9440
  # Required. The unique identifier of the fulfillment. Supported formats: - `
9003
- # projects//agent/fulfillment` - `projects//locations//agent/fulfillment`
9441
+ # projects//agent/fulfillment` - `projects//locations//agent/fulfillment` This
9442
+ # field is not used for Fulfillment in an Environment.
9004
9443
  # Corresponds to the JSON property `name`
9005
9444
  # @return [String]
9006
9445
  attr_accessor :name
@@ -9046,8 +9485,9 @@ module Google
9046
9485
  class GoogleCloudDialogflowV2beta1FulfillmentGenericWebService
9047
9486
  include Google::Apis::Core::Hashable
9048
9487
 
9049
- # Indicates if generic web service is created through Cloud Functions
9050
- # integration. Defaults to false.
9488
+ # Optional. Indicates if generic web service is created through Cloud Functions
9489
+ # integration. Defaults to false. is_cloud_function is deprecated. Cloud
9490
+ # functions can be configured by its uri as a regular web service now.
9051
9491
  # Corresponds to the JSON property `isCloudFunction`
9052
9492
  # @return [Boolean]
9053
9493
  attr_accessor :is_cloud_function
@@ -9134,6 +9574,11 @@ module Google
9134
9574
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfig
9135
9575
  include Google::Apis::Core::Hashable
9136
9576
 
9577
+ # Detail human agent assistant config.
9578
+ # Corresponds to the JSON property `endUserSuggestionConfig`
9579
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig]
9580
+ attr_accessor :end_user_suggestion_config
9581
+
9137
9582
  # Detail human agent assistant config.
9138
9583
  # Corresponds to the JSON property `humanAgentSuggestionConfig`
9139
9584
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigSuggestionConfig]
@@ -9155,6 +9600,7 @@ module Google
9155
9600
 
9156
9601
  # Update properties of this object
9157
9602
  def update!(**args)
9603
+ @end_user_suggestion_config = args[:end_user_suggestion_config] if args.key?(:end_user_suggestion_config)
9158
9604
  @human_agent_suggestion_config = args[:human_agent_suggestion_config] if args.key?(:human_agent_suggestion_config)
9159
9605
  @message_analysis_config = args[:message_analysis_config] if args.key?(:message_analysis_config)
9160
9606
  @notification_config = args[:notification_config] if args.key?(:notification_config)
@@ -9166,8 +9612,7 @@ module Google
9166
9612
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigConversationModelConfig
9167
9613
  include Google::Apis::Core::Hashable
9168
9614
 
9169
- # Required. Conversation model resource name. Format: `projects//
9170
- # conversationModels/`.
9615
+ # Conversation model resource name. Format: `projects//conversationModels/`.
9171
9616
  # Corresponds to the JSON property `model`
9172
9617
  # @return [String]
9173
9618
  attr_accessor :model
@@ -9186,6 +9631,15 @@ module Google
9186
9631
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantConfigMessageAnalysisConfig
9187
9632
  include Google::Apis::Core::Hashable
9188
9633
 
9634
+ # Enable entity extraction in conversation messages on [agent assist stage](
9635
+ # https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
9636
+ # If unspecified, defaults to false. Currently, this feature is not general
9637
+ # available, please contact Google to get access.
9638
+ # Corresponds to the JSON property `enableEntityExtraction`
9639
+ # @return [Boolean]
9640
+ attr_accessor :enable_entity_extraction
9641
+ alias_method :enable_entity_extraction?, :enable_entity_extraction
9642
+
9189
9643
  # Enable sentiment analysis in conversation messages on [agent assist stage](
9190
9644
  # https://cloud.google.com/dialogflow/priv/docs/contact-center/basics#stages).
9191
9645
  # If unspecified, defaults to false. Sentiment analysis inspects user input and
@@ -9210,6 +9664,7 @@ module Google
9210
9664
 
9211
9665
  # Update properties of this object
9212
9666
  def update!(**args)
9667
+ @enable_entity_extraction = args[:enable_entity_extraction] if args.key?(:enable_entity_extraction)
9213
9668
  @enable_sentiment_analysis = args[:enable_sentiment_analysis] if args.key?(:enable_sentiment_analysis)
9214
9669
  end
9215
9670
  end
@@ -9519,6 +9974,93 @@ module Google
9519
9974
  end
9520
9975
  end
9521
9976
 
9977
+ # Defines the hand off to a live agent, typically on which external agent
9978
+ # service provider to connect to a conversation. Currently, this feature is not
9979
+ # general available, please contact Google to get access.
9980
+ class GoogleCloudDialogflowV2beta1HumanAgentHandoffConfig
9981
+ include Google::Apis::Core::Hashable
9982
+
9983
+ # Configuration specific to LivePerson (https://www.liveperson.com).
9984
+ # Corresponds to the JSON property `livePersonConfig`
9985
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig]
9986
+ attr_accessor :live_person_config
9987
+
9988
+ # Configuration specific to Salesforce Live Agent.
9989
+ # Corresponds to the JSON property `salesforceLiveAgentConfig`
9990
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig]
9991
+ attr_accessor :salesforce_live_agent_config
9992
+
9993
+ def initialize(**args)
9994
+ update!(**args)
9995
+ end
9996
+
9997
+ # Update properties of this object
9998
+ def update!(**args)
9999
+ @live_person_config = args[:live_person_config] if args.key?(:live_person_config)
10000
+ @salesforce_live_agent_config = args[:salesforce_live_agent_config] if args.key?(:salesforce_live_agent_config)
10001
+ end
10002
+ end
10003
+
10004
+ # Configuration specific to LivePerson (https://www.liveperson.com).
10005
+ class GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigLivePersonConfig
10006
+ include Google::Apis::Core::Hashable
10007
+
10008
+ # Required. Account number of the LivePerson account to connect. This is the
10009
+ # account number you input at the login page.
10010
+ # Corresponds to the JSON property `accountNumber`
10011
+ # @return [String]
10012
+ attr_accessor :account_number
10013
+
10014
+ def initialize(**args)
10015
+ update!(**args)
10016
+ end
10017
+
10018
+ # Update properties of this object
10019
+ def update!(**args)
10020
+ @account_number = args[:account_number] if args.key?(:account_number)
10021
+ end
10022
+ end
10023
+
10024
+ # Configuration specific to Salesforce Live Agent.
10025
+ class GoogleCloudDialogflowV2beta1HumanAgentHandoffConfigSalesforceLiveAgentConfig
10026
+ include Google::Apis::Core::Hashable
10027
+
10028
+ # Required. Live Agent chat button ID.
10029
+ # Corresponds to the JSON property `buttonId`
10030
+ # @return [String]
10031
+ attr_accessor :button_id
10032
+
10033
+ # Required. Live Agent deployment ID.
10034
+ # Corresponds to the JSON property `deploymentId`
10035
+ # @return [String]
10036
+ attr_accessor :deployment_id
10037
+
10038
+ # Required. Domain of the Live Agent endpoint for this agent. You can find the
10039
+ # endpoint URL in the `Live Agent settings` page. For example if URL has the
10040
+ # form https://d.la4-c2-phx.salesforceliveagent.com/..., you should fill in d.
10041
+ # la4-c2-phx.salesforceliveagent.com.
10042
+ # Corresponds to the JSON property `endpointDomain`
10043
+ # @return [String]
10044
+ attr_accessor :endpoint_domain
10045
+
10046
+ # Required. The organization ID of the Salesforce account.
10047
+ # Corresponds to the JSON property `organizationId`
10048
+ # @return [String]
10049
+ attr_accessor :organization_id
10050
+
10051
+ def initialize(**args)
10052
+ update!(**args)
10053
+ end
10054
+
10055
+ # Update properties of this object
10056
+ def update!(**args)
10057
+ @button_id = args[:button_id] if args.key?(:button_id)
10058
+ @deployment_id = args[:deployment_id] if args.key?(:deployment_id)
10059
+ @endpoint_domain = args[:endpoint_domain] if args.key?(:endpoint_domain)
10060
+ @organization_id = args[:organization_id] if args.key?(:organization_id)
10061
+ end
10062
+ end
10063
+
9522
10064
  # The request message for Agents.ImportAgent.
9523
10065
  class GoogleCloudDialogflowV2beta1ImportAgentRequest
9524
10066
  include Google::Apis::Core::Hashable
@@ -11969,6 +12511,33 @@ module Google
11969
12511
  end
11970
12512
  end
11971
12513
 
12514
+ # The response message for Versions.ListVersions.
12515
+ class GoogleCloudDialogflowV2beta1ListVersionsResponse
12516
+ include Google::Apis::Core::Hashable
12517
+
12518
+ # Token to retrieve the next page of results, or empty if there are no more
12519
+ # results in the list.
12520
+ # Corresponds to the JSON property `nextPageToken`
12521
+ # @return [String]
12522
+ attr_accessor :next_page_token
12523
+
12524
+ # The list of agent versions. There will be a maximum number of items returned
12525
+ # based on the page_size field in the request.
12526
+ # Corresponds to the JSON property `versions`
12527
+ # @return [Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Version>]
12528
+ attr_accessor :versions
12529
+
12530
+ def initialize(**args)
12531
+ update!(**args)
12532
+ end
12533
+
12534
+ # Update properties of this object
12535
+ def update!(**args)
12536
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
12537
+ @versions = args[:versions] if args.key?(:versions)
12538
+ end
12539
+ end
12540
+
11972
12541
  # Defines logging behavior for conversation lifecycle events.
11973
12542
  class GoogleCloudDialogflowV2beta1LoggingConfig
11974
12543
  include Google::Apis::Core::Hashable
@@ -12287,6 +12856,11 @@ module Google
12287
12856
  # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1InputAudioConfig]
12288
12857
  attr_accessor :audio_config
12289
12858
 
12859
+ # A wrapper of repeated TelephonyDtmf digits.
12860
+ # Corresponds to the JSON property `dtmf`
12861
+ # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1TelephonyDtmfEvents]
12862
+ attr_accessor :dtmf
12863
+
12290
12864
  # Events allow for matching intents by event name instead of the natural
12291
12865
  # language input. For instance, input `` can trigger a personalized welcome
12292
12866
  # response. The parameter `name` may be used by the agent in the response: `"
@@ -12307,6 +12881,7 @@ module Google
12307
12881
  # Update properties of this object
12308
12882
  def update!(**args)
12309
12883
  @audio_config = args[:audio_config] if args.key?(:audio_config)
12884
+ @dtmf = args[:dtmf] if args.key?(:dtmf)
12310
12885
  @event = args[:event] if args.key?(:event)
12311
12886
  @text = args[:text] if args.key?(:text)
12312
12887
  end
@@ -12323,8 +12898,8 @@ module Google
12323
12898
 
12324
12899
  # An object that represents a latitude/longitude pair. This is expressed as a
12325
12900
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
12326
- # specified otherwise, this must conform to the WGS84 standard. Values must be
12327
- # within normalized ranges.
12901
+ # specified otherwise, this object must conform to the WGS84 standard. Values
12902
+ # must be within normalized ranges.
12328
12903
  # Corresponds to the JSON property `geoLocation`
12329
12904
  # @return [Google::Apis::DialogflowV2beta1::GoogleTypeLatLng]
12330
12905
  attr_accessor :geo_location
@@ -12427,6 +13002,13 @@ module Google
12427
13002
  attr_accessor :all_required_params_present
12428
13003
  alias_method :all_required_params_present?, :all_required_params_present
12429
13004
 
13005
+ # Indicates whether the conversational query triggers a cancellation for slot
13006
+ # filling.
13007
+ # Corresponds to the JSON property `cancelsSlotFilling`
13008
+ # @return [Boolean]
13009
+ attr_accessor :cancels_slot_filling
13010
+ alias_method :cancels_slot_filling?, :cancels_slot_filling
13011
+
12430
13012
  # Free-form diagnostic information for the associated detect intent request. The
12431
13013
  # fields of this data can change without notice, so you should not write code
12432
13014
  # that depends on its structure. The data may contain: - webhook call latency -
@@ -12552,6 +13134,7 @@ module Google
12552
13134
  def update!(**args)
12553
13135
  @action = args[:action] if args.key?(:action)
12554
13136
  @all_required_params_present = args[:all_required_params_present] if args.key?(:all_required_params_present)
13137
+ @cancels_slot_filling = args[:cancels_slot_filling] if args.key?(:cancels_slot_filling)
12555
13138
  @diagnostic_info = args[:diagnostic_info] if args.key?(:diagnostic_info)
12556
13139
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
12557
13140
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
@@ -13452,6 +14035,25 @@ module Google
13452
14035
  end
13453
14036
  end
13454
14037
 
14038
+ # A wrapper of repeated TelephonyDtmf digits.
14039
+ class GoogleCloudDialogflowV2beta1TelephonyDtmfEvents
14040
+ include Google::Apis::Core::Hashable
14041
+
14042
+ # A sequence of TelephonyDtmf digits.
14043
+ # Corresponds to the JSON property `dtmfEvents`
14044
+ # @return [Array<String>]
14045
+ attr_accessor :dtmf_events
14046
+
14047
+ def initialize(**args)
14048
+ update!(**args)
14049
+ end
14050
+
14051
+ # Update properties of this object
14052
+ def update!(**args)
14053
+ @dtmf_events = args[:dtmf_events] if args.key?(:dtmf_events)
14054
+ end
14055
+ end
14056
+
13455
14057
  # Represents the natural language text to be processed.
13456
14058
  class GoogleCloudDialogflowV2beta1TextInput
13457
14059
  include Google::Apis::Core::Hashable
@@ -13481,6 +14083,51 @@ module Google
13481
14083
  end
13482
14084
  end
13483
14085
 
14086
+ # Instructs the speech synthesizer on how to generate the output audio content.
14087
+ class GoogleCloudDialogflowV2beta1TextToSpeechSettings
14088
+ include Google::Apis::Core::Hashable
14089
+
14090
+ # Optional. Indicates whether text to speech is enabled. Even when this field is
14091
+ # false, other settings in this proto are still retained.
14092
+ # Corresponds to the JSON property `enableTextToSpeech`
14093
+ # @return [Boolean]
14094
+ attr_accessor :enable_text_to_speech
14095
+ alias_method :enable_text_to_speech?, :enable_text_to_speech
14096
+
14097
+ # Required. Audio encoding of the synthesized audio content.
14098
+ # Corresponds to the JSON property `outputAudioEncoding`
14099
+ # @return [String]
14100
+ attr_accessor :output_audio_encoding
14101
+
14102
+ # Optional. The synthesis sample rate (in hertz) for this audio. If not provided,
14103
+ # then the synthesizer will use the default sample rate based on the audio
14104
+ # encoding. If this is different from the voice's natural sample rate, then the
14105
+ # synthesizer will honor this request by converting to the desired sample rate (
14106
+ # which might result in worse audio quality).
14107
+ # Corresponds to the JSON property `sampleRateHertz`
14108
+ # @return [Fixnum]
14109
+ attr_accessor :sample_rate_hertz
14110
+
14111
+ # Optional. Configuration of how speech should be synthesized, mapping from
14112
+ # language (https://cloud.google.com/dialogflow/docs/reference/language) to
14113
+ # SynthesizeSpeechConfig.
14114
+ # Corresponds to the JSON property `synthesizeSpeechConfigs`
14115
+ # @return [Hash<String,Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SynthesizeSpeechConfig>]
14116
+ attr_accessor :synthesize_speech_configs
14117
+
14118
+ def initialize(**args)
14119
+ update!(**args)
14120
+ end
14121
+
14122
+ # Update properties of this object
14123
+ def update!(**args)
14124
+ @enable_text_to_speech = args[:enable_text_to_speech] if args.key?(:enable_text_to_speech)
14125
+ @output_audio_encoding = args[:output_audio_encoding] if args.key?(:output_audio_encoding)
14126
+ @sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
14127
+ @synthesize_speech_configs = args[:synthesize_speech_configs] if args.key?(:synthesize_speech_configs)
14128
+ end
14129
+ end
14130
+
13484
14131
  # The request message for Agents.TrainAgent.
13485
14132
  class GoogleCloudDialogflowV2beta1TrainAgentRequest
13486
14133
  include Google::Apis::Core::Hashable
@@ -13550,6 +14197,61 @@ module Google
13550
14197
  end
13551
14198
  end
13552
14199
 
14200
+ # You can create multiple versions of your agent and publish them to separate
14201
+ # environments. When you edit an agent, you are editing the draft agent. At any
14202
+ # point, you can save the draft agent as an agent version, which is an immutable
14203
+ # snapshot of your agent. When you save the draft agent, it is published to the
14204
+ # default environment. When you create agent versions, you can publish them to
14205
+ # custom environments. You can create a variety of custom environments for: -
14206
+ # testing - development - production - etc. For more information, see the [
14207
+ # versions and environments guide](https://cloud.google.com/dialogflow/docs/
14208
+ # agents-versions).
14209
+ class GoogleCloudDialogflowV2beta1Version
14210
+ include Google::Apis::Core::Hashable
14211
+
14212
+ # Output only. The creation time of this version. This field is read-only, i.e.,
14213
+ # it cannot be set by create and update methods.
14214
+ # Corresponds to the JSON property `createTime`
14215
+ # @return [String]
14216
+ attr_accessor :create_time
14217
+
14218
+ # Optional. The developer-provided description of this version.
14219
+ # Corresponds to the JSON property `description`
14220
+ # @return [String]
14221
+ attr_accessor :description
14222
+
14223
+ # Output only. The unique identifier of this agent version. Supported formats: -
14224
+ # `projects//agent/versions/` - `projects//locations//agent/versions/`
14225
+ # Corresponds to the JSON property `name`
14226
+ # @return [String]
14227
+ attr_accessor :name
14228
+
14229
+ # Output only. The status of this version. This field is read-only and cannot be
14230
+ # set by create and update methods.
14231
+ # Corresponds to the JSON property `status`
14232
+ # @return [String]
14233
+ attr_accessor :status
14234
+
14235
+ # Output only. The sequential number of this version. This field is read-only
14236
+ # which means it cannot be set by create and update methods.
14237
+ # Corresponds to the JSON property `versionNumber`
14238
+ # @return [Fixnum]
14239
+ attr_accessor :version_number
14240
+
14241
+ def initialize(**args)
14242
+ update!(**args)
14243
+ end
14244
+
14245
+ # Update properties of this object
14246
+ def update!(**args)
14247
+ @create_time = args[:create_time] if args.key?(:create_time)
14248
+ @description = args[:description] if args.key?(:description)
14249
+ @name = args[:name] if args.key?(:name)
14250
+ @status = args[:status] if args.key?(:status)
14251
+ @version_number = args[:version_number] if args.key?(:version_number)
14252
+ end
14253
+ end
14254
+
13553
14255
  # Description of which voice to use for speech synthesis.
13554
14256
  class GoogleCloudDialogflowV2beta1VoiceSelectionParams
13555
14257
  include Google::Apis::Core::Hashable
@@ -14012,8 +14714,8 @@ module Google
14012
14714
 
14013
14715
  # An object that represents a latitude/longitude pair. This is expressed as a
14014
14716
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
14015
- # specified otherwise, this must conform to the WGS84 standard. Values must be
14016
- # within normalized ranges.
14717
+ # specified otherwise, this object must conform to the WGS84 standard. Values
14718
+ # must be within normalized ranges.
14017
14719
  class GoogleTypeLatLng
14018
14720
  include Google::Apis::Core::Hashable
14019
14721