Class PassThroughInferenceUpdateOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PassThroughInferenceUpdateOptions.Builder>
co.elastic.clients.elasticsearch.ml.PassThroughInferenceUpdateOptions.Builder
- All Implemented Interfaces:
WithJson<PassThroughInferenceUpdateOptions.Builder>
,ObjectBuilder<PassThroughInferenceUpdateOptions>
- Enclosing class:
- PassThroughInferenceUpdateOptions
public static class PassThroughInferenceUpdateOptions.Builder extends WithJsonObjectBuilderBase<PassThroughInferenceUpdateOptions.Builder> implements ObjectBuilder<PassThroughInferenceUpdateOptions>
Builder for
PassThroughInferenceUpdateOptions
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description PassThroughInferenceUpdateOptions
build()
Builds aPassThroughInferenceUpdateOptions
.PassThroughInferenceUpdateOptions.Builder
resultsField(java.lang.String value)
The field that is added to incoming documents to contain the inference prediction.protected PassThroughInferenceUpdateOptions.Builder
self()
PassThroughInferenceUpdateOptions.Builder
tokenization(NlpTokenizationUpdateOptions value)
The tokenization options to update when inferringPassThroughInferenceUpdateOptions.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
-
tokenization
public final PassThroughInferenceUpdateOptions.Builder tokenization(@Nullable NlpTokenizationUpdateOptions value)The tokenization options to update when inferringAPI name:
tokenization
-
tokenization
public final PassThroughInferenceUpdateOptions.Builder tokenization(java.util.function.Function<NlpTokenizationUpdateOptions.Builder,ObjectBuilder<NlpTokenizationUpdateOptions>> fn)The tokenization options to update when inferringAPI name:
tokenization
-
resultsField
public final PassThroughInferenceUpdateOptions.Builder resultsField(@Nullable java.lang.String value)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<PassThroughInferenceUpdateOptions.Builder>
-
build
Builds aPassThroughInferenceUpdateOptions
.- Specified by:
build
in interfaceObjectBuilder<PassThroughInferenceUpdateOptions>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-