Class TermsQueryField
- java.lang.Object
-
- org.opensearch.client.opensearch._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
-
-
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
All Methods Static Methods Instance Methods Concrete Methods 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.
-
-
-
Field Detail
-
_DESERIALIZER
public static final JsonpDeserializer<TermsQueryField> _DESERIALIZER
-
-
Method Detail
-
_kind
public final TermsQueryField.Kind _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
public java.util.List<FieldValue> 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
public TermsLookup lookup()
Get thelookupvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thelookupkind.
-
serialize
public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)- Specified by:
serializein interfaceJsonpSerializable
-
-