Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer

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

Returns a new instance of GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer.



19019
19020
19021
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19019

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

Instance Attribute Details

#answerString

Corresponds to the JSON property answer

Returns:

  • (String)


19002
19003
19004
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19002

def answer
  @answer
end

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


19007
19008
19009
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19007

def answer_record
  @answer_record
end

#answer_sourcesArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswerAnswerSource>

Corresponds to the JSON property answerSources



19012
19013
19014
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19012

def answer_sources
  @answer_sources
end

#answer_typeString

Corresponds to the JSON property answerType

Returns:

  • (String)


19017
19018
19019
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19017

def answer_type
  @answer_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19024
19025
19026
19027
19028
19029
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19024

def update!(**args)
  @answer = args[:answer] if args.key?(:answer)
  @answer_record = args[:answer_record] if args.key?(:answer_record)
  @answer_sources = args[:answer_sources] if args.key?(:answer_sources)
  @answer_type = args[:answer_type] if args.key?(:answer_type)
end