Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

Response message for ConversationalSearchService.AnswerQuery method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse

Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse.



5192
5193
5194
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5192

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

Instance Attribute Details

#answerGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswer

Defines an answer. Corresponds to the JSON property answer



5180
5181
5182
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5180

def answer
  @answer
end

#answer_query_tokenString

A global unique ID used for logging. Corresponds to the JSON property answerQueryToken

Returns:

  • (String)


5185
5186
5187
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5185

def answer_query_token
  @answer_query_token
end

#sessionGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSession

External session proto definition. Corresponds to the JSON property session



5190
5191
5192
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5190

def session
  @session
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5197
5198
5199
5200
5201
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5197

def update!(**args)
  @answer = args[:answer] if args.key?(:answer)
  @answer_query_token = args[:answer_query_token] if args.key?(:answer_query_token)
  @session = args[:session] if args.key?(:session)
end