Package com.google.cloud.retail.v2alpha
Class ConversationalSearchResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConversationalSearchResponse.Builder>
com.google.cloud.retail.v2alpha.ConversationalSearchResponse.Builder
- All Implemented Interfaces:
ConversationalSearchResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- ConversationalSearchResponse
public static final class ConversationalSearchResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<ConversationalSearchResponse.Builder>
implements ConversationalSearchResponseOrBuilder
Response message for [ConversationalSearchService.ConversationalSearch][google.cloud.retail.v2alpha.ConversationalSearchService.ConversationalSearch] method.Protobuf type
google.cloud.retail.v2alpha.ConversationalSearchResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllRefinedSearch(Iterable<? extends ConversationalSearchResponse.RefinedSearch> values) The proposed refined search queries.addAllUserQueryTypes(Iterable<String> values) The types Retail classifies the search query as.addRefinedSearch(int index, ConversationalSearchResponse.RefinedSearch value) The proposed refined search queries.addRefinedSearch(int index, ConversationalSearchResponse.RefinedSearch.Builder builderForValue) The proposed refined search queries.The proposed refined search queries.addRefinedSearch(ConversationalSearchResponse.RefinedSearch.Builder builderForValue) The proposed refined search queries.The proposed refined search queries.addRefinedSearchBuilder(int index) The proposed refined search queries.addUserQueryTypes(String value) The types Retail classifies the search query as.addUserQueryTypesBytes(com.google.protobuf.ByteString value) The types Retail classifies the search query as.build()clear()This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.The conversational answer-based text response generated by the Server.Conversation UUID.The conversational followup question generated for Intent refinement.The proposed refined search queries.Output only.The types Retail classifies the search query as.This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.The conversational answer-based text response generated by the Server.com.google.protobuf.ByteStringThe conversational answer-based text response generated by the Server.Conversation UUID.com.google.protobuf.ByteStringConversation UUID.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe conversational followup question generated for Intent refinement.The conversational followup question generated for Intent refinement.The conversational followup question generated for Intent refinement.getRefinedSearch(int index) The proposed refined search queries.getRefinedSearchBuilder(int index) The proposed refined search queries.The proposed refined search queries.intThe proposed refined search queries.The proposed refined search queries.getRefinedSearchOrBuilder(int index) The proposed refined search queries.The proposed refined search queries.getState()Output only.intOutput only.getUserQueryTypes(int index) The types Retail classifies the search query as.com.google.protobuf.ByteStringgetUserQueryTypesBytes(int index) The types Retail classifies the search query as.intThe types Retail classifies the search query as.com.google.protobuf.ProtocolStringListThe types Retail classifies the search query as.booleanThis field specifies all related information that is needed on client side for UI rendering of conversational filtering search.booleanThe conversational followup question generated for Intent refinement.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeConversationalFilteringResult(ConversationalSearchResponse.ConversationalFilteringResult value) This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.The conversational followup question generated for Intent refinement.mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeRefinedSearch(int index) The proposed refined search queries.This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.setConversationalFilteringResult(ConversationalSearchResponse.ConversationalFilteringResult.Builder builderForValue) This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.The conversational answer-based text response generated by the Server.setConversationalTextResponseBytes(com.google.protobuf.ByteString value) The conversational answer-based text response generated by the Server.setConversationId(String value) Conversation UUID.setConversationIdBytes(com.google.protobuf.ByteString value) Conversation UUID.The conversational followup question generated for Intent refinement.setFollowupQuestion(ConversationalSearchResponse.FollowupQuestion.Builder builderForValue) The conversational followup question generated for Intent refinement.setRefinedSearch(int index, ConversationalSearchResponse.RefinedSearch value) The proposed refined search queries.setRefinedSearch(int index, ConversationalSearchResponse.RefinedSearch.Builder builderForValue) The proposed refined search queries.Output only.setStateValue(int value) Output only.setUserQueryTypes(int index, String value) The types Retail classifies the search query as.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<ConversationalSearchResponse.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<ConversationalSearchResponse.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<ConversationalSearchResponse.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<ConversationalSearchResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<ConversationalSearchResponse.Builder>
-
mergeFrom
public ConversationalSearchResponse.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<ConversationalSearchResponse.Builder>- Throws:
IOException
-
getUserQueryTypesList
public com.google.protobuf.ProtocolStringList getUserQueryTypesList()The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Specified by:
getUserQueryTypesListin interfaceConversationalSearchResponseOrBuilder- Returns:
- A list containing the userQueryTypes.
-
getUserQueryTypesCount
public int getUserQueryTypesCount()The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Specified by:
getUserQueryTypesCountin interfaceConversationalSearchResponseOrBuilder- Returns:
- The count of userQueryTypes.
-
getUserQueryTypes
The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Specified by:
getUserQueryTypesin interfaceConversationalSearchResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The userQueryTypes at the given index.
-
getUserQueryTypesBytes
public com.google.protobuf.ByteString getUserQueryTypesBytes(int index) The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Specified by:
getUserQueryTypesBytesin interfaceConversationalSearchResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the userQueryTypes at the given index.
-
setUserQueryTypes
The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Parameters:
index- The index to set the value at.value- The userQueryTypes to set.- Returns:
- This builder for chaining.
-
addUserQueryTypes
The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Parameters:
value- The userQueryTypes to add.- Returns:
- This builder for chaining.
-
addAllUserQueryTypes
The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Parameters:
values- The userQueryTypes to add.- Returns:
- This builder for chaining.
-
clearUserQueryTypes
The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Returns:
- This builder for chaining.
-
addUserQueryTypesBytes
public ConversationalSearchResponse.Builder addUserQueryTypesBytes(com.google.protobuf.ByteString value) The types Retail classifies the search query as. Supported values are: - "ORDER_SUPPORT" - "SIMPLE_PRODUCT_SEARCH" - "INTENT_REFINEMENT" - "PRODUCT_DETAILS" - "PRODUCT_COMPARISON" - "DEALS_AND_COUPONS" - "STORE_RELEVANT" - "BLOCKLISTED" - "BEST_PRODUCT" - "RETAIL_SUPPORT" - "DISABLED" clang-format off clang-format on
repeated string user_query_types = 10;- Parameters:
value- The bytes of the userQueryTypes to add.- Returns:
- This builder for chaining.
-
getConversationalTextResponse
The conversational answer-based text response generated by the Server.
string conversational_text_response = 2;- Specified by:
getConversationalTextResponsein interfaceConversationalSearchResponseOrBuilder- Returns:
- The conversationalTextResponse.
-
getConversationalTextResponseBytes
public com.google.protobuf.ByteString getConversationalTextResponseBytes()The conversational answer-based text response generated by the Server.
string conversational_text_response = 2;- Specified by:
getConversationalTextResponseBytesin interfaceConversationalSearchResponseOrBuilder- Returns:
- The bytes for conversationalTextResponse.
-
setConversationalTextResponse
The conversational answer-based text response generated by the Server.
string conversational_text_response = 2;- Parameters:
value- The conversationalTextResponse to set.- Returns:
- This builder for chaining.
-
clearConversationalTextResponse
The conversational answer-based text response generated by the Server.
string conversational_text_response = 2;- Returns:
- This builder for chaining.
-
setConversationalTextResponseBytes
public ConversationalSearchResponse.Builder setConversationalTextResponseBytes(com.google.protobuf.ByteString value) The conversational answer-based text response generated by the Server.
string conversational_text_response = 2;- Parameters:
value- The bytes for conversationalTextResponse to set.- Returns:
- This builder for chaining.
-
hasFollowupQuestion
public boolean hasFollowupQuestion()The conversational followup question generated for Intent refinement.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.FollowupQuestion followup_question = 3;- Specified by:
hasFollowupQuestionin interfaceConversationalSearchResponseOrBuilder- Returns:
- Whether the followupQuestion field is set.
-
getFollowupQuestion
The conversational followup question generated for Intent refinement.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.FollowupQuestion followup_question = 3;- Specified by:
getFollowupQuestionin interfaceConversationalSearchResponseOrBuilder- Returns:
- The followupQuestion.
-
setFollowupQuestion
public ConversationalSearchResponse.Builder setFollowupQuestion(ConversationalSearchResponse.FollowupQuestion value) The conversational followup question generated for Intent refinement.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.FollowupQuestion followup_question = 3; -
setFollowupQuestion
public ConversationalSearchResponse.Builder setFollowupQuestion(ConversationalSearchResponse.FollowupQuestion.Builder builderForValue) The conversational followup question generated for Intent refinement.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.FollowupQuestion followup_question = 3; -
mergeFollowupQuestion
public ConversationalSearchResponse.Builder mergeFollowupQuestion(ConversationalSearchResponse.FollowupQuestion value) The conversational followup question generated for Intent refinement.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.FollowupQuestion followup_question = 3; -
clearFollowupQuestion
The conversational followup question generated for Intent refinement.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.FollowupQuestion followup_question = 3; -
getFollowupQuestionBuilder
The conversational followup question generated for Intent refinement.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.FollowupQuestion followup_question = 3; -
getFollowupQuestionOrBuilder
The conversational followup question generated for Intent refinement.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.FollowupQuestion followup_question = 3;- Specified by:
getFollowupQuestionOrBuilderin interfaceConversationalSearchResponseOrBuilder
-
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 [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2alpha.ConversationalSearchRequest.conversation_id] to restore conversation state in server.
string conversation_id = 4;- Specified by:
getConversationIdin interfaceConversationalSearchResponseOrBuilder- 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 [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2alpha.ConversationalSearchRequest.conversation_id] to restore conversation state in server.
string conversation_id = 4;- Specified by:
getConversationIdBytesin interfaceConversationalSearchResponseOrBuilder- 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 [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2alpha.ConversationalSearchRequest.conversation_id] to restore conversation state in server.
string conversation_id = 4;- 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 [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2alpha.ConversationalSearchRequest.conversation_id] to restore conversation state in server.
string conversation_id = 4;- Returns:
- This builder for chaining.
-
setConversationIdBytes
public ConversationalSearchResponse.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 [ConversationalSearchRequest.conversation_id][google.cloud.retail.v2alpha.ConversationalSearchRequest.conversation_id] to restore conversation state in server.
string conversation_id = 4;- Parameters:
value- The bytes for conversationId to set.- Returns:
- This builder for chaining.
-
getRefinedSearchList
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6;- Specified by:
getRefinedSearchListin interfaceConversationalSearchResponseOrBuilder
-
getRefinedSearchCount
public int getRefinedSearchCount()The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6;- Specified by:
getRefinedSearchCountin interfaceConversationalSearchResponseOrBuilder
-
getRefinedSearch
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6;- Specified by:
getRefinedSearchin interfaceConversationalSearchResponseOrBuilder
-
setRefinedSearch
public ConversationalSearchResponse.Builder setRefinedSearch(int index, ConversationalSearchResponse.RefinedSearch value) The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
setRefinedSearch
public ConversationalSearchResponse.Builder setRefinedSearch(int index, ConversationalSearchResponse.RefinedSearch.Builder builderForValue) The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
addRefinedSearch
public ConversationalSearchResponse.Builder addRefinedSearch(ConversationalSearchResponse.RefinedSearch value) The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
addRefinedSearch
public ConversationalSearchResponse.Builder addRefinedSearch(int index, ConversationalSearchResponse.RefinedSearch value) The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
addRefinedSearch
public ConversationalSearchResponse.Builder addRefinedSearch(ConversationalSearchResponse.RefinedSearch.Builder builderForValue) The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
addRefinedSearch
public ConversationalSearchResponse.Builder addRefinedSearch(int index, ConversationalSearchResponse.RefinedSearch.Builder builderForValue) The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
addAllRefinedSearch
public ConversationalSearchResponse.Builder addAllRefinedSearch(Iterable<? extends ConversationalSearchResponse.RefinedSearch> values) The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
clearRefinedSearch
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
removeRefinedSearch
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
getRefinedSearchBuilder
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
getRefinedSearchOrBuilder
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6;- Specified by:
getRefinedSearchOrBuilderin interfaceConversationalSearchResponseOrBuilder
-
getRefinedSearchOrBuilderList
public List<? extends ConversationalSearchResponse.RefinedSearchOrBuilder> getRefinedSearchOrBuilderList()The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6;- Specified by:
getRefinedSearchOrBuilderListin interfaceConversationalSearchResponseOrBuilder
-
addRefinedSearchBuilder
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
addRefinedSearchBuilder
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
getRefinedSearchBuilderList
The proposed refined search queries. They can be used to fetch the relevant search results. When using CONVERSATIONAL_FILTER_ONLY mode, the refined_query from search response will be populated here.
repeated .google.cloud.retail.v2alpha.ConversationalSearchResponse.RefinedSearch refined_search = 6; -
hasConversationalFilteringResult
public boolean hasConversationalFilteringResult()This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7;- Specified by:
hasConversationalFilteringResultin interfaceConversationalSearchResponseOrBuilder- Returns:
- Whether the conversationalFilteringResult field is set.
-
getConversationalFilteringResult
public ConversationalSearchResponse.ConversationalFilteringResult getConversationalFilteringResult()This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7;- Specified by:
getConversationalFilteringResultin interfaceConversationalSearchResponseOrBuilder- Returns:
- The conversationalFilteringResult.
-
setConversationalFilteringResult
public ConversationalSearchResponse.Builder setConversationalFilteringResult(ConversationalSearchResponse.ConversationalFilteringResult value) This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; -
setConversationalFilteringResult
public ConversationalSearchResponse.Builder setConversationalFilteringResult(ConversationalSearchResponse.ConversationalFilteringResult.Builder builderForValue) This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; -
mergeConversationalFilteringResult
public ConversationalSearchResponse.Builder mergeConversationalFilteringResult(ConversationalSearchResponse.ConversationalFilteringResult value) This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; -
clearConversationalFilteringResult
This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; -
getConversationalFilteringResultBuilder
public ConversationalSearchResponse.ConversationalFilteringResult.Builder getConversationalFilteringResultBuilder()This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7; -
getConversationalFilteringResultOrBuilder
public ConversationalSearchResponse.ConversationalFilteringResultOrBuilder getConversationalFilteringResultOrBuilder()This field specifies all related information that is needed on client side for UI rendering of conversational filtering search.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.ConversationalFilteringResult conversational_filtering_result = 7;- Specified by:
getConversationalFilteringResultOrBuilderin interfaceConversationalSearchResponseOrBuilder
-
getStateValue
public int getStateValue()Output only. The state of the response generation.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStateValuein interfaceConversationalSearchResponseOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
Output only. The state of the response generation.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
Output only. The state of the response generation.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getStatein interfaceConversationalSearchResponseOrBuilder- Returns:
- The state.
-
setState
Output only. The state of the response generation.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
Output only. The state of the response generation.
.google.cloud.retail.v2alpha.ConversationalSearchResponse.State state = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-