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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1Suggestion

Returns a new instance of GoogleCloudDialogflowV2beta1Suggestion.



20295
20296
20297
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20295

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

Instance Attribute Details

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

Corresponds to the JSON property articles



20273
20274
20275
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20273

def articles
  @articles
end

#create_timeString

Corresponds to the JSON property createTime

Returns:

  • (String)


20278
20279
20280
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20278

def create_time
  @create_time
end

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

Corresponds to the JSON property faqAnswers



20283
20284
20285
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20283

def faq_answers
  @faq_answers
end

#latest_messageString

Corresponds to the JSON property latestMessage

Returns:

  • (String)


20288
20289
20290
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20288

def latest_message
  @latest_message
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


20293
20294
20295
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20293

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20300
20301
20302
20303
20304
20305
20306
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 20300

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