Class CompleteQueryResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.Builder
- All Implemented Interfaces:
CompleteQueryResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CompleteQueryResponse
public static final class CompleteQueryResponse.Builder
extends com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
implements CompleteQueryResponseOrBuilder
Response message for [CompletionService.CompleteQuery][google.cloud.discoveryengine.v1beta.CompletionService.CompleteQuery] method.Protobuf type
google.cloud.discoveryengine.v1beta.CompleteQueryResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllQuerySuggestions(Iterable<? extends CompleteQueryResponse.QuerySuggestion> values) Results of the matched query suggestions.addQuerySuggestions(int index, CompleteQueryResponse.QuerySuggestion value) Results of the matched query suggestions.addQuerySuggestions(int index, CompleteQueryResponse.QuerySuggestion.Builder builderForValue) Results of the matched query suggestions.Results of the matched query suggestions.addQuerySuggestions(CompleteQueryResponse.QuerySuggestion.Builder builderForValue) Results of the matched query suggestions.Results of the matched query suggestions.addQuerySuggestionsBuilder(int index) Results of the matched query suggestions.build()clear()Results of the matched query suggestions.True if the returned suggestions are all tail suggestions.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetQuerySuggestions(int index) Results of the matched query suggestions.getQuerySuggestionsBuilder(int index) Results of the matched query suggestions.Results of the matched query suggestions.intResults of the matched query suggestions.Results of the matched query suggestions.getQuerySuggestionsOrBuilder(int index) Results of the matched query suggestions.Results of the matched query suggestions.booleanTrue if the returned suggestions are all tail suggestions.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(CompleteQueryResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) removeQuerySuggestions(int index) Results of the matched query suggestions.setQuerySuggestions(int index, CompleteQueryResponse.QuerySuggestion value) Results of the matched query suggestions.setQuerySuggestions(int index, CompleteQueryResponse.QuerySuggestion.Builder builderForValue) Results of the matched query suggestions.setTailMatchTriggered(boolean value) True if the returned suggestions are all tail suggestions.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<CompleteQueryResponse.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<CompleteQueryResponse.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<CompleteQueryResponse.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<CompleteQueryResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.Builder>
-
mergeFrom
public CompleteQueryResponse.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<CompleteQueryResponse.Builder>- Throws:
IOException
-
getQuerySuggestionsList
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;- Specified by:
getQuerySuggestionsListin interfaceCompleteQueryResponseOrBuilder
-
getQuerySuggestionsCount
public int getQuerySuggestionsCount()Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;- Specified by:
getQuerySuggestionsCountin interfaceCompleteQueryResponseOrBuilder
-
getQuerySuggestions
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;- Specified by:
getQuerySuggestionsin interfaceCompleteQueryResponseOrBuilder
-
setQuerySuggestions
public CompleteQueryResponse.Builder setQuerySuggestions(int index, CompleteQueryResponse.QuerySuggestion value) Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
setQuerySuggestions
public CompleteQueryResponse.Builder setQuerySuggestions(int index, CompleteQueryResponse.QuerySuggestion.Builder builderForValue) Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
addQuerySuggestions
public CompleteQueryResponse.Builder addQuerySuggestions(CompleteQueryResponse.QuerySuggestion value) Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
addQuerySuggestions
public CompleteQueryResponse.Builder addQuerySuggestions(int index, CompleteQueryResponse.QuerySuggestion value) Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
addQuerySuggestions
public CompleteQueryResponse.Builder addQuerySuggestions(CompleteQueryResponse.QuerySuggestion.Builder builderForValue) Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
addQuerySuggestions
public CompleteQueryResponse.Builder addQuerySuggestions(int index, CompleteQueryResponse.QuerySuggestion.Builder builderForValue) Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
addAllQuerySuggestions
public CompleteQueryResponse.Builder addAllQuerySuggestions(Iterable<? extends CompleteQueryResponse.QuerySuggestion> values) Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
clearQuerySuggestions
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
removeQuerySuggestions
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
getQuerySuggestionsBuilder
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
getQuerySuggestionsOrBuilder
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;- Specified by:
getQuerySuggestionsOrBuilderin interfaceCompleteQueryResponseOrBuilder
-
getQuerySuggestionsOrBuilderList
public List<? extends CompleteQueryResponse.QuerySuggestionOrBuilder> getQuerySuggestionsOrBuilderList()Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1;- Specified by:
getQuerySuggestionsOrBuilderListin interfaceCompleteQueryResponseOrBuilder
-
addQuerySuggestionsBuilder
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
addQuerySuggestionsBuilder
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
getQuerySuggestionsBuilderList
Results of the matched query suggestions. The result list is ordered and the first result is a top suggestion.
repeated .google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion query_suggestions = 1; -
getTailMatchTriggered
public boolean getTailMatchTriggered()True if the returned suggestions are all tail suggestions. For tail matching to be triggered, include_tail_suggestions in the request must be true and there must be no suggestions that match the full query.
bool tail_match_triggered = 2;- Specified by:
getTailMatchTriggeredin interfaceCompleteQueryResponseOrBuilder- Returns:
- The tailMatchTriggered.
-
setTailMatchTriggered
True if the returned suggestions are all tail suggestions. For tail matching to be triggered, include_tail_suggestions in the request must be true and there must be no suggestions that match the full query.
bool tail_match_triggered = 2;- Parameters:
value- The tailMatchTriggered to set.- Returns:
- This builder for chaining.
-
clearTailMatchTriggered
True if the returned suggestions are all tail suggestions. For tail matching to be triggered, include_tail_suggestions in the request must be true and there must be no suggestions that match the full query.
bool tail_match_triggered = 2;- Returns:
- This builder for chaining.
-