Class InferenceConfig
java.lang.Object
co.elastic.clients.elasticsearch.ingest.InferenceConfig
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<InferenceConfig.Kind,Object>
@JsonpDeserializable
public class InferenceConfig
extends Object
implements TaggedUnion<InferenceConfig.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final InferenceConfig.Kind_kind()Get the of the kind of variant held by this object.Get theclassificationvariant value.booleanIs this variant instance of kindclassification?booleanIs this variant instance of kindregression?static InferenceConfigGet theregressionvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
InferenceConfig
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<InferenceConfig.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<InferenceConfig.Kind,Object>
-
of
public static InferenceConfig of(Function<InferenceConfig.Builder, ObjectBuilder<InferenceConfig>> fn) -
isRegression
public boolean isRegression()Is this variant instance of kindregression? -
regression
Get theregressionvariant value.- Throws:
IllegalStateException- if the current variant is not of theregressionkind.
-
isClassification
public boolean isClassification()Is this variant instance of kindclassification? -
classification
Get theclassificationvariant value.- Throws:
IllegalStateException- if the current variant is not of theclassificationkind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupInferenceConfigDeserializer
protected static void setupInferenceConfigDeserializer(ObjectDeserializer<InferenceConfig.Builder> op)
-