public static final class SpellingCorrection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder> implements SpellingCorrectionOrBuilder
Output only. Spell check result.Protobuf type
google.cloud.talent.v4beta1.SpellingCorrection| Modifier and Type | Method and Description |
|---|---|
SpellingCorrection.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SpellingCorrection |
build() |
SpellingCorrection |
buildPartial() |
SpellingCorrection.Builder |
clear() |
SpellingCorrection.Builder |
clearCorrected()
Indicates if the query was corrected by the spell checker.
|
SpellingCorrection.Builder |
clearCorrectedHtml()
Corrected output with html tags to highlight the corrected words.
|
SpellingCorrection.Builder |
clearCorrectedText()
Correction output consisting of the corrected keyword string.
|
SpellingCorrection.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
SpellingCorrection.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
SpellingCorrection.Builder |
clone() |
boolean |
getCorrected()
Indicates if the query was corrected by the spell checker.
|
String |
getCorrectedHtml()
Corrected output with html tags to highlight the corrected words.
|
com.google.protobuf.ByteString |
getCorrectedHtmlBytes()
Corrected output with html tags to highlight the corrected words.
|
String |
getCorrectedText()
Correction output consisting of the corrected keyword string.
|
com.google.protobuf.ByteString |
getCorrectedTextBytes()
Correction output consisting of the corrected keyword string.
|
SpellingCorrection |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
SpellingCorrection.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
SpellingCorrection.Builder |
mergeFrom(com.google.protobuf.Message other) |
SpellingCorrection.Builder |
mergeFrom(SpellingCorrection other) |
SpellingCorrection.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
SpellingCorrection.Builder |
setCorrected(boolean value)
Indicates if the query was corrected by the spell checker.
|
SpellingCorrection.Builder |
setCorrectedHtml(String value)
Corrected output with html tags to highlight the corrected words.
|
SpellingCorrection.Builder |
setCorrectedHtmlBytes(com.google.protobuf.ByteString value)
Corrected output with html tags to highlight the corrected words.
|
SpellingCorrection.Builder |
setCorrectedText(String value)
Correction output consisting of the corrected keyword string.
|
SpellingCorrection.Builder |
setCorrectedTextBytes(com.google.protobuf.ByteString value)
Correction output consisting of the corrected keyword string.
|
SpellingCorrection.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
SpellingCorrection.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
SpellingCorrection.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, 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<SpellingCorrection.Builder>public SpellingCorrection.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.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<SpellingCorrection.Builder>public SpellingCorrection getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic SpellingCorrection build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic SpellingCorrection buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic SpellingCorrection.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>public SpellingCorrection.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<SpellingCorrection.Builder>public SpellingCorrection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>public SpellingCorrection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>public SpellingCorrection.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<SpellingCorrection.Builder>public SpellingCorrection.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<SpellingCorrection.Builder>public SpellingCorrection.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<SpellingCorrection.Builder>public SpellingCorrection.Builder mergeFrom(SpellingCorrection other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>public SpellingCorrection.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<SpellingCorrection.Builder>IOExceptionpublic boolean getCorrected()
Indicates if the query was corrected by the spell checker.
bool corrected = 1;getCorrected in interface SpellingCorrectionOrBuilderpublic SpellingCorrection.Builder setCorrected(boolean value)
Indicates if the query was corrected by the spell checker.
bool corrected = 1;public SpellingCorrection.Builder clearCorrected()
Indicates if the query was corrected by the spell checker.
bool corrected = 1;public String getCorrectedText()
Correction output consisting of the corrected keyword string.
string corrected_text = 2;getCorrectedText in interface SpellingCorrectionOrBuilderpublic com.google.protobuf.ByteString getCorrectedTextBytes()
Correction output consisting of the corrected keyword string.
string corrected_text = 2;getCorrectedTextBytes in interface SpellingCorrectionOrBuilderpublic SpellingCorrection.Builder setCorrectedText(String value)
Correction output consisting of the corrected keyword string.
string corrected_text = 2;public SpellingCorrection.Builder clearCorrectedText()
Correction output consisting of the corrected keyword string.
string corrected_text = 2;public SpellingCorrection.Builder setCorrectedTextBytes(com.google.protobuf.ByteString value)
Correction output consisting of the corrected keyword string.
string corrected_text = 2;public String getCorrectedHtml()
Corrected output with html tags to highlight the corrected words. Corrected words are called out with the "<b><i>...</i></b>" html tags. For example, the user input query is "software enginear", where the second word, "enginear," is incorrect. It should be "engineer". When spelling correction is enabled, this value is "software <b><i>engineer</i></b>".
string corrected_html = 3;getCorrectedHtml in interface SpellingCorrectionOrBuilderpublic com.google.protobuf.ByteString getCorrectedHtmlBytes()
Corrected output with html tags to highlight the corrected words. Corrected words are called out with the "<b><i>...</i></b>" html tags. For example, the user input query is "software enginear", where the second word, "enginear," is incorrect. It should be "engineer". When spelling correction is enabled, this value is "software <b><i>engineer</i></b>".
string corrected_html = 3;getCorrectedHtmlBytes in interface SpellingCorrectionOrBuilderpublic SpellingCorrection.Builder setCorrectedHtml(String value)
Corrected output with html tags to highlight the corrected words. Corrected words are called out with the "<b><i>...</i></b>" html tags. For example, the user input query is "software enginear", where the second word, "enginear," is incorrect. It should be "engineer". When spelling correction is enabled, this value is "software <b><i>engineer</i></b>".
string corrected_html = 3;public SpellingCorrection.Builder clearCorrectedHtml()
Corrected output with html tags to highlight the corrected words. Corrected words are called out with the "<b><i>...</i></b>" html tags. For example, the user input query is "software enginear", where the second word, "enginear," is incorrect. It should be "engineer". When spelling correction is enabled, this value is "software <b><i>engineer</i></b>".
string corrected_html = 3;public SpellingCorrection.Builder setCorrectedHtmlBytes(com.google.protobuf.ByteString value)
Corrected output with html tags to highlight the corrected words. Corrected words are called out with the "<b><i>...</i></b>" html tags. For example, the user input query is "software enginear", where the second word, "enginear," is incorrect. It should be "engineer". When spelling correction is enabled, this value is "software <b><i>engineer</i></b>".
string corrected_html = 3;public final SpellingCorrection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>public final SpellingCorrection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>Copyright © 2019 Google LLC. All rights reserved.