Class: Google::Apis::DialogflowV3::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer

Returns a new instance of GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer.



15682
15683
15684
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15682

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

Instance Attribute Details

#answer_textString

Corresponds to the JSON property answerText

Returns:

  • (String)


15660
15661
15662
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15660

def answer_text
  @answer_text
end

#event_sourceGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerEventSource

Corresponds to the JSON property eventSource



15665
15666
15667
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15665

def event_source
  @event_source
end

#faq_sourceGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource

Corresponds to the JSON property faqSource



15670
15671
15672
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15670

def faq_source
  @faq_source
end

#generative_sourceGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource

Corresponds to the JSON property generativeSource



15675
15676
15677
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15675

def generative_source
  @generative_source
end

#playbook_sourceGoogle::Apis::DialogflowV3::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource

Corresponds to the JSON property playbookSource



15680
15681
15682
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15680

def playbook_source
  @playbook_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15687
15688
15689
15690
15691
15692
15693
# File 'lib/google/apis/dialogflow_v3/classes.rb', line 15687

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