Class TextExpansionInferenceOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TextExpansionInferenceOptions.Builder>
co.elastic.clients.elasticsearch.ml.TextExpansionInferenceOptions.Builder
- All Implemented Interfaces:
WithJson<TextExpansionInferenceOptions.Builder>
,ObjectBuilder<TextExpansionInferenceOptions>
- Enclosing class:
- TextExpansionInferenceOptions
public static class TextExpansionInferenceOptions.Builder
extends WithJsonObjectBuilderBase<TextExpansionInferenceOptions.Builder>
implements ObjectBuilder<TextExpansionInferenceOptions>
Builder for
TextExpansionInferenceOptions
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aTextExpansionInferenceOptions
.resultsField
(String value) The field that is added to incoming documents to contain the inference prediction.protected TextExpansionInferenceOptions.Builder
self()
tokenization
(TokenizationConfig value) The tokenization optionsThe 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
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
tokenization
The tokenization optionsAPI name:
tokenization
-
tokenization
public final TextExpansionInferenceOptions.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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<TextExpansionInferenceOptions.Builder>
-
build
Builds aTextExpansionInferenceOptions
.- Specified by:
build
in interfaceObjectBuilder<TextExpansionInferenceOptions>
- Throws:
NullPointerException
- if some of the required fields are null.
-