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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDialogflowV2beta1SearchKnowledgeResponse

Returns a new instance of GoogleCloudDialogflowV2beta1SearchKnowledgeResponse.



19162
19163
19164
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19162

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

Instance Attribute Details

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

Corresponds to the JSON property answers



19150
19151
19152
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19150

def answers
  @answers
end

#rewritten_queryString

Corresponds to the JSON property rewrittenQuery

Returns:

  • (String)


19155
19156
19157
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19155

def rewritten_query
  @rewritten_query
end

#search_knowledge_debug_infoGoogle::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SearchKnowledgeDebugInfo

Corresponds to the JSON property searchKnowledgeDebugInfo



19160
19161
19162
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19160

def search_knowledge_debug_info
  @search_knowledge_debug_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



19167
19168
19169
19170
19171
# File 'lib/google/apis/dialogflow_v2beta1/classes.rb', line 19167

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