Interface SearchResponse.ConversationalSearchResultOrBuilder (2.54.0)

public static interface SearchResponse.ConversationalSearchResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAdditionalFilter()

public abstract SearchResponse.ConversationalSearchResult.AdditionalFilter 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, and use the merged filter in the follow up search request.

.google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filter = 6;

Returns
Type Description
SearchResponse.ConversationalSearchResult.AdditionalFilter

The additionalFilter.

getAdditionalFilterOrBuilder()

public abstract SearchResponse.ConversationalSearchResult.AdditionalFilterOrBuilder 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, and use the merged filter in the follow up search request.

.google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filter = 6;

Returns
Type Description
SearchResponse.ConversationalSearchResult.AdditionalFilterOrBuilder

getAdditionalFilters(int index) (deprecated)

public abstract SearchResponse.ConversationalSearchResult.AdditionalFilter getAdditionalFilters(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.ConversationalSearchResult.AdditionalFilter

getAdditionalFiltersCount() (deprecated)

public abstract int getAdditionalFiltersCount()

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];

Returns
Type Description
int

getAdditionalFiltersList() (deprecated)

public abstract List<SearchResponse.ConversationalSearchResult.AdditionalFilter> getAdditionalFiltersList()

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];

Returns
Type Description
List<AdditionalFilter>

getAdditionalFiltersOrBuilder(int index) (deprecated)

public abstract SearchResponse.ConversationalSearchResult.AdditionalFilterOrBuilder getAdditionalFiltersOrBuilder(int index)

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];

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.ConversationalSearchResult.AdditionalFilterOrBuilder

getAdditionalFiltersOrBuilderList() (deprecated)

public abstract List<? extends SearchResponse.ConversationalSearchResult.AdditionalFilterOrBuilder> getAdditionalFiltersOrBuilderList()

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];

Returns
Type Description
List<? extends com.google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilterOrBuilder>

getConversationId()

public abstract 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 to restore conversation state in server.

string conversation_id = 1;

Returns
Type Description
String

The conversationId.

getConversationIdBytes()

public abstract 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 to restore conversation state in server.

string conversation_id = 1;

Returns
Type Description
ByteString

The bytes for conversationId.

getFollowupQuestion()

public abstract String getFollowupQuestion()

The follow-up question. e.g., What is the color?

string followup_question = 4;

Returns
Type Description
String

The followupQuestion.

getFollowupQuestionBytes()

public abstract ByteString getFollowupQuestionBytes()

The follow-up question. e.g., What is the color?

string followup_question = 4;

Returns
Type Description
ByteString

The bytes for followupQuestion.

getRefinedQuery()

public abstract 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 is dress and next 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
Type Description
String

The refinedQuery.

getRefinedQueryBytes()

public abstract 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 is dress and next 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
Type Description
ByteString

The bytes for refinedQuery.

getSuggestedAnswers(int index)

public abstract SearchResponse.ConversationalSearchResult.SuggestedAnswer getSuggestedAnswers(int index)

The answer options provided to client for the follow-up question.

repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.ConversationalSearchResult.SuggestedAnswer

getSuggestedAnswersCount()

public abstract int getSuggestedAnswersCount()

The answer options provided to client for the follow-up question.

repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;

Returns
Type Description
int

getSuggestedAnswersList()

public abstract List<SearchResponse.ConversationalSearchResult.SuggestedAnswer> getSuggestedAnswersList()

The answer options provided to client for the follow-up question.

repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;

Returns
Type Description
List<SuggestedAnswer>

getSuggestedAnswersOrBuilder(int index)

public abstract SearchResponse.ConversationalSearchResult.SuggestedAnswerOrBuilder getSuggestedAnswersOrBuilder(int index)

The answer options provided to client for the follow-up question.

repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;

Parameter
Name Description
index int
Returns
Type Description
SearchResponse.ConversationalSearchResult.SuggestedAnswerOrBuilder

getSuggestedAnswersOrBuilderList()

public abstract 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;

Returns
Type Description
List<? extends com.google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswerOrBuilder>

hasAdditionalFilter()

public abstract 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, and use the merged filter in the follow up search request.

.google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filter = 6;

Returns
Type Description
boolean

Whether the additionalFilter field is set.