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 PassThroughInferenceOptions
build()
Builds aPassThroughInferenceOptions
.PassThroughInferenceOptions.Builder
resultsField(java.lang.String value)
The field that is added to incoming documents to contain the inference prediction.protected PassThroughInferenceOptions.Builder
self()
PassThroughInferenceOptions.Builder
tokenization(TokenizationConfig value)
The tokenization optionsPassThroughInferenceOptions.Builder
tokenization(java.util.function.Function<TokenizationConfig.Builder,ObjectBuilder<TokenizationConfig>> fn)
The tokenization optionsMethods 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
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:
self
in classWithJsonObjectBuilderBase<PassThroughInferenceOptions.Builder>
-
build
Builds aPassThroughInferenceOptions
.- Specified by:
build
in interfaceObjectBuilder<PassThroughInferenceOptions>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-