Retail V2 API - Class Google::Cloud::Retail::V2::ConversationalSearchResponse (v2.5.0)

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

Response message for ConversationalSearchService.ConversationalSearch method.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#conversation_id

def conversation_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 ConversationalSearchRequest.conversation_id to restore conversation state in server.

#conversation_id=

def conversation_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 ConversationalSearchRequest.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 ConversationalSearchRequest.conversation_id to restore conversation state in server.

#conversational_filtering_result

def conversational_filtering_result() -> ::Google::Cloud::Retail::V2::ConversationalSearchResponse::ConversationalFilteringResult
Returns

#conversational_filtering_result=

def conversational_filtering_result=(value) -> ::Google::Cloud::Retail::V2::ConversationalSearchResponse::ConversationalFilteringResult
Parameter
Returns

#conversational_text_response

def conversational_text_response() -> ::String
Returns
  • (::String) — The conversational answer-based text response generated by the Server.

#conversational_text_response=

def conversational_text_response=(value) -> ::String
Parameter
  • value (::String) — The conversational answer-based text response generated by the Server.
Returns
  • (::String) — The conversational answer-based text response generated by the Server.

#followup_question

def followup_question() -> ::Google::Cloud::Retail::V2::ConversationalSearchResponse::FollowupQuestion
Returns

#followup_question=

def followup_question=(value) -> ::Google::Cloud::Retail::V2::ConversationalSearchResponse::FollowupQuestion
Parameter
Returns

#refined_search

def refined_search() -> ::Array<::Google::Cloud::Retail::V2::ConversationalSearchResponse::RefinedSearch>
Returns

#refined_search=

def refined_search=(value) -> ::Array<::Google::Cloud::Retail::V2::ConversationalSearchResponse::RefinedSearch>
Parameter
Returns

#state

def state() -> ::Google::Cloud::Retail::V2::ConversationalSearchResponse::State
Returns

#user_query_types

def user_query_types() -> ::Array<::String>
Returns
  • (::Array<::String>) —

    The types Retail classifies the search query as.

    Supported values are:

    • "ORDER_SUPPORT"
    • "SIMPLE_PRODUCT_SEARCH"
    • "INTENT_REFINEMENT"
    • "PRODUCT_DETAILS"
    • "PRODUCT_COMPARISON"
    • "DEALS_AND_COUPONS"
    • "STORE_RELEVANT"
    • "BLOCKLISTED"
    • "BEST_PRODUCT"
    • "RETAIL_SUPPORT"
    • "DISABLED"

#user_query_types=

def user_query_types=(value) -> ::Array<::String>
Parameter
  • value (::Array<::String>) —

    The types Retail classifies the search query as.

    Supported values are:

    • "ORDER_SUPPORT"
    • "SIMPLE_PRODUCT_SEARCH"
    • "INTENT_REFINEMENT"
    • "PRODUCT_DETAILS"
    • "PRODUCT_COMPARISON"
    • "DEALS_AND_COUPONS"
    • "STORE_RELEVANT"
    • "BLOCKLISTED"
    • "BEST_PRODUCT"
    • "RETAIL_SUPPORT"
    • "DISABLED"
Returns
  • (::Array<::String>) —

    The types Retail classifies the search query as.

    Supported values are:

    • "ORDER_SUPPORT"
    • "SIMPLE_PRODUCT_SEARCH"
    • "INTENT_REFINEMENT"
    • "PRODUCT_DETAILS"
    • "PRODUCT_COMPARISON"
    • "DEALS_AND_COUPONS"
    • "STORE_RELEVANT"
    • "BLOCKLISTED"
    • "BEST_PRODUCT"
    • "RETAIL_SUPPORT"
    • "DISABLED"