Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer

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

Returns a new instance of GoogleCloudDialogflowV2beta1KnowledgeAnswersAnswer.



20821
20822
20823
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20821

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

Instance Attribute Details

#answerString

Corresponds to the JSON property answer

Returns:

  • (String)


20799
20800
20801
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20799

def answer
  @answer
end

#faq_questionString

Corresponds to the JSON property faqQuestion

Returns:

  • (String)


20804
20805
20806
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20804

def faq_question
  @faq_question
end

#match_confidenceFloat

Corresponds to the JSON property matchConfidence

Returns:

  • (Float)


20809
20810
20811
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20809

def match_confidence
  @match_confidence
end

#match_confidence_levelString

Corresponds to the JSON property matchConfidenceLevel

Returns:

  • (String)


20814
20815
20816
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20814

def match_confidence_level
  @match_confidence_level
end

#sourceString

Corresponds to the JSON property source

Returns:

  • (String)


20819
20820
20821
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20819

def source
  @source
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



20826
20827
20828
20829
20830
20831
20832
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 20826

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