Class HighlighterType
java.lang.Object
co.elastic.clients.elasticsearch.core.search.HighlighterType
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<HighlighterType.Kind,Object>
@JsonpDeserializable
public class HighlighterType
extends Object
implements TaggedUnion<HighlighterType.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic enum -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final HighlighterType.Kind_kind()Get the of the kind of variant held by this object.builtin()Get thebuiltinvariant value.custom()Get thecustomvariant value.booleanIs this variant instance of kindbuiltin?booleanisCustom()Is this variant instance of kindcustom?static HighlighterTypevoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<HighlighterType.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<HighlighterType.Kind,Object>
-
_toJsonString
-
of
public static HighlighterType of(Function<HighlighterType.Builder, ObjectBuilder<HighlighterType>> fn) -
isBuiltin
public boolean isBuiltin()Is this variant instance of kindbuiltin? -
builtin
Get thebuiltinvariant value.- Throws:
IllegalStateException- if the current variant is not of thebuiltinkind.
-
isCustom
public boolean isCustom()Is this variant instance of kindcustom? -
custom
Get thecustomvariant value.- Throws:
IllegalStateException- if the current variant is not of thecustomkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-