Class FillMaskInferenceOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<FillMaskInferenceOptions.Builder>
co.elastic.clients.elasticsearch.ml.FillMaskInferenceOptions.Builder
- All Implemented Interfaces:
WithJson<FillMaskInferenceOptions.Builder>,ObjectBuilder<FillMaskInferenceOptions>
- Enclosing class:
- FillMaskInferenceOptions
public static class FillMaskInferenceOptions.Builder extends WithJsonObjectBuilderBase<FillMaskInferenceOptions.Builder> implements ObjectBuilder<FillMaskInferenceOptions>
Builder for
FillMaskInferenceOptions.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description FillMaskInferenceOptionsbuild()Builds aFillMaskInferenceOptions.FillMaskInferenceOptions.BuildernumTopClasses(java.lang.Integer value)Specifies the number of top class predictions to return.FillMaskInferenceOptions.BuilderresultsField(java.lang.String value)The field that is added to incoming documents to contain the inference prediction.protected FillMaskInferenceOptions.Builderself()FillMaskInferenceOptions.Buildertokenization(TokenizationConfig value)The tokenization options to update when inferringFillMaskInferenceOptions.Buildertokenization(java.util.function.Function<TokenizationConfig.Builder,ObjectBuilder<TokenizationConfig>> fn)The tokenization options to update when inferringMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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
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 -
tokenization
public final FillMaskInferenceOptions.Builder tokenization(java.util.function.Function<TokenizationConfig.Builder,ObjectBuilder<TokenizationConfig>> 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:
selfin classWithJsonObjectBuilderBase<FillMaskInferenceOptions.Builder>
-
build
Builds aFillMaskInferenceOptions.- Specified by:
buildin interfaceObjectBuilder<FillMaskInferenceOptions>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-