google-apis-dialogflow_v2 0.27.0 → 0.30.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 +14 -0
- data/OVERVIEW.md +1 -1
- data/lib/google/apis/dialogflow_v2/classes.rb +1553 -105
- data/lib/google/apis/dialogflow_v2/gem_version.rb +3 -3
- data/lib/google/apis/dialogflow_v2/representations.rb +734 -5
- data/lib/google/apis/dialogflow_v2/service.rb +2975 -1600
- metadata +4 -4
@@ -476,7 +476,7 @@ module Google
|
|
476
476
|
include Google::Apis::Core::Hashable
|
477
477
|
|
478
478
|
# Whether to run test cases in TestCasesConfig.test_cases periodically. Default
|
479
|
-
# false. If set to
|
479
|
+
# false. If set to true, run once a day.
|
480
480
|
# Corresponds to the JSON property `enableContinuousRun`
|
481
481
|
# @return [Boolean]
|
482
482
|
attr_accessor :enable_continuous_run
|
@@ -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
|
@@ -4261,6 +4268,12 @@ module Google
|
|
4261
4268
|
# @return [String]
|
4262
4269
|
attr_accessor :current_page
|
4263
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
|
+
|
4264
4277
|
# Represents form information.
|
4265
4278
|
# Corresponds to the JSON property `formInfo`
|
4266
4279
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowCxV3beta1PageInfoFormInfo]
|
@@ -4273,6 +4286,7 @@ module Google
|
|
4273
4286
|
# Update properties of this object
|
4274
4287
|
def update!(**args)
|
4275
4288
|
@current_page = args[:current_page] if args.key?(:current_page)
|
4289
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
4276
4290
|
@form_info = args[:form_info] if args.key?(:form_info)
|
4277
4291
|
end
|
4278
4292
|
end
|
@@ -5971,6 +5985,26 @@ module Google
|
|
5971
5985
|
end
|
5972
5986
|
end
|
5973
5987
|
|
5988
|
+
# Metadata for article suggestion models.
|
5989
|
+
class GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
|
5990
|
+
include Google::Apis::Core::Hashable
|
5991
|
+
|
5992
|
+
# Optional. Type of the article suggestion model. If not provided, model_type is
|
5993
|
+
# used.
|
5994
|
+
# Corresponds to the JSON property `trainingModelType`
|
5995
|
+
# @return [String]
|
5996
|
+
attr_accessor :training_model_type
|
5997
|
+
|
5998
|
+
def initialize(**args)
|
5999
|
+
update!(**args)
|
6000
|
+
end
|
6001
|
+
|
6002
|
+
# Update properties of this object
|
6003
|
+
def update!(**args)
|
6004
|
+
@training_model_type = args[:training_model_type] if args.key?(:training_model_type)
|
6005
|
+
end
|
6006
|
+
end
|
6007
|
+
|
5974
6008
|
# Represents the parameters of human assist query.
|
5975
6009
|
class GoogleCloudDialogflowV2AssistQueryParameters
|
5976
6010
|
include Google::Apis::Core::Hashable
|
@@ -6317,6 +6351,71 @@ module Google
|
|
6317
6351
|
end
|
6318
6352
|
end
|
6319
6353
|
|
6354
|
+
# Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
|
6355
|
+
class GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata
|
6356
|
+
include Google::Apis::Core::Hashable
|
6357
|
+
|
6358
|
+
# The resource name of the conversation profile. Format: `projects//locations//
|
6359
|
+
# conversationProfiles/`
|
6360
|
+
# Corresponds to the JSON property `conversationProfile`
|
6361
|
+
# @return [String]
|
6362
|
+
attr_accessor :conversation_profile
|
6363
|
+
|
6364
|
+
# Timestamp whe the request was created. The time is measured on server side.
|
6365
|
+
# Corresponds to the JSON property `createTime`
|
6366
|
+
# @return [String]
|
6367
|
+
attr_accessor :create_time
|
6368
|
+
|
6369
|
+
# Required. The participant role to remove the suggestion feature config. Only
|
6370
|
+
# HUMAN_AGENT or END_USER can be used.
|
6371
|
+
# Corresponds to the JSON property `participantRole`
|
6372
|
+
# @return [String]
|
6373
|
+
attr_accessor :participant_role
|
6374
|
+
|
6375
|
+
# Required. The type of the suggestion feature to remove.
|
6376
|
+
# Corresponds to the JSON property `suggestionFeatureType`
|
6377
|
+
# @return [String]
|
6378
|
+
attr_accessor :suggestion_feature_type
|
6379
|
+
|
6380
|
+
def initialize(**args)
|
6381
|
+
update!(**args)
|
6382
|
+
end
|
6383
|
+
|
6384
|
+
# Update properties of this object
|
6385
|
+
def update!(**args)
|
6386
|
+
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
6387
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6388
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
6389
|
+
@suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
|
6390
|
+
end
|
6391
|
+
end
|
6392
|
+
|
6393
|
+
# The request message for ConversationProfiles.ClearFeature.
|
6394
|
+
class GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest
|
6395
|
+
include Google::Apis::Core::Hashable
|
6396
|
+
|
6397
|
+
# Required. The participant role to remove the suggestion feature config. Only
|
6398
|
+
# HUMAN_AGENT or END_USER can be used.
|
6399
|
+
# Corresponds to the JSON property `participantRole`
|
6400
|
+
# @return [String]
|
6401
|
+
attr_accessor :participant_role
|
6402
|
+
|
6403
|
+
# Required. The type of the suggestion feature to remove.
|
6404
|
+
# Corresponds to the JSON property `suggestionFeatureType`
|
6405
|
+
# @return [String]
|
6406
|
+
attr_accessor :suggestion_feature_type
|
6407
|
+
|
6408
|
+
def initialize(**args)
|
6409
|
+
update!(**args)
|
6410
|
+
end
|
6411
|
+
|
6412
|
+
# Update properties of this object
|
6413
|
+
def update!(**args)
|
6414
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
6415
|
+
@suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
|
6416
|
+
end
|
6417
|
+
end
|
6418
|
+
|
6320
6419
|
# The request message for Conversations.CompleteConversation.
|
6321
6420
|
class GoogleCloudDialogflowV2CompleteConversationRequest
|
6322
6421
|
include Google::Apis::Core::Hashable
|
@@ -6460,6 +6559,66 @@ module Google
|
|
6460
6559
|
end
|
6461
6560
|
end
|
6462
6561
|
|
6562
|
+
# Represents a conversation dataset that a user imports raw data into. The data
|
6563
|
+
# inside ConversationDataset can not be changed after ImportConversationData
|
6564
|
+
# finishes (and calling ImportConversationData on a dataset that already has
|
6565
|
+
# data is not allowed).
|
6566
|
+
class GoogleCloudDialogflowV2ConversationDataset
|
6567
|
+
include Google::Apis::Core::Hashable
|
6568
|
+
|
6569
|
+
# Output only. The number of conversations this conversation dataset contains.
|
6570
|
+
# Corresponds to the JSON property `conversationCount`
|
6571
|
+
# @return [Fixnum]
|
6572
|
+
attr_accessor :conversation_count
|
6573
|
+
|
6574
|
+
# Represents metadata of a conversation.
|
6575
|
+
# Corresponds to the JSON property `conversationInfo`
|
6576
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationInfo]
|
6577
|
+
attr_accessor :conversation_info
|
6578
|
+
|
6579
|
+
# Output only. Creation time of this dataset.
|
6580
|
+
# Corresponds to the JSON property `createTime`
|
6581
|
+
# @return [String]
|
6582
|
+
attr_accessor :create_time
|
6583
|
+
|
6584
|
+
# Optional. The description of the dataset. Maximum of 10000 bytes.
|
6585
|
+
# Corresponds to the JSON property `description`
|
6586
|
+
# @return [String]
|
6587
|
+
attr_accessor :description
|
6588
|
+
|
6589
|
+
# Required. The display name of the dataset. Maximum of 64 bytes.
|
6590
|
+
# Corresponds to the JSON property `displayName`
|
6591
|
+
# @return [String]
|
6592
|
+
attr_accessor :display_name
|
6593
|
+
|
6594
|
+
# Represents the configuration of importing a set of conversation files in
|
6595
|
+
# Google Cloud Storage.
|
6596
|
+
# Corresponds to the JSON property `inputConfig`
|
6597
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputConfig]
|
6598
|
+
attr_accessor :input_config
|
6599
|
+
|
6600
|
+
# Output only. ConversationDataset resource name. Format: `projects//locations//
|
6601
|
+
# conversationDatasets/`
|
6602
|
+
# Corresponds to the JSON property `name`
|
6603
|
+
# @return [String]
|
6604
|
+
attr_accessor :name
|
6605
|
+
|
6606
|
+
def initialize(**args)
|
6607
|
+
update!(**args)
|
6608
|
+
end
|
6609
|
+
|
6610
|
+
# Update properties of this object
|
6611
|
+
def update!(**args)
|
6612
|
+
@conversation_count = args[:conversation_count] if args.key?(:conversation_count)
|
6613
|
+
@conversation_info = args[:conversation_info] if args.key?(:conversation_info)
|
6614
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6615
|
+
@description = args[:description] if args.key?(:description)
|
6616
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
6617
|
+
@input_config = args[:input_config] if args.key?(:input_config)
|
6618
|
+
@name = args[:name] if args.key?(:name)
|
6619
|
+
end
|
6620
|
+
end
|
6621
|
+
|
6463
6622
|
# Represents a notification sent to Pub/Sub subscribers for conversation
|
6464
6623
|
# lifecycle events.
|
6465
6624
|
class GoogleCloudDialogflowV2ConversationEvent
|
@@ -6504,6 +6663,136 @@ module Google
|
|
6504
6663
|
end
|
6505
6664
|
end
|
6506
6665
|
|
6666
|
+
# Represents metadata of a conversation.
|
6667
|
+
class GoogleCloudDialogflowV2ConversationInfo
|
6668
|
+
include Google::Apis::Core::Hashable
|
6669
|
+
|
6670
|
+
# Optional. The language code of the conversation data within this dataset. See
|
6671
|
+
# https://cloud.google.com/apis/design/standard_fields for more information.
|
6672
|
+
# Supports all UTF-8 languages.
|
6673
|
+
# Corresponds to the JSON property `languageCode`
|
6674
|
+
# @return [String]
|
6675
|
+
attr_accessor :language_code
|
6676
|
+
|
6677
|
+
def initialize(**args)
|
6678
|
+
update!(**args)
|
6679
|
+
end
|
6680
|
+
|
6681
|
+
# Update properties of this object
|
6682
|
+
def update!(**args)
|
6683
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
6684
|
+
end
|
6685
|
+
end
|
6686
|
+
|
6687
|
+
# Represents a conversation model.
|
6688
|
+
class GoogleCloudDialogflowV2ConversationModel
|
6689
|
+
include Google::Apis::Core::Hashable
|
6690
|
+
|
6691
|
+
# Metadata for article suggestion models.
|
6692
|
+
# Corresponds to the JSON property `articleSuggestionModelMetadata`
|
6693
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleSuggestionModelMetadata]
|
6694
|
+
attr_accessor :article_suggestion_model_metadata
|
6695
|
+
|
6696
|
+
# Output only. Creation time of this model.
|
6697
|
+
# Corresponds to the JSON property `createTime`
|
6698
|
+
# @return [String]
|
6699
|
+
attr_accessor :create_time
|
6700
|
+
|
6701
|
+
# Required. Datasets used to create model.
|
6702
|
+
# Corresponds to the JSON property `datasets`
|
6703
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputDataset>]
|
6704
|
+
attr_accessor :datasets
|
6705
|
+
|
6706
|
+
# Required. The display name of the model. At most 64 bytes long.
|
6707
|
+
# Corresponds to the JSON property `displayName`
|
6708
|
+
# @return [String]
|
6709
|
+
attr_accessor :display_name
|
6710
|
+
|
6711
|
+
# Language code for the conversation model. If not specified, the language is en-
|
6712
|
+
# US. Language at ConversationModel should be set for all non en-us languages.
|
6713
|
+
# This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
6714
|
+
# language tag. Example: "en-US".
|
6715
|
+
# Corresponds to the JSON property `languageCode`
|
6716
|
+
# @return [String]
|
6717
|
+
attr_accessor :language_code
|
6718
|
+
|
6719
|
+
# ConversationModel resource name. Format: `projects//conversationModels/`
|
6720
|
+
# Corresponds to the JSON property `name`
|
6721
|
+
# @return [String]
|
6722
|
+
attr_accessor :name
|
6723
|
+
|
6724
|
+
# Metadata for smart reply models.
|
6725
|
+
# Corresponds to the JSON property `smartReplyModelMetadata`
|
6726
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyModelMetadata]
|
6727
|
+
attr_accessor :smart_reply_model_metadata
|
6728
|
+
|
6729
|
+
# Output only. State of the model. A model can only serve prediction requests
|
6730
|
+
# after it gets deployed.
|
6731
|
+
# Corresponds to the JSON property `state`
|
6732
|
+
# @return [String]
|
6733
|
+
attr_accessor :state
|
6734
|
+
|
6735
|
+
def initialize(**args)
|
6736
|
+
update!(**args)
|
6737
|
+
end
|
6738
|
+
|
6739
|
+
# Update properties of this object
|
6740
|
+
def update!(**args)
|
6741
|
+
@article_suggestion_model_metadata = args[:article_suggestion_model_metadata] if args.key?(:article_suggestion_model_metadata)
|
6742
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6743
|
+
@datasets = args[:datasets] if args.key?(:datasets)
|
6744
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
6745
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
6746
|
+
@name = args[:name] if args.key?(:name)
|
6747
|
+
@smart_reply_model_metadata = args[:smart_reply_model_metadata] if args.key?(:smart_reply_model_metadata)
|
6748
|
+
@state = args[:state] if args.key?(:state)
|
6749
|
+
end
|
6750
|
+
end
|
6751
|
+
|
6752
|
+
# Represents evaluation result of a conversation model.
|
6753
|
+
class GoogleCloudDialogflowV2ConversationModelEvaluation
|
6754
|
+
include Google::Apis::Core::Hashable
|
6755
|
+
|
6756
|
+
# Output only. Creation time of this model.
|
6757
|
+
# Corresponds to the JSON property `createTime`
|
6758
|
+
# @return [String]
|
6759
|
+
attr_accessor :create_time
|
6760
|
+
|
6761
|
+
# Optional. The display name of the model evaluation. At most 64 bytes long.
|
6762
|
+
# Corresponds to the JSON property `displayName`
|
6763
|
+
# @return [String]
|
6764
|
+
attr_accessor :display_name
|
6765
|
+
|
6766
|
+
# The configuration for model evaluation.
|
6767
|
+
# Corresponds to the JSON property `evaluationConfig`
|
6768
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfig]
|
6769
|
+
attr_accessor :evaluation_config
|
6770
|
+
|
6771
|
+
# The resource name of the evaluation. Format: `projects//conversationModels//
|
6772
|
+
# evaluations/`
|
6773
|
+
# Corresponds to the JSON property `name`
|
6774
|
+
# @return [String]
|
6775
|
+
attr_accessor :name
|
6776
|
+
|
6777
|
+
# The evaluation metrics for smart reply model.
|
6778
|
+
# Corresponds to the JSON property `smartReplyMetrics`
|
6779
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyMetrics]
|
6780
|
+
attr_accessor :smart_reply_metrics
|
6781
|
+
|
6782
|
+
def initialize(**args)
|
6783
|
+
update!(**args)
|
6784
|
+
end
|
6785
|
+
|
6786
|
+
# Update properties of this object
|
6787
|
+
def update!(**args)
|
6788
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6789
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
6790
|
+
@evaluation_config = args[:evaluation_config] if args.key?(:evaluation_config)
|
6791
|
+
@name = args[:name] if args.key?(:name)
|
6792
|
+
@smart_reply_metrics = args[:smart_reply_metrics] if args.key?(:smart_reply_metrics)
|
6793
|
+
end
|
6794
|
+
end
|
6795
|
+
|
6507
6796
|
# Represents a phone number for telephony integration. It allows for connecting
|
6508
6797
|
# a particular conversation over telephony.
|
6509
6798
|
class GoogleCloudDialogflowV2ConversationPhoneNumber
|
@@ -6630,45 +6919,67 @@ module Google
|
|
6630
6919
|
end
|
6631
6920
|
end
|
6632
6921
|
|
6633
|
-
#
|
6634
|
-
class
|
6922
|
+
# Metadata for ConversationDatasets.
|
6923
|
+
class GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
|
6635
6924
|
include Google::Apis::Core::Hashable
|
6636
6925
|
|
6637
|
-
|
6638
|
-
|
6639
|
-
|
6640
|
-
|
6641
|
-
#
|
6926
|
+
def initialize(**args)
|
6927
|
+
update!(**args)
|
6928
|
+
end
|
6929
|
+
|
6930
|
+
# Update properties of this object
|
6931
|
+
def update!(**args)
|
6932
|
+
end
|
6933
|
+
end
|
6934
|
+
|
6935
|
+
# Metadata for a ConversationModels.CreateConversationModelEvaluation operation.
|
6936
|
+
class GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata
|
6937
|
+
include Google::Apis::Core::Hashable
|
6938
|
+
|
6939
|
+
# The resource name of the conversation model. Format: `projects//locations//
|
6940
|
+
# conversationModels/`
|
6941
|
+
# Corresponds to the JSON property `conversationModel`
|
6642
6942
|
# @return [String]
|
6643
|
-
attr_accessor :
|
6943
|
+
attr_accessor :conversation_model
|
6644
6944
|
|
6645
|
-
#
|
6646
|
-
#
|
6647
|
-
# to
|
6648
|
-
#
|
6649
|
-
|
6650
|
-
attr_accessor :output_audio_config
|
6945
|
+
# The resource name of the conversation model. Format: `projects//locations//
|
6946
|
+
# conversationModels//evaluations/`
|
6947
|
+
# Corresponds to the JSON property `conversationModelEvaluation`
|
6948
|
+
# @return [String]
|
6949
|
+
attr_accessor :conversation_model_evaluation
|
6651
6950
|
|
6652
|
-
#
|
6653
|
-
#
|
6654
|
-
#
|
6655
|
-
# its entirety.
|
6656
|
-
# Corresponds to the JSON property `outputAudioConfigMask`
|
6951
|
+
# Timestamp when the request to create conversation model was submitted. The
|
6952
|
+
# time is measured on server side.
|
6953
|
+
# Corresponds to the JSON property `createTime`
|
6657
6954
|
# @return [String]
|
6658
|
-
attr_accessor :
|
6955
|
+
attr_accessor :create_time
|
6659
6956
|
|
6660
|
-
#
|
6661
|
-
#
|
6662
|
-
#
|
6663
|
-
|
6664
|
-
# Corresponds to the JSON property `queryInput`
|
6665
|
-
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput]
|
6666
|
-
attr_accessor :query_input
|
6957
|
+
# State of CreateConversationModel operation.
|
6958
|
+
# Corresponds to the JSON property `state`
|
6959
|
+
# @return [String]
|
6960
|
+
attr_accessor :state
|
6667
6961
|
|
6668
|
-
|
6669
|
-
|
6670
|
-
|
6671
|
-
|
6962
|
+
def initialize(**args)
|
6963
|
+
update!(**args)
|
6964
|
+
end
|
6965
|
+
|
6966
|
+
# Update properties of this object
|
6967
|
+
def update!(**args)
|
6968
|
+
@conversation_model = args[:conversation_model] if args.key?(:conversation_model)
|
6969
|
+
@conversation_model_evaluation = args[:conversation_model_evaluation] if args.key?(:conversation_model_evaluation)
|
6970
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6971
|
+
@state = args[:state] if args.key?(:state)
|
6972
|
+
end
|
6973
|
+
end
|
6974
|
+
|
6975
|
+
# The request message for ConversationModels.CreateConversationModelEvaluation
|
6976
|
+
class GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest
|
6977
|
+
include Google::Apis::Core::Hashable
|
6978
|
+
|
6979
|
+
# Represents evaluation result of a conversation model.
|
6980
|
+
# Corresponds to the JSON property `conversationModelEvaluation`
|
6981
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationModelEvaluation]
|
6982
|
+
attr_accessor :conversation_model_evaluation
|
6672
6983
|
|
6673
6984
|
def initialize(**args)
|
6674
6985
|
update!(**args)
|
@@ -6676,16 +6987,179 @@ module Google
|
|
6676
6987
|
|
6677
6988
|
# Update properties of this object
|
6678
6989
|
def update!(**args)
|
6679
|
-
@
|
6680
|
-
@output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
|
6681
|
-
@output_audio_config_mask = args[:output_audio_config_mask] if args.key?(:output_audio_config_mask)
|
6682
|
-
@query_input = args[:query_input] if args.key?(:query_input)
|
6683
|
-
@query_params = args[:query_params] if args.key?(:query_params)
|
6990
|
+
@conversation_model_evaluation = args[:conversation_model_evaluation] if args.key?(:conversation_model_evaluation)
|
6684
6991
|
end
|
6685
6992
|
end
|
6686
6993
|
|
6687
|
-
#
|
6688
|
-
class
|
6994
|
+
# Metadata for a ConversationModels.CreateConversationModel operation.
|
6995
|
+
class GoogleCloudDialogflowV2CreateConversationModelOperationMetadata
|
6996
|
+
include Google::Apis::Core::Hashable
|
6997
|
+
|
6998
|
+
# The resource name of the conversation model. Format: `projects//
|
6999
|
+
# conversationModels/`
|
7000
|
+
# Corresponds to the JSON property `conversationModel`
|
7001
|
+
# @return [String]
|
7002
|
+
attr_accessor :conversation_model
|
7003
|
+
|
7004
|
+
# Timestamp when the request to create conversation model is submitted. The time
|
7005
|
+
# is measured on server side.
|
7006
|
+
# Corresponds to the JSON property `createTime`
|
7007
|
+
# @return [String]
|
7008
|
+
attr_accessor :create_time
|
7009
|
+
|
7010
|
+
# State of CreateConversationModel operation.
|
7011
|
+
# Corresponds to the JSON property `state`
|
7012
|
+
# @return [String]
|
7013
|
+
attr_accessor :state
|
7014
|
+
|
7015
|
+
def initialize(**args)
|
7016
|
+
update!(**args)
|
7017
|
+
end
|
7018
|
+
|
7019
|
+
# Update properties of this object
|
7020
|
+
def update!(**args)
|
7021
|
+
@conversation_model = args[:conversation_model] if args.key?(:conversation_model)
|
7022
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7023
|
+
@state = args[:state] if args.key?(:state)
|
7024
|
+
end
|
7025
|
+
end
|
7026
|
+
|
7027
|
+
# Metadata for ConversationDatasets.
|
7028
|
+
class GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata
|
7029
|
+
include Google::Apis::Core::Hashable
|
7030
|
+
|
7031
|
+
def initialize(**args)
|
7032
|
+
update!(**args)
|
7033
|
+
end
|
7034
|
+
|
7035
|
+
# Update properties of this object
|
7036
|
+
def update!(**args)
|
7037
|
+
end
|
7038
|
+
end
|
7039
|
+
|
7040
|
+
# Metadata for a ConversationModels.DeleteConversationModel operation.
|
7041
|
+
class GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata
|
7042
|
+
include Google::Apis::Core::Hashable
|
7043
|
+
|
7044
|
+
# The resource name of the conversation model. Format: `projects//
|
7045
|
+
# conversationModels/`
|
7046
|
+
# Corresponds to the JSON property `conversationModel`
|
7047
|
+
# @return [String]
|
7048
|
+
attr_accessor :conversation_model
|
7049
|
+
|
7050
|
+
# Timestamp when delete conversation model request was created. The time is
|
7051
|
+
# measured on server side.
|
7052
|
+
# Corresponds to the JSON property `createTime`
|
7053
|
+
# @return [String]
|
7054
|
+
attr_accessor :create_time
|
7055
|
+
|
7056
|
+
def initialize(**args)
|
7057
|
+
update!(**args)
|
7058
|
+
end
|
7059
|
+
|
7060
|
+
# Update properties of this object
|
7061
|
+
def update!(**args)
|
7062
|
+
@conversation_model = args[:conversation_model] if args.key?(:conversation_model)
|
7063
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7064
|
+
end
|
7065
|
+
end
|
7066
|
+
|
7067
|
+
# Metadata for a ConversationModels.DeployConversationModel operation.
|
7068
|
+
class GoogleCloudDialogflowV2DeployConversationModelOperationMetadata
|
7069
|
+
include Google::Apis::Core::Hashable
|
7070
|
+
|
7071
|
+
# The resource name of the conversation model. Format: `projects//
|
7072
|
+
# conversationModels/`
|
7073
|
+
# Corresponds to the JSON property `conversationModel`
|
7074
|
+
# @return [String]
|
7075
|
+
attr_accessor :conversation_model
|
7076
|
+
|
7077
|
+
# Timestamp when request to deploy conversation model was submitted. The time is
|
7078
|
+
# measured on server side.
|
7079
|
+
# Corresponds to the JSON property `createTime`
|
7080
|
+
# @return [String]
|
7081
|
+
attr_accessor :create_time
|
7082
|
+
|
7083
|
+
def initialize(**args)
|
7084
|
+
update!(**args)
|
7085
|
+
end
|
7086
|
+
|
7087
|
+
# Update properties of this object
|
7088
|
+
def update!(**args)
|
7089
|
+
@conversation_model = args[:conversation_model] if args.key?(:conversation_model)
|
7090
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7091
|
+
end
|
7092
|
+
end
|
7093
|
+
|
7094
|
+
# The request message for ConversationModels.DeployConversationModel
|
7095
|
+
class GoogleCloudDialogflowV2DeployConversationModelRequest
|
7096
|
+
include Google::Apis::Core::Hashable
|
7097
|
+
|
7098
|
+
def initialize(**args)
|
7099
|
+
update!(**args)
|
7100
|
+
end
|
7101
|
+
|
7102
|
+
# Update properties of this object
|
7103
|
+
def update!(**args)
|
7104
|
+
end
|
7105
|
+
end
|
7106
|
+
|
7107
|
+
# The request to detect user's intent.
|
7108
|
+
class GoogleCloudDialogflowV2DetectIntentRequest
|
7109
|
+
include Google::Apis::Core::Hashable
|
7110
|
+
|
7111
|
+
# The natural language speech audio to be processed. This field should be
|
7112
|
+
# populated iff `query_input` is set to an input audio config. A single request
|
7113
|
+
# can contain up to 1 minute of speech audio data.
|
7114
|
+
# Corresponds to the JSON property `inputAudio`
|
7115
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
7116
|
+
# @return [String]
|
7117
|
+
attr_accessor :input_audio
|
7118
|
+
|
7119
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
7120
|
+
# If this audio config is supplied in a request, it overrides all existing text-
|
7121
|
+
# to-speech settings applied to the agent.
|
7122
|
+
# Corresponds to the JSON property `outputAudioConfig`
|
7123
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
|
7124
|
+
attr_accessor :output_audio_config
|
7125
|
+
|
7126
|
+
# Mask for output_audio_config indicating which settings in this request-level
|
7127
|
+
# config should override speech synthesizer settings defined at agent-level. If
|
7128
|
+
# unspecified or empty, output_audio_config replaces the agent-level config in
|
7129
|
+
# its entirety.
|
7130
|
+
# Corresponds to the JSON property `outputAudioConfigMask`
|
7131
|
+
# @return [String]
|
7132
|
+
attr_accessor :output_audio_config_mask
|
7133
|
+
|
7134
|
+
# Represents the query input. It can contain either: 1. An audio config which
|
7135
|
+
# instructs the speech recognizer how to process the speech audio. 2. A
|
7136
|
+
# conversational query in the form of text,. 3. An event that specifies which
|
7137
|
+
# intent to trigger.
|
7138
|
+
# Corresponds to the JSON property `queryInput`
|
7139
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput]
|
7140
|
+
attr_accessor :query_input
|
7141
|
+
|
7142
|
+
# Represents the parameters of the conversational query.
|
7143
|
+
# Corresponds to the JSON property `queryParams`
|
7144
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters]
|
7145
|
+
attr_accessor :query_params
|
7146
|
+
|
7147
|
+
def initialize(**args)
|
7148
|
+
update!(**args)
|
7149
|
+
end
|
7150
|
+
|
7151
|
+
# Update properties of this object
|
7152
|
+
def update!(**args)
|
7153
|
+
@input_audio = args[:input_audio] if args.key?(:input_audio)
|
7154
|
+
@output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
|
7155
|
+
@output_audio_config_mask = args[:output_audio_config_mask] if args.key?(:output_audio_config_mask)
|
7156
|
+
@query_input = args[:query_input] if args.key?(:query_input)
|
7157
|
+
@query_params = args[:query_params] if args.key?(:query_params)
|
7158
|
+
end
|
7159
|
+
end
|
7160
|
+
|
7161
|
+
# The message returned from the DetectIntent method.
|
7162
|
+
class GoogleCloudDialogflowV2DetectIntentResponse
|
6689
7163
|
include Google::Apis::Core::Hashable
|
6690
7164
|
|
6691
7165
|
# The audio data bytes encoded as specified in the request. Note: The output
|
@@ -6818,6 +7292,11 @@ module Google
|
|
6818
7292
|
# @return [String]
|
6819
7293
|
attr_accessor :raw_content
|
6820
7294
|
|
7295
|
+
# Output only. The current state of the document.
|
7296
|
+
# Corresponds to the JSON property `state`
|
7297
|
+
# @return [String]
|
7298
|
+
attr_accessor :state
|
7299
|
+
|
6821
7300
|
def initialize(**args)
|
6822
7301
|
update!(**args)
|
6823
7302
|
end
|
@@ -6833,6 +7312,7 @@ module Google
|
|
6833
7312
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
6834
7313
|
@name = args[:name] if args.key?(:name)
|
6835
7314
|
@raw_content = args[:raw_content] if args.key?(:raw_content)
|
7315
|
+
@state = args[:state] if args.key?(:state)
|
6836
7316
|
end
|
6837
7317
|
end
|
6838
7318
|
|
@@ -7140,6 +7620,95 @@ module Google
|
|
7140
7620
|
end
|
7141
7621
|
end
|
7142
7622
|
|
7623
|
+
# The configuration for model evaluation.
|
7624
|
+
class GoogleCloudDialogflowV2EvaluationConfig
|
7625
|
+
include Google::Apis::Core::Hashable
|
7626
|
+
|
7627
|
+
# Required. Datasets used for evaluation.
|
7628
|
+
# Corresponds to the JSON property `datasets`
|
7629
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputDataset>]
|
7630
|
+
attr_accessor :datasets
|
7631
|
+
|
7632
|
+
# Smart compose specific configuration for evaluation job.
|
7633
|
+
# Corresponds to the JSON property `smartComposeConfig`
|
7634
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig]
|
7635
|
+
attr_accessor :smart_compose_config
|
7636
|
+
|
7637
|
+
# Smart reply specific configuration for evaluation job.
|
7638
|
+
# Corresponds to the JSON property `smartReplyConfig`
|
7639
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig]
|
7640
|
+
attr_accessor :smart_reply_config
|
7641
|
+
|
7642
|
+
def initialize(**args)
|
7643
|
+
update!(**args)
|
7644
|
+
end
|
7645
|
+
|
7646
|
+
# Update properties of this object
|
7647
|
+
def update!(**args)
|
7648
|
+
@datasets = args[:datasets] if args.key?(:datasets)
|
7649
|
+
@smart_compose_config = args[:smart_compose_config] if args.key?(:smart_compose_config)
|
7650
|
+
@smart_reply_config = args[:smart_reply_config] if args.key?(:smart_reply_config)
|
7651
|
+
end
|
7652
|
+
end
|
7653
|
+
|
7654
|
+
# Smart compose specific configuration for evaluation job.
|
7655
|
+
class GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig
|
7656
|
+
include Google::Apis::Core::Hashable
|
7657
|
+
|
7658
|
+
# The allowlist document resource name. Format: `projects//knowledgeBases//
|
7659
|
+
# documents/`. Only used for smart compose model.
|
7660
|
+
# Corresponds to the JSON property `allowlistDocument`
|
7661
|
+
# @return [String]
|
7662
|
+
attr_accessor :allowlist_document
|
7663
|
+
|
7664
|
+
# Required. The model to be evaluated can return multiple results with
|
7665
|
+
# confidence score on each query. These results will be sorted by the descending
|
7666
|
+
# order of the scores and we only keep the first max_result_count results as the
|
7667
|
+
# final results to evaluate.
|
7668
|
+
# Corresponds to the JSON property `maxResultCount`
|
7669
|
+
# @return [Fixnum]
|
7670
|
+
attr_accessor :max_result_count
|
7671
|
+
|
7672
|
+
def initialize(**args)
|
7673
|
+
update!(**args)
|
7674
|
+
end
|
7675
|
+
|
7676
|
+
# Update properties of this object
|
7677
|
+
def update!(**args)
|
7678
|
+
@allowlist_document = args[:allowlist_document] if args.key?(:allowlist_document)
|
7679
|
+
@max_result_count = args[:max_result_count] if args.key?(:max_result_count)
|
7680
|
+
end
|
7681
|
+
end
|
7682
|
+
|
7683
|
+
# Smart reply specific configuration for evaluation job.
|
7684
|
+
class GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig
|
7685
|
+
include Google::Apis::Core::Hashable
|
7686
|
+
|
7687
|
+
# The allowlist document resource name. Format: `projects//knowledgeBases//
|
7688
|
+
# documents/`. Only used for smart reply model.
|
7689
|
+
# Corresponds to the JSON property `allowlistDocument`
|
7690
|
+
# @return [String]
|
7691
|
+
attr_accessor :allowlist_document
|
7692
|
+
|
7693
|
+
# Required. The model to be evaluated can return multiple results with
|
7694
|
+
# confidence score on each query. These results will be sorted by the descending
|
7695
|
+
# order of the scores and we only keep the first max_result_count results as the
|
7696
|
+
# final results to evaluate.
|
7697
|
+
# Corresponds to the JSON property `maxResultCount`
|
7698
|
+
# @return [Fixnum]
|
7699
|
+
attr_accessor :max_result_count
|
7700
|
+
|
7701
|
+
def initialize(**args)
|
7702
|
+
update!(**args)
|
7703
|
+
end
|
7704
|
+
|
7705
|
+
# Update properties of this object
|
7706
|
+
def update!(**args)
|
7707
|
+
@allowlist_document = args[:allowlist_document] if args.key?(:allowlist_document)
|
7708
|
+
@max_result_count = args[:max_result_count] if args.key?(:max_result_count)
|
7709
|
+
end
|
7710
|
+
end
|
7711
|
+
|
7143
7712
|
# Events allow for matching intents by event name instead of the natural
|
7144
7713
|
# language input. For instance, input `` can trigger a personalized welcome
|
7145
7714
|
# response. The parameter `name` may be used by the agent in the response: `"
|
@@ -7233,6 +7802,59 @@ module Google
|
|
7233
7802
|
end
|
7234
7803
|
end
|
7235
7804
|
|
7805
|
+
# Request message for Documents.ExportDocument.
|
7806
|
+
class GoogleCloudDialogflowV2ExportDocumentRequest
|
7807
|
+
include Google::Apis::Core::Hashable
|
7808
|
+
|
7809
|
+
# When enabled, export the full content of the document including empirical
|
7810
|
+
# probability.
|
7811
|
+
# Corresponds to the JSON property `exportFullContent`
|
7812
|
+
# @return [Boolean]
|
7813
|
+
attr_accessor :export_full_content
|
7814
|
+
alias_method :export_full_content?, :export_full_content
|
7815
|
+
|
7816
|
+
# Google Cloud Storage location for the output.
|
7817
|
+
# Corresponds to the JSON property `gcsDestination`
|
7818
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GcsDestination]
|
7819
|
+
attr_accessor :gcs_destination
|
7820
|
+
|
7821
|
+
# When enabled, export the smart messaging allowlist document for partial update.
|
7822
|
+
# Corresponds to the JSON property `smartMessagingPartialUpdate`
|
7823
|
+
# @return [Boolean]
|
7824
|
+
attr_accessor :smart_messaging_partial_update
|
7825
|
+
alias_method :smart_messaging_partial_update?, :smart_messaging_partial_update
|
7826
|
+
|
7827
|
+
def initialize(**args)
|
7828
|
+
update!(**args)
|
7829
|
+
end
|
7830
|
+
|
7831
|
+
# Update properties of this object
|
7832
|
+
def update!(**args)
|
7833
|
+
@export_full_content = args[:export_full_content] if args.key?(:export_full_content)
|
7834
|
+
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
7835
|
+
@smart_messaging_partial_update = args[:smart_messaging_partial_update] if args.key?(:smart_messaging_partial_update)
|
7836
|
+
end
|
7837
|
+
end
|
7838
|
+
|
7839
|
+
# Metadata related to the Export Data Operations (e.g. ExportDocument).
|
7840
|
+
class GoogleCloudDialogflowV2ExportOperationMetadata
|
7841
|
+
include Google::Apis::Core::Hashable
|
7842
|
+
|
7843
|
+
# Google Cloud Storage location for the output.
|
7844
|
+
# Corresponds to the JSON property `exportedGcsDestination`
|
7845
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GcsDestination]
|
7846
|
+
attr_accessor :exported_gcs_destination
|
7847
|
+
|
7848
|
+
def initialize(**args)
|
7849
|
+
update!(**args)
|
7850
|
+
end
|
7851
|
+
|
7852
|
+
# Update properties of this object
|
7853
|
+
def update!(**args)
|
7854
|
+
@exported_gcs_destination = args[:exported_gcs_destination] if args.key?(:exported_gcs_destination)
|
7855
|
+
end
|
7856
|
+
end
|
7857
|
+
|
7236
7858
|
# Represents answer from "frequently asked questions".
|
7237
7859
|
class GoogleCloudDialogflowV2FaqAnswer
|
7238
7860
|
include Google::Apis::Core::Hashable
|
@@ -7416,6 +8038,48 @@ module Google
|
|
7416
8038
|
end
|
7417
8039
|
end
|
7418
8040
|
|
8041
|
+
# Google Cloud Storage location for the output.
|
8042
|
+
class GoogleCloudDialogflowV2GcsDestination
|
8043
|
+
include Google::Apis::Core::Hashable
|
8044
|
+
|
8045
|
+
# The Google Cloud Storage URIs for the output. A URI is of the form: gs://
|
8046
|
+
# bucket/object-prefix-or-name Whether a prefix or name is used depends on the
|
8047
|
+
# use case. The requesting user must have "write-permission" to the bucket.
|
8048
|
+
# Corresponds to the JSON property `uri`
|
8049
|
+
# @return [String]
|
8050
|
+
attr_accessor :uri
|
8051
|
+
|
8052
|
+
def initialize(**args)
|
8053
|
+
update!(**args)
|
8054
|
+
end
|
8055
|
+
|
8056
|
+
# Update properties of this object
|
8057
|
+
def update!(**args)
|
8058
|
+
@uri = args[:uri] if args.key?(:uri)
|
8059
|
+
end
|
8060
|
+
end
|
8061
|
+
|
8062
|
+
# Google Cloud Storage location for the inputs.
|
8063
|
+
class GoogleCloudDialogflowV2GcsSources
|
8064
|
+
include Google::Apis::Core::Hashable
|
8065
|
+
|
8066
|
+
# Required. Google Cloud Storage URIs for the inputs. A URI is of the form: gs://
|
8067
|
+
# bucket/object-prefix-or-name Whether a prefix or name is used depends on the
|
8068
|
+
# use case.
|
8069
|
+
# Corresponds to the JSON property `uris`
|
8070
|
+
# @return [Array<String>]
|
8071
|
+
attr_accessor :uris
|
8072
|
+
|
8073
|
+
def initialize(**args)
|
8074
|
+
update!(**args)
|
8075
|
+
end
|
8076
|
+
|
8077
|
+
# Update properties of this object
|
8078
|
+
def update!(**args)
|
8079
|
+
@uris = args[:uris] if args.key?(:uris)
|
8080
|
+
end
|
8081
|
+
end
|
8082
|
+
|
7419
8083
|
# Defines the Human Agent Assist to connect to a conversation.
|
7420
8084
|
class GoogleCloudDialogflowV2HumanAgentAssistantConfig
|
7421
8085
|
include Google::Apis::Core::Hashable
|
@@ -7473,6 +8137,26 @@ module Google
|
|
7473
8137
|
end
|
7474
8138
|
end
|
7475
8139
|
|
8140
|
+
# Config to process conversation.
|
8141
|
+
class GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig
|
8142
|
+
include Google::Apis::Core::Hashable
|
8143
|
+
|
8144
|
+
# Number of recent non-small-talk sentences to use as context for article and
|
8145
|
+
# FAQ suggestion
|
8146
|
+
# Corresponds to the JSON property `recentSentencesCount`
|
8147
|
+
# @return [Fixnum]
|
8148
|
+
attr_accessor :recent_sentences_count
|
8149
|
+
|
8150
|
+
def initialize(**args)
|
8151
|
+
update!(**args)
|
8152
|
+
end
|
8153
|
+
|
8154
|
+
# Update properties of this object
|
8155
|
+
def update!(**args)
|
8156
|
+
@recent_sentences_count = args[:recent_sentences_count] if args.key?(:recent_sentences_count)
|
8157
|
+
end
|
8158
|
+
end
|
8159
|
+
|
7476
8160
|
# Configuration for analyses to run on each conversation message.
|
7477
8161
|
class GoogleCloudDialogflowV2HumanAgentAssistantConfigMessageAnalysisConfig
|
7478
8162
|
include Google::Apis::Core::Hashable
|
@@ -7559,6 +8243,11 @@ module Google
|
|
7559
8243
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationModelConfig]
|
7560
8244
|
attr_accessor :conversation_model_config
|
7561
8245
|
|
8246
|
+
# Config to process conversation.
|
8247
|
+
# Corresponds to the JSON property `conversationProcessConfig`
|
8248
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigConversationProcessConfig]
|
8249
|
+
attr_accessor :conversation_process_config
|
8250
|
+
|
7562
8251
|
# Automatically iterates all participants and tries to compile suggestions.
|
7563
8252
|
# Supported features: ARTICLE_SUGGESTION, FAQ, DIALOGFLOW_ASSIST.
|
7564
8253
|
# Corresponds to the JSON property `enableEventBasedSuggestion`
|
@@ -7590,6 +8279,7 @@ module Google
|
|
7590
8279
|
# Update properties of this object
|
7591
8280
|
def update!(**args)
|
7592
8281
|
@conversation_model_config = args[:conversation_model_config] if args.key?(:conversation_model_config)
|
8282
|
+
@conversation_process_config = args[:conversation_process_config] if args.key?(:conversation_process_config)
|
7593
8283
|
@enable_event_based_suggestion = args[:enable_event_based_suggestion] if args.key?(:enable_event_based_suggestion)
|
7594
8284
|
@query_config = args[:query_config] if args.key?(:query_config)
|
7595
8285
|
@suggestion_feature = args[:suggestion_feature] if args.key?(:suggestion_feature)
|
@@ -7930,6 +8620,173 @@ module Google
|
|
7930
8620
|
end
|
7931
8621
|
end
|
7932
8622
|
|
8623
|
+
# Metadata for a ConversationDatasets.ImportConversationData operation.
|
8624
|
+
class GoogleCloudDialogflowV2ImportConversationDataOperationMetadata
|
8625
|
+
include Google::Apis::Core::Hashable
|
8626
|
+
|
8627
|
+
# The resource name of the imported conversation dataset. Format: `projects//
|
8628
|
+
# locations//conversationDatasets/`
|
8629
|
+
# Corresponds to the JSON property `conversationDataset`
|
8630
|
+
# @return [String]
|
8631
|
+
attr_accessor :conversation_dataset
|
8632
|
+
|
8633
|
+
# Timestamp when import conversation data request was created. The time is
|
8634
|
+
# measured on server side.
|
8635
|
+
# Corresponds to the JSON property `createTime`
|
8636
|
+
# @return [String]
|
8637
|
+
attr_accessor :create_time
|
8638
|
+
|
8639
|
+
# Partial failures are failures that don't fail the whole long running operation,
|
8640
|
+
# e.g. single files that couldn't be read.
|
8641
|
+
# Corresponds to the JSON property `partialFailures`
|
8642
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleRpcStatus>]
|
8643
|
+
attr_accessor :partial_failures
|
8644
|
+
|
8645
|
+
def initialize(**args)
|
8646
|
+
update!(**args)
|
8647
|
+
end
|
8648
|
+
|
8649
|
+
# Update properties of this object
|
8650
|
+
def update!(**args)
|
8651
|
+
@conversation_dataset = args[:conversation_dataset] if args.key?(:conversation_dataset)
|
8652
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
8653
|
+
@partial_failures = args[:partial_failures] if args.key?(:partial_failures)
|
8654
|
+
end
|
8655
|
+
end
|
8656
|
+
|
8657
|
+
# Response used for ConversationDatasets.ImportConversationData long running
|
8658
|
+
# operation.
|
8659
|
+
class GoogleCloudDialogflowV2ImportConversationDataOperationResponse
|
8660
|
+
include Google::Apis::Core::Hashable
|
8661
|
+
|
8662
|
+
# The resource name of the imported conversation dataset. Format: `projects//
|
8663
|
+
# locations//conversationDatasets/`
|
8664
|
+
# Corresponds to the JSON property `conversationDataset`
|
8665
|
+
# @return [String]
|
8666
|
+
attr_accessor :conversation_dataset
|
8667
|
+
|
8668
|
+
# Number of conversations imported successfully.
|
8669
|
+
# Corresponds to the JSON property `importCount`
|
8670
|
+
# @return [Fixnum]
|
8671
|
+
attr_accessor :import_count
|
8672
|
+
|
8673
|
+
def initialize(**args)
|
8674
|
+
update!(**args)
|
8675
|
+
end
|
8676
|
+
|
8677
|
+
# Update properties of this object
|
8678
|
+
def update!(**args)
|
8679
|
+
@conversation_dataset = args[:conversation_dataset] if args.key?(:conversation_dataset)
|
8680
|
+
@import_count = args[:import_count] if args.key?(:import_count)
|
8681
|
+
end
|
8682
|
+
end
|
8683
|
+
|
8684
|
+
# The request message for ConversationDatasets.ImportConversationData.
|
8685
|
+
class GoogleCloudDialogflowV2ImportConversationDataRequest
|
8686
|
+
include Google::Apis::Core::Hashable
|
8687
|
+
|
8688
|
+
# Represents the configuration of importing a set of conversation files in
|
8689
|
+
# Google Cloud Storage.
|
8690
|
+
# Corresponds to the JSON property `inputConfig`
|
8691
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputConfig]
|
8692
|
+
attr_accessor :input_config
|
8693
|
+
|
8694
|
+
def initialize(**args)
|
8695
|
+
update!(**args)
|
8696
|
+
end
|
8697
|
+
|
8698
|
+
# Update properties of this object
|
8699
|
+
def update!(**args)
|
8700
|
+
@input_config = args[:input_config] if args.key?(:input_config)
|
8701
|
+
end
|
8702
|
+
end
|
8703
|
+
|
8704
|
+
# The template used for importing documents.
|
8705
|
+
class GoogleCloudDialogflowV2ImportDocumentTemplate
|
8706
|
+
include Google::Apis::Core::Hashable
|
8707
|
+
|
8708
|
+
# Required. The knowledge type of document content.
|
8709
|
+
# Corresponds to the JSON property `knowledgeTypes`
|
8710
|
+
# @return [Array<String>]
|
8711
|
+
attr_accessor :knowledge_types
|
8712
|
+
|
8713
|
+
# Metadata for the document. The metadata supports arbitrary key-value pairs.
|
8714
|
+
# Suggested use cases include storing a document's title, an external URL
|
8715
|
+
# distinct from the document's content_uri, etc. The max size of a `key` or a `
|
8716
|
+
# value` of the metadata is 1024 bytes.
|
8717
|
+
# Corresponds to the JSON property `metadata`
|
8718
|
+
# @return [Hash<String,String>]
|
8719
|
+
attr_accessor :metadata
|
8720
|
+
|
8721
|
+
# Required. The MIME type of the document.
|
8722
|
+
# Corresponds to the JSON property `mimeType`
|
8723
|
+
# @return [String]
|
8724
|
+
attr_accessor :mime_type
|
8725
|
+
|
8726
|
+
def initialize(**args)
|
8727
|
+
update!(**args)
|
8728
|
+
end
|
8729
|
+
|
8730
|
+
# Update properties of this object
|
8731
|
+
def update!(**args)
|
8732
|
+
@knowledge_types = args[:knowledge_types] if args.key?(:knowledge_types)
|
8733
|
+
@metadata = args[:metadata] if args.key?(:metadata)
|
8734
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
8735
|
+
end
|
8736
|
+
end
|
8737
|
+
|
8738
|
+
# Request message for Documents.ImportDocuments.
|
8739
|
+
class GoogleCloudDialogflowV2ImportDocumentsRequest
|
8740
|
+
include Google::Apis::Core::Hashable
|
8741
|
+
|
8742
|
+
# The template used for importing documents.
|
8743
|
+
# Corresponds to the JSON property `documentTemplate`
|
8744
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportDocumentTemplate]
|
8745
|
+
attr_accessor :document_template
|
8746
|
+
|
8747
|
+
# Google Cloud Storage location for the inputs.
|
8748
|
+
# Corresponds to the JSON property `gcsSource`
|
8749
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GcsSources]
|
8750
|
+
attr_accessor :gcs_source
|
8751
|
+
|
8752
|
+
# Whether to import custom metadata from Google Cloud Storage. Only valid when
|
8753
|
+
# the document source is Google Cloud Storage URI.
|
8754
|
+
# Corresponds to the JSON property `importGcsCustomMetadata`
|
8755
|
+
# @return [Boolean]
|
8756
|
+
attr_accessor :import_gcs_custom_metadata
|
8757
|
+
alias_method :import_gcs_custom_metadata?, :import_gcs_custom_metadata
|
8758
|
+
|
8759
|
+
def initialize(**args)
|
8760
|
+
update!(**args)
|
8761
|
+
end
|
8762
|
+
|
8763
|
+
# Update properties of this object
|
8764
|
+
def update!(**args)
|
8765
|
+
@document_template = args[:document_template] if args.key?(:document_template)
|
8766
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
8767
|
+
@import_gcs_custom_metadata = args[:import_gcs_custom_metadata] if args.key?(:import_gcs_custom_metadata)
|
8768
|
+
end
|
8769
|
+
end
|
8770
|
+
|
8771
|
+
# Response message for Documents.ImportDocuments.
|
8772
|
+
class GoogleCloudDialogflowV2ImportDocumentsResponse
|
8773
|
+
include Google::Apis::Core::Hashable
|
8774
|
+
|
8775
|
+
# Includes details about skipped documents or any other warnings.
|
8776
|
+
# Corresponds to the JSON property `warnings`
|
8777
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleRpcStatus>]
|
8778
|
+
attr_accessor :warnings
|
8779
|
+
|
8780
|
+
def initialize(**args)
|
8781
|
+
update!(**args)
|
8782
|
+
end
|
8783
|
+
|
8784
|
+
# Update properties of this object
|
8785
|
+
def update!(**args)
|
8786
|
+
@warnings = args[:warnings] if args.key?(:warnings)
|
8787
|
+
end
|
8788
|
+
end
|
8789
|
+
|
7933
8790
|
# Instructs the speech recognizer how to process the audio content.
|
7934
8791
|
class GoogleCloudDialogflowV2InputAudioConfig
|
7935
8792
|
include Google::Apis::Core::Hashable
|
@@ -8038,6 +8895,46 @@ module Google
|
|
8038
8895
|
end
|
8039
8896
|
end
|
8040
8897
|
|
8898
|
+
# Represents the configuration of importing a set of conversation files in
|
8899
|
+
# Google Cloud Storage.
|
8900
|
+
class GoogleCloudDialogflowV2InputConfig
|
8901
|
+
include Google::Apis::Core::Hashable
|
8902
|
+
|
8903
|
+
# Google Cloud Storage location for the inputs.
|
8904
|
+
# Corresponds to the JSON property `gcsSource`
|
8905
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GcsSources]
|
8906
|
+
attr_accessor :gcs_source
|
8907
|
+
|
8908
|
+
def initialize(**args)
|
8909
|
+
update!(**args)
|
8910
|
+
end
|
8911
|
+
|
8912
|
+
# Update properties of this object
|
8913
|
+
def update!(**args)
|
8914
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
8915
|
+
end
|
8916
|
+
end
|
8917
|
+
|
8918
|
+
# InputDataset used to create model or do evaluation. NextID:5
|
8919
|
+
class GoogleCloudDialogflowV2InputDataset
|
8920
|
+
include Google::Apis::Core::Hashable
|
8921
|
+
|
8922
|
+
# Required. ConversationDataset resource name. Format: `projects//locations//
|
8923
|
+
# conversationDatasets/`
|
8924
|
+
# Corresponds to the JSON property `dataset`
|
8925
|
+
# @return [String]
|
8926
|
+
attr_accessor :dataset
|
8927
|
+
|
8928
|
+
def initialize(**args)
|
8929
|
+
update!(**args)
|
8930
|
+
end
|
8931
|
+
|
8932
|
+
# Update properties of this object
|
8933
|
+
def update!(**args)
|
8934
|
+
@dataset = args[:dataset] if args.key?(:dataset)
|
8935
|
+
end
|
8936
|
+
end
|
8937
|
+
|
8041
8938
|
# An intent categorizes an end-user's intention for one conversation turn. For
|
8042
8939
|
# each agent, you define many intents, where your combined intents can handle a
|
8043
8940
|
# complete conversation. When an end-user writes or says something, referred to
|
@@ -9353,6 +10250,16 @@ module Google
|
|
9353
10250
|
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
|
9354
10251
|
include Google::Apis::Core::Hashable
|
9355
10252
|
|
10253
|
+
# Metadata related to the Export Data Operations (e.g. ExportDocument).
|
10254
|
+
# Corresponds to the JSON property `exportOperationMetadata`
|
10255
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ExportOperationMetadata]
|
10256
|
+
attr_accessor :export_operation_metadata
|
10257
|
+
|
10258
|
+
# The name of the knowledge base interacted with during the operation.
|
10259
|
+
# Corresponds to the JSON property `knowledgeBase`
|
10260
|
+
# @return [String]
|
10261
|
+
attr_accessor :knowledge_base
|
10262
|
+
|
9356
10263
|
# Output only. The current state of this operation.
|
9357
10264
|
# Corresponds to the JSON property `state`
|
9358
10265
|
# @return [String]
|
@@ -9364,6 +10271,8 @@ module Google
|
|
9364
10271
|
|
9365
10272
|
# Update properties of this object
|
9366
10273
|
def update!(**args)
|
10274
|
+
@export_operation_metadata = args[:export_operation_metadata] if args.key?(:export_operation_metadata)
|
10275
|
+
@knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
|
9367
10276
|
@state = args[:state] if args.key?(:state)
|
9368
10277
|
end
|
9369
10278
|
end
|
@@ -9423,6 +10332,84 @@ module Google
|
|
9423
10332
|
end
|
9424
10333
|
end
|
9425
10334
|
|
10335
|
+
# The response message for ConversationDatasets.ListConversationDatasets.
|
10336
|
+
class GoogleCloudDialogflowV2ListConversationDatasetsResponse
|
10337
|
+
include Google::Apis::Core::Hashable
|
10338
|
+
|
10339
|
+
# The list of datasets to return.
|
10340
|
+
# Corresponds to the JSON property `conversationDatasets`
|
10341
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationDataset>]
|
10342
|
+
attr_accessor :conversation_datasets
|
10343
|
+
|
10344
|
+
# The token to use to retrieve the next page of results, or empty if there are
|
10345
|
+
# no more results in the list.
|
10346
|
+
# Corresponds to the JSON property `nextPageToken`
|
10347
|
+
# @return [String]
|
10348
|
+
attr_accessor :next_page_token
|
10349
|
+
|
10350
|
+
def initialize(**args)
|
10351
|
+
update!(**args)
|
10352
|
+
end
|
10353
|
+
|
10354
|
+
# Update properties of this object
|
10355
|
+
def update!(**args)
|
10356
|
+
@conversation_datasets = args[:conversation_datasets] if args.key?(:conversation_datasets)
|
10357
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
10358
|
+
end
|
10359
|
+
end
|
10360
|
+
|
10361
|
+
# The response message for ConversationModels.ListConversationModelEvaluations
|
10362
|
+
class GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse
|
10363
|
+
include Google::Apis::Core::Hashable
|
10364
|
+
|
10365
|
+
# The list of evaluations to return.
|
10366
|
+
# Corresponds to the JSON property `conversationModelEvaluations`
|
10367
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationModelEvaluation>]
|
10368
|
+
attr_accessor :conversation_model_evaluations
|
10369
|
+
|
10370
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
10371
|
+
# results in the list.
|
10372
|
+
# Corresponds to the JSON property `nextPageToken`
|
10373
|
+
# @return [String]
|
10374
|
+
attr_accessor :next_page_token
|
10375
|
+
|
10376
|
+
def initialize(**args)
|
10377
|
+
update!(**args)
|
10378
|
+
end
|
10379
|
+
|
10380
|
+
# Update properties of this object
|
10381
|
+
def update!(**args)
|
10382
|
+
@conversation_model_evaluations = args[:conversation_model_evaluations] if args.key?(:conversation_model_evaluations)
|
10383
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
10384
|
+
end
|
10385
|
+
end
|
10386
|
+
|
10387
|
+
# The response message for ConversationModels.ListConversationModels
|
10388
|
+
class GoogleCloudDialogflowV2ListConversationModelsResponse
|
10389
|
+
include Google::Apis::Core::Hashable
|
10390
|
+
|
10391
|
+
# The list of models to return.
|
10392
|
+
# Corresponds to the JSON property `conversationModels`
|
10393
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationModel>]
|
10394
|
+
attr_accessor :conversation_models
|
10395
|
+
|
10396
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
10397
|
+
# results in the list.
|
10398
|
+
# Corresponds to the JSON property `nextPageToken`
|
10399
|
+
# @return [String]
|
10400
|
+
attr_accessor :next_page_token
|
10401
|
+
|
10402
|
+
def initialize(**args)
|
10403
|
+
update!(**args)
|
10404
|
+
end
|
10405
|
+
|
10406
|
+
# Update properties of this object
|
10407
|
+
def update!(**args)
|
10408
|
+
@conversation_models = args[:conversation_models] if args.key?(:conversation_models)
|
10409
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
10410
|
+
end
|
10411
|
+
end
|
10412
|
+
|
9426
10413
|
# The response message for ConversationProfiles.ListConversationProfiles.
|
9427
10414
|
class GoogleCloudDialogflowV2ListConversationProfilesResponse
|
9428
10415
|
include Google::Apis::Core::Hashable
|
@@ -9749,7 +10736,7 @@ module Google
|
|
9749
10736
|
# @return [String]
|
9750
10737
|
attr_accessor :content
|
9751
10738
|
|
9752
|
-
# Output only. The time when the message was created.
|
10739
|
+
# Output only. The time when the message was created in Contact Center AI.
|
9753
10740
|
# Corresponds to the JSON property `createTime`
|
9754
10741
|
# @return [String]
|
9755
10742
|
attr_accessor :create_time
|
@@ -9765,7 +10752,7 @@ module Google
|
|
9765
10752
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2MessageAnnotation]
|
9766
10753
|
attr_accessor :message_annotation
|
9767
10754
|
|
9768
|
-
# The unique identifier of the message. Format: `projects//locations//
|
10755
|
+
# Optional. The unique identifier of the message. Format: `projects//locations//
|
9769
10756
|
# conversations//messages/`.
|
9770
10757
|
# Corresponds to the JSON property `name`
|
9771
10758
|
# @return [String]
|
@@ -9781,6 +10768,23 @@ module Google
|
|
9781
10768
|
# @return [String]
|
9782
10769
|
attr_accessor :participant_role
|
9783
10770
|
|
10771
|
+
# Optional. The time when the message was sent.
|
10772
|
+
# Corresponds to the JSON property `sendTime`
|
10773
|
+
# @return [String]
|
10774
|
+
attr_accessor :send_time
|
10775
|
+
|
10776
|
+
# The result of sentiment analysis. Sentiment analysis inspects user input and
|
10777
|
+
# identifies the prevailing subjective opinion, especially to determine a user's
|
10778
|
+
# attitude as positive, negative, or neutral. For Participants.DetectIntent, it
|
10779
|
+
# needs to be configured in DetectIntentRequest.query_params. For Participants.
|
10780
|
+
# StreamingDetectIntent, it needs to be configured in
|
10781
|
+
# StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent
|
10782
|
+
# and Participants.StreamingAnalyzeContent, it needs to be configured in
|
10783
|
+
# ConversationProfile.human_agent_assistant_config
|
10784
|
+
# Corresponds to the JSON property `sentimentAnalysis`
|
10785
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SentimentAnalysisResult]
|
10786
|
+
attr_accessor :sentiment_analysis
|
10787
|
+
|
9784
10788
|
def initialize(**args)
|
9785
10789
|
update!(**args)
|
9786
10790
|
end
|
@@ -9794,6 +10798,8 @@ module Google
|
|
9794
10798
|
@name = args[:name] if args.key?(:name)
|
9795
10799
|
@participant = args[:participant] if args.key?(:participant)
|
9796
10800
|
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
10801
|
+
@send_time = args[:send_time] if args.key?(:send_time)
|
10802
|
+
@sentiment_analysis = args[:sentiment_analysis] if args.key?(:sentiment_analysis)
|
9797
10803
|
end
|
9798
10804
|
end
|
9799
10805
|
|
@@ -10298,6 +11304,20 @@ module Google
|
|
10298
11304
|
# @return [String]
|
10299
11305
|
attr_accessor :content_uri
|
10300
11306
|
|
11307
|
+
# Optional. Whether to import custom metadata from Google Cloud Storage. Only
|
11308
|
+
# valid when the document source is Google Cloud Storage URI.
|
11309
|
+
# Corresponds to the JSON property `importGcsCustomMetadata`
|
11310
|
+
# @return [Boolean]
|
11311
|
+
attr_accessor :import_gcs_custom_metadata
|
11312
|
+
alias_method :import_gcs_custom_metadata?, :import_gcs_custom_metadata
|
11313
|
+
|
11314
|
+
# Optional. When enabled, the reload request is to apply partial update to the
|
11315
|
+
# smart messaging allowlist.
|
11316
|
+
# Corresponds to the JSON property `smartMessagingPartialUpdate`
|
11317
|
+
# @return [Boolean]
|
11318
|
+
attr_accessor :smart_messaging_partial_update
|
11319
|
+
alias_method :smart_messaging_partial_update?, :smart_messaging_partial_update
|
11320
|
+
|
10301
11321
|
def initialize(**args)
|
10302
11322
|
update!(**args)
|
10303
11323
|
end
|
@@ -10305,6 +11325,8 @@ module Google
|
|
10305
11325
|
# Update properties of this object
|
10306
11326
|
def update!(**args)
|
10307
11327
|
@content_uri = args[:content_uri] if args.key?(:content_uri)
|
11328
|
+
@import_gcs_custom_metadata = args[:import_gcs_custom_metadata] if args.key?(:import_gcs_custom_metadata)
|
11329
|
+
@smart_messaging_partial_update = args[:smart_messaging_partial_update] if args.key?(:smart_messaging_partial_update)
|
10308
11330
|
end
|
10309
11331
|
end
|
10310
11332
|
|
@@ -10389,16 +11411,216 @@ module Google
|
|
10389
11411
|
end
|
10390
11412
|
end
|
10391
11413
|
|
10392
|
-
# Configures the types of sentiment analysis to perform.
|
10393
|
-
class GoogleCloudDialogflowV2SentimentAnalysisRequestConfig
|
11414
|
+
# Configures the types of sentiment analysis to perform.
|
11415
|
+
class GoogleCloudDialogflowV2SentimentAnalysisRequestConfig
|
11416
|
+
include Google::Apis::Core::Hashable
|
11417
|
+
|
11418
|
+
# Instructs the service to perform sentiment analysis on `query_text`. If not
|
11419
|
+
# provided, sentiment analysis is not performed on `query_text`.
|
11420
|
+
# Corresponds to the JSON property `analyzeQueryTextSentiment`
|
11421
|
+
# @return [Boolean]
|
11422
|
+
attr_accessor :analyze_query_text_sentiment
|
11423
|
+
alias_method :analyze_query_text_sentiment?, :analyze_query_text_sentiment
|
11424
|
+
|
11425
|
+
def initialize(**args)
|
11426
|
+
update!(**args)
|
11427
|
+
end
|
11428
|
+
|
11429
|
+
# Update properties of this object
|
11430
|
+
def update!(**args)
|
11431
|
+
@analyze_query_text_sentiment = args[:analyze_query_text_sentiment] if args.key?(:analyze_query_text_sentiment)
|
11432
|
+
end
|
11433
|
+
end
|
11434
|
+
|
11435
|
+
# The result of sentiment analysis. Sentiment analysis inspects user input and
|
11436
|
+
# identifies the prevailing subjective opinion, especially to determine a user's
|
11437
|
+
# attitude as positive, negative, or neutral. For Participants.DetectIntent, it
|
11438
|
+
# needs to be configured in DetectIntentRequest.query_params. For Participants.
|
11439
|
+
# StreamingDetectIntent, it needs to be configured in
|
11440
|
+
# StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent
|
11441
|
+
# and Participants.StreamingAnalyzeContent, it needs to be configured in
|
11442
|
+
# ConversationProfile.human_agent_assistant_config
|
11443
|
+
class GoogleCloudDialogflowV2SentimentAnalysisResult
|
11444
|
+
include Google::Apis::Core::Hashable
|
11445
|
+
|
11446
|
+
# The sentiment, such as positive/negative feeling or association, for a unit of
|
11447
|
+
# analysis, such as the query text.
|
11448
|
+
# Corresponds to the JSON property `queryTextSentiment`
|
11449
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Sentiment]
|
11450
|
+
attr_accessor :query_text_sentiment
|
11451
|
+
|
11452
|
+
def initialize(**args)
|
11453
|
+
update!(**args)
|
11454
|
+
end
|
11455
|
+
|
11456
|
+
# Update properties of this object
|
11457
|
+
def update!(**args)
|
11458
|
+
@query_text_sentiment = args[:query_text_sentiment] if args.key?(:query_text_sentiment)
|
11459
|
+
end
|
11460
|
+
end
|
11461
|
+
|
11462
|
+
# A session represents a conversation between a Dialogflow agent and an end-user.
|
11463
|
+
# You can create special entities, called session entities, during a session.
|
11464
|
+
# Session entities can extend or replace custom entity types and only exist
|
11465
|
+
# during the session that they were created for. All session data, including
|
11466
|
+
# session entities, is stored by Dialogflow for 20 minutes. For more information,
|
11467
|
+
# see the [session entity guide](https://cloud.google.com/dialogflow/docs/
|
11468
|
+
# entities-session).
|
11469
|
+
class GoogleCloudDialogflowV2SessionEntityType
|
11470
|
+
include Google::Apis::Core::Hashable
|
11471
|
+
|
11472
|
+
# Required. The collection of entities associated with this session entity type.
|
11473
|
+
# Corresponds to the JSON property `entities`
|
11474
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
|
11475
|
+
attr_accessor :entities
|
11476
|
+
|
11477
|
+
# Required. Indicates whether the additional data should override or supplement
|
11478
|
+
# the custom entity type definition.
|
11479
|
+
# Corresponds to the JSON property `entityOverrideMode`
|
11480
|
+
# @return [String]
|
11481
|
+
attr_accessor :entity_override_mode
|
11482
|
+
|
11483
|
+
# Required. The unique identifier of this session entity type. Format: `projects/
|
11484
|
+
# /agent/sessions//entityTypes/`, or `projects//agent/environments//users//
|
11485
|
+
# sessions//entityTypes/`. If `Environment ID` is not specified, we assume
|
11486
|
+
# default 'draft' environment. If `User ID` is not specified, we assume default '
|
11487
|
+
# -' user. `` must be the display name of an existing entity type in the same
|
11488
|
+
# agent that will be overridden or supplemented.
|
11489
|
+
# Corresponds to the JSON property `name`
|
11490
|
+
# @return [String]
|
11491
|
+
attr_accessor :name
|
11492
|
+
|
11493
|
+
def initialize(**args)
|
11494
|
+
update!(**args)
|
11495
|
+
end
|
11496
|
+
|
11497
|
+
# Update properties of this object
|
11498
|
+
def update!(**args)
|
11499
|
+
@entities = args[:entities] if args.key?(:entities)
|
11500
|
+
@entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode)
|
11501
|
+
@name = args[:name] if args.key?(:name)
|
11502
|
+
end
|
11503
|
+
end
|
11504
|
+
|
11505
|
+
# Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.
|
11506
|
+
class GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata
|
11507
|
+
include Google::Apis::Core::Hashable
|
11508
|
+
|
11509
|
+
# The resource name of the conversation profile. Format: `projects//locations//
|
11510
|
+
# conversationProfiles/`
|
11511
|
+
# Corresponds to the JSON property `conversationProfile`
|
11512
|
+
# @return [String]
|
11513
|
+
attr_accessor :conversation_profile
|
11514
|
+
|
11515
|
+
# Timestamp whe the request was created. The time is measured on server side.
|
11516
|
+
# Corresponds to the JSON property `createTime`
|
11517
|
+
# @return [String]
|
11518
|
+
attr_accessor :create_time
|
11519
|
+
|
11520
|
+
# Required. The participant role to add or update the suggestion feature config.
|
11521
|
+
# Only HUMAN_AGENT or END_USER can be used.
|
11522
|
+
# Corresponds to the JSON property `participantRole`
|
11523
|
+
# @return [String]
|
11524
|
+
attr_accessor :participant_role
|
11525
|
+
|
11526
|
+
# Required. The type of the suggestion feature to add or update.
|
11527
|
+
# Corresponds to the JSON property `suggestionFeatureType`
|
11528
|
+
# @return [String]
|
11529
|
+
attr_accessor :suggestion_feature_type
|
11530
|
+
|
11531
|
+
def initialize(**args)
|
11532
|
+
update!(**args)
|
11533
|
+
end
|
11534
|
+
|
11535
|
+
# Update properties of this object
|
11536
|
+
def update!(**args)
|
11537
|
+
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
11538
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
11539
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
11540
|
+
@suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
|
11541
|
+
end
|
11542
|
+
end
|
11543
|
+
|
11544
|
+
# The request message for ConversationProfiles.SetSuggestionFeature.
|
11545
|
+
class GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest
|
11546
|
+
include Google::Apis::Core::Hashable
|
11547
|
+
|
11548
|
+
# Required. The participant role to add or update the suggestion feature config.
|
11549
|
+
# Only HUMAN_AGENT or END_USER can be used.
|
11550
|
+
# Corresponds to the JSON property `participantRole`
|
11551
|
+
# @return [String]
|
11552
|
+
attr_accessor :participant_role
|
11553
|
+
|
11554
|
+
# Config for suggestion features.
|
11555
|
+
# Corresponds to the JSON property `suggestionFeatureConfig`
|
11556
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig]
|
11557
|
+
attr_accessor :suggestion_feature_config
|
11558
|
+
|
11559
|
+
def initialize(**args)
|
11560
|
+
update!(**args)
|
11561
|
+
end
|
11562
|
+
|
11563
|
+
# Update properties of this object
|
11564
|
+
def update!(**args)
|
11565
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
11566
|
+
@suggestion_feature_config = args[:suggestion_feature_config] if args.key?(:suggestion_feature_config)
|
11567
|
+
end
|
11568
|
+
end
|
11569
|
+
|
11570
|
+
# Represents a smart reply answer.
|
11571
|
+
class GoogleCloudDialogflowV2SmartReplyAnswer
|
11572
|
+
include Google::Apis::Core::Hashable
|
11573
|
+
|
11574
|
+
# The name of answer record, in the format of "projects//locations//
|
11575
|
+
# answerRecords/"
|
11576
|
+
# Corresponds to the JSON property `answerRecord`
|
11577
|
+
# @return [String]
|
11578
|
+
attr_accessor :answer_record
|
11579
|
+
|
11580
|
+
# Smart reply confidence. The system's confidence score that this reply is a
|
11581
|
+
# good match for this conversation, as a value from 0.0 (completely uncertain)
|
11582
|
+
# to 1.0 (completely certain).
|
11583
|
+
# Corresponds to the JSON property `confidence`
|
11584
|
+
# @return [Float]
|
11585
|
+
attr_accessor :confidence
|
11586
|
+
|
11587
|
+
# The content of the reply.
|
11588
|
+
# Corresponds to the JSON property `reply`
|
11589
|
+
# @return [String]
|
11590
|
+
attr_accessor :reply
|
11591
|
+
|
11592
|
+
def initialize(**args)
|
11593
|
+
update!(**args)
|
11594
|
+
end
|
11595
|
+
|
11596
|
+
# Update properties of this object
|
11597
|
+
def update!(**args)
|
11598
|
+
@answer_record = args[:answer_record] if args.key?(:answer_record)
|
11599
|
+
@confidence = args[:confidence] if args.key?(:confidence)
|
11600
|
+
@reply = args[:reply] if args.key?(:reply)
|
11601
|
+
end
|
11602
|
+
end
|
11603
|
+
|
11604
|
+
# The evaluation metrics for smart reply model.
|
11605
|
+
class GoogleCloudDialogflowV2SmartReplyMetrics
|
10394
11606
|
include Google::Apis::Core::Hashable
|
10395
11607
|
|
10396
|
-
#
|
10397
|
-
#
|
10398
|
-
#
|
10399
|
-
#
|
10400
|
-
|
10401
|
-
|
11608
|
+
# Percentage of target participant messages in the evaluation dataset for which
|
11609
|
+
# similar messages have appeared at least once in the allowlist. Should be [0, 1]
|
11610
|
+
# .
|
11611
|
+
# Corresponds to the JSON property `allowlistCoverage`
|
11612
|
+
# @return [Float]
|
11613
|
+
attr_accessor :allowlist_coverage
|
11614
|
+
|
11615
|
+
# Total number of conversations used to generate this metric.
|
11616
|
+
# Corresponds to the JSON property `conversationCount`
|
11617
|
+
# @return [Fixnum]
|
11618
|
+
attr_accessor :conversation_count
|
11619
|
+
|
11620
|
+
# Metrics of top n smart replies, sorted by TopNMetric.n.
|
11621
|
+
# Corresponds to the JSON property `topNMetrics`
|
11622
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics>]
|
11623
|
+
attr_accessor :top_n_metrics
|
10402
11624
|
|
10403
11625
|
def initialize(**args)
|
10404
11626
|
update!(**args)
|
@@ -10406,26 +11628,29 @@ module Google
|
|
10406
11628
|
|
10407
11629
|
# Update properties of this object
|
10408
11630
|
def update!(**args)
|
10409
|
-
@
|
11631
|
+
@allowlist_coverage = args[:allowlist_coverage] if args.key?(:allowlist_coverage)
|
11632
|
+
@conversation_count = args[:conversation_count] if args.key?(:conversation_count)
|
11633
|
+
@top_n_metrics = args[:top_n_metrics] if args.key?(:top_n_metrics)
|
10410
11634
|
end
|
10411
11635
|
end
|
10412
11636
|
|
10413
|
-
#
|
10414
|
-
|
10415
|
-
# attitude as positive, negative, or neutral. For Participants.DetectIntent, it
|
10416
|
-
# needs to be configured in DetectIntentRequest.query_params. For Participants.
|
10417
|
-
# StreamingDetectIntent, it needs to be configured in
|
10418
|
-
# StreamingDetectIntentRequest.query_params. And for Participants.AnalyzeContent
|
10419
|
-
# and Participants.StreamingAnalyzeContent, it needs to be configured in
|
10420
|
-
# ConversationProfile.human_agent_assistant_config
|
10421
|
-
class GoogleCloudDialogflowV2SentimentAnalysisResult
|
11637
|
+
# Evaluation metrics when retrieving `n` smart replies with the model.
|
11638
|
+
class GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
|
10422
11639
|
include Google::Apis::Core::Hashable
|
10423
11640
|
|
10424
|
-
#
|
10425
|
-
#
|
10426
|
-
# Corresponds to the JSON property `
|
10427
|
-
# @return [
|
10428
|
-
attr_accessor :
|
11641
|
+
# Number of retrieved smart replies. For example, when `n` is 3, this evaluation
|
11642
|
+
# contains metrics for when Dialogflow retrieves 3 smart replies with the model.
|
11643
|
+
# Corresponds to the JSON property `n`
|
11644
|
+
# @return [Fixnum]
|
11645
|
+
attr_accessor :n
|
11646
|
+
|
11647
|
+
# Defined as `number of queries whose top n smart replies have at least one
|
11648
|
+
# similar (token match similarity above the defined threshold) reply as the real
|
11649
|
+
# reply` divided by `number of queries with at least one smart reply`. Value
|
11650
|
+
# ranges from 0.0 to 1.0 inclusive.
|
11651
|
+
# Corresponds to the JSON property `recall`
|
11652
|
+
# @return [Float]
|
11653
|
+
attr_accessor :recall
|
10429
11654
|
|
10430
11655
|
def initialize(**args)
|
10431
11656
|
update!(**args)
|
@@ -10433,40 +11658,19 @@ module Google
|
|
10433
11658
|
|
10434
11659
|
# Update properties of this object
|
10435
11660
|
def update!(**args)
|
10436
|
-
@
|
11661
|
+
@n = args[:n] if args.key?(:n)
|
11662
|
+
@recall = args[:recall] if args.key?(:recall)
|
10437
11663
|
end
|
10438
11664
|
end
|
10439
11665
|
|
10440
|
-
#
|
10441
|
-
|
10442
|
-
# Session entities can extend or replace custom entity types and only exist
|
10443
|
-
# during the session that they were created for. All session data, including
|
10444
|
-
# session entities, is stored by Dialogflow for 20 minutes. For more information,
|
10445
|
-
# see the [session entity guide](https://cloud.google.com/dialogflow/docs/
|
10446
|
-
# entities-session).
|
10447
|
-
class GoogleCloudDialogflowV2SessionEntityType
|
11666
|
+
# Metadata for smart reply models.
|
11667
|
+
class GoogleCloudDialogflowV2SmartReplyModelMetadata
|
10448
11668
|
include Google::Apis::Core::Hashable
|
10449
11669
|
|
10450
|
-
#
|
10451
|
-
# Corresponds to the JSON property `
|
10452
|
-
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EntityTypeEntity>]
|
10453
|
-
attr_accessor :entities
|
10454
|
-
|
10455
|
-
# Required. Indicates whether the additional data should override or supplement
|
10456
|
-
# the custom entity type definition.
|
10457
|
-
# Corresponds to the JSON property `entityOverrideMode`
|
10458
|
-
# @return [String]
|
10459
|
-
attr_accessor :entity_override_mode
|
10460
|
-
|
10461
|
-
# Required. The unique identifier of this session entity type. Format: `projects/
|
10462
|
-
# /agent/sessions//entityTypes/`, or `projects//agent/environments//users//
|
10463
|
-
# sessions//entityTypes/`. If `Environment ID` is not specified, we assume
|
10464
|
-
# default 'draft' environment. If `User ID` is not specified, we assume default '
|
10465
|
-
# -' user. `` must be the display name of an existing entity type in the same
|
10466
|
-
# agent that will be overridden or supplemented.
|
10467
|
-
# Corresponds to the JSON property `name`
|
11670
|
+
# Optional. Type of the smart reply model. If not provided, model_type is used.
|
11671
|
+
# Corresponds to the JSON property `trainingModelType`
|
10468
11672
|
# @return [String]
|
10469
|
-
attr_accessor :
|
11673
|
+
attr_accessor :training_model_type
|
10470
11674
|
|
10471
11675
|
def initialize(**args)
|
10472
11676
|
update!(**args)
|
@@ -10474,9 +11678,7 @@ module Google
|
|
10474
11678
|
|
10475
11679
|
# Update properties of this object
|
10476
11680
|
def update!(**args)
|
10477
|
-
@
|
10478
|
-
@entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode)
|
10479
|
-
@name = args[:name] if args.key?(:name)
|
11681
|
+
@training_model_type = args[:training_model_type] if args.key?(:training_model_type)
|
10480
11682
|
end
|
10481
11683
|
end
|
10482
11684
|
|
@@ -10548,15 +11750,15 @@ module Google
|
|
10548
11750
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AssistQueryParameters]
|
10549
11751
|
attr_accessor :assist_query_params
|
10550
11752
|
|
10551
|
-
# Max number of messages prior to and including latest_message to use
|
10552
|
-
# when compiling the suggestion. By default 20 and at most 50.
|
11753
|
+
# Optional. Max number of messages prior to and including latest_message to use
|
11754
|
+
# as context when compiling the suggestion. By default 20 and at most 50.
|
10553
11755
|
# Corresponds to the JSON property `contextSize`
|
10554
11756
|
# @return [Fixnum]
|
10555
11757
|
attr_accessor :context_size
|
10556
11758
|
|
10557
|
-
# The name of the latest conversation message to compile suggestion
|
10558
|
-
# empty, it will be the latest message of the conversation. Format: `
|
10559
|
-
# locations//conversations//messages/`.
|
11759
|
+
# Optional. The name of the latest conversation message to compile suggestion
|
11760
|
+
# for. If empty, it will be the latest message of the conversation. Format: `
|
11761
|
+
# projects//locations//conversations//messages/`.
|
10560
11762
|
# Corresponds to the JSON property `latestMessage`
|
10561
11763
|
# @return [String]
|
10562
11764
|
attr_accessor :latest_message
|
@@ -10616,15 +11818,15 @@ module Google
|
|
10616
11818
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AssistQueryParameters]
|
10617
11819
|
attr_accessor :assist_query_params
|
10618
11820
|
|
10619
|
-
# Max number of messages prior to and including [latest_message] to
|
10620
|
-
# context when compiling the suggestion. By default 20 and at most 50.
|
11821
|
+
# Optional. Max number of messages prior to and including [latest_message] to
|
11822
|
+
# use as context when compiling the suggestion. By default 20 and at most 50.
|
10621
11823
|
# Corresponds to the JSON property `contextSize`
|
10622
11824
|
# @return [Fixnum]
|
10623
11825
|
attr_accessor :context_size
|
10624
11826
|
|
10625
|
-
# The name of the latest conversation message to compile suggestion
|
10626
|
-
# empty, it will be the latest message of the conversation. Format: `
|
10627
|
-
# locations//conversations//messages/`.
|
11827
|
+
# Optional. The name of the latest conversation message to compile suggestion
|
11828
|
+
# for. If empty, it will be the latest message of the conversation. Format: `
|
11829
|
+
# projects//locations//conversations//messages/`.
|
10628
11830
|
# Corresponds to the JSON property `latestMessage`
|
10629
11831
|
# @return [String]
|
10630
11832
|
attr_accessor :latest_message
|
@@ -10675,6 +11877,76 @@ module Google
|
|
10675
11877
|
end
|
10676
11878
|
end
|
10677
11879
|
|
11880
|
+
# The request message for Participants.SuggestSmartReplies.
|
11881
|
+
class GoogleCloudDialogflowV2SuggestSmartRepliesRequest
|
11882
|
+
include Google::Apis::Core::Hashable
|
11883
|
+
|
11884
|
+
# Max number of messages prior to and including [latest_message] to use as
|
11885
|
+
# context when compiling the suggestion. By default 20 and at most 50.
|
11886
|
+
# Corresponds to the JSON property `contextSize`
|
11887
|
+
# @return [Fixnum]
|
11888
|
+
attr_accessor :context_size
|
11889
|
+
|
11890
|
+
# Represents the natural language text to be processed.
|
11891
|
+
# Corresponds to the JSON property `currentTextInput`
|
11892
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2TextInput]
|
11893
|
+
attr_accessor :current_text_input
|
11894
|
+
|
11895
|
+
# The name of the latest conversation message to compile suggestion for. If
|
11896
|
+
# empty, it will be the latest message of the conversation. Format: `projects//
|
11897
|
+
# locations//conversations//messages/`.
|
11898
|
+
# Corresponds to the JSON property `latestMessage`
|
11899
|
+
# @return [String]
|
11900
|
+
attr_accessor :latest_message
|
11901
|
+
|
11902
|
+
def initialize(**args)
|
11903
|
+
update!(**args)
|
11904
|
+
end
|
11905
|
+
|
11906
|
+
# Update properties of this object
|
11907
|
+
def update!(**args)
|
11908
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
11909
|
+
@current_text_input = args[:current_text_input] if args.key?(:current_text_input)
|
11910
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
11911
|
+
end
|
11912
|
+
end
|
11913
|
+
|
11914
|
+
# The response message for Participants.SuggestSmartReplies.
|
11915
|
+
class GoogleCloudDialogflowV2SuggestSmartRepliesResponse
|
11916
|
+
include Google::Apis::Core::Hashable
|
11917
|
+
|
11918
|
+
# Number of messages prior to and including latest_message to compile the
|
11919
|
+
# suggestion. It may be smaller than the SuggestSmartRepliesRequest.context_size
|
11920
|
+
# field in the request if there aren't that many messages in the conversation.
|
11921
|
+
# Corresponds to the JSON property `contextSize`
|
11922
|
+
# @return [Fixnum]
|
11923
|
+
attr_accessor :context_size
|
11924
|
+
|
11925
|
+
# The name of the latest conversation message used to compile suggestion for.
|
11926
|
+
# Format: `projects//locations//conversations//messages/`.
|
11927
|
+
# Corresponds to the JSON property `latestMessage`
|
11928
|
+
# @return [String]
|
11929
|
+
attr_accessor :latest_message
|
11930
|
+
|
11931
|
+
# Output only. Multiple reply options provided by smart reply service. The order
|
11932
|
+
# is based on the rank of the model prediction. The maximum number of the
|
11933
|
+
# returned replies is set in SmartReplyConfig.
|
11934
|
+
# Corresponds to the JSON property `smartReplyAnswers`
|
11935
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyAnswer>]
|
11936
|
+
attr_accessor :smart_reply_answers
|
11937
|
+
|
11938
|
+
def initialize(**args)
|
11939
|
+
update!(**args)
|
11940
|
+
end
|
11941
|
+
|
11942
|
+
# Update properties of this object
|
11943
|
+
def update!(**args)
|
11944
|
+
@context_size = args[:context_size] if args.key?(:context_size)
|
11945
|
+
@latest_message = args[:latest_message] if args.key?(:latest_message)
|
11946
|
+
@smart_reply_answers = args[:smart_reply_answers] if args.key?(:smart_reply_answers)
|
11947
|
+
end
|
11948
|
+
end
|
11949
|
+
|
10678
11950
|
# The type of Human Agent Assistant API suggestion to perform, and the maximum
|
10679
11951
|
# number of results to return for that type. Multiple `Feature` objects can be
|
10680
11952
|
# specified in the `features` list.
|
@@ -10722,6 +11994,11 @@ module Google
|
|
10722
11994
|
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestFaqAnswersResponse]
|
10723
11995
|
attr_accessor :suggest_faq_answers_response
|
10724
11996
|
|
11997
|
+
# The response message for Participants.SuggestSmartReplies.
|
11998
|
+
# Corresponds to the JSON property `suggestSmartRepliesResponse`
|
11999
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SuggestSmartRepliesResponse]
|
12000
|
+
attr_accessor :suggest_smart_replies_response
|
12001
|
+
|
10725
12002
|
def initialize(**args)
|
10726
12003
|
update!(**args)
|
10727
12004
|
end
|
@@ -10731,6 +12008,7 @@ module Google
|
|
10731
12008
|
@error = args[:error] if args.key?(:error)
|
10732
12009
|
@suggest_articles_response = args[:suggest_articles_response] if args.key?(:suggest_articles_response)
|
10733
12010
|
@suggest_faq_answers_response = args[:suggest_faq_answers_response] if args.key?(:suggest_faq_answers_response)
|
12011
|
+
@suggest_smart_replies_response = args[:suggest_smart_replies_response] if args.key?(:suggest_smart_replies_response)
|
10734
12012
|
end
|
10735
12013
|
end
|
10736
12014
|
|
@@ -10878,6 +12156,46 @@ module Google
|
|
10878
12156
|
end
|
10879
12157
|
end
|
10880
12158
|
|
12159
|
+
# Metadata for a ConversationModels.UndeployConversationModel operation.
|
12160
|
+
class GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
|
12161
|
+
include Google::Apis::Core::Hashable
|
12162
|
+
|
12163
|
+
# The resource name of the conversation model. Format: `projects//
|
12164
|
+
# conversationModels/`
|
12165
|
+
# Corresponds to the JSON property `conversationModel`
|
12166
|
+
# @return [String]
|
12167
|
+
attr_accessor :conversation_model
|
12168
|
+
|
12169
|
+
# Timestamp when the request to undeploy conversation model was submitted. The
|
12170
|
+
# time is measured on server side.
|
12171
|
+
# Corresponds to the JSON property `createTime`
|
12172
|
+
# @return [String]
|
12173
|
+
attr_accessor :create_time
|
12174
|
+
|
12175
|
+
def initialize(**args)
|
12176
|
+
update!(**args)
|
12177
|
+
end
|
12178
|
+
|
12179
|
+
# Update properties of this object
|
12180
|
+
def update!(**args)
|
12181
|
+
@conversation_model = args[:conversation_model] if args.key?(:conversation_model)
|
12182
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
12183
|
+
end
|
12184
|
+
end
|
12185
|
+
|
12186
|
+
# The request message for ConversationModels.UndeployConversationModel
|
12187
|
+
class GoogleCloudDialogflowV2UndeployConversationModelRequest
|
12188
|
+
include Google::Apis::Core::Hashable
|
12189
|
+
|
12190
|
+
def initialize(**args)
|
12191
|
+
update!(**args)
|
12192
|
+
end
|
12193
|
+
|
12194
|
+
# Update properties of this object
|
12195
|
+
def update!(**args)
|
12196
|
+
end
|
12197
|
+
end
|
12198
|
+
|
10881
12199
|
# Represents a single validation error.
|
10882
12200
|
class GoogleCloudDialogflowV2ValidationError
|
10883
12201
|
include Google::Apis::Core::Hashable
|
@@ -11266,6 +12584,45 @@ module Google
|
|
11266
12584
|
end
|
11267
12585
|
end
|
11268
12586
|
|
12587
|
+
# Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
|
12588
|
+
class GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata
|
12589
|
+
include Google::Apis::Core::Hashable
|
12590
|
+
|
12591
|
+
# The resource name of the conversation profile. Format: `projects//locations//
|
12592
|
+
# conversationProfiles/`
|
12593
|
+
# Corresponds to the JSON property `conversationProfile`
|
12594
|
+
# @return [String]
|
12595
|
+
attr_accessor :conversation_profile
|
12596
|
+
|
12597
|
+
# Timestamp whe the request was created. The time is measured on server side.
|
12598
|
+
# Corresponds to the JSON property `createTime`
|
12599
|
+
# @return [String]
|
12600
|
+
attr_accessor :create_time
|
12601
|
+
|
12602
|
+
# Required. The participant role to remove the suggestion feature config. Only
|
12603
|
+
# HUMAN_AGENT or END_USER can be used.
|
12604
|
+
# Corresponds to the JSON property `participantRole`
|
12605
|
+
# @return [String]
|
12606
|
+
attr_accessor :participant_role
|
12607
|
+
|
12608
|
+
# Required. The type of the suggestion feature to remove.
|
12609
|
+
# Corresponds to the JSON property `suggestionFeatureType`
|
12610
|
+
# @return [String]
|
12611
|
+
attr_accessor :suggestion_feature_type
|
12612
|
+
|
12613
|
+
def initialize(**args)
|
12614
|
+
update!(**args)
|
12615
|
+
end
|
12616
|
+
|
12617
|
+
# Update properties of this object
|
12618
|
+
def update!(**args)
|
12619
|
+
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
12620
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
12621
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
12622
|
+
@suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
|
12623
|
+
end
|
12624
|
+
end
|
12625
|
+
|
11269
12626
|
# Dialogflow contexts are similar to natural language context. If a person says
|
11270
12627
|
# to you "they are orange", you need context in order to understand what "they"
|
11271
12628
|
# is referring to. Similarly, for Dialogflow to handle an end-user expression
|
@@ -11537,6 +12894,25 @@ module Google
|
|
11537
12894
|
end
|
11538
12895
|
end
|
11539
12896
|
|
12897
|
+
# Metadata related to the Export Data Operations (e.g. ExportDocument).
|
12898
|
+
class GoogleCloudDialogflowV2beta1ExportOperationMetadata
|
12899
|
+
include Google::Apis::Core::Hashable
|
12900
|
+
|
12901
|
+
# Google Cloud Storage location for the output.
|
12902
|
+
# Corresponds to the JSON property `exportedGcsDestination`
|
12903
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GcsDestination]
|
12904
|
+
attr_accessor :exported_gcs_destination
|
12905
|
+
|
12906
|
+
def initialize(**args)
|
12907
|
+
update!(**args)
|
12908
|
+
end
|
12909
|
+
|
12910
|
+
# Update properties of this object
|
12911
|
+
def update!(**args)
|
12912
|
+
@exported_gcs_destination = args[:exported_gcs_destination] if args.key?(:exported_gcs_destination)
|
12913
|
+
end
|
12914
|
+
end
|
12915
|
+
|
11540
12916
|
# Represents answer from "frequently asked questions".
|
11541
12917
|
class GoogleCloudDialogflowV2beta1FaqAnswer
|
11542
12918
|
include Google::Apis::Core::Hashable
|
@@ -11591,6 +12967,27 @@ module Google
|
|
11591
12967
|
end
|
11592
12968
|
end
|
11593
12969
|
|
12970
|
+
# Google Cloud Storage location for the output.
|
12971
|
+
class GoogleCloudDialogflowV2beta1GcsDestination
|
12972
|
+
include Google::Apis::Core::Hashable
|
12973
|
+
|
12974
|
+
# Required. The Google Cloud Storage URIs for the output. A URI is of the form:
|
12975
|
+
# gs://bucket/object-prefix-or-name Whether a prefix or name is used depends on
|
12976
|
+
# the use case. The requesting user must have "write-permission" to the bucket.
|
12977
|
+
# Corresponds to the JSON property `uri`
|
12978
|
+
# @return [String]
|
12979
|
+
attr_accessor :uri
|
12980
|
+
|
12981
|
+
def initialize(**args)
|
12982
|
+
update!(**args)
|
12983
|
+
end
|
12984
|
+
|
12985
|
+
# Update properties of this object
|
12986
|
+
def update!(**args)
|
12987
|
+
@uri = args[:uri] if args.key?(:uri)
|
12988
|
+
end
|
12989
|
+
end
|
12990
|
+
|
11594
12991
|
# Output only. Represents a notification sent to Pub/Sub subscribers for agent
|
11595
12992
|
# assistant events in a specific conversation.
|
11596
12993
|
class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
|
@@ -13450,6 +14847,16 @@ module Google
|
|
13450
14847
|
class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
|
13451
14848
|
include Google::Apis::Core::Hashable
|
13452
14849
|
|
14850
|
+
# Metadata related to the Export Data Operations (e.g. ExportDocument).
|
14851
|
+
# Corresponds to the JSON property `exportOperationMetadata`
|
14852
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ExportOperationMetadata]
|
14853
|
+
attr_accessor :export_operation_metadata
|
14854
|
+
|
14855
|
+
# The name of the knowledge base interacted with during the operation.
|
14856
|
+
# Corresponds to the JSON property `knowledgeBase`
|
14857
|
+
# @return [String]
|
14858
|
+
attr_accessor :knowledge_base
|
14859
|
+
|
13453
14860
|
# Required. Output only. The current state of this operation.
|
13454
14861
|
# Corresponds to the JSON property `state`
|
13455
14862
|
# @return [String]
|
@@ -13461,6 +14868,8 @@ module Google
|
|
13461
14868
|
|
13462
14869
|
# Update properties of this object
|
13463
14870
|
def update!(**args)
|
14871
|
+
@export_operation_metadata = args[:export_operation_metadata] if args.key?(:export_operation_metadata)
|
14872
|
+
@knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
|
13464
14873
|
@state = args[:state] if args.key?(:state)
|
13465
14874
|
end
|
13466
14875
|
end
|
@@ -13877,6 +15286,45 @@ module Google
|
|
13877
15286
|
end
|
13878
15287
|
end
|
13879
15288
|
|
15289
|
+
# Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.
|
15290
|
+
class GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata
|
15291
|
+
include Google::Apis::Core::Hashable
|
15292
|
+
|
15293
|
+
# The resource name of the conversation profile. Format: `projects//locations//
|
15294
|
+
# conversationProfiles/`
|
15295
|
+
# Corresponds to the JSON property `conversationProfile`
|
15296
|
+
# @return [String]
|
15297
|
+
attr_accessor :conversation_profile
|
15298
|
+
|
15299
|
+
# Timestamp whe the request was created. The time is measured on server side.
|
15300
|
+
# Corresponds to the JSON property `createTime`
|
15301
|
+
# @return [String]
|
15302
|
+
attr_accessor :create_time
|
15303
|
+
|
15304
|
+
# Required. The participant role to add or update the suggestion feature config.
|
15305
|
+
# Only HUMAN_AGENT or END_USER can be used.
|
15306
|
+
# Corresponds to the JSON property `participantRole`
|
15307
|
+
# @return [String]
|
15308
|
+
attr_accessor :participant_role
|
15309
|
+
|
15310
|
+
# Required. The type of the suggestion feature to add or update.
|
15311
|
+
# Corresponds to the JSON property `suggestionFeatureType`
|
15312
|
+
# @return [String]
|
15313
|
+
attr_accessor :suggestion_feature_type
|
15314
|
+
|
15315
|
+
def initialize(**args)
|
15316
|
+
update!(**args)
|
15317
|
+
end
|
15318
|
+
|
15319
|
+
# Update properties of this object
|
15320
|
+
def update!(**args)
|
15321
|
+
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
15322
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
15323
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
15324
|
+
@suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
|
15325
|
+
end
|
15326
|
+
end
|
15327
|
+
|
13880
15328
|
# Represents a smart reply answer.
|
13881
15329
|
class GoogleCloudDialogflowV2beta1SmartReplyAnswer
|
13882
15330
|
include Google::Apis::Core::Hashable
|