Class TextClassificationInferenceUpdateOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<TextClassificationInferenceUpdateOptions.Builder>
co.elastic.clients.elasticsearch.ml.TextClassificationInferenceUpdateOptions.Builder
- All Implemented Interfaces:
- WithJson<TextClassificationInferenceUpdateOptions.Builder>,- ObjectBuilder<TextClassificationInferenceUpdateOptions>
- Enclosing class:
- TextClassificationInferenceUpdateOptions
public static class TextClassificationInferenceUpdateOptions.Builder
extends WithJsonObjectBuilderBase<TextClassificationInferenceUpdateOptions.Builder>
implements ObjectBuilder<TextClassificationInferenceUpdateOptions>
Builder for 
TextClassificationInferenceUpdateOptions.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aTextClassificationInferenceUpdateOptions.classificationLabels(String value, String... values) Classification labels to apply other than the stored labels.classificationLabels(List<String> list) Classification labels to apply other than the stored labels.numTopClasses(Integer value) Specifies the number of top class predictions to return.resultsField(String value) The field that is added to incoming documents to contain the inference prediction.self()The tokenization options to update when inferringtokenization(Function<NlpTokenizationUpdateOptions.Builder, ObjectBuilder<NlpTokenizationUpdateOptions>> fn) The tokenization options to update when inferringMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
numTopClassespublic final TextClassificationInferenceUpdateOptions.Builder numTopClasses(@Nullable Integer value) Specifies the number of top class predictions to return. Defaults to 0.API name: num_top_classes
- 
tokenizationpublic final TextClassificationInferenceUpdateOptions.Builder tokenization(@Nullable NlpTokenizationUpdateOptions value) The tokenization options to update when inferringAPI name: tokenization
- 
tokenizationpublic final TextClassificationInferenceUpdateOptions.Builder tokenization(Function<NlpTokenizationUpdateOptions.Builder, ObjectBuilder<NlpTokenizationUpdateOptions>> fn) The tokenization options to update when inferringAPI name: tokenization
- 
resultsFieldThe field that is added to incoming documents to contain the inference prediction. Defaults to predicted_value.API name: results_field
- 
classificationLabelspublic final TextClassificationInferenceUpdateOptions.Builder classificationLabels(List<String> list) Classification labels to apply other than the stored labels. Must have the same deminsions as the default configured labelsAPI name: classification_labelsAdds all elements of listtoclassificationLabels.
- 
classificationLabelspublic final TextClassificationInferenceUpdateOptions.Builder classificationLabels(String value, String... values) Classification labels to apply other than the stored labels. Must have the same deminsions as the default configured labelsAPI name: classification_labelsAdds one or more values to classificationLabels.
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<TextClassificationInferenceUpdateOptions.Builder>
 
- 
buildBuilds aTextClassificationInferenceUpdateOptions.- Specified by:
- buildin interface- ObjectBuilder<TextClassificationInferenceUpdateOptions>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-