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
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aPassThroughInferenceOptions
.resultsField
(String value) The field that is added to incoming documents to contain the inference prediction.protected PassThroughInferenceOptions.Builder
self()
tokenization
(TokenizationConfig value) The tokenization optionsThe tokenization optionsvocabulary
(Vocabulary value) API name:vocabulary
API name:vocabulary
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tokenization
The tokenization optionsAPI name:
tokenization
-
tokenization
public final PassThroughInferenceOptions.Builder tokenization(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
-
vocabulary
API name:vocabulary
-
vocabulary
public final PassThroughInferenceOptions.Builder vocabulary(Function<Vocabulary.Builder, ObjectBuilder<Vocabulary>> fn) API name:vocabulary
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<PassThroughInferenceOptions.Builder>
-
build
Builds aPassThroughInferenceOptions
.- Specified by:
build
in interfaceObjectBuilder<PassThroughInferenceOptions>
- Throws:
NullPointerException
- if some of the required fields are null.
-