public static final class AdvancedCompleteQueryResponse.QuerySuggestion.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder> implements AdvancedCompleteQueryResponse.QuerySuggestionOrBuilder
Suggestions as search queries.Protobuf type
google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion| Modifier and Type | Method and Description |
|---|---|
AdvancedCompleteQueryResponse.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.
|
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
addAllDataStore(Iterable<String> values)
The name of the dataStore that this suggestion belongs to.
|
AdvancedCompleteQueryResponse.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.
|
AdvancedCompleteQueryResponse.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.
|
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
addDataStore(String value)
The name of the dataStore that this suggestion belongs to.
|
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
addDataStoreBytes(com.google.protobuf.ByteString value)
The name of the dataStore that this suggestion belongs to.
|
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AdvancedCompleteQueryResponse.QuerySuggestion |
build() |
AdvancedCompleteQueryResponse.QuerySuggestion |
buildPartial() |
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
clear() |
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
clearCompletableFieldPaths()
The unique document field paths that serve as the source of this
suggestion if it was generated from completable fields.
|
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
clearDataStore()
The name of the dataStore that this suggestion belongs to.
|
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
clearSuggestion()
The suggestion for the query.
|
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
clone() |
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.
|
String |
getDataStore(int index)
The name of the dataStore that this suggestion belongs to.
|
com.google.protobuf.ByteString |
getDataStoreBytes(int index)
The name of the dataStore that this suggestion belongs to.
|
int |
getDataStoreCount()
The name of the dataStore that this suggestion belongs to.
|
com.google.protobuf.ProtocolStringList |
getDataStoreList()
The name of the dataStore that this suggestion belongs to.
|
AdvancedCompleteQueryResponse.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.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
mergeFrom(AdvancedCompleteQueryResponse.QuerySuggestion other) |
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
mergeFrom(com.google.protobuf.Message other) |
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
AdvancedCompleteQueryResponse.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.
|
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
setDataStore(int index,
String value)
The name of the dataStore that this suggestion belongs to.
|
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
setSuggestion(String value)
The suggestion for the query.
|
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
setSuggestionBytes(com.google.protobuf.ByteString value)
The suggestion for the query.
|
AdvancedCompleteQueryResponse.QuerySuggestion.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>public AdvancedCompleteQueryResponse.QuerySuggestion.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.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.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>public AdvancedCompleteQueryResponse.QuerySuggestion getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AdvancedCompleteQueryResponse.QuerySuggestion build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AdvancedCompleteQueryResponse.QuerySuggestion buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AdvancedCompleteQueryResponse.QuerySuggestion.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>public AdvancedCompleteQueryResponse.QuerySuggestion.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>public AdvancedCompleteQueryResponse.QuerySuggestion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>public AdvancedCompleteQueryResponse.QuerySuggestion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>public AdvancedCompleteQueryResponse.QuerySuggestion.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>public AdvancedCompleteQueryResponse.QuerySuggestion.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>public AdvancedCompleteQueryResponse.QuerySuggestion.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>public AdvancedCompleteQueryResponse.QuerySuggestion.Builder mergeFrom(AdvancedCompleteQueryResponse.QuerySuggestion other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>public AdvancedCompleteQueryResponse.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<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>IOExceptionpublic String getSuggestion()
The suggestion for the query.
string suggestion = 1;getSuggestion in interface AdvancedCompleteQueryResponse.QuerySuggestionOrBuilderpublic com.google.protobuf.ByteString getSuggestionBytes()
The suggestion for the query.
string suggestion = 1;getSuggestionBytes in interface AdvancedCompleteQueryResponse.QuerySuggestionOrBuilderpublic AdvancedCompleteQueryResponse.QuerySuggestion.Builder setSuggestion(String value)
The suggestion for the query.
string suggestion = 1;value - The suggestion to set.public AdvancedCompleteQueryResponse.QuerySuggestion.Builder clearSuggestion()
The suggestion for the query.
string suggestion = 1;public AdvancedCompleteQueryResponse.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 AdvancedCompleteQueryResponse.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 AdvancedCompleteQueryResponse.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 AdvancedCompleteQueryResponse.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 AdvancedCompleteQueryResponse.QuerySuggestionOrBuilderindex - The index of the value to return.public AdvancedCompleteQueryResponse.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 AdvancedCompleteQueryResponse.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 AdvancedCompleteQueryResponse.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 AdvancedCompleteQueryResponse.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 AdvancedCompleteQueryResponse.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.public com.google.protobuf.ProtocolStringList getDataStoreList()
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;getDataStoreList in interface AdvancedCompleteQueryResponse.QuerySuggestionOrBuilderpublic int getDataStoreCount()
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;getDataStoreCount in interface AdvancedCompleteQueryResponse.QuerySuggestionOrBuilderpublic String getDataStore(int index)
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;getDataStore in interface AdvancedCompleteQueryResponse.QuerySuggestionOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getDataStoreBytes(int index)
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;getDataStoreBytes in interface AdvancedCompleteQueryResponse.QuerySuggestionOrBuilderindex - The index of the value to return.public AdvancedCompleteQueryResponse.QuerySuggestion.Builder setDataStore(int index, String value)
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;index - The index to set the value at.value - The dataStore to set.public AdvancedCompleteQueryResponse.QuerySuggestion.Builder addDataStore(String value)
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;value - The dataStore to add.public AdvancedCompleteQueryResponse.QuerySuggestion.Builder addAllDataStore(Iterable<String> values)
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;values - The dataStore to add.public AdvancedCompleteQueryResponse.QuerySuggestion.Builder clearDataStore()
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;public AdvancedCompleteQueryResponse.QuerySuggestion.Builder addDataStoreBytes(com.google.protobuf.ByteString value)
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;value - The bytes of the dataStore to add.public final AdvancedCompleteQueryResponse.QuerySuggestion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>public final AdvancedCompleteQueryResponse.QuerySuggestion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>Copyright © 2025 Google LLC. All rights reserved.