public interface SpellingCorrectionOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
boolean |
getCorrected()
Indicates if the query was corrected by the spell checker.
|
String |
getCorrectedHtml()
Corrected output with html tags to highlight the corrected words.
|
ByteString |
getCorrectedHtmlBytes()
Corrected output with html tags to highlight the corrected words.
|
String |
getCorrectedText()
Correction output consisting of the corrected keyword string.
|
ByteString |
getCorrectedTextBytes()
Correction output consisting of the corrected keyword string.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
boolean getCorrected()
Indicates if the query was corrected by the spell checker.
bool corrected = 1;
String getCorrectedText()
Correction output consisting of the corrected keyword string.
string corrected_text = 2;
ByteString getCorrectedTextBytes()
Correction output consisting of the corrected keyword string.
string corrected_text = 2;
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;
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;
Copyright © 2022 Google LLC. All rights reserved.