Package com.google.cloud.retail.v2alpha
Class SearchResponse.ConversationalSearchResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchResponse.ConversationalSearchResult.Builder>
com.google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.Builder
- All Implemented Interfaces:
SearchResponse.ConversationalSearchResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchResponse.ConversationalSearchResult
public static final class SearchResponse.ConversationalSearchResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchResponse.ConversationalSearchResult.Builder>
implements SearchResponse.ConversationalSearchResultOrBuilder
This field specifies all related information that is needed on client side for UI rendering of conversational retail search.Protobuf type
google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.addAdditionalFilters(int index, SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder builderForValue) Deprecated.Deprecated.addAdditionalFilters(SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder builderForValue) Deprecated.Deprecated.addAdditionalFiltersBuilder(int index) Deprecated.addAllAdditionalFilters(Iterable<? extends SearchResponse.ConversationalSearchResult.AdditionalFilter> values) Deprecated.addAllSuggestedAnswers(Iterable<? extends SearchResponse.ConversationalSearchResult.SuggestedAnswer> values) The answer options provided to client for the follow-up question.addSuggestedAnswers(int index, SearchResponse.ConversationalSearchResult.SuggestedAnswer value) The answer options provided to client for the follow-up question.addSuggestedAnswers(int index, SearchResponse.ConversationalSearchResult.SuggestedAnswer.Builder builderForValue) The answer options provided to client for the follow-up question.The answer options provided to client for the follow-up question.addSuggestedAnswers(SearchResponse.ConversationalSearchResult.SuggestedAnswer.Builder builderForValue) The answer options provided to client for the follow-up question.The answer options provided to client for the follow-up question.addSuggestedAnswersBuilder(int index) The answer options provided to client for the follow-up question.build()clear()This is the incremental additional filters implied from the current user answer.Deprecated.Conversation UUID.The follow-up question. e.g., `What is the color?The current refined query for the conversational search.The answer options provided to client for the follow-up question.This is the incremental additional filters implied from the current user answer.This is the incremental additional filters implied from the current user answer.This is the incremental additional filters implied from the current user answer.getAdditionalFilters(int index) Deprecated.getAdditionalFiltersBuilder(int index) Deprecated.Deprecated.intDeprecated.Deprecated.getAdditionalFiltersOrBuilder(int index) Deprecated.Deprecated.Conversation UUID.com.google.protobuf.ByteStringConversation UUID.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe follow-up question. e.g., `What is the color?com.google.protobuf.ByteStringThe follow-up question. e.g., `What is the color?The current refined query for the conversational search.com.google.protobuf.ByteStringThe current refined query for the conversational search.getSuggestedAnswers(int index) The answer options provided to client for the follow-up question.getSuggestedAnswersBuilder(int index) The answer options provided to client for the follow-up question.The answer options provided to client for the follow-up question.intThe answer options provided to client for the follow-up question.The answer options provided to client for the follow-up question.getSuggestedAnswersOrBuilder(int index) The answer options provided to client for the follow-up question.The answer options provided to client for the follow-up question.booleanThis is the incremental additional filters implied from the current user answer.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanThis is the incremental additional filters implied from the current user answer.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeAdditionalFilters(int index) Deprecated.removeSuggestedAnswers(int index) The answer options provided to client for the follow-up question.This is the incremental additional filters implied from the current user answer.setAdditionalFilter(SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder builderForValue) This is the incremental additional filters implied from the current user answer.Deprecated.setAdditionalFilters(int index, SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder builderForValue) Deprecated.setConversationId(String value) Conversation UUID.setConversationIdBytes(com.google.protobuf.ByteString value) Conversation UUID.setFollowupQuestion(String value) The follow-up question. e.g., `What is the color?setFollowupQuestionBytes(com.google.protobuf.ByteString value) The follow-up question. e.g., `What is the color?setRefinedQuery(String value) The current refined query for the conversational search.setRefinedQueryBytes(com.google.protobuf.ByteString value) The current refined query for the conversational search.setSuggestedAnswers(int index, SearchResponse.ConversationalSearchResult.SuggestedAnswer value) The answer options provided to client for the follow-up question.setSuggestedAnswers(int index, SearchResponse.ConversationalSearchResult.SuggestedAnswer.Builder builderForValue) The answer options provided to client for the follow-up question.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.ConversationalSearchResult.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.ConversationalSearchResult.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.ConversationalSearchResult.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public SearchResponse.ConversationalSearchResult.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchResponse.ConversationalSearchResult.Builder>
-
mergeFrom
public SearchResponse.ConversationalSearchResult.Builder mergeFrom(SearchResponse.ConversationalSearchResult other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.ConversationalSearchResult.Builder>
-
mergeFrom
public SearchResponse.ConversationalSearchResult.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SearchResponse.ConversationalSearchResult.Builder>- Throws:
IOException
-
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;- Specified by:
getConversationIdin interfaceSearchResponse.ConversationalSearchResultOrBuilder- Returns:
- The conversationId.
-
getConversationIdBytes
public 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;- Specified by:
getConversationIdBytesin interfaceSearchResponse.ConversationalSearchResultOrBuilder- Returns:
- The bytes for conversationId.
-
setConversationId
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;- Parameters:
value- The conversationId to set.- Returns:
- This builder for chaining.
-
clearConversationId
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:
- This builder for chaining.
-
setConversationIdBytes
public SearchResponse.ConversationalSearchResult.Builder setConversationIdBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes for conversationId to set.- Returns:
- This builder for chaining.
-
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;- Specified by:
getRefinedQueryin interfaceSearchResponse.ConversationalSearchResultOrBuilder- Returns:
- The refinedQuery.
-
getRefinedQueryBytes
public 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;- Specified by:
getRefinedQueryBytesin interfaceSearchResponse.ConversationalSearchResultOrBuilder- Returns:
- The bytes for refinedQuery.
-
setRefinedQuery
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;- Parameters:
value- The refinedQuery to set.- Returns:
- This builder for chaining.
-
clearRefinedQuery
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:
- This builder for chaining.
-
setRefinedQueryBytes
public SearchResponse.ConversationalSearchResult.Builder setRefinedQueryBytes(com.google.protobuf.ByteString value) 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;- Parameters:
value- The bytes for refinedQuery to set.- Returns:
- This builder for chaining.
-
getAdditionalFiltersList
@Deprecated public List<SearchResponse.ConversationalSearchResult.AdditionalFilter> 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];- Specified by:
getAdditionalFiltersListin interfaceSearchResponse.ConversationalSearchResultOrBuilder
-
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];- Specified by:
getAdditionalFiltersCountin interfaceSearchResponse.ConversationalSearchResultOrBuilder
-
getAdditionalFilters
@Deprecated public SearchResponse.ConversationalSearchResult.AdditionalFilter getAdditionalFilters(int index) 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];- Specified by:
getAdditionalFiltersin interfaceSearchResponse.ConversationalSearchResultOrBuilder
-
setAdditionalFilters
@Deprecated public SearchResponse.ConversationalSearchResult.Builder setAdditionalFilters(int index, SearchResponse.ConversationalSearchResult.AdditionalFilter value) 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]; -
setAdditionalFilters
@Deprecated public SearchResponse.ConversationalSearchResult.Builder setAdditionalFilters(int index, SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder builderForValue) 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]; -
addAdditionalFilters
@Deprecated public SearchResponse.ConversationalSearchResult.Builder addAdditionalFilters(SearchResponse.ConversationalSearchResult.AdditionalFilter value) 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]; -
addAdditionalFilters
@Deprecated public SearchResponse.ConversationalSearchResult.Builder addAdditionalFilters(int index, SearchResponse.ConversationalSearchResult.AdditionalFilter value) 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]; -
addAdditionalFilters
@Deprecated public SearchResponse.ConversationalSearchResult.Builder addAdditionalFilters(SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder builderForValue) 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]; -
addAdditionalFilters
@Deprecated public SearchResponse.ConversationalSearchResult.Builder addAdditionalFilters(int index, SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder builderForValue) 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]; -
addAllAdditionalFilters
@Deprecated public SearchResponse.ConversationalSearchResult.Builder addAllAdditionalFilters(Iterable<? extends SearchResponse.ConversationalSearchResult.AdditionalFilter> values) 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]; -
clearAdditionalFilters
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]; -
removeAdditionalFilters
@Deprecated public SearchResponse.ConversationalSearchResult.Builder removeAdditionalFilters(int index) 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]; -
getAdditionalFiltersBuilder
@Deprecated public SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder getAdditionalFiltersBuilder(int index) 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 public SearchResponse.ConversationalSearchResult.AdditionalFilterOrBuilder getAdditionalFiltersOrBuilder(int index) 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];- Specified by:
getAdditionalFiltersOrBuilderin interfaceSearchResponse.ConversationalSearchResultOrBuilder
-
getAdditionalFiltersOrBuilderList
@Deprecated public List<? extends SearchResponse.ConversationalSearchResult.AdditionalFilterOrBuilder> 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];- Specified by:
getAdditionalFiltersOrBuilderListin interfaceSearchResponse.ConversationalSearchResultOrBuilder
-
addAdditionalFiltersBuilder
@Deprecated public SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder addAdditionalFiltersBuilder()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]; -
addAdditionalFiltersBuilder
@Deprecated public SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder addAdditionalFiltersBuilder(int index) 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]; -
getAdditionalFiltersBuilderList
@Deprecated public List<SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder> getAdditionalFiltersBuilderList()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
The follow-up question. e.g., `What is the color?`
string followup_question = 4;- Specified by:
getFollowupQuestionin interfaceSearchResponse.ConversationalSearchResultOrBuilder- Returns:
- The followupQuestion.
-
getFollowupQuestionBytes
public com.google.protobuf.ByteString getFollowupQuestionBytes()The follow-up question. e.g., `What is the color?`
string followup_question = 4;- Specified by:
getFollowupQuestionBytesin interfaceSearchResponse.ConversationalSearchResultOrBuilder- Returns:
- The bytes for followupQuestion.
-
setFollowupQuestion
The follow-up question. e.g., `What is the color?`
string followup_question = 4;- Parameters:
value- The followupQuestion to set.- Returns:
- This builder for chaining.
-
clearFollowupQuestion
The follow-up question. e.g., `What is the color?`
string followup_question = 4;- Returns:
- This builder for chaining.
-
setFollowupQuestionBytes
public SearchResponse.ConversationalSearchResult.Builder setFollowupQuestionBytes(com.google.protobuf.ByteString value) The follow-up question. e.g., `What is the color?`
string followup_question = 4;- Parameters:
value- The bytes for followupQuestion to set.- Returns:
- This builder for chaining.
-
getSuggestedAnswersList
The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;- Specified by:
getSuggestedAnswersListin interfaceSearchResponse.ConversationalSearchResultOrBuilder
-
getSuggestedAnswersCount
public int getSuggestedAnswersCount()The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;- Specified by:
getSuggestedAnswersCountin interfaceSearchResponse.ConversationalSearchResultOrBuilder
-
getSuggestedAnswers
The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5;- Specified by:
getSuggestedAnswersin interfaceSearchResponse.ConversationalSearchResultOrBuilder
-
setSuggestedAnswers
public SearchResponse.ConversationalSearchResult.Builder setSuggestedAnswers(int index, SearchResponse.ConversationalSearchResult.SuggestedAnswer value) The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
setSuggestedAnswers
public SearchResponse.ConversationalSearchResult.Builder setSuggestedAnswers(int index, SearchResponse.ConversationalSearchResult.SuggestedAnswer.Builder builderForValue) The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
addSuggestedAnswers
public SearchResponse.ConversationalSearchResult.Builder addSuggestedAnswers(SearchResponse.ConversationalSearchResult.SuggestedAnswer value) The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
addSuggestedAnswers
public SearchResponse.ConversationalSearchResult.Builder addSuggestedAnswers(int index, SearchResponse.ConversationalSearchResult.SuggestedAnswer value) The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
addSuggestedAnswers
public SearchResponse.ConversationalSearchResult.Builder addSuggestedAnswers(SearchResponse.ConversationalSearchResult.SuggestedAnswer.Builder builderForValue) The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
addSuggestedAnswers
public SearchResponse.ConversationalSearchResult.Builder addSuggestedAnswers(int index, SearchResponse.ConversationalSearchResult.SuggestedAnswer.Builder builderForValue) The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
addAllSuggestedAnswers
public SearchResponse.ConversationalSearchResult.Builder addAllSuggestedAnswers(Iterable<? extends SearchResponse.ConversationalSearchResult.SuggestedAnswer> values) The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
clearSuggestedAnswers
The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
removeSuggestedAnswers
The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
getSuggestedAnswersBuilder
public SearchResponse.ConversationalSearchResult.SuggestedAnswer.Builder getSuggestedAnswersBuilder(int index) The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
getSuggestedAnswersOrBuilder
public 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;- Specified by:
getSuggestedAnswersOrBuilderin interfaceSearchResponse.ConversationalSearchResultOrBuilder
-
getSuggestedAnswersOrBuilderList
public 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;- Specified by:
getSuggestedAnswersOrBuilderListin interfaceSearchResponse.ConversationalSearchResultOrBuilder
-
addSuggestedAnswersBuilder
public SearchResponse.ConversationalSearchResult.SuggestedAnswer.Builder addSuggestedAnswersBuilder()The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
addSuggestedAnswersBuilder
public SearchResponse.ConversationalSearchResult.SuggestedAnswer.Builder addSuggestedAnswersBuilder(int index) The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
getSuggestedAnswersBuilderList
public List<SearchResponse.ConversationalSearchResult.SuggestedAnswer.Builder> getSuggestedAnswersBuilderList()The answer options provided to client for the follow-up question.
repeated .google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.SuggestedAnswer suggested_answers = 5; -
hasAdditionalFilter
public 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;- Specified by:
hasAdditionalFilterin interfaceSearchResponse.ConversationalSearchResultOrBuilder- 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;- Specified by:
getAdditionalFilterin interfaceSearchResponse.ConversationalSearchResultOrBuilder- Returns:
- The additionalFilter.
-
setAdditionalFilter
public SearchResponse.ConversationalSearchResult.Builder setAdditionalFilter(SearchResponse.ConversationalSearchResult.AdditionalFilter value) 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; -
setAdditionalFilter
public SearchResponse.ConversationalSearchResult.Builder setAdditionalFilter(SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder builderForValue) 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; -
mergeAdditionalFilter
public SearchResponse.ConversationalSearchResult.Builder mergeAdditionalFilter(SearchResponse.ConversationalSearchResult.AdditionalFilter value) 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; -
clearAdditionalFilter
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; -
getAdditionalFilterBuilder
public SearchResponse.ConversationalSearchResult.AdditionalFilter.Builder getAdditionalFilterBuilder()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; -
getAdditionalFilterOrBuilder
public 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.v2alpha.SearchRequest.filter], and use the merged filter in the follow up search request.
.google.cloud.retail.v2alpha.SearchResponse.ConversationalSearchResult.AdditionalFilter additional_filter = 6;- Specified by:
getAdditionalFilterOrBuilderin interfaceSearchResponse.ConversationalSearchResultOrBuilder
-