Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer

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

Returns a new instance of GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer.



16957
16958
16959
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16957

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

Instance Attribute Details

#answerString

Corresponds to the JSON property answer

Returns:

  • (String)


16935
16936
16937
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16935

def answer
  @answer
end

#faq_questionString

Corresponds to the JSON property faqQuestion

Returns:

  • (String)


16940
16941
16942
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16940

def faq_question
  @faq_question
end

#match_confidenceFloat

Corresponds to the JSON property matchConfidence

Returns:

  • (Float)


16945
16946
16947
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16945

def match_confidence
  @match_confidence
end

#match_confidence_levelString

Corresponds to the JSON property matchConfidenceLevel

Returns:

  • (String)


16950
16951
16952
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16950

def match_confidence_level
  @match_confidence_level
end

#sourceString

Corresponds to the JSON property source

Returns:

  • (String)


16955
16956
16957
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16955

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16962
16963
16964
16965
16966
16967
16968
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 16962

def update!(**args)
  @answer = args[:answer] if args.key?(:answer)
  @faq_question = args[:faq_question] if args.key?(:faq_question)
  @match_confidence = args[:match_confidence] if args.key?(:match_confidence)
  @match_confidence_level = args[:match_confidence_level] if args.key?(:match_confidence_level)
  @source = args[:source] if args.key?(:source)
end