Class InferenceConfigCreate
java.lang.Object
co.elastic.clients.elasticsearch.ml.InferenceConfigCreate
- All Implemented Interfaces:
- JsonpSerializable,- TaggedUnion<InferenceConfigCreate.Kind,- Object> 
@JsonpDeserializable
public class InferenceConfigCreate
extends Object
implements TaggedUnion<InferenceConfigCreate.Kind,Object>, JsonpSerializable 
Inference configuration provided when storing the model config
- See Also:
- 
Nested Class SummaryNested Classes
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionfinal Object_get()_kind()Get the of the kind of variant held by this object.Get theclassificationvariant value.fillMask()Get thefill_maskvariant value.booleanIs this variant instance of kindclassification?booleanIs this variant instance of kindfill_mask?booleanIs this variant instance of kindlearning_to_rank?booleanisNer()Is this variant instance of kindner?booleanIs this variant instance of kindpass_through?booleanIs this variant instance of kindquestion_answering?booleanIs this variant instance of kindregression?booleanIs this variant instance of kindtext_classification?booleanIs this variant instance of kindtext_embedding?booleanIs this variant instance of kindtext_expansion?booleanIs this variant instance of kindzero_shot_classification?Get thelearning_to_rankvariant value.ner()Get thenervariant value.static InferenceConfigCreateGet thepass_throughvariant value.Get thequestion_answeringvariant value.Get theregressionvariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidGet thetext_classificationvariant value.Get thetext_embeddingvariant value.Get thetext_expansionvariant value.toString()Get thezero_shot_classificationvariant value.
- 
Field Details- 
_DESERIALIZER
 
- 
- 
Constructor Details- 
InferenceConfigCreate
 
- 
- 
Method Details- 
_kindDescription copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
- _kindin interface- TaggedUnion<InferenceConfigCreate.Kind,- Object> 
- Returns:
- the variant kind
 
- 
_get- Specified by:
- _getin interface- TaggedUnion<InferenceConfigCreate.Kind,- Object> 
 
- 
ofpublic static InferenceConfigCreate of(Function<InferenceConfigCreate.Builder, ObjectBuilder<InferenceConfigCreate>> fn) 
- 
isRegressionpublic boolean isRegression()Is this variant instance of kindregression?
- 
regressionGet theregressionvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- regressionkind.
 
- 
isClassificationpublic boolean isClassification()Is this variant instance of kindclassification?
- 
classificationGet theclassificationvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- classificationkind.
 
- 
isTextClassificationpublic boolean isTextClassification()Is this variant instance of kindtext_classification?
- 
textClassificationGet thetext_classificationvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- text_classificationkind.
 
- 
isZeroShotClassificationpublic boolean isZeroShotClassification()Is this variant instance of kindzero_shot_classification?
- 
zeroShotClassificationGet thezero_shot_classificationvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- zero_shot_classificationkind.
 
- 
isFillMaskpublic boolean isFillMask()Is this variant instance of kindfill_mask?
- 
fillMaskGet thefill_maskvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- fill_maskkind.
 
- 
isLearningToRankpublic boolean isLearningToRank()Is this variant instance of kindlearning_to_rank?
- 
learningToRankGet thelearning_to_rankvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- learning_to_rankkind.
 
- 
isNerpublic boolean isNer()Is this variant instance of kindner?
- 
nerGet thenervariant value.- Throws:
- IllegalStateException- if the current variant is not of the- nerkind.
 
- 
isPassThroughpublic boolean isPassThrough()Is this variant instance of kindpass_through?
- 
passThroughGet thepass_throughvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- pass_throughkind.
 
- 
isTextEmbeddingpublic boolean isTextEmbedding()Is this variant instance of kindtext_embedding?
- 
textEmbeddingGet thetext_embeddingvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- text_embeddingkind.
 
- 
isTextExpansionpublic boolean isTextExpansion()Is this variant instance of kindtext_expansion?
- 
textExpansionGet thetext_expansionvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- text_expansionkind.
 
- 
isQuestionAnsweringpublic boolean isQuestionAnswering()Is this variant instance of kindquestion_answering?
- 
questionAnsweringGet thequestion_answeringvariant value.- Throws:
- IllegalStateException- if the current variant is not of the- question_answeringkind.
 
- 
serialize- Specified by:
- serializein interface- JsonpSerializable
 
- 
toString
- 
setupInferenceConfigCreateDeserializerprotected static void setupInferenceConfigCreateDeserializer(ObjectDeserializer<InferenceConfigCreate.Builder> op) 
 
-