Package com.google.cloud.talent.v4beta1
Class SpellingCorrection.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
- com.google.cloud.talent.v4beta1.SpellingCorrection.Builder
-
- All Implemented Interfaces:
SpellingCorrectionOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- SpellingCorrection
public static final class SpellingCorrection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder> implements SpellingCorrectionOrBuilder
Spell check result.
Protobuf typegoogle.cloud.talent.v4beta1.SpellingCorrection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description SpellingCorrection.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SpellingCorrectionbuild()SpellingCorrectionbuildPartial()SpellingCorrection.Builderclear()SpellingCorrection.BuilderclearCorrected()Indicates if the query was corrected by the spell checker.SpellingCorrection.BuilderclearCorrectedHtml()Corrected output with html tags to highlight the corrected words.SpellingCorrection.BuilderclearCorrectedText()Correction output consisting of the corrected keyword string.SpellingCorrection.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)SpellingCorrection.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)SpellingCorrection.Builderclone()booleangetCorrected()Indicates if the query was corrected by the spell checker.StringgetCorrectedHtml()Corrected output with html tags to highlight the corrected words.com.google.protobuf.ByteStringgetCorrectedHtmlBytes()Corrected output with html tags to highlight the corrected words.StringgetCorrectedText()Correction output consisting of the corrected keyword string.com.google.protobuf.ByteStringgetCorrectedTextBytes()Correction output consisting of the corrected keyword string.SpellingCorrectiongetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()SpellingCorrection.BuildermergeFrom(SpellingCorrection other)SpellingCorrection.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)SpellingCorrection.BuildermergeFrom(com.google.protobuf.Message other)SpellingCorrection.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)SpellingCorrection.BuildersetCorrected(boolean value)Indicates if the query was corrected by the spell checker.SpellingCorrection.BuildersetCorrectedHtml(String value)Corrected output with html tags to highlight the corrected words.SpellingCorrection.BuildersetCorrectedHtmlBytes(com.google.protobuf.ByteString value)Corrected output with html tags to highlight the corrected words.SpellingCorrection.BuildersetCorrectedText(String value)Correction output consisting of the corrected keyword string.SpellingCorrection.BuildersetCorrectedTextBytes(com.google.protobuf.ByteString value)Correction output consisting of the corrected keyword string.SpellingCorrection.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)SpellingCorrection.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)SpellingCorrection.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
clear
public SpellingCorrection.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.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.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
getDefaultInstanceForType
public SpellingCorrection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public SpellingCorrection build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SpellingCorrection buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SpellingCorrection.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
setField
public SpellingCorrection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
clearField
public SpellingCorrection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
clearOneof
public SpellingCorrection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
setRepeatedField
public SpellingCorrection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
addRepeatedField
public SpellingCorrection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
mergeFrom
public SpellingCorrection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpellingCorrection.Builder>
-
mergeFrom
public SpellingCorrection.Builder mergeFrom(SpellingCorrection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
mergeFrom
public SpellingCorrection.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<SpellingCorrection.Builder>- Throws:
IOException
-
getCorrected
public boolean getCorrected()
Indicates if the query was corrected by the spell checker.
bool corrected = 1;- Specified by:
getCorrectedin interfaceSpellingCorrectionOrBuilder- Returns:
- The corrected.
-
setCorrected
public SpellingCorrection.Builder setCorrected(boolean value)
Indicates if the query was corrected by the spell checker.
bool corrected = 1;- Parameters:
value- The corrected to set.- Returns:
- This builder for chaining.
-
clearCorrected
public SpellingCorrection.Builder clearCorrected()
Indicates if the query was corrected by the spell checker.
bool corrected = 1;- Returns:
- This builder for chaining.
-
getCorrectedText
public String getCorrectedText()
Correction output consisting of the corrected keyword string.
string corrected_text = 2;- Specified by:
getCorrectedTextin interfaceSpellingCorrectionOrBuilder- Returns:
- The correctedText.
-
getCorrectedTextBytes
public com.google.protobuf.ByteString getCorrectedTextBytes()
Correction output consisting of the corrected keyword string.
string corrected_text = 2;- Specified by:
getCorrectedTextBytesin interfaceSpellingCorrectionOrBuilder- Returns:
- The bytes for correctedText.
-
setCorrectedText
public SpellingCorrection.Builder setCorrectedText(String value)
Correction output consisting of the corrected keyword string.
string corrected_text = 2;- Parameters:
value- The correctedText to set.- Returns:
- This builder for chaining.
-
clearCorrectedText
public SpellingCorrection.Builder clearCorrectedText()
Correction output consisting of the corrected keyword string.
string corrected_text = 2;- Returns:
- This builder for chaining.
-
setCorrectedTextBytes
public SpellingCorrection.Builder setCorrectedTextBytes(com.google.protobuf.ByteString value)
Correction output consisting of the corrected keyword string.
string corrected_text = 2;- Parameters:
value- The bytes for correctedText to set.- Returns:
- This builder for chaining.
-
getCorrectedHtml
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;- Specified by:
getCorrectedHtmlin interfaceSpellingCorrectionOrBuilder- Returns:
- The correctedHtml.
-
getCorrectedHtmlBytes
public 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;- Specified by:
getCorrectedHtmlBytesin interfaceSpellingCorrectionOrBuilder- Returns:
- The bytes for correctedHtml.
-
setCorrectedHtml
public 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;- Parameters:
value- The correctedHtml to set.- Returns:
- This builder for chaining.
-
clearCorrectedHtml
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;- Returns:
- This builder for chaining.
-
setCorrectedHtmlBytes
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;- Parameters:
value- The bytes for correctedHtml to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final SpellingCorrection.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
mergeUnknownFields
public final SpellingCorrection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
-