Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryResponse
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1AnswerQueryResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Response message for ConversationalSearchService.AnswerQuery method.
Instance Attribute Summary collapse
-
#answer ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Answer
Defines an answer.
-
#answer_query_token ⇒ String
A global unique ID used for logging.
-
#session ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Session
External session proto definition.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerQueryResponse
constructor
A new instance of GoogleCloudDiscoveryengineV1AnswerQueryResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1AnswerQueryResponse
Returns a new instance of GoogleCloudDiscoveryengineV1AnswerQueryResponse.
1607 1608 1609 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1607 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Answer
Defines an answer.
Corresponds to the JSON property answer
1595 1596 1597 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1595 def answer @answer end |
#answer_query_token ⇒ String
A global unique ID used for logging.
Corresponds to the JSON property answerQueryToken
1600 1601 1602 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1600 def answer_query_token @answer_query_token end |
#session ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Session
External session proto definition.
Corresponds to the JSON property session
1605 1606 1607 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1605 def session @session end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1612 1613 1614 1615 1616 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1612 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 |