Class SearchResponse.GuidedSearchResult.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SearchResponse.GuidedSearchResult.Builder>
com.google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.Builder
- All Implemented Interfaces:
SearchResponse.GuidedSearchResultOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SearchResponse.GuidedSearchResult
public static final class SearchResponse.GuidedSearchResult.Builder
extends com.google.protobuf.GeneratedMessage.Builder<SearchResponse.GuidedSearchResult.Builder>
implements SearchResponse.GuidedSearchResultOrBuilder
Guided search result. The guided search helps user to refine the search results and narrow down to the real needs from a broaded search results.Protobuf type
google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult-
Method Summary
Modifier and TypeMethodDescriptionaddAllFollowUpQuestions(Iterable<String> values) Suggested follow-up questions.addAllRefinementAttributes(Iterable<? extends SearchResponse.GuidedSearchResult.RefinementAttribute> values) A list of ranked refinement attributes.addFollowUpQuestions(String value) Suggested follow-up questions.addFollowUpQuestionsBytes(com.google.protobuf.ByteString value) Suggested follow-up questions.addRefinementAttributes(int index, SearchResponse.GuidedSearchResult.RefinementAttribute value) A list of ranked refinement attributes.addRefinementAttributes(int index, SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) A list of ranked refinement attributes.A list of ranked refinement attributes.addRefinementAttributes(SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) A list of ranked refinement attributes.A list of ranked refinement attributes.addRefinementAttributesBuilder(int index) A list of ranked refinement attributes.build()clear()Suggested follow-up questions.A list of ranked refinement attributes.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetFollowUpQuestions(int index) Suggested follow-up questions.com.google.protobuf.ByteStringgetFollowUpQuestionsBytes(int index) Suggested follow-up questions.intSuggested follow-up questions.com.google.protobuf.ProtocolStringListSuggested follow-up questions.getRefinementAttributes(int index) A list of ranked refinement attributes.getRefinementAttributesBuilder(int index) A list of ranked refinement attributes.A list of ranked refinement attributes.intA list of ranked refinement attributes.A list of ranked refinement attributes.getRefinementAttributesOrBuilder(int index) A list of ranked refinement attributes.A list of ranked refinement attributes.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeRefinementAttributes(int index) A list of ranked refinement attributes.setFollowUpQuestions(int index, String value) Suggested follow-up questions.setRefinementAttributes(int index, SearchResponse.GuidedSearchResult.RefinementAttribute value) A list of ranked refinement attributes.setRefinementAttributes(int index, SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) A list of ranked refinement attributes.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.GuidedSearchResult.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.GuidedSearchResult.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.GuidedSearchResult.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<SearchResponse.GuidedSearchResult.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<SearchResponse.GuidedSearchResult.Builder>
-
mergeFrom
public SearchResponse.GuidedSearchResult.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.GuidedSearchResult.Builder>- Throws:
IOException
-
getRefinementAttributesList
A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1;- Specified by:
getRefinementAttributesListin interfaceSearchResponse.GuidedSearchResultOrBuilder
-
getRefinementAttributesCount
public int getRefinementAttributesCount()A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1;- Specified by:
getRefinementAttributesCountin interfaceSearchResponse.GuidedSearchResultOrBuilder
-
getRefinementAttributes
A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1;- Specified by:
getRefinementAttributesin interfaceSearchResponse.GuidedSearchResultOrBuilder
-
setRefinementAttributes
public SearchResponse.GuidedSearchResult.Builder setRefinementAttributes(int index, SearchResponse.GuidedSearchResult.RefinementAttribute value) A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
setRefinementAttributes
public SearchResponse.GuidedSearchResult.Builder setRefinementAttributes(int index, SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
addRefinementAttributes
public SearchResponse.GuidedSearchResult.Builder addRefinementAttributes(SearchResponse.GuidedSearchResult.RefinementAttribute value) A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
addRefinementAttributes
public SearchResponse.GuidedSearchResult.Builder addRefinementAttributes(int index, SearchResponse.GuidedSearchResult.RefinementAttribute value) A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
addRefinementAttributes
public SearchResponse.GuidedSearchResult.Builder addRefinementAttributes(SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
addRefinementAttributes
public SearchResponse.GuidedSearchResult.Builder addRefinementAttributes(int index, SearchResponse.GuidedSearchResult.RefinementAttribute.Builder builderForValue) A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
addAllRefinementAttributes
public SearchResponse.GuidedSearchResult.Builder addAllRefinementAttributes(Iterable<? extends SearchResponse.GuidedSearchResult.RefinementAttribute> values) A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
clearRefinementAttributes
A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
removeRefinementAttributes
A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
getRefinementAttributesBuilder
public SearchResponse.GuidedSearchResult.RefinementAttribute.Builder getRefinementAttributesBuilder(int index) A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
getRefinementAttributesOrBuilder
public SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder getRefinementAttributesOrBuilder(int index) A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1;- Specified by:
getRefinementAttributesOrBuilderin interfaceSearchResponse.GuidedSearchResultOrBuilder
-
getRefinementAttributesOrBuilderList
public List<? extends SearchResponse.GuidedSearchResult.RefinementAttributeOrBuilder> getRefinementAttributesOrBuilderList()A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1;- Specified by:
getRefinementAttributesOrBuilderListin interfaceSearchResponse.GuidedSearchResultOrBuilder
-
addRefinementAttributesBuilder
public SearchResponse.GuidedSearchResult.RefinementAttribute.Builder addRefinementAttributesBuilder()A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
addRefinementAttributesBuilder
public SearchResponse.GuidedSearchResult.RefinementAttribute.Builder addRefinementAttributesBuilder(int index) A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
getRefinementAttributesBuilderList
public List<SearchResponse.GuidedSearchResult.RefinementAttribute.Builder> getRefinementAttributesBuilderList()A list of ranked refinement attributes.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.GuidedSearchResult.RefinementAttribute refinement_attributes = 1; -
getFollowUpQuestionsList
public com.google.protobuf.ProtocolStringList getFollowUpQuestionsList()Suggested follow-up questions.
repeated string follow_up_questions = 2;- Specified by:
getFollowUpQuestionsListin interfaceSearchResponse.GuidedSearchResultOrBuilder- Returns:
- A list containing the followUpQuestions.
-
getFollowUpQuestionsCount
public int getFollowUpQuestionsCount()Suggested follow-up questions.
repeated string follow_up_questions = 2;- Specified by:
getFollowUpQuestionsCountin interfaceSearchResponse.GuidedSearchResultOrBuilder- Returns:
- The count of followUpQuestions.
-
getFollowUpQuestions
Suggested follow-up questions.
repeated string follow_up_questions = 2;- Specified by:
getFollowUpQuestionsin interfaceSearchResponse.GuidedSearchResultOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The followUpQuestions at the given index.
-
getFollowUpQuestionsBytes
public com.google.protobuf.ByteString getFollowUpQuestionsBytes(int index) Suggested follow-up questions.
repeated string follow_up_questions = 2;- Specified by:
getFollowUpQuestionsBytesin interfaceSearchResponse.GuidedSearchResultOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the followUpQuestions at the given index.
-
setFollowUpQuestions
Suggested follow-up questions.
repeated string follow_up_questions = 2;- Parameters:
index- The index to set the value at.value- The followUpQuestions to set.- Returns:
- This builder for chaining.
-
addFollowUpQuestions
Suggested follow-up questions.
repeated string follow_up_questions = 2;- Parameters:
value- The followUpQuestions to add.- Returns:
- This builder for chaining.
-
addAllFollowUpQuestions
Suggested follow-up questions.
repeated string follow_up_questions = 2;- Parameters:
values- The followUpQuestions to add.- Returns:
- This builder for chaining.
-
clearFollowUpQuestions
Suggested follow-up questions.
repeated string follow_up_questions = 2;- Returns:
- This builder for chaining.
-
addFollowUpQuestionsBytes
public SearchResponse.GuidedSearchResult.Builder addFollowUpQuestionsBytes(com.google.protobuf.ByteString value) Suggested follow-up questions.
repeated string follow_up_questions = 2;- Parameters:
value- The bytes of the followUpQuestions to add.- Returns:
- This builder for chaining.
-