Class PassThroughInferenceOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<PassThroughInferenceOptions.Builder>
co.elastic.clients.elasticsearch.ml.PassThroughInferenceOptions.Builder
- All Implemented Interfaces:
WithJson<PassThroughInferenceOptions.Builder>,ObjectBuilder<PassThroughInferenceOptions>
- Enclosing class:
- PassThroughInferenceOptions
public static class PassThroughInferenceOptions.Builder extends WithJsonObjectBuilderBase<PassThroughInferenceOptions.Builder> implements ObjectBuilder<PassThroughInferenceOptions>
Builder for
PassThroughInferenceOptions.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description PassThroughInferenceOptionsbuild()Builds aPassThroughInferenceOptions.PassThroughInferenceOptions.BuilderresultsField(java.lang.String value)The field that is added to incoming documents to contain the inference prediction.protected PassThroughInferenceOptions.Builderself()PassThroughInferenceOptions.Buildertokenization(TokenizationConfig value)The tokenization optionsPassThroughInferenceOptions.Buildertokenization(java.util.function.Function<TokenizationConfig.Builder,ObjectBuilder<TokenizationConfig>> fn)The tokenization optionsMethods 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
-
tokenization
The tokenization optionsAPI name:
tokenization -
tokenization
public final PassThroughInferenceOptions.Builder tokenization(java.util.function.Function<TokenizationConfig.Builder,ObjectBuilder<TokenizationConfig>> fn)The tokenization optionsAPI 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<PassThroughInferenceOptions.Builder>
-
build
Builds aPassThroughInferenceOptions.- Specified by:
buildin interfaceObjectBuilder<PassThroughInferenceOptions>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-