Class ResponseProcessor
java.lang.Object
org.opensearch.client.opensearch.search_pipeline.ResponseProcessor
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<ResponseProcessor.Kind,ResponseProcessorVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class ResponseProcessor
extends Object
implements TaggedUnion<ResponseProcessor.Kind,ResponseProcessorVariant>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal ResponseProcessorVariant_get()final ResponseProcessor.Kind_kind()Get the of the kind of variant held by this object.static ResponseProcessor.Builderbuilder()collapse()Get thecollapsevariant value.booleaninthashCode()booleanIs this variant instance of kindcollapse?booleanIs this variant instance of kindpersonalize_search_ranking?booleanIs this variant instance of kindrename_field?booleanisRerank()Is this variant instance of kindrerank?booleanIs this variant instance of kindretrieval_augmented_generation?booleanisSort()Is this variant instance of kindsort?booleanisSplit()Is this variant instance of kindsplit?booleanIs this variant instance of kindtruncate_hits?static ResponseProcessorGet thepersonalize_search_rankingvariant value.Get therename_fieldvariant value.rerank()Get thererankvariant value.Get theretrieval_augmented_generationvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidsort()Get thesortvariant value.split()Get thesplitvariant value.Get thetruncate_hitsvariant value.Methods 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
-
ResponseProcessor
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<ResponseProcessor.Kind,ResponseProcessorVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<ResponseProcessor.Kind,ResponseProcessorVariant>
-
of
public static ResponseProcessor of(Function<ResponseProcessor.Builder, ObjectBuilder<ResponseProcessor>> fn) -
isCollapse
public boolean isCollapse()Is this variant instance of kindcollapse? -
collapse
Get thecollapsevariant value.- Throws:
IllegalStateException- if the current variant is not thecollapsekind.
-
isPersonalizeSearchRanking
public boolean isPersonalizeSearchRanking()Is this variant instance of kindpersonalize_search_ranking? -
personalizeSearchRanking
Get thepersonalize_search_rankingvariant value.- Throws:
IllegalStateException- if the current variant is not thepersonalize_search_rankingkind.
-
isRenameField
public boolean isRenameField()Is this variant instance of kindrename_field? -
renameField
Get therename_fieldvariant value.- Throws:
IllegalStateException- if the current variant is not therename_fieldkind.
-
isRerank
public boolean isRerank()Is this variant instance of kindrerank? -
rerank
Get thererankvariant value.- Throws:
IllegalStateException- if the current variant is not thererankkind.
-
isRetrievalAugmentedGeneration
public boolean isRetrievalAugmentedGeneration()Is this variant instance of kindretrieval_augmented_generation? -
retrievalAugmentedGeneration
Get theretrieval_augmented_generationvariant value.- Throws:
IllegalStateException- if the current variant is not theretrieval_augmented_generationkind.
-
isSort
public boolean isSort()Is this variant instance of kindsort? -
sort
Get thesortvariant value.- Throws:
IllegalStateException- if the current variant is not thesortkind.
-
isSplit
public boolean isSplit()Is this variant instance of kindsplit? -
split
Get thesplitvariant value.- Throws:
IllegalStateException- if the current variant is not thesplitkind.
-
isTruncateHits
public boolean isTruncateHits()Is this variant instance of kindtruncate_hits? -
truncateHits
Get thetruncate_hitsvariant value.- Throws:
IllegalStateException- if the current variant is not thetruncate_hitskind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
setupResponseProcessorDeserializer
protected static void setupResponseProcessorDeserializer(ObjectDeserializer<ResponseProcessor.Builder> op) -
hashCode
public int hashCode() -
equals
-