google-apis-dialogflow_v2 0.24.0 → 0.28.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +17 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/dialogflow_v2/classes.rb +403 -24
- data/lib/google/apis/dialogflow_v2/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2/representations.rb +153 -0
- data/lib/google/apis/dialogflow_v2/service.rb +225 -6
- metadata +4 -4
@@ -1526,6 +1526,12 @@ module Google
|
|
1526
1526
|
# @return [String]
|
1527
1527
|
attr_accessor :current_page
|
1528
1528
|
|
1529
|
+
# Always present for WebhookRequest. Ignored for WebhookResponse. The display
|
1530
|
+
# name of the current page.
|
1531
|
+
# Corresponds to the JSON property `displayName`
|
1532
|
+
# @return [String]
|
1533
|
+
attr_accessor :display_name
|
1534
|
+
|
1529
1535
|
# Represents form information.
|
1530
1536
|
# Corresponds to the JSON property `formInfo`
|
1531
1537
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3PageInfoFormInfo]
|
@@ -1538,6 +1544,7 @@ module Google
|
|
1538
1544
|
# Update properties of this object
|
1539
1545
|
def update!(**args)
|
1540
1546
|
@current_page = args[:current_page] if args.key?(:current_page)
|
1547
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1541
1548
|
@form_info = args[:form_info] if args.key?(:form_info)
|
1542
1549
|
end
|
1543
1550
|
end
|
@@ -1760,6 +1767,12 @@ module Google
|
|
1760
1767
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessagePlayAudio]
|
1761
1768
|
attr_accessor :play_audio
|
1762
1769
|
|
1770
|
+
# Represents the signal that telles the client to transfer the phone call
|
1771
|
+
# connected to the agent to a third-party endpoint.
|
1772
|
+
# Corresponds to the JSON property `telephonyTransferCall`
|
1773
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall]
|
1774
|
+
attr_accessor :telephony_transfer_call
|
1775
|
+
|
1763
1776
|
# The text response message.
|
1764
1777
|
# Corresponds to the JSON property `text`
|
1765
1778
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3ResponseMessageText]
|
@@ -1778,6 +1791,7 @@ module Google
|
|
1778
1791
|
@output_audio_text = args[:output_audio_text] if args.key?(:output_audio_text)
|
1779
1792
|
@payload = args[:payload] if args.key?(:payload)
|
1780
1793
|
@play_audio = args[:play_audio] if args.key?(:play_audio)
|
1794
|
+
@telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
|
1781
1795
|
@text = args[:text] if args.key?(:text)
|
1782
1796
|
end
|
1783
1797
|
end
|
@@ -1970,6 +1984,27 @@ module Google
|
|
1970
1984
|
end
|
1971
1985
|
end
|
1972
1986
|
|
1987
|
+
# Represents the signal that telles the client to transfer the phone call
|
1988
|
+
# connected to the agent to a third-party endpoint.
|
1989
|
+
class GoogleCloudDialogflowCxV3ResponseMessageTelephonyTransferCall
|
1990
|
+
include Google::Apis::Core::Hashable
|
1991
|
+
|
1992
|
+
# Transfer the call to a phone number in [E.164 format](https://en.wikipedia.org/
|
1993
|
+
# wiki/E.164).
|
1994
|
+
# Corresponds to the JSON property `phoneNumber`
|
1995
|
+
# @return [String]
|
1996
|
+
attr_accessor :phone_number
|
1997
|
+
|
1998
|
+
def initialize(**args)
|
1999
|
+
update!(**args)
|
2000
|
+
end
|
2001
|
+
|
2002
|
+
# Update properties of this object
|
2003
|
+
def update!(**args)
|
2004
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
2005
|
+
end
|
2006
|
+
end
|
2007
|
+
|
1973
2008
|
# The text response message.
|
1974
2009
|
class GoogleCloudDialogflowCxV3ResponseMessageText
|
1975
2010
|
include Google::Apis::Core::Hashable
|
@@ -4233,6 +4268,12 @@ module Google
|
|
4233
4268
|
# @return [String]
|
4234
4269
|
attr_accessor :current_page
|
4235
4270
|
|
4271
|
+
# Always present for WebhookRequest. Ignored for WebhookResponse. The display
|
4272
|
+
# name of the current page.
|
4273
|
+
# Corresponds to the JSON property `displayName`
|
4274
|
+
# @return [String]
|
4275
|
+
attr_accessor :display_name
|
4276
|
+
|
4236
4277
|
# Represents form information.
|
4237
4278
|
# Corresponds to the JSON property `formInfo`
|
4238
4279
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo]
|
@@ -4245,6 +4286,7 @@ module Google
|
|
4245
4286
|
# Update properties of this object
|
4246
4287
|
def update!(**args)
|
4247
4288
|
@current_page = args[:current_page] if args.key?(:current_page)
|
4289
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
4248
4290
|
@form_info = args[:form_info] if args.key?(:form_info)
|
4249
4291
|
end
|
4250
4292
|
end
|
@@ -4467,6 +4509,12 @@ module Google
|
|
4467
4509
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessagePlayAudio]
|
4468
4510
|
attr_accessor :play_audio
|
4469
4511
|
|
4512
|
+
# Represents the signal that telles the client to transfer the phone call
|
4513
|
+
# connected to the agent to a third-party endpoint.
|
4514
|
+
# Corresponds to the JSON property `telephonyTransferCall`
|
4515
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall]
|
4516
|
+
attr_accessor :telephony_transfer_call
|
4517
|
+
|
4470
4518
|
# The text response message.
|
4471
4519
|
# Corresponds to the JSON property `text`
|
4472
4520
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1ResponseMessageText]
|
@@ -4485,6 +4533,7 @@ module Google
|
|
4485
4533
|
@output_audio_text = args[:output_audio_text] if args.key?(:output_audio_text)
|
4486
4534
|
@payload = args[:payload] if args.key?(:payload)
|
4487
4535
|
@play_audio = args[:play_audio] if args.key?(:play_audio)
|
4536
|
+
@telephony_transfer_call = args[:telephony_transfer_call] if args.key?(:telephony_transfer_call)
|
4488
4537
|
@text = args[:text] if args.key?(:text)
|
4489
4538
|
end
|
4490
4539
|
end
|
@@ -4677,6 +4726,27 @@ module Google
|
|
4677
4726
|
end
|
4678
4727
|
end
|
4679
4728
|
|
4729
|
+
# Represents the signal that telles the client to transfer the phone call
|
4730
|
+
# connected to the agent to a third-party endpoint.
|
4731
|
+
class GoogleCloudDialogflowCxV3beta1ResponseMessageTelephonyTransferCall
|
4732
|
+
include Google::Apis::Core::Hashable
|
4733
|
+
|
4734
|
+
# Transfer the call to a phone number in [E.164 format](https://en.wikipedia.org/
|
4735
|
+
# wiki/E.164).
|
4736
|
+
# Corresponds to the JSON property `phoneNumber`
|
4737
|
+
# @return [String]
|
4738
|
+
attr_accessor :phone_number
|
4739
|
+
|
4740
|
+
def initialize(**args)
|
4741
|
+
update!(**args)
|
4742
|
+
end
|
4743
|
+
|
4744
|
+
# Update properties of this object
|
4745
|
+
def update!(**args)
|
4746
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
4747
|
+
end
|
4748
|
+
end
|
4749
|
+
|
4680
4750
|
# The text response message.
|
4681
4751
|
class GoogleCloudDialogflowCxV3beta1ResponseMessageText
|
4682
4752
|
include Google::Apis::Core::Hashable
|
@@ -5614,6 +5684,11 @@ module Google
|
|
5614
5684
|
class GoogleCloudDialogflowV2AnalyzeContentRequest
|
5615
5685
|
include Google::Apis::Core::Hashable
|
5616
5686
|
|
5687
|
+
# Represents the parameters of human assist query.
|
5688
|
+
# Corresponds to the JSON property `assistQueryParams`
|
5689
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AssistQueryParameters]
|
5690
|
+
attr_accessor :assist_query_params
|
5691
|
+
|
5617
5692
|
# Events allow for matching intents by event name instead of the natural
|
5618
5693
|
# language input. For instance, input `` can trigger a personalized welcome
|
5619
5694
|
# response. The parameter `name` may be used by the agent in the response: `"
|
@@ -5652,6 +5727,7 @@ module Google
|
|
5652
5727
|
|
5653
5728
|
# Update properties of this object
|
5654
5729
|
def update!(**args)
|
5730
|
+
@assist_query_params = args[:assist_query_params] if args.key?(:assist_query_params)
|
5655
5731
|
@event_input = args[:event_input] if args.key?(:event_input)
|
5656
5732
|
@query_params = args[:query_params] if args.key?(:query_params)
|
5657
5733
|
@reply_audio_config = args[:reply_audio_config] if args.key?(:reply_audio_config)
|
@@ -5909,6 +5985,31 @@ module Google
|
|
5909
5985
|
end
|
5910
5986
|
end
|
5911
5987
|
|
5988
|
+
# Represents the parameters of human assist query.
|
5989
|
+
class GoogleCloudDialogflowV2AssistQueryParameters
|
5990
|
+
include Google::Apis::Core::Hashable
|
5991
|
+
|
5992
|
+
# Key-value filters on the metadata of documents returned by article suggestion.
|
5993
|
+
# If specified, article suggestion only returns suggested documents that match
|
5994
|
+
# all filters in their Document.metadata. Multiple values for a metadata key
|
5995
|
+
# should be concatenated by comma. For example, filters to match all documents
|
5996
|
+
# that have 'US' or 'CA' in their market metadata values and 'agent' in their
|
5997
|
+
# user metadata values will be ``` documents_metadata_filters ` key: "market"
|
5998
|
+
# value: "US,CA" ` documents_metadata_filters ` key: "user" value: "agent" ` ```
|
5999
|
+
# Corresponds to the JSON property `documentsMetadataFilters`
|
6000
|
+
# @return [Hash<String,String>]
|
6001
|
+
attr_accessor :documents_metadata_filters
|
6002
|
+
|
6003
|
+
def initialize(**args)
|
6004
|
+
update!(**args)
|
6005
|
+
end
|
6006
|
+
|
6007
|
+
# Update properties of this object
|
6008
|
+
def update!(**args)
|
6009
|
+
@documents_metadata_filters = args[:documents_metadata_filters] if args.key?(:documents_metadata_filters)
|
6010
|
+
end
|
6011
|
+
end
|
6012
|
+
|
5912
6013
|
# Defines the Automated Agent to connect to a conversation.
|
5913
6014
|
class GoogleCloudDialogflowV2AutomatedAgentConfig
|
5914
6015
|
include Google::Apis::Core::Hashable
|
@@ -5916,10 +6017,13 @@ module Google
|
|
5916
6017
|
# Required. ID of the Dialogflow agent environment to use. This project needs to
|
5917
6018
|
# either be the same project as the conversation or you need to grant `service-@
|
5918
6019
|
# gcp-sa-dialogflow.iam.gserviceaccount.com` the `Dialogflow API Service Agent`
|
5919
|
-
# role in this project.
|
5920
|
-
# environment is not specified, the default `draft`
|
5921
|
-
# to [DetectIntentRequest](/dialogflow/docs/reference/
|
5922
|
-
# dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
|
6020
|
+
# role in this project. - For ES agents, use format: `projects//locations//agent/
|
6021
|
+
# environments/`. If environment is not specified, the default `draft`
|
6022
|
+
# environment is used. Refer to [DetectIntentRequest](/dialogflow/docs/reference/
|
6023
|
+
# rpc/google.cloud.dialogflow.v2#google.cloud.dialogflow.v2.DetectIntentRequest)
|
6024
|
+
# for more details. - For CX agents, use format `projects//locations//agents//
|
6025
|
+
# environments/`. If environment is not specified, the default `draft`
|
6026
|
+
# environment is used.
|
5923
6027
|
# Corresponds to the JSON property `agent`
|
5924
6028
|
# @return [String]
|
5925
6029
|
attr_accessor :agent
|
@@ -6465,9 +6569,10 @@ module Google
|
|
6465
6569
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentHandoffConfig]
|
6466
6570
|
attr_accessor :human_agent_handoff_config
|
6467
6571
|
|
6468
|
-
# Language
|
6469
|
-
#
|
6470
|
-
#
|
6572
|
+
# Language code for the conversation profile. If not specified, the language is
|
6573
|
+
# en-US. Language at ConversationProfile should be set for all non en-US
|
6574
|
+
# languages. This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.
|
6575
|
+
# txt) language tag. Example: "en-US".
|
6471
6576
|
# Corresponds to the JSON property `languageCode`
|
6472
6577
|
# @return [String]
|
6473
6578
|
attr_accessor :language_code
|
@@ -6493,11 +6598,24 @@ module Google
|
|
6493
6598
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2NotificationConfig]
|
6494
6599
|
attr_accessor :notification_config
|
6495
6600
|
|
6601
|
+
# Name of the CX SecuritySettings reference for the agent. Format: `projects//
|
6602
|
+
# locations//securitySettings/`.
|
6603
|
+
# Corresponds to the JSON property `securitySettings`
|
6604
|
+
# @return [String]
|
6605
|
+
attr_accessor :security_settings
|
6606
|
+
|
6496
6607
|
# Configures speech transcription for ConversationProfile.
|
6497
6608
|
# Corresponds to the JSON property `sttConfig`
|
6498
6609
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechToTextConfig]
|
6499
6610
|
attr_accessor :stt_config
|
6500
6611
|
|
6612
|
+
# The time zone of this conversational profile from the [time zone database](
|
6613
|
+
# https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
|
6614
|
+
# Defaults to America/New_York.
|
6615
|
+
# Corresponds to the JSON property `timeZone`
|
6616
|
+
# @return [String]
|
6617
|
+
attr_accessor :time_zone
|
6618
|
+
|
6501
6619
|
# Output only. Update time of the conversation profile.
|
6502
6620
|
# Corresponds to the JSON property `updateTime`
|
6503
6621
|
# @return [String]
|
@@ -6519,7 +6637,9 @@ module Google
|
|
6519
6637
|
@name = args[:name] if args.key?(:name)
|
6520
6638
|
@new_message_event_notification_config = args[:new_message_event_notification_config] if args.key?(:new_message_event_notification_config)
|
6521
6639
|
@notification_config = args[:notification_config] if args.key?(:notification_config)
|
6640
|
+
@security_settings = args[:security_settings] if args.key?(:security_settings)
|
6522
6641
|
@stt_config = args[:stt_config] if args.key?(:stt_config)
|
6642
|
+
@time_zone = args[:time_zone] if args.key?(:time_zone)
|
6523
6643
|
@update_time = args[:update_time] if args.key?(:update_time)
|
6524
6644
|
end
|
6525
6645
|
end
|
@@ -7127,6 +7247,40 @@ module Google
|
|
7127
7247
|
end
|
7128
7248
|
end
|
7129
7249
|
|
7250
|
+
# Request message for Documents.ExportDocument.
|
7251
|
+
class GoogleCloudDialogflowV2ExportDocumentRequest
|
7252
|
+
include Google::Apis::Core::Hashable
|
7253
|
+
|
7254
|
+
# When enabled, export the full content of the document including empirical
|
7255
|
+
# probability.
|
7256
|
+
# Corresponds to the JSON property `exportFullContent`
|
7257
|
+
# @return [Boolean]
|
7258
|
+
attr_accessor :export_full_content
|
7259
|
+
alias_method :export_full_content?, :export_full_content
|
7260
|
+
|
7261
|
+
# Google Cloud Storage location for the output.
|
7262
|
+
# Corresponds to the JSON property `gcsDestination`
|
7263
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GcsDestination]
|
7264
|
+
attr_accessor :gcs_destination
|
7265
|
+
|
7266
|
+
# When enabled, export the smart messaging allowlist document for partial update.
|
7267
|
+
# Corresponds to the JSON property `smartMessagingPartialUpdate`
|
7268
|
+
# @return [Boolean]
|
7269
|
+
attr_accessor :smart_messaging_partial_update
|
7270
|
+
alias_method :smart_messaging_partial_update?, :smart_messaging_partial_update
|
7271
|
+
|
7272
|
+
def initialize(**args)
|
7273
|
+
update!(**args)
|
7274
|
+
end
|
7275
|
+
|
7276
|
+
# Update properties of this object
|
7277
|
+
def update!(**args)
|
7278
|
+
@export_full_content = args[:export_full_content] if args.key?(:export_full_content)
|
7279
|
+
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
7280
|
+
@smart_messaging_partial_update = args[:smart_messaging_partial_update] if args.key?(:smart_messaging_partial_update)
|
7281
|
+
end
|
7282
|
+
end
|
7283
|
+
|
7130
7284
|
# Represents answer from "frequently asked questions".
|
7131
7285
|
class GoogleCloudDialogflowV2FaqAnswer
|
7132
7286
|
include Google::Apis::Core::Hashable
|
@@ -7310,6 +7464,27 @@ module Google
|
|
7310
7464
|
end
|
7311
7465
|
end
|
7312
7466
|
|
7467
|
+
# Google Cloud Storage location for the output.
|
7468
|
+
class GoogleCloudDialogflowV2GcsDestination
|
7469
|
+
include Google::Apis::Core::Hashable
|
7470
|
+
|
7471
|
+
# The Google Cloud Storage URIs for the output. A URI is of the form: gs://
|
7472
|
+
# bucket/object-prefix-or-name Whether a prefix or name is used depends on the
|
7473
|
+
# use case. The requesting user must have "write-permission" to the bucket.
|
7474
|
+
# Corresponds to the JSON property `uri`
|
7475
|
+
# @return [String]
|
7476
|
+
attr_accessor :uri
|
7477
|
+
|
7478
|
+
def initialize(**args)
|
7479
|
+
update!(**args)
|
7480
|
+
end
|
7481
|
+
|
7482
|
+
# Update properties of this object
|
7483
|
+
def update!(**args)
|
7484
|
+
@uri = args[:uri] if args.key?(:uri)
|
7485
|
+
end
|
7486
|
+
end
|
7487
|
+
|
7313
7488
|
# Defines the Human Agent Assist to connect to a conversation.
|
7314
7489
|
class GoogleCloudDialogflowV2HumanAgentAssistantConfig
|
7315
7490
|
include Google::Apis::Core::Hashable
|
@@ -7367,6 +7542,26 @@ module Google
|
|
7367
7542
|
end
|
7368
7543
|
end
|
7369
7544
|
|
7545
|
+
# Config to process conversation.
|
7546
|
+
class GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig
|
7547
|
+
include Google::Apis::Core::Hashable
|
7548
|
+
|
7549
|
+
# Number of recent non-small-talk sentences to use as context for article and
|
7550
|
+
# FAQ suggestion
|
7551
|
+
# Corresponds to the JSON property `recentSentencesCount`
|
7552
|
+
# @return [Fixnum]
|
7553
|
+
attr_accessor :recent_sentences_count
|
7554
|
+
|
7555
|
+
def initialize(**args)
|
7556
|
+
update!(**args)
|
7557
|
+
end
|
7558
|
+
|
7559
|
+
# Update properties of this object
|
7560
|
+
def update!(**args)
|
7561
|
+
@recent_sentences_count = args[:recent_sentences_count] if args.key?(:recent_sentences_count)
|
7562
|
+
end
|
7563
|
+
end
|
7564
|
+
|
7370
7565
|
# Configuration for analyses to run on each conversation message.
|
7371
7566
|
class GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig
|
7372
7567
|
include Google::Apis::Core::Hashable
|
@@ -7453,6 +7648,11 @@ module Google
|
|
7453
7648
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig]
|
7454
7649
|
attr_accessor :conversation_model_config
|
7455
7650
|
|
7651
|
+
# Config to process conversation.
|
7652
|
+
# Corresponds to the JSON property `conversationProcessConfig`
|
7653
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig]
|
7654
|
+
attr_accessor :conversation_process_config
|
7655
|
+
|
7456
7656
|
# Automatically iterates all participants and tries to compile suggestions.
|
7457
7657
|
# Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST.
|
7458
7658
|
# Corresponds to the JSON property `enableEventBasedSuggestion`
|
@@ -7484,6 +7684,7 @@ module Google
|
|
7484
7684
|
# Update properties of this object
|
7485
7685
|
def update!(**args)
|
7486
7686
|
@conversation_model_config = args[:conversation_model_config] if args.key?(:conversation_model_config)
|
7687
|
+
@conversation_process_config = args[:conversation_process_config] if args.key?(:conversation_process_config)
|
7487
7688
|
@enable_event_based_suggestion = args[:enable_event_based_suggestion] if args.key?(:enable_event_based_suggestion)
|
7488
7689
|
@query_config = args[:query_config] if args.key?(:query_config)
|
7489
7690
|
@suggestion_feature = args[:suggestion_feature] if args.key?(:suggestion_feature)
|
@@ -7504,7 +7705,8 @@ module Google
|
|
7504
7705
|
# custom model, there is no recommended value. Tune this value by starting from
|
7505
7706
|
# a very low value and slowly increasing until you have desired results. If this
|
7506
7707
|
# field is not set, it defaults to 0.0, which means that all suggestions are
|
7507
|
-
# returned. Supported features: ARTICLE_SUGGESTION
|
7708
|
+
# returned. Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY,
|
7709
|
+
# SMART_COMPOSE.
|
7508
7710
|
# Corresponds to the JSON property `confidenceThreshold`
|
7509
7711
|
# @return [Float]
|
7510
7712
|
attr_accessor :confidence_threshold
|
@@ -9642,7 +9844,7 @@ module Google
|
|
9642
9844
|
# @return [String]
|
9643
9845
|
attr_accessor :content
|
9644
9846
|
|
9645
|
-
# Output only. The time when the message was created.
|
9847
|
+
# Output only. The time when the message was created in Contact Center AI.
|
9646
9848
|
# Corresponds to the JSON property `createTime`
|
9647
9849
|
# @return [String]
|
9648
9850
|
attr_accessor :create_time
|
@@ -9658,7 +9860,7 @@ module Google
|
|
9658
9860
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageAnnotation]
|
9659
9861
|
attr_accessor :message_annotation
|
9660
9862
|
|
9661
|
-
# The unique identifier of the message. Format: `projects//locations//
|
9863
|
+
# Optional. The unique identifier of the message. Format: `projects//locations//
|
9662
9864
|
# conversations//messages/`.
|
9663
9865
|
# Corresponds to the JSON property `name`
|
9664
9866
|
# @return [String]
|
@@ -9674,6 +9876,23 @@ module Google
|
|
9674
9876
|
# @return [String]
|
9675
9877
|
attr_accessor :participant_role
|
9676
9878
|
|
9879
|
+
# Optional. The time when the message was sent.
|
9880
|
+
# Corresponds to the JSON property `sendTime`
|
9881
|
+
# @return [String]
|
9882
|
+
attr_accessor :send_time
|
9883
|
+
|
9884
|
+
# The result of sentiment analysis. Sentiment analysis inspects user input and
|
9885
|
+
# identifies the prevailing subjective opinion, especially to determine a user's
|
9886
|
+
# attitude as positive, negative, or neutral. For Participants.DetectIntent, it
|
9887
|
+
# needs to be configured in DetectIntentRequest.query_params. For Participants.
|
9888
|
+
# StreamingDetectIntent, it needs to be configured in
|
9889
|
+
# StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent
|
9890
|
+
# and Participants.StreamingAnalyzeContent, it needs to be configured in
|
9891
|
+
# ConversationProfile.human_agent_assistant_config
|
9892
|
+
# Corresponds to the JSON property `sentimentAnalysis`
|
9893
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SentimentAnalysisResult]
|
9894
|
+
attr_accessor :sentiment_analysis
|
9895
|
+
|
9677
9896
|
def initialize(**args)
|
9678
9897
|
update!(**args)
|
9679
9898
|
end
|
@@ -9687,6 +9906,8 @@ module Google
|
|
9687
9906
|
@name = args[:name] if args.key?(:name)
|
9688
9907
|
@participant = args[:participant] if args.key?(:participant)
|
9689
9908
|
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
9909
|
+
@send_time = args[:send_time] if args.key?(:send_time)
|
9910
|
+
@sentiment_analysis = args[:sentiment_analysis] if args.key?(:sentiment_analysis)
|
9690
9911
|
end
|
9691
9912
|
end
|
9692
9913
|
|
@@ -9857,6 +10078,18 @@ module Google
|
|
9857
10078
|
class GoogleCloudDialogflowV2Participant
|
9858
10079
|
include Google::Apis::Core::Hashable
|
9859
10080
|
|
10081
|
+
# Optional. Key-value filters on the metadata of documents returned by article
|
10082
|
+
# suggestion. If specified, article suggestion only returns suggested documents
|
10083
|
+
# that match all filters in their Document.metadata. Multiple values for a
|
10084
|
+
# metadata key should be concatenated by comma. For example, filters to match
|
10085
|
+
# all documents that have 'US' or 'CA' in their market metadata values and '
|
10086
|
+
# agent' in their user metadata values will be ``` documents_metadata_filters `
|
10087
|
+
# key: "market" value: "US,CA" ` documents_metadata_filters ` key: "user" value:
|
10088
|
+
# "agent" ` ```
|
10089
|
+
# Corresponds to the JSON property `documentsMetadataFilters`
|
10090
|
+
# @return [Hash<String,String>]
|
10091
|
+
attr_accessor :documents_metadata_filters
|
10092
|
+
|
9860
10093
|
# Optional. The unique identifier of this participant. Format: `projects//
|
9861
10094
|
# locations//conversations//participants/`.
|
9862
10095
|
# Corresponds to the JSON property `name`
|
@@ -9882,6 +10115,7 @@ module Google
|
|
9882
10115
|
|
9883
10116
|
# Update properties of this object
|
9884
10117
|
def update!(**args)
|
10118
|
+
@documents_metadata_filters = args[:documents_metadata_filters] if args.key?(:documents_metadata_filters)
|
9885
10119
|
@name = args[:name] if args.key?(:name)
|
9886
10120
|
@role = args[:role] if args.key?(:role)
|
9887
10121
|
@sip_recording_media_label = args[:sip_recording_media_label] if args.key?(:sip_recording_media_label)
|
@@ -10178,6 +10412,20 @@ module Google
|
|
10178
10412
|
# @return [String]
|
10179
10413
|
attr_accessor :content_uri
|
10180
10414
|
|
10415
|
+
# Optional. Whether to import custom metadata from Google Cloud Storage. Only
|
10416
|
+
# valid when the document source is Google Cloud Storage URI.
|
10417
|
+
# Corresponds to the JSON property `importGcsCustomMetadata`
|
10418
|
+
# @return [Boolean]
|
10419
|
+
attr_accessor :import_gcs_custom_metadata
|
10420
|
+
alias_method :import_gcs_custom_metadata?, :import_gcs_custom_metadata
|
10421
|
+
|
10422
|
+
# Optional. When enabled, the reload request is to apply partial update to the
|
10423
|
+
# smart messaging allowlist.
|
10424
|
+
# Corresponds to the JSON property `smartMessagingPartialUpdate`
|
10425
|
+
# @return [Boolean]
|
10426
|
+
attr_accessor :smart_messaging_partial_update
|
10427
|
+
alias_method :smart_messaging_partial_update?, :smart_messaging_partial_update
|
10428
|
+
|
10181
10429
|
def initialize(**args)
|
10182
10430
|
update!(**args)
|
10183
10431
|
end
|
@@ -10185,6 +10433,8 @@ module Google
|
|
10185
10433
|
# Update properties of this object
|
10186
10434
|
def update!(**args)
|
10187
10435
|
@content_uri = args[:content_uri] if args.key?(:content_uri)
|
10436
|
+
@import_gcs_custom_metadata = args[:import_gcs_custom_metadata] if args.key?(:import_gcs_custom_metadata)
|
10437
|
+
@smart_messaging_partial_update = args[:smart_messaging_partial_update] if args.key?(:smart_messaging_partial_update)
|
10188
10438
|
end
|
10189
10439
|
end
|
10190
10440
|
|
@@ -10360,6 +10610,40 @@ module Google
|
|
10360
10610
|
end
|
10361
10611
|
end
|
10362
10612
|
|
10613
|
+
# Represents a smart reply answer.
|
10614
|
+
class GoogleCloudDialogflowV2SmartReplyAnswer
|
10615
|
+
include Google::Apis::Core::Hashable
|
10616
|
+
|
10617
|
+
# The name of answer record, in the format of "projects//locations//
|
10618
|
+
# answerRecords/"
|
10619
|
+
# Corresponds to the JSON property `answerRecord`
|
10620
|
+
# @return [String]
|
10621
|
+
attr_accessor :answer_record
|
10622
|
+
|
10623
|
+
# Smart reply confidence. The system's confidence score that this reply is a
|
10624
|
+
# good match for this conversation, as a value from 0.0 (completely uncertain)
|
10625
|
+
# to 1.0 (completely certain).
|
10626
|
+
# Corresponds to the JSON property `confidence`
|
10627
|
+
# @return [Float]
|
10628
|
+
attr_accessor :confidence
|
10629
|
+
|
10630
|
+
# The content of the reply.
|
10631
|
+
# Corresponds to the JSON property `reply`
|
10632
|
+
# @return [String]
|
10633
|
+
attr_accessor :reply
|
10634
|
+
|
10635
|
+
def initialize(**args)
|
10636
|
+
update!(**args)
|
10637
|
+
end
|
10638
|
+
|
10639
|
+
# Update properties of this object
|
10640
|
+
def update!(**args)
|
10641
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
10642
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
10643
|
+
@reply = args[:reply] if args.key?(:reply)
|
10644
|
+
end
|
10645
|
+
end
|
10646
|
+
|
10363
10647
|
# Hints for the speech recognizer to help with recognition in a specific
|
10364
10648
|
# conversation state.
|
10365
10649
|
class GoogleCloudDialogflowV2SpeechContext
|
@@ -10400,10 +10684,11 @@ module Google
|
|
10400
10684
|
class GoogleCloudDialogflowV2SpeechToTextConfig
|
10401
10685
|
include Google::Apis::Core::Hashable
|
10402
10686
|
|
10403
|
-
#
|
10404
|
-
#
|
10405
|
-
#
|
10406
|
-
#
|
10687
|
+
# The speech model used in speech to text. `SPEECH_MODEL_VARIANT_UNSPECIFIED`, `
|
10688
|
+
# USE_BEST_AVAILABLE` will be treated as `USE_ENHANCED`. It can be overridden in
|
10689
|
+
# AnalyzeContentRequest and StreamingAnalyzeContentRequest request. If enhanced
|
10690
|
+
# model variant is specified and an enhanced version of the specified model for
|
10691
|
+
# the language does not exist, then it would emit an error.
|
10407
10692
|
# Corresponds to the JSON property `speechModelVariant`
|
10408
10693
|
# @return [String]
|
10409
10694
|
attr_accessor :speech_model_variant
|
@@ -10422,15 +10707,20 @@ module Google
|
|
10422
10707
|
class GoogleCloudDialogflowV2SuggestArticlesRequest
|
10423
10708
|
include Google::Apis::Core::Hashable
|
10424
10709
|
|
10425
|
-
#
|
10426
|
-
#
|
10710
|
+
# Represents the parameters of human assist query.
|
10711
|
+
# Corresponds to the JSON property `assistQueryParams`
|
10712
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AssistQueryParameters]
|
10713
|
+
attr_accessor :assist_query_params
|
10714
|
+
|
10715
|
+
# Optional. Max number of messages prior to and including latest_message to use
|
10716
|
+
# as context when compiling the suggestion. By default 20 and at most 50.
|
10427
10717
|
# Corresponds to the JSON property `contextSize`
|
10428
10718
|
# @return [Fixnum]
|
10429
10719
|
attr_accessor :context_size
|
10430
10720
|
|
10431
|
-
# The name of the latest conversation message to compile suggestion
|
10432
|
-
# empty, it will be the latest message of the conversation. Format: `
|
10433
|
-
# locations//conversations//messages/`.
|
10721
|
+
# Optional. The name of the latest conversation message to compile suggestion
|
10722
|
+
# for. If empty, it will be the latest message of the conversation. Format: `
|
10723
|
+
# projects//locations//conversations//messages/`.
|
10434
10724
|
# Corresponds to the JSON property `latestMessage`
|
10435
10725
|
# @return [String]
|
10436
10726
|
attr_accessor :latest_message
|
@@ -10441,6 +10731,7 @@ module Google
|
|
10441
10731
|
|
10442
10732
|
# Update properties of this object
|
10443
10733
|
def update!(**args)
|
10734
|
+
@assist_query_params = args[:assist_query_params] if args.key?(:assist_query_params)
|
10444
10735
|
@context_size = args[:context_size] if args.key?(:context_size)
|
10445
10736
|
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
10446
10737
|
end
|
@@ -10484,15 +10775,20 @@ module Google
|
|
10484
10775
|
class GoogleCloudDialogflowV2SuggestFaqAnswersRequest
|
10485
10776
|
include Google::Apis::Core::Hashable
|
10486
10777
|
|
10487
|
-
#
|
10488
|
-
#
|
10778
|
+
# Represents the parameters of human assist query.
|
10779
|
+
# Corresponds to the JSON property `assistQueryParams`
|
10780
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AssistQueryParameters]
|
10781
|
+
attr_accessor :assist_query_params
|
10782
|
+
|
10783
|
+
# Optional. Max number of messages prior to and including [latest_message] to
|
10784
|
+
# use as context when compiling the suggestion. By default 20 and at most 50.
|
10489
10785
|
# Corresponds to the JSON property `contextSize`
|
10490
10786
|
# @return [Fixnum]
|
10491
10787
|
attr_accessor :context_size
|
10492
10788
|
|
10493
|
-
# The name of the latest conversation message to compile suggestion
|
10494
|
-
# empty, it will be the latest message of the conversation. Format: `
|
10495
|
-
# locations//conversations//messages/`.
|
10789
|
+
# Optional. The name of the latest conversation message to compile suggestion
|
10790
|
+
# for. If empty, it will be the latest message of the conversation. Format: `
|
10791
|
+
# projects//locations//conversations//messages/`.
|
10496
10792
|
# Corresponds to the JSON property `latestMessage`
|
10497
10793
|
# @return [String]
|
10498
10794
|
attr_accessor :latest_message
|
@@ -10503,6 +10799,7 @@ module Google
|
|
10503
10799
|
|
10504
10800
|
# Update properties of this object
|
10505
10801
|
def update!(**args)
|
10802
|
+
@assist_query_params = args[:assist_query_params] if args.key?(:assist_query_params)
|
10506
10803
|
@context_size = args[:context_size] if args.key?(:context_size)
|
10507
10804
|
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
10508
10805
|
end
|
@@ -10542,6 +10839,76 @@ module Google
|
|
10542
10839
|
end
|
10543
10840
|
end
|
10544
10841
|
|
10842
|
+
# The request message for Participants.SuggestSmartReplies.
|
10843
|
+
class GoogleCloudDialogflowV2SuggestSmartRepliesRequest
|
10844
|
+
include Google::Apis::Core::Hashable
|
10845
|
+
|
10846
|
+
# Max number of messages prior to and including [latest_message] to use as
|
10847
|
+
# context when compiling the suggestion. By default 20 and at most 50.
|
10848
|
+
# Corresponds to the JSON property `contextSize`
|
10849
|
+
# @return [Fixnum]
|
10850
|
+
attr_accessor :context_size
|
10851
|
+
|
10852
|
+
# Represents the natural language text to be processed.
|
10853
|
+
# Corresponds to the JSON property `currentTextInput`
|
10854
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput]
|
10855
|
+
attr_accessor :current_text_input
|
10856
|
+
|
10857
|
+
# The name of the latest conversation message to compile suggestion for. If
|
10858
|
+
# empty, it will be the latest message of the conversation. Format: `projects//
|
10859
|
+
# locations//conversations//messages/`.
|
10860
|
+
# Corresponds to the JSON property `latestMessage`
|
10861
|
+
# @return [String]
|
10862
|
+
attr_accessor :latest_message
|
10863
|
+
|
10864
|
+
def initialize(**args)
|
10865
|
+
update!(**args)
|
10866
|
+
end
|
10867
|
+
|
10868
|
+
# Update properties of this object
|
10869
|
+
def update!(**args)
|
10870
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
10871
|
+
@current_text_input = args[:current_text_input] if args.key?(:current_text_input)
|
10872
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
10873
|
+
end
|
10874
|
+
end
|
10875
|
+
|
10876
|
+
# The response message for Participants.SuggestSmartReplies.
|
10877
|
+
class GoogleCloudDialogflowV2SuggestSmartRepliesResponse
|
10878
|
+
include Google::Apis::Core::Hashable
|
10879
|
+
|
10880
|
+
# Number of messages prior to and including latest_message to compile the
|
10881
|
+
# suggestion. It may be smaller than the SuggestSmartRepliesRequest.context_size
|
10882
|
+
# field in the request if there aren't that many messages in the conversation.
|
10883
|
+
# Corresponds to the JSON property `contextSize`
|
10884
|
+
# @return [Fixnum]
|
10885
|
+
attr_accessor :context_size
|
10886
|
+
|
10887
|
+
# The name of the latest conversation message used to compile suggestion for.
|
10888
|
+
# Format: `projects//locations//conversations//messages/`.
|
10889
|
+
# Corresponds to the JSON property `latestMessage`
|
10890
|
+
# @return [String]
|
10891
|
+
attr_accessor :latest_message
|
10892
|
+
|
10893
|
+
# Output only. Multiple reply options provided by smart reply service. The order
|
10894
|
+
# is based on the rank of the model prediction. The maximum number of the
|
10895
|
+
# returned replies is set in SmartReplyConfig.
|
10896
|
+
# Corresponds to the JSON property `smartReplyAnswers`
|
10897
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyAnswer>]
|
10898
|
+
attr_accessor :smart_reply_answers
|
10899
|
+
|
10900
|
+
def initialize(**args)
|
10901
|
+
update!(**args)
|
10902
|
+
end
|
10903
|
+
|
10904
|
+
# Update properties of this object
|
10905
|
+
def update!(**args)
|
10906
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
10907
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
10908
|
+
@smart_reply_answers = args[:smart_reply_answers] if args.key?(:smart_reply_answers)
|
10909
|
+
end
|
10910
|
+
end
|
10911
|
+
|
10545
10912
|
# The type of Human Agent Assistant API suggestion to perform, and the maximum
|
10546
10913
|
# number of results to return for that type. Multiple `Feature` objects can be
|
10547
10914
|
# specified in the `features` list.
|
@@ -10589,6 +10956,11 @@ module Google
|
|
10589
10956
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
|
10590
10957
|
attr_accessor :suggest_faq_answers_response
|
10591
10958
|
|
10959
|
+
# The response message for Participants.SuggestSmartReplies.
|
10960
|
+
# Corresponds to the JSON property `suggestSmartRepliesResponse`
|
10961
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse]
|
10962
|
+
attr_accessor :suggest_smart_replies_response
|
10963
|
+
|
10592
10964
|
def initialize(**args)
|
10593
10965
|
update!(**args)
|
10594
10966
|
end
|
@@ -10598,6 +10970,7 @@ module Google
|
|
10598
10970
|
@error = args[:error] if args.key?(:error)
|
10599
10971
|
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
10600
10972
|
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
10973
|
+
@suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
|
10601
10974
|
end
|
10602
10975
|
end
|
10603
10976
|
|
@@ -13317,6 +13690,11 @@ module Google
|
|
13317
13690
|
class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
|
13318
13691
|
include Google::Apis::Core::Hashable
|
13319
13692
|
|
13693
|
+
# The name of the knowledge base interacted with during the operation.
|
13694
|
+
# Corresponds to the JSON property `knowledgeBase`
|
13695
|
+
# @return [String]
|
13696
|
+
attr_accessor :knowledge_base
|
13697
|
+
|
13320
13698
|
# Required. Output only. The current state of this operation.
|
13321
13699
|
# Corresponds to the JSON property `state`
|
13322
13700
|
# @return [String]
|
@@ -13328,6 +13706,7 @@ module Google
|
|
13328
13706
|
|
13329
13707
|
# Update properties of this object
|
13330
13708
|
def update!(**args)
|
13709
|
+
@knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
|
13331
13710
|
@state = args[:state] if args.key?(:state)
|
13332
13711
|
end
|
13333
13712
|
end
|