Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Suggestion

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Suggestion

Returns a new instance of GoogleCloudDialogflowV2beta1Suggestion.



18066
18067
18068
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18066

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#articlesArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionArticle>

Output only. Articles ordered by score in descending order. Corresponds to the JSON property articles



18042
18043
18044
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18042

def articles
  @articles
end

#create_timeString

Output only. The time the suggestion was created. Corresponds to the JSON property createTime

Returns:

  • (String)


18047
18048
18049
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18047

def create_time
  @create_time
end

#faq_answersArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SuggestionFaqAnswer>

Output only. Answers extracted from FAQ documents. Corresponds to the JSON property faqAnswers



18052
18053
18054
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18052

def faq_answers
  @faq_answers
end

#latest_messageString

Output only. Latest message used as context to compile this suggestion. Format: projects//locations//conversations//messages/. Corresponds to the JSON property latestMessage

Returns:

  • (String)


18058
18059
18060
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18058

def latest_message
  @latest_message
end

#nameString

Output only. The name of this suggestion. Format: projects//locations// conversations//participants/*/suggestions/. Corresponds to the JSON property name

Returns:

  • (String)


18064
18065
18066
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18064

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18071
18072
18073
18074
18075
18076
18077
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18071

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