Class TermsQueryField
java.lang.Object
co.elastic.clients.elasticsearch._types.query_dsl.TermsQueryField
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<TermsQueryField.Kind,java.lang.Object>
@JsonpDeserializable public class TermsQueryField extends java.lang.Object implements TaggedUnion<TermsQueryField.Kind,java.lang.Object>, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTermsQueryField.Builderstatic classTermsQueryField.Kind -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<TermsQueryField>_DESERIALIZER -
Method Summary
Modifier and Type Method Description java.lang.Object_get()TermsQueryField.Kind_kind()Get the of the kind of variant held by this object.booleanisLookup()Is this variant instance of kindlookup?booleanisValue()Is this variant instance of kindvalue?TermsLookuplookup()Get thelookupvariant value.static TermsQueryFieldof(java.util.function.Function<TermsQueryField.Builder,ObjectBuilder<TermsQueryField>> fn)voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)java.util.List<FieldValue>value()Get thevaluevariant value.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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<TermsQueryField.Kind,java.lang.Object>- Returns:
- the variant kind
-
_get
public final java.lang.Object _get()- Specified by:
_getin interfaceTaggedUnion<TermsQueryField.Kind,java.lang.Object>
-
of
public static TermsQueryField of(java.util.function.Function<TermsQueryField.Builder,ObjectBuilder<TermsQueryField>> fn) -
isValue
public boolean isValue()Is this variant instance of kindvalue? -
value
Get thevaluevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thevaluekind.
-
isLookup
public boolean isLookup()Is this variant instance of kindlookup? -
lookup
Get thelookupvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelookupkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-