Class FillMaskInferenceUpdateOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FillMaskInferenceUpdateOptions.Builder>
co.elastic.clients.elasticsearch.ml.FillMaskInferenceUpdateOptions.Builder
- All Implemented Interfaces:
WithJson<FillMaskInferenceUpdateOptions.Builder>
,ObjectBuilder<FillMaskInferenceUpdateOptions>
- Enclosing class:
- FillMaskInferenceUpdateOptions
public static class FillMaskInferenceUpdateOptions.Builder extends WithJsonObjectBuilderBase<FillMaskInferenceUpdateOptions.Builder> implements ObjectBuilder<FillMaskInferenceUpdateOptions>
Builder for
FillMaskInferenceUpdateOptions
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description FillMaskInferenceUpdateOptions
build()
Builds aFillMaskInferenceUpdateOptions
.FillMaskInferenceUpdateOptions.Builder
numTopClasses(java.lang.Integer value)
Specifies the number of top class predictions to return.FillMaskInferenceUpdateOptions.Builder
resultsField(java.lang.String value)
The field that is added to incoming documents to contain the inference prediction.protected FillMaskInferenceUpdateOptions.Builder
self()
FillMaskInferenceUpdateOptions.Builder
tokenization(NlpTokenizationUpdateOptions value)
The tokenization options to update when inferringFillMaskInferenceUpdateOptions.Builder
tokenization(java.util.function.Function<NlpTokenizationUpdateOptions.Builder,ObjectBuilder<NlpTokenizationUpdateOptions>> fn)
The tokenization options to update when inferringMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
numTopClasses
public final FillMaskInferenceUpdateOptions.Builder numTopClasses(@Nullable java.lang.Integer value)Specifies the number of top class predictions to return. Defaults to 0.API name:
num_top_classes
-
tokenization
public final FillMaskInferenceUpdateOptions.Builder tokenization(@Nullable NlpTokenizationUpdateOptions value)The tokenization options to update when inferringAPI name:
tokenization
-
tokenization
public final FillMaskInferenceUpdateOptions.Builder tokenization(java.util.function.Function<NlpTokenizationUpdateOptions.Builder,ObjectBuilder<NlpTokenizationUpdateOptions>> fn)The tokenization options to update when inferringAPI name:
tokenization
-
resultsField
The field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name:
results_field
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<FillMaskInferenceUpdateOptions.Builder>
-
build
Builds aFillMaskInferenceUpdateOptions
.- Specified by:
build
in interfaceObjectBuilder<FillMaskInferenceUpdateOptions>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-