Class RequestProcessor
java.lang.Object
org.opensearch.client.opensearch.search_pipeline.RequestProcessor
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<RequestProcessor.Kind,RequestProcessorVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class RequestProcessor
extends Object
implements TaggedUnion<RequestProcessor.Kind,RequestProcessorVariant>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal RequestProcessorVariant_get()final RequestProcessor.Kind_kind()Get the of the kind of variant held by this object.static RequestProcessor.Builderbuilder()booleanGet thefilter_queryvariant value.inthashCode()booleanIs this variant instance of kindfilter_query?booleanIs this variant instance of kindneural_query_enricher?booleanIs this variant instance of kindoversample?booleanisScript()Is this variant instance of kindscript?Get theneural_query_enrichervariant value.static RequestProcessorGet theoversamplevariant value.script()Get thescriptvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.json.PlainJsonSerializable
toJsonString
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
RequestProcessor
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<RequestProcessor.Kind,RequestProcessorVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<RequestProcessor.Kind,RequestProcessorVariant>
-
of
public static RequestProcessor of(Function<RequestProcessor.Builder, ObjectBuilder<RequestProcessor>> fn) -
isFilterQuery
public boolean isFilterQuery()Is this variant instance of kindfilter_query? -
filterQuery
Get thefilter_queryvariant value.- Throws:
IllegalStateException- if the current variant is not thefilter_querykind.
-
isNeuralQueryEnricher
public boolean isNeuralQueryEnricher()Is this variant instance of kindneural_query_enricher? -
neuralQueryEnricher
Get theneural_query_enrichervariant value.- Throws:
IllegalStateException- if the current variant is not theneural_query_enricherkind.
-
isOversample
public boolean isOversample()Is this variant instance of kindoversample? -
oversample
Get theoversamplevariant value.- Throws:
IllegalStateException- if the current variant is not theoversamplekind.
-
isScript
public boolean isScript()Is this variant instance of kindscript? -
script
Get thescriptvariant value.- Throws:
IllegalStateException- if the current variant is not thescriptkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
setupRequestProcessorDeserializer
protected static void setupRequestProcessorDeserializer(ObjectDeserializer<RequestProcessor.Builder> op) -
hashCode
public int hashCode() -
equals
-