Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::AnswerQueryResponse.
Response message for ConversationalSearchService.AnswerQuery method.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#answer
def answer() -> ::Google::Cloud::DiscoveryEngine::V1::Answer
Returns
- (::Google::Cloud::DiscoveryEngine::V1::Answer) — Answer resource object. If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API.
#answer=
def answer=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Answer
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1::Answer) — Answer resource object. If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API.
Returns
- (::Google::Cloud::DiscoveryEngine::V1::Answer) — Answer resource object. If [AnswerQueryRequest.StepSpec.max_step_count][] is greater than 1, use Answer.name to fetch answer information using ConversationalSearchService.GetAnswer API.
#answer_query_token
def answer_query_token() -> ::String
Returns
- (::String) — A global unique ID used for logging.
#answer_query_token=
def answer_query_token=(value) -> ::String
Parameter
- value (::String) — A global unique ID used for logging.
Returns
- (::String) — A global unique ID used for logging.
#session
def session() -> ::Google::Cloud::DiscoveryEngine::V1::Session
Returns
- (::Google::Cloud::DiscoveryEngine::V1::Session) — Session resource object. It will be only available when session field is set and valid in the AnswerQueryRequest request.
#session=
def session=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Session
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1::Session) — Session resource object. It will be only available when session field is set and valid in the AnswerQueryRequest request.
Returns
- (::Google::Cloud::DiscoveryEngine::V1::Session) — Session resource object. It will be only available when session field is set and valid in the AnswerQueryRequest request.