google-apis-dialogflow_v2 0.29.0 → 0.32.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 +12 -0
- data/lib/google/apis/dialogflow_v2/classes.rb +1239 -106
- data/lib/google/apis/dialogflow_v2/gem_version.rb +2 -2
- data/lib/google/apis/dialogflow_v2/representations.rb +570 -0
- data/lib/google/apis/dialogflow_v2/service.rb +2644 -1566
- metadata +3 -3
@@ -2284,12 +2284,24 @@ module Google
|
|
2284
2284
|
class GoogleCloudDialogflowCxV3TestConfig
|
2285
2285
|
include Google::Apis::Core::Hashable
|
2286
2286
|
|
2287
|
-
# Flow name
|
2288
|
-
#
|
2287
|
+
# Flow name to start the test case with. Format: `projects//locations//agents//
|
2288
|
+
# flows/`. Only one of `flow` and `page` should be set to indicate the starting
|
2289
|
+
# point of the test case. If both are set, `page` takes precedence over `flow`.
|
2290
|
+
# If neither is set, the test case will start with start page on the default
|
2291
|
+
# start flow.
|
2289
2292
|
# Corresponds to the JSON property `flow`
|
2290
2293
|
# @return [String]
|
2291
2294
|
attr_accessor :flow
|
2292
2295
|
|
2296
|
+
# The page to start the test case with. Format: `projects//locations//agents//
|
2297
|
+
# flows//pages/`. Only one of `flow` and `page` should be set to indicate the
|
2298
|
+
# starting point of the test case. If both are set, `page` takes precedence over
|
2299
|
+
# `flow`. If neither is set, the test case will start with start page on the
|
2300
|
+
# default start flow.
|
2301
|
+
# Corresponds to the JSON property `page`
|
2302
|
+
# @return [String]
|
2303
|
+
attr_accessor :page
|
2304
|
+
|
2293
2305
|
# Session parameters to be compared when calculating differences.
|
2294
2306
|
# Corresponds to the JSON property `trackingParameters`
|
2295
2307
|
# @return [Array<String>]
|
@@ -2302,6 +2314,7 @@ module Google
|
|
2302
2314
|
# Update properties of this object
|
2303
2315
|
def update!(**args)
|
2304
2316
|
@flow = args[:flow] if args.key?(:flow)
|
2317
|
+
@page = args[:page] if args.key?(:page)
|
2305
2318
|
@tracking_parameters = args[:tracking_parameters] if args.key?(:tracking_parameters)
|
2306
2319
|
end
|
2307
2320
|
end
|
@@ -5026,12 +5039,24 @@ module Google
|
|
5026
5039
|
class GoogleCloudDialogflowCxV3beta1TestConfig
|
5027
5040
|
include Google::Apis::Core::Hashable
|
5028
5041
|
|
5029
|
-
# Flow name
|
5030
|
-
#
|
5042
|
+
# Flow name to start the test case with. Format: `projects//locations//agents//
|
5043
|
+
# flows/`. Only one of `flow` and `page` should be set to indicate the starting
|
5044
|
+
# point of the test case. If both are set, `page` takes precedence over `flow`.
|
5045
|
+
# If neither is set, the test case will start with start page on the default
|
5046
|
+
# start flow.
|
5031
5047
|
# Corresponds to the JSON property `flow`
|
5032
5048
|
# @return [String]
|
5033
5049
|
attr_accessor :flow
|
5034
5050
|
|
5051
|
+
# The page to start the test case with. Format: `projects//locations//agents//
|
5052
|
+
# flows//pages/`. Only one of `flow` and `page` should be set to indicate the
|
5053
|
+
# starting point of the test case. If both are set, `page` takes precedence over
|
5054
|
+
# `flow`. If neither is set, the test case will start with start page on the
|
5055
|
+
# default start flow.
|
5056
|
+
# Corresponds to the JSON property `page`
|
5057
|
+
# @return [String]
|
5058
|
+
attr_accessor :page
|
5059
|
+
|
5035
5060
|
# Session parameters to be compared when calculating differences.
|
5036
5061
|
# Corresponds to the JSON property `trackingParameters`
|
5037
5062
|
# @return [Array<String>]
|
@@ -5044,6 +5069,7 @@ module Google
|
|
5044
5069
|
# Update properties of this object
|
5045
5070
|
def update!(**args)
|
5046
5071
|
@flow = args[:flow] if args.key?(:flow)
|
5072
|
+
@page = args[:page] if args.key?(:page)
|
5047
5073
|
@tracking_parameters = args[:tracking_parameters] if args.key?(:tracking_parameters)
|
5048
5074
|
end
|
5049
5075
|
end
|
@@ -5985,6 +6011,26 @@ module Google
|
|
5985
6011
|
end
|
5986
6012
|
end
|
5987
6013
|
|
6014
|
+
# Metadata for article suggestion models.
|
6015
|
+
class GoogleCloudDialogflowV2ArticleSuggestionModelMetadata
|
6016
|
+
include Google::Apis::Core::Hashable
|
6017
|
+
|
6018
|
+
# Optional. Type of the article suggestion model. If not provided, model_type is
|
6019
|
+
# used.
|
6020
|
+
# Corresponds to the JSON property `trainingModelType`
|
6021
|
+
# @return [String]
|
6022
|
+
attr_accessor :training_model_type
|
6023
|
+
|
6024
|
+
def initialize(**args)
|
6025
|
+
update!(**args)
|
6026
|
+
end
|
6027
|
+
|
6028
|
+
# Update properties of this object
|
6029
|
+
def update!(**args)
|
6030
|
+
@training_model_type = args[:training_model_type] if args.key?(:training_model_type)
|
6031
|
+
end
|
6032
|
+
end
|
6033
|
+
|
5988
6034
|
# Represents the parameters of human assist query.
|
5989
6035
|
class GoogleCloudDialogflowV2AssistQueryParameters
|
5990
6036
|
include Google::Apis::Core::Hashable
|
@@ -6331,6 +6377,71 @@ module Google
|
|
6331
6377
|
end
|
6332
6378
|
end
|
6333
6379
|
|
6380
|
+
# Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
|
6381
|
+
class GoogleCloudDialogflowV2ClearSuggestionFeatureConfigOperationMetadata
|
6382
|
+
include Google::Apis::Core::Hashable
|
6383
|
+
|
6384
|
+
# The resource name of the conversation profile. Format: `projects//locations//
|
6385
|
+
# conversationProfiles/`
|
6386
|
+
# Corresponds to the JSON property `conversationProfile`
|
6387
|
+
# @return [String]
|
6388
|
+
attr_accessor :conversation_profile
|
6389
|
+
|
6390
|
+
# Timestamp whe the request was created. The time is measured on server side.
|
6391
|
+
# Corresponds to the JSON property `createTime`
|
6392
|
+
# @return [String]
|
6393
|
+
attr_accessor :create_time
|
6394
|
+
|
6395
|
+
# Required. The participant role to remove the suggestion feature config. Only
|
6396
|
+
# HUMAN_AGENT or END_USER can be used.
|
6397
|
+
# Corresponds to the JSON property `participantRole`
|
6398
|
+
# @return [String]
|
6399
|
+
attr_accessor :participant_role
|
6400
|
+
|
6401
|
+
# Required. The type of the suggestion feature to remove.
|
6402
|
+
# Corresponds to the JSON property `suggestionFeatureType`
|
6403
|
+
# @return [String]
|
6404
|
+
attr_accessor :suggestion_feature_type
|
6405
|
+
|
6406
|
+
def initialize(**args)
|
6407
|
+
update!(**args)
|
6408
|
+
end
|
6409
|
+
|
6410
|
+
# Update properties of this object
|
6411
|
+
def update!(**args)
|
6412
|
+
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
6413
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
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
|
+
|
6419
|
+
# The request message for ConversationProfiles.ClearFeature.
|
6420
|
+
class GoogleCloudDialogflowV2ClearSuggestionFeatureConfigRequest
|
6421
|
+
include Google::Apis::Core::Hashable
|
6422
|
+
|
6423
|
+
# Required. The participant role to remove the suggestion feature config. Only
|
6424
|
+
# HUMAN_AGENT or END_USER can be used.
|
6425
|
+
# Corresponds to the JSON property `participantRole`
|
6426
|
+
# @return [String]
|
6427
|
+
attr_accessor :participant_role
|
6428
|
+
|
6429
|
+
# Required. The type of the suggestion feature to remove.
|
6430
|
+
# Corresponds to the JSON property `suggestionFeatureType`
|
6431
|
+
# @return [String]
|
6432
|
+
attr_accessor :suggestion_feature_type
|
6433
|
+
|
6434
|
+
def initialize(**args)
|
6435
|
+
update!(**args)
|
6436
|
+
end
|
6437
|
+
|
6438
|
+
# Update properties of this object
|
6439
|
+
def update!(**args)
|
6440
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
6441
|
+
@suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
|
6442
|
+
end
|
6443
|
+
end
|
6444
|
+
|
6334
6445
|
# The request message for Conversations.CompleteConversation.
|
6335
6446
|
class GoogleCloudDialogflowV2CompleteConversationRequest
|
6336
6447
|
include Google::Apis::Core::Hashable
|
@@ -6474,6 +6585,66 @@ module Google
|
|
6474
6585
|
end
|
6475
6586
|
end
|
6476
6587
|
|
6588
|
+
# Represents a conversation dataset that a user imports raw data into. The data
|
6589
|
+
# inside ConversationDataset can not be changed after ImportConversationData
|
6590
|
+
# finishes (and calling ImportConversationData on a dataset that already has
|
6591
|
+
# data is not allowed).
|
6592
|
+
class GoogleCloudDialogflowV2ConversationDataset
|
6593
|
+
include Google::Apis::Core::Hashable
|
6594
|
+
|
6595
|
+
# Output only. The number of conversations this conversation dataset contains.
|
6596
|
+
# Corresponds to the JSON property `conversationCount`
|
6597
|
+
# @return [Fixnum]
|
6598
|
+
attr_accessor :conversation_count
|
6599
|
+
|
6600
|
+
# Represents metadata of a conversation.
|
6601
|
+
# Corresponds to the JSON property `conversationInfo`
|
6602
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationInfo]
|
6603
|
+
attr_accessor :conversation_info
|
6604
|
+
|
6605
|
+
# Output only. Creation time of this dataset.
|
6606
|
+
# Corresponds to the JSON property `createTime`
|
6607
|
+
# @return [String]
|
6608
|
+
attr_accessor :create_time
|
6609
|
+
|
6610
|
+
# Optional. The description of the dataset. Maximum of 10000 bytes.
|
6611
|
+
# Corresponds to the JSON property `description`
|
6612
|
+
# @return [String]
|
6613
|
+
attr_accessor :description
|
6614
|
+
|
6615
|
+
# Required. The display name of the dataset. Maximum of 64 bytes.
|
6616
|
+
# Corresponds to the JSON property `displayName`
|
6617
|
+
# @return [String]
|
6618
|
+
attr_accessor :display_name
|
6619
|
+
|
6620
|
+
# Represents the configuration of importing a set of conversation files in
|
6621
|
+
# Google Cloud Storage.
|
6622
|
+
# Corresponds to the JSON property `inputConfig`
|
6623
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputConfig]
|
6624
|
+
attr_accessor :input_config
|
6625
|
+
|
6626
|
+
# Output only. ConversationDataset resource name. Format: `projects//locations//
|
6627
|
+
# conversationDatasets/`
|
6628
|
+
# Corresponds to the JSON property `name`
|
6629
|
+
# @return [String]
|
6630
|
+
attr_accessor :name
|
6631
|
+
|
6632
|
+
def initialize(**args)
|
6633
|
+
update!(**args)
|
6634
|
+
end
|
6635
|
+
|
6636
|
+
# Update properties of this object
|
6637
|
+
def update!(**args)
|
6638
|
+
@conversation_count = args[:conversation_count] if args.key?(:conversation_count)
|
6639
|
+
@conversation_info = args[:conversation_info] if args.key?(:conversation_info)
|
6640
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6641
|
+
@description = args[:description] if args.key?(:description)
|
6642
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
6643
|
+
@input_config = args[:input_config] if args.key?(:input_config)
|
6644
|
+
@name = args[:name] if args.key?(:name)
|
6645
|
+
end
|
6646
|
+
end
|
6647
|
+
|
6477
6648
|
# Represents a notification sent to Pub/Sub subscribers for conversation
|
6478
6649
|
# lifecycle events.
|
6479
6650
|
class GoogleCloudDialogflowV2ConversationEvent
|
@@ -6518,6 +6689,136 @@ module Google
|
|
6518
6689
|
end
|
6519
6690
|
end
|
6520
6691
|
|
6692
|
+
# Represents metadata of a conversation.
|
6693
|
+
class GoogleCloudDialogflowV2ConversationInfo
|
6694
|
+
include Google::Apis::Core::Hashable
|
6695
|
+
|
6696
|
+
# Optional. The language code of the conversation data within this dataset. See
|
6697
|
+
# https://cloud.google.com/apis/design/standard_fields for more information.
|
6698
|
+
# Supports all UTF-8 languages.
|
6699
|
+
# Corresponds to the JSON property `languageCode`
|
6700
|
+
# @return [String]
|
6701
|
+
attr_accessor :language_code
|
6702
|
+
|
6703
|
+
def initialize(**args)
|
6704
|
+
update!(**args)
|
6705
|
+
end
|
6706
|
+
|
6707
|
+
# Update properties of this object
|
6708
|
+
def update!(**args)
|
6709
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
6710
|
+
end
|
6711
|
+
end
|
6712
|
+
|
6713
|
+
# Represents a conversation model.
|
6714
|
+
class GoogleCloudDialogflowV2ConversationModel
|
6715
|
+
include Google::Apis::Core::Hashable
|
6716
|
+
|
6717
|
+
# Metadata for article suggestion models.
|
6718
|
+
# Corresponds to the JSON property `articleSuggestionModelMetadata`
|
6719
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ArticleSuggestionModelMetadata]
|
6720
|
+
attr_accessor :article_suggestion_model_metadata
|
6721
|
+
|
6722
|
+
# Output only. Creation time of this model.
|
6723
|
+
# Corresponds to the JSON property `createTime`
|
6724
|
+
# @return [String]
|
6725
|
+
attr_accessor :create_time
|
6726
|
+
|
6727
|
+
# Required. Datasets used to create model.
|
6728
|
+
# Corresponds to the JSON property `datasets`
|
6729
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputDataset>]
|
6730
|
+
attr_accessor :datasets
|
6731
|
+
|
6732
|
+
# Required. The display name of the model. At most 64 bytes long.
|
6733
|
+
# Corresponds to the JSON property `displayName`
|
6734
|
+
# @return [String]
|
6735
|
+
attr_accessor :display_name
|
6736
|
+
|
6737
|
+
# Language code for the conversation model. If not specified, the language is en-
|
6738
|
+
# US. Language at ConversationModel should be set for all non en-us languages.
|
6739
|
+
# This should be a [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt)
|
6740
|
+
# language tag. Example: "en-US".
|
6741
|
+
# Corresponds to the JSON property `languageCode`
|
6742
|
+
# @return [String]
|
6743
|
+
attr_accessor :language_code
|
6744
|
+
|
6745
|
+
# ConversationModel resource name. Format: `projects//conversationModels/`
|
6746
|
+
# Corresponds to the JSON property `name`
|
6747
|
+
# @return [String]
|
6748
|
+
attr_accessor :name
|
6749
|
+
|
6750
|
+
# Metadata for smart reply models.
|
6751
|
+
# Corresponds to the JSON property `smartReplyModelMetadata`
|
6752
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyModelMetadata]
|
6753
|
+
attr_accessor :smart_reply_model_metadata
|
6754
|
+
|
6755
|
+
# Output only. State of the model. A model can only serve prediction requests
|
6756
|
+
# after it gets deployed.
|
6757
|
+
# Corresponds to the JSON property `state`
|
6758
|
+
# @return [String]
|
6759
|
+
attr_accessor :state
|
6760
|
+
|
6761
|
+
def initialize(**args)
|
6762
|
+
update!(**args)
|
6763
|
+
end
|
6764
|
+
|
6765
|
+
# Update properties of this object
|
6766
|
+
def update!(**args)
|
6767
|
+
@article_suggestion_model_metadata = args[:article_suggestion_model_metadata] if args.key?(:article_suggestion_model_metadata)
|
6768
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6769
|
+
@datasets = args[:datasets] if args.key?(:datasets)
|
6770
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
6771
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
6772
|
+
@name = args[:name] if args.key?(:name)
|
6773
|
+
@smart_reply_model_metadata = args[:smart_reply_model_metadata] if args.key?(:smart_reply_model_metadata)
|
6774
|
+
@state = args[:state] if args.key?(:state)
|
6775
|
+
end
|
6776
|
+
end
|
6777
|
+
|
6778
|
+
# Represents evaluation result of a conversation model.
|
6779
|
+
class GoogleCloudDialogflowV2ConversationModelEvaluation
|
6780
|
+
include Google::Apis::Core::Hashable
|
6781
|
+
|
6782
|
+
# Output only. Creation time of this model.
|
6783
|
+
# Corresponds to the JSON property `createTime`
|
6784
|
+
# @return [String]
|
6785
|
+
attr_accessor :create_time
|
6786
|
+
|
6787
|
+
# Optional. The display name of the model evaluation. At most 64 bytes long.
|
6788
|
+
# Corresponds to the JSON property `displayName`
|
6789
|
+
# @return [String]
|
6790
|
+
attr_accessor :display_name
|
6791
|
+
|
6792
|
+
# The configuration for model evaluation.
|
6793
|
+
# Corresponds to the JSON property `evaluationConfig`
|
6794
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfig]
|
6795
|
+
attr_accessor :evaluation_config
|
6796
|
+
|
6797
|
+
# The resource name of the evaluation. Format: `projects//conversationModels//
|
6798
|
+
# evaluations/`
|
6799
|
+
# Corresponds to the JSON property `name`
|
6800
|
+
# @return [String]
|
6801
|
+
attr_accessor :name
|
6802
|
+
|
6803
|
+
# The evaluation metrics for smart reply model.
|
6804
|
+
# Corresponds to the JSON property `smartReplyMetrics`
|
6805
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyMetrics]
|
6806
|
+
attr_accessor :smart_reply_metrics
|
6807
|
+
|
6808
|
+
def initialize(**args)
|
6809
|
+
update!(**args)
|
6810
|
+
end
|
6811
|
+
|
6812
|
+
# Update properties of this object
|
6813
|
+
def update!(**args)
|
6814
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6815
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
6816
|
+
@evaluation_config = args[:evaluation_config] if args.key?(:evaluation_config)
|
6817
|
+
@name = args[:name] if args.key?(:name)
|
6818
|
+
@smart_reply_metrics = args[:smart_reply_metrics] if args.key?(:smart_reply_metrics)
|
6819
|
+
end
|
6820
|
+
end
|
6821
|
+
|
6521
6822
|
# Represents a phone number for telephony integration. It allows for connecting
|
6522
6823
|
# a particular conversation over telephony.
|
6523
6824
|
class GoogleCloudDialogflowV2ConversationPhoneNumber
|
@@ -6644,45 +6945,45 @@ module Google
|
|
6644
6945
|
end
|
6645
6946
|
end
|
6646
6947
|
|
6647
|
-
#
|
6648
|
-
class
|
6948
|
+
# Metadata for ConversationDatasets.
|
6949
|
+
class GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
|
6649
6950
|
include Google::Apis::Core::Hashable
|
6650
6951
|
|
6651
|
-
|
6652
|
-
|
6653
|
-
|
6654
|
-
# Corresponds to the JSON property `inputAudio`
|
6655
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
6656
|
-
# @return [String]
|
6657
|
-
attr_accessor :input_audio
|
6952
|
+
def initialize(**args)
|
6953
|
+
update!(**args)
|
6954
|
+
end
|
6658
6955
|
|
6659
|
-
#
|
6660
|
-
|
6661
|
-
|
6662
|
-
|
6663
|
-
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
|
6664
|
-
attr_accessor :output_audio_config
|
6956
|
+
# Update properties of this object
|
6957
|
+
def update!(**args)
|
6958
|
+
end
|
6959
|
+
end
|
6665
6960
|
|
6666
|
-
|
6667
|
-
|
6668
|
-
|
6669
|
-
|
6670
|
-
#
|
6961
|
+
# Metadata for a ConversationModels.CreateConversationModelEvaluation operation.
|
6962
|
+
class GoogleCloudDialogflowV2CreateConversationModelEvaluationOperationMetadata
|
6963
|
+
include Google::Apis::Core::Hashable
|
6964
|
+
|
6965
|
+
# The resource name of the conversation model. Format: `projects//locations//
|
6966
|
+
# conversationModels/`
|
6967
|
+
# Corresponds to the JSON property `conversationModel`
|
6671
6968
|
# @return [String]
|
6672
|
-
attr_accessor :
|
6969
|
+
attr_accessor :conversation_model
|
6673
6970
|
|
6674
|
-
#
|
6675
|
-
#
|
6676
|
-
#
|
6677
|
-
#
|
6678
|
-
|
6679
|
-
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput]
|
6680
|
-
attr_accessor :query_input
|
6971
|
+
# The resource name of the conversation model. Format: `projects//locations//
|
6972
|
+
# conversationModels//evaluations/`
|
6973
|
+
# Corresponds to the JSON property `conversationModelEvaluation`
|
6974
|
+
# @return [String]
|
6975
|
+
attr_accessor :conversation_model_evaluation
|
6681
6976
|
|
6682
|
-
#
|
6683
|
-
#
|
6684
|
-
#
|
6685
|
-
|
6977
|
+
# Timestamp when the request to create conversation model was submitted. The
|
6978
|
+
# time is measured on server side.
|
6979
|
+
# Corresponds to the JSON property `createTime`
|
6980
|
+
# @return [String]
|
6981
|
+
attr_accessor :create_time
|
6982
|
+
|
6983
|
+
# State of CreateConversationModel operation.
|
6984
|
+
# Corresponds to the JSON property `state`
|
6985
|
+
# @return [String]
|
6986
|
+
attr_accessor :state
|
6686
6987
|
|
6687
6988
|
def initialize(**args)
|
6688
6989
|
update!(**args)
|
@@ -6690,36 +6991,221 @@ module Google
|
|
6690
6991
|
|
6691
6992
|
# Update properties of this object
|
6692
6993
|
def update!(**args)
|
6693
|
-
@
|
6694
|
-
@
|
6695
|
-
@
|
6696
|
-
@
|
6697
|
-
@query_params = args[:query_params] if args.key?(:query_params)
|
6994
|
+
@conversation_model = args[:conversation_model] if args.key?(:conversation_model)
|
6995
|
+
@conversation_model_evaluation = args[:conversation_model_evaluation] if args.key?(:conversation_model_evaluation)
|
6996
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
6997
|
+
@state = args[:state] if args.key?(:state)
|
6698
6998
|
end
|
6699
6999
|
end
|
6700
7000
|
|
6701
|
-
# The message
|
6702
|
-
class
|
7001
|
+
# The request message for ConversationModels.CreateConversationModelEvaluation
|
7002
|
+
class GoogleCloudDialogflowV2CreateConversationModelEvaluationRequest
|
6703
7003
|
include Google::Apis::Core::Hashable
|
6704
7004
|
|
6705
|
-
#
|
6706
|
-
#
|
6707
|
-
#
|
6708
|
-
|
6709
|
-
# default platform text responses exist, the generated audio content will be
|
6710
|
-
# empty. In some scenarios, multiple output audio fields may be present in the
|
6711
|
-
# response structure. In these cases, only the top-most-level audio output has
|
6712
|
-
# content.
|
6713
|
-
# Corresponds to the JSON property `outputAudio`
|
6714
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
6715
|
-
# @return [String]
|
6716
|
-
attr_accessor :output_audio
|
7005
|
+
# Represents evaluation result of a conversation model.
|
7006
|
+
# Corresponds to the JSON property `conversationModelEvaluation`
|
7007
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationModelEvaluation]
|
7008
|
+
attr_accessor :conversation_model_evaluation
|
6717
7009
|
|
6718
|
-
|
6719
|
-
|
6720
|
-
|
6721
|
-
|
6722
|
-
#
|
7010
|
+
def initialize(**args)
|
7011
|
+
update!(**args)
|
7012
|
+
end
|
7013
|
+
|
7014
|
+
# Update properties of this object
|
7015
|
+
def update!(**args)
|
7016
|
+
@conversation_model_evaluation = args[:conversation_model_evaluation] if args.key?(:conversation_model_evaluation)
|
7017
|
+
end
|
7018
|
+
end
|
7019
|
+
|
7020
|
+
# Metadata for a ConversationModels.CreateConversationModel operation.
|
7021
|
+
class GoogleCloudDialogflowV2CreateConversationModelOperationMetadata
|
7022
|
+
include Google::Apis::Core::Hashable
|
7023
|
+
|
7024
|
+
# The resource name of the conversation model. Format: `projects//
|
7025
|
+
# conversationModels/`
|
7026
|
+
# Corresponds to the JSON property `conversationModel`
|
7027
|
+
# @return [String]
|
7028
|
+
attr_accessor :conversation_model
|
7029
|
+
|
7030
|
+
# Timestamp when the request to create conversation model is submitted. The time
|
7031
|
+
# is measured on server side.
|
7032
|
+
# Corresponds to the JSON property `createTime`
|
7033
|
+
# @return [String]
|
7034
|
+
attr_accessor :create_time
|
7035
|
+
|
7036
|
+
# State of CreateConversationModel operation.
|
7037
|
+
# Corresponds to the JSON property `state`
|
7038
|
+
# @return [String]
|
7039
|
+
attr_accessor :state
|
7040
|
+
|
7041
|
+
def initialize(**args)
|
7042
|
+
update!(**args)
|
7043
|
+
end
|
7044
|
+
|
7045
|
+
# Update properties of this object
|
7046
|
+
def update!(**args)
|
7047
|
+
@conversation_model = args[:conversation_model] if args.key?(:conversation_model)
|
7048
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7049
|
+
@state = args[:state] if args.key?(:state)
|
7050
|
+
end
|
7051
|
+
end
|
7052
|
+
|
7053
|
+
# Metadata for ConversationDatasets.
|
7054
|
+
class GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata
|
7055
|
+
include Google::Apis::Core::Hashable
|
7056
|
+
|
7057
|
+
def initialize(**args)
|
7058
|
+
update!(**args)
|
7059
|
+
end
|
7060
|
+
|
7061
|
+
# Update properties of this object
|
7062
|
+
def update!(**args)
|
7063
|
+
end
|
7064
|
+
end
|
7065
|
+
|
7066
|
+
# Metadata for a ConversationModels.DeleteConversationModel operation.
|
7067
|
+
class GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata
|
7068
|
+
include Google::Apis::Core::Hashable
|
7069
|
+
|
7070
|
+
# The resource name of the conversation model. Format: `projects//
|
7071
|
+
# conversationModels/`
|
7072
|
+
# Corresponds to the JSON property `conversationModel`
|
7073
|
+
# @return [String]
|
7074
|
+
attr_accessor :conversation_model
|
7075
|
+
|
7076
|
+
# Timestamp when delete conversation model request was created. The time is
|
7077
|
+
# measured on server side.
|
7078
|
+
# Corresponds to the JSON property `createTime`
|
7079
|
+
# @return [String]
|
7080
|
+
attr_accessor :create_time
|
7081
|
+
|
7082
|
+
def initialize(**args)
|
7083
|
+
update!(**args)
|
7084
|
+
end
|
7085
|
+
|
7086
|
+
# Update properties of this object
|
7087
|
+
def update!(**args)
|
7088
|
+
@conversation_model = args[:conversation_model] if args.key?(:conversation_model)
|
7089
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7090
|
+
end
|
7091
|
+
end
|
7092
|
+
|
7093
|
+
# Metadata for a ConversationModels.DeployConversationModel operation.
|
7094
|
+
class GoogleCloudDialogflowV2DeployConversationModelOperationMetadata
|
7095
|
+
include Google::Apis::Core::Hashable
|
7096
|
+
|
7097
|
+
# The resource name of the conversation model. Format: `projects//
|
7098
|
+
# conversationModels/`
|
7099
|
+
# Corresponds to the JSON property `conversationModel`
|
7100
|
+
# @return [String]
|
7101
|
+
attr_accessor :conversation_model
|
7102
|
+
|
7103
|
+
# Timestamp when request to deploy conversation model was submitted. The time is
|
7104
|
+
# measured on server side.
|
7105
|
+
# Corresponds to the JSON property `createTime`
|
7106
|
+
# @return [String]
|
7107
|
+
attr_accessor :create_time
|
7108
|
+
|
7109
|
+
def initialize(**args)
|
7110
|
+
update!(**args)
|
7111
|
+
end
|
7112
|
+
|
7113
|
+
# Update properties of this object
|
7114
|
+
def update!(**args)
|
7115
|
+
@conversation_model = args[:conversation_model] if args.key?(:conversation_model)
|
7116
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
7117
|
+
end
|
7118
|
+
end
|
7119
|
+
|
7120
|
+
# The request message for ConversationModels.DeployConversationModel
|
7121
|
+
class GoogleCloudDialogflowV2DeployConversationModelRequest
|
7122
|
+
include Google::Apis::Core::Hashable
|
7123
|
+
|
7124
|
+
def initialize(**args)
|
7125
|
+
update!(**args)
|
7126
|
+
end
|
7127
|
+
|
7128
|
+
# Update properties of this object
|
7129
|
+
def update!(**args)
|
7130
|
+
end
|
7131
|
+
end
|
7132
|
+
|
7133
|
+
# The request to detect user's intent.
|
7134
|
+
class GoogleCloudDialogflowV2DetectIntentRequest
|
7135
|
+
include Google::Apis::Core::Hashable
|
7136
|
+
|
7137
|
+
# The natural language speech audio to be processed. This field should be
|
7138
|
+
# populated iff `query_input` is set to an input audio config. A single request
|
7139
|
+
# can contain up to 1 minute of speech audio data.
|
7140
|
+
# Corresponds to the JSON property `inputAudio`
|
7141
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
7142
|
+
# @return [String]
|
7143
|
+
attr_accessor :input_audio
|
7144
|
+
|
7145
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
7146
|
+
# If this audio config is supplied in a request, it overrides all existing text-
|
7147
|
+
# to-speech settings applied to the agent.
|
7148
|
+
# Corresponds to the JSON property `outputAudioConfig`
|
7149
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
|
7150
|
+
attr_accessor :output_audio_config
|
7151
|
+
|
7152
|
+
# Mask for output_audio_config indicating which settings in this request-level
|
7153
|
+
# config should override speech synthesizer settings defined at agent-level. If
|
7154
|
+
# unspecified or empty, output_audio_config replaces the agent-level config in
|
7155
|
+
# its entirety.
|
7156
|
+
# Corresponds to the JSON property `outputAudioConfigMask`
|
7157
|
+
# @return [String]
|
7158
|
+
attr_accessor :output_audio_config_mask
|
7159
|
+
|
7160
|
+
# Represents the query input. It can contain either: 1. An audio config which
|
7161
|
+
# instructs the speech recognizer how to process the speech audio. 2. A
|
7162
|
+
# conversational query in the form of text,. 3. An event that specifies which
|
7163
|
+
# intent to trigger.
|
7164
|
+
# Corresponds to the JSON property `queryInput`
|
7165
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput]
|
7166
|
+
attr_accessor :query_input
|
7167
|
+
|
7168
|
+
# Represents the parameters of the conversational query.
|
7169
|
+
# Corresponds to the JSON property `queryParams`
|
7170
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters]
|
7171
|
+
attr_accessor :query_params
|
7172
|
+
|
7173
|
+
def initialize(**args)
|
7174
|
+
update!(**args)
|
7175
|
+
end
|
7176
|
+
|
7177
|
+
# Update properties of this object
|
7178
|
+
def update!(**args)
|
7179
|
+
@input_audio = args[:input_audio] if args.key?(:input_audio)
|
7180
|
+
@output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
|
7181
|
+
@output_audio_config_mask = args[:output_audio_config_mask] if args.key?(:output_audio_config_mask)
|
7182
|
+
@query_input = args[:query_input] if args.key?(:query_input)
|
7183
|
+
@query_params = args[:query_params] if args.key?(:query_params)
|
7184
|
+
end
|
7185
|
+
end
|
7186
|
+
|
7187
|
+
# The message returned from the DetectIntent method.
|
7188
|
+
class GoogleCloudDialogflowV2DetectIntentResponse
|
7189
|
+
include Google::Apis::Core::Hashable
|
7190
|
+
|
7191
|
+
# The audio data bytes encoded as specified in the request. Note: The output
|
7192
|
+
# audio is generated based on the values of default platform text responses
|
7193
|
+
# found in the `query_result.fulfillment_messages` field. If multiple default
|
7194
|
+
# text responses exist, they will be concatenated when generating audio. If no
|
7195
|
+
# default platform text responses exist, the generated audio content will be
|
7196
|
+
# empty. In some scenarios, multiple output audio fields may be present in the
|
7197
|
+
# response structure. In these cases, only the top-most-level audio output has
|
7198
|
+
# content.
|
7199
|
+
# Corresponds to the JSON property `outputAudio`
|
7200
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
7201
|
+
# @return [String]
|
7202
|
+
attr_accessor :output_audio
|
7203
|
+
|
7204
|
+
# Instructs the speech synthesizer on how to generate the output audio content.
|
7205
|
+
# If this audio config is supplied in a request, it overrides all existing text-
|
7206
|
+
# to-speech settings applied to the agent.
|
7207
|
+
# Corresponds to the JSON property `outputAudioConfig`
|
7208
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
|
6723
7209
|
attr_accessor :output_audio_config
|
6724
7210
|
|
6725
7211
|
# Represents the result of conversational query or event processing.
|
@@ -6832,6 +7318,11 @@ module Google
|
|
6832
7318
|
# @return [String]
|
6833
7319
|
attr_accessor :raw_content
|
6834
7320
|
|
7321
|
+
# Output only. The current state of the document.
|
7322
|
+
# Corresponds to the JSON property `state`
|
7323
|
+
# @return [String]
|
7324
|
+
attr_accessor :state
|
7325
|
+
|
6835
7326
|
def initialize(**args)
|
6836
7327
|
update!(**args)
|
6837
7328
|
end
|
@@ -6847,6 +7338,7 @@ module Google
|
|
6847
7338
|
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
6848
7339
|
@name = args[:name] if args.key?(:name)
|
6849
7340
|
@raw_content = args[:raw_content] if args.key?(:raw_content)
|
7341
|
+
@state = args[:state] if args.key?(:state)
|
6850
7342
|
end
|
6851
7343
|
end
|
6852
7344
|
|
@@ -7154,6 +7646,95 @@ module Google
|
|
7154
7646
|
end
|
7155
7647
|
end
|
7156
7648
|
|
7649
|
+
# The configuration for model evaluation.
|
7650
|
+
class GoogleCloudDialogflowV2EvaluationConfig
|
7651
|
+
include Google::Apis::Core::Hashable
|
7652
|
+
|
7653
|
+
# Required. Datasets used for evaluation.
|
7654
|
+
# Corresponds to the JSON property `datasets`
|
7655
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputDataset>]
|
7656
|
+
attr_accessor :datasets
|
7657
|
+
|
7658
|
+
# Smart compose specific configuration for evaluation job.
|
7659
|
+
# Corresponds to the JSON property `smartComposeConfig`
|
7660
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig]
|
7661
|
+
attr_accessor :smart_compose_config
|
7662
|
+
|
7663
|
+
# Smart reply specific configuration for evaluation job.
|
7664
|
+
# Corresponds to the JSON property `smartReplyConfig`
|
7665
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig]
|
7666
|
+
attr_accessor :smart_reply_config
|
7667
|
+
|
7668
|
+
def initialize(**args)
|
7669
|
+
update!(**args)
|
7670
|
+
end
|
7671
|
+
|
7672
|
+
# Update properties of this object
|
7673
|
+
def update!(**args)
|
7674
|
+
@datasets = args[:datasets] if args.key?(:datasets)
|
7675
|
+
@smart_compose_config = args[:smart_compose_config] if args.key?(:smart_compose_config)
|
7676
|
+
@smart_reply_config = args[:smart_reply_config] if args.key?(:smart_reply_config)
|
7677
|
+
end
|
7678
|
+
end
|
7679
|
+
|
7680
|
+
# Smart compose specific configuration for evaluation job.
|
7681
|
+
class GoogleCloudDialogflowV2EvaluationConfigSmartComposeConfig
|
7682
|
+
include Google::Apis::Core::Hashable
|
7683
|
+
|
7684
|
+
# The allowlist document resource name. Format: `projects//knowledgeBases//
|
7685
|
+
# documents/`. Only used for smart compose model.
|
7686
|
+
# Corresponds to the JSON property `allowlistDocument`
|
7687
|
+
# @return [String]
|
7688
|
+
attr_accessor :allowlist_document
|
7689
|
+
|
7690
|
+
# Required. The model to be evaluated can return multiple results with
|
7691
|
+
# confidence score on each query. These results will be sorted by the descending
|
7692
|
+
# order of the scores and we only keep the first max_result_count results as the
|
7693
|
+
# final results to evaluate.
|
7694
|
+
# Corresponds to the JSON property `maxResultCount`
|
7695
|
+
# @return [Fixnum]
|
7696
|
+
attr_accessor :max_result_count
|
7697
|
+
|
7698
|
+
def initialize(**args)
|
7699
|
+
update!(**args)
|
7700
|
+
end
|
7701
|
+
|
7702
|
+
# Update properties of this object
|
7703
|
+
def update!(**args)
|
7704
|
+
@allowlist_document = args[:allowlist_document] if args.key?(:allowlist_document)
|
7705
|
+
@max_result_count = args[:max_result_count] if args.key?(:max_result_count)
|
7706
|
+
end
|
7707
|
+
end
|
7708
|
+
|
7709
|
+
# Smart reply specific configuration for evaluation job.
|
7710
|
+
class GoogleCloudDialogflowV2EvaluationConfigSmartReplyConfig
|
7711
|
+
include Google::Apis::Core::Hashable
|
7712
|
+
|
7713
|
+
# The allowlist document resource name. Format: `projects//knowledgeBases//
|
7714
|
+
# documents/`. Only used for smart reply model.
|
7715
|
+
# Corresponds to the JSON property `allowlistDocument`
|
7716
|
+
# @return [String]
|
7717
|
+
attr_accessor :allowlist_document
|
7718
|
+
|
7719
|
+
# Required. The model to be evaluated can return multiple results with
|
7720
|
+
# confidence score on each query. These results will be sorted by the descending
|
7721
|
+
# order of the scores and we only keep the first max_result_count results as the
|
7722
|
+
# final results to evaluate.
|
7723
|
+
# Corresponds to the JSON property `maxResultCount`
|
7724
|
+
# @return [Fixnum]
|
7725
|
+
attr_accessor :max_result_count
|
7726
|
+
|
7727
|
+
def initialize(**args)
|
7728
|
+
update!(**args)
|
7729
|
+
end
|
7730
|
+
|
7731
|
+
# Update properties of this object
|
7732
|
+
def update!(**args)
|
7733
|
+
@allowlist_document = args[:allowlist_document] if args.key?(:allowlist_document)
|
7734
|
+
@max_result_count = args[:max_result_count] if args.key?(:max_result_count)
|
7735
|
+
end
|
7736
|
+
end
|
7737
|
+
|
7157
7738
|
# Events allow for matching intents by event name instead of the natural
|
7158
7739
|
# language input. For instance, input `` can trigger a personalized welcome
|
7159
7740
|
# response. The parameter `name` may be used by the agent in the response: `"
|
@@ -7164,7 +7745,9 @@ module Google
|
|
7164
7745
|
# Required. The language of this query. See [Language Support](https://cloud.
|
7165
7746
|
# google.com/dialogflow/docs/reference/language) for a list of the currently
|
7166
7747
|
# supported language codes. Note that queries in the same session do not
|
7167
|
-
# necessarily need to specify the same language.
|
7748
|
+
# necessarily need to specify the same language. This field is ignored when used
|
7749
|
+
# in the context of a WebhookResponse.followup_event_input field, because the
|
7750
|
+
# language was already defined in the originating detect intent request.
|
7168
7751
|
# Corresponds to the JSON property `languageCode`
|
7169
7752
|
# @return [String]
|
7170
7753
|
attr_accessor :language_code
|
@@ -7205,7 +7788,11 @@ module Google
|
|
7205
7788
|
|
7206
7789
|
# Required. The [Google Cloud Storage](https://cloud.google.com/storage/docs/)
|
7207
7790
|
# URI to export the agent to. The format of this URI must be `gs:///`. If left
|
7208
|
-
# unspecified, the serialized agent is returned inline.
|
7791
|
+
# unspecified, the serialized agent is returned inline. Dialogflow performs a
|
7792
|
+
# write operation for the Cloud Storage object on the caller's behalf, so your
|
7793
|
+
# request authentication must have write permissions for the object. For more
|
7794
|
+
# information, see [Dialogflow access control](https://cloud.google.com/
|
7795
|
+
# dialogflow/cx/docs/concept/access-control#storage).
|
7209
7796
|
# Corresponds to the JSON property `agentUri`
|
7210
7797
|
# @return [String]
|
7211
7798
|
attr_accessor :agent_uri
|
@@ -7281,6 +7868,25 @@ module Google
|
|
7281
7868
|
end
|
7282
7869
|
end
|
7283
7870
|
|
7871
|
+
# Metadata related to the Export Data Operations (e.g. ExportDocument).
|
7872
|
+
class GoogleCloudDialogflowV2ExportOperationMetadata
|
7873
|
+
include Google::Apis::Core::Hashable
|
7874
|
+
|
7875
|
+
# Google Cloud Storage location for the output.
|
7876
|
+
# Corresponds to the JSON property `exportedGcsDestination`
|
7877
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GcsDestination]
|
7878
|
+
attr_accessor :exported_gcs_destination
|
7879
|
+
|
7880
|
+
def initialize(**args)
|
7881
|
+
update!(**args)
|
7882
|
+
end
|
7883
|
+
|
7884
|
+
# Update properties of this object
|
7885
|
+
def update!(**args)
|
7886
|
+
@exported_gcs_destination = args[:exported_gcs_destination] if args.key?(:exported_gcs_destination)
|
7887
|
+
end
|
7888
|
+
end
|
7889
|
+
|
7284
7890
|
# Represents answer from "frequently asked questions".
|
7285
7891
|
class GoogleCloudDialogflowV2FaqAnswer
|
7286
7892
|
include Google::Apis::Core::Hashable
|
@@ -8030,7 +8636,11 @@ module Google
|
|
8030
8636
|
attr_accessor :agent_content
|
8031
8637
|
|
8032
8638
|
# The URI to a Google Cloud Storage file containing the agent to import. Note:
|
8033
|
-
# The URI must start with "gs://".
|
8639
|
+
# The URI must start with "gs://". Dialogflow performs a read operation for the
|
8640
|
+
# Cloud Storage object on the caller's behalf, so your request authentication
|
8641
|
+
# must have read permissions for the object. For more information, see [
|
8642
|
+
# Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/
|
8643
|
+
# access-control#storage).
|
8034
8644
|
# Corresponds to the JSON property `agentUri`
|
8035
8645
|
# @return [String]
|
8036
8646
|
attr_accessor :agent_uri
|
@@ -8046,6 +8656,87 @@ module Google
|
|
8046
8656
|
end
|
8047
8657
|
end
|
8048
8658
|
|
8659
|
+
# Metadata for a ConversationDatasets.ImportConversationData operation.
|
8660
|
+
class GoogleCloudDialogflowV2ImportConversationDataOperationMetadata
|
8661
|
+
include Google::Apis::Core::Hashable
|
8662
|
+
|
8663
|
+
# The resource name of the imported conversation dataset. Format: `projects//
|
8664
|
+
# locations//conversationDatasets/`
|
8665
|
+
# Corresponds to the JSON property `conversationDataset`
|
8666
|
+
# @return [String]
|
8667
|
+
attr_accessor :conversation_dataset
|
8668
|
+
|
8669
|
+
# Timestamp when import conversation data request was created. The time is
|
8670
|
+
# measured on server side.
|
8671
|
+
# Corresponds to the JSON property `createTime`
|
8672
|
+
# @return [String]
|
8673
|
+
attr_accessor :create_time
|
8674
|
+
|
8675
|
+
# Partial failures are failures that don't fail the whole long running operation,
|
8676
|
+
# e.g. single files that couldn't be read.
|
8677
|
+
# Corresponds to the JSON property `partialFailures`
|
8678
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleRpcStatus>]
|
8679
|
+
attr_accessor :partial_failures
|
8680
|
+
|
8681
|
+
def initialize(**args)
|
8682
|
+
update!(**args)
|
8683
|
+
end
|
8684
|
+
|
8685
|
+
# Update properties of this object
|
8686
|
+
def update!(**args)
|
8687
|
+
@conversation_dataset = args[:conversation_dataset] if args.key?(:conversation_dataset)
|
8688
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
8689
|
+
@partial_failures = args[:partial_failures] if args.key?(:partial_failures)
|
8690
|
+
end
|
8691
|
+
end
|
8692
|
+
|
8693
|
+
# Response used for ConversationDatasets.ImportConversationData long running
|
8694
|
+
# operation.
|
8695
|
+
class GoogleCloudDialogflowV2ImportConversationDataOperationResponse
|
8696
|
+
include Google::Apis::Core::Hashable
|
8697
|
+
|
8698
|
+
# The resource name of the imported conversation dataset. Format: `projects//
|
8699
|
+
# locations//conversationDatasets/`
|
8700
|
+
# Corresponds to the JSON property `conversationDataset`
|
8701
|
+
# @return [String]
|
8702
|
+
attr_accessor :conversation_dataset
|
8703
|
+
|
8704
|
+
# Number of conversations imported successfully.
|
8705
|
+
# Corresponds to the JSON property `importCount`
|
8706
|
+
# @return [Fixnum]
|
8707
|
+
attr_accessor :import_count
|
8708
|
+
|
8709
|
+
def initialize(**args)
|
8710
|
+
update!(**args)
|
8711
|
+
end
|
8712
|
+
|
8713
|
+
# Update properties of this object
|
8714
|
+
def update!(**args)
|
8715
|
+
@conversation_dataset = args[:conversation_dataset] if args.key?(:conversation_dataset)
|
8716
|
+
@import_count = args[:import_count] if args.key?(:import_count)
|
8717
|
+
end
|
8718
|
+
end
|
8719
|
+
|
8720
|
+
# The request message for ConversationDatasets.ImportConversationData.
|
8721
|
+
class GoogleCloudDialogflowV2ImportConversationDataRequest
|
8722
|
+
include Google::Apis::Core::Hashable
|
8723
|
+
|
8724
|
+
# Represents the configuration of importing a set of conversation files in
|
8725
|
+
# Google Cloud Storage.
|
8726
|
+
# Corresponds to the JSON property `inputConfig`
|
8727
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputConfig]
|
8728
|
+
attr_accessor :input_config
|
8729
|
+
|
8730
|
+
def initialize(**args)
|
8731
|
+
update!(**args)
|
8732
|
+
end
|
8733
|
+
|
8734
|
+
# Update properties of this object
|
8735
|
+
def update!(**args)
|
8736
|
+
@input_config = args[:input_config] if args.key?(:input_config)
|
8737
|
+
end
|
8738
|
+
end
|
8739
|
+
|
8049
8740
|
# The template used for importing documents.
|
8050
8741
|
class GoogleCloudDialogflowV2ImportDocumentTemplate
|
8051
8742
|
include Google::Apis::Core::Hashable
|
@@ -8240,6 +8931,46 @@ module Google
|
|
8240
8931
|
end
|
8241
8932
|
end
|
8242
8933
|
|
8934
|
+
# Represents the configuration of importing a set of conversation files in
|
8935
|
+
# Google Cloud Storage.
|
8936
|
+
class GoogleCloudDialogflowV2InputConfig
|
8937
|
+
include Google::Apis::Core::Hashable
|
8938
|
+
|
8939
|
+
# Google Cloud Storage location for the inputs.
|
8940
|
+
# Corresponds to the JSON property `gcsSource`
|
8941
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GcsSources]
|
8942
|
+
attr_accessor :gcs_source
|
8943
|
+
|
8944
|
+
def initialize(**args)
|
8945
|
+
update!(**args)
|
8946
|
+
end
|
8947
|
+
|
8948
|
+
# Update properties of this object
|
8949
|
+
def update!(**args)
|
8950
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
8951
|
+
end
|
8952
|
+
end
|
8953
|
+
|
8954
|
+
# InputDataset used to create model or do evaluation. NextID:5
|
8955
|
+
class GoogleCloudDialogflowV2InputDataset
|
8956
|
+
include Google::Apis::Core::Hashable
|
8957
|
+
|
8958
|
+
# Required. ConversationDataset resource name. Format: `projects//locations//
|
8959
|
+
# conversationDatasets/`
|
8960
|
+
# Corresponds to the JSON property `dataset`
|
8961
|
+
# @return [String]
|
8962
|
+
attr_accessor :dataset
|
8963
|
+
|
8964
|
+
def initialize(**args)
|
8965
|
+
update!(**args)
|
8966
|
+
end
|
8967
|
+
|
8968
|
+
# Update properties of this object
|
8969
|
+
def update!(**args)
|
8970
|
+
@dataset = args[:dataset] if args.key?(:dataset)
|
8971
|
+
end
|
8972
|
+
end
|
8973
|
+
|
8243
8974
|
# An intent categorizes an end-user's intention for one conversation turn. For
|
8244
8975
|
# each agent, you define many intents, where your combined intents can handle a
|
8245
8976
|
# complete conversation. When an end-user writes or says something, referred to
|
@@ -9533,11 +10264,98 @@ module Google
|
|
9533
10264
|
# @return [String]
|
9534
10265
|
attr_accessor :language_code
|
9535
10266
|
|
9536
|
-
# The knowledge base resource name. The name must be empty when creating a
|
9537
|
-
# knowledge base. Format: `projects//locations//knowledgeBases/`.
|
9538
|
-
# Corresponds to the JSON property `name`
|
10267
|
+
# The knowledge base resource name. The name must be empty when creating a
|
10268
|
+
# knowledge base. Format: `projects//locations//knowledgeBases/`.
|
10269
|
+
# Corresponds to the JSON property `name`
|
10270
|
+
# @return [String]
|
10271
|
+
attr_accessor :name
|
10272
|
+
|
10273
|
+
def initialize(**args)
|
10274
|
+
update!(**args)
|
10275
|
+
end
|
10276
|
+
|
10277
|
+
# Update properties of this object
|
10278
|
+
def update!(**args)
|
10279
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
10280
|
+
@language_code = args[:language_code] if args.key?(:language_code)
|
10281
|
+
@name = args[:name] if args.key?(:name)
|
10282
|
+
end
|
10283
|
+
end
|
10284
|
+
|
10285
|
+
# Metadata in google::longrunning::Operation for Knowledge operations.
|
10286
|
+
class GoogleCloudDialogflowV2KnowledgeOperationMetadata
|
10287
|
+
include Google::Apis::Core::Hashable
|
10288
|
+
|
10289
|
+
# Metadata related to the Export Data Operations (e.g. ExportDocument).
|
10290
|
+
# Corresponds to the JSON property `exportOperationMetadata`
|
10291
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ExportOperationMetadata]
|
10292
|
+
attr_accessor :export_operation_metadata
|
10293
|
+
|
10294
|
+
# The name of the knowledge base interacted with during the operation.
|
10295
|
+
# Corresponds to the JSON property `knowledgeBase`
|
10296
|
+
# @return [String]
|
10297
|
+
attr_accessor :knowledge_base
|
10298
|
+
|
10299
|
+
# Output only. The current state of this operation.
|
10300
|
+
# Corresponds to the JSON property `state`
|
10301
|
+
# @return [String]
|
10302
|
+
attr_accessor :state
|
10303
|
+
|
10304
|
+
def initialize(**args)
|
10305
|
+
update!(**args)
|
10306
|
+
end
|
10307
|
+
|
10308
|
+
# Update properties of this object
|
10309
|
+
def update!(**args)
|
10310
|
+
@export_operation_metadata = args[:export_operation_metadata] if args.key?(:export_operation_metadata)
|
10311
|
+
@knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
|
10312
|
+
@state = args[:state] if args.key?(:state)
|
10313
|
+
end
|
10314
|
+
end
|
10315
|
+
|
10316
|
+
# Response message for AnswerRecords.ListAnswerRecords.
|
10317
|
+
class GoogleCloudDialogflowV2ListAnswerRecordsResponse
|
10318
|
+
include Google::Apis::Core::Hashable
|
10319
|
+
|
10320
|
+
# The list of answer records.
|
10321
|
+
# Corresponds to the JSON property `answerRecords`
|
10322
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnswerRecord>]
|
10323
|
+
attr_accessor :answer_records
|
10324
|
+
|
10325
|
+
# A token to retrieve next page of results. Or empty if there are no more
|
10326
|
+
# results. Pass this value in the ListAnswerRecordsRequest.page_token field in
|
10327
|
+
# the subsequent call to `ListAnswerRecords` method to retrieve the next page of
|
10328
|
+
# results.
|
10329
|
+
# Corresponds to the JSON property `nextPageToken`
|
10330
|
+
# @return [String]
|
10331
|
+
attr_accessor :next_page_token
|
10332
|
+
|
10333
|
+
def initialize(**args)
|
10334
|
+
update!(**args)
|
10335
|
+
end
|
10336
|
+
|
10337
|
+
# Update properties of this object
|
10338
|
+
def update!(**args)
|
10339
|
+
@answer_records = args[:answer_records] if args.key?(:answer_records)
|
10340
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
10341
|
+
end
|
10342
|
+
end
|
10343
|
+
|
10344
|
+
# The response message for Contexts.ListContexts.
|
10345
|
+
class GoogleCloudDialogflowV2ListContextsResponse
|
10346
|
+
include Google::Apis::Core::Hashable
|
10347
|
+
|
10348
|
+
# The list of contexts. There will be a maximum number of items returned based
|
10349
|
+
# on the page_size field in the request.
|
10350
|
+
# Corresponds to the JSON property `contexts`
|
10351
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>]
|
10352
|
+
attr_accessor :contexts
|
10353
|
+
|
10354
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
10355
|
+
# results in the list.
|
10356
|
+
# Corresponds to the JSON property `nextPageToken`
|
9539
10357
|
# @return [String]
|
9540
|
-
attr_accessor :
|
10358
|
+
attr_accessor :next_page_token
|
9541
10359
|
|
9542
10360
|
def initialize(**args)
|
9543
10361
|
update!(**args)
|
@@ -9545,25 +10363,25 @@ module Google
|
|
9545
10363
|
|
9546
10364
|
# Update properties of this object
|
9547
10365
|
def update!(**args)
|
9548
|
-
@
|
9549
|
-
@
|
9550
|
-
@name = args[:name] if args.key?(:name)
|
10366
|
+
@contexts = args[:contexts] if args.key?(:contexts)
|
10367
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
9551
10368
|
end
|
9552
10369
|
end
|
9553
10370
|
|
9554
|
-
#
|
9555
|
-
class
|
10371
|
+
# The response message for ConversationDatasets.ListConversationDatasets.
|
10372
|
+
class GoogleCloudDialogflowV2ListConversationDatasetsResponse
|
9556
10373
|
include Google::Apis::Core::Hashable
|
9557
10374
|
|
9558
|
-
# The
|
9559
|
-
# Corresponds to the JSON property `
|
9560
|
-
# @return [
|
9561
|
-
attr_accessor :
|
10375
|
+
# The list of datasets to return.
|
10376
|
+
# Corresponds to the JSON property `conversationDatasets`
|
10377
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationDataset>]
|
10378
|
+
attr_accessor :conversation_datasets
|
9562
10379
|
|
9563
|
-
#
|
9564
|
-
#
|
10380
|
+
# The token to use to retrieve the next page of results, or empty if there are
|
10381
|
+
# no more results in the list.
|
10382
|
+
# Corresponds to the JSON property `nextPageToken`
|
9565
10383
|
# @return [String]
|
9566
|
-
attr_accessor :
|
10384
|
+
attr_accessor :next_page_token
|
9567
10385
|
|
9568
10386
|
def initialize(**args)
|
9569
10387
|
update!(**args)
|
@@ -9571,24 +10389,22 @@ module Google
|
|
9571
10389
|
|
9572
10390
|
# Update properties of this object
|
9573
10391
|
def update!(**args)
|
9574
|
-
@
|
9575
|
-
@
|
10392
|
+
@conversation_datasets = args[:conversation_datasets] if args.key?(:conversation_datasets)
|
10393
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
9576
10394
|
end
|
9577
10395
|
end
|
9578
10396
|
|
9579
|
-
#
|
9580
|
-
class
|
10397
|
+
# The response message for ConversationModels.ListConversationModelEvaluations
|
10398
|
+
class GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse
|
9581
10399
|
include Google::Apis::Core::Hashable
|
9582
10400
|
|
9583
|
-
# The list of
|
9584
|
-
# Corresponds to the JSON property `
|
9585
|
-
# @return [Array<Google::Apis::DialogflowV2::
|
9586
|
-
attr_accessor :
|
10401
|
+
# The list of evaluations to return.
|
10402
|
+
# Corresponds to the JSON property `conversationModelEvaluations`
|
10403
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationModelEvaluation>]
|
10404
|
+
attr_accessor :conversation_model_evaluations
|
9587
10405
|
|
9588
|
-
#
|
9589
|
-
# results
|
9590
|
-
# the subsequent call to `ListAnswerRecords` method to retrieve the next page of
|
9591
|
-
# results.
|
10406
|
+
# Token to retrieve the next page of results, or empty if there are no more
|
10407
|
+
# results in the list.
|
9592
10408
|
# Corresponds to the JSON property `nextPageToken`
|
9593
10409
|
# @return [String]
|
9594
10410
|
attr_accessor :next_page_token
|
@@ -9599,20 +10415,19 @@ module Google
|
|
9599
10415
|
|
9600
10416
|
# Update properties of this object
|
9601
10417
|
def update!(**args)
|
9602
|
-
@
|
10418
|
+
@conversation_model_evaluations = args[:conversation_model_evaluations] if args.key?(:conversation_model_evaluations)
|
9603
10419
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
9604
10420
|
end
|
9605
10421
|
end
|
9606
10422
|
|
9607
|
-
# The response message for
|
9608
|
-
class
|
10423
|
+
# The response message for ConversationModels.ListConversationModels
|
10424
|
+
class GoogleCloudDialogflowV2ListConversationModelsResponse
|
9609
10425
|
include Google::Apis::Core::Hashable
|
9610
10426
|
|
9611
|
-
# The list of
|
9612
|
-
#
|
9613
|
-
#
|
9614
|
-
|
9615
|
-
attr_accessor :contexts
|
10427
|
+
# The list of models to return.
|
10428
|
+
# Corresponds to the JSON property `conversationModels`
|
10429
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationModel>]
|
10430
|
+
attr_accessor :conversation_models
|
9616
10431
|
|
9617
10432
|
# Token to retrieve the next page of results, or empty if there are no more
|
9618
10433
|
# results in the list.
|
@@ -9626,7 +10441,7 @@ module Google
|
|
9626
10441
|
|
9627
10442
|
# Update properties of this object
|
9628
10443
|
def update!(**args)
|
9629
|
-
@
|
10444
|
+
@conversation_models = args[:conversation_models] if args.key?(:conversation_models)
|
9630
10445
|
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
9631
10446
|
end
|
9632
10447
|
end
|
@@ -10062,10 +10877,12 @@ module Google
|
|
10062
10877
|
attr_accessor :message_format
|
10063
10878
|
|
10064
10879
|
# Name of the Pub/Sub topic to publish conversation events like
|
10065
|
-
# CONVERSATION_STARTED as serialized ConversationEvent protos.
|
10066
|
-
#
|
10067
|
-
# conversation or you grant `service-@gcp-sa-dialogflow.iam.
|
10068
|
-
# the `Dialogflow Service Agent` role in the topic project.
|
10880
|
+
# CONVERSATION_STARTED as serialized ConversationEvent protos. For telephony
|
10881
|
+
# integration to receive notification, make sure either this topic is in the
|
10882
|
+
# same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.
|
10883
|
+
# gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project.
|
10884
|
+
# For chat integration to receive notification, make sure API caller has been
|
10885
|
+
# granted the `Dialogflow Service Agent` role for the topic. Format: `projects//
|
10069
10886
|
# locations//topics/`.
|
10070
10887
|
# Corresponds to the JSON property `topic`
|
10071
10888
|
# @return [String]
|
@@ -10562,7 +11379,11 @@ module Google
|
|
10562
11379
|
attr_accessor :agent_content
|
10563
11380
|
|
10564
11381
|
# The URI to a Google Cloud Storage file containing the agent to restore. Note:
|
10565
|
-
# The URI must start with "gs://".
|
11382
|
+
# The URI must start with "gs://". Dialogflow performs a read operation for the
|
11383
|
+
# Cloud Storage object on the caller's behalf, so your request authentication
|
11384
|
+
# must have read permissions for the object. For more information, see [
|
11385
|
+
# Dialogflow access control](https://cloud.google.com/dialogflow/cx/docs/concept/
|
11386
|
+
# access-control#storage).
|
10566
11387
|
# Corresponds to the JSON property `agentUri`
|
10567
11388
|
# @return [String]
|
10568
11389
|
attr_accessor :agent_uri
|
@@ -10723,6 +11544,71 @@ module Google
|
|
10723
11544
|
end
|
10724
11545
|
end
|
10725
11546
|
|
11547
|
+
# Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.
|
11548
|
+
class GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata
|
11549
|
+
include Google::Apis::Core::Hashable
|
11550
|
+
|
11551
|
+
# The resource name of the conversation profile. Format: `projects//locations//
|
11552
|
+
# conversationProfiles/`
|
11553
|
+
# Corresponds to the JSON property `conversationProfile`
|
11554
|
+
# @return [String]
|
11555
|
+
attr_accessor :conversation_profile
|
11556
|
+
|
11557
|
+
# Timestamp whe the request was created. The time is measured on server side.
|
11558
|
+
# Corresponds to the JSON property `createTime`
|
11559
|
+
# @return [String]
|
11560
|
+
attr_accessor :create_time
|
11561
|
+
|
11562
|
+
# Required. The participant role to add or update the suggestion feature config.
|
11563
|
+
# Only HUMAN_AGENT or END_USER can be used.
|
11564
|
+
# Corresponds to the JSON property `participantRole`
|
11565
|
+
# @return [String]
|
11566
|
+
attr_accessor :participant_role
|
11567
|
+
|
11568
|
+
# Required. The type of the suggestion feature to add or update.
|
11569
|
+
# Corresponds to the JSON property `suggestionFeatureType`
|
11570
|
+
# @return [String]
|
11571
|
+
attr_accessor :suggestion_feature_type
|
11572
|
+
|
11573
|
+
def initialize(**args)
|
11574
|
+
update!(**args)
|
11575
|
+
end
|
11576
|
+
|
11577
|
+
# Update properties of this object
|
11578
|
+
def update!(**args)
|
11579
|
+
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
11580
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
11581
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
11582
|
+
@suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
|
11583
|
+
end
|
11584
|
+
end
|
11585
|
+
|
11586
|
+
# The request message for ConversationProfiles.SetSuggestionFeature.
|
11587
|
+
class GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest
|
11588
|
+
include Google::Apis::Core::Hashable
|
11589
|
+
|
11590
|
+
# Required. The participant role to add or update the suggestion feature config.
|
11591
|
+
# Only HUMAN_AGENT or END_USER can be used.
|
11592
|
+
# Corresponds to the JSON property `participantRole`
|
11593
|
+
# @return [String]
|
11594
|
+
attr_accessor :participant_role
|
11595
|
+
|
11596
|
+
# Config for suggestion features.
|
11597
|
+
# Corresponds to the JSON property `suggestionFeatureConfig`
|
11598
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig]
|
11599
|
+
attr_accessor :suggestion_feature_config
|
11600
|
+
|
11601
|
+
def initialize(**args)
|
11602
|
+
update!(**args)
|
11603
|
+
end
|
11604
|
+
|
11605
|
+
# Update properties of this object
|
11606
|
+
def update!(**args)
|
11607
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
11608
|
+
@suggestion_feature_config = args[:suggestion_feature_config] if args.key?(:suggestion_feature_config)
|
11609
|
+
end
|
11610
|
+
end
|
11611
|
+
|
10726
11612
|
# Represents a smart reply answer.
|
10727
11613
|
class GoogleCloudDialogflowV2SmartReplyAnswer
|
10728
11614
|
include Google::Apis::Core::Hashable
|
@@ -10757,6 +11643,87 @@ module Google
|
|
10757
11643
|
end
|
10758
11644
|
end
|
10759
11645
|
|
11646
|
+
# The evaluation metrics for smart reply model.
|
11647
|
+
class GoogleCloudDialogflowV2SmartReplyMetrics
|
11648
|
+
include Google::Apis::Core::Hashable
|
11649
|
+
|
11650
|
+
# Percentage of target participant messages in the evaluation dataset for which
|
11651
|
+
# similar messages have appeared at least once in the allowlist. Should be [0, 1]
|
11652
|
+
# .
|
11653
|
+
# Corresponds to the JSON property `allowlistCoverage`
|
11654
|
+
# @return [Float]
|
11655
|
+
attr_accessor :allowlist_coverage
|
11656
|
+
|
11657
|
+
# Total number of conversations used to generate this metric.
|
11658
|
+
# Corresponds to the JSON property `conversationCount`
|
11659
|
+
# @return [Fixnum]
|
11660
|
+
attr_accessor :conversation_count
|
11661
|
+
|
11662
|
+
# Metrics of top n smart replies, sorted by TopNMetric.n.
|
11663
|
+
# Corresponds to the JSON property `topNMetrics`
|
11664
|
+
# @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics>]
|
11665
|
+
attr_accessor :top_n_metrics
|
11666
|
+
|
11667
|
+
def initialize(**args)
|
11668
|
+
update!(**args)
|
11669
|
+
end
|
11670
|
+
|
11671
|
+
# Update properties of this object
|
11672
|
+
def update!(**args)
|
11673
|
+
@allowlist_coverage = args[:allowlist_coverage] if args.key?(:allowlist_coverage)
|
11674
|
+
@conversation_count = args[:conversation_count] if args.key?(:conversation_count)
|
11675
|
+
@top_n_metrics = args[:top_n_metrics] if args.key?(:top_n_metrics)
|
11676
|
+
end
|
11677
|
+
end
|
11678
|
+
|
11679
|
+
# Evaluation metrics when retrieving `n` smart replies with the model.
|
11680
|
+
class GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
|
11681
|
+
include Google::Apis::Core::Hashable
|
11682
|
+
|
11683
|
+
# Number of retrieved smart replies. For example, when `n` is 3, this evaluation
|
11684
|
+
# contains metrics for when Dialogflow retrieves 3 smart replies with the model.
|
11685
|
+
# Corresponds to the JSON property `n`
|
11686
|
+
# @return [Fixnum]
|
11687
|
+
attr_accessor :n
|
11688
|
+
|
11689
|
+
# Defined as `number of queries whose top n smart replies have at least one
|
11690
|
+
# similar (token match similarity above the defined threshold) reply as the real
|
11691
|
+
# reply` divided by `number of queries with at least one smart reply`. Value
|
11692
|
+
# ranges from 0.0 to 1.0 inclusive.
|
11693
|
+
# Corresponds to the JSON property `recall`
|
11694
|
+
# @return [Float]
|
11695
|
+
attr_accessor :recall
|
11696
|
+
|
11697
|
+
def initialize(**args)
|
11698
|
+
update!(**args)
|
11699
|
+
end
|
11700
|
+
|
11701
|
+
# Update properties of this object
|
11702
|
+
def update!(**args)
|
11703
|
+
@n = args[:n] if args.key?(:n)
|
11704
|
+
@recall = args[:recall] if args.key?(:recall)
|
11705
|
+
end
|
11706
|
+
end
|
11707
|
+
|
11708
|
+
# Metadata for smart reply models.
|
11709
|
+
class GoogleCloudDialogflowV2SmartReplyModelMetadata
|
11710
|
+
include Google::Apis::Core::Hashable
|
11711
|
+
|
11712
|
+
# Optional. Type of the smart reply model. If not provided, model_type is used.
|
11713
|
+
# Corresponds to the JSON property `trainingModelType`
|
11714
|
+
# @return [String]
|
11715
|
+
attr_accessor :training_model_type
|
11716
|
+
|
11717
|
+
def initialize(**args)
|
11718
|
+
update!(**args)
|
11719
|
+
end
|
11720
|
+
|
11721
|
+
# Update properties of this object
|
11722
|
+
def update!(**args)
|
11723
|
+
@training_model_type = args[:training_model_type] if args.key?(:training_model_type)
|
11724
|
+
end
|
11725
|
+
end
|
11726
|
+
|
10760
11727
|
# Hints for the speech recognizer to help with recognition in a specific
|
10761
11728
|
# conversation state.
|
10762
11729
|
class GoogleCloudDialogflowV2SpeechContext
|
@@ -11231,6 +12198,46 @@ module Google
|
|
11231
12198
|
end
|
11232
12199
|
end
|
11233
12200
|
|
12201
|
+
# Metadata for a ConversationModels.UndeployConversationModel operation.
|
12202
|
+
class GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
|
12203
|
+
include Google::Apis::Core::Hashable
|
12204
|
+
|
12205
|
+
# The resource name of the conversation model. Format: `projects//
|
12206
|
+
# conversationModels/`
|
12207
|
+
# Corresponds to the JSON property `conversationModel`
|
12208
|
+
# @return [String]
|
12209
|
+
attr_accessor :conversation_model
|
12210
|
+
|
12211
|
+
# Timestamp when the request to undeploy conversation model was submitted. The
|
12212
|
+
# time is measured on server side.
|
12213
|
+
# Corresponds to the JSON property `createTime`
|
12214
|
+
# @return [String]
|
12215
|
+
attr_accessor :create_time
|
12216
|
+
|
12217
|
+
def initialize(**args)
|
12218
|
+
update!(**args)
|
12219
|
+
end
|
12220
|
+
|
12221
|
+
# Update properties of this object
|
12222
|
+
def update!(**args)
|
12223
|
+
@conversation_model = args[:conversation_model] if args.key?(:conversation_model)
|
12224
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
12225
|
+
end
|
12226
|
+
end
|
12227
|
+
|
12228
|
+
# The request message for ConversationModels.UndeployConversationModel
|
12229
|
+
class GoogleCloudDialogflowV2UndeployConversationModelRequest
|
12230
|
+
include Google::Apis::Core::Hashable
|
12231
|
+
|
12232
|
+
def initialize(**args)
|
12233
|
+
update!(**args)
|
12234
|
+
end
|
12235
|
+
|
12236
|
+
# Update properties of this object
|
12237
|
+
def update!(**args)
|
12238
|
+
end
|
12239
|
+
end
|
12240
|
+
|
11234
12241
|
# Represents a single validation error.
|
11235
12242
|
class GoogleCloudDialogflowV2ValidationError
|
11236
12243
|
include Google::Apis::Core::Hashable
|
@@ -11619,6 +12626,45 @@ module Google
|
|
11619
12626
|
end
|
11620
12627
|
end
|
11621
12628
|
|
12629
|
+
# Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
|
12630
|
+
class GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata
|
12631
|
+
include Google::Apis::Core::Hashable
|
12632
|
+
|
12633
|
+
# The resource name of the conversation profile. Format: `projects//locations//
|
12634
|
+
# conversationProfiles/`
|
12635
|
+
# Corresponds to the JSON property `conversationProfile`
|
12636
|
+
# @return [String]
|
12637
|
+
attr_accessor :conversation_profile
|
12638
|
+
|
12639
|
+
# Timestamp whe the request was created. The time is measured on server side.
|
12640
|
+
# Corresponds to the JSON property `createTime`
|
12641
|
+
# @return [String]
|
12642
|
+
attr_accessor :create_time
|
12643
|
+
|
12644
|
+
# Required. The participant role to remove the suggestion feature config. Only
|
12645
|
+
# HUMAN_AGENT or END_USER can be used.
|
12646
|
+
# Corresponds to the JSON property `participantRole`
|
12647
|
+
# @return [String]
|
12648
|
+
attr_accessor :participant_role
|
12649
|
+
|
12650
|
+
# Required. The type of the suggestion feature to remove.
|
12651
|
+
# Corresponds to the JSON property `suggestionFeatureType`
|
12652
|
+
# @return [String]
|
12653
|
+
attr_accessor :suggestion_feature_type
|
12654
|
+
|
12655
|
+
def initialize(**args)
|
12656
|
+
update!(**args)
|
12657
|
+
end
|
12658
|
+
|
12659
|
+
# Update properties of this object
|
12660
|
+
def update!(**args)
|
12661
|
+
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
12662
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
12663
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
12664
|
+
@suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
|
12665
|
+
end
|
12666
|
+
end
|
12667
|
+
|
11622
12668
|
# Dialogflow contexts are similar to natural language context. If a person says
|
11623
12669
|
# to you "they are orange", you need context in order to understand what "they"
|
11624
12670
|
# is referring to. Similarly, for Dialogflow to handle an end-user expression
|
@@ -11828,7 +12874,9 @@ module Google
|
|
11828
12874
|
# Required. The language of this query. See [Language Support](https://cloud.
|
11829
12875
|
# google.com/dialogflow/docs/reference/language) for a list of the currently
|
11830
12876
|
# supported language codes. Note that queries in the same session do not
|
11831
|
-
# necessarily need to specify the same language.
|
12877
|
+
# necessarily need to specify the same language. This field is ignored when used
|
12878
|
+
# in the context of a WebhookResponse.followup_event_input field, because the
|
12879
|
+
# language was already defined in the originating detect intent request.
|
11832
12880
|
# Corresponds to the JSON property `languageCode`
|
11833
12881
|
# @return [String]
|
11834
12882
|
attr_accessor :language_code
|
@@ -11890,6 +12938,25 @@ module Google
|
|
11890
12938
|
end
|
11891
12939
|
end
|
11892
12940
|
|
12941
|
+
# Metadata related to the Export Data Operations (e.g. ExportDocument).
|
12942
|
+
class GoogleCloudDialogflowV2beta1ExportOperationMetadata
|
12943
|
+
include Google::Apis::Core::Hashable
|
12944
|
+
|
12945
|
+
# Google Cloud Storage location for the output.
|
12946
|
+
# Corresponds to the JSON property `exportedGcsDestination`
|
12947
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GcsDestination]
|
12948
|
+
attr_accessor :exported_gcs_destination
|
12949
|
+
|
12950
|
+
def initialize(**args)
|
12951
|
+
update!(**args)
|
12952
|
+
end
|
12953
|
+
|
12954
|
+
# Update properties of this object
|
12955
|
+
def update!(**args)
|
12956
|
+
@exported_gcs_destination = args[:exported_gcs_destination] if args.key?(:exported_gcs_destination)
|
12957
|
+
end
|
12958
|
+
end
|
12959
|
+
|
11893
12960
|
# Represents answer from "frequently asked questions".
|
11894
12961
|
class GoogleCloudDialogflowV2beta1FaqAnswer
|
11895
12962
|
include Google::Apis::Core::Hashable
|
@@ -11944,6 +13011,27 @@ module Google
|
|
11944
13011
|
end
|
11945
13012
|
end
|
11946
13013
|
|
13014
|
+
# Google Cloud Storage location for the output.
|
13015
|
+
class GoogleCloudDialogflowV2beta1GcsDestination
|
13016
|
+
include Google::Apis::Core::Hashable
|
13017
|
+
|
13018
|
+
# Required. The Google Cloud Storage URIs for the output. A URI is of the form:
|
13019
|
+
# gs://bucket/object-prefix-or-name Whether a prefix or name is used depends on
|
13020
|
+
# the use case. The requesting user must have "write-permission" to the bucket.
|
13021
|
+
# Corresponds to the JSON property `uri`
|
13022
|
+
# @return [String]
|
13023
|
+
attr_accessor :uri
|
13024
|
+
|
13025
|
+
def initialize(**args)
|
13026
|
+
update!(**args)
|
13027
|
+
end
|
13028
|
+
|
13029
|
+
# Update properties of this object
|
13030
|
+
def update!(**args)
|
13031
|
+
@uri = args[:uri] if args.key?(:uri)
|
13032
|
+
end
|
13033
|
+
end
|
13034
|
+
|
11947
13035
|
# Output only. Represents a notification sent to Pub/Sub subscribers for agent
|
11948
13036
|
# assistant events in a specific conversation.
|
11949
13037
|
class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
|
@@ -13803,6 +14891,11 @@ module Google
|
|
13803
14891
|
class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
|
13804
14892
|
include Google::Apis::Core::Hashable
|
13805
14893
|
|
14894
|
+
# Metadata related to the Export Data Operations (e.g. ExportDocument).
|
14895
|
+
# Corresponds to the JSON property `exportOperationMetadata`
|
14896
|
+
# @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ExportOperationMetadata]
|
14897
|
+
attr_accessor :export_operation_metadata
|
14898
|
+
|
13806
14899
|
# The name of the knowledge base interacted with during the operation.
|
13807
14900
|
# Corresponds to the JSON property `knowledgeBase`
|
13808
14901
|
# @return [String]
|
@@ -13819,6 +14912,7 @@ module Google
|
|
13819
14912
|
|
13820
14913
|
# Update properties of this object
|
13821
14914
|
def update!(**args)
|
14915
|
+
@export_operation_metadata = args[:export_operation_metadata] if args.key?(:export_operation_metadata)
|
13822
14916
|
@knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
|
13823
14917
|
@state = args[:state] if args.key?(:state)
|
13824
14918
|
end
|
@@ -14236,6 +15330,45 @@ module Google
|
|
14236
15330
|
end
|
14237
15331
|
end
|
14238
15332
|
|
15333
|
+
# Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.
|
15334
|
+
class GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata
|
15335
|
+
include Google::Apis::Core::Hashable
|
15336
|
+
|
15337
|
+
# The resource name of the conversation profile. Format: `projects//locations//
|
15338
|
+
# conversationProfiles/`
|
15339
|
+
# Corresponds to the JSON property `conversationProfile`
|
15340
|
+
# @return [String]
|
15341
|
+
attr_accessor :conversation_profile
|
15342
|
+
|
15343
|
+
# Timestamp whe the request was created. The time is measured on server side.
|
15344
|
+
# Corresponds to the JSON property `createTime`
|
15345
|
+
# @return [String]
|
15346
|
+
attr_accessor :create_time
|
15347
|
+
|
15348
|
+
# Required. The participant role to add or update the suggestion feature config.
|
15349
|
+
# Only HUMAN_AGENT or END_USER can be used.
|
15350
|
+
# Corresponds to the JSON property `participantRole`
|
15351
|
+
# @return [String]
|
15352
|
+
attr_accessor :participant_role
|
15353
|
+
|
15354
|
+
# Required. The type of the suggestion feature to add or update.
|
15355
|
+
# Corresponds to the JSON property `suggestionFeatureType`
|
15356
|
+
# @return [String]
|
15357
|
+
attr_accessor :suggestion_feature_type
|
15358
|
+
|
15359
|
+
def initialize(**args)
|
15360
|
+
update!(**args)
|
15361
|
+
end
|
15362
|
+
|
15363
|
+
# Update properties of this object
|
15364
|
+
def update!(**args)
|
15365
|
+
@conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
|
15366
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
15367
|
+
@participant_role = args[:participant_role] if args.key?(:participant_role)
|
15368
|
+
@suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
|
15369
|
+
end
|
15370
|
+
end
|
15371
|
+
|
14239
15372
|
# Represents a smart reply answer.
|
14240
15373
|
class GoogleCloudDialogflowV2beta1SmartReplyAnswer
|
14241
15374
|
include Google::Apis::Core::Hashable
|