Class FillMaskInferenceUpdateOptions
java.lang.Object
co.elastic.clients.elasticsearch.ml.FillMaskInferenceUpdateOptions
- All Implemented Interfaces:
InferenceConfigUpdateVariant
,JsonpSerializable
@JsonpDeserializable public class FillMaskInferenceUpdateOptions extends java.lang.Object implements InferenceConfigUpdateVariant, JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FillMaskInferenceUpdateOptions.Builder
Builder forFillMaskInferenceUpdateOptions
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<FillMaskInferenceUpdateOptions>
_DESERIALIZER
Json deserializer forFillMaskInferenceUpdateOptions
-
Method Summary
Modifier and Type Method Description InferenceConfigUpdate.Kind
_inferenceConfigUpdateKind()
InferenceConfigUpdate variant kind.java.lang.Integer
numTopClasses()
Specifies the number of top class predictions to return.static FillMaskInferenceUpdateOptions
of(java.util.function.Function<FillMaskInferenceUpdateOptions.Builder,ObjectBuilder<FillMaskInferenceUpdateOptions>> fn)
java.lang.String
resultsField()
The field that is added to incoming documents to contain the inference prediction.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupFillMaskInferenceUpdateOptionsDeserializer(ObjectDeserializer<FillMaskInferenceUpdateOptions.Builder> op)
NlpTokenizationUpdateOptions
tokenization()
The tokenization options to update when inferringjava.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface co.elastic.clients.elasticsearch.ml.InferenceConfigUpdateVariant
_toInferenceConfigUpdate
-
Field Details
-
_DESERIALIZER
Json deserializer forFillMaskInferenceUpdateOptions
-
-
Method Details
-
of
public static FillMaskInferenceUpdateOptions of(java.util.function.Function<FillMaskInferenceUpdateOptions.Builder,ObjectBuilder<FillMaskInferenceUpdateOptions>> fn) -
_inferenceConfigUpdateKind
InferenceConfigUpdate variant kind.- Specified by:
_inferenceConfigUpdateKind
in interfaceInferenceConfigUpdateVariant
-
numTopClasses
@Nullable public final java.lang.Integer numTopClasses()Specifies the number of top class predictions to return. Defaults to 0.API name:
num_top_classes
-
tokenization
The tokenization options to update when inferringAPI name:
tokenization
-
resultsField
@Nullable public final java.lang.String resultsField()The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupFillMaskInferenceUpdateOptionsDeserializer
protected static void setupFillMaskInferenceUpdateOptionsDeserializer(ObjectDeserializer<FillMaskInferenceUpdateOptions.Builder> op)
-