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 -
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.Builderself()tokenization(TokenizationConfig value) The tokenization optionsThe tokenization optionsThe tokenization optionsvocabulary(Vocabulary value) API name:vocabularyAPI name:vocabularyMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods 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 -
tokenization
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:
selfin classWithJsonObjectBuilderBase<PassThroughInferenceOptions.Builder>
-
build
Builds aPassThroughInferenceOptions.- Specified by:
buildin interfaceObjectBuilder<PassThroughInferenceOptions>- Throws:
NullPointerException- if some of the required fields are null.
-