Retail V2 API - Class Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult (v2.6.1)

Reference documentation and code samples for the Retail V2 API class Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult.

This field specifies all related information that is needed on client side for UI rendering of conversational retail search.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#additional_filter

defadditional_filter()->::Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult::AdditionalFilter
Returns

#additional_filter=

defadditional_filter=(value)->::Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult::AdditionalFilter
Parameter
Returns

#additional_filters

defadditional_filters()->::Array<::Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult::AdditionalFilter>
Returns

#additional_filters=

defadditional_filters=(value)->::Array<::Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult::AdditionalFilter>
Parameter
Returns

#conversation_id

defconversation_id()->::String
Returns
  • (::String) — Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's SearchRequest.ConversationalSearchSpec.conversation_id to restore conversation state in server.

#conversation_id=

defconversation_id=(value)->::String
Parameter
  • value (::String) — Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's SearchRequest.ConversationalSearchSpec.conversation_id to restore conversation state in server.
Returns
  • (::String) — Conversation UUID. This field will be stored in client side storage to maintain the conversation session with server and will be used for next search request's SearchRequest.ConversationalSearchSpec.conversation_id to restore conversation state in server.

#followup_question

deffollowup_question()->::String
Returns
  • (::String) — The follow-up question. e.g., What is the color?

#followup_question=

deffollowup_question=(value)->::String
Parameter
  • value (::String) — The follow-up question. e.g., What is the color?
Returns
  • (::String) — The follow-up question. e.g., What is the color?

#refined_query

defrefined_query()->::String
Returns
  • (::String) — The current refined query for the conversational search. This field will be used in customer UI that the query in the search bar should be replaced with the refined query. For example, if SearchRequest.query is dress and next SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer is red color, which does not match any product attribute value filters, the refined query will be dress, red color.

#refined_query=

defrefined_query=(value)->::String
Parameter
  • value (::String) — The current refined query for the conversational search. This field will be used in customer UI that the query in the search bar should be replaced with the refined query. For example, if SearchRequest.query is dress and next SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer is red color, which does not match any product attribute value filters, the refined query will be dress, red color.
Returns
  • (::String) — The current refined query for the conversational search. This field will be used in customer UI that the query in the search bar should be replaced with the refined query. For example, if SearchRequest.query is dress and next SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer is red color, which does not match any product attribute value filters, the refined query will be dress, red color.

#suggested_answers

defsuggested_answers()->::Array<::Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult::SuggestedAnswer>
Returns

#suggested_answers=

defsuggested_answers=(value)->::Array<::Google::Cloud::Retail::V2::SearchResponse::ConversationalSearchResult::SuggestedAnswer>
Parameter
Returns

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年10月30日 UTC.