Class InferenceConfigClassification.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<InferenceConfigClassification.Builder>
co.elastic.clients.elasticsearch.ingest.InferenceConfigClassification.Builder
- All Implemented Interfaces:
WithJson<InferenceConfigClassification.Builder>
,ObjectBuilder<InferenceConfigClassification>
- Enclosing class:
- InferenceConfigClassification
public static class InferenceConfigClassification.Builder
extends WithJsonObjectBuilderBase<InferenceConfigClassification.Builder>
implements ObjectBuilder<InferenceConfigClassification>
Builder for
InferenceConfigClassification
.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds aInferenceConfigClassification
.numTopClasses
(Integer value) Specifies the number of top class predictions to return.Specifies the maximum number of feature importance values per document.predictionFieldType
(String value) Specifies the type of the predicted field to write.resultsField
(String value) The field that is added to incoming documents to contain the inference prediction.protected InferenceConfigClassification.Builder
self()
topClassesResultsField
(String value) Specifies the field to which the top classes are written.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
-
numTopClasses
Specifies the number of top class predictions to return.API name:
num_top_classes
-
numTopFeatureImportanceValues
public final InferenceConfigClassification.Builder numTopFeatureImportanceValues(@Nullable Integer value) Specifies the maximum number of feature importance values per document.API name:
num_top_feature_importance_values
-
resultsField
The field that is added to incoming documents to contain the inference prediction.API name:
results_field
-
topClassesResultsField
Specifies the field to which the top classes are written.API name:
top_classes_results_field
-
predictionFieldType
Specifies the type of the predicted field to write. Valid values are:string
,number
,boolean
.API name:
prediction_field_type
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<InferenceConfigClassification.Builder>
-
build
Builds aInferenceConfigClassification
.- Specified by:
build
in interfaceObjectBuilder<InferenceConfigClassification>
- Throws:
NullPointerException
- if some of the required fields are null.
-