Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer

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) ⇒ GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer

Returns a new instance of GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswer.



13205
13206
13207
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13205

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

Instance Attribute Details

#answer_textString

Corresponds to the JSON property answerText

Returns:

  • (String)


13183
13184
13185
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13183

def answer_text
  @answer_text
end

#event_sourceGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerEventSource

Corresponds to the JSON property eventSource



13188
13189
13190
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13188

def event_source
  @event_source
end

#faq_sourceGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerFaqSource

Corresponds to the JSON property faqSource



13193
13194
13195
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13193

def faq_source
  @faq_source
end

#generative_sourceGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource

Corresponds to the JSON property generativeSource



13198
13199
13200
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13198

def generative_source
  @generative_source
end

#playbook_sourceGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2KnowledgeAssistAnswerKnowledgeAnswerGenerativeSource

Corresponds to the JSON property playbookSource



13203
13204
13205
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13203

def playbook_source
  @playbook_source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13210
13211
13212
13213
13214
13215
13216
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13210

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