Interface SearchResponse.ConversationalSearchResultOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
SearchResponse.ConversationalSearchResult, SearchResponse.ConversationalSearchResult.Builder
Enclosing class:
SearchResponse

public static interface SearchResponse.ConversationalSearchResultOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getConversationId

      String getConversationId()
       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
       [SearchRequest.ConversationalSearchSpec.conversation_id][google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.conversation_id]
       to restore conversation state in server.
       
      string conversation_id = 1;
      Returns:
      The conversationId.
    • getConversationIdBytes

      com.google.protobuf.ByteString getConversationIdBytes()
       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
       [SearchRequest.ConversationalSearchSpec.conversation_id][google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.conversation_id]
       to restore conversation state in server.
       
      string conversation_id = 1;
      Returns:
      The bytes for conversationId.
    • getRefinedQuery

      String getRefinedQuery()
       The current refined query for the conversational search. This field
       will be used in customer UI that the query in the search bar should be
       replaced with the refined query. For example, if
       [SearchRequest.query][google.cloud.retail.v2alpha.SearchRequest.query] is
       `dress` and next
       [SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer][google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer]
       is `red color`, which does not match any product attribute value filters,
       the refined query will be `dress, red color`.
       
      string refined_query = 2;
      Returns:
      The refinedQuery.
    • getRefinedQueryBytes

      com.google.protobuf.ByteString getRefinedQueryBytes()
       The current refined query for the conversational search. This field
       will be used in customer UI that the query in the search bar should be
       replaced with the refined query. For example, if
       [SearchRequest.query][google.cloud.retail.v2alpha.SearchRequest.query] is
       `dress` and next
       [SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer][google.cloud.retail.v2alpha.SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer]
       is `red color`, which does not match any product attribute value filters,
       the refined query will be `dress, red color`.
       
      string refined_query = 2;
      Returns:
      The bytes for refinedQuery.
    • getAdditionalFiltersList

      Deprecated.
       This field is deprecated but will be kept for backward compatibility.
       There is expected to have only one additional filter and the value will
       be the same to the same as field `additional_filter`.
       
      repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filters = 3 [deprecated = true];
    • getAdditionalFilters

      Deprecated.
       This field is deprecated but will be kept for backward compatibility.
       There is expected to have only one additional filter and the value will
       be the same to the same as field `additional_filter`.
       
      repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filters = 3 [deprecated = true];
    • getAdditionalFiltersCount

      @Deprecated int getAdditionalFiltersCount()
      Deprecated.
       This field is deprecated but will be kept for backward compatibility.
       There is expected to have only one additional filter and the value will
       be the same to the same as field `additional_filter`.
       
      repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filters = 3 [deprecated = true];
    • getAdditionalFiltersOrBuilderList

      Deprecated.
       This field is deprecated but will be kept for backward compatibility.
       There is expected to have only one additional filter and the value will
       be the same to the same as field `additional_filter`.
       
      repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filters = 3 [deprecated = true];
    • getAdditionalFiltersOrBuilder

      Deprecated.
       This field is deprecated but will be kept for backward compatibility.
       There is expected to have only one additional filter and the value will
       be the same to the same as field `additional_filter`.
       
      repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filters = 3 [deprecated = true];
    • getFollowupQuestion

      String getFollowupQuestion()
       The follow-up question. e.g., `What is the color?`
       
      string followup_question = 4;
      Returns:
      The followupQuestion.
    • getFollowupQuestionBytes

      com.google.protobuf.ByteString getFollowupQuestionBytes()
       The follow-up question. e.g., `What is the color?`
       
      string followup_question = 4;
      Returns:
      The bytes for followupQuestion.
    • getSuggestedAnswersList

       The answer options provided to client for the follow-up question.
       
      repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;
    • getSuggestedAnswers

       The answer options provided to client for the follow-up question.
       
      repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;
    • getSuggestedAnswersCount

      int getSuggestedAnswersCount()
       The answer options provided to client for the follow-up question.
       
      repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;
    • getSuggestedAnswersOrBuilderList

      List<? extends SearchResponse.ConversationalSearchResult.SuggestedAnswerOrBuilder> getSuggestedAnswersOrBuilderList()
       The answer options provided to client for the follow-up question.
       
      repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;
    • getSuggestedAnswersOrBuilder

       The answer options provided to client for the follow-up question.
       
      repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;
    • hasAdditionalFilter

      boolean hasAdditionalFilter()
       This is the incremental additional filters implied from the current
       user answer. User should add the suggested addition filters to the
       previous
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter],
       and use the merged filter in the follow up search request.
       
      .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filter = 6;
      Returns:
      Whether the additionalFilter field is set.
    • getAdditionalFilter

       This is the incremental additional filters implied from the current
       user answer. User should add the suggested addition filters to the
       previous
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter],
       and use the merged filter in the follow up search request.
       
      .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filter = 6;
      Returns:
      The additionalFilter.
    • getAdditionalFilterOrBuilder

       This is the incremental additional filters implied from the current
       user answer. User should add the suggested addition filters to the
       previous
       [SearchRequest.filter][google.cloud.retail.v2alpha.SearchRequest.filter],
       and use the merged filter in the follow up search request.
       
      .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filter = 6;