google-apis-dialogflow_v2 0.29.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.
@@ -5985,6 +5985,26 @@ module Google
5985
5985
  end
5986
5986
  end
5987
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
+
5988
6008
  # Represents the parameters of human assist query.
5989
6009
  class GoogleCloudDialogflowV2AssistQueryParameters
5990
6010
  include Google::Apis::Core::Hashable
@@ -6331,6 +6351,71 @@ module Google
6331
6351
  end
6332
6352
  end
6333
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
+
6334
6419
  # The request message for Conversations.CompleteConversation.
6335
6420
  class GoogleCloudDialogflowV2CompleteConversationRequest
6336
6421
  include Google::Apis::Core::Hashable
@@ -6474,6 +6559,66 @@ module Google
6474
6559
  end
6475
6560
  end
6476
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
+
6477
6622
  # Represents a notification sent to Pub/Sub subscribers for conversation
6478
6623
  # lifecycle events.
6479
6624
  class GoogleCloudDialogflowV2ConversationEvent
@@ -6518,6 +6663,136 @@ module Google
6518
6663
  end
6519
6664
  end
6520
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
+
6521
6796
  # Represents a phone number for telephony integration. It allows for connecting
6522
6797
  # a particular conversation over telephony.
6523
6798
  class GoogleCloudDialogflowV2ConversationPhoneNumber
@@ -6609,17 +6884,201 @@ module Google
6609
6884
  # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SpeechToTextConfig]
6610
6885
  attr_accessor :stt_config
6611
6886
 
6612
- # The time zone of this conversational profile from the [time zone database](
6613
- # https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
6614
- # Defaults to America/New_York.
6615
- # Corresponds to the JSON property `timeZone`
6887
+ # The time zone of this conversational profile from the [time zone database](
6888
+ # https://www.iana.org/time-zones), e.g., America/New_York, Europe/Paris.
6889
+ # Defaults to America/New_York.
6890
+ # Corresponds to the JSON property `timeZone`
6891
+ # @return [String]
6892
+ attr_accessor :time_zone
6893
+
6894
+ # Output only. Update time of the conversation profile.
6895
+ # Corresponds to the JSON property `updateTime`
6896
+ # @return [String]
6897
+ attr_accessor :update_time
6898
+
6899
+ def initialize(**args)
6900
+ update!(**args)
6901
+ end
6902
+
6903
+ # Update properties of this object
6904
+ def update!(**args)
6905
+ @automated_agent_config = args[:automated_agent_config] if args.key?(:automated_agent_config)
6906
+ @create_time = args[:create_time] if args.key?(:create_time)
6907
+ @display_name = args[:display_name] if args.key?(:display_name)
6908
+ @human_agent_assistant_config = args[:human_agent_assistant_config] if args.key?(:human_agent_assistant_config)
6909
+ @human_agent_handoff_config = args[:human_agent_handoff_config] if args.key?(:human_agent_handoff_config)
6910
+ @language_code = args[:language_code] if args.key?(:language_code)
6911
+ @logging_config = args[:logging_config] if args.key?(:logging_config)
6912
+ @name = args[:name] if args.key?(:name)
6913
+ @new_message_event_notification_config = args[:new_message_event_notification_config] if args.key?(:new_message_event_notification_config)
6914
+ @notification_config = args[:notification_config] if args.key?(:notification_config)
6915
+ @security_settings = args[:security_settings] if args.key?(:security_settings)
6916
+ @stt_config = args[:stt_config] if args.key?(:stt_config)
6917
+ @time_zone = args[:time_zone] if args.key?(:time_zone)
6918
+ @update_time = args[:update_time] if args.key?(:update_time)
6919
+ end
6920
+ end
6921
+
6922
+ # Metadata for ConversationDatasets.
6923
+ class GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
6924
+ include Google::Apis::Core::Hashable
6925
+
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`
6942
+ # @return [String]
6943
+ attr_accessor :conversation_model
6944
+
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
6950
+
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`
6954
+ # @return [String]
6955
+ attr_accessor :create_time
6956
+
6957
+ # State of CreateConversationModel operation.
6958
+ # Corresponds to the JSON property `state`
6959
+ # @return [String]
6960
+ attr_accessor :state
6961
+
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
6983
+
6984
+ def initialize(**args)
6985
+ update!(**args)
6986
+ end
6987
+
6988
+ # Update properties of this object
6989
+ def update!(**args)
6990
+ @conversation_model_evaluation = args[:conversation_model_evaluation] if args.key?(:conversation_model_evaluation)
6991
+ end
6992
+ end
6993
+
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`
6616
7074
  # @return [String]
6617
- attr_accessor :time_zone
7075
+ attr_accessor :conversation_model
6618
7076
 
6619
- # Output only. Update time of the conversation profile.
6620
- # Corresponds to the JSON property `updateTime`
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`
6621
7080
  # @return [String]
6622
- attr_accessor :update_time
7081
+ attr_accessor :create_time
6623
7082
 
6624
7083
  def initialize(**args)
6625
7084
  update!(**args)
@@ -6627,20 +7086,21 @@ module Google
6627
7086
 
6628
7087
  # Update properties of this object
6629
7088
  def update!(**args)
6630
- @automated_agent_config = args[:automated_agent_config] if args.key?(:automated_agent_config)
7089
+ @conversation_model = args[:conversation_model] if args.key?(:conversation_model)
6631
7090
  @create_time = args[:create_time] if args.key?(:create_time)
6632
- @display_name = args[:display_name] if args.key?(:display_name)
6633
- @human_agent_assistant_config = args[:human_agent_assistant_config] if args.key?(:human_agent_assistant_config)
6634
- @human_agent_handoff_config = args[:human_agent_handoff_config] if args.key?(:human_agent_handoff_config)
6635
- @language_code = args[:language_code] if args.key?(:language_code)
6636
- @logging_config = args[:logging_config] if args.key?(:logging_config)
6637
- @name = args[:name] if args.key?(:name)
6638
- @new_message_event_notification_config = args[:new_message_event_notification_config] if args.key?(:new_message_event_notification_config)
6639
- @notification_config = args[:notification_config] if args.key?(:notification_config)
6640
- @security_settings = args[:security_settings] if args.key?(:security_settings)
6641
- @stt_config = args[:stt_config] if args.key?(:stt_config)
6642
- @time_zone = args[:time_zone] if args.key?(:time_zone)
6643
- @update_time = args[:update_time] if args.key?(:update_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)
6644
7104
  end
6645
7105
  end
6646
7106
 
@@ -6832,6 +7292,11 @@ module Google
6832
7292
  # @return [String]
6833
7293
  attr_accessor :raw_content
6834
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
+
6835
7300
  def initialize(**args)
6836
7301
  update!(**args)
6837
7302
  end
@@ -6847,6 +7312,7 @@ module Google
6847
7312
  @mime_type = args[:mime_type] if args.key?(:mime_type)
6848
7313
  @name = args[:name] if args.key?(:name)
6849
7314
  @raw_content = args[:raw_content] if args.key?(:raw_content)
7315
+ @state = args[:state] if args.key?(:state)
6850
7316
  end
6851
7317
  end
6852
7318
 
@@ -7154,6 +7620,95 @@ module Google
7154
7620
  end
7155
7621
  end
7156
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
+
7157
7712
  # Events allow for matching intents by event name instead of the natural
7158
7713
  # language input. For instance, input `` can trigger a personalized welcome
7159
7714
  # response. The parameter `name` may be used by the agent in the response: `"
@@ -7281,6 +7836,25 @@ module Google
7281
7836
  end
7282
7837
  end
7283
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
+
7284
7858
  # Represents answer from "frequently asked questions".
7285
7859
  class GoogleCloudDialogflowV2FaqAnswer
7286
7860
  include Google::Apis::Core::Hashable
@@ -8046,6 +8620,87 @@ module Google
8046
8620
  end
8047
8621
  end
8048
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
+
8049
8704
  # The template used for importing documents.
8050
8705
  class GoogleCloudDialogflowV2ImportDocumentTemplate
8051
8706
  include Google::Apis::Core::Hashable
@@ -8240,6 +8895,46 @@ module Google
8240
8895
  end
8241
8896
  end
8242
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
+
8243
8938
  # An intent categorizes an end-user's intention for one conversation turn. For
8244
8939
  # each agent, you define many intents, where your combined intents can handle a
8245
8940
  # complete conversation. When an end-user writes or says something, referred to
@@ -9533,11 +10228,98 @@ module Google
9533
10228
  # @return [String]
9534
10229
  attr_accessor :language_code
9535
10230
 
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`
10231
+ # The knowledge base resource name. The name must be empty when creating a
10232
+ # knowledge base. Format: `projects//locations//knowledgeBases/`.
10233
+ # Corresponds to the JSON property `name`
10234
+ # @return [String]
10235
+ attr_accessor :name
10236
+
10237
+ def initialize(**args)
10238
+ update!(**args)
10239
+ end
10240
+
10241
+ # Update properties of this object
10242
+ def update!(**args)
10243
+ @display_name = args[:display_name] if args.key?(:display_name)
10244
+ @language_code = args[:language_code] if args.key?(:language_code)
10245
+ @name = args[:name] if args.key?(:name)
10246
+ end
10247
+ end
10248
+
10249
+ # Metadata in google::longrunning::Operation for Knowledge operations.
10250
+ class GoogleCloudDialogflowV2KnowledgeOperationMetadata
10251
+ include Google::Apis::Core::Hashable
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
+
10263
+ # Output only. The current state of this operation.
10264
+ # Corresponds to the JSON property `state`
10265
+ # @return [String]
10266
+ attr_accessor :state
10267
+
10268
+ def initialize(**args)
10269
+ update!(**args)
10270
+ end
10271
+
10272
+ # Update properties of this object
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)
10276
+ @state = args[:state] if args.key?(:state)
10277
+ end
10278
+ end
10279
+
10280
+ # Response message for AnswerRecords.ListAnswerRecords.
10281
+ class GoogleCloudDialogflowV2ListAnswerRecordsResponse
10282
+ include Google::Apis::Core::Hashable
10283
+
10284
+ # The list of answer records.
10285
+ # Corresponds to the JSON property `answerRecords`
10286
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnswerRecord>]
10287
+ attr_accessor :answer_records
10288
+
10289
+ # A token to retrieve next page of results. Or empty if there are no more
10290
+ # results. Pass this value in the ListAnswerRecordsRequest.page_token field in
10291
+ # the subsequent call to `ListAnswerRecords` method to retrieve the next page of
10292
+ # results.
10293
+ # Corresponds to the JSON property `nextPageToken`
10294
+ # @return [String]
10295
+ attr_accessor :next_page_token
10296
+
10297
+ def initialize(**args)
10298
+ update!(**args)
10299
+ end
10300
+
10301
+ # Update properties of this object
10302
+ def update!(**args)
10303
+ @answer_records = args[:answer_records] if args.key?(:answer_records)
10304
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
10305
+ end
10306
+ end
10307
+
10308
+ # The response message for Contexts.ListContexts.
10309
+ class GoogleCloudDialogflowV2ListContextsResponse
10310
+ include Google::Apis::Core::Hashable
10311
+
10312
+ # The list of contexts. There will be a maximum number of items returned based
10313
+ # on the page_size field in the request.
10314
+ # Corresponds to the JSON property `contexts`
10315
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>]
10316
+ attr_accessor :contexts
10317
+
10318
+ # Token to retrieve the next page of results, or empty if there are no more
10319
+ # results in the list.
10320
+ # Corresponds to the JSON property `nextPageToken`
9539
10321
  # @return [String]
9540
- attr_accessor :name
10322
+ attr_accessor :next_page_token
9541
10323
 
9542
10324
  def initialize(**args)
9543
10325
  update!(**args)
@@ -9545,25 +10327,25 @@ module Google
9545
10327
 
9546
10328
  # Update properties of this object
9547
10329
  def update!(**args)
9548
- @display_name = args[:display_name] if args.key?(:display_name)
9549
- @language_code = args[:language_code] if args.key?(:language_code)
9550
- @name = args[:name] if args.key?(:name)
10330
+ @contexts = args[:contexts] if args.key?(:contexts)
10331
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
9551
10332
  end
9552
10333
  end
9553
10334
 
9554
- # Metadata in google::longrunning::Operation for Knowledge operations.
9555
- class GoogleCloudDialogflowV2KnowledgeOperationMetadata
10335
+ # The response message for ConversationDatasets.ListConversationDatasets.
10336
+ class GoogleCloudDialogflowV2ListConversationDatasetsResponse
9556
10337
  include Google::Apis::Core::Hashable
9557
10338
 
9558
- # The name of the knowledge base interacted with during the operation.
9559
- # Corresponds to the JSON property `knowledgeBase`
9560
- # @return [String]
9561
- attr_accessor :knowledge_base
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
9562
10343
 
9563
- # Output only. The current state of this operation.
9564
- # Corresponds to the JSON property `state`
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`
9565
10347
  # @return [String]
9566
- attr_accessor :state
10348
+ attr_accessor :next_page_token
9567
10349
 
9568
10350
  def initialize(**args)
9569
10351
  update!(**args)
@@ -9571,24 +10353,22 @@ module Google
9571
10353
 
9572
10354
  # Update properties of this object
9573
10355
  def update!(**args)
9574
- @knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
9575
- @state = args[:state] if args.key?(:state)
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)
9576
10358
  end
9577
10359
  end
9578
10360
 
9579
- # Response message for AnswerRecords.ListAnswerRecords.
9580
- class GoogleCloudDialogflowV2ListAnswerRecordsResponse
10361
+ # The response message for ConversationModels.ListConversationModelEvaluations
10362
+ class GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse
9581
10363
  include Google::Apis::Core::Hashable
9582
10364
 
9583
- # The list of answer records.
9584
- # Corresponds to the JSON property `answerRecords`
9585
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnswerRecord>]
9586
- attr_accessor :answer_records
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
9587
10369
 
9588
- # A token to retrieve next page of results. Or empty if there are no more
9589
- # results. Pass this value in the ListAnswerRecordsRequest.page_token field in
9590
- # the subsequent call to `ListAnswerRecords` method to retrieve the next page of
9591
- # results.
10370
+ # Token to retrieve the next page of results, or empty if there are no more
10371
+ # results in the list.
9592
10372
  # Corresponds to the JSON property `nextPageToken`
9593
10373
  # @return [String]
9594
10374
  attr_accessor :next_page_token
@@ -9599,20 +10379,19 @@ module Google
9599
10379
 
9600
10380
  # Update properties of this object
9601
10381
  def update!(**args)
9602
- @answer_records = args[:answer_records] if args.key?(:answer_records)
10382
+ @conversation_model_evaluations = args[:conversation_model_evaluations] if args.key?(:conversation_model_evaluations)
9603
10383
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
9604
10384
  end
9605
10385
  end
9606
10386
 
9607
- # The response message for Contexts.ListContexts.
9608
- class GoogleCloudDialogflowV2ListContextsResponse
10387
+ # The response message for ConversationModels.ListConversationModels
10388
+ class GoogleCloudDialogflowV2ListConversationModelsResponse
9609
10389
  include Google::Apis::Core::Hashable
9610
10390
 
9611
- # The list of contexts. There will be a maximum number of items returned based
9612
- # on the page_size field in the request.
9613
- # Corresponds to the JSON property `contexts`
9614
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>]
9615
- attr_accessor :contexts
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
9616
10395
 
9617
10396
  # Token to retrieve the next page of results, or empty if there are no more
9618
10397
  # results in the list.
@@ -9626,7 +10405,7 @@ module Google
9626
10405
 
9627
10406
  # Update properties of this object
9628
10407
  def update!(**args)
9629
- @contexts = args[:contexts] if args.key?(:contexts)
10408
+ @conversation_models = args[:conversation_models] if args.key?(:conversation_models)
9630
10409
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
9631
10410
  end
9632
10411
  end
@@ -10723,6 +11502,71 @@ module Google
10723
11502
  end
10724
11503
  end
10725
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
+
10726
11570
  # Represents a smart reply answer.
10727
11571
  class GoogleCloudDialogflowV2SmartReplyAnswer
10728
11572
  include Google::Apis::Core::Hashable
@@ -10757,6 +11601,87 @@ module Google
10757
11601
  end
10758
11602
  end
10759
11603
 
11604
+ # The evaluation metrics for smart reply model.
11605
+ class GoogleCloudDialogflowV2SmartReplyMetrics
11606
+ include Google::Apis::Core::Hashable
11607
+
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
11624
+
11625
+ def initialize(**args)
11626
+ update!(**args)
11627
+ end
11628
+
11629
+ # Update properties of this object
11630
+ def update!(**args)
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)
11634
+ end
11635
+ end
11636
+
11637
+ # Evaluation metrics when retrieving `n` smart replies with the model.
11638
+ class GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
11639
+ include Google::Apis::Core::Hashable
11640
+
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
11654
+
11655
+ def initialize(**args)
11656
+ update!(**args)
11657
+ end
11658
+
11659
+ # Update properties of this object
11660
+ def update!(**args)
11661
+ @n = args[:n] if args.key?(:n)
11662
+ @recall = args[:recall] if args.key?(:recall)
11663
+ end
11664
+ end
11665
+
11666
+ # Metadata for smart reply models.
11667
+ class GoogleCloudDialogflowV2SmartReplyModelMetadata
11668
+ include Google::Apis::Core::Hashable
11669
+
11670
+ # Optional. Type of the smart reply model. If not provided, model_type is used.
11671
+ # Corresponds to the JSON property `trainingModelType`
11672
+ # @return [String]
11673
+ attr_accessor :training_model_type
11674
+
11675
+ def initialize(**args)
11676
+ update!(**args)
11677
+ end
11678
+
11679
+ # Update properties of this object
11680
+ def update!(**args)
11681
+ @training_model_type = args[:training_model_type] if args.key?(:training_model_type)
11682
+ end
11683
+ end
11684
+
10760
11685
  # Hints for the speech recognizer to help with recognition in a specific
10761
11686
  # conversation state.
10762
11687
  class GoogleCloudDialogflowV2SpeechContext
@@ -11231,6 +12156,46 @@ module Google
11231
12156
  end
11232
12157
  end
11233
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
+
11234
12199
  # Represents a single validation error.
11235
12200
  class GoogleCloudDialogflowV2ValidationError
11236
12201
  include Google::Apis::Core::Hashable
@@ -11619,6 +12584,45 @@ module Google
11619
12584
  end
11620
12585
  end
11621
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
+
11622
12626
  # Dialogflow contexts are similar to natural language context. If a person says
11623
12627
  # to you "they are orange", you need context in order to understand what "they"
11624
12628
  # is referring to. Similarly, for Dialogflow to handle an end-user expression
@@ -11890,6 +12894,25 @@ module Google
11890
12894
  end
11891
12895
  end
11892
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
+
11893
12916
  # Represents answer from "frequently asked questions".
11894
12917
  class GoogleCloudDialogflowV2beta1FaqAnswer
11895
12918
  include Google::Apis::Core::Hashable
@@ -11944,6 +12967,27 @@ module Google
11944
12967
  end
11945
12968
  end
11946
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
+
11947
12991
  # Output only. Represents a notification sent to Pub/Sub subscribers for agent
11948
12992
  # assistant events in a specific conversation.
11949
12993
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
@@ -13803,6 +14847,11 @@ module Google
13803
14847
  class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
13804
14848
  include Google::Apis::Core::Hashable
13805
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
+
13806
14855
  # The name of the knowledge base interacted with during the operation.
13807
14856
  # Corresponds to the JSON property `knowledgeBase`
13808
14857
  # @return [String]
@@ -13819,6 +14868,7 @@ module Google
13819
14868
 
13820
14869
  # Update properties of this object
13821
14870
  def update!(**args)
14871
+ @export_operation_metadata = args[:export_operation_metadata] if args.key?(:export_operation_metadata)
13822
14872
  @knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
13823
14873
  @state = args[:state] if args.key?(:state)
13824
14874
  end
@@ -14236,6 +15286,45 @@ module Google
14236
15286
  end
14237
15287
  end
14238
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
+
14239
15328
  # Represents a smart reply answer.
14240
15329
  class GoogleCloudDialogflowV2beta1SmartReplyAnswer
14241
15330
  include Google::Apis::Core::Hashable