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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<SpellingCorrection.Builder> implements SpellingCorrectionOrBuilder
Spell check result.
Protobuf typegoogle.cloud.talent.v4.SpellingCorrection
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(SpellingCorrection other)
SpellingCorrection.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
SpellingCorrection.Builder
mergeFrom(com.google.protobuf.Message 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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
clear
public SpellingCorrection.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
getDefaultInstanceForType
public SpellingCorrection getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public SpellingCorrection build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public SpellingCorrection buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public SpellingCorrection.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
setField
public SpellingCorrection.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
clearField
public SpellingCorrection.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
clearOneof
public SpellingCorrection.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
setRepeatedField
public SpellingCorrection.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
addRepeatedField
public SpellingCorrection.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
mergeFrom
public SpellingCorrection.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<SpellingCorrection.Builder>
-
mergeFrom
public SpellingCorrection.Builder mergeFrom(SpellingCorrection other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getCorrected
in 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:
getCorrectedText
in 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:
getCorrectedTextBytes
in 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:
getCorrectedHtml
in 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:
getCorrectedHtmlBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
mergeUnknownFields
public final SpellingCorrection.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<SpellingCorrection.Builder>
-
-