Retail V2 API - Class Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec (v1.2.0)

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

This field specifies all conversational related parameters addition to traditional retail search.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#conversation_id

def conversation_id() -> ::String
Returns
  • (::String) — This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous [ConversationalSearchResult.conversation_id][]. For the initial request, this should be empty.

#conversation_id=

def conversation_id=(value) -> ::String
Parameter
  • value (::String) — This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous [ConversationalSearchResult.conversation_id][]. For the initial request, this should be empty.
Returns
  • (::String) — This field specifies the conversation id, which maintains the state of the conversation between client side and server side. Use the value from the previous [ConversationalSearchResult.conversation_id][]. For the initial request, this should be empty.

#followup_conversation_requested

def followup_conversation_requested() -> ::Boolean
Returns
  • (::Boolean) — This field specifies whether the customer would like to do conversational search. If this field is set to true, conversational related extra information will be returned from server side, including follow-up question, answer options, etc.

#followup_conversation_requested=

def followup_conversation_requested=(value) -> ::Boolean
Parameter
  • value (::Boolean) — This field specifies whether the customer would like to do conversational search. If this field is set to true, conversational related extra information will be returned from server side, including follow-up question, answer options, etc.
Returns
  • (::Boolean) — This field specifies whether the customer would like to do conversational search. If this field is set to true, conversational related extra information will be returned from server side, including follow-up question, answer options, etc.

#user_answer

def user_answer() -> ::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer
Returns

#user_answer=

def user_answer=(value) -> ::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer
Parameter
Returns