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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2SearchKnowledgeResponse

Returns a new instance of GoogleCloudDialogflowV2SearchKnowledgeResponse.



15059
15060
15061
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15059

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

Instance Attribute Details

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

Corresponds to the JSON property answers



15047
15048
15049
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15047

def answers
  @answers
end

#rewritten_queryString

Corresponds to the JSON property rewrittenQuery

Returns:

  • (String)


15052
15053
15054
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15052

def rewritten_query
  @rewritten_query
end

#search_knowledge_debug_infoGoogle::Apis::DialogflowV2::GoogleCloudDialogflowV2SearchKnowledgeDebugInfo

Corresponds to the JSON property searchKnowledgeDebugInfo



15057
15058
15059
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15057

def search_knowledge_debug_info
  @search_knowledge_debug_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



15064
15065
15066
15067
15068
# File 'lib/google/apis/dialogflow_v2/classes.rb', line 15064

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