Class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeResponse

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

Overview

The response message for Conversations.SearchKnowledge.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeResponse

Returns a new instance of GoogleCloudDialogflowV2SearchKnowledgeResponse.



13653
13654
13655
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13653

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

Instance Attribute Details

#answersArray<Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeAnswer>

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



13646
13647
13648
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13646

def answers
  @answers
end

#rewritten_queryString

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

Returns:

  • (String)


13651
13652
13653
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13651

def rewritten_query
  @rewritten_query
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



13658
13659
13660
13661
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 13658

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