Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Suggestion
- Inherits:
-
Object
- Object
- Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Suggestion
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dialogflow_v2beta1/classes.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb,
lib/google/apis/dialogflow_v2beta1/representations.rb
Overview
Represents a suggestion for a human agent.
Instance Attribute Summary collapse
-
#articles ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionArticle>
Output only.
-
#create_time ⇒ String
Output only.
-
#faq_answers ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionFaqAnswer>
Output only.
-
#latest_message ⇒ String
Output only.
-
#name ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Suggestion
constructor
A new instance of GoogleCloudDialogflowV2beta1Suggestion.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Suggestion
Returns a new instance of GoogleCloudDialogflowV2beta1Suggestion.
17917 17918 17919 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17917 def initialize(**args) update!(**args) end |
Instance Attribute Details
#articles ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionArticle>
Output only. Articles ordered by score in descending order.
Corresponds to the JSON property articles
17893 17894 17895 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17893 def articles @articles end |
#create_time ⇒ String
Output only. The time the suggestion was created.
Corresponds to the JSON property createTime
17898 17899 17900 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17898 def create_time @create_time end |
#faq_answers ⇒ Array<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionFaqAnswer>
Output only. Answers extracted from FAQ documents.
Corresponds to the JSON property faqAnswers
17903 17904 17905 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17903 def faq_answers @faq_answers end |
#latest_message ⇒ String
Output only. Latest message used as context to compile this suggestion. Format:
projects//locations//conversations//messages/.
Corresponds to the JSON property latestMessage
17909 17910 17911 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17909 def @latest_message end |
#name ⇒ String
Output only. The name of this suggestion. Format: projects//locations//
conversations//participants/*/suggestions/.
Corresponds to the JSON property name
17915 17916 17917 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17915 def name @name end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
17922 17923 17924 17925 17926 17927 17928 |
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 17922 def update!(**args) @articles = args[:articles] if args.key?(:articles) @create_time = args[:create_time] if args.key?(:create_time) @faq_answers = args[:faq_answers] if args.key?(:faq_answers) @latest_message = args[:latest_message] if args.key?(:latest_message) @name = args[:name] if args.key?(:name) end |