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.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps 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.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps 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.QueryUnderstandingSpec.QueryRephraserSpec.max_rephrase_steps 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::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.