Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswer

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

Returns a new instance of GoogleCloudDialogflowV2SearchKnowledgeAnswer.



14865
14866
14867
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14865

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

Instance Attribute Details

#answerString

Corresponds to the JSON property answer

Returns:

  • (String)


14848
14849
14850
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14848

def answer
  @answer
end

#answer_recordString

Corresponds to the JSON property answerRecord

Returns:

  • (String)


14853
14854
14855
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14853

def answer_record
  @answer_record
end

#answer_sourcesArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswerAnswerSource>

Corresponds to the JSON property answerSources



14858
14859
14860
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14858

def answer_sources
  @answer_sources
end

#answer_typeString

Corresponds to the JSON property answerType

Returns:

  • (String)


14863
14864
14865
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14863

def answer_type
  @answer_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



14870
14871
14872
14873
14874
14875
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 14870

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