Class SmoothingModel
java.lang.Object
org.opensearch.client.opensearch.core.search.SmoothingModel
- All Implemented Interfaces:
JsonpSerializable,PlainJsonSerializable,TaggedUnion<SmoothingModel.Kind,SmoothingModelVariant>
@JsonpDeserializable
@Generated("org.opensearch.client.codegen.CodeGenerator")
public class SmoothingModel
extends Object
implements TaggedUnion<SmoothingModel.Kind,SmoothingModelVariant>, PlainJsonSerializable
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal SmoothingModelVariant_get()final SmoothingModel.Kind_kind()Get the of the kind of variant held by this object.static SmoothingModel.Builderbuilder()booleaninthashCode()booleanIs this variant instance of kindlaplace?booleanIs this variant instance of kindlinear_interpolation?booleanIs this variant instance of kindstupid_backoff?laplace()Get thelaplacevariant value.Get thelinear_interpolationvariant value.static SmoothingModelvoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidGet thestupid_backoffvariant 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
-
SmoothingModel
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<SmoothingModel.Kind,SmoothingModelVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<SmoothingModel.Kind,SmoothingModelVariant>
-
of
-
isLaplace
public boolean isLaplace()Is this variant instance of kindlaplace? -
laplace
Get thelaplacevariant value.- Throws:
IllegalStateException- if the current variant is not thelaplacekind.
-
isLinearInterpolation
public boolean isLinearInterpolation()Is this variant instance of kindlinear_interpolation? -
linearInterpolation
Get thelinear_interpolationvariant value.- Throws:
IllegalStateException- if the current variant is not thelinear_interpolationkind.
-
isStupidBackoff
public boolean isStupidBackoff()Is this variant instance of kindstupid_backoff? -
stupidBackoff
Get thestupid_backoffvariant value.- Throws:
IllegalStateException- if the current variant is not thestupid_backoffkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toBuilder
-
builder
-
setupSmoothingModelDeserializer
protected static void setupSmoothingModelDeserializer(ObjectDeserializer<SmoothingModel.Builder> op) -
hashCode
public int hashCode() -
equals
-