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

Reference documentation and code samples for the Retail V2 API class 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.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#selected_answer

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

#selected_answer=

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

#text_answer

def text_answer() -> ::String
Returns
  • (::String) — This field specifies the incremental input text from the user during the conversational search.

#text_answer=

def text_answer=(value) -> ::String
Parameter
  • value (::String) — This field specifies the incremental input text from the user during the conversational search.
Returns
  • (::String) — This field specifies the incremental input text from the user during the conversational search.