google-apis-dialogflow_v2 0.28.0 → 0.31.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -476,7 +476,7 @@ module Google
476
476
  include Google::Apis::Core::Hashable
477
477
 
478
478
  # Whether to run test cases in TestCasesConfig.test_cases periodically. Default
479
- # false. If set to ture, run once a day.
479
+ # false. If set to true, run once a day.
480
480
  # Corresponds to the JSON property `enableContinuousRun`
481
481
  # @return [Boolean]
482
482
  attr_accessor :enable_continuous_run
@@ -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
@@ -6644,45 +6919,67 @@ module Google
6644
6919
  end
6645
6920
  end
6646
6921
 
6647
- # The request to detect user's intent.
6648
- class GoogleCloudDialogflowV2DetectIntentRequest
6922
+ # Metadata for ConversationDatasets.
6923
+ class GoogleCloudDialogflowV2CreateConversationDatasetOperationMetadata
6649
6924
  include Google::Apis::Core::Hashable
6650
6925
 
6651
- # The natural language speech audio to be processed. This field should be
6652
- # populated iff `query_input` is set to an input audio config. A single request
6653
- # can contain up to 1 minute of speech audio data.
6654
- # Corresponds to the JSON property `inputAudio`
6655
- # NOTE: Values are automatically base64 encoded/decoded in the client library.
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`
6656
6942
  # @return [String]
6657
- attr_accessor :input_audio
6943
+ attr_accessor :conversation_model
6658
6944
 
6659
- # Instructs the speech synthesizer on how to generate the output audio content.
6660
- # If this audio config is supplied in a request, it overrides all existing text-
6661
- # to-speech settings applied to the agent.
6662
- # Corresponds to the JSON property `outputAudioConfig`
6663
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
6664
- attr_accessor :output_audio_config
6945
+ # The resource name of the conversation model. Format: `projects//locations//
6946
+ # conversationModels//evaluations/`
6947
+ # Corresponds to the JSON property `conversationModelEvaluation`
6948
+ # @return [String]
6949
+ attr_accessor :conversation_model_evaluation
6665
6950
 
6666
- # Mask for output_audio_config indicating which settings in this request-level
6667
- # config should override speech synthesizer settings defined at agent-level. If
6668
- # unspecified or empty, output_audio_config replaces the agent-level config in
6669
- # its entirety.
6670
- # Corresponds to the JSON property `outputAudioConfigMask`
6951
+ # Timestamp when the request to create conversation model was submitted. The
6952
+ # time is measured on server side.
6953
+ # Corresponds to the JSON property `createTime`
6671
6954
  # @return [String]
6672
- attr_accessor :output_audio_config_mask
6955
+ attr_accessor :create_time
6673
6956
 
6674
- # Represents the query input. It can contain either: 1. An audio config which
6675
- # instructs the speech recognizer how to process the speech audio. 2. A
6676
- # conversational query in the form of text,. 3. An event that specifies which
6677
- # intent to trigger.
6678
- # Corresponds to the JSON property `queryInput`
6679
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput]
6680
- attr_accessor :query_input
6957
+ # State of CreateConversationModel operation.
6958
+ # Corresponds to the JSON property `state`
6959
+ # @return [String]
6960
+ attr_accessor :state
6681
6961
 
6682
- # Represents the parameters of the conversational query.
6683
- # Corresponds to the JSON property `queryParams`
6684
- # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters]
6685
- attr_accessor :query_params
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
6686
6983
 
6687
6984
  def initialize(**args)
6688
6985
  update!(**args)
@@ -6690,28 +6987,191 @@ module Google
6690
6987
 
6691
6988
  # Update properties of this object
6692
6989
  def update!(**args)
6693
- @input_audio = args[:input_audio] if args.key?(:input_audio)
6694
- @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
6695
- @output_audio_config_mask = args[:output_audio_config_mask] if args.key?(:output_audio_config_mask)
6696
- @query_input = args[:query_input] if args.key?(:query_input)
6697
- @query_params = args[:query_params] if args.key?(:query_params)
6990
+ @conversation_model_evaluation = args[:conversation_model_evaluation] if args.key?(:conversation_model_evaluation)
6698
6991
  end
6699
6992
  end
6700
6993
 
6701
- # The message returned from the DetectIntent method.
6702
- class GoogleCloudDialogflowV2DetectIntentResponse
6994
+ # Metadata for a ConversationModels.CreateConversationModel operation.
6995
+ class GoogleCloudDialogflowV2CreateConversationModelOperationMetadata
6703
6996
  include Google::Apis::Core::Hashable
6704
6997
 
6705
- # The audio data bytes encoded as specified in the request. Note: The output
6706
- # audio is generated based on the values of default platform text responses
6707
- # found in the `query_result.fulfillment_messages` field. If multiple default
6708
- # text responses exist, they will be concatenated when generating audio. If no
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.
6998
+ # The resource name of the conversation model. Format: `projects//
6999
+ # conversationModels/`
7000
+ # Corresponds to the JSON property `conversationModel`
7001
+ # @return [String]
7002
+ attr_accessor :conversation_model
7003
+
7004
+ # Timestamp when the request to create conversation model is submitted. The time
7005
+ # is measured on server side.
7006
+ # Corresponds to the JSON property `createTime`
7007
+ # @return [String]
7008
+ attr_accessor :create_time
7009
+
7010
+ # State of CreateConversationModel operation.
7011
+ # Corresponds to the JSON property `state`
7012
+ # @return [String]
7013
+ attr_accessor :state
7014
+
7015
+ def initialize(**args)
7016
+ update!(**args)
7017
+ end
7018
+
7019
+ # Update properties of this object
7020
+ def update!(**args)
7021
+ @conversation_model = args[:conversation_model] if args.key?(:conversation_model)
7022
+ @create_time = args[:create_time] if args.key?(:create_time)
7023
+ @state = args[:state] if args.key?(:state)
7024
+ end
7025
+ end
7026
+
7027
+ # Metadata for ConversationDatasets.
7028
+ class GoogleCloudDialogflowV2DeleteConversationDatasetOperationMetadata
7029
+ include Google::Apis::Core::Hashable
7030
+
7031
+ def initialize(**args)
7032
+ update!(**args)
7033
+ end
7034
+
7035
+ # Update properties of this object
7036
+ def update!(**args)
7037
+ end
7038
+ end
7039
+
7040
+ # Metadata for a ConversationModels.DeleteConversationModel operation.
7041
+ class GoogleCloudDialogflowV2DeleteConversationModelOperationMetadata
7042
+ include Google::Apis::Core::Hashable
7043
+
7044
+ # The resource name of the conversation model. Format: `projects//
7045
+ # conversationModels/`
7046
+ # Corresponds to the JSON property `conversationModel`
7047
+ # @return [String]
7048
+ attr_accessor :conversation_model
7049
+
7050
+ # Timestamp when delete conversation model request was created. The time is
7051
+ # measured on server side.
7052
+ # Corresponds to the JSON property `createTime`
7053
+ # @return [String]
7054
+ attr_accessor :create_time
7055
+
7056
+ def initialize(**args)
7057
+ update!(**args)
7058
+ end
7059
+
7060
+ # Update properties of this object
7061
+ def update!(**args)
7062
+ @conversation_model = args[:conversation_model] if args.key?(:conversation_model)
7063
+ @create_time = args[:create_time] if args.key?(:create_time)
7064
+ end
7065
+ end
7066
+
7067
+ # Metadata for a ConversationModels.DeployConversationModel operation.
7068
+ class GoogleCloudDialogflowV2DeployConversationModelOperationMetadata
7069
+ include Google::Apis::Core::Hashable
7070
+
7071
+ # The resource name of the conversation model. Format: `projects//
7072
+ # conversationModels/`
7073
+ # Corresponds to the JSON property `conversationModel`
7074
+ # @return [String]
7075
+ attr_accessor :conversation_model
7076
+
7077
+ # Timestamp when request to deploy conversation model was submitted. The time is
7078
+ # measured on server side.
7079
+ # Corresponds to the JSON property `createTime`
7080
+ # @return [String]
7081
+ attr_accessor :create_time
7082
+
7083
+ def initialize(**args)
7084
+ update!(**args)
7085
+ end
7086
+
7087
+ # Update properties of this object
7088
+ def update!(**args)
7089
+ @conversation_model = args[:conversation_model] if args.key?(:conversation_model)
7090
+ @create_time = args[:create_time] if args.key?(:create_time)
7091
+ end
7092
+ end
7093
+
7094
+ # The request message for ConversationModels.DeployConversationModel
7095
+ class GoogleCloudDialogflowV2DeployConversationModelRequest
7096
+ include Google::Apis::Core::Hashable
7097
+
7098
+ def initialize(**args)
7099
+ update!(**args)
7100
+ end
7101
+
7102
+ # Update properties of this object
7103
+ def update!(**args)
7104
+ end
7105
+ end
7106
+
7107
+ # The request to detect user's intent.
7108
+ class GoogleCloudDialogflowV2DetectIntentRequest
7109
+ include Google::Apis::Core::Hashable
7110
+
7111
+ # The natural language speech audio to be processed. This field should be
7112
+ # populated iff `query_input` is set to an input audio config. A single request
7113
+ # can contain up to 1 minute of speech audio data.
7114
+ # Corresponds to the JSON property `inputAudio`
7115
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
7116
+ # @return [String]
7117
+ attr_accessor :input_audio
7118
+
7119
+ # Instructs the speech synthesizer on how to generate the output audio content.
7120
+ # If this audio config is supplied in a request, it overrides all existing text-
7121
+ # to-speech settings applied to the agent.
7122
+ # Corresponds to the JSON property `outputAudioConfig`
7123
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2OutputAudioConfig]
7124
+ attr_accessor :output_audio_config
7125
+
7126
+ # Mask for output_audio_config indicating which settings in this request-level
7127
+ # config should override speech synthesizer settings defined at agent-level. If
7128
+ # unspecified or empty, output_audio_config replaces the agent-level config in
7129
+ # its entirety.
7130
+ # Corresponds to the JSON property `outputAudioConfigMask`
7131
+ # @return [String]
7132
+ attr_accessor :output_audio_config_mask
7133
+
7134
+ # Represents the query input. It can contain either: 1. An audio config which
7135
+ # instructs the speech recognizer how to process the speech audio. 2. A
7136
+ # conversational query in the form of text,. 3. An event that specifies which
7137
+ # intent to trigger.
7138
+ # Corresponds to the JSON property `queryInput`
7139
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryInput]
7140
+ attr_accessor :query_input
7141
+
7142
+ # Represents the parameters of the conversational query.
7143
+ # Corresponds to the JSON property `queryParams`
7144
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2QueryParameters]
7145
+ attr_accessor :query_params
7146
+
7147
+ def initialize(**args)
7148
+ update!(**args)
7149
+ end
7150
+
7151
+ # Update properties of this object
7152
+ def update!(**args)
7153
+ @input_audio = args[:input_audio] if args.key?(:input_audio)
7154
+ @output_audio_config = args[:output_audio_config] if args.key?(:output_audio_config)
7155
+ @output_audio_config_mask = args[:output_audio_config_mask] if args.key?(:output_audio_config_mask)
7156
+ @query_input = args[:query_input] if args.key?(:query_input)
7157
+ @query_params = args[:query_params] if args.key?(:query_params)
7158
+ end
7159
+ end
7160
+
7161
+ # The message returned from the DetectIntent method.
7162
+ class GoogleCloudDialogflowV2DetectIntentResponse
7163
+ include Google::Apis::Core::Hashable
7164
+
7165
+ # The audio data bytes encoded as specified in the request. Note: The output
7166
+ # audio is generated based on the values of default platform text responses
7167
+ # found in the `query_result.fulfillment_messages` field. If multiple default
7168
+ # text responses exist, they will be concatenated when generating audio. If no
7169
+ # default platform text responses exist, the generated audio content will be
7170
+ # empty. In some scenarios, multiple output audio fields may be present in the
7171
+ # response structure. In these cases, only the top-most-level audio output has
7172
+ # content.
7173
+ # Corresponds to the JSON property `outputAudio`
7174
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
6715
7175
  # @return [String]
6716
7176
  attr_accessor :output_audio
6717
7177
 
@@ -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
@@ -7485,6 +8059,27 @@ module Google
7485
8059
  end
7486
8060
  end
7487
8061
 
8062
+ # Google Cloud Storage location for the inputs.
8063
+ class GoogleCloudDialogflowV2GcsSources
8064
+ include Google::Apis::Core::Hashable
8065
+
8066
+ # Required. Google Cloud Storage URIs for the inputs. A URI is of the form: gs://
8067
+ # bucket/object-prefix-or-name Whether a prefix or name is used depends on the
8068
+ # use case.
8069
+ # Corresponds to the JSON property `uris`
8070
+ # @return [Array<String>]
8071
+ attr_accessor :uris
8072
+
8073
+ def initialize(**args)
8074
+ update!(**args)
8075
+ end
8076
+
8077
+ # Update properties of this object
8078
+ def update!(**args)
8079
+ @uris = args[:uris] if args.key?(:uris)
8080
+ end
8081
+ end
8082
+
7488
8083
  # Defines the Human Agent Assist to connect to a conversation.
7489
8084
  class GoogleCloudDialogflowV2HumanAgentAssistantConfig
7490
8085
  include Google::Apis::Core::Hashable
@@ -8025,6 +8620,173 @@ module Google
8025
8620
  end
8026
8621
  end
8027
8622
 
8623
+ # Metadata for a ConversationDatasets.ImportConversationData operation.
8624
+ class GoogleCloudDialogflowV2ImportConversationDataOperationMetadata
8625
+ include Google::Apis::Core::Hashable
8626
+
8627
+ # The resource name of the imported conversation dataset. Format: `projects//
8628
+ # locations//conversationDatasets/`
8629
+ # Corresponds to the JSON property `conversationDataset`
8630
+ # @return [String]
8631
+ attr_accessor :conversation_dataset
8632
+
8633
+ # Timestamp when import conversation data request was created. The time is
8634
+ # measured on server side.
8635
+ # Corresponds to the JSON property `createTime`
8636
+ # @return [String]
8637
+ attr_accessor :create_time
8638
+
8639
+ # Partial failures are failures that don't fail the whole long running operation,
8640
+ # e.g. single files that couldn't be read.
8641
+ # Corresponds to the JSON property `partialFailures`
8642
+ # @return [Array<Google::Apis::DialogflowV2::GoogleRpcStatus>]
8643
+ attr_accessor :partial_failures
8644
+
8645
+ def initialize(**args)
8646
+ update!(**args)
8647
+ end
8648
+
8649
+ # Update properties of this object
8650
+ def update!(**args)
8651
+ @conversation_dataset = args[:conversation_dataset] if args.key?(:conversation_dataset)
8652
+ @create_time = args[:create_time] if args.key?(:create_time)
8653
+ @partial_failures = args[:partial_failures] if args.key?(:partial_failures)
8654
+ end
8655
+ end
8656
+
8657
+ # Response used for ConversationDatasets.ImportConversationData long running
8658
+ # operation.
8659
+ class GoogleCloudDialogflowV2ImportConversationDataOperationResponse
8660
+ include Google::Apis::Core::Hashable
8661
+
8662
+ # The resource name of the imported conversation dataset. Format: `projects//
8663
+ # locations//conversationDatasets/`
8664
+ # Corresponds to the JSON property `conversationDataset`
8665
+ # @return [String]
8666
+ attr_accessor :conversation_dataset
8667
+
8668
+ # Number of conversations imported successfully.
8669
+ # Corresponds to the JSON property `importCount`
8670
+ # @return [Fixnum]
8671
+ attr_accessor :import_count
8672
+
8673
+ def initialize(**args)
8674
+ update!(**args)
8675
+ end
8676
+
8677
+ # Update properties of this object
8678
+ def update!(**args)
8679
+ @conversation_dataset = args[:conversation_dataset] if args.key?(:conversation_dataset)
8680
+ @import_count = args[:import_count] if args.key?(:import_count)
8681
+ end
8682
+ end
8683
+
8684
+ # The request message for ConversationDatasets.ImportConversationData.
8685
+ class GoogleCloudDialogflowV2ImportConversationDataRequest
8686
+ include Google::Apis::Core::Hashable
8687
+
8688
+ # Represents the configuration of importing a set of conversation files in
8689
+ # Google Cloud Storage.
8690
+ # Corresponds to the JSON property `inputConfig`
8691
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2InputConfig]
8692
+ attr_accessor :input_config
8693
+
8694
+ def initialize(**args)
8695
+ update!(**args)
8696
+ end
8697
+
8698
+ # Update properties of this object
8699
+ def update!(**args)
8700
+ @input_config = args[:input_config] if args.key?(:input_config)
8701
+ end
8702
+ end
8703
+
8704
+ # The template used for importing documents.
8705
+ class GoogleCloudDialogflowV2ImportDocumentTemplate
8706
+ include Google::Apis::Core::Hashable
8707
+
8708
+ # Required. The knowledge type of document content.
8709
+ # Corresponds to the JSON property `knowledgeTypes`
8710
+ # @return [Array<String>]
8711
+ attr_accessor :knowledge_types
8712
+
8713
+ # Metadata for the document. The metadata supports arbitrary key-value pairs.
8714
+ # Suggested use cases include storing a document's title, an external URL
8715
+ # distinct from the document's content_uri, etc. The max size of a `key` or a `
8716
+ # value` of the metadata is 1024 bytes.
8717
+ # Corresponds to the JSON property `metadata`
8718
+ # @return [Hash<String,String>]
8719
+ attr_accessor :metadata
8720
+
8721
+ # Required. The MIME type of the document.
8722
+ # Corresponds to the JSON property `mimeType`
8723
+ # @return [String]
8724
+ attr_accessor :mime_type
8725
+
8726
+ def initialize(**args)
8727
+ update!(**args)
8728
+ end
8729
+
8730
+ # Update properties of this object
8731
+ def update!(**args)
8732
+ @knowledge_types = args[:knowledge_types] if args.key?(:knowledge_types)
8733
+ @metadata = args[:metadata] if args.key?(:metadata)
8734
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
8735
+ end
8736
+ end
8737
+
8738
+ # Request message for Documents.ImportDocuments.
8739
+ class GoogleCloudDialogflowV2ImportDocumentsRequest
8740
+ include Google::Apis::Core::Hashable
8741
+
8742
+ # The template used for importing documents.
8743
+ # Corresponds to the JSON property `documentTemplate`
8744
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ImportDocumentTemplate]
8745
+ attr_accessor :document_template
8746
+
8747
+ # Google Cloud Storage location for the inputs.
8748
+ # Corresponds to the JSON property `gcsSource`
8749
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2GcsSources]
8750
+ attr_accessor :gcs_source
8751
+
8752
+ # Whether to import custom metadata from Google Cloud Storage. Only valid when
8753
+ # the document source is Google Cloud Storage URI.
8754
+ # Corresponds to the JSON property `importGcsCustomMetadata`
8755
+ # @return [Boolean]
8756
+ attr_accessor :import_gcs_custom_metadata
8757
+ alias_method :import_gcs_custom_metadata?, :import_gcs_custom_metadata
8758
+
8759
+ def initialize(**args)
8760
+ update!(**args)
8761
+ end
8762
+
8763
+ # Update properties of this object
8764
+ def update!(**args)
8765
+ @document_template = args[:document_template] if args.key?(:document_template)
8766
+ @gcs_source = args[:gcs_source] if args.key?(:gcs_source)
8767
+ @import_gcs_custom_metadata = args[:import_gcs_custom_metadata] if args.key?(:import_gcs_custom_metadata)
8768
+ end
8769
+ end
8770
+
8771
+ # Response message for Documents.ImportDocuments.
8772
+ class GoogleCloudDialogflowV2ImportDocumentsResponse
8773
+ include Google::Apis::Core::Hashable
8774
+
8775
+ # Includes details about skipped documents or any other warnings.
8776
+ # Corresponds to the JSON property `warnings`
8777
+ # @return [Array<Google::Apis::DialogflowV2::GoogleRpcStatus>]
8778
+ attr_accessor :warnings
8779
+
8780
+ def initialize(**args)
8781
+ update!(**args)
8782
+ end
8783
+
8784
+ # Update properties of this object
8785
+ def update!(**args)
8786
+ @warnings = args[:warnings] if args.key?(:warnings)
8787
+ end
8788
+ end
8789
+
8028
8790
  # Instructs the speech recognizer how to process the audio content.
8029
8791
  class GoogleCloudDialogflowV2InputAudioConfig
8030
8792
  include Google::Apis::Core::Hashable
@@ -8133,6 +8895,46 @@ module Google
8133
8895
  end
8134
8896
  end
8135
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
+
8136
8938
  # An intent categorizes an end-user's intention for one conversation turn. For
8137
8939
  # each agent, you define many intents, where your combined intents can handle a
8138
8940
  # complete conversation. When an end-user writes or says something, referred to
@@ -9426,11 +10228,98 @@ module Google
9426
10228
  # @return [String]
9427
10229
  attr_accessor :language_code
9428
10230
 
9429
- # The knowledge base resource name. The name must be empty when creating a
9430
- # knowledge base. Format: `projects//locations//knowledgeBases/`.
9431
- # 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`
9432
10321
  # @return [String]
9433
- attr_accessor :name
10322
+ attr_accessor :next_page_token
9434
10323
 
9435
10324
  def initialize(**args)
9436
10325
  update!(**args)
@@ -9438,20 +10327,25 @@ module Google
9438
10327
 
9439
10328
  # Update properties of this object
9440
10329
  def update!(**args)
9441
- @display_name = args[:display_name] if args.key?(:display_name)
9442
- @language_code = args[:language_code] if args.key?(:language_code)
9443
- @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)
9444
10332
  end
9445
10333
  end
9446
10334
 
9447
- # Metadata in google::longrunning::Operation for Knowledge operations.
9448
- class GoogleCloudDialogflowV2KnowledgeOperationMetadata
10335
+ # The response message for ConversationDatasets.ListConversationDatasets.
10336
+ class GoogleCloudDialogflowV2ListConversationDatasetsResponse
9449
10337
  include Google::Apis::Core::Hashable
9450
10338
 
9451
- # Output only. The current state of this operation.
9452
- # Corresponds to the JSON property `state`
10339
+ # The list of datasets to return.
10340
+ # Corresponds to the JSON property `conversationDatasets`
10341
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2ConversationDataset>]
10342
+ attr_accessor :conversation_datasets
10343
+
10344
+ # The token to use to retrieve the next page of results, or empty if there are
10345
+ # no more results in the list.
10346
+ # Corresponds to the JSON property `nextPageToken`
9453
10347
  # @return [String]
9454
- attr_accessor :state
10348
+ attr_accessor :next_page_token
9455
10349
 
9456
10350
  def initialize(**args)
9457
10351
  update!(**args)
@@ -9459,23 +10353,22 @@ module Google
9459
10353
 
9460
10354
  # Update properties of this object
9461
10355
  def update!(**args)
9462
- @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)
9463
10358
  end
9464
10359
  end
9465
10360
 
9466
- # Response message for AnswerRecords.ListAnswerRecords.
9467
- class GoogleCloudDialogflowV2ListAnswerRecordsResponse
10361
+ # The response message for ConversationModels.ListConversationModelEvaluations
10362
+ class GoogleCloudDialogflowV2ListConversationModelEvaluationsResponse
9468
10363
  include Google::Apis::Core::Hashable
9469
10364
 
9470
- # The list of answer records.
9471
- # Corresponds to the JSON property `answerRecords`
9472
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2AnswerRecord>]
9473
- 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
9474
10369
 
9475
- # A token to retrieve next page of results. Or empty if there are no more
9476
- # results. Pass this value in the ListAnswerRecordsRequest.page_token field in
9477
- # the subsequent call to `ListAnswerRecords` method to retrieve the next page of
9478
- # results.
10370
+ # Token to retrieve the next page of results, or empty if there are no more
10371
+ # results in the list.
9479
10372
  # Corresponds to the JSON property `nextPageToken`
9480
10373
  # @return [String]
9481
10374
  attr_accessor :next_page_token
@@ -9486,20 +10379,19 @@ module Google
9486
10379
 
9487
10380
  # Update properties of this object
9488
10381
  def update!(**args)
9489
- @answer_records = args[:answer_records] if args.key?(:answer_records)
10382
+ @conversation_model_evaluations = args[:conversation_model_evaluations] if args.key?(:conversation_model_evaluations)
9490
10383
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
9491
10384
  end
9492
10385
  end
9493
10386
 
9494
- # The response message for Contexts.ListContexts.
9495
- class GoogleCloudDialogflowV2ListContextsResponse
10387
+ # The response message for ConversationModels.ListConversationModels
10388
+ class GoogleCloudDialogflowV2ListConversationModelsResponse
9496
10389
  include Google::Apis::Core::Hashable
9497
10390
 
9498
- # The list of contexts. There will be a maximum number of items returned based
9499
- # on the page_size field in the request.
9500
- # Corresponds to the JSON property `contexts`
9501
- # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context>]
9502
- 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
9503
10395
 
9504
10396
  # Token to retrieve the next page of results, or empty if there are no more
9505
10397
  # results in the list.
@@ -9513,7 +10405,7 @@ module Google
9513
10405
 
9514
10406
  # Update properties of this object
9515
10407
  def update!(**args)
9516
- @contexts = args[:contexts] if args.key?(:contexts)
10408
+ @conversation_models = args[:conversation_models] if args.key?(:conversation_models)
9517
10409
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
9518
10410
  end
9519
10411
  end
@@ -9949,10 +10841,12 @@ module Google
9949
10841
  attr_accessor :message_format
9950
10842
 
9951
10843
  # Name of the Pub/Sub topic to publish conversation events like
9952
- # CONVERSATION_STARTED as serialized ConversationEvent protos. Notification
9953
- # works for phone calls, if this topic either is in the same project as the
9954
- # conversation or you grant `service-@gcp-sa-dialogflow.iam.gserviceaccount.com`
9955
- # the `Dialogflow Service Agent` role in the topic project. Format: `projects//
10844
+ # CONVERSATION_STARTED as serialized ConversationEvent protos. For telephony
10845
+ # integration to receive notification, make sure either this topic is in the
10846
+ # same project as the conversation or you grant `service-@gcp-sa-dialogflow.iam.
10847
+ # gserviceaccount.com` the `Dialogflow Service Agent` role in the topic project.
10848
+ # For chat integration to receive notification, make sure API caller has been
10849
+ # granted the `Dialogflow Service Agent` role for the topic. Format: `projects//
9956
10850
  # locations//topics/`.
9957
10851
  # Corresponds to the JSON property `topic`
9958
10852
  # @return [String]
@@ -10610,6 +11504,71 @@ module Google
10610
11504
  end
10611
11505
  end
10612
11506
 
11507
+ # Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.
11508
+ class GoogleCloudDialogflowV2SetSuggestionFeatureConfigOperationMetadata
11509
+ include Google::Apis::Core::Hashable
11510
+
11511
+ # The resource name of the conversation profile. Format: `projects//locations//
11512
+ # conversationProfiles/`
11513
+ # Corresponds to the JSON property `conversationProfile`
11514
+ # @return [String]
11515
+ attr_accessor :conversation_profile
11516
+
11517
+ # Timestamp whe the request was created. The time is measured on server side.
11518
+ # Corresponds to the JSON property `createTime`
11519
+ # @return [String]
11520
+ attr_accessor :create_time
11521
+
11522
+ # Required. The participant role to add or update the suggestion feature config.
11523
+ # Only HUMAN_AGENT or END_USER can be used.
11524
+ # Corresponds to the JSON property `participantRole`
11525
+ # @return [String]
11526
+ attr_accessor :participant_role
11527
+
11528
+ # Required. The type of the suggestion feature to add or update.
11529
+ # Corresponds to the JSON property `suggestionFeatureType`
11530
+ # @return [String]
11531
+ attr_accessor :suggestion_feature_type
11532
+
11533
+ def initialize(**args)
11534
+ update!(**args)
11535
+ end
11536
+
11537
+ # Update properties of this object
11538
+ def update!(**args)
11539
+ @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
11540
+ @create_time = args[:create_time] if args.key?(:create_time)
11541
+ @participant_role = args[:participant_role] if args.key?(:participant_role)
11542
+ @suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
11543
+ end
11544
+ end
11545
+
11546
+ # The request message for ConversationProfiles.SetSuggestionFeature.
11547
+ class GoogleCloudDialogflowV2SetSuggestionFeatureConfigRequest
11548
+ include Google::Apis::Core::Hashable
11549
+
11550
+ # Required. The participant role to add or update the suggestion feature config.
11551
+ # Only HUMAN_AGENT or END_USER can be used.
11552
+ # Corresponds to the JSON property `participantRole`
11553
+ # @return [String]
11554
+ attr_accessor :participant_role
11555
+
11556
+ # Config for suggestion features.
11557
+ # Corresponds to the JSON property `suggestionFeatureConfig`
11558
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2HumanAgentAssistantConfigSuggestionFeatureConfig]
11559
+ attr_accessor :suggestion_feature_config
11560
+
11561
+ def initialize(**args)
11562
+ update!(**args)
11563
+ end
11564
+
11565
+ # Update properties of this object
11566
+ def update!(**args)
11567
+ @participant_role = args[:participant_role] if args.key?(:participant_role)
11568
+ @suggestion_feature_config = args[:suggestion_feature_config] if args.key?(:suggestion_feature_config)
11569
+ end
11570
+ end
11571
+
10613
11572
  # Represents a smart reply answer.
10614
11573
  class GoogleCloudDialogflowV2SmartReplyAnswer
10615
11574
  include Google::Apis::Core::Hashable
@@ -10644,6 +11603,87 @@ module Google
10644
11603
  end
10645
11604
  end
10646
11605
 
11606
+ # The evaluation metrics for smart reply model.
11607
+ class GoogleCloudDialogflowV2SmartReplyMetrics
11608
+ include Google::Apis::Core::Hashable
11609
+
11610
+ # Percentage of target participant messages in the evaluation dataset for which
11611
+ # similar messages have appeared at least once in the allowlist. Should be [0, 1]
11612
+ # .
11613
+ # Corresponds to the JSON property `allowlistCoverage`
11614
+ # @return [Float]
11615
+ attr_accessor :allowlist_coverage
11616
+
11617
+ # Total number of conversations used to generate this metric.
11618
+ # Corresponds to the JSON property `conversationCount`
11619
+ # @return [Fixnum]
11620
+ attr_accessor :conversation_count
11621
+
11622
+ # Metrics of top n smart replies, sorted by TopNMetric.n.
11623
+ # Corresponds to the JSON property `topNMetrics`
11624
+ # @return [Array<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics>]
11625
+ attr_accessor :top_n_metrics
11626
+
11627
+ def initialize(**args)
11628
+ update!(**args)
11629
+ end
11630
+
11631
+ # Update properties of this object
11632
+ def update!(**args)
11633
+ @allowlist_coverage = args[:allowlist_coverage] if args.key?(:allowlist_coverage)
11634
+ @conversation_count = args[:conversation_count] if args.key?(:conversation_count)
11635
+ @top_n_metrics = args[:top_n_metrics] if args.key?(:top_n_metrics)
11636
+ end
11637
+ end
11638
+
11639
+ # Evaluation metrics when retrieving `n` smart replies with the model.
11640
+ class GoogleCloudDialogflowV2SmartReplyMetricsTopNMetrics
11641
+ include Google::Apis::Core::Hashable
11642
+
11643
+ # Number of retrieved smart replies. For example, when `n` is 3, this evaluation
11644
+ # contains metrics for when Dialogflow retrieves 3 smart replies with the model.
11645
+ # Corresponds to the JSON property `n`
11646
+ # @return [Fixnum]
11647
+ attr_accessor :n
11648
+
11649
+ # Defined as `number of queries whose top n smart replies have at least one
11650
+ # similar (token match similarity above the defined threshold) reply as the real
11651
+ # reply` divided by `number of queries with at least one smart reply`. Value
11652
+ # ranges from 0.0 to 1.0 inclusive.
11653
+ # Corresponds to the JSON property `recall`
11654
+ # @return [Float]
11655
+ attr_accessor :recall
11656
+
11657
+ def initialize(**args)
11658
+ update!(**args)
11659
+ end
11660
+
11661
+ # Update properties of this object
11662
+ def update!(**args)
11663
+ @n = args[:n] if args.key?(:n)
11664
+ @recall = args[:recall] if args.key?(:recall)
11665
+ end
11666
+ end
11667
+
11668
+ # Metadata for smart reply models.
11669
+ class GoogleCloudDialogflowV2SmartReplyModelMetadata
11670
+ include Google::Apis::Core::Hashable
11671
+
11672
+ # Optional. Type of the smart reply model. If not provided, model_type is used.
11673
+ # Corresponds to the JSON property `trainingModelType`
11674
+ # @return [String]
11675
+ attr_accessor :training_model_type
11676
+
11677
+ def initialize(**args)
11678
+ update!(**args)
11679
+ end
11680
+
11681
+ # Update properties of this object
11682
+ def update!(**args)
11683
+ @training_model_type = args[:training_model_type] if args.key?(:training_model_type)
11684
+ end
11685
+ end
11686
+
10647
11687
  # Hints for the speech recognizer to help with recognition in a specific
10648
11688
  # conversation state.
10649
11689
  class GoogleCloudDialogflowV2SpeechContext
@@ -11118,6 +12158,46 @@ module Google
11118
12158
  end
11119
12159
  end
11120
12160
 
12161
+ # Metadata for a ConversationModels.UndeployConversationModel operation.
12162
+ class GoogleCloudDialogflowV2UndeployConversationModelOperationMetadata
12163
+ include Google::Apis::Core::Hashable
12164
+
12165
+ # The resource name of the conversation model. Format: `projects//
12166
+ # conversationModels/`
12167
+ # Corresponds to the JSON property `conversationModel`
12168
+ # @return [String]
12169
+ attr_accessor :conversation_model
12170
+
12171
+ # Timestamp when the request to undeploy conversation model was submitted. The
12172
+ # time is measured on server side.
12173
+ # Corresponds to the JSON property `createTime`
12174
+ # @return [String]
12175
+ attr_accessor :create_time
12176
+
12177
+ def initialize(**args)
12178
+ update!(**args)
12179
+ end
12180
+
12181
+ # Update properties of this object
12182
+ def update!(**args)
12183
+ @conversation_model = args[:conversation_model] if args.key?(:conversation_model)
12184
+ @create_time = args[:create_time] if args.key?(:create_time)
12185
+ end
12186
+ end
12187
+
12188
+ # The request message for ConversationModels.UndeployConversationModel
12189
+ class GoogleCloudDialogflowV2UndeployConversationModelRequest
12190
+ include Google::Apis::Core::Hashable
12191
+
12192
+ def initialize(**args)
12193
+ update!(**args)
12194
+ end
12195
+
12196
+ # Update properties of this object
12197
+ def update!(**args)
12198
+ end
12199
+ end
12200
+
11121
12201
  # Represents a single validation error.
11122
12202
  class GoogleCloudDialogflowV2ValidationError
11123
12203
  include Google::Apis::Core::Hashable
@@ -11506,6 +12586,45 @@ module Google
11506
12586
  end
11507
12587
  end
11508
12588
 
12589
+ # Metadata for a ConversationProfile.ClearSuggestionFeatureConfig operation.
12590
+ class GoogleCloudDialogflowV2beta1ClearSuggestionFeatureConfigOperationMetadata
12591
+ include Google::Apis::Core::Hashable
12592
+
12593
+ # The resource name of the conversation profile. Format: `projects//locations//
12594
+ # conversationProfiles/`
12595
+ # Corresponds to the JSON property `conversationProfile`
12596
+ # @return [String]
12597
+ attr_accessor :conversation_profile
12598
+
12599
+ # Timestamp whe the request was created. The time is measured on server side.
12600
+ # Corresponds to the JSON property `createTime`
12601
+ # @return [String]
12602
+ attr_accessor :create_time
12603
+
12604
+ # Required. The participant role to remove the suggestion feature config. Only
12605
+ # HUMAN_AGENT or END_USER can be used.
12606
+ # Corresponds to the JSON property `participantRole`
12607
+ # @return [String]
12608
+ attr_accessor :participant_role
12609
+
12610
+ # Required. The type of the suggestion feature to remove.
12611
+ # Corresponds to the JSON property `suggestionFeatureType`
12612
+ # @return [String]
12613
+ attr_accessor :suggestion_feature_type
12614
+
12615
+ def initialize(**args)
12616
+ update!(**args)
12617
+ end
12618
+
12619
+ # Update properties of this object
12620
+ def update!(**args)
12621
+ @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
12622
+ @create_time = args[:create_time] if args.key?(:create_time)
12623
+ @participant_role = args[:participant_role] if args.key?(:participant_role)
12624
+ @suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
12625
+ end
12626
+ end
12627
+
11509
12628
  # Dialogflow contexts are similar to natural language context. If a person says
11510
12629
  # to you "they are orange", you need context in order to understand what "they"
11511
12630
  # is referring to. Similarly, for Dialogflow to handle an end-user expression
@@ -11777,6 +12896,25 @@ module Google
11777
12896
  end
11778
12897
  end
11779
12898
 
12899
+ # Metadata related to the Export Data Operations (e.g. ExportDocument).
12900
+ class GoogleCloudDialogflowV2beta1ExportOperationMetadata
12901
+ include Google::Apis::Core::Hashable
12902
+
12903
+ # Google Cloud Storage location for the output.
12904
+ # Corresponds to the JSON property `exportedGcsDestination`
12905
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1GcsDestination]
12906
+ attr_accessor :exported_gcs_destination
12907
+
12908
+ def initialize(**args)
12909
+ update!(**args)
12910
+ end
12911
+
12912
+ # Update properties of this object
12913
+ def update!(**args)
12914
+ @exported_gcs_destination = args[:exported_gcs_destination] if args.key?(:exported_gcs_destination)
12915
+ end
12916
+ end
12917
+
11780
12918
  # Represents answer from "frequently asked questions".
11781
12919
  class GoogleCloudDialogflowV2beta1FaqAnswer
11782
12920
  include Google::Apis::Core::Hashable
@@ -11831,6 +12969,27 @@ module Google
11831
12969
  end
11832
12970
  end
11833
12971
 
12972
+ # Google Cloud Storage location for the output.
12973
+ class GoogleCloudDialogflowV2beta1GcsDestination
12974
+ include Google::Apis::Core::Hashable
12975
+
12976
+ # Required. The Google Cloud Storage URIs for the output. A URI is of the form:
12977
+ # gs://bucket/object-prefix-or-name Whether a prefix or name is used depends on
12978
+ # the use case. The requesting user must have "write-permission" to the bucket.
12979
+ # Corresponds to the JSON property `uri`
12980
+ # @return [String]
12981
+ attr_accessor :uri
12982
+
12983
+ def initialize(**args)
12984
+ update!(**args)
12985
+ end
12986
+
12987
+ # Update properties of this object
12988
+ def update!(**args)
12989
+ @uri = args[:uri] if args.key?(:uri)
12990
+ end
12991
+ end
12992
+
11834
12993
  # Output only. Represents a notification sent to Pub/Sub subscribers for agent
11835
12994
  # assistant events in a specific conversation.
11836
12995
  class GoogleCloudDialogflowV2beta1HumanAgentAssistantEvent
@@ -13690,6 +14849,11 @@ module Google
13690
14849
  class GoogleCloudDialogflowV2beta1KnowledgeOperationMetadata
13691
14850
  include Google::Apis::Core::Hashable
13692
14851
 
14852
+ # Metadata related to the Export Data Operations (e.g. ExportDocument).
14853
+ # Corresponds to the JSON property `exportOperationMetadata`
14854
+ # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1ExportOperationMetadata]
14855
+ attr_accessor :export_operation_metadata
14856
+
13693
14857
  # The name of the knowledge base interacted with during the operation.
13694
14858
  # Corresponds to the JSON property `knowledgeBase`
13695
14859
  # @return [String]
@@ -13706,6 +14870,7 @@ module Google
13706
14870
 
13707
14871
  # Update properties of this object
13708
14872
  def update!(**args)
14873
+ @export_operation_metadata = args[:export_operation_metadata] if args.key?(:export_operation_metadata)
13709
14874
  @knowledge_base = args[:knowledge_base] if args.key?(:knowledge_base)
13710
14875
  @state = args[:state] if args.key?(:state)
13711
14876
  end
@@ -14123,6 +15288,45 @@ module Google
14123
15288
  end
14124
15289
  end
14125
15290
 
15291
+ # Metadata for a ConversationProfile.SetSuggestionFeatureConfig operation.
15292
+ class GoogleCloudDialogflowV2beta1SetSuggestionFeatureConfigOperationMetadata
15293
+ include Google::Apis::Core::Hashable
15294
+
15295
+ # The resource name of the conversation profile. Format: `projects//locations//
15296
+ # conversationProfiles/`
15297
+ # Corresponds to the JSON property `conversationProfile`
15298
+ # @return [String]
15299
+ attr_accessor :conversation_profile
15300
+
15301
+ # Timestamp whe the request was created. The time is measured on server side.
15302
+ # Corresponds to the JSON property `createTime`
15303
+ # @return [String]
15304
+ attr_accessor :create_time
15305
+
15306
+ # Required. The participant role to add or update the suggestion feature config.
15307
+ # Only HUMAN_AGENT or END_USER can be used.
15308
+ # Corresponds to the JSON property `participantRole`
15309
+ # @return [String]
15310
+ attr_accessor :participant_role
15311
+
15312
+ # Required. The type of the suggestion feature to add or update.
15313
+ # Corresponds to the JSON property `suggestionFeatureType`
15314
+ # @return [String]
15315
+ attr_accessor :suggestion_feature_type
15316
+
15317
+ def initialize(**args)
15318
+ update!(**args)
15319
+ end
15320
+
15321
+ # Update properties of this object
15322
+ def update!(**args)
15323
+ @conversation_profile = args[:conversation_profile] if args.key?(:conversation_profile)
15324
+ @create_time = args[:create_time] if args.key?(:create_time)
15325
+ @participant_role = args[:participant_role] if args.key?(:participant_role)
15326
+ @suggestion_feature_type = args[:suggestion_feature_type] if args.key?(:suggestion_feature_type)
15327
+ end
15328
+ end
15329
+
14126
15330
  # Represents a smart reply answer.
14127
15331
  class GoogleCloudDialogflowV2beta1SmartReplyAnswer
14128
15332
  include Google::Apis::Core::Hashable