google-apis-dialogflow_v3beta1 0.6.0 → 0.11.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: 8584cf25824816e2fcab1b05f4ab01e445b4c1c4abe96d41d7337f9236c33a26
4
- data.tar.gz: d05014e43e479bc8704573acf94559dd32ad8608606673df14113279d7dbf0f7
3
+ metadata.gz: 54f5f414bcaaeaf68893c281b50a928adc6a17453738b1c47193bef2a30e2427
4
+ data.tar.gz: 74a66d7f99af321853d47beb3c1b7288c0f2258007a5f5f7782731b3bd6a471e
5
5
  SHA512:
6
- metadata.gz: 31c0de3d10de5540afc05919076ff144647e8af66ff57ebd4d435baa60274218b08d9761c9f0f90c620579beb7e95ec7f568e89fb9c1f65454f81085699e4f52
7
- data.tar.gz: c808c62494663450d260425b5454b622e1f90fd3e91b4da507ed3b2004d1bc4a6e147207af5503d7ff725580249ef7bcf8d28d50a74918edb8aa0882e256409a
6
+ metadata.gz: 290526dd9bed57a82d2da175a64d88f5c9a84c4bfaf02a25cceaabd3d3939177cc964e1dc3b9785e0088ee199bf4543f87444968de7fc5ed524a3d1dda576940
7
+ data.tar.gz: 349cf296b652f1020f4d5d834dc0ef144a80434d06847533bf2ec7416a8ded14f4a41a17d6f00ad2da571991b870ec561d68da0d68b46c27bedbaa85df9130bf
data/CHANGELOG.md CHANGED
@@ -1,5 +1,26 @@
1
1
  # Release history for google-apis-dialogflow_v3beta1
2
2
 
3
+ ### v0.11.0 (2021-05-12)
4
+
5
+ * Regenerated from discovery document revision 20210510
6
+
7
+ ### v0.10.0 (2021-04-01)
8
+
9
+ * Regenerated from discovery document revision 20210329
10
+
11
+ ### v0.9.0 (2021-03-23)
12
+
13
+ * Regenerated from discovery document revision 20210320
14
+
15
+ ### v0.8.0 (2021-03-16)
16
+
17
+ * Regenerated from discovery document revision 20210314
18
+
19
+ ### v0.7.0 (2021-03-09)
20
+
21
+ * Regenerated from discovery document revision 20210307
22
+ * Regenerated using generator version 0.2.0
23
+
3
24
  ### v0.6.0 (2021-03-04)
4
25
 
5
26
  * Unspecified changes
@@ -30,7 +30,7 @@ module Google
30
30
  # This is NOT the gem version.
31
31
  VERSION = 'V3beta1'
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
@@ -415,6 +415,33 @@ module Google
415
415
  end
416
416
  end
417
417
 
418
+ # The response message for Flows.ExportFlow.
419
+ class GoogleCloudDialogflowCxV3ExportFlowResponse
420
+ include Google::Apis::Core::Hashable
421
+
422
+ # Uncompressed raw byte content for flow.
423
+ # Corresponds to the JSON property `flowContent`
424
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
425
+ # @return [String]
426
+ attr_accessor :flow_content
427
+
428
+ # The URI to a file containing the exported flow. This field is populated only
429
+ # if `flow_uri` is specified in ExportFlowRequest.
430
+ # Corresponds to the JSON property `flowUri`
431
+ # @return [String]
432
+ attr_accessor :flow_uri
433
+
434
+ def initialize(**args)
435
+ update!(**args)
436
+ end
437
+
438
+ # Update properties of this object
439
+ def update!(**args)
440
+ @flow_content = args[:flow_content] if args.key?(:flow_content)
441
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
442
+ end
443
+ end
444
+
418
445
  # Metadata returned for the TestCases.ExportTestCases long running operation.
419
446
  class GoogleCloudDialogflowCxV3ExportTestCasesMetadata
420
447
  include Google::Apis::Core::Hashable
@@ -813,6 +840,26 @@ module Google
813
840
  end
814
841
  end
815
842
 
843
+ # The response message for Flows.ImportFlow.
844
+ class GoogleCloudDialogflowCxV3ImportFlowResponse
845
+ include Google::Apis::Core::Hashable
846
+
847
+ # The unique identifier of the new flow. Format: `projects//locations//agents//
848
+ # flows/`.
849
+ # Corresponds to the JSON property `flow`
850
+ # @return [String]
851
+ attr_accessor :flow
852
+
853
+ def initialize(**args)
854
+ update!(**args)
855
+ end
856
+
857
+ # Update properties of this object
858
+ def update!(**args)
859
+ @flow = args[:flow] if args.key?(:flow)
860
+ end
861
+ end
862
+
816
863
  # Metadata returned for the TestCases.ImportTestCases long running operation.
817
864
  class GoogleCloudDialogflowCxV3ImportTestCasesMetadata
818
865
  include Google::Apis::Core::Hashable
@@ -936,8 +983,8 @@ module Google
936
983
  class GoogleCloudDialogflowCxV3Intent
937
984
  include Google::Apis::Core::Hashable
938
985
 
939
- # Optional. Human readable description for better understanding an intent like
940
- # its scope, content, result etc. Maximum character limit: 140 characters.
986
+ # Human readable description for better understanding an intent like its scope,
987
+ # content, result etc. Maximum character limit: 140 characters.
941
988
  # Corresponds to the JSON property `description`
942
989
  # @return [String]
943
990
  attr_accessor :description
@@ -957,14 +1004,14 @@ module Google
957
1004
  attr_accessor :is_fallback
958
1005
  alias_method :is_fallback?, :is_fallback
959
1006
 
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.
1007
+ # The key/value metadata to label an intent. Labels can contain lowercase
1008
+ # letters, digits and the symbols '-' and '_'. International characters are
1009
+ # allowed, including letters from unicase alphabets. Keys must start with a
1010
+ # letter. Keys and values can be no longer than 63 characters and no more than
1011
+ # 128 bytes. Prefix "sys." is reserved for Dialogflow defined labels. Currently
1012
+ # allowed Dialogflow defined labels include: * sys.head * sys.contextual The
1013
+ # above labels do not require value. "sys.head" means the intent is a head
1014
+ # intent. "sys.contextual" means the intent is a contextual intent.
968
1015
  # Corresponds to the JSON property `labels`
969
1016
  # @return [Hash<String,String>]
970
1017
  attr_accessor :labels
@@ -2128,7 +2175,8 @@ module Google
2128
2175
  end
2129
2176
  end
2130
2177
 
2131
- # The request message for a webhook call.
2178
+ # The request message for a webhook call. The request is sent as a JSON object
2179
+ # and the field names will be presented in camel cases.
2132
2180
  class GoogleCloudDialogflowCxV3WebhookRequest
2133
2181
  include Google::Apis::Core::Hashable
2134
2182
 
@@ -2148,6 +2196,11 @@ module Google
2148
2196
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3WebhookRequestIntentInfo]
2149
2197
  attr_accessor :intent_info
2150
2198
 
2199
+ # The language code specified in the original request.
2200
+ # Corresponds to the JSON property `languageCode`
2201
+ # @return [String]
2202
+ attr_accessor :language_code
2203
+
2151
2204
  # The list of rich message responses to present to the user. Webhook can choose
2152
2205
  # to append or replace this list in WebhookResponse.fulfillment_response;
2153
2206
  # Corresponds to the JSON property `messages`
@@ -2174,6 +2227,30 @@ module Google
2174
2227
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3SessionInfo]
2175
2228
  attr_accessor :session_info
2176
2229
 
2230
+ # If natural language text was provided as input, this field will contain a copy
2231
+ # of the text.
2232
+ # Corresponds to the JSON property `text`
2233
+ # @return [String]
2234
+ attr_accessor :text
2235
+
2236
+ # If natural language speech audio was provided as input, this field will
2237
+ # contain the transcript for the audio.
2238
+ # Corresponds to the JSON property `transcript`
2239
+ # @return [String]
2240
+ attr_accessor :transcript
2241
+
2242
+ # If an event was provided as input, this field will contain the name of the
2243
+ # event.
2244
+ # Corresponds to the JSON property `triggerEvent`
2245
+ # @return [String]
2246
+ attr_accessor :trigger_event
2247
+
2248
+ # If an intent was provided as input, this field will contain a copy of the
2249
+ # intent identifier. Format: `projects//locations//agents//intents/`.
2250
+ # Corresponds to the JSON property `triggerIntent`
2251
+ # @return [String]
2252
+ attr_accessor :trigger_intent
2253
+
2177
2254
  def initialize(**args)
2178
2255
  update!(**args)
2179
2256
  end
@@ -2183,11 +2260,16 @@ module Google
2183
2260
  @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
2184
2261
  @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
2185
2262
  @intent_info = args[:intent_info] if args.key?(:intent_info)
2263
+ @language_code = args[:language_code] if args.key?(:language_code)
2186
2264
  @messages = args[:messages] if args.key?(:messages)
2187
2265
  @page_info = args[:page_info] if args.key?(:page_info)
2188
2266
  @payload = args[:payload] if args.key?(:payload)
2189
2267
  @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
2190
2268
  @session_info = args[:session_info] if args.key?(:session_info)
2269
+ @text = args[:text] if args.key?(:text)
2270
+ @transcript = args[:transcript] if args.key?(:transcript)
2271
+ @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
2272
+ @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
2191
2273
  end
2192
2274
  end
2193
2275
 
@@ -2451,6 +2533,12 @@ module Google
2451
2533
  # @return [String]
2452
2534
  attr_accessor :start_flow
2453
2535
 
2536
+ # The list of all languages supported by the agent (except for the `
2537
+ # default_language_code`).
2538
+ # Corresponds to the JSON property `supportedLanguageCodes`
2539
+ # @return [Array<String>]
2540
+ attr_accessor :supported_language_codes
2541
+
2454
2542
  # Required. The time zone of the agent from the [time zone database](https://www.
2455
2543
  # iana.org/time-zones), e.g., America/New_York, Europe/Paris.
2456
2544
  # Corresponds to the JSON property `timeZone`
@@ -2473,6 +2561,7 @@ module Google
2473
2561
  @security_settings = args[:security_settings] if args.key?(:security_settings)
2474
2562
  @speech_to_text_settings = args[:speech_to_text_settings] if args.key?(:speech_to_text_settings)
2475
2563
  @start_flow = args[:start_flow] if args.key?(:start_flow)
2564
+ @supported_language_codes = args[:supported_language_codes] if args.key?(:supported_language_codes)
2476
2565
  @time_zone = args[:time_zone] if args.key?(:time_zone)
2477
2566
  end
2478
2567
  end
@@ -3278,7 +3367,9 @@ module Google
3278
3367
  # @return [String]
3279
3368
  attr_accessor :end_time
3280
3369
 
3281
- # Maximum number of days to run the experiment.
3370
+ # Maximum number of days to run the experiment. If auto-rollout is not enabled,
3371
+ # default value and maximum will be 30 days. If auto-rollout is enabled, default
3372
+ # value and maximum will be 6 days.
3282
3373
  # Corresponds to the JSON property `experimentLength`
3283
3374
  # @return [String]
3284
3375
  attr_accessor :experiment_length
@@ -3522,6 +3613,12 @@ module Google
3522
3613
  # @return [String]
3523
3614
  attr_accessor :agent_uri
3524
3615
 
3616
+ # Optional. Environment name. If not set, draft environment is assumed. Format: `
3617
+ # projects//locations//agents//environments/`.
3618
+ # Corresponds to the JSON property `environment`
3619
+ # @return [String]
3620
+ attr_accessor :environment
3621
+
3525
3622
  def initialize(**args)
3526
3623
  update!(**args)
3527
3624
  end
@@ -3529,6 +3626,7 @@ module Google
3529
3626
  # Update properties of this object
3530
3627
  def update!(**args)
3531
3628
  @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
3629
+ @environment = args[:environment] if args.key?(:environment)
3532
3630
  end
3533
3631
  end
3534
3632
 
@@ -3559,6 +3657,61 @@ module Google
3559
3657
  end
3560
3658
  end
3561
3659
 
3660
+ # The request message for Flows.ExportFlow.
3661
+ class GoogleCloudDialogflowCxV3beta1ExportFlowRequest
3662
+ include Google::Apis::Core::Hashable
3663
+
3664
+ # Optional. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
3665
+ # URI to export the flow to. The format of this URI must be `gs:///`. If left
3666
+ # unspecified, the serialized flow is returned inline.
3667
+ # Corresponds to the JSON property `flowUri`
3668
+ # @return [String]
3669
+ attr_accessor :flow_uri
3670
+
3671
+ # Optional. Whether to export flows referenced by the specified flow.
3672
+ # Corresponds to the JSON property `includeReferencedFlows`
3673
+ # @return [Boolean]
3674
+ attr_accessor :include_referenced_flows
3675
+ alias_method :include_referenced_flows?, :include_referenced_flows
3676
+
3677
+ def initialize(**args)
3678
+ update!(**args)
3679
+ end
3680
+
3681
+ # Update properties of this object
3682
+ def update!(**args)
3683
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
3684
+ @include_referenced_flows = args[:include_referenced_flows] if args.key?(:include_referenced_flows)
3685
+ end
3686
+ end
3687
+
3688
+ # The response message for Flows.ExportFlow.
3689
+ class GoogleCloudDialogflowCxV3beta1ExportFlowResponse
3690
+ include Google::Apis::Core::Hashable
3691
+
3692
+ # Uncompressed raw byte content for flow.
3693
+ # Corresponds to the JSON property `flowContent`
3694
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
3695
+ # @return [String]
3696
+ attr_accessor :flow_content
3697
+
3698
+ # The URI to a file containing the exported flow. This field is populated only
3699
+ # if `flow_uri` is specified in ExportFlowRequest.
3700
+ # Corresponds to the JSON property `flowUri`
3701
+ # @return [String]
3702
+ attr_accessor :flow_uri
3703
+
3704
+ def initialize(**args)
3705
+ update!(**args)
3706
+ end
3707
+
3708
+ # Update properties of this object
3709
+ def update!(**args)
3710
+ @flow_content = args[:flow_content] if args.key?(:flow_content)
3711
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
3712
+ end
3713
+ end
3714
+
3562
3715
  # Metadata returned for the TestCases.ExportTestCases long running operation.
3563
3716
  class GoogleCloudDialogflowCxV3beta1ExportTestCasesMetadata
3564
3717
  include Google::Apis::Core::Hashable
@@ -3683,6 +3836,15 @@ module Google
3683
3836
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1NluSettings]
3684
3837
  attr_accessor :nlu_settings
3685
3838
 
3839
+ # A flow's transition route group serve two purposes: * They are responsible for
3840
+ # matching the user's first utterances in the flow. * They are inherited by
3841
+ # every page's transition route groups. Transition route groups defined in the
3842
+ # page have higher priority than those defined in the flow. Format:`projects//
3843
+ # locations//agents//flows//transitionRouteGroups/`.
3844
+ # Corresponds to the JSON property `transitionRouteGroups`
3845
+ # @return [Array<String>]
3846
+ attr_accessor :transition_route_groups
3847
+
3686
3848
  # A flow's transition routes serve two purposes: * They are responsible for
3687
3849
  # matching the user's first utterances in the flow. * They are inherited by
3688
3850
  # every page's transition routes and can support use cases such as the user
@@ -3707,6 +3869,7 @@ module Google
3707
3869
  @event_handlers = args[:event_handlers] if args.key?(:event_handlers)
3708
3870
  @name = args[:name] if args.key?(:name)
3709
3871
  @nlu_settings = args[:nlu_settings] if args.key?(:nlu_settings)
3872
+ @transition_route_groups = args[:transition_route_groups] if args.key?(:transition_route_groups)
3710
3873
  @transition_routes = args[:transition_routes] if args.key?(:transition_routes)
3711
3874
  end
3712
3875
  end
@@ -4178,6 +4341,59 @@ module Google
4178
4341
  end
4179
4342
  end
4180
4343
 
4344
+ # The request message for Flows.ImportFlow.
4345
+ class GoogleCloudDialogflowCxV3beta1ImportFlowRequest
4346
+ include Google::Apis::Core::Hashable
4347
+
4348
+ # Uncompressed raw byte content for flow.
4349
+ # Corresponds to the JSON property `flowContent`
4350
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
4351
+ # @return [String]
4352
+ attr_accessor :flow_content
4353
+
4354
+ # The [Google Cloud Storage](https://cloud.google.com/storage/docs/) URI to
4355
+ # import flow from. The format of this URI must be `gs:///`.
4356
+ # Corresponds to the JSON property `flowUri`
4357
+ # @return [String]
4358
+ attr_accessor :flow_uri
4359
+
4360
+ # Flow import mode. If not specified, `KEEP` is assumed.
4361
+ # Corresponds to the JSON property `importOption`
4362
+ # @return [String]
4363
+ attr_accessor :import_option
4364
+
4365
+ def initialize(**args)
4366
+ update!(**args)
4367
+ end
4368
+
4369
+ # Update properties of this object
4370
+ def update!(**args)
4371
+ @flow_content = args[:flow_content] if args.key?(:flow_content)
4372
+ @flow_uri = args[:flow_uri] if args.key?(:flow_uri)
4373
+ @import_option = args[:import_option] if args.key?(:import_option)
4374
+ end
4375
+ end
4376
+
4377
+ # The response message for Flows.ImportFlow.
4378
+ class GoogleCloudDialogflowCxV3beta1ImportFlowResponse
4379
+ include Google::Apis::Core::Hashable
4380
+
4381
+ # The unique identifier of the new flow. Format: `projects//locations//agents//
4382
+ # flows/`.
4383
+ # Corresponds to the JSON property `flow`
4384
+ # @return [String]
4385
+ attr_accessor :flow
4386
+
4387
+ def initialize(**args)
4388
+ update!(**args)
4389
+ end
4390
+
4391
+ # Update properties of this object
4392
+ def update!(**args)
4393
+ @flow = args[:flow] if args.key?(:flow)
4394
+ end
4395
+ end
4396
+
4181
4397
  # Metadata returned for the TestCases.ImportTestCases long running operation.
4182
4398
  class GoogleCloudDialogflowCxV3beta1ImportTestCasesMetadata
4183
4399
  include Google::Apis::Core::Hashable
@@ -4328,8 +4544,8 @@ module Google
4328
4544
  class GoogleCloudDialogflowCxV3beta1Intent
4329
4545
  include Google::Apis::Core::Hashable
4330
4546
 
4331
- # Optional. Human readable description for better understanding an intent like
4332
- # its scope, content, result etc. Maximum character limit: 140 characters.
4547
+ # Human readable description for better understanding an intent like its scope,
4548
+ # content, result etc. Maximum character limit: 140 characters.
4333
4549
  # Corresponds to the JSON property `description`
4334
4550
  # @return [String]
4335
4551
  attr_accessor :description
@@ -4349,14 +4565,14 @@ module Google
4349
4565
  attr_accessor :is_fallback
4350
4566
  alias_method :is_fallback?, :is_fallback
4351
4567
 
4352
- # Optional. The key/value metadata to label an intent. Labels can contain
4353
- # lowercase letters, digits and the symbols '-' and '_'. International
4354
- # characters are allowed, including letters from unicase alphabets. Keys must
4355
- # start with a letter. Keys and values can be no longer than 63 characters and
4356
- # no more than 128 bytes. Prefix "sys-" is reserved for Dialogflow defined
4357
- # labels. Currently allowed Dialogflow defined labels include: * sys-head * sys-
4358
- # contextual The above labels do not require value. "sys-head" means the intent
4359
- # is a head intent. "sys-contextual" means the intent is a contextual intent.
4568
+ # The key/value metadata to label an intent. Labels can contain lowercase
4569
+ # letters, digits and the symbols '-' and '_'. International characters are
4570
+ # allowed, including letters from unicase alphabets. Keys must start with a
4571
+ # letter. Keys and values can be no longer than 63 characters and no more than
4572
+ # 128 bytes. Prefix "sys-" is reserved for Dialogflow defined labels. Currently
4573
+ # allowed Dialogflow defined labels include: * sys-head * sys-contextual The
4574
+ # above labels do not require value. "sys-head" means the intent is a head
4575
+ # intent. "sys-contextual" means the intent is a contextual intent.
4360
4576
  # Corresponds to the JSON property `labels`
4361
4577
  # @return [Hash<String,String>]
4362
4578
  attr_accessor :labels
@@ -4976,8 +5192,8 @@ module Google
4976
5192
  class GoogleCloudDialogflowCxV3beta1LoadVersionRequest
4977
5193
  include Google::Apis::Core::Hashable
4978
5194
 
4979
- # This field is used to prevent accidental overwrite of other agent resources in
4980
- # the draft version, which can potentially impact other flow's behavior. If `
5195
+ # This field is used to prevent accidental overwrite of other agent resources,
5196
+ # which can potentially impact other flow's behavior. If `
4981
5197
  # allow_override_agent_resources` is false, conflicted agent-level resources
4982
5198
  # will not be overridden (i.e. intents, entities, webhooks).
4983
5199
  # Corresponds to the JSON property `allowOverrideAgentResources`
@@ -5149,7 +5365,7 @@ module Google
5149
5365
  attr_accessor :text
5150
5366
 
5151
5367
  # If natural language speech audio was provided as input, this field will
5152
- # contain the trascript for the audio.
5368
+ # contain the transcript for the audio.
5153
5369
  # Corresponds to the JSON property `transcript`
5154
5370
  # @return [String]
5155
5371
  attr_accessor :transcript
@@ -5161,7 +5377,7 @@ module Google
5161
5377
  attr_accessor :trigger_event
5162
5378
 
5163
5379
  # If an intent was provided as input, this field will contain a copy of the
5164
- # intent identifier.
5380
+ # intent identifier. Format: `projects//locations//agents//intents/`.
5165
5381
  # Corresponds to the JSON property `triggerIntent`
5166
5382
  # @return [String]
5167
5383
  attr_accessor :trigger_intent
@@ -5514,6 +5730,16 @@ module Google
5514
5730
  attr_accessor :analyze_query_text_sentiment
5515
5731
  alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment
5516
5732
 
5733
+ # The unique identifier of the page to override the current page in the session.
5734
+ # Format: `projects//locations//agents//pages/`. If `current_page` is specified,
5735
+ # the previous state of the session will be ignored by Dialogflow, including the
5736
+ # previous page and the previous session parameters. In most cases, current_page
5737
+ # and parameters should be configured together to direct a session to a specific
5738
+ # state.
5739
+ # Corresponds to the JSON property `currentPage`
5740
+ # @return [String]
5741
+ attr_accessor :current_page
5742
+
5517
5743
  # Whether to disable webhook calls for this request.
5518
5744
  # Corresponds to the JSON property `disableWebhook`
5519
5745
  # @return [Boolean]
@@ -5522,8 +5748,8 @@ module Google
5522
5748
 
5523
5749
  # An object that represents a latitude/longitude pair. This is expressed as a
5524
5750
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
5525
- # specified otherwise, this must conform to the WGS84 standard. Values must be
5526
- # within normalized ranges.
5751
+ # specified otherwise, this object must conform to the WGS84 standard. Values
5752
+ # must be within normalized ranges.
5527
5753
  # Corresponds to the JSON property `geoLocation`
5528
5754
  # @return [Google::Apis::DialogflowV3beta1::GoogleTypeLatLng]
5529
5755
  attr_accessor :geo_location
@@ -5543,7 +5769,10 @@ module Google
5543
5769
  attr_accessor :parameters
5544
5770
 
5545
5771
  # This field can be used to pass custom data into the webhook associated with
5546
- # the agent. Arbitrary JSON objects are supported.
5772
+ # the agent. Arbitrary JSON objects are supported. Some integrations that query
5773
+ # a Dialogflow agent may provide additional information in the payload. In
5774
+ # particular, for the Dialogflow Phone Gateway integration, this field has the
5775
+ # form: ``` ` "telephony": ` "caller_id": "+18558363987" ` ` ```
5547
5776
  # Corresponds to the JSON property `payload`
5548
5777
  # @return [Hash<String,Object>]
5549
5778
  attr_accessor :payload
@@ -5581,6 +5810,7 @@ module Google
5581
5810
  # Update properties of this object
5582
5811
  def update!(**args)
5583
5812
  @analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
5813
+ @current_page = args[:current_page] if args.key?(:current_page)
5584
5814
  @disable_webhook = args[:disable_webhook] if args.key?(:disable_webhook)
5585
5815
  @geo_location = args[:geo_location] if args.key?(:geo_location)
5586
5816
  @parameters = args[:parameters] if args.key?(:parameters)
@@ -5681,7 +5911,7 @@ module Google
5681
5911
  attr_accessor :text
5682
5912
 
5683
5913
  # If natural language speech audio was provided as input, this field will
5684
- # contain the trascript for the audio.
5914
+ # contain the transcript for the audio.
5685
5915
  # Corresponds to the JSON property `transcript`
5686
5916
  # @return [String]
5687
5917
  attr_accessor :transcript
@@ -5693,7 +5923,7 @@ module Google
5693
5923
  attr_accessor :trigger_event
5694
5924
 
5695
5925
  # If an intent was provided as input, this field will contain a copy of the
5696
- # intent identifier.
5926
+ # intent identifier. Format: `projects//locations//agents//intents/`.
5697
5927
  # Corresponds to the JSON property `triggerIntent`
5698
5928
  # @return [String]
5699
5929
  attr_accessor :trigger_intent
@@ -6100,6 +6330,11 @@ module Google
6100
6330
  # @return [String]
6101
6331
  attr_accessor :agent_uri
6102
6332
 
6333
+ # Agent restore mode. If not specified, `KEEP` is assumed.
6334
+ # Corresponds to the JSON property `restoreOption`
6335
+ # @return [String]
6336
+ attr_accessor :restore_option
6337
+
6103
6338
  def initialize(**args)
6104
6339
  update!(**args)
6105
6340
  end
@@ -6108,6 +6343,7 @@ module Google
6108
6343
  def update!(**args)
6109
6344
  @agent_content = args[:agent_content] if args.key?(:agent_content)
6110
6345
  @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
6346
+ @restore_option = args[:restore_option] if args.key?(:restore_option)
6111
6347
  end
6112
6348
  end
6113
6349
 
@@ -7326,6 +7562,12 @@ module Google
7326
7562
  # @return [String]
7327
7563
  attr_accessor :name
7328
7564
 
7565
+ # Represents configuration for a [Service Directory](https://cloud.google.com/
7566
+ # service-directory) service.
7567
+ # Corresponds to the JSON property `serviceDirectory`
7568
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig]
7569
+ attr_accessor :service_directory
7570
+
7329
7571
  # Webhook execution timeout. Execution is considered failed if Dialogflow doesn'
7330
7572
  # t receive a response from webhook at the end of the timeout period. Defaults
7331
7573
  # to 5 seconds, maximum allowed timeout is 30 seconds.
@@ -7343,6 +7585,7 @@ module Google
7343
7585
  @display_name = args[:display_name] if args.key?(:display_name)
7344
7586
  @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
7345
7587
  @name = args[:name] if args.key?(:name)
7588
+ @service_directory = args[:service_directory] if args.key?(:service_directory)
7346
7589
  @timeout = args[:timeout] if args.key?(:timeout)
7347
7590
  end
7348
7591
  end
@@ -7385,7 +7628,8 @@ module Google
7385
7628
  end
7386
7629
  end
7387
7630
 
7388
- # The request message for a webhook call.
7631
+ # The request message for a webhook call. The request is sent as a JSON object
7632
+ # and the field names will be presented in camel cases.
7389
7633
  class GoogleCloudDialogflowCxV3beta1WebhookRequest
7390
7634
  include Google::Apis::Core::Hashable
7391
7635
 
@@ -7405,6 +7649,11 @@ module Google
7405
7649
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestIntentInfo]
7406
7650
  attr_accessor :intent_info
7407
7651
 
7652
+ # The language code specified in the original request.
7653
+ # Corresponds to the JSON property `languageCode`
7654
+ # @return [String]
7655
+ attr_accessor :language_code
7656
+
7408
7657
  # The list of rich message responses to present to the user. Webhook can choose
7409
7658
  # to append or replace this list in WebhookResponse.fulfillment_response;
7410
7659
  # Corresponds to the JSON property `messages`
@@ -7431,6 +7680,30 @@ module Google
7431
7680
  # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionInfo]
7432
7681
  attr_accessor :session_info
7433
7682
 
7683
+ # If natural language text was provided as input, this field will contain a copy
7684
+ # of the text.
7685
+ # Corresponds to the JSON property `text`
7686
+ # @return [String]
7687
+ attr_accessor :text
7688
+
7689
+ # If natural language speech audio was provided as input, this field will
7690
+ # contain the transcript for the audio.
7691
+ # Corresponds to the JSON property `transcript`
7692
+ # @return [String]
7693
+ attr_accessor :transcript
7694
+
7695
+ # If an event was provided as input, this field will contain the name of the
7696
+ # event.
7697
+ # Corresponds to the JSON property `triggerEvent`
7698
+ # @return [String]
7699
+ attr_accessor :trigger_event
7700
+
7701
+ # If an intent was provided as input, this field will contain a copy of the
7702
+ # intent identifier. Format: `projects//locations//agents//intents/`.
7703
+ # Corresponds to the JSON property `triggerIntent`
7704
+ # @return [String]
7705
+ attr_accessor :trigger_intent
7706
+
7434
7707
  def initialize(**args)
7435
7708
  update!(**args)
7436
7709
  end
@@ -7440,11 +7713,16 @@ module Google
7440
7713
  @detect_intent_response_id = args[:detect_intent_response_id] if args.key?(:detect_intent_response_id)
7441
7714
  @fulfillment_info = args[:fulfillment_info] if args.key?(:fulfillment_info)
7442
7715
  @intent_info = args[:intent_info] if args.key?(:intent_info)
7716
+ @language_code = args[:language_code] if args.key?(:language_code)
7443
7717
  @messages = args[:messages] if args.key?(:messages)
7444
7718
  @page_info = args[:page_info] if args.key?(:page_info)
7445
7719
  @payload = args[:payload] if args.key?(:payload)
7446
7720
  @sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
7447
7721
  @session_info = args[:session_info] if args.key?(:session_info)
7722
+ @text = args[:text] if args.key?(:text)
7723
+ @transcript = args[:transcript] if args.key?(:transcript)
7724
+ @trigger_event = args[:trigger_event] if args.key?(:trigger_event)
7725
+ @trigger_intent = args[:trigger_intent] if args.key?(:trigger_intent)
7448
7726
  end
7449
7727
  end
7450
7728
 
@@ -7637,6 +7915,35 @@ module Google
7637
7915
  end
7638
7916
  end
7639
7917
 
7918
+ # Represents configuration for a [Service Directory](https://cloud.google.com/
7919
+ # service-directory) service.
7920
+ class GoogleCloudDialogflowCxV3beta1WebhookServiceDirectoryConfig
7921
+ include Google::Apis::Core::Hashable
7922
+
7923
+ # Represents configuration for a generic web service.
7924
+ # Corresponds to the JSON property `genericWebService`
7925
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookGenericWebService]
7926
+ attr_accessor :generic_web_service
7927
+
7928
+ # Required. The name of [Service Directory](https://cloud.google.com/service-
7929
+ # directory) service. Format: `projects//locations//namespaces//services/`. `
7930
+ # Location ID` of the service directory must be the same as the location of the
7931
+ # agent.
7932
+ # Corresponds to the JSON property `service`
7933
+ # @return [String]
7934
+ attr_accessor :service
7935
+
7936
+ def initialize(**args)
7937
+ update!(**args)
7938
+ end
7939
+
7940
+ # Update properties of this object
7941
+ def update!(**args)
7942
+ @generic_web_service = args[:generic_web_service] if args.key?(:generic_web_service)
7943
+ @service = args[:service] if args.key?(:service)
7944
+ end
7945
+ end
7946
+
7640
7947
  # Represents a part of a message possibly annotated with an entity. The part can
7641
7948
  # be an entity or purely a part of the message between two entities or message
7642
7949
  # start/end.
@@ -7675,6 +7982,59 @@ module Google
7675
7982
  end
7676
7983
  end
7677
7984
 
7985
+ # Represents article answer.
7986
+ class GoogleCloudDialogflowV2ArticleAnswer
7987
+ include Google::Apis::Core::Hashable
7988
+
7989
+ # The name of answer record, in the format of "projects//locations//
7990
+ # answerRecords/"
7991
+ # Corresponds to the JSON property `answerRecord`
7992
+ # @return [String]
7993
+ attr_accessor :answer_record
7994
+
7995
+ # Article match confidence. The system's confidence score that this article is a
7996
+ # good match for this conversation, as a value from 0.0 (completely uncertain)
7997
+ # to 1.0 (completely certain).
7998
+ # Corresponds to the JSON property `confidence`
7999
+ # @return [Float]
8000
+ attr_accessor :confidence
8001
+
8002
+ # A map that contains metadata about the answer and the document from which it
8003
+ # originates.
8004
+ # Corresponds to the JSON property `metadata`
8005
+ # @return [Hash<String,String>]
8006
+ attr_accessor :metadata
8007
+
8008
+ # Article snippets.
8009
+ # Corresponds to the JSON property `snippets`
8010
+ # @return [Array<String>]
8011
+ attr_accessor :snippets
8012
+
8013
+ # The article title.
8014
+ # Corresponds to the JSON property `title`
8015
+ # @return [String]
8016
+ attr_accessor :title
8017
+
8018
+ # The article URI.
8019
+ # Corresponds to the JSON property `uri`
8020
+ # @return [String]
8021
+ attr_accessor :uri
8022
+
8023
+ def initialize(**args)
8024
+ update!(**args)
8025
+ end
8026
+
8027
+ # Update properties of this object
8028
+ def update!(**args)
8029
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
8030
+ @confidence = args[:confidence] if args.key?(:confidence)
8031
+ @metadata = args[:metadata] if args.key?(:metadata)
8032
+ @snippets = args[:snippets] if args.key?(:snippets)
8033
+ @title = args[:title] if args.key?(:title)
8034
+ @uri = args[:uri] if args.key?(:uri)
8035
+ end
8036
+ end
8037
+
7678
8038
  # The response message for EntityTypes.BatchUpdateEntityTypes.
7679
8039
  class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
7680
8040
  include Google::Apis::Core::Hashable
@@ -7982,24 +8342,112 @@ module Google
7982
8342
  end
7983
8343
  end
7984
8344
 
7985
- # An intent categorizes an end-user's intention for one conversation turn. For
7986
- # each agent, you define many intents, where your combined intents can handle a
7987
- # complete conversation. When an end-user writes or says something, referred to
7988
- # as an end-user expression or end-user input, Dialogflow matches the end-user
7989
- # input to the best intent in your agent. Matching an intent is also known as
7990
- # intent classification. For more information, see the [intent guide](https://
7991
- # cloud.google.com/dialogflow/docs/intents-overview).
7992
- class GoogleCloudDialogflowV2Intent
8345
+ # Represents answer from "frequently asked questions".
8346
+ class GoogleCloudDialogflowV2FaqAnswer
7993
8347
  include Google::Apis::Core::Hashable
7994
8348
 
7995
- # Optional. The name of the action associated with the intent. Note: The action
7996
- # name must not contain whitespaces.
7997
- # Corresponds to the JSON property `action`
8349
+ # The piece of text from the `source` knowledge base document.
8350
+ # Corresponds to the JSON property `answer`
7998
8351
  # @return [String]
7999
- attr_accessor :action
8352
+ attr_accessor :answer
8000
8353
 
8001
- # Optional. The list of platforms for which the first responses will be copied
8002
- # from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
8354
+ # The name of answer record, in the format of "projects//locations//
8355
+ # answerRecords/"
8356
+ # Corresponds to the JSON property `answerRecord`
8357
+ # @return [String]
8358
+ attr_accessor :answer_record
8359
+
8360
+ # The system's confidence score that this Knowledge answer is a good match for
8361
+ # this conversational query, range from 0.0 (completely uncertain) to 1.0 (
8362
+ # completely certain).
8363
+ # Corresponds to the JSON property `confidence`
8364
+ # @return [Float]
8365
+ attr_accessor :confidence
8366
+
8367
+ # A map that contains metadata about the answer and the document from which it
8368
+ # originates.
8369
+ # Corresponds to the JSON property `metadata`
8370
+ # @return [Hash<String,String>]
8371
+ attr_accessor :metadata
8372
+
8373
+ # The corresponding FAQ question.
8374
+ # Corresponds to the JSON property `question`
8375
+ # @return [String]
8376
+ attr_accessor :question
8377
+
8378
+ # Indicates which Knowledge Document this answer was extracted from. Format: `
8379
+ # projects//locations//agent/knowledgeBases//documents/`.
8380
+ # Corresponds to the JSON property `source`
8381
+ # @return [String]
8382
+ attr_accessor :source
8383
+
8384
+ def initialize(**args)
8385
+ update!(**args)
8386
+ end
8387
+
8388
+ # Update properties of this object
8389
+ def update!(**args)
8390
+ @answer = args[:answer] if args.key?(:answer)
8391
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
8392
+ @confidence = args[:confidence] if args.key?(:confidence)
8393
+ @metadata = args[:metadata] if args.key?(:metadata)
8394
+ @question = args[:question] if args.key?(:question)
8395
+ @source = args[:source] if args.key?(:source)
8396
+ end
8397
+ end
8398
+
8399
+ # Represents a notification sent to Cloud Pub/Sub subscribers for human agent
8400
+ # assistant events in a specific conversation.
8401
+ class GoogleCloudDialogflowV2HumanAgentAssistantEvent
8402
+ include Google::Apis::Core::Hashable
8403
+
8404
+ # The conversation this notification refers to. Format: `projects//conversations/
8405
+ # `.
8406
+ # Corresponds to the JSON property `conversation`
8407
+ # @return [String]
8408
+ attr_accessor :conversation
8409
+
8410
+ # The participant that the suggestion is compiled for. Format: `projects//
8411
+ # conversations//participants/`. It will not be set in legacy workflow.
8412
+ # Corresponds to the JSON property `participant`
8413
+ # @return [String]
8414
+ attr_accessor :participant
8415
+
8416
+ # The suggestion results payload that this notification refers to.
8417
+ # Corresponds to the JSON property `suggestionResults`
8418
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SuggestionResult>]
8419
+ attr_accessor :suggestion_results
8420
+
8421
+ def initialize(**args)
8422
+ update!(**args)
8423
+ end
8424
+
8425
+ # Update properties of this object
8426
+ def update!(**args)
8427
+ @conversation = args[:conversation] if args.key?(:conversation)
8428
+ @participant = args[:participant] if args.key?(:participant)
8429
+ @suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
8430
+ end
8431
+ end
8432
+
8433
+ # An intent categorizes an end-user's intention for one conversation turn. For
8434
+ # each agent, you define many intents, where your combined intents can handle a
8435
+ # complete conversation. When an end-user writes or says something, referred to
8436
+ # as an end-user expression or end-user input, Dialogflow matches the end-user
8437
+ # input to the best intent in your agent. Matching an intent is also known as
8438
+ # intent classification. For more information, see the [intent guide](https://
8439
+ # cloud.google.com/dialogflow/docs/intents-overview).
8440
+ class GoogleCloudDialogflowV2Intent
8441
+ include Google::Apis::Core::Hashable
8442
+
8443
+ # Optional. The name of the action associated with the intent. Note: The action
8444
+ # name must not contain whitespaces.
8445
+ # Corresponds to the JSON property `action`
8446
+ # @return [String]
8447
+ attr_accessor :action
8448
+
8449
+ # Optional. The list of platforms for which the first responses will be copied
8450
+ # from the messages in PLATFORM_UNSPECIFIED (i.e. default platform).
8003
8451
  # Corresponds to the JSON property `defaultResponsePlatforms`
8004
8452
  # @return [Array<String>]
8005
8453
  attr_accessor :default_response_platforms
@@ -8009,6 +8457,14 @@ module Google
8009
8457
  # @return [String]
8010
8458
  attr_accessor :display_name
8011
8459
 
8460
+ # Optional. Indicates that this intent ends an interaction. Some integrations (e.
8461
+ # g., Actions on Google or Dialogflow phone gateway) use this information to
8462
+ # close interaction with an end user. Default is false.
8463
+ # Corresponds to the JSON property `endInteraction`
8464
+ # @return [Boolean]
8465
+ attr_accessor :end_interaction
8466
+ alias_method :end_interaction?, :end_interaction
8467
+
8012
8468
  # Optional. The collection of event names that trigger the intent. If the
8013
8469
  # collection of input contexts is not empty, all of the contexts must be present
8014
8470
  # in the active user session for an event to trigger this intent. Event names
@@ -8035,6 +8491,14 @@ module Google
8035
8491
  attr_accessor :is_fallback
8036
8492
  alias_method :is_fallback?, :is_fallback
8037
8493
 
8494
+ # Optional. Indicates that a live agent should be brought in to handle the
8495
+ # interaction with the user. In most cases, when you set this flag to true, you
8496
+ # would also want to set end_interaction to true as well. Default is false.
8497
+ # Corresponds to the JSON property `liveAgentHandoff`
8498
+ # @return [Boolean]
8499
+ attr_accessor :live_agent_handoff
8500
+ alias_method :live_agent_handoff?, :live_agent_handoff
8501
+
8038
8502
  # Optional. The collection of rich messages corresponding to the `Response`
8039
8503
  # field in the Dialogflow console.
8040
8504
  # Corresponds to the JSON property `messages`
@@ -8121,10 +8585,12 @@ module Google
8121
8585
  @action = args[:action] if args.key?(:action)
8122
8586
  @default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms)
8123
8587
  @display_name = args[:display_name] if args.key?(:display_name)
8588
+ @end_interaction = args[:end_interaction] if args.key?(:end_interaction)
8124
8589
  @events = args[:events] if args.key?(:events)
8125
8590
  @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
8126
8591
  @input_context_names = args[:input_context_names] if args.key?(:input_context_names)
8127
8592
  @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
8593
+ @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
8128
8594
  @messages = args[:messages] if args.key?(:messages)
8129
8595
  @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
8130
8596
  @name = args[:name] if args.key?(:name)
@@ -9213,6 +9679,25 @@ module Google
9213
9679
  end
9214
9680
  end
9215
9681
 
9682
+ # Metadata in google::longrunning::Operation for Knowledge operations.
9683
+ class GoogleCloudDialogflowV2KnowledgeOperationMetadata
9684
+ include Google::Apis::Core::Hashable
9685
+
9686
+ # Output only. The current state of this operation.
9687
+ # Corresponds to the JSON property `state`
9688
+ # @return [String]
9689
+ attr_accessor :state
9690
+
9691
+ def initialize(**args)
9692
+ update!(**args)
9693
+ end
9694
+
9695
+ # Update properties of this object
9696
+ def update!(**args)
9697
+ @state = args[:state] if args.key?(:state)
9698
+ end
9699
+ end
9700
+
9216
9701
  # Represents a message posted into a conversation.
9217
9702
  class GoogleCloudDialogflowV2Message
9218
9703
  include Google::Apis::Core::Hashable
@@ -9589,6 +10074,112 @@ module Google
9589
10074
  end
9590
10075
  end
9591
10076
 
10077
+ # The response message for Participants.SuggestArticles.
10078
+ class GoogleCloudDialogflowV2SuggestArticlesResponse
10079
+ include Google::Apis::Core::Hashable
10080
+
10081
+ # Articles ordered by score in descending order.
10082
+ # Corresponds to the JSON property `articleAnswers`
10083
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2ArticleAnswer>]
10084
+ attr_accessor :article_answers
10085
+
10086
+ # Number of messages prior to and including latest_message to compile the
10087
+ # suggestion. It may be smaller than the SuggestArticlesRequest.context_size
10088
+ # field in the request if there aren't that many messages in the conversation.
10089
+ # Corresponds to the JSON property `contextSize`
10090
+ # @return [Fixnum]
10091
+ attr_accessor :context_size
10092
+
10093
+ # The name of the latest conversation message used to compile suggestion for.
10094
+ # Format: `projects//locations//conversations//messages/`.
10095
+ # Corresponds to the JSON property `latestMessage`
10096
+ # @return [String]
10097
+ attr_accessor :latest_message
10098
+
10099
+ def initialize(**args)
10100
+ update!(**args)
10101
+ end
10102
+
10103
+ # Update properties of this object
10104
+ def update!(**args)
10105
+ @article_answers = args[:article_answers] if args.key?(:article_answers)
10106
+ @context_size = args[:context_size] if args.key?(:context_size)
10107
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
10108
+ end
10109
+ end
10110
+
10111
+ # The request message for Participants.SuggestFaqAnswers.
10112
+ class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
10113
+ include Google::Apis::Core::Hashable
10114
+
10115
+ # Number of messages prior to and including latest_message to compile the
10116
+ # suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size
10117
+ # field in the request if there aren't that many messages in the conversation.
10118
+ # Corresponds to the JSON property `contextSize`
10119
+ # @return [Fixnum]
10120
+ attr_accessor :context_size
10121
+
10122
+ # Answers extracted from FAQ documents.
10123
+ # Corresponds to the JSON property `faqAnswers`
10124
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2FaqAnswer>]
10125
+ attr_accessor :faq_answers
10126
+
10127
+ # The name of the latest conversation message used to compile suggestion for.
10128
+ # Format: `projects//locations//conversations//messages/`.
10129
+ # Corresponds to the JSON property `latestMessage`
10130
+ # @return [String]
10131
+ attr_accessor :latest_message
10132
+
10133
+ def initialize(**args)
10134
+ update!(**args)
10135
+ end
10136
+
10137
+ # Update properties of this object
10138
+ def update!(**args)
10139
+ @context_size = args[:context_size] if args.key?(:context_size)
10140
+ @faq_answers = args[:faq_answers] if args.key?(:faq_answers)
10141
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
10142
+ end
10143
+ end
10144
+
10145
+ # One response of different type of suggestion response which is used in the
10146
+ # response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
10147
+ # well as HumanAgentAssistantEvent.
10148
+ class GoogleCloudDialogflowV2SuggestionResult
10149
+ include Google::Apis::Core::Hashable
10150
+
10151
+ # The `Status` type defines a logical error model that is suitable for different
10152
+ # programming environments, including REST APIs and RPC APIs. It is used by [
10153
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
10154
+ # data: error code, error message, and error details. You can find out more
10155
+ # about this error model and how to work with it in the [API Design Guide](https:
10156
+ # //cloud.google.com/apis/design/errors).
10157
+ # Corresponds to the JSON property `error`
10158
+ # @return [Google::Apis::DialogflowV3beta1::GoogleRpcStatus]
10159
+ attr_accessor :error
10160
+
10161
+ # The response message for Participants.SuggestArticles.
10162
+ # Corresponds to the JSON property `suggestArticlesResponse`
10163
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SuggestArticlesResponse]
10164
+ attr_accessor :suggest_articles_response
10165
+
10166
+ # The request message for Participants.SuggestFaqAnswers.
10167
+ # Corresponds to the JSON property `suggestFaqAnswersResponse`
10168
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
10169
+ attr_accessor :suggest_faq_answers_response
10170
+
10171
+ def initialize(**args)
10172
+ update!(**args)
10173
+ end
10174
+
10175
+ # Update properties of this object
10176
+ def update!(**args)
10177
+ @error = args[:error] if args.key?(:error)
10178
+ @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
10179
+ @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
10180
+ end
10181
+ end
10182
+
9592
10183
  # The request message for a webhook call.
9593
10184
  class GoogleCloudDialogflowV2WebhookRequest
9594
10185
  include Google::Apis::Core::Hashable
@@ -9715,6 +10306,89 @@ module Google
9715
10306
  end
9716
10307
  end
9717
10308
 
10309
+ # Represents a part of a message possibly annotated with an entity. The part can
10310
+ # be an entity or purely a part of the message between two entities or message
10311
+ # start/end.
10312
+ class GoogleCloudDialogflowV2beta1AnnotatedMessagePart
10313
+ include Google::Apis::Core::Hashable
10314
+
10315
+ # Optional. The [Dialogflow system entity type](https://cloud.google.com/
10316
+ # dialogflow/docs/reference/system-entities) of this message part. If this is
10317
+ # empty, Dialogflow could not annotate the phrase part with a system entity.
10318
+ # Corresponds to the JSON property `entityType`
10319
+ # @return [String]
10320
+ attr_accessor :entity_type
10321
+
10322
+ # Optional. The [Dialogflow system entity formatted value ](https://cloud.google.
10323
+ # com/dialogflow/docs/reference/system-entities) of this message part. For
10324
+ # example for a system entity of type `@sys.unit-currency`, this may contain: ` "
10325
+ # amount": 5, "currency": "USD" `
10326
+ # Corresponds to the JSON property `formattedValue`
10327
+ # @return [Object]
10328
+ attr_accessor :formatted_value
10329
+
10330
+ # Required. A part of a message possibly annotated with an entity.
10331
+ # Corresponds to the JSON property `text`
10332
+ # @return [String]
10333
+ attr_accessor :text
10334
+
10335
+ def initialize(**args)
10336
+ update!(**args)
10337
+ end
10338
+
10339
+ # Update properties of this object
10340
+ def update!(**args)
10341
+ @entity_type = args[:entity_type] if args.key?(:entity_type)
10342
+ @formatted_value = args[:formatted_value] if args.key?(:formatted_value)
10343
+ @text = args[:text] if args.key?(:text)
10344
+ end
10345
+ end
10346
+
10347
+ # Represents article answer.
10348
+ class GoogleCloudDialogflowV2beta1ArticleAnswer
10349
+ include Google::Apis::Core::Hashable
10350
+
10351
+ # The name of answer record, in the format of "projects//locations//
10352
+ # answerRecords/"
10353
+ # Corresponds to the JSON property `answerRecord`
10354
+ # @return [String]
10355
+ attr_accessor :answer_record
10356
+
10357
+ # A map that contains metadata about the answer and the document from which it
10358
+ # originates.
10359
+ # Corresponds to the JSON property `metadata`
10360
+ # @return [Hash<String,String>]
10361
+ attr_accessor :metadata
10362
+
10363
+ # Output only. Article snippets.
10364
+ # Corresponds to the JSON property `snippets`
10365
+ # @return [Array<String>]
10366
+ attr_accessor :snippets
10367
+
10368
+ # The article title.
10369
+ # Corresponds to the JSON property `title`
10370
+ # @return [String]
10371
+ attr_accessor :title
10372
+
10373
+ # The article URI.
10374
+ # Corresponds to the JSON property `uri`
10375
+ # @return [String]
10376
+ attr_accessor :uri
10377
+
10378
+ def initialize(**args)
10379
+ update!(**args)
10380
+ end
10381
+
10382
+ # Update properties of this object
10383
+ def update!(**args)
10384
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
10385
+ @metadata = args[:metadata] if args.key?(:metadata)
10386
+ @snippets = args[:snippets] if args.key?(:snippets)
10387
+ @title = args[:title] if args.key?(:title)
10388
+ @uri = args[:uri] if args.key?(:uri)
10389
+ end
10390
+ end
10391
+
9718
10392
  # The response message for EntityTypes.BatchUpdateEntityTypes.
9719
10393
  class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
9720
10394
  include Google::Apis::Core::Hashable
@@ -9815,6 +10489,50 @@ module Google
9815
10489
  end
9816
10490
  end
9817
10491
 
10492
+ # Represents a notification sent to Pub/Sub subscribers for conversation
10493
+ # lifecycle events.
10494
+ class GoogleCloudDialogflowV2beta1ConversationEvent
10495
+ include Google::Apis::Core::Hashable
10496
+
10497
+ # Required. The unique identifier of the conversation this notification refers
10498
+ # to. Format: `projects//conversations/`.
10499
+ # Corresponds to the JSON property `conversation`
10500
+ # @return [String]
10501
+ attr_accessor :conversation
10502
+
10503
+ # The `Status` type defines a logical error model that is suitable for different
10504
+ # programming environments, including REST APIs and RPC APIs. It is used by [
10505
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
10506
+ # data: error code, error message, and error details. You can find out more
10507
+ # about this error model and how to work with it in the [API Design Guide](https:
10508
+ # //cloud.google.com/apis/design/errors).
10509
+ # Corresponds to the JSON property `errorStatus`
10510
+ # @return [Google::Apis::DialogflowV3beta1::GoogleRpcStatus]
10511
+ attr_accessor :error_status
10512
+
10513
+ # Represents a message posted into a conversation.
10514
+ # Corresponds to the JSON property `newMessagePayload`
10515
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1Message]
10516
+ attr_accessor :new_message_payload
10517
+
10518
+ # Required. The type of the event that this notification refers to.
10519
+ # Corresponds to the JSON property `type`
10520
+ # @return [String]
10521
+ attr_accessor :type
10522
+
10523
+ def initialize(**args)
10524
+ update!(**args)
10525
+ end
10526
+
10527
+ # Update properties of this object
10528
+ def update!(**args)
10529
+ @conversation = args[:conversation] if args.key?(:conversation)
10530
+ @error_status = args[:error_status] if args.key?(:error_status)
10531
+ @new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
10532
+ @type = args[:type] if args.key?(:type)
10533
+ end
10534
+ end
10535
+
9818
10536
  # Each intent parameter has a type, called the entity type, which dictates
9819
10537
  # exactly how data from an end-user expression is extracted. Dialogflow provides
9820
10538
  # predefined system entities that can match many common types of data. For
@@ -9908,38 +10626,157 @@ module Google
9908
10626
  end
9909
10627
  end
9910
10628
 
9911
- # Events allow for matching intents by event name instead of the natural
9912
- # language input. For instance, input `` can trigger a personalized welcome
9913
- # response. The parameter `name` may be used by the agent in the response: `"
9914
- # Hello #welcome_event.name! What can I do for you today?"`.
9915
- class GoogleCloudDialogflowV2beta1EventInput
10629
+ # Events allow for matching intents by event name instead of the natural
10630
+ # language input. For instance, input `` can trigger a personalized welcome
10631
+ # response. The parameter `name` may be used by the agent in the response: `"
10632
+ # Hello #welcome_event.name! What can I do for you today?"`.
10633
+ class GoogleCloudDialogflowV2beta1EventInput
10634
+ include Google::Apis::Core::Hashable
10635
+
10636
+ # Required. The language of this query. See [Language Support](https://cloud.
10637
+ # google.com/dialogflow/docs/reference/language) for a list of the currently
10638
+ # supported language codes. Note that queries in the same session do not
10639
+ # necessarily need to specify the same language.
10640
+ # Corresponds to the JSON property `languageCode`
10641
+ # @return [String]
10642
+ attr_accessor :language_code
10643
+
10644
+ # Required. The unique identifier of the event.
10645
+ # Corresponds to the JSON property `name`
10646
+ # @return [String]
10647
+ attr_accessor :name
10648
+
10649
+ # The collection of parameters associated with the event. Depending on your
10650
+ # protocol or client library language, this is a map, associative array, symbol
10651
+ # table, dictionary, or JSON object composed of a collection of (MapKey,
10652
+ # MapValue) pairs: - MapKey type: string - MapKey value: parameter name -
10653
+ # MapValue type: - If parameter's entity type is a composite entity: map - Else:
10654
+ # depending on parameter value type, could be one of string, number, boolean,
10655
+ # null, list or map - MapValue value: - If parameter's entity type is a
10656
+ # composite entity: map from composite entity property names to property values -
10657
+ # Else: parameter value
10658
+ # Corresponds to the JSON property `parameters`
10659
+ # @return [Hash<String,Object>]
10660
+ attr_accessor :parameters
10661
+
10662
+ def initialize(**args)
10663
+ update!(**args)
10664
+ end
10665
+
10666
+ # Update properties of this object
10667
+ def update!(**args)
10668
+ @language_code = args[:language_code] if args.key?(:language_code)
10669
+ @name = args[:name] if args.key?(:name)
10670
+ @parameters = args[:parameters] if args.key?(:parameters)
10671
+ end
10672
+ end
10673
+
10674
+ # The response message for Agents.ExportAgent.
10675
+ class GoogleCloudDialogflowV2beta1ExportAgentResponse
10676
+ include Google::Apis::Core::Hashable
10677
+
10678
+ # Zip compressed raw byte content for agent.
10679
+ # Corresponds to the JSON property `agentContent`
10680
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
10681
+ # @return [String]
10682
+ attr_accessor :agent_content
10683
+
10684
+ # The URI to a file containing the exported agent. This field is populated only
10685
+ # if `agent_uri` is specified in `ExportAgentRequest`.
10686
+ # Corresponds to the JSON property `agentUri`
10687
+ # @return [String]
10688
+ attr_accessor :agent_uri
10689
+
10690
+ def initialize(**args)
10691
+ update!(**args)
10692
+ end
10693
+
10694
+ # Update properties of this object
10695
+ def update!(**args)
10696
+ @agent_content = args[:agent_content] if args.key?(:agent_content)
10697
+ @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
10698
+ end
10699
+ end
10700
+
10701
+ # Represents answer from "frequently asked questions".
10702
+ class GoogleCloudDialogflowV2beta1FaqAnswer
10703
+ include Google::Apis::Core::Hashable
10704
+
10705
+ # The piece of text from the `source` knowledge base document.
10706
+ # Corresponds to the JSON property `answer`
10707
+ # @return [String]
10708
+ attr_accessor :answer
10709
+
10710
+ # The name of answer record, in the format of "projects//locations//
10711
+ # answerRecords/"
10712
+ # Corresponds to the JSON property `answerRecord`
10713
+ # @return [String]
10714
+ attr_accessor :answer_record
10715
+
10716
+ # The system's confidence score that this Knowledge answer is a good match for
10717
+ # this conversational query, range from 0.0 (completely uncertain) to 1.0 (
10718
+ # completely certain).
10719
+ # Corresponds to the JSON property `confidence`
10720
+ # @return [Float]
10721
+ attr_accessor :confidence
10722
+
10723
+ # A map that contains metadata about the answer and the document from which it
10724
+ # originates.
10725
+ # Corresponds to the JSON property `metadata`
10726
+ # @return [Hash<String,String>]
10727
+ attr_accessor :metadata
10728
+
10729
+ # The corresponding FAQ question.
10730
+ # Corresponds to the JSON property `question`
10731
+ # @return [String]
10732
+ attr_accessor :question
10733
+
10734
+ # Indicates which Knowledge Document this answer was extracted from. Format: `
10735
+ # projects//locations//agent/knowledgeBases//documents/`.
10736
+ # Corresponds to the JSON property `source`
10737
+ # @return [String]
10738
+ attr_accessor :source
10739
+
10740
+ def initialize(**args)
10741
+ update!(**args)
10742
+ end
10743
+
10744
+ # Update properties of this object
10745
+ def update!(**args)
10746
+ @answer = args[:answer] if args.key?(:answer)
10747
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
10748
+ @confidence = args[:confidence] if args.key?(:confidence)
10749
+ @metadata = args[:metadata] if args.key?(:metadata)
10750
+ @question = args[:question] if args.key?(:question)
10751
+ @source = args[:source] if args.key?(:source)
10752
+ end
10753
+ end
10754
+
10755
+ # Output only. Represents a notification sent to Pub/Sub subscribers for agent
10756
+ # assistant events in a specific conversation.
10757
+ class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
9916
10758
  include Google::Apis::Core::Hashable
9917
10759
 
9918
- # Required. The language of this query. See [Language Support](https://cloud.
9919
- # google.com/dialogflow/docs/reference/language) for a list of the currently
9920
- # supported language codes. Note that queries in the same session do not
9921
- # necessarily need to specify the same language.
9922
- # Corresponds to the JSON property `languageCode`
10760
+ # The conversation this notification refers to. Format: `projects//conversations/
10761
+ # `.
10762
+ # Corresponds to the JSON property `conversation`
9923
10763
  # @return [String]
9924
- attr_accessor :language_code
10764
+ attr_accessor :conversation
9925
10765
 
9926
- # Required. The unique identifier of the event.
9927
- # Corresponds to the JSON property `name`
10766
+ # The participant that the suggestion is compiled for. And This field is used to
10767
+ # call Participants.ListSuggestions API. Format: `projects//conversations//
10768
+ # participants/`. It will not be set in legacy workflow.
10769
+ # HumanAgentAssistantConfig.name for more information.
10770
+ # Corresponds to the JSON property `participant`
9928
10771
  # @return [String]
9929
- attr_accessor :name
10772
+ attr_accessor :participant
9930
10773
 
9931
- # The collection of parameters associated with the event. Depending on your
9932
- # protocol or client library language, this is a map, associative array, symbol
9933
- # table, dictionary, or JSON object composed of a collection of (MapKey,
9934
- # MapValue) pairs: - MapKey type: string - MapKey value: parameter name -
9935
- # MapValue type: - If parameter's entity type is a composite entity: map - Else:
9936
- # depending on parameter value type, could be one of string, number, boolean,
9937
- # null, list or map - MapValue value: - If parameter's entity type is a
9938
- # composite entity: map from composite entity property names to property values -
9939
- # Else: parameter value
9940
- # Corresponds to the JSON property `parameters`
9941
- # @return [Hash<String,Object>]
9942
- attr_accessor :parameters
10774
+ # The suggestion results payload that this notification refers to. It will only
10775
+ # be set when HumanAgentAssistantConfig.SuggestionConfig.
10776
+ # group_suggestion_responses sets to true.
10777
+ # Corresponds to the JSON property `suggestionResults`
10778
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestionResult>]
10779
+ attr_accessor :suggestion_results
9943
10780
 
9944
10781
  def initialize(**args)
9945
10782
  update!(**args)
@@ -9947,27 +10784,20 @@ module Google
9947
10784
 
9948
10785
  # Update properties of this object
9949
10786
  def update!(**args)
9950
- @language_code = args[:language_code] if args.key?(:language_code)
9951
- @name = args[:name] if args.key?(:name)
9952
- @parameters = args[:parameters] if args.key?(:parameters)
10787
+ @conversation = args[:conversation] if args.key?(:conversation)
10788
+ @participant = args[:participant] if args.key?(:participant)
10789
+ @suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
9953
10790
  end
9954
10791
  end
9955
10792
 
9956
- # The response message for Agents.ExportAgent.
9957
- class GoogleCloudDialogflowV2beta1ExportAgentResponse
10793
+ # Response message for Documents.ImportDocuments.
10794
+ class GoogleCloudDialogflowV2beta1ImportDocumentsResponse
9958
10795
  include Google::Apis::Core::Hashable
9959
10796
 
9960
- # Zip compressed raw byte content for agent.
9961
- # Corresponds to the JSON property `agentContent`
9962
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
9963
- # @return [String]
9964
- attr_accessor :agent_content
9965
-
9966
- # The URI to a file containing the exported agent. This field is populated only
9967
- # if `agent_uri` is specified in `ExportAgentRequest`.
9968
- # Corresponds to the JSON property `agentUri`
9969
- # @return [String]
9970
- attr_accessor :agent_uri
10797
+ # Includes details about skipped documents or any other warnings.
10798
+ # Corresponds to the JSON property `warnings`
10799
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleRpcStatus>]
10800
+ attr_accessor :warnings
9971
10801
 
9972
10802
  def initialize(**args)
9973
10803
  update!(**args)
@@ -9975,8 +10805,7 @@ module Google
9975
10805
 
9976
10806
  # Update properties of this object
9977
10807
  def update!(**args)
9978
- @agent_content = args[:agent_content] if args.key?(:agent_content)
9979
- @agent_uri = args[:agent_uri] if args.key?(:agent_uri)
10808
+ @warnings = args[:warnings] if args.key?(:warnings)
9980
10809
  end
9981
10810
  end
9982
10811
 
@@ -10042,6 +10871,14 @@ module Google
10042
10871
  attr_accessor :is_fallback
10043
10872
  alias_method :is_fallback?, :is_fallback
10044
10873
 
10874
+ # Optional. Indicates that a live agent should be brought in to handle the
10875
+ # interaction with the user. In most cases, when you set this flag to true, you
10876
+ # would also want to set end_interaction to true as well. Default is false.
10877
+ # Corresponds to the JSON property `liveAgentHandoff`
10878
+ # @return [Boolean]
10879
+ attr_accessor :live_agent_handoff
10880
+ alias_method :live_agent_handoff?, :live_agent_handoff
10881
+
10045
10882
  # Optional. The collection of rich messages corresponding to the `Response`
10046
10883
  # field in the Dialogflow console.
10047
10884
  # Corresponds to the JSON property `messages`
@@ -10146,6 +10983,7 @@ module Google
10146
10983
  @followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
10147
10984
  @input_context_names = args[:input_context_names] if args.key?(:input_context_names)
10148
10985
  @is_fallback = args[:is_fallback] if args.key?(:is_fallback)
10986
+ @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
10149
10987
  @messages = args[:messages] if args.key?(:messages)
10150
10988
  @ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
10151
10989
  @ml_enabled = args[:ml_enabled] if args.key?(:ml_enabled)
@@ -11788,6 +12626,110 @@ module Google
11788
12626
  end
11789
12627
  end
11790
12628
 
12629
+ # Represents a message posted into a conversation.
12630
+ class GoogleCloudDialogflowV2beta1Message
12631
+ include Google::Apis::Core::Hashable
12632
+
12633
+ # Required. The message content.
12634
+ # Corresponds to the JSON property `content`
12635
+ # @return [String]
12636
+ attr_accessor :content
12637
+
12638
+ # Output only. The time when the message was created in Contact Center AI.
12639
+ # Corresponds to the JSON property `createTime`
12640
+ # @return [String]
12641
+ attr_accessor :create_time
12642
+
12643
+ # Optional. The message language. This should be a [BCP-47](https://www.rfc-
12644
+ # editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
12645
+ # Corresponds to the JSON property `languageCode`
12646
+ # @return [String]
12647
+ attr_accessor :language_code
12648
+
12649
+ # Represents the result of annotation for the message.
12650
+ # Corresponds to the JSON property `messageAnnotation`
12651
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1MessageAnnotation]
12652
+ attr_accessor :message_annotation
12653
+
12654
+ # Optional. The unique identifier of the message. Format: `projects//locations//
12655
+ # conversations//messages/`.
12656
+ # Corresponds to the JSON property `name`
12657
+ # @return [String]
12658
+ attr_accessor :name
12659
+
12660
+ # Output only. The participant that sends this message.
12661
+ # Corresponds to the JSON property `participant`
12662
+ # @return [String]
12663
+ attr_accessor :participant
12664
+
12665
+ # Output only. The role of the participant.
12666
+ # Corresponds to the JSON property `participantRole`
12667
+ # @return [String]
12668
+ attr_accessor :participant_role
12669
+
12670
+ # Optional. The time when the message was sent.
12671
+ # Corresponds to the JSON property `sendTime`
12672
+ # @return [String]
12673
+ attr_accessor :send_time
12674
+
12675
+ # The result of sentiment analysis. Sentiment analysis inspects user input and
12676
+ # identifies the prevailing subjective opinion, especially to determine a user's
12677
+ # attitude as positive, negative, or neutral. For Participants.DetectIntent, it
12678
+ # needs to be configured in DetectIntentRequest.query_params. For Participants.
12679
+ # StreamingDetectIntent, it needs to be configured in
12680
+ # StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent
12681
+ # and Participants.StreamingAnalyzeContent, it needs to be configured in
12682
+ # ConversationProfile.human_agent_assistant_config
12683
+ # Corresponds to the JSON property `sentimentAnalysis`
12684
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisResult]
12685
+ attr_accessor :sentiment_analysis
12686
+
12687
+ def initialize(**args)
12688
+ update!(**args)
12689
+ end
12690
+
12691
+ # Update properties of this object
12692
+ def update!(**args)
12693
+ @content = args[:content] if args.key?(:content)
12694
+ @create_time = args[:create_time] if args.key?(:create_time)
12695
+ @language_code = args[:language_code] if args.key?(:language_code)
12696
+ @message_annotation = args[:message_annotation] if args.key?(:message_annotation)
12697
+ @name = args[:name] if args.key?(:name)
12698
+ @participant = args[:participant] if args.key?(:participant)
12699
+ @participant_role = args[:participant_role] if args.key?(:participant_role)
12700
+ @send_time = args[:send_time] if args.key?(:send_time)
12701
+ @sentiment_analysis = args[:sentiment_analysis] if args.key?(:sentiment_analysis)
12702
+ end
12703
+ end
12704
+
12705
+ # Represents the result of annotation for the message.
12706
+ class GoogleCloudDialogflowV2beta1MessageAnnotation
12707
+ include Google::Apis::Core::Hashable
12708
+
12709
+ # Required. Indicates whether the text message contains entities.
12710
+ # Corresponds to the JSON property `containEntities`
12711
+ # @return [Boolean]
12712
+ attr_accessor :contain_entities
12713
+ alias_method :contain_entities?, :contain_entities
12714
+
12715
+ # Optional. The collection of annotated message parts ordered by their position
12716
+ # in the message. You can recover the annotated message by concatenating [
12717
+ # AnnotatedMessagePart.text].
12718
+ # Corresponds to the JSON property `parts`
12719
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1AnnotatedMessagePart>]
12720
+ attr_accessor :parts
12721
+
12722
+ def initialize(**args)
12723
+ update!(**args)
12724
+ end
12725
+
12726
+ # Update properties of this object
12727
+ def update!(**args)
12728
+ @contain_entities = args[:contain_entities] if args.key?(:contain_entities)
12729
+ @parts = args[:parts] if args.key?(:parts)
12730
+ end
12731
+ end
12732
+
11791
12733
  # Represents the contents of the original request that was passed to the `[
11792
12734
  # Streaming]DetectIntent` call.
11793
12735
  class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
@@ -12088,6 +13030,188 @@ module Google
12088
13030
  end
12089
13031
  end
12090
13032
 
13033
+ # Represents a smart reply answer.
13034
+ class GoogleCloudDialogflowV2beta1SmartReplyAnswer
13035
+ include Google::Apis::Core::Hashable
13036
+
13037
+ # The name of answer record, in the format of "projects//locations//
13038
+ # answerRecords/"
13039
+ # Corresponds to the JSON property `answerRecord`
13040
+ # @return [String]
13041
+ attr_accessor :answer_record
13042
+
13043
+ # Smart reply confidence. The system's confidence score that this reply is a
13044
+ # good match for this conversation, as a value from 0.0 (completely uncertain)
13045
+ # to 1.0 (completely certain).
13046
+ # Corresponds to the JSON property `confidence`
13047
+ # @return [Float]
13048
+ attr_accessor :confidence
13049
+
13050
+ # The content of the reply.
13051
+ # Corresponds to the JSON property `reply`
13052
+ # @return [String]
13053
+ attr_accessor :reply
13054
+
13055
+ def initialize(**args)
13056
+ update!(**args)
13057
+ end
13058
+
13059
+ # Update properties of this object
13060
+ def update!(**args)
13061
+ @answer_record = args[:answer_record] if args.key?(:answer_record)
13062
+ @confidence = args[:confidence] if args.key?(:confidence)
13063
+ @reply = args[:reply] if args.key?(:reply)
13064
+ end
13065
+ end
13066
+
13067
+ # The response message for Participants.SuggestArticles.
13068
+ class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
13069
+ include Google::Apis::Core::Hashable
13070
+
13071
+ # Output only. Articles ordered by score in descending order.
13072
+ # Corresponds to the JSON property `articleAnswers`
13073
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1ArticleAnswer>]
13074
+ attr_accessor :article_answers
13075
+
13076
+ # Number of messages prior to and including latest_message to compile the
13077
+ # suggestion. It may be smaller than the SuggestArticlesResponse.context_size
13078
+ # field in the request if there aren't that many messages in the conversation.
13079
+ # Corresponds to the JSON property `contextSize`
13080
+ # @return [Fixnum]
13081
+ attr_accessor :context_size
13082
+
13083
+ # The name of the latest conversation message used to compile suggestion for.
13084
+ # Format: `projects//locations//conversations//messages/`.
13085
+ # Corresponds to the JSON property `latestMessage`
13086
+ # @return [String]
13087
+ attr_accessor :latest_message
13088
+
13089
+ def initialize(**args)
13090
+ update!(**args)
13091
+ end
13092
+
13093
+ # Update properties of this object
13094
+ def update!(**args)
13095
+ @article_answers = args[:article_answers] if args.key?(:article_answers)
13096
+ @context_size = args[:context_size] if args.key?(:context_size)
13097
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
13098
+ end
13099
+ end
13100
+
13101
+ # The request message for Participants.SuggestFaqAnswers.
13102
+ class GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
13103
+ include Google::Apis::Core::Hashable
13104
+
13105
+ # Number of messages prior to and including latest_message to compile the
13106
+ # suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size
13107
+ # field in the request if there aren't that many messages in the conversation.
13108
+ # Corresponds to the JSON property `contextSize`
13109
+ # @return [Fixnum]
13110
+ attr_accessor :context_size
13111
+
13112
+ # Output only. Answers extracted from FAQ documents.
13113
+ # Corresponds to the JSON property `faqAnswers`
13114
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1FaqAnswer>]
13115
+ attr_accessor :faq_answers
13116
+
13117
+ # The name of the latest conversation message used to compile suggestion for.
13118
+ # Format: `projects//locations//conversations//messages/`.
13119
+ # Corresponds to the JSON property `latestMessage`
13120
+ # @return [String]
13121
+ attr_accessor :latest_message
13122
+
13123
+ def initialize(**args)
13124
+ update!(**args)
13125
+ end
13126
+
13127
+ # Update properties of this object
13128
+ def update!(**args)
13129
+ @context_size = args[:context_size] if args.key?(:context_size)
13130
+ @faq_answers = args[:faq_answers] if args.key?(:faq_answers)
13131
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
13132
+ end
13133
+ end
13134
+
13135
+ # The response message for Participants.SuggestSmartReplies.
13136
+ class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
13137
+ include Google::Apis::Core::Hashable
13138
+
13139
+ # Number of messages prior to and including latest_message to compile the
13140
+ # suggestion. It may be smaller than the SuggestSmartRepliesRequest.context_size
13141
+ # field in the request if there aren't that many messages in the conversation.
13142
+ # Corresponds to the JSON property `contextSize`
13143
+ # @return [Fixnum]
13144
+ attr_accessor :context_size
13145
+
13146
+ # The name of the latest conversation message used to compile suggestion for.
13147
+ # Format: `projects//locations//conversations//messages/`.
13148
+ # Corresponds to the JSON property `latestMessage`
13149
+ # @return [String]
13150
+ attr_accessor :latest_message
13151
+
13152
+ # Output only. Multiple reply options provided by smart reply service. The order
13153
+ # is based on the rank of the model prediction. The maximum number of the
13154
+ # returned replies is set in SmartReplyConfig.
13155
+ # Corresponds to the JSON property `smartReplyAnswers`
13156
+ # @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SmartReplyAnswer>]
13157
+ attr_accessor :smart_reply_answers
13158
+
13159
+ def initialize(**args)
13160
+ update!(**args)
13161
+ end
13162
+
13163
+ # Update properties of this object
13164
+ def update!(**args)
13165
+ @context_size = args[:context_size] if args.key?(:context_size)
13166
+ @latest_message = args[:latest_message] if args.key?(:latest_message)
13167
+ @smart_reply_answers = args[:smart_reply_answers] if args.key?(:smart_reply_answers)
13168
+ end
13169
+ end
13170
+
13171
+ # One response of different type of suggestion response which is used in the
13172
+ # response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
13173
+ # well as HumanAgentAssistantEvent.
13174
+ class GoogleCloudDialogflowV2beta1SuggestionResult
13175
+ include Google::Apis::Core::Hashable
13176
+
13177
+ # The `Status` type defines a logical error model that is suitable for different
13178
+ # programming environments, including REST APIs and RPC APIs. It is used by [
13179
+ # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
13180
+ # data: error code, error message, and error details. You can find out more
13181
+ # about this error model and how to work with it in the [API Design Guide](https:
13182
+ # //cloud.google.com/apis/design/errors).
13183
+ # Corresponds to the JSON property `error`
13184
+ # @return [Google::Apis::DialogflowV3beta1::GoogleRpcStatus]
13185
+ attr_accessor :error
13186
+
13187
+ # The response message for Participants.SuggestArticles.
13188
+ # Corresponds to the JSON property `suggestArticlesResponse`
13189
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestArticlesResponse]
13190
+ attr_accessor :suggest_articles_response
13191
+
13192
+ # The request message for Participants.SuggestFaqAnswers.
13193
+ # Corresponds to the JSON property `suggestFaqAnswersResponse`
13194
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse]
13195
+ attr_accessor :suggest_faq_answers_response
13196
+
13197
+ # The response message for Participants.SuggestSmartReplies.
13198
+ # Corresponds to the JSON property `suggestSmartRepliesResponse`
13199
+ # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse]
13200
+ attr_accessor :suggest_smart_replies_response
13201
+
13202
+ def initialize(**args)
13203
+ update!(**args)
13204
+ end
13205
+
13206
+ # Update properties of this object
13207
+ def update!(**args)
13208
+ @error = args[:error] if args.key?(:error)
13209
+ @suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
13210
+ @suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
13211
+ @suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
13212
+ end
13213
+ end
13214
+
12091
13215
  # The request message for a webhook call.
12092
13216
  class GoogleCloudDialogflowV2beta1WebhookRequest
12093
13217
  include Google::Apis::Core::Hashable
@@ -12178,6 +13302,14 @@ module Google
12178
13302
  # @return [String]
12179
13303
  attr_accessor :fulfillment_text
12180
13304
 
13305
+ # Indicates that a live agent should be brought in to handle the interaction
13306
+ # with the user. In most cases, when you set this flag to true, you would also
13307
+ # want to set end_interaction to true as well. Default is false.
13308
+ # Corresponds to the JSON property `liveAgentHandoff`
13309
+ # @return [Boolean]
13310
+ attr_accessor :live_agent_handoff
13311
+ alias_method :live_agent_handoff?, :live_agent_handoff
13312
+
12181
13313
  # Optional. The collection of output contexts that will overwrite currently
12182
13314
  # active contexts for the session and reset their lifespans. When provided,
12183
13315
  # Dialogflow uses this field to populate QueryResult.output_contexts sent to the
@@ -12224,6 +13356,7 @@ module Google
12224
13356
  @followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input)
12225
13357
  @fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
12226
13358
  @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
13359
+ @live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
12227
13360
  @output_contexts = args[:output_contexts] if args.key?(:output_contexts)
12228
13361
  @payload = args[:payload] if args.key?(:payload)
12229
13362
  @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types)
@@ -12509,8 +13642,8 @@ module Google
12509
13642
 
12510
13643
  # An object that represents a latitude/longitude pair. This is expressed as a
12511
13644
  # pair of doubles to represent degrees latitude and degrees longitude. Unless
12512
- # specified otherwise, this must conform to the WGS84 standard. Values must be
12513
- # within normalized ranges.
13645
+ # specified otherwise, this object must conform to the WGS84 standard. Values
13646
+ # must be within normalized ranges.
12514
13647
  class GoogleTypeLatLng
12515
13648
  include Google::Apis::Core::Hashable
12516
13649