public static final class CompleteQueryResponse.Builder extends GeneratedMessageV3.Builder<CompleteQueryResponse.Builder> implements CompleteQueryResponseOrBuilder
Response message for
CompletionService.CompleteQuery
method.
Protobuf type google.cloud.discoveryengine.v1beta.CompleteQueryResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllQuerySuggestions(Iterable<? extends CompleteQueryResponse.QuerySuggestion> values)
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;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestion>
|
addQuerySuggestions(CompleteQueryResponse.QuerySuggestion value)
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(CompleteQueryResponse.QuerySuggestion.Builder builderForValue)
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(int index, CompleteQueryResponse.QuerySuggestion value)
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(int index, CompleteQueryResponse.QuerySuggestion.Builder builderForValue)
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;
addQuerySuggestionsBuilder()
public CompleteQueryResponse.QuerySuggestion.Builder 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(int index)
public CompleteQueryResponse.QuerySuggestion.Builder addQuerySuggestionsBuilder(int index)
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;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CompleteQueryResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public CompleteQueryResponse build()
buildPartial()
public CompleteQueryResponse buildPartial()
clear()
public CompleteQueryResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CompleteQueryResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CompleteQueryResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearQuerySuggestions()
public CompleteQueryResponse.Builder 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;
clearTailMatchTriggered()
public CompleteQueryResponse.Builder 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;
clone()
public CompleteQueryResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public CompleteQueryResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getQuerySuggestions(int index)
public CompleteQueryResponse.QuerySuggestion getQuerySuggestions(int index)
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;
Parameter |
Name |
Description |
index |
int
|
getQuerySuggestionsBuilder(int index)
public CompleteQueryResponse.QuerySuggestion.Builder getQuerySuggestionsBuilder(int index)
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;
Parameter |
Name |
Description |
index |
int
|
getQuerySuggestionsBuilderList()
public List<CompleteQueryResponse.QuerySuggestion.Builder> 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;
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;
Returns |
Type |
Description |
int |
|
getQuerySuggestionsList()
public List<CompleteQueryResponse.QuerySuggestion> 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;
getQuerySuggestionsOrBuilder(int index)
public CompleteQueryResponse.QuerySuggestionOrBuilder getQuerySuggestionsOrBuilder(int index)
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;
Parameter |
Name |
Description |
index |
int
|
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;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1beta.CompleteQueryResponse.QuerySuggestionOrBuilder> |
|
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;
Returns |
Type |
Description |
boolean |
The tailMatchTriggered.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CompleteQueryResponse other)
public CompleteQueryResponse.Builder mergeFrom(CompleteQueryResponse other)
public CompleteQueryResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CompleteQueryResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CompleteQueryResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeQuerySuggestions(int index)
public CompleteQueryResponse.Builder removeQuerySuggestions(int index)
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;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public CompleteQueryResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setQuerySuggestions(int index, CompleteQueryResponse.QuerySuggestion value)
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(int index, CompleteQueryResponse.QuerySuggestion.Builder builderForValue)
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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CompleteQueryResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setTailMatchTriggered(boolean value)
public CompleteQueryResponse.Builder setTailMatchTriggered(boolean value)
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;
Parameter |
Name |
Description |
value |
boolean
The tailMatchTriggered to set.
|
setUnknownFields(UnknownFieldSet unknownFields)
public final CompleteQueryResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides