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.



3299
3300
3301
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3299

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

Instance Attribute Details

#answerGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswer

Defines an answer. Corresponds to the JSON property answer



3287
3288
3289
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3287

def answer
  @answer
end

#answer_query_tokenString

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

Returns:

  • (String)


3292
3293
3294
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3292

def answer_query_token
  @answer_query_token
end

#sessionGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSession

External session proto definition. Corresponds to the JSON property session



3297
3298
3299
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3297

def session
  @session
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3304
3305
3306
3307
3308
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3304

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