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 class
Suggestion.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 Suggestionint
length()
Required - API name:length
int
offset()
Required - API name:offset
java.util.List<jakarta.json.JsonValue>
options()
Required - API name:options
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static <T> void
setupSuggestionDeserializer(DelegatingDeserializer<Suggestion.Builder<T>> op, JsonpDeserializer<T> tDeserializer)
java.lang.String
text()
Required - API name:text
Methods 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:
serialize
in 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)
-