Class AdvancedCompleteQueryResponse.QuerySuggestion.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>
com.google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion.Builder
- All Implemented Interfaces:
AdvancedCompleteQueryResponse.QuerySuggestionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- AdvancedCompleteQueryResponse.QuerySuggestion
public static final class AdvancedCompleteQueryResponse.QuerySuggestion.Builder
extends com.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>
implements AdvancedCompleteQueryResponse.QuerySuggestionOrBuilder
Suggestions as search queries.Protobuf type
google.cloud.discoveryengine.v1beta.AdvancedCompleteQueryResponse.QuerySuggestion-
Method Summary
Modifier and TypeMethodDescriptionaddAllCompletableFieldPaths(Iterable<String> values) The unique document field paths that serve as the source of this suggestion if it was generated from completable fields.addAllDataStore(Iterable<String> values) The name of the dataStore that this suggestion belongs to.addCompletableFieldPaths(String value) The unique document field paths that serve as the source of this suggestion if it was generated from completable fields.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.addDataStore(String value) The name of the dataStore that this suggestion belongs to.addDataStoreBytes(com.google.protobuf.ByteString value) The name of the dataStore that this suggestion belongs to.build()clear()The unique document field paths that serve as the source of this suggestion if it was generated from completable fields.The name of the dataStore that this suggestion belongs to.The suggestion for the query.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.ByteStringgetCompletableFieldPathsBytes(int index) The unique document field paths that serve as the source of this suggestion if it was generated from completable fields.intThe unique document field paths that serve as the source of this suggestion if it was generated from completable fields.com.google.protobuf.ProtocolStringListThe unique document field paths that serve as the source of this suggestion if it was generated from completable fields.getDataStore(int index) The name of the dataStore that this suggestion belongs to.com.google.protobuf.ByteStringgetDataStoreBytes(int index) The name of the dataStore that this suggestion belongs to.intThe name of the dataStore that this suggestion belongs to.com.google.protobuf.ProtocolStringListThe name of the dataStore that this suggestion belongs to.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe suggestion for the query.com.google.protobuf.ByteStringThe suggestion for the query.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) 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.setDataStore(int index, String value) The name of the dataStore that this suggestion belongs to.setSuggestion(String value) The suggestion for the query.setSuggestionBytes(com.google.protobuf.ByteString value) The suggestion for the query.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<AdvancedCompleteQueryResponse.QuerySuggestion.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<AdvancedCompleteQueryResponse.QuerySuggestion.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<AdvancedCompleteQueryResponse.QuerySuggestion.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
public AdvancedCompleteQueryResponse.QuerySuggestion.Builder mergeFrom(com.google.protobuf.Message other) - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>
-
mergeFrom
public AdvancedCompleteQueryResponse.QuerySuggestion.Builder mergeFrom(AdvancedCompleteQueryResponse.QuerySuggestion other) -
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>
-
mergeFrom
public AdvancedCompleteQueryResponse.QuerySuggestion.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<AdvancedCompleteQueryResponse.QuerySuggestion.Builder>- Throws:
IOException
-
getSuggestion
The suggestion for the query.
string suggestion = 1;- Specified by:
getSuggestionin interfaceAdvancedCompleteQueryResponse.QuerySuggestionOrBuilder- Returns:
- The suggestion.
-
getSuggestionBytes
public com.google.protobuf.ByteString getSuggestionBytes()The suggestion for the query.
string suggestion = 1;- Specified by:
getSuggestionBytesin interfaceAdvancedCompleteQueryResponse.QuerySuggestionOrBuilder- Returns:
- The bytes for suggestion.
-
setSuggestion
The suggestion for the query.
string suggestion = 1;- Parameters:
value- The suggestion to set.- Returns:
- This builder for chaining.
-
clearSuggestion
The suggestion for the query.
string suggestion = 1;- Returns:
- This builder for chaining.
-
setSuggestionBytes
public AdvancedCompleteQueryResponse.QuerySuggestion.Builder setSuggestionBytes(com.google.protobuf.ByteString value) The suggestion for the query.
string suggestion = 1;- Parameters:
value- The bytes for suggestion to set.- Returns:
- This builder for chaining.
-
getCompletableFieldPathsList
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;- Specified by:
getCompletableFieldPathsListin interfaceAdvancedCompleteQueryResponse.QuerySuggestionOrBuilder- Returns:
- A list containing the completableFieldPaths.
-
getCompletableFieldPathsCount
public 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;- Specified by:
getCompletableFieldPathsCountin interfaceAdvancedCompleteQueryResponse.QuerySuggestionOrBuilder- Returns:
- The count of completableFieldPaths.
-
getCompletableFieldPaths
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;- Specified by:
getCompletableFieldPathsin interfaceAdvancedCompleteQueryResponse.QuerySuggestionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The completableFieldPaths at the given index.
-
getCompletableFieldPathsBytes
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;- Specified by:
getCompletableFieldPathsBytesin interfaceAdvancedCompleteQueryResponse.QuerySuggestionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the completableFieldPaths at the given index.
-
setCompletableFieldPaths
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;- Parameters:
index- The index to set the value at.value- The completableFieldPaths to set.- Returns:
- This builder for chaining.
-
addCompletableFieldPaths
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;- Parameters:
value- The completableFieldPaths to add.- Returns:
- This builder for chaining.
-
addAllCompletableFieldPaths
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;- Parameters:
values- The completableFieldPaths to add.- Returns:
- This builder for chaining.
-
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;- Returns:
- This builder for chaining.
-
addCompletableFieldPathsBytes
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;- Parameters:
value- The bytes of the completableFieldPaths to add.- Returns:
- This builder for chaining.
-
getDataStoreList
public com.google.protobuf.ProtocolStringList getDataStoreList()The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;- Specified by:
getDataStoreListin interfaceAdvancedCompleteQueryResponse.QuerySuggestionOrBuilder- Returns:
- A list containing the dataStore.
-
getDataStoreCount
public int getDataStoreCount()The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;- Specified by:
getDataStoreCountin interfaceAdvancedCompleteQueryResponse.QuerySuggestionOrBuilder- Returns:
- The count of dataStore.
-
getDataStore
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;- Specified by:
getDataStorein interfaceAdvancedCompleteQueryResponse.QuerySuggestionOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The dataStore at the given index.
-
getDataStoreBytes
public com.google.protobuf.ByteString getDataStoreBytes(int index) The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;- Specified by:
getDataStoreBytesin interfaceAdvancedCompleteQueryResponse.QuerySuggestionOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the dataStore at the given index.
-
setDataStore
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;- Parameters:
index- The index to set the value at.value- The dataStore to set.- Returns:
- This builder for chaining.
-
addDataStore
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;- Parameters:
value- The dataStore to add.- Returns:
- This builder for chaining.
-
addAllDataStore
public AdvancedCompleteQueryResponse.QuerySuggestion.Builder addAllDataStore(Iterable<String> values) The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;- Parameters:
values- The dataStore to add.- Returns:
- This builder for chaining.
-
clearDataStore
The name of the dataStore that this suggestion belongs to.
repeated string data_store = 3;- Returns:
- This builder for chaining.
-
addDataStoreBytes
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;- Parameters:
value- The bytes of the dataStore to add.- Returns:
- This builder for chaining.
-