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

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

This field specifies the current user answer during the conversational filtering 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::ConversationalSearchRequest::UserAnswer::SelectedAnswer
Returns
  • (::Google::Cloud::Retail::V2::ConversationalSearchRequest::UserAnswer::SelectedAnswer) — Optional. This field specifies the selected answer during the conversational search. This should be a subset of [ConversationalSearchResponse.followup_question.suggested_answers][].

    Note: The following fields are mutually exclusive: selected_answer, text_answer. If a field in that set is populated, all other fields in the set will automatically be cleared.

#selected_answer=

def selected_answer=(value) -> ::Google::Cloud::Retail::V2::ConversationalSearchRequest::UserAnswer::SelectedAnswer
Parameter
  • value (::Google::Cloud::Retail::V2::ConversationalSearchRequest::UserAnswer::SelectedAnswer) — Optional. This field specifies the selected answer during the conversational search. This should be a subset of [ConversationalSearchResponse.followup_question.suggested_answers][].

    Note: The following fields are mutually exclusive: selected_answer, text_answer. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Retail::V2::ConversationalSearchRequest::UserAnswer::SelectedAnswer) — Optional. This field specifies the selected answer during the conversational search. This should be a subset of [ConversationalSearchResponse.followup_question.suggested_answers][].

    Note: The following fields are mutually exclusive: selected_answer, text_answer. If a field in that set is populated, all other fields in the set will automatically be cleared.

#text_answer

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

    Note: The following fields are mutually exclusive: text_answer, selected_answer. If a field in that set is populated, all other fields in the set will automatically be cleared.

#text_answer=

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

    Note: The following fields are mutually exclusive: text_answer, selected_answer. If a field in that set is populated, all other fields in the set will automatically be cleared.

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

    Note: The following fields are mutually exclusive: text_answer, selected_answer. If a field in that set is populated, all other fields in the set will automatically be cleared.