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
- (::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer) — This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.
#user_answer=
def user_answer=(value) -> ::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer
Parameter
- value (::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer) — This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.
Returns
- (::Google::Cloud::Retail::V2::SearchRequest::ConversationalSearchSpec::UserAnswer) — This field specifies the current user answer during the conversational search. This can be either user selected from suggested answers or user input plain text.