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.



3417
3418
3419
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3417

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

Instance Attribute Details

#answerGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswer

Defines an answer. Corresponds to the JSON property answer



3405
3406
3407
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3405

def answer
  @answer
end

#answer_query_tokenString

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

Returns:

  • (String)


3410
3411
3412
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3410

def answer_query_token
  @answer_query_token
end

#sessionGoogle::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSession

External session proto definition. Corresponds to the JSON property session



3415
3416
3417
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3415

def session
  @session
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3422
3423
3424
3425
3426
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 3422

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