public static final class CompleteQueryResponse.QuerySuggestion.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.QuerySuggestion.Builder> implements CompleteQueryResponse.QuerySuggestionOrBuilder
Suggestions as search queries.Protobuf type
google.cloud.discoveryengine.v1alpha.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.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
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 |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
CompleteQueryResponse.QuerySuggestion.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
CompleteQueryResponse.QuerySuggestion.Builder |
clearSuggestion()
The suggestion for the query.
|
CompleteQueryResponse.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.
|
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.GeneratedMessageV3.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 |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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 |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
CompleteQueryResponse.QuerySuggestion.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
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.
|
CompleteQueryResponse.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<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.GeneratedMessageV3.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.GeneratedMessageV3.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 clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.QuerySuggestion.Builder>public CompleteQueryResponse.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<CompleteQueryResponse.QuerySuggestion.Builder>public CompleteQueryResponse.QuerySuggestion.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.QuerySuggestion.Builder>public CompleteQueryResponse.QuerySuggestion.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.QuerySuggestion.Builder>public CompleteQueryResponse.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<CompleteQueryResponse.QuerySuggestion.Builder>public CompleteQueryResponse.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<CompleteQueryResponse.QuerySuggestion.Builder>public 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.GeneratedMessageV3.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.public final CompleteQueryResponse.QuerySuggestion.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.QuerySuggestion.Builder>public final CompleteQueryResponse.QuerySuggestion.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CompleteQueryResponse.QuerySuggestion.Builder>Copyright © 2024 Google LLC. All rights reserved.