Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::Answer
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::Answer
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::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.
#session
def session() -> ::Google::Cloud::DiscoveryEngine::V1beta::Session
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::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::V1beta::Session
Parameter
- value (::Google::Cloud::DiscoveryEngine::V1beta::Session) — Session resource object. It will be only available when session field is set and valid in the AnswerQueryRequest request.
Returns
- (::Google::Cloud::DiscoveryEngine::V1beta::Session) — Session resource object. It will be only available when session field is set and valid in the AnswerQueryRequest request.