Package com.google.cloud.talent.v4
Interface SpellingCorrectionOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
SpellingCorrection,SpellingCorrection.Builder
@Generated
public interface SpellingCorrectionOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptionbooleanIndicates 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.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getCorrected
boolean getCorrected()Indicates if the query was corrected by the spell checker.
bool corrected = 1;- Returns:
- The corrected.
-
getCorrectedText
String getCorrectedText()Correction output consisting of the corrected keyword string.
string corrected_text = 2;- Returns:
- The correctedText.
-
getCorrectedTextBytes
com.google.protobuf.ByteString getCorrectedTextBytes()Correction output consisting of the corrected keyword string.
string corrected_text = 2;- Returns:
- The bytes for correctedText.
-
getCorrectedHtml
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;- Returns:
- The correctedHtml.
-
getCorrectedHtmlBytes
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;- Returns:
- The bytes for correctedHtml.
-