public static final class CompleteQueryResponse.QuerySuggestion.Builder extends com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.QuerySuggestion.Builder> implements CompleteQueryResponse.QuerySuggestionOrBuilder
Suggestions as search queries.Protobuf type
google.cloud.discoveryengine.v1.CompleteQueryResponse.QuerySuggestion| Modifier and Type | Method and Description |
|---|---|
CompleteQueryResponse.QuerySuggestion.Builder |
addAllCompletableFieldPaths(Iterable<String> values)
The unique document field paths that serve as the source of this
suggestion if it was generated from completable fields.
|
CompleteQueryResponse.QuerySuggestion.Builder |
addCompletableFieldPaths(String value)
The unique document field paths that serve as the source of this
suggestion if it was generated from completable fields.
|
CompleteQueryResponse.QuerySuggestion.Builder |
addCompletableFieldPathsBytes(com.google.protobuf.ByteString value)
The unique document field paths that serve as the source of this
suggestion if it was generated from completable fields.
|
CompleteQueryResponse.QuerySuggestion |
build() |
CompleteQueryResponse.QuerySuggestion |
buildPartial() |
CompleteQueryResponse.QuerySuggestion.Builder |
clear() |
CompleteQueryResponse.QuerySuggestion.Builder |
clearCompletableFieldPaths()
The unique document field paths that serve as the source of this
suggestion if it was generated from completable fields.
|
CompleteQueryResponse.QuerySuggestion.Builder |
clearSuggestion()
The suggestion for the query.
|
String |
getCompletableFieldPaths(int index)
The unique document field paths that serve as the source of this
suggestion if it was generated from completable fields.
|
com.google.protobuf.ByteString |
getCompletableFieldPathsBytes(int index)
The unique document field paths that serve as the source of this
suggestion if it was generated from completable fields.
|
int |
getCompletableFieldPathsCount()
The unique document field paths that serve as the source of this
suggestion if it was generated from completable fields.
|
com.google.protobuf.ProtocolStringList |
getCompletableFieldPathsList()
The unique document field paths that serve as the source of this
suggestion if it was generated from completable fields.
|
CompleteQueryResponse.QuerySuggestion |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getSuggestion()
The suggestion for the query.
|
com.google.protobuf.ByteString |
getSuggestionBytes()
The suggestion for the query.
|
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
CompleteQueryResponse.QuerySuggestion.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CompleteQueryResponse.QuerySuggestion.Builder |
mergeFrom(CompleteQueryResponse.QuerySuggestion other) |
CompleteQueryResponse.QuerySuggestion.Builder |
mergeFrom(com.google.protobuf.Message other) |
CompleteQueryResponse.QuerySuggestion.Builder |
setCompletableFieldPaths(int index,
String value)
The unique document field paths that serve as the source of this
suggestion if it was generated from completable fields.
|
CompleteQueryResponse.QuerySuggestion.Builder |
setSuggestion(String value)
The suggestion for the query.
|
CompleteQueryResponse.QuerySuggestion.Builder |
setSuggestionBytes(com.google.protobuf.ByteString value)
The suggestion for the query.
|
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, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitfindInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.QuerySuggestion.Builder>public CompleteQueryResponse.QuerySuggestion.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.QuerySuggestion.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.QuerySuggestion.Builder>public CompleteQueryResponse.QuerySuggestion getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic CompleteQueryResponse.QuerySuggestion build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic CompleteQueryResponse.QuerySuggestion buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic CompleteQueryResponse.QuerySuggestion.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompleteQueryResponse.QuerySuggestion.Builder>public CompleteQueryResponse.QuerySuggestion.Builder mergeFrom(CompleteQueryResponse.QuerySuggestion other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessage.Builder<CompleteQueryResponse.QuerySuggestion.Builder>public CompleteQueryResponse.QuerySuggestion.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<CompleteQueryResponse.QuerySuggestion.Builder>IOExceptionpublic String getSuggestion()
The suggestion for the query.
string suggestion = 1;getSuggestion in interface CompleteQueryResponse.QuerySuggestionOrBuilderpublic com.google.protobuf.ByteString getSuggestionBytes()
The suggestion for the query.
string suggestion = 1;getSuggestionBytes in interface CompleteQueryResponse.QuerySuggestionOrBuilderpublic CompleteQueryResponse.QuerySuggestion.Builder setSuggestion(String value)
The suggestion for the query.
string suggestion = 1;value - The suggestion to set.public CompleteQueryResponse.QuerySuggestion.Builder clearSuggestion()
The suggestion for the query.
string suggestion = 1;public CompleteQueryResponse.QuerySuggestion.Builder setSuggestionBytes(com.google.protobuf.ByteString value)
The suggestion for the query.
string suggestion = 1;value - The bytes for suggestion to set.public com.google.protobuf.ProtocolStringList getCompletableFieldPathsList()
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.
repeated string completable_field_paths = 2;getCompletableFieldPathsList in interface CompleteQueryResponse.QuerySuggestionOrBuilderpublic int getCompletableFieldPathsCount()
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.
repeated string completable_field_paths = 2;getCompletableFieldPathsCount in interface CompleteQueryResponse.QuerySuggestionOrBuilderpublic String getCompletableFieldPaths(int index)
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.
repeated string completable_field_paths = 2;getCompletableFieldPaths in interface CompleteQueryResponse.QuerySuggestionOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getCompletableFieldPathsBytes(int index)
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.
repeated string completable_field_paths = 2;getCompletableFieldPathsBytes in interface CompleteQueryResponse.QuerySuggestionOrBuilderindex - The index of the value to return.public CompleteQueryResponse.QuerySuggestion.Builder setCompletableFieldPaths(int index, String value)
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.
repeated string completable_field_paths = 2;index - The index to set the value at.value - The completableFieldPaths to set.public CompleteQueryResponse.QuerySuggestion.Builder addCompletableFieldPaths(String value)
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.
repeated string completable_field_paths = 2;value - The completableFieldPaths to add.public CompleteQueryResponse.QuerySuggestion.Builder addAllCompletableFieldPaths(Iterable<String> values)
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.
repeated string completable_field_paths = 2;values - The completableFieldPaths to add.public CompleteQueryResponse.QuerySuggestion.Builder clearCompletableFieldPaths()
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.
repeated string completable_field_paths = 2;public CompleteQueryResponse.QuerySuggestion.Builder addCompletableFieldPathsBytes(com.google.protobuf.ByteString value)
The unique document field paths that serve as the source of this suggestion if it was generated from completable fields. This field is only populated for the document-completable model.
repeated string completable_field_paths = 2;value - The bytes of the completableFieldPaths to add.Copyright © 2026 Google LLC. All rights reserved.