Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/dialogflow_v2/classes.rb,
lib/google/apis/dialogflow_v2/representations.rb,
lib/google/apis/dialogflow_v2/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer

Returns a new instance of GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswer.



20566
20567
20568
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20566

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

Instance Attribute Details

#answer_textString

Corresponds to the JSON property answerText

Returns:

  • (String)


20544
20545
20546
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20544

def answer_text
  @answer_text
end

#event_sourceGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerEventSource

Corresponds to the JSON property eventSource



20549
20550
20551
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20549

def event_source
  @event_source
end

#faq_sourceGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerFaqSource

Corresponds to the JSON property faqSource



20554
20555
20556
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20554

def faq_source
  @faq_source
end

#generative_sourceGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource

Corresponds to the JSON property generativeSource



20559
20560
20561
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20559

def generative_source
  @generative_source
end

#playbook_sourceGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource

Corresponds to the JSON property playbookSource



20564
20565
20566
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20564

def playbook_source
  @playbook_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20571
20572
20573
20574
20575
20576
20577
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20571

def update!(**args)
  @answer_text = args[:answer_text] if args.key?(:answer_text)
  @event_source = args[:event_source] if args.key?(:event_source)
  @faq_source = args[:faq_source] if args.key?(:faq_source)
  @generative_source = args[:generative_source] if args.key?(:generative_source)
  @playbook_source = args[:playbook_source] if args.key?(:playbook_source)
end