Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse
- 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
-
#answer ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswer
Defines an answer.
-
#answer_query_token ⇒ String
A global unique ID used for logging.
-
#session ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSession
External session proto definition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse
Returns a new instance of GoogleCloudDiscoveryengineV1alphaAnswerQueryResponse.
2403 2404 2405 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2403 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaAnswer
Defines an answer.
Corresponds to the JSON property answer
2391 2392 2393 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2391 def answer @answer end |
#answer_query_token ⇒ String
A global unique ID used for logging.
Corresponds to the JSON property answerQueryToken
2396 2397 2398 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2396 def answer_query_token @answer_query_token end |
#session ⇒ Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaSession
External session proto definition.
Corresponds to the JSON property session
2401 2402 2403 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2401 def session @session end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2408 2409 2410 2411 2412 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 2408 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 |