Class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeResponse

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

Overview

The response message for Conversations.SearchKnowledge.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SearchKnowledgeResponse

Returns a new instance of GoogleCloudDialogflowV2beta1SearchKnowledgeResponse.



18641
18642
18643
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18641

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

Instance Attribute Details

#answersArray<Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeAnswer>

Most relevant snippets extracted from articles in the given knowledge base, ordered by confidence. Corresponds to the JSON property answers



18634
18635
18636
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18634

def answers
  @answers
end

#rewritten_queryString

The rewritten query used to search knowledge. Corresponds to the JSON property rewrittenQuery

Returns:

  • (String)


18639
18640
18641
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18639

def rewritten_query
  @rewritten_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18646
18647
18648
18649
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 18646

def update!(**args)
  @answers = args[:answers] if args.key?(:answers)
  @rewritten_query = args[:rewritten_query] if args.key?(:rewritten_query)
end