Class Suggestion<T>
java.lang.Object
co.elastic.clients.elasticsearch.core.search.Suggestion<T>
- All Implemented Interfaces:
JsonpSerializable
public final class Suggestion<T> extends java.lang.Object implements JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSuggestion.Builder<T>Builder forSuggestion. -
Constructor Summary
Constructors Constructor Description Suggestion(Suggestion.Builder<T> builder)Suggestion(java.util.function.Function<Suggestion.Builder<T>,Suggestion.Builder<T>> fn) -
Method Summary
Modifier and Type Method Description static <T> JsonpDeserializer<Suggestion<T>>createSuggestionDeserializer(JsonpDeserializer<T> tDeserializer)Create a json deserializer for Suggestionintlength()Required - API name:lengthintoffset()Required - API name:offsetjava.util.List<jakarta.json.JsonValue>options()Required - API name:optionsvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static <T> voidsetupSuggestionDeserializer(DelegatingDeserializer<Suggestion.Builder<T>> op, JsonpDeserializer<T> tDeserializer)java.lang.Stringtext()Required - API name:textMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Suggestion
-
Suggestion
-
-
Method Details
-
length
public int length()Required - API name:length -
offset
public int offset()Required - API name:offset -
options
public java.util.List<jakarta.json.JsonValue> options()Required - API name:options -
text
public java.lang.String text()Required - API name:text -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
createSuggestionDeserializer
public static <T> JsonpDeserializer<Suggestion<T>> createSuggestionDeserializer(JsonpDeserializer<T> tDeserializer)Create a json deserializer for Suggestion -
setupSuggestionDeserializer
protected static <T> void setupSuggestionDeserializer(DelegatingDeserializer<Suggestion.Builder<T>> op, JsonpDeserializer<T> tDeserializer)
-