Class QuestionAnsweringInferenceOptions.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<QuestionAnsweringInferenceOptions.Builder>
co.elastic.clients.elasticsearch.ml.QuestionAnsweringInferenceOptions.Builder
- All Implemented Interfaces:
- WithJson<QuestionAnsweringInferenceOptions.Builder>,- ObjectBuilder<QuestionAnsweringInferenceOptions>
- Enclosing class:
- QuestionAnsweringInferenceOptions
public static class QuestionAnsweringInferenceOptions.Builder
extends WithJsonObjectBuilderBase<QuestionAnsweringInferenceOptions.Builder>
implements ObjectBuilder<QuestionAnsweringInferenceOptions>
Builder for 
QuestionAnsweringInferenceOptions.- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbuild()Builds aQuestionAnsweringInferenceOptions.maxAnswerLength(Integer value) The maximum answer length to considernumTopClasses(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()tokenization(TokenizationConfig value) The tokenization options to update when inferringThe tokenization options to update when inferringThe 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- 
numTopClassesSpecifies the number of top class predictions to return. Defaults to 0.API name: num_top_classes
- 
tokenizationpublic final QuestionAnsweringInferenceOptions.Builder tokenization(@Nullable TokenizationConfig value) The tokenization options to update when inferringAPI name: tokenization
- 
tokenizationpublic final QuestionAnsweringInferenceOptions.Builder tokenization(Function<TokenizationConfig.Builder, ObjectBuilder<TokenizationConfig>> fn) The tokenization options to update when inferringAPI name: tokenization
- 
tokenizationpublic final QuestionAnsweringInferenceOptions.Builder tokenization(TokenizationConfigVariant value) 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
- 
maxAnswerLengthThe maximum answer length to considerAPI name: max_answer_length
- 
self- Specified by:
- selfin class- WithJsonObjectBuilderBase<QuestionAnsweringInferenceOptions.Builder>
 
- 
buildBuilds aQuestionAnsweringInferenceOptions.- Specified by:
- buildin interface- ObjectBuilder<QuestionAnsweringInferenceOptions>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-