Package com.google.cloud.talent.v4
Class SpellingCorrection.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<SpellingCorrection.Builder>
com.google.cloud.talent.v4.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.GeneratedMessage.Builder<SpellingCorrection.Builder>
implements SpellingCorrectionOrBuilder
Spell check result.Protobuf type
google.cloud.talent.v4.SpellingCorrection-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Indicates if the query was corrected by the spell checker.Corrected output with html tags to highlight the corrected words.Correction output consisting of the corrected keyword string.booleanIndicates if the query was corrected by the spell checker.Corrected output with html tags to highlight the corrected words.com.google.protobuf.ByteStringCorrected output with html tags to highlight the corrected words.Correction output consisting of the corrected keyword string.com.google.protobuf.ByteStringCorrection output consisting of the corrected keyword string.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorprotected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(SpellingCorrection other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCorrected(boolean value) Indicates if the query was corrected by the spell checker.setCorrectedHtml(String value) Corrected output with html tags to highlight the corrected words.setCorrectedHtmlBytes(com.google.protobuf.ByteString value) Corrected output with html tags to highlight the corrected words.setCorrectedText(String value) Correction output consisting of the corrected keyword string.setCorrectedTextBytes(com.google.protobuf.ByteString value) Correction output consisting of the corrected keyword string.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<SpellingCorrection.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<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.GeneratedMessage.Builder<SpellingCorrection.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
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<SpellingCorrection.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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
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
Indicates if the query was corrected by the spell checker.
bool corrected = 1;- Returns:
- This builder for chaining.
-
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
Correction output consisting of the corrected keyword string.
string corrected_text = 2;- Parameters:
value- The correctedText to set.- Returns:
- This builder for chaining.
-
clearCorrectedText
Correction output consisting of the corrected keyword string.
string corrected_text = 2;- Returns:
- This builder for chaining.
-
setCorrectedTextBytes
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
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
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
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
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.
-