public static interface SearchResponse.ConversationalSearchResultOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
SearchResponse.ConversationalSearchResult.AdditionalFilter |
getAdditionalFilter()
This is the incremental additional filters implied from the current
user answer.
|
SearchResponse.ConversationalSearchResult.AdditionalFilterOrBuilder |
getAdditionalFilterOrBuilder()
This is the incremental additional filters implied from the current
user answer.
|
SearchResponse.ConversationalSearchResult.AdditionalFilter |
getAdditionalFilters(int index)
Deprecated.
|
int |
getAdditionalFiltersCount()
Deprecated.
|
List<SearchResponse.ConversationalSearchResult.AdditionalFilter> |
getAdditionalFiltersList()
Deprecated.
|
SearchResponse.ConversationalSearchResult.AdditionalFilterOrBuilder |
getAdditionalFiltersOrBuilder(int index)
Deprecated.
|
List<? extends SearchResponse.ConversationalSearchResult.AdditionalFilterOrBuilder> |
getAdditionalFiltersOrBuilderList()
Deprecated.
|
String |
getConversationId()
Conversation UUID.
|
com.google.protobuf.ByteString |
getConversationIdBytes()
Conversation UUID.
|
String |
getFollowupQuestion()
The follow-up question. e.g., `What is the color?
|
com.google.protobuf.ByteString |
getFollowupQuestionBytes()
The follow-up question. e.g., `What is the color?
|
String |
getRefinedQuery()
The current refined query for the conversational search.
|
com.google.protobuf.ByteString |
getRefinedQueryBytes()
The current refined query for the conversational search.
|
SearchResponse.ConversationalSearchResult.SuggestedAnswer |
getSuggestedAnswers(int index)
The answer options provided to client for the follow-up question.
|
int |
getSuggestedAnswersCount()
The answer options provided to client for the follow-up question.
|
List<SearchResponse.ConversationalSearchResult.SuggestedAnswer> |
getSuggestedAnswersList()
The answer options provided to client for the follow-up question.
|
SearchResponse.ConversationalSearchResult.SuggestedAnswerOrBuilder |
getSuggestedAnswersOrBuilder(int index)
The answer options provided to client for the follow-up question.
|
List<? extends SearchResponse.ConversationalSearchResult.SuggestedAnswerOrBuilder> |
getSuggestedAnswersOrBuilderList()
The answer options provided to client for the follow-up question.
|
boolean |
hasAdditionalFilter()
This is the incremental additional filters implied from the current
user answer.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofString 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.v2.SearchRequest.ConversationalSearchSpec.conversation_id] to restore conversation state in server.
string conversation_id = 1;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.v2.SearchRequest.ConversationalSearchSpec.conversation_id] to restore conversation state in server.
string conversation_id = 1;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.v2.SearchRequest.query] is `dress` and next [SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer][google.cloud.retail.v2.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;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.v2.SearchRequest.query] is `dress` and next [SearchRequest.ConversationalSearchSpec.UserAnswer.text_answer][google.cloud.retail.v2.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;@Deprecated 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.v2.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filters = 3 [deprecated = true];
@Deprecated 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.v2.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filters = 3 [deprecated = true];
@Deprecated 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.v2.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filters = 3 [deprecated = true];
@Deprecated 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.v2.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filters = 3 [deprecated = true];
@Deprecated 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.v2.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filters = 3 [deprecated = true];
String getFollowupQuestion()
The follow-up question. e.g., `What is the color?`
string followup_question = 4;com.google.protobuf.ByteString getFollowupQuestionBytes()
The follow-up question. e.g., `What is the color?`
string followup_question = 4;List<SearchResponse.ConversationalSearchResult.SuggestedAnswer> getSuggestedAnswersList()
The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;
SearchResponse.ConversationalSearchResult.SuggestedAnswer getSuggestedAnswers(int index)
The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;
int getSuggestedAnswersCount()
The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;
List<? extends SearchResponse.ConversationalSearchResult.SuggestedAnswerOrBuilder> getSuggestedAnswersOrBuilderList()
The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;
SearchResponse.ConversationalSearchResult.SuggestedAnswerOrBuilder getSuggestedAnswersOrBuilder(int index)
The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;
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.v2.SearchRequest.filter], and use the merged filter in the follow up search request.
.google.cloud.retail.v2.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filter = 6;
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][google.cloud.retail.v2.SearchRequest.filter], and use the merged filter in the follow up search request.
.google.cloud.retail.v2.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filter = 6;
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][google.cloud.retail.v2.SearchRequest.filter], and use the merged filter in the follow up search request.
.google.cloud.retail.v2.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filter = 6;
Copyright © 2025 Google LLC. All rights reserved.