google-apis-dialogflow_v3beta1 0.2.0 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/dialogflow_v3beta1/classes.rb +1026 -24
- data/lib/google/apis/dialogflow_v3beta1/gem_version.rb +3 -3
- data/lib/google/apis/dialogflow_v3beta1/representations.rb +421 -1
- data/lib/google/apis/dialogflow_v3beta1/service.rb +32 -34
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 20ef4910abf9e6fc3a37b77ffdcc2b66fa98f2102d24f27732f6716d93156ca0
|
4
|
+
data.tar.gz: f8c7bda3614a52094d61807bd2d5a4cbb3ff9b0f04f8db2652346f8da58a7266
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a2842abfb92041bbbcc6b8e45d1242332b7768adb2e0918d6551e040eb09be160f981934dcdb89da388b312018ba8100aee97de479ac815553065de580975ae
|
7
|
+
data.tar.gz: ba564ca0278ae98df71c6ed40967c43f52b780486ee06e7926743c05446357a628110a578b90735d57bd069465361756c0701578a393074b7eeb2a2280582568
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,26 @@
|
|
1
1
|
# Release history for google-apis-dialogflow_v3beta1
|
2
2
|
|
3
|
+
### v0.7.0 (2021-03-09)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210307
|
6
|
+
* Regenerated using generator version 0.2.0
|
7
|
+
|
8
|
+
### v0.6.0 (2021-03-04)
|
9
|
+
|
10
|
+
* Unspecified changes
|
11
|
+
|
12
|
+
### v0.5.0 (2021-02-24)
|
13
|
+
|
14
|
+
* Regenerated from discovery document revision 20210222
|
15
|
+
|
16
|
+
### v0.4.0 (2021-02-17)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210213
|
19
|
+
|
20
|
+
### v0.3.0 (2021-02-12)
|
21
|
+
|
22
|
+
* Regenerated from discovery document revision 20210209
|
23
|
+
|
3
24
|
### v0.2.0 (2021-02-03)
|
4
25
|
|
5
26
|
* Regenerated from discovery document revision 20210130
|
@@ -1371,7 +1371,7 @@ module Google
|
|
1371
1371
|
attr_accessor :intent
|
1372
1372
|
|
1373
1373
|
# Required. The language of the input. See [Language Support](https://cloud.
|
1374
|
-
# google.com/dialogflow/docs/reference/language) for a list of the currently
|
1374
|
+
# google.com/dialogflow/cx/docs/reference/language) for a list of the currently
|
1375
1375
|
# supported language codes. Note that queries in the same session do not
|
1376
1376
|
# necessarily need to specify the same language.
|
1377
1377
|
# Corresponds to the JSON property `languageCode`
|
@@ -2164,6 +2164,11 @@ module Google
|
|
2164
2164
|
# @return [Hash<String,Object>]
|
2165
2165
|
attr_accessor :payload
|
2166
2166
|
|
2167
|
+
# Represents the result of sentiment analysis.
|
2168
|
+
# Corresponds to the JSON property `sentimentAnalysisResult`
|
2169
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult]
|
2170
|
+
attr_accessor :sentiment_analysis_result
|
2171
|
+
|
2167
2172
|
# Represents session information communicated to and from the webhook.
|
2168
2173
|
# Corresponds to the JSON property `sessionInfo`
|
2169
2174
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3SessionInfo]
|
@@ -2181,6 +2186,7 @@ module Google
|
|
2181
2186
|
@messages = args[:messages] if args.key?(:messages)
|
2182
2187
|
@page_info = args[:page_info] if args.key?(:page_info)
|
2183
2188
|
@payload = args[:payload] if args.key?(:payload)
|
2189
|
+
@sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
|
2184
2190
|
@session_info = args[:session_info] if args.key?(:session_info)
|
2185
2191
|
end
|
2186
2192
|
end
|
@@ -2272,6 +2278,32 @@ module Google
|
|
2272
2278
|
end
|
2273
2279
|
end
|
2274
2280
|
|
2281
|
+
# Represents the result of sentiment analysis.
|
2282
|
+
class GoogleCloudDialogflowCxV3WebhookRequestSentimentAnalysisResult
|
2283
|
+
include Google::Apis::Core::Hashable
|
2284
|
+
|
2285
|
+
# A non-negative number in the [0, +inf) range, which represents the absolute
|
2286
|
+
# magnitude of sentiment, regardless of score (positive or negative).
|
2287
|
+
# Corresponds to the JSON property `magnitude`
|
2288
|
+
# @return [Float]
|
2289
|
+
attr_accessor :magnitude
|
2290
|
+
|
2291
|
+
# Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
|
2292
|
+
# Corresponds to the JSON property `score`
|
2293
|
+
# @return [Float]
|
2294
|
+
attr_accessor :score
|
2295
|
+
|
2296
|
+
def initialize(**args)
|
2297
|
+
update!(**args)
|
2298
|
+
end
|
2299
|
+
|
2300
|
+
# Update properties of this object
|
2301
|
+
def update!(**args)
|
2302
|
+
@magnitude = args[:magnitude] if args.key?(:magnitude)
|
2303
|
+
@score = args[:score] if args.key?(:score)
|
2304
|
+
end
|
2305
|
+
end
|
2306
|
+
|
2275
2307
|
# The response message for a webhook call.
|
2276
2308
|
class GoogleCloudDialogflowCxV3WebhookResponse
|
2277
2309
|
include Google::Apis::Core::Hashable
|
@@ -2364,7 +2396,7 @@ module Google
|
|
2364
2396
|
attr_accessor :avatar_uri
|
2365
2397
|
|
2366
2398
|
# Immutable. The default language of the agent as a language tag. See [Language
|
2367
|
-
# Support](https://cloud.google.com/dialogflow/docs/reference/language) for a
|
2399
|
+
# Support](https://cloud.google.com/dialogflow/cx/docs/reference/language) for a
|
2368
2400
|
# list of the currently supported language codes. This field cannot be set by
|
2369
2401
|
# the Agents.UpdateAgent method.
|
2370
2402
|
# Corresponds to the JSON property `defaultLanguageCode`
|
@@ -2602,8 +2634,16 @@ module Google
|
|
2602
2634
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1IntentCoverage]
|
2603
2635
|
attr_accessor :intent_coverage
|
2604
2636
|
|
2605
|
-
# Transition coverage represents the percentage of all possible
|
2606
|
-
# present within any of a parent's test cases.
|
2637
|
+
# Transition route group coverage represents the percentage of all possible
|
2638
|
+
# transition routes present within any of a parent's test cases. The results are
|
2639
|
+
# grouped by the transition route group.
|
2640
|
+
# Corresponds to the JSON property `routeGroupCoverage`
|
2641
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage]
|
2642
|
+
attr_accessor :route_group_coverage
|
2643
|
+
|
2644
|
+
# Transition coverage represents the percentage of all possible page transitions
|
2645
|
+
# (page-level transition routes and event handlers, excluding transition route
|
2646
|
+
# groups) present within any of a parent's test cases.
|
2607
2647
|
# Corresponds to the JSON property `transitionCoverage`
|
2608
2648
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionCoverage]
|
2609
2649
|
attr_accessor :transition_coverage
|
@@ -2616,6 +2656,7 @@ module Google
|
|
2616
2656
|
def update!(**args)
|
2617
2657
|
@agent = args[:agent] if args.key?(:agent)
|
2618
2658
|
@intent_coverage = args[:intent_coverage] if args.key?(:intent_coverage)
|
2659
|
+
@route_group_coverage = args[:route_group_coverage] if args.key?(:route_group_coverage)
|
2619
2660
|
@transition_coverage = args[:transition_coverage] if args.key?(:transition_coverage)
|
2620
2661
|
end
|
2621
2662
|
end
|
@@ -3237,7 +3278,9 @@ module Google
|
|
3237
3278
|
# @return [String]
|
3238
3279
|
attr_accessor :end_time
|
3239
3280
|
|
3240
|
-
# Maximum number of days to run the experiment.
|
3281
|
+
# Maximum number of days to run the experiment. If auto-rollout is not enabled,
|
3282
|
+
# default value and maximum will be 30 days. If auto-rollout is enabled, default
|
3283
|
+
# value and maximum will be 6 days.
|
3241
3284
|
# Corresponds to the JSON property `experimentLength`
|
3242
3285
|
# @return [String]
|
3243
3286
|
attr_accessor :experiment_length
|
@@ -5435,7 +5478,7 @@ module Google
|
|
5435
5478
|
attr_accessor :intent
|
5436
5479
|
|
5437
5480
|
# Required. The language of the input. See [Language Support](https://cloud.
|
5438
|
-
# google.com/dialogflow/docs/reference/language) for a list of the currently
|
5481
|
+
# google.com/dialogflow/cx/docs/reference/language) for a list of the currently
|
5439
5482
|
# supported language codes. Note that queries in the same session do not
|
5440
5483
|
# necessarily need to specify the same language.
|
5441
5484
|
# Corresponds to the JSON property `languageCode`
|
@@ -5473,6 +5516,12 @@ module Google
|
|
5473
5516
|
attr_accessor :analyze_query_text_sentiment
|
5474
5517
|
alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment
|
5475
5518
|
|
5519
|
+
# Whether to disable webhook calls for this request.
|
5520
|
+
# Corresponds to the JSON property `disableWebhook`
|
5521
|
+
# @return [Boolean]
|
5522
|
+
attr_accessor :disable_webhook
|
5523
|
+
alias_method :disable_webhook?, :disable_webhook
|
5524
|
+
|
5476
5525
|
# An object that represents a latitude/longitude pair. This is expressed as a
|
5477
5526
|
# pair of doubles to represent degrees latitude and degrees longitude. Unless
|
5478
5527
|
# specified otherwise, this must conform to the WGS84 standard. Values must be
|
@@ -5534,6 +5583,7 @@ module Google
|
|
5534
5583
|
# Update properties of this object
|
5535
5584
|
def update!(**args)
|
5536
5585
|
@analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
|
5586
|
+
@disable_webhook = args[:disable_webhook] if args.key?(:disable_webhook)
|
5537
5587
|
@geo_location = args[:geo_location] if args.key?(:geo_location)
|
5538
5588
|
@parameters = args[:parameters] if args.key?(:parameters)
|
5539
5589
|
@payload = args[:payload] if args.key?(:payload)
|
@@ -5589,7 +5639,7 @@ module Google
|
|
5589
5639
|
attr_accessor :intent_detection_confidence
|
5590
5640
|
|
5591
5641
|
# The language that was triggered during intent detection. See [Language Support]
|
5592
|
-
# (https://cloud.google.com/dialogflow/docs/reference/language) for a list of
|
5642
|
+
# (https://cloud.google.com/dialogflow/cx/docs/reference/language) for a list of
|
5593
5643
|
# the currently supported language codes.
|
5594
5644
|
# Corresponds to the JSON property `languageCode`
|
5595
5645
|
# @return [String]
|
@@ -6052,6 +6102,11 @@ module Google
|
|
6052
6102
|
# @return [String]
|
6053
6103
|
attr_accessor :agent_uri
|
6054
6104
|
|
6105
|
+
# Agent restore mode. If not specified, `KEEP` is assumed.
|
6106
|
+
# Corresponds to the JSON property `restoreOption`
|
6107
|
+
# @return [String]
|
6108
|
+
attr_accessor :restore_option
|
6109
|
+
|
6055
6110
|
def initialize(**args)
|
6056
6111
|
update!(**args)
|
6057
6112
|
end
|
@@ -6060,6 +6115,7 @@ module Google
|
|
6060
6115
|
def update!(**args)
|
6061
6116
|
@agent_content = args[:agent_content] if args.key?(:agent_content)
|
6062
6117
|
@agent_uri = args[:agent_uri] if args.key?(:agent_uri)
|
6118
|
+
@restore_option = args[:restore_option] if args.key?(:restore_option)
|
6063
6119
|
end
|
6064
6120
|
end
|
6065
6121
|
|
@@ -6086,12 +6142,6 @@ module Google
|
|
6086
6142
|
# @return [String]
|
6087
6143
|
attr_accessor :environment
|
6088
6144
|
|
6089
|
-
# Required. Format of test case name to run: `projects//locations/ /agents//
|
6090
|
-
# testCases/`.
|
6091
|
-
# Corresponds to the JSON property `name`
|
6092
|
-
# @return [String]
|
6093
|
-
attr_accessor :name
|
6094
|
-
|
6095
6145
|
def initialize(**args)
|
6096
6146
|
update!(**args)
|
6097
6147
|
end
|
@@ -6099,7 +6149,6 @@ module Google
|
|
6099
6149
|
# Update properties of this object
|
6100
6150
|
def update!(**args)
|
6101
6151
|
@environment = args[:environment] if args.key?(:environment)
|
6102
|
-
@name = args[:name] if args.key?(:name)
|
6103
6152
|
end
|
6104
6153
|
end
|
6105
6154
|
|
@@ -6658,8 +6707,9 @@ module Google
|
|
6658
6707
|
end
|
6659
6708
|
end
|
6660
6709
|
|
6661
|
-
# Transition coverage represents the percentage of all possible transitions
|
6662
|
-
#
|
6710
|
+
# Transition coverage represents the percentage of all possible page transitions
|
6711
|
+
# (page-level transition routes and event handlers, excluding transition route
|
6712
|
+
# groups) present within any of a parent's test cases.
|
6663
6713
|
class GoogleCloudDialogflowCxV3beta1TransitionCoverage
|
6664
6714
|
include Google::Apis::Core::Hashable
|
6665
6715
|
|
@@ -6684,7 +6734,7 @@ module Google
|
|
6684
6734
|
end
|
6685
6735
|
end
|
6686
6736
|
|
6687
|
-
# A transition in
|
6737
|
+
# A transition in a page.
|
6688
6738
|
class GoogleCloudDialogflowCxV3beta1TransitionCoverageTransition
|
6689
6739
|
include Google::Apis::Core::Hashable
|
6690
6740
|
|
@@ -6898,6 +6948,100 @@ module Google
|
|
6898
6948
|
end
|
6899
6949
|
end
|
6900
6950
|
|
6951
|
+
# Transition route group coverage represents the percentage of all possible
|
6952
|
+
# transition routes present within any of a parent's test cases. The results are
|
6953
|
+
# grouped by the transition route group.
|
6954
|
+
class GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverage
|
6955
|
+
include Google::Apis::Core::Hashable
|
6956
|
+
|
6957
|
+
# The percent of transition routes in all the transition route groups that are
|
6958
|
+
# covered.
|
6959
|
+
# Corresponds to the JSON property `coverageScore`
|
6960
|
+
# @return [Float]
|
6961
|
+
attr_accessor :coverage_score
|
6962
|
+
|
6963
|
+
# Transition route group coverages.
|
6964
|
+
# Corresponds to the JSON property `coverages`
|
6965
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage>]
|
6966
|
+
attr_accessor :coverages
|
6967
|
+
|
6968
|
+
def initialize(**args)
|
6969
|
+
update!(**args)
|
6970
|
+
end
|
6971
|
+
|
6972
|
+
# Update properties of this object
|
6973
|
+
def update!(**args)
|
6974
|
+
@coverage_score = args[:coverage_score] if args.key?(:coverage_score)
|
6975
|
+
@coverages = args[:coverages] if args.key?(:coverages)
|
6976
|
+
end
|
6977
|
+
end
|
6978
|
+
|
6979
|
+
# Coverage result message for one transition route group.
|
6980
|
+
class GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverage
|
6981
|
+
include Google::Apis::Core::Hashable
|
6982
|
+
|
6983
|
+
# The percent of transition routes in the transition route group that are
|
6984
|
+
# covered.
|
6985
|
+
# Corresponds to the JSON property `coverageScore`
|
6986
|
+
# @return [Float]
|
6987
|
+
attr_accessor :coverage_score
|
6988
|
+
|
6989
|
+
# An TransitionRouteGroup represents a group of `TransitionRoutes` to be used by
|
6990
|
+
# a Page.
|
6991
|
+
# Corresponds to the JSON property `routeGroup`
|
6992
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroup]
|
6993
|
+
attr_accessor :route_group
|
6994
|
+
|
6995
|
+
# The list of transition routes and coverage in the transition route group.
|
6996
|
+
# Corresponds to the JSON property `transitions`
|
6997
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition>]
|
6998
|
+
attr_accessor :transitions
|
6999
|
+
|
7000
|
+
def initialize(**args)
|
7001
|
+
update!(**args)
|
7002
|
+
end
|
7003
|
+
|
7004
|
+
# Update properties of this object
|
7005
|
+
def update!(**args)
|
7006
|
+
@coverage_score = args[:coverage_score] if args.key?(:coverage_score)
|
7007
|
+
@route_group = args[:route_group] if args.key?(:route_group)
|
7008
|
+
@transitions = args[:transitions] if args.key?(:transitions)
|
7009
|
+
end
|
7010
|
+
end
|
7011
|
+
|
7012
|
+
# A transition coverage in a transition route group.
|
7013
|
+
class GoogleCloudDialogflowCxV3beta1TransitionRouteGroupCoverageCoverageTransition
|
7014
|
+
include Google::Apis::Core::Hashable
|
7015
|
+
|
7016
|
+
# Whether or not the transition route is covered by at least one of the agent's
|
7017
|
+
# test cases.
|
7018
|
+
# Corresponds to the JSON property `covered`
|
7019
|
+
# @return [Boolean]
|
7020
|
+
attr_accessor :covered
|
7021
|
+
alias_method :covered?, :covered
|
7022
|
+
|
7023
|
+
# A transition route specifies a intent that can be matched and/or a data
|
7024
|
+
# condition that can be evaluated during a session. When a specified transition
|
7025
|
+
# is matched, the following actions are taken in order: * If there is a `
|
7026
|
+
# trigger_fulfillment` associated with the transition, it will be called. * If
|
7027
|
+
# there is a `target_page` associated with the transition, the session will
|
7028
|
+
# transition into the specified page. * If there is a `target_flow` associated
|
7029
|
+
# with the transition, the session will transition into the specified flow.
|
7030
|
+
# Corresponds to the JSON property `transitionRoute`
|
7031
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1TransitionRoute]
|
7032
|
+
attr_accessor :transition_route
|
7033
|
+
|
7034
|
+
def initialize(**args)
|
7035
|
+
update!(**args)
|
7036
|
+
end
|
7037
|
+
|
7038
|
+
# Update properties of this object
|
7039
|
+
def update!(**args)
|
7040
|
+
@covered = args[:covered] if args.key?(:covered)
|
7041
|
+
@transition_route = args[:transition_route] if args.key?(:transition_route)
|
7042
|
+
end
|
7043
|
+
end
|
7044
|
+
|
6901
7045
|
# Metadata for UpdateDocument operation.
|
6902
7046
|
class GoogleCloudDialogflowCxV3beta1UpdateDocumentOperationMetadata
|
6903
7047
|
include Google::Apis::Core::Hashable
|
@@ -7285,6 +7429,11 @@ module Google
|
|
7285
7429
|
# @return [Hash<String,Object>]
|
7286
7430
|
attr_accessor :payload
|
7287
7431
|
|
7432
|
+
# Represents the result of sentiment analysis.
|
7433
|
+
# Corresponds to the JSON property `sentimentAnalysisResult`
|
7434
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult]
|
7435
|
+
attr_accessor :sentiment_analysis_result
|
7436
|
+
|
7288
7437
|
# Represents session information communicated to and from the webhook.
|
7289
7438
|
# Corresponds to the JSON property `sessionInfo`
|
7290
7439
|
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowCxV3beta1SessionInfo]
|
@@ -7302,6 +7451,7 @@ module Google
|
|
7302
7451
|
@messages = args[:messages] if args.key?(:messages)
|
7303
7452
|
@page_info = args[:page_info] if args.key?(:page_info)
|
7304
7453
|
@payload = args[:payload] if args.key?(:payload)
|
7454
|
+
@sentiment_analysis_result = args[:sentiment_analysis_result] if args.key?(:sentiment_analysis_result)
|
7305
7455
|
@session_info = args[:session_info] if args.key?(:session_info)
|
7306
7456
|
end
|
7307
7457
|
end
|
@@ -7393,6 +7543,32 @@ module Google
|
|
7393
7543
|
end
|
7394
7544
|
end
|
7395
7545
|
|
7546
|
+
# Represents the result of sentiment analysis.
|
7547
|
+
class GoogleCloudDialogflowCxV3beta1WebhookRequestSentimentAnalysisResult
|
7548
|
+
include Google::Apis::Core::Hashable
|
7549
|
+
|
7550
|
+
# A non-negative number in the [0, +inf) range, which represents the absolute
|
7551
|
+
# magnitude of sentiment, regardless of score (positive or negative).
|
7552
|
+
# Corresponds to the JSON property `magnitude`
|
7553
|
+
# @return [Float]
|
7554
|
+
attr_accessor :magnitude
|
7555
|
+
|
7556
|
+
# Sentiment score between -1.0 (negative sentiment) and 1.0 (positive sentiment).
|
7557
|
+
# Corresponds to the JSON property `score`
|
7558
|
+
# @return [Float]
|
7559
|
+
attr_accessor :score
|
7560
|
+
|
7561
|
+
def initialize(**args)
|
7562
|
+
update!(**args)
|
7563
|
+
end
|
7564
|
+
|
7565
|
+
# Update properties of this object
|
7566
|
+
def update!(**args)
|
7567
|
+
@magnitude = args[:magnitude] if args.key?(:magnitude)
|
7568
|
+
@score = args[:score] if args.key?(:score)
|
7569
|
+
end
|
7570
|
+
end
|
7571
|
+
|
7396
7572
|
# The response message for a webhook call.
|
7397
7573
|
class GoogleCloudDialogflowCxV3beta1WebhookResponse
|
7398
7574
|
include Google::Apis::Core::Hashable
|
@@ -7507,6 +7683,59 @@ module Google
|
|
7507
7683
|
end
|
7508
7684
|
end
|
7509
7685
|
|
7686
|
+
# Represents article answer.
|
7687
|
+
class GoogleCloudDialogflowV2ArticleAnswer
|
7688
|
+
include Google::Apis::Core::Hashable
|
7689
|
+
|
7690
|
+
# The name of answer record, in the format of "projects//locations//
|
7691
|
+
# answerRecords/"
|
7692
|
+
# Corresponds to the JSON property `answerRecord`
|
7693
|
+
# @return [String]
|
7694
|
+
attr_accessor :answer_record
|
7695
|
+
|
7696
|
+
# Article match confidence. The system's confidence score that this article is a
|
7697
|
+
# good match for this conversation, as a value from 0.0 (completely uncertain)
|
7698
|
+
# to 1.0 (completely certain).
|
7699
|
+
# Corresponds to the JSON property `confidence`
|
7700
|
+
# @return [Float]
|
7701
|
+
attr_accessor :confidence
|
7702
|
+
|
7703
|
+
# A map that contains metadata about the answer and the document from which it
|
7704
|
+
# originates.
|
7705
|
+
# Corresponds to the JSON property `metadata`
|
7706
|
+
# @return [Hash<String,String>]
|
7707
|
+
attr_accessor :metadata
|
7708
|
+
|
7709
|
+
# Article snippets.
|
7710
|
+
# Corresponds to the JSON property `snippets`
|
7711
|
+
# @return [Array<String>]
|
7712
|
+
attr_accessor :snippets
|
7713
|
+
|
7714
|
+
# The article title.
|
7715
|
+
# Corresponds to the JSON property `title`
|
7716
|
+
# @return [String]
|
7717
|
+
attr_accessor :title
|
7718
|
+
|
7719
|
+
# The article URI.
|
7720
|
+
# Corresponds to the JSON property `uri`
|
7721
|
+
# @return [String]
|
7722
|
+
attr_accessor :uri
|
7723
|
+
|
7724
|
+
def initialize(**args)
|
7725
|
+
update!(**args)
|
7726
|
+
end
|
7727
|
+
|
7728
|
+
# Update properties of this object
|
7729
|
+
def update!(**args)
|
7730
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
7731
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
7732
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
7733
|
+
@snippets = args[:snippets] if args.key?(:snippets)
|
7734
|
+
@title = args[:title] if args.key?(:title)
|
7735
|
+
@uri = args[:uri] if args.key?(:uri)
|
7736
|
+
end
|
7737
|
+
end
|
7738
|
+
|
7510
7739
|
# The response message for EntityTypes.BatchUpdateEntityTypes.
|
7511
7740
|
class GoogleCloudDialogflowV2BatchUpdateEntityTypesResponse
|
7512
7741
|
include Google::Apis::Core::Hashable
|
@@ -7814,6 +8043,94 @@ module Google
|
|
7814
8043
|
end
|
7815
8044
|
end
|
7816
8045
|
|
8046
|
+
# Represents answer from "frequently asked questions".
|
8047
|
+
class GoogleCloudDialogflowV2FaqAnswer
|
8048
|
+
include Google::Apis::Core::Hashable
|
8049
|
+
|
8050
|
+
# The piece of text from the `source` knowledge base document.
|
8051
|
+
# Corresponds to the JSON property `answer`
|
8052
|
+
# @return [String]
|
8053
|
+
attr_accessor :answer
|
8054
|
+
|
8055
|
+
# The name of answer record, in the format of "projects//locations//
|
8056
|
+
# answerRecords/"
|
8057
|
+
# Corresponds to the JSON property `answerRecord`
|
8058
|
+
# @return [String]
|
8059
|
+
attr_accessor :answer_record
|
8060
|
+
|
8061
|
+
# The system's confidence score that this Knowledge answer is a good match for
|
8062
|
+
# this conversational query, range from 0.0 (completely uncertain) to 1.0 (
|
8063
|
+
# completely certain).
|
8064
|
+
# Corresponds to the JSON property `confidence`
|
8065
|
+
# @return [Float]
|
8066
|
+
attr_accessor :confidence
|
8067
|
+
|
8068
|
+
# A map that contains metadata about the answer and the document from which it
|
8069
|
+
# originates.
|
8070
|
+
# Corresponds to the JSON property `metadata`
|
8071
|
+
# @return [Hash<String,String>]
|
8072
|
+
attr_accessor :metadata
|
8073
|
+
|
8074
|
+
# The corresponding FAQ question.
|
8075
|
+
# Corresponds to the JSON property `question`
|
8076
|
+
# @return [String]
|
8077
|
+
attr_accessor :question
|
8078
|
+
|
8079
|
+
# Indicates which Knowledge Document this answer was extracted from. Format: `
|
8080
|
+
# projects//locations//agent/knowledgeBases//documents/`.
|
8081
|
+
# Corresponds to the JSON property `source`
|
8082
|
+
# @return [String]
|
8083
|
+
attr_accessor :source
|
8084
|
+
|
8085
|
+
def initialize(**args)
|
8086
|
+
update!(**args)
|
8087
|
+
end
|
8088
|
+
|
8089
|
+
# Update properties of this object
|
8090
|
+
def update!(**args)
|
8091
|
+
@answer = args[:answer] if args.key?(:answer)
|
8092
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
8093
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
8094
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
8095
|
+
@question = args[:question] if args.key?(:question)
|
8096
|
+
@source = args[:source] if args.key?(:source)
|
8097
|
+
end
|
8098
|
+
end
|
8099
|
+
|
8100
|
+
# Represents a notification sent to Cloud Pub/Sub subscribers for human agent
|
8101
|
+
# assistant events in a specific conversation.
|
8102
|
+
class GoogleCloudDialogflowV2HumanAgentAssistantEvent
|
8103
|
+
include Google::Apis::Core::Hashable
|
8104
|
+
|
8105
|
+
# The conversation this notification refers to. Format: `projects//conversations/
|
8106
|
+
# `.
|
8107
|
+
# Corresponds to the JSON property `conversation`
|
8108
|
+
# @return [String]
|
8109
|
+
attr_accessor :conversation
|
8110
|
+
|
8111
|
+
# The participant that the suggestion is compiled for. Format: `projects//
|
8112
|
+
# conversations//participants/`. It will not be set in legacy workflow.
|
8113
|
+
# Corresponds to the JSON property `participant`
|
8114
|
+
# @return [String]
|
8115
|
+
attr_accessor :participant
|
8116
|
+
|
8117
|
+
# The suggestion results payload that this notification refers to.
|
8118
|
+
# Corresponds to the JSON property `suggestionResults`
|
8119
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SuggestionResult>]
|
8120
|
+
attr_accessor :suggestion_results
|
8121
|
+
|
8122
|
+
def initialize(**args)
|
8123
|
+
update!(**args)
|
8124
|
+
end
|
8125
|
+
|
8126
|
+
# Update properties of this object
|
8127
|
+
def update!(**args)
|
8128
|
+
@conversation = args[:conversation] if args.key?(:conversation)
|
8129
|
+
@participant = args[:participant] if args.key?(:participant)
|
8130
|
+
@suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
|
8131
|
+
end
|
8132
|
+
end
|
8133
|
+
|
7817
8134
|
# An intent categorizes an end-user's intention for one conversation turn. For
|
7818
8135
|
# each agent, you define many intents, where your combined intents can handle a
|
7819
8136
|
# complete conversation. When an end-user writes or says something, referred to
|
@@ -7841,6 +8158,14 @@ module Google
|
|
7841
8158
|
# @return [String]
|
7842
8159
|
attr_accessor :display_name
|
7843
8160
|
|
8161
|
+
# Optional. Indicates that this intent ends an interaction. Some integrations (e.
|
8162
|
+
# g., Actions on Google or Dialogflow phone gateway) use this information to
|
8163
|
+
# close interaction with an end user. Default is false.
|
8164
|
+
# Corresponds to the JSON property `endInteraction`
|
8165
|
+
# @return [Boolean]
|
8166
|
+
attr_accessor :end_interaction
|
8167
|
+
alias_method :end_interaction?, :end_interaction
|
8168
|
+
|
7844
8169
|
# Optional. The collection of event names that trigger the intent. If the
|
7845
8170
|
# collection of input contexts is not empty, all of the contexts must be present
|
7846
8171
|
# in the active user session for an event to trigger this intent. Event names
|
@@ -7867,6 +8192,14 @@ module Google
|
|
7867
8192
|
attr_accessor :is_fallback
|
7868
8193
|
alias_method :is_fallback?, :is_fallback
|
7869
8194
|
|
8195
|
+
# Optional. Indicates that a live agent should be brought in to handle the
|
8196
|
+
# interaction with the user. In most cases, when you set this flag to true, you
|
8197
|
+
# would also want to set end_interaction to true as well. Default is false.
|
8198
|
+
# Corresponds to the JSON property `liveAgentHandoff`
|
8199
|
+
# @return [Boolean]
|
8200
|
+
attr_accessor :live_agent_handoff
|
8201
|
+
alias_method :live_agent_handoff?, :live_agent_handoff
|
8202
|
+
|
7870
8203
|
# Optional. The collection of rich messages corresponding to the `Response`
|
7871
8204
|
# field in the Dialogflow console.
|
7872
8205
|
# Corresponds to the JSON property `messages`
|
@@ -7953,10 +8286,12 @@ module Google
|
|
7953
8286
|
@action = args[:action] if args.key?(:action)
|
7954
8287
|
@default_response_platforms = args[:default_response_platforms] if args.key?(:default_response_platforms)
|
7955
8288
|
@display_name = args[:display_name] if args.key?(:display_name)
|
8289
|
+
@end_interaction = args[:end_interaction] if args.key?(:end_interaction)
|
7956
8290
|
@events = args[:events] if args.key?(:events)
|
7957
8291
|
@followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
|
7958
8292
|
@input_context_names = args[:input_context_names] if args.key?(:input_context_names)
|
7959
8293
|
@is_fallback = args[:is_fallback] if args.key?(:is_fallback)
|
8294
|
+
@live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
|
7960
8295
|
@messages = args[:messages] if args.key?(:messages)
|
7961
8296
|
@ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
|
7962
8297
|
@name = args[:name] if args.key?(:name)
|
@@ -9045,17 +9380,36 @@ module Google
|
|
9045
9380
|
end
|
9046
9381
|
end
|
9047
9382
|
|
9048
|
-
#
|
9049
|
-
class
|
9383
|
+
# Metadata in google::longrunning::Operation for Knowledge operations.
|
9384
|
+
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
|
9050
9385
|
include Google::Apis::Core::Hashable
|
9051
9386
|
|
9052
|
-
#
|
9053
|
-
# Corresponds to the JSON property `
|
9387
|
+
# Output only. The current state of this operation.
|
9388
|
+
# Corresponds to the JSON property `state`
|
9054
9389
|
# @return [String]
|
9055
|
-
attr_accessor :
|
9390
|
+
attr_accessor :state
|
9056
9391
|
|
9057
|
-
|
9058
|
-
|
9392
|
+
def initialize(**args)
|
9393
|
+
update!(**args)
|
9394
|
+
end
|
9395
|
+
|
9396
|
+
# Update properties of this object
|
9397
|
+
def update!(**args)
|
9398
|
+
@state = args[:state] if args.key?(:state)
|
9399
|
+
end
|
9400
|
+
end
|
9401
|
+
|
9402
|
+
# Represents a message posted into a conversation.
|
9403
|
+
class GoogleCloudDialogflowV2Message
|
9404
|
+
include Google::Apis::Core::Hashable
|
9405
|
+
|
9406
|
+
# Required. The message content.
|
9407
|
+
# Corresponds to the JSON property `content`
|
9408
|
+
# @return [String]
|
9409
|
+
attr_accessor :content
|
9410
|
+
|
9411
|
+
# Output only. The time when the message was created.
|
9412
|
+
# Corresponds to the JSON property `createTime`
|
9059
9413
|
# @return [String]
|
9060
9414
|
attr_accessor :create_time
|
9061
9415
|
|
@@ -9421,6 +9775,112 @@ module Google
|
|
9421
9775
|
end
|
9422
9776
|
end
|
9423
9777
|
|
9778
|
+
# The response message for Participants.SuggestArticles.
|
9779
|
+
class GoogleCloudDialogflowV2SuggestArticlesResponse
|
9780
|
+
include Google::Apis::Core::Hashable
|
9781
|
+
|
9782
|
+
# Articles ordered by score in descending order.
|
9783
|
+
# Corresponds to the JSON property `articleAnswers`
|
9784
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2ArticleAnswer>]
|
9785
|
+
attr_accessor :article_answers
|
9786
|
+
|
9787
|
+
# Number of messages prior to and including latest_message to compile the
|
9788
|
+
# suggestion. It may be smaller than the SuggestArticlesRequest.context_size
|
9789
|
+
# field in the request if there aren't that many messages in the conversation.
|
9790
|
+
# Corresponds to the JSON property `contextSize`
|
9791
|
+
# @return [Fixnum]
|
9792
|
+
attr_accessor :context_size
|
9793
|
+
|
9794
|
+
# The name of the latest conversation message used to compile suggestion for.
|
9795
|
+
# Format: `projects//locations//conversations//messages/`.
|
9796
|
+
# Corresponds to the JSON property `latestMessage`
|
9797
|
+
# @return [String]
|
9798
|
+
attr_accessor :latest_message
|
9799
|
+
|
9800
|
+
def initialize(**args)
|
9801
|
+
update!(**args)
|
9802
|
+
end
|
9803
|
+
|
9804
|
+
# Update properties of this object
|
9805
|
+
def update!(**args)
|
9806
|
+
@article_answers = args[:article_answers] if args.key?(:article_answers)
|
9807
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
9808
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
9809
|
+
end
|
9810
|
+
end
|
9811
|
+
|
9812
|
+
# The request message for Participants.SuggestFaqAnswers.
|
9813
|
+
class GoogleCloudDialogflowV2SuggestFaqAnswersResponse
|
9814
|
+
include Google::Apis::Core::Hashable
|
9815
|
+
|
9816
|
+
# Number of messages prior to and including latest_message to compile the
|
9817
|
+
# suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size
|
9818
|
+
# field in the request if there aren't that many messages in the conversation.
|
9819
|
+
# Corresponds to the JSON property `contextSize`
|
9820
|
+
# @return [Fixnum]
|
9821
|
+
attr_accessor :context_size
|
9822
|
+
|
9823
|
+
# Answers extracted from FAQ documents.
|
9824
|
+
# Corresponds to the JSON property `faqAnswers`
|
9825
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2FaqAnswer>]
|
9826
|
+
attr_accessor :faq_answers
|
9827
|
+
|
9828
|
+
# The name of the latest conversation message used to compile suggestion for.
|
9829
|
+
# Format: `projects//locations//conversations//messages/`.
|
9830
|
+
# Corresponds to the JSON property `latestMessage`
|
9831
|
+
# @return [String]
|
9832
|
+
attr_accessor :latest_message
|
9833
|
+
|
9834
|
+
def initialize(**args)
|
9835
|
+
update!(**args)
|
9836
|
+
end
|
9837
|
+
|
9838
|
+
# Update properties of this object
|
9839
|
+
def update!(**args)
|
9840
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
9841
|
+
@faq_answers = args[:faq_answers] if args.key?(:faq_answers)
|
9842
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
9843
|
+
end
|
9844
|
+
end
|
9845
|
+
|
9846
|
+
# One response of different type of suggestion response which is used in the
|
9847
|
+
# response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
|
9848
|
+
# well as HumanAgentAssistantEvent.
|
9849
|
+
class GoogleCloudDialogflowV2SuggestionResult
|
9850
|
+
include Google::Apis::Core::Hashable
|
9851
|
+
|
9852
|
+
# The `Status` type defines a logical error model that is suitable for different
|
9853
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
9854
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
9855
|
+
# data: error code, error message, and error details. You can find out more
|
9856
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
9857
|
+
# //cloud.google.com/apis/design/errors).
|
9858
|
+
# Corresponds to the JSON property `error`
|
9859
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleRpcStatus]
|
9860
|
+
attr_accessor :error
|
9861
|
+
|
9862
|
+
# The response message for Participants.SuggestArticles.
|
9863
|
+
# Corresponds to the JSON property `suggestArticlesResponse`
|
9864
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SuggestArticlesResponse]
|
9865
|
+
attr_accessor :suggest_articles_response
|
9866
|
+
|
9867
|
+
# The request message for Participants.SuggestFaqAnswers.
|
9868
|
+
# Corresponds to the JSON property `suggestFaqAnswersResponse`
|
9869
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
|
9870
|
+
attr_accessor :suggest_faq_answers_response
|
9871
|
+
|
9872
|
+
def initialize(**args)
|
9873
|
+
update!(**args)
|
9874
|
+
end
|
9875
|
+
|
9876
|
+
# Update properties of this object
|
9877
|
+
def update!(**args)
|
9878
|
+
@error = args[:error] if args.key?(:error)
|
9879
|
+
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
9880
|
+
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
9881
|
+
end
|
9882
|
+
end
|
9883
|
+
|
9424
9884
|
# The request message for a webhook call.
|
9425
9885
|
class GoogleCloudDialogflowV2WebhookRequest
|
9426
9886
|
include Google::Apis::Core::Hashable
|
@@ -9547,6 +10007,89 @@ module Google
|
|
9547
10007
|
end
|
9548
10008
|
end
|
9549
10009
|
|
10010
|
+
# Represents a part of a message possibly annotated with an entity. The part can
|
10011
|
+
# be an entity or purely a part of the message between two entities or message
|
10012
|
+
# start/end.
|
10013
|
+
class GoogleCloudDialogflowV2beta1AnnotatedMessagePart
|
10014
|
+
include Google::Apis::Core::Hashable
|
10015
|
+
|
10016
|
+
# Optional. The [Dialogflow system entity type](https://cloud.google.com/
|
10017
|
+
# dialogflow/docs/reference/system-entities) of this message part. If this is
|
10018
|
+
# empty, Dialogflow could not annotate the phrase part with a system entity.
|
10019
|
+
# Corresponds to the JSON property `entityType`
|
10020
|
+
# @return [String]
|
10021
|
+
attr_accessor :entity_type
|
10022
|
+
|
10023
|
+
# Optional. The [Dialogflow system entity formatted value ](https://cloud.google.
|
10024
|
+
# com/dialogflow/docs/reference/system-entities) of this message part. For
|
10025
|
+
# example for a system entity of type `@sys.unit-currency`, this may contain: ` "
|
10026
|
+
# amount": 5, "currency": "USD" `
|
10027
|
+
# Corresponds to the JSON property `formattedValue`
|
10028
|
+
# @return [Object]
|
10029
|
+
attr_accessor :formatted_value
|
10030
|
+
|
10031
|
+
# Required. A part of a message possibly annotated with an entity.
|
10032
|
+
# Corresponds to the JSON property `text`
|
10033
|
+
# @return [String]
|
10034
|
+
attr_accessor :text
|
10035
|
+
|
10036
|
+
def initialize(**args)
|
10037
|
+
update!(**args)
|
10038
|
+
end
|
10039
|
+
|
10040
|
+
# Update properties of this object
|
10041
|
+
def update!(**args)
|
10042
|
+
@entity_type = args[:entity_type] if args.key?(:entity_type)
|
10043
|
+
@formatted_value = args[:formatted_value] if args.key?(:formatted_value)
|
10044
|
+
@text = args[:text] if args.key?(:text)
|
10045
|
+
end
|
10046
|
+
end
|
10047
|
+
|
10048
|
+
# Represents article answer.
|
10049
|
+
class GoogleCloudDialogflowV2beta1ArticleAnswer
|
10050
|
+
include Google::Apis::Core::Hashable
|
10051
|
+
|
10052
|
+
# The name of answer record, in the format of "projects//locations//
|
10053
|
+
# answerRecords/"
|
10054
|
+
# Corresponds to the JSON property `answerRecord`
|
10055
|
+
# @return [String]
|
10056
|
+
attr_accessor :answer_record
|
10057
|
+
|
10058
|
+
# A map that contains metadata about the answer and the document from which it
|
10059
|
+
# originates.
|
10060
|
+
# Corresponds to the JSON property `metadata`
|
10061
|
+
# @return [Hash<String,String>]
|
10062
|
+
attr_accessor :metadata
|
10063
|
+
|
10064
|
+
# Output only. Article snippets.
|
10065
|
+
# Corresponds to the JSON property `snippets`
|
10066
|
+
# @return [Array<String>]
|
10067
|
+
attr_accessor :snippets
|
10068
|
+
|
10069
|
+
# The article title.
|
10070
|
+
# Corresponds to the JSON property `title`
|
10071
|
+
# @return [String]
|
10072
|
+
attr_accessor :title
|
10073
|
+
|
10074
|
+
# The article URI.
|
10075
|
+
# Corresponds to the JSON property `uri`
|
10076
|
+
# @return [String]
|
10077
|
+
attr_accessor :uri
|
10078
|
+
|
10079
|
+
def initialize(**args)
|
10080
|
+
update!(**args)
|
10081
|
+
end
|
10082
|
+
|
10083
|
+
# Update properties of this object
|
10084
|
+
def update!(**args)
|
10085
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
10086
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
10087
|
+
@snippets = args[:snippets] if args.key?(:snippets)
|
10088
|
+
@title = args[:title] if args.key?(:title)
|
10089
|
+
@uri = args[:uri] if args.key?(:uri)
|
10090
|
+
end
|
10091
|
+
end
|
10092
|
+
|
9550
10093
|
# The response message for EntityTypes.BatchUpdateEntityTypes.
|
9551
10094
|
class GoogleCloudDialogflowV2beta1BatchUpdateEntityTypesResponse
|
9552
10095
|
include Google::Apis::Core::Hashable
|
@@ -9647,6 +10190,50 @@ module Google
|
|
9647
10190
|
end
|
9648
10191
|
end
|
9649
10192
|
|
10193
|
+
# Represents a notification sent to Pub/Sub subscribers for conversation
|
10194
|
+
# lifecycle events.
|
10195
|
+
class GoogleCloudDialogflowV2beta1ConversationEvent
|
10196
|
+
include Google::Apis::Core::Hashable
|
10197
|
+
|
10198
|
+
# Required. The unique identifier of the conversation this notification refers
|
10199
|
+
# to. Format: `projects//conversations/`.
|
10200
|
+
# Corresponds to the JSON property `conversation`
|
10201
|
+
# @return [String]
|
10202
|
+
attr_accessor :conversation
|
10203
|
+
|
10204
|
+
# The `Status` type defines a logical error model that is suitable for different
|
10205
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
10206
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
10207
|
+
# data: error code, error message, and error details. You can find out more
|
10208
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
10209
|
+
# //cloud.google.com/apis/design/errors).
|
10210
|
+
# Corresponds to the JSON property `errorStatus`
|
10211
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleRpcStatus]
|
10212
|
+
attr_accessor :error_status
|
10213
|
+
|
10214
|
+
# Represents a message posted into a conversation.
|
10215
|
+
# Corresponds to the JSON property `newMessagePayload`
|
10216
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1Message]
|
10217
|
+
attr_accessor :new_message_payload
|
10218
|
+
|
10219
|
+
# Required. The type of the event that this notification refers to.
|
10220
|
+
# Corresponds to the JSON property `type`
|
10221
|
+
# @return [String]
|
10222
|
+
attr_accessor :type
|
10223
|
+
|
10224
|
+
def initialize(**args)
|
10225
|
+
update!(**args)
|
10226
|
+
end
|
10227
|
+
|
10228
|
+
# Update properties of this object
|
10229
|
+
def update!(**args)
|
10230
|
+
@conversation = args[:conversation] if args.key?(:conversation)
|
10231
|
+
@error_status = args[:error_status] if args.key?(:error_status)
|
10232
|
+
@new_message_payload = args[:new_message_payload] if args.key?(:new_message_payload)
|
10233
|
+
@type = args[:type] if args.key?(:type)
|
10234
|
+
end
|
10235
|
+
end
|
10236
|
+
|
9650
10237
|
# Each intent parameter has a type, called the entity type, which dictates
|
9651
10238
|
# exactly how data from an end-user expression is extracted. Dialogflow provides
|
9652
10239
|
# predefined system entities that can match many common types of data. For
|
@@ -9812,6 +10399,117 @@ module Google
|
|
9812
10399
|
end
|
9813
10400
|
end
|
9814
10401
|
|
10402
|
+
# Represents answer from "frequently asked questions".
|
10403
|
+
class GoogleCloudDialogflowV2beta1FaqAnswer
|
10404
|
+
include Google::Apis::Core::Hashable
|
10405
|
+
|
10406
|
+
# The piece of text from the `source` knowledge base document.
|
10407
|
+
# Corresponds to the JSON property `answer`
|
10408
|
+
# @return [String]
|
10409
|
+
attr_accessor :answer
|
10410
|
+
|
10411
|
+
# The name of answer record, in the format of "projects//locations//
|
10412
|
+
# answerRecords/"
|
10413
|
+
# Corresponds to the JSON property `answerRecord`
|
10414
|
+
# @return [String]
|
10415
|
+
attr_accessor :answer_record
|
10416
|
+
|
10417
|
+
# The system's confidence score that this Knowledge answer is a good match for
|
10418
|
+
# this conversational query, range from 0.0 (completely uncertain) to 1.0 (
|
10419
|
+
# completely certain).
|
10420
|
+
# Corresponds to the JSON property `confidence`
|
10421
|
+
# @return [Float]
|
10422
|
+
attr_accessor :confidence
|
10423
|
+
|
10424
|
+
# A map that contains metadata about the answer and the document from which it
|
10425
|
+
# originates.
|
10426
|
+
# Corresponds to the JSON property `metadata`
|
10427
|
+
# @return [Hash<String,String>]
|
10428
|
+
attr_accessor :metadata
|
10429
|
+
|
10430
|
+
# The corresponding FAQ question.
|
10431
|
+
# Corresponds to the JSON property `question`
|
10432
|
+
# @return [String]
|
10433
|
+
attr_accessor :question
|
10434
|
+
|
10435
|
+
# Indicates which Knowledge Document this answer was extracted from. Format: `
|
10436
|
+
# projects//locations//agent/knowledgeBases//documents/`.
|
10437
|
+
# Corresponds to the JSON property `source`
|
10438
|
+
# @return [String]
|
10439
|
+
attr_accessor :source
|
10440
|
+
|
10441
|
+
def initialize(**args)
|
10442
|
+
update!(**args)
|
10443
|
+
end
|
10444
|
+
|
10445
|
+
# Update properties of this object
|
10446
|
+
def update!(**args)
|
10447
|
+
@answer = args[:answer] if args.key?(:answer)
|
10448
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
10449
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
10450
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
10451
|
+
@question = args[:question] if args.key?(:question)
|
10452
|
+
@source = args[:source] if args.key?(:source)
|
10453
|
+
end
|
10454
|
+
end
|
10455
|
+
|
10456
|
+
# Output only. Represents a notification sent to Pub/Sub subscribers for agent
|
10457
|
+
# assistant events in a specific conversation.
|
10458
|
+
class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
|
10459
|
+
include Google::Apis::Core::Hashable
|
10460
|
+
|
10461
|
+
# The conversation this notification refers to. Format: `projects//conversations/
|
10462
|
+
# `.
|
10463
|
+
# Corresponds to the JSON property `conversation`
|
10464
|
+
# @return [String]
|
10465
|
+
attr_accessor :conversation
|
10466
|
+
|
10467
|
+
# The participant that the suggestion is compiled for. And This field is used to
|
10468
|
+
# call Participants.ListSuggestions API. Format: `projects//conversations//
|
10469
|
+
# participants/`. It will not be set in legacy workflow.
|
10470
|
+
# HumanAgentAssistantConfig.name for more information.
|
10471
|
+
# Corresponds to the JSON property `participant`
|
10472
|
+
# @return [String]
|
10473
|
+
attr_accessor :participant
|
10474
|
+
|
10475
|
+
# The suggestion results payload that this notification refers to. It will only
|
10476
|
+
# be set when HumanAgentAssistantConfig.SuggestionConfig.
|
10477
|
+
# group_suggestion_responses sets to true.
|
10478
|
+
# Corresponds to the JSON property `suggestionResults`
|
10479
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestionResult>]
|
10480
|
+
attr_accessor :suggestion_results
|
10481
|
+
|
10482
|
+
def initialize(**args)
|
10483
|
+
update!(**args)
|
10484
|
+
end
|
10485
|
+
|
10486
|
+
# Update properties of this object
|
10487
|
+
def update!(**args)
|
10488
|
+
@conversation = args[:conversation] if args.key?(:conversation)
|
10489
|
+
@participant = args[:participant] if args.key?(:participant)
|
10490
|
+
@suggestion_results = args[:suggestion_results] if args.key?(:suggestion_results)
|
10491
|
+
end
|
10492
|
+
end
|
10493
|
+
|
10494
|
+
# Response message for Documents.ImportDocuments.
|
10495
|
+
class GoogleCloudDialogflowV2beta1ImportDocumentsResponse
|
10496
|
+
include Google::Apis::Core::Hashable
|
10497
|
+
|
10498
|
+
# Includes details about skipped documents or any other warnings.
|
10499
|
+
# Corresponds to the JSON property `warnings`
|
10500
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleRpcStatus>]
|
10501
|
+
attr_accessor :warnings
|
10502
|
+
|
10503
|
+
def initialize(**args)
|
10504
|
+
update!(**args)
|
10505
|
+
end
|
10506
|
+
|
10507
|
+
# Update properties of this object
|
10508
|
+
def update!(**args)
|
10509
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
10510
|
+
end
|
10511
|
+
end
|
10512
|
+
|
9815
10513
|
# An intent categorizes an end-user's intention for one conversation turn. For
|
9816
10514
|
# each agent, you define many intents, where your combined intents can handle a
|
9817
10515
|
# complete conversation. When an end-user writes or says something, referred to
|
@@ -9874,6 +10572,14 @@ module Google
|
|
9874
10572
|
attr_accessor :is_fallback
|
9875
10573
|
alias_method :is_fallback?, :is_fallback
|
9876
10574
|
|
10575
|
+
# Optional. Indicates that a live agent should be brought in to handle the
|
10576
|
+
# interaction with the user. In most cases, when you set this flag to true, you
|
10577
|
+
# would also want to set end_interaction to true as well. Default is false.
|
10578
|
+
# Corresponds to the JSON property `liveAgentHandoff`
|
10579
|
+
# @return [Boolean]
|
10580
|
+
attr_accessor :live_agent_handoff
|
10581
|
+
alias_method :live_agent_handoff?, :live_agent_handoff
|
10582
|
+
|
9877
10583
|
# Optional. The collection of rich messages corresponding to the `Response`
|
9878
10584
|
# field in the Dialogflow console.
|
9879
10585
|
# Corresponds to the JSON property `messages`
|
@@ -9978,6 +10684,7 @@ module Google
|
|
9978
10684
|
@followup_intent_info = args[:followup_intent_info] if args.key?(:followup_intent_info)
|
9979
10685
|
@input_context_names = args[:input_context_names] if args.key?(:input_context_names)
|
9980
10686
|
@is_fallback = args[:is_fallback] if args.key?(:is_fallback)
|
10687
|
+
@live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
|
9981
10688
|
@messages = args[:messages] if args.key?(:messages)
|
9982
10689
|
@ml_disabled = args[:ml_disabled] if args.key?(:ml_disabled)
|
9983
10690
|
@ml_enabled = args[:ml_enabled] if args.key?(:ml_enabled)
|
@@ -11620,6 +12327,110 @@ module Google
|
|
11620
12327
|
end
|
11621
12328
|
end
|
11622
12329
|
|
12330
|
+
# Represents a message posted into a conversation.
|
12331
|
+
class GoogleCloudDialogflowV2beta1Message
|
12332
|
+
include Google::Apis::Core::Hashable
|
12333
|
+
|
12334
|
+
# Required. The message content.
|
12335
|
+
# Corresponds to the JSON property `content`
|
12336
|
+
# @return [String]
|
12337
|
+
attr_accessor :content
|
12338
|
+
|
12339
|
+
# Output only. The time when the message was created in Contact Center AI.
|
12340
|
+
# Corresponds to the JSON property `createTime`
|
12341
|
+
# @return [String]
|
12342
|
+
attr_accessor :create_time
|
12343
|
+
|
12344
|
+
# Optional. The message language. This should be a [BCP-47](https://www.rfc-
|
12345
|
+
# editor.org/rfc/bcp/bcp47.txt) language tag. Example: "en-US".
|
12346
|
+
# Corresponds to the JSON property `languageCode`
|
12347
|
+
# @return [String]
|
12348
|
+
attr_accessor :language_code
|
12349
|
+
|
12350
|
+
# Represents the result of annotation for the message.
|
12351
|
+
# Corresponds to the JSON property `messageAnnotation`
|
12352
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1MessageAnnotation]
|
12353
|
+
attr_accessor :message_annotation
|
12354
|
+
|
12355
|
+
# Optional. The unique identifier of the message. Format: `projects//locations//
|
12356
|
+
# conversations//messages/`.
|
12357
|
+
# Corresponds to the JSON property `name`
|
12358
|
+
# @return [String]
|
12359
|
+
attr_accessor :name
|
12360
|
+
|
12361
|
+
# Output only. The participant that sends this message.
|
12362
|
+
# Corresponds to the JSON property `participant`
|
12363
|
+
# @return [String]
|
12364
|
+
attr_accessor :participant
|
12365
|
+
|
12366
|
+
# Output only. The role of the participant.
|
12367
|
+
# Corresponds to the JSON property `participantRole`
|
12368
|
+
# @return [String]
|
12369
|
+
attr_accessor :participant_role
|
12370
|
+
|
12371
|
+
# Optional. The time when the message was sent.
|
12372
|
+
# Corresponds to the JSON property `sendTime`
|
12373
|
+
# @return [String]
|
12374
|
+
attr_accessor :send_time
|
12375
|
+
|
12376
|
+
# The result of sentiment analysis. Sentiment analysis inspects user input and
|
12377
|
+
# identifies the prevailing subjective opinion, especially to determine a user's
|
12378
|
+
# attitude as positive, negative, or neutral. For Participants.DetectIntent, it
|
12379
|
+
# needs to be configured in DetectIntentRequest.query_params. For Participants.
|
12380
|
+
# StreamingDetectIntent, it needs to be configured in
|
12381
|
+
# StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent
|
12382
|
+
# and Participants.StreamingAnalyzeContent, it needs to be configured in
|
12383
|
+
# ConversationProfile.human_agent_assistant_config
|
12384
|
+
# Corresponds to the JSON property `sentimentAnalysis`
|
12385
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SentimentAnalysisResult]
|
12386
|
+
attr_accessor :sentiment_analysis
|
12387
|
+
|
12388
|
+
def initialize(**args)
|
12389
|
+
update!(**args)
|
12390
|
+
end
|
12391
|
+
|
12392
|
+
# Update properties of this object
|
12393
|
+
def update!(**args)
|
12394
|
+
@content = args[:content] if args.key?(:content)
|
12395
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
12396
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
12397
|
+
@message_annotation = args[:message_annotation] if args.key?(:message_annotation)
|
12398
|
+
@name = args[:name] if args.key?(:name)
|
12399
|
+
@participant = args[:participant] if args.key?(:participant)
|
12400
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
12401
|
+
@send_time = args[:send_time] if args.key?(:send_time)
|
12402
|
+
@sentiment_analysis = args[:sentiment_analysis] if args.key?(:sentiment_analysis)
|
12403
|
+
end
|
12404
|
+
end
|
12405
|
+
|
12406
|
+
# Represents the result of annotation for the message.
|
12407
|
+
class GoogleCloudDialogflowV2beta1MessageAnnotation
|
12408
|
+
include Google::Apis::Core::Hashable
|
12409
|
+
|
12410
|
+
# Required. Indicates whether the text message contains entities.
|
12411
|
+
# Corresponds to the JSON property `containEntities`
|
12412
|
+
# @return [Boolean]
|
12413
|
+
attr_accessor :contain_entities
|
12414
|
+
alias_method :contain_entities?, :contain_entities
|
12415
|
+
|
12416
|
+
# Optional. The collection of annotated message parts ordered by their position
|
12417
|
+
# in the message. You can recover the annotated message by concatenating [
|
12418
|
+
# AnnotatedMessagePart.text].
|
12419
|
+
# Corresponds to the JSON property `parts`
|
12420
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1AnnotatedMessagePart>]
|
12421
|
+
attr_accessor :parts
|
12422
|
+
|
12423
|
+
def initialize(**args)
|
12424
|
+
update!(**args)
|
12425
|
+
end
|
12426
|
+
|
12427
|
+
# Update properties of this object
|
12428
|
+
def update!(**args)
|
12429
|
+
@contain_entities = args[:contain_entities] if args.key?(:contain_entities)
|
12430
|
+
@parts = args[:parts] if args.key?(:parts)
|
12431
|
+
end
|
12432
|
+
end
|
12433
|
+
|
11623
12434
|
# Represents the contents of the original request that was passed to the `[
|
11624
12435
|
# Streaming]DetectIntent` call.
|
11625
12436
|
class GoogleCloudDialogflowV2beta1OriginalDetectIntentRequest
|
@@ -11920,6 +12731,188 @@ module Google
|
|
11920
12731
|
end
|
11921
12732
|
end
|
11922
12733
|
|
12734
|
+
# Represents a smart reply answer.
|
12735
|
+
class GoogleCloudDialogflowV2beta1SmartReplyAnswer
|
12736
|
+
include Google::Apis::Core::Hashable
|
12737
|
+
|
12738
|
+
# The name of answer record, in the format of "projects//locations//
|
12739
|
+
# answerRecords/"
|
12740
|
+
# Corresponds to the JSON property `answerRecord`
|
12741
|
+
# @return [String]
|
12742
|
+
attr_accessor :answer_record
|
12743
|
+
|
12744
|
+
# Smart reply confidence. The system's confidence score that this reply is a
|
12745
|
+
# good match for this conversation, as a value from 0.0 (completely uncertain)
|
12746
|
+
# to 1.0 (completely certain).
|
12747
|
+
# Corresponds to the JSON property `confidence`
|
12748
|
+
# @return [Float]
|
12749
|
+
attr_accessor :confidence
|
12750
|
+
|
12751
|
+
# The content of the reply.
|
12752
|
+
# Corresponds to the JSON property `reply`
|
12753
|
+
# @return [String]
|
12754
|
+
attr_accessor :reply
|
12755
|
+
|
12756
|
+
def initialize(**args)
|
12757
|
+
update!(**args)
|
12758
|
+
end
|
12759
|
+
|
12760
|
+
# Update properties of this object
|
12761
|
+
def update!(**args)
|
12762
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
12763
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
12764
|
+
@reply = args[:reply] if args.key?(:reply)
|
12765
|
+
end
|
12766
|
+
end
|
12767
|
+
|
12768
|
+
# The response message for Participants.SuggestArticles.
|
12769
|
+
class GoogleCloudDialogflowV2beta1SuggestArticlesResponse
|
12770
|
+
include Google::Apis::Core::Hashable
|
12771
|
+
|
12772
|
+
# Output only. Articles ordered by score in descending order.
|
12773
|
+
# Corresponds to the JSON property `articleAnswers`
|
12774
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1ArticleAnswer>]
|
12775
|
+
attr_accessor :article_answers
|
12776
|
+
|
12777
|
+
# Number of messages prior to and including latest_message to compile the
|
12778
|
+
# suggestion. It may be smaller than the SuggestArticlesResponse.context_size
|
12779
|
+
# field in the request if there aren't that many messages in the conversation.
|
12780
|
+
# Corresponds to the JSON property `contextSize`
|
12781
|
+
# @return [Fixnum]
|
12782
|
+
attr_accessor :context_size
|
12783
|
+
|
12784
|
+
# The name of the latest conversation message used to compile suggestion for.
|
12785
|
+
# Format: `projects//locations//conversations//messages/`.
|
12786
|
+
# Corresponds to the JSON property `latestMessage`
|
12787
|
+
# @return [String]
|
12788
|
+
attr_accessor :latest_message
|
12789
|
+
|
12790
|
+
def initialize(**args)
|
12791
|
+
update!(**args)
|
12792
|
+
end
|
12793
|
+
|
12794
|
+
# Update properties of this object
|
12795
|
+
def update!(**args)
|
12796
|
+
@article_answers = args[:article_answers] if args.key?(:article_answers)
|
12797
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
12798
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
12799
|
+
end
|
12800
|
+
end
|
12801
|
+
|
12802
|
+
# The request message for Participants.SuggestFaqAnswers.
|
12803
|
+
class GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse
|
12804
|
+
include Google::Apis::Core::Hashable
|
12805
|
+
|
12806
|
+
# Number of messages prior to and including latest_message to compile the
|
12807
|
+
# suggestion. It may be smaller than the SuggestFaqAnswersRequest.context_size
|
12808
|
+
# field in the request if there aren't that many messages in the conversation.
|
12809
|
+
# Corresponds to the JSON property `contextSize`
|
12810
|
+
# @return [Fixnum]
|
12811
|
+
attr_accessor :context_size
|
12812
|
+
|
12813
|
+
# Output only. Answers extracted from FAQ documents.
|
12814
|
+
# Corresponds to the JSON property `faqAnswers`
|
12815
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1FaqAnswer>]
|
12816
|
+
attr_accessor :faq_answers
|
12817
|
+
|
12818
|
+
# The name of the latest conversation message used to compile suggestion for.
|
12819
|
+
# Format: `projects//locations//conversations//messages/`.
|
12820
|
+
# Corresponds to the JSON property `latestMessage`
|
12821
|
+
# @return [String]
|
12822
|
+
attr_accessor :latest_message
|
12823
|
+
|
12824
|
+
def initialize(**args)
|
12825
|
+
update!(**args)
|
12826
|
+
end
|
12827
|
+
|
12828
|
+
# Update properties of this object
|
12829
|
+
def update!(**args)
|
12830
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
12831
|
+
@faq_answers = args[:faq_answers] if args.key?(:faq_answers)
|
12832
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
12833
|
+
end
|
12834
|
+
end
|
12835
|
+
|
12836
|
+
# The response message for Participants.SuggestSmartReplies.
|
12837
|
+
class GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse
|
12838
|
+
include Google::Apis::Core::Hashable
|
12839
|
+
|
12840
|
+
# Number of messages prior to and including latest_message to compile the
|
12841
|
+
# suggestion. It may be smaller than the SuggestSmartRepliesRequest.context_size
|
12842
|
+
# field in the request if there aren't that many messages in the conversation.
|
12843
|
+
# Corresponds to the JSON property `contextSize`
|
12844
|
+
# @return [Fixnum]
|
12845
|
+
attr_accessor :context_size
|
12846
|
+
|
12847
|
+
# The name of the latest conversation message used to compile suggestion for.
|
12848
|
+
# Format: `projects//locations//conversations//messages/`.
|
12849
|
+
# Corresponds to the JSON property `latestMessage`
|
12850
|
+
# @return [String]
|
12851
|
+
attr_accessor :latest_message
|
12852
|
+
|
12853
|
+
# Output only. Multiple reply options provided by smart reply service. The order
|
12854
|
+
# is based on the rank of the model prediction. The maximum number of the
|
12855
|
+
# returned replies is set in SmartReplyConfig.
|
12856
|
+
# Corresponds to the JSON property `smartReplyAnswers`
|
12857
|
+
# @return [Array<Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SmartReplyAnswer>]
|
12858
|
+
attr_accessor :smart_reply_answers
|
12859
|
+
|
12860
|
+
def initialize(**args)
|
12861
|
+
update!(**args)
|
12862
|
+
end
|
12863
|
+
|
12864
|
+
# Update properties of this object
|
12865
|
+
def update!(**args)
|
12866
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
12867
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
12868
|
+
@smart_reply_answers = args[:smart_reply_answers] if args.key?(:smart_reply_answers)
|
12869
|
+
end
|
12870
|
+
end
|
12871
|
+
|
12872
|
+
# One response of different type of suggestion response which is used in the
|
12873
|
+
# response of Participants.AnalyzeContent and Participants.AnalyzeContent, as
|
12874
|
+
# well as HumanAgentAssistantEvent.
|
12875
|
+
class GoogleCloudDialogflowV2beta1SuggestionResult
|
12876
|
+
include Google::Apis::Core::Hashable
|
12877
|
+
|
12878
|
+
# The `Status` type defines a logical error model that is suitable for different
|
12879
|
+
# programming environments, including REST APIs and RPC APIs. It is used by [
|
12880
|
+
# gRPC](https://github.com/grpc). Each `Status` message contains three pieces of
|
12881
|
+
# data: error code, error message, and error details. You can find out more
|
12882
|
+
# about this error model and how to work with it in the [API Design Guide](https:
|
12883
|
+
# //cloud.google.com/apis/design/errors).
|
12884
|
+
# Corresponds to the JSON property `error`
|
12885
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleRpcStatus]
|
12886
|
+
attr_accessor :error
|
12887
|
+
|
12888
|
+
# The response message for Participants.SuggestArticles.
|
12889
|
+
# Corresponds to the JSON property `suggestArticlesResponse`
|
12890
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestArticlesResponse]
|
12891
|
+
attr_accessor :suggest_articles_response
|
12892
|
+
|
12893
|
+
# The request message for Participants.SuggestFaqAnswers.
|
12894
|
+
# Corresponds to the JSON property `suggestFaqAnswersResponse`
|
12895
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestFaqAnswersResponse]
|
12896
|
+
attr_accessor :suggest_faq_answers_response
|
12897
|
+
|
12898
|
+
# The response message for Participants.SuggestSmartReplies.
|
12899
|
+
# Corresponds to the JSON property `suggestSmartRepliesResponse`
|
12900
|
+
# @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SuggestSmartRepliesResponse]
|
12901
|
+
attr_accessor :suggest_smart_replies_response
|
12902
|
+
|
12903
|
+
def initialize(**args)
|
12904
|
+
update!(**args)
|
12905
|
+
end
|
12906
|
+
|
12907
|
+
# Update properties of this object
|
12908
|
+
def update!(**args)
|
12909
|
+
@error = args[:error] if args.key?(:error)
|
12910
|
+
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
12911
|
+
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
12912
|
+
@suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
|
12913
|
+
end
|
12914
|
+
end
|
12915
|
+
|
11923
12916
|
# The request message for a webhook call.
|
11924
12917
|
class GoogleCloudDialogflowV2beta1WebhookRequest
|
11925
12918
|
include Google::Apis::Core::Hashable
|
@@ -12010,6 +13003,14 @@ module Google
|
|
12010
13003
|
# @return [String]
|
12011
13004
|
attr_accessor :fulfillment_text
|
12012
13005
|
|
13006
|
+
# Indicates that a live agent should be brought in to handle the interaction
|
13007
|
+
# with the user. In most cases, when you set this flag to true, you would also
|
13008
|
+
# want to set end_interaction to true as well. Default is false.
|
13009
|
+
# Corresponds to the JSON property `liveAgentHandoff`
|
13010
|
+
# @return [Boolean]
|
13011
|
+
attr_accessor :live_agent_handoff
|
13012
|
+
alias_method :live_agent_handoff?, :live_agent_handoff
|
13013
|
+
|
12013
13014
|
# Optional. The collection of output contexts that will overwrite currently
|
12014
13015
|
# active contexts for the session and reset their lifespans. When provided,
|
12015
13016
|
# Dialogflow uses this field to populate QueryResult.output_contexts sent to the
|
@@ -12056,6 +13057,7 @@ module Google
|
|
12056
13057
|
@followup_event_input = args[:followup_event_input] if args.key?(:followup_event_input)
|
12057
13058
|
@fulfillment_messages = args[:fulfillment_messages] if args.key?(:fulfillment_messages)
|
12058
13059
|
@fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text)
|
13060
|
+
@live_agent_handoff = args[:live_agent_handoff] if args.key?(:live_agent_handoff)
|
12059
13061
|
@output_contexts = args[:output_contexts] if args.key?(:output_contexts)
|
12060
13062
|
@payload = args[:payload] if args.key?(:payload)
|
12061
13063
|
@session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types)
|