public static final class SearchRequest.SpellCorrectionSpec.Builder extends GeneratedMessageV3.Builder<SearchRequest.SpellCorrectionSpec.Builder> implements SearchRequest.SpellCorrectionSpecOrBuilder
The specification for query spell correction.
Protobuf type google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.SpellCorrectionSpec.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SearchRequest.SpellCorrectionSpec build()
Returns
buildPartial()
public SearchRequest.SpellCorrectionSpec buildPartial()
Returns
clear()
public SearchRequest.SpellCorrectionSpec.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SearchRequest.SpellCorrectionSpec.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMode()
public SearchRequest.SpellCorrectionSpec.Builder clearMode()
The mode under which spell correction should take effect to
replace the original search query. Default to
Mode.AUTO.
.google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchRequest.SpellCorrectionSpec.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public SearchRequest.SpellCorrectionSpec.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SearchRequest.SpellCorrectionSpec getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMode()
public SearchRequest.SpellCorrectionSpec.Mode getMode()
The mode under which spell correction should take effect to
replace the original search query. Default to
Mode.AUTO.
.google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1;
Returns
getModeValue()
public int getModeValue()
The mode under which spell correction should take effect to
replace the original search query. Default to
Mode.AUTO.
.google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1;
Returns
Type | Description |
int | The enum numeric value on the wire for mode.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SearchRequest.SpellCorrectionSpec other)
public SearchRequest.SpellCorrectionSpec.Builder mergeFrom(SearchRequest.SpellCorrectionSpec other)
Parameter
Returns
public SearchRequest.SpellCorrectionSpec.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SearchRequest.SpellCorrectionSpec.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.SpellCorrectionSpec.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SearchRequest.SpellCorrectionSpec.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setMode(SearchRequest.SpellCorrectionSpec.Mode value)
public SearchRequest.SpellCorrectionSpec.Builder setMode(SearchRequest.SpellCorrectionSpec.Mode value)
The mode under which spell correction should take effect to
replace the original search query. Default to
Mode.AUTO.
.google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1;
Parameter
Returns
setModeValue(int value)
public SearchRequest.SpellCorrectionSpec.Builder setModeValue(int value)
The mode under which spell correction should take effect to
replace the original search query. Default to
Mode.AUTO.
.google.cloud.retail.v2alpha.SearchRequest.SpellCorrectionSpec.Mode mode = 1;
Parameter
Name | Description |
value | int
The enum numeric value on the wire for mode to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchRequest.SpellCorrectionSpec.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchRequest.SpellCorrectionSpec.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides