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.
1164 1165 1166 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1164 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Answer
Defines an answer.
Corresponds to the JSON property answer
1152 1153 1154 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1152 def answer @answer end |
#answer_query_token ⇒ String
A global unique ID used for logging.
Corresponds to the JSON property answerQueryToken
1157 1158 1159 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1157 def answer_query_token @answer_query_token end |
#session ⇒ Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1Session
External session proto definition.
Corresponds to the JSON property session
1162 1163 1164 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1162 def session @session end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1169 1170 1171 1172 1173 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 1169 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 |